file stringlengths 16 94 | text stringlengths 32 24.4k | vector list |
|---|---|---|
api/dedicatedworkerglobalscope/rtctransform_event/index.md | API - DedicatedWorkerGlobalScope - rtctransform event:
Note: This feature is available in Web Workers.
The `rtctransform` event is fired at a worker's `DedicatedWorkerGlobalScope` object when an encoded video or audio frame has been queued for processing by a `WebRTC Encoded Transform`.
The event's `transformer` pro... | [
-0.036864716559648514,
-0.11171575635671616,
0.29157182574272156,
1.0510190725326538,
0.5869597792625427,
-0.7004737854003906,
-0.28433477878570557,
1.51412034034729,
-0.08871731907129288,
0.9230477213859558,
0.028135191649198532,
0.10965737700462341,
0.356486976146698,
0.42808452248573303... |
api/dedicatedworkerglobalscope/rtctransform_event/index.md | API - DedicatedWorkerGlobalScope - rtctransform event - Syntax:
Use the event name in methods like `addEventListener()`, or set an event handler property.
Example:
addEventListener("rtctransform", (event) => { })
onrtctransform = (event) => { } | [
0.31380054354667664,
-0.21149161458015442,
-0.4519103467464447,
0.9415059089660645,
-0.22177839279174805,
-1.5343434810638428,
-0.21722568571567535,
0.24374264478683472,
0.15535899996757507,
0.7913427352905273,
-0.8753900527954102,
0.14472593367099762,
-0.1205906942486763,
0.36521688103675... |
api/dedicatedworkerglobalscope/rtctransform_event/index.md | API - DedicatedWorkerGlobalScope - rtctransform event - Event type:
A `RTCTransformEvent`. Inherits from `Event`. | [
-0.1844022423028946,
-0.3018338978290558,
-0.1649339348077774,
0.7123960852622986,
-0.25122296810150146,
-0.9546448588371277,
-0.9160346388816833,
-0.13837774097919464,
0.5915611386299133,
0.511563241481781,
-0.45308905839920044,
-0.24512355029582977,
-0.020813869312405586,
0.5068324208259... |
api/dedicatedworkerglobalscope/rtctransform_event/index.md | API - DedicatedWorkerGlobalScope - rtctransform event - Example:
The following code snippet shows a handler for the `rtctransform` event in the worker, added to the global scope using `addEventListener()`. The `event.transformer` is a `RTCRtpScriptTransformer`, the worker side counterpart to `RTCRtpScriptTransform`.
... | [
0.12220782786607742,
-0.36370977759361267,
-0.13055038452148438,
0.6733214855194092,
0.619796097278595,
-0.8921443819999695,
-0.36315253376960754,
0.3983888626098633,
0.42231059074401855,
0.6642000675201416,
-0.5585742592811584,
-0.005009803920984268,
-0.059596948325634,
0.2174136042594909... |
api/dedicatedworkerglobalscope/messageerror_event/index.md | API - DedicatedWorkerGlobalScope - messageerror event:
Note: This feature is available in Web Workers.
The `messageerror` event is fired on a `DedicatedWorkerGlobalScope` object when it receives a message that can't be deserialized.
This event is not cancellable and does not bubble. | [
-0.8909868001937866,
-0.15014132857322693,
0.09047476947307587,
-0.03594091907143593,
0.000895179808139801,
-1.7118505239486694,
-0.4541739821434021,
0.23602169752120972,
0.09410004317760468,
0.3081406354904175,
-0.15642449259757996,
0.26808059215545654,
0.5318588018417358,
0.3369547426700... |
api/dedicatedworkerglobalscope/messageerror_event/index.md | API - DedicatedWorkerGlobalScope - messageerror event - Syntax:
Use the event name in methods like `addEventListener()`, or set an event handler property.
Example:
addEventListener("messageerror", (event) => { })
onmessageerror = (event) => { } | [
0.28602322936058044,
-0.6198000907897949,
-0.16951681673526764,
-0.39416036009788513,
0.04853677749633789,
-1.2078222036361694,
-0.07787548005580902,
-0.15007056295871735,
0.2884807586669922,
0.4602411985397339,
-0.9266534447669983,
0.405957967042923,
-0.22112704813480377,
0.72586035728454... |
api/dedicatedworkerglobalscope/messageerror_event/index.md | API - DedicatedWorkerGlobalScope - messageerror event - Event type:
A `MessageEvent`. Inherits from `Event`. | [
0.1794579029083252,
-0.2866745591163635,
-0.1264718770980835,
0.06360941380262375,
0.015550263226032257,
-0.9157934784889221,
-0.4725792109966278,
0.36135485768318176,
-0.04340644180774689,
0.33711758255958557,
-0.13806375861167908,
0.37607869505882263,
0.13101716339588165,
0.6414059996604... |
api/dedicatedworkerglobalscope/messageerror_event/index.md | API - DedicatedWorkerGlobalScope - messageerror event - Examples:
Listen for `messageerror` using `addEventListener()`:
Example:
// worker.js
self.addEventListener("messageerror", (event) => {
self.postMessage("Error receiving message");
console.error(event);
});
The same, but using the `onmessageerror` event ... | [
-0.3644814193248749,
-0.4409257769584656,
-0.6933942437171936,
0.40407270193099976,
0.24473601579666138,
-1.6991740465164185,
-0.0035673510283231735,
-0.11017933487892151,
-0.08851417154073715,
0.4123401939868927,
-0.13121110200881958,
0.17422156035900116,
0.4261605739593506,
0.37703230977... |
api/dedicatedworkerglobalscope/message_event/index.md | API - DedicatedWorkerGlobalScope - message event:
Note: This feature is available in Web Workers.
The `message` event is fired on a `DedicatedWorkerGlobalScope` object when the worker receives a message from its parent (i.e., when the parent sends a message using `Worker.postMessage()`).
This event is not cancellabl... | [
-0.314178466796875,
-0.6151634454727173,
0.06043822318315506,
-0.20676137506961823,
-0.0013301819562911987,
-1.1136757135391235,
-0.393732488155365,
1.2294948101043701,
-0.06971472501754761,
0.009262612089514732,
0.4480510950088501,
0.6035639643669128,
0.6004464626312256,
0.384676009416580... |
api/dedicatedworkerglobalscope/message_event/index.md | API - DedicatedWorkerGlobalScope - message event - Syntax:
Use the event name in methods like `addEventListener()`, or set an event handler property.
Example:
addEventListener("message", (event) => { })
onmessage = (event) => { } | [
-0.3079579472541809,
-0.4497394859790802,
0.5528795123100281,
-0.6619827747344971,
0.08334441483020782,
-1.148674488067627,
-0.32812097668647766,
-0.043316781520843506,
-0.33454903960227966,
0.27023541927337646,
-0.6698724627494812,
0.13940547406673431,
-0.20290206372737885,
0.517816126346... |
api/dedicatedworkerglobalscope/message_event/index.md | API - DedicatedWorkerGlobalScope - message event - Event type:
A `MessageEvent`. Inherits from `Event`. | [
-0.15431277453899384,
-0.5924680829048157,
0.09179405122995377,
-0.3659891188144684,
-0.0388757660984993,
-0.9096277952194214,
-0.3792419135570526,
-0.1671544760465622,
-0.1232042908668518,
0.5704825520515442,
-0.08225089311599731,
0.34490707516670227,
0.13733139634132385,
0.18325544893741... |
api/dedicatedworkerglobalscope/message_event/index.md | API - DedicatedWorkerGlobalScope - message event - Example:
The following code snippet shows creation of a `Worker` object using the `Worker()` constructor. Messages are passed to the worker when the value inside the form input `first` changes. An `onmessage` handler is also present, to deal with messages are passed b... | [
-0.1354183703660965,
-0.11542029678821564,
-0.025011470541357994,
0.361329048871994,
0.8387541770935059,
-1.0893971920013428,
-0.16387665271759033,
0.6169716119766235,
0.21044987440109253,
0.6320942044258118,
-0.6664167642593384,
0.1118607223033905,
-0.051509272307157516,
0.052551448345184... |
api/vrlayerinit/index.md | API - VRLayerInit:
Deprecated: This feature is no longer recommended. Non-standard: This feature is not standardized.
The `VRLayerInit` dictionary of the WebVR API represents a content layer (an `HTMLCanvasElement` or `OffscreenCanvas`) that you want to present in a VR display.
Note: This dictionary was part of the ... | [
0.37572768330574036,
0.24593296647071838,
-0.0012517329305410385,
0.66118985414505,
-0.2883915305137634,
-0.5014761686325073,
0.303018182516098,
0.9480775594711304,
0.08719581365585327,
-0.17590343952178955,
-0.22626341879367828,
0.9303852319717407,
0.691790759563446,
0.3665386438369751,
... |
api/vrlayerinit/index.md | API - VRLayerInit - Instance properties:
- `VRLayerInit.leftBounds` (deprecated): Defines the left texture bounds of the canvas whose contents will be presented by the `VRDisplay`.
- `VRLayerInit.rightBounds` (deprecated): Defines the right texture bounds of the canvas whose contents will be presented by the `VRDispla... | [
-0.34959304332733154,
0.3616316616535187,
-0.2245875597000122,
0.7363492846488953,
-0.35659468173980713,
-0.6155624389648438,
0.5319771766662598,
1.405674695968628,
0.5696154236793518,
-0.5055562853813171,
-0.37692132592201233,
0.9445497989654541,
0.3069632351398468,
0.5247878432273865,
... |
api/vrlayerinit/index.md | API - VRLayerInit - Examples:
Example:
// currently returns an empty array
let layers = vrDisplay.getLayers();
if (navigator.getVRDisplays) {
console.log("WebVR 1.1 supported");
// Then get the displays attached to the computer
navigator.getVRDisplays().then((displays) => {
// If a display is available, us... | [
0.25752702355384827,
0.34898003935813904,
0.03987286984920502,
0.33761075139045715,
0.2058899700641632,
-0.40161386132240295,
0.7360084652900696,
1.6971685886383057,
-0.20061933994293213,
0.04401509463787079,
0.38728824257850647,
0.891383707523346,
0.4146243631839752,
0.5323214530944824,
... |
api/serviceworkerglobalscope/notificationclose_event/index.md | API - ServiceWorkerGlobalScope - notificationclose event:
Secure context: This feature is available only in secure contexts (HTTPS). Note: This feature is available in Web Workers.
The `notificationclose` event of the `ServiceWorkerGlobalScope` interface fires when a user closes a displayed notification spawned by `S... | [
-0.5401468873023987,
-0.16929973661899567,
-0.07347021996974945,
0.3347446918487549,
0.5990829467773438,
-1.5815049409866333,
-0.4822085499763489,
1.532749891281128,
-0.07802868634462357,
0.2988327145576477,
0.03936918079853058,
0.6897609233856201,
0.4093075394630432,
0.5738807916641235,
... |
api/serviceworkerglobalscope/notificationclose_event/index.md | API - ServiceWorkerGlobalScope - notificationclose event - Syntax:
Use the event name in methods like `addEventListener()`, or set an event handler property.
Example:
addEventListener("notificationclose", (event) => { })
onnotificationclose = (event) => { } | [
-0.26698407530784607,
-0.19789427518844604,
0.414193332195282,
0.17348624765872955,
0.21507099270820618,
-2.116525411605835,
-0.36407679319381714,
0.5737624764442444,
-0.022680796682834625,
0.5838003754615784,
-0.7627915740013123,
0.012070737779140472,
-0.06257966160774231,
-0.051392022520... |
api/serviceworkerglobalscope/notificationclose_event/index.md | API - ServiceWorkerGlobalScope - notificationclose event - Event type:
A `NotificationEvent`. Inherits from `ExtendableEvent` and `Event`. | [
-0.4419502317905426,
-0.26849448680877686,
0.287641704082489,
0.199904203414917,
-0.43465474247932434,
-1.701647400856018,
-0.6038008332252502,
0.3644162118434906,
-0.3626019358634949,
0.6717990636825562,
-0.1270226240158081,
0.3286494314670563,
-0.09123697131872177,
0.2061716616153717,
... |
api/serviceworkerglobalscope/notificationclose_event/index.md | API - ServiceWorkerGlobalScope - notificationclose event - Example:
Example:
// Inside a service worker.
self.onnotificationclose = (event) => {
console.log("On notification close: ", event.notification.tag);
}; | [
-0.9594164490699768,
0.298470675945282,
0.45134323835372925,
0.30988919734954834,
0.2856552004814148,
-1.9849430322647095,
-0.3019176423549652,
0.05712127685546875,
-0.5112185478210449,
0.3880486488342285,
-0.14945156872272491,
0.1792885810136795,
0.5048765540122986,
0.10871334373950958,
... |
api/serviceworkerglobalscope/activate_event/index.md | API - ServiceWorkerGlobalScope - activate event:
Secure context: This feature is available only in secure contexts (HTTPS). Note: This feature is available in Web Workers.
The `activate` event of the `ServiceWorkerGlobalScope` interface is fired when a `ServiceWorkerRegistration` acquires a new `ServiceWorkerRegistra... | [
-0.2240983247756958,
0.014365274459123611,
-0.07893230020999908,
0.5599316954612732,
0.4848095774650574,
-1.19953453540802,
-0.07969774305820465,
1.0222811698913574,
0.07750499248504639,
0.43979543447494507,
0.15086735785007477,
0.46585381031036377,
0.08979443460702896,
0.44671398401260376... |
api/serviceworkerglobalscope/activate_event/index.md | API - ServiceWorkerGlobalScope - activate event - Syntax:
Use the event name in methods like `addEventListener()`, or set an event handler property.
Example:
addEventListener("activate", (event) => { })
onactivate = (event) => { } | [
0.18402116000652313,
0.07848244160413742,
0.28083205223083496,
0.3990571200847626,
0.1009245365858078,
-1.987821102142334,
0.2274966835975647,
0.21739017963409424,
-0.14898426830768585,
0.6058549284934998,
-0.7343977093696594,
0.07503999769687653,
0.03704449534416199,
-0.20840632915496826,... |
api/serviceworkerglobalscope/activate_event/index.md | API - ServiceWorkerGlobalScope - activate event - Event type:
An `ExtendableEvent`. Inherits from `Event`. | [
-0.7403399348258972,
-0.4171130657196045,
0.22465848922729492,
0.30328813195228577,
-0.42214474081993103,
-1.429985761642456,
0.17742542922496796,
0.3319770395755768,
-0.05609603971242905,
0.8025307059288025,
0.16959665715694427,
0.30608221888542175,
-0.04381544888019562,
-0.09744941443204... |
api/serviceworkerglobalscope/activate_event/index.md | API - ServiceWorkerGlobalScope - activate event - Examples:
The following snippet shows how you could use an `activate` event handler to upgrade a cache.
Example:
self.addEventListener("activate", (event) => {
const cacheAllowlist = ["v2"];
event.waitUntil(
caches.keys().then((cacheNames) =>
Promise.a... | [
0.8648118376731873,
-0.37805792689323425,
-0.2667328119277954,
1.086808681488037,
0.8026300668716431,
-1.6084002256393433,
-0.004180233925580978,
1.2275079488754272,
-0.4163816273212433,
0.5310289263725281,
-0.21759378910064697,
0.4975878596305847,
-0.25847551226615906,
0.4116094708442688,... |
api/serviceworkerglobalscope/backgroundfetchsuccess_event/index.md | API - ServiceWorkerGlobalScope - backgroundfetchsuccess event:
Secure context: This feature is available only in secure contexts (HTTPS). Note: This feature is available in Web Workers.
The `backgroundfetchsuccess` event of the `ServiceWorkerGlobalScope` interface is fired when a background fetch operation has comple... | [
-0.43403029441833496,
0.13514955341815948,
-0.1772392988204956,
-0.06094582378864288,
0.6257321834564209,
-0.695344090461731,
-0.023547129705548286,
1.1159471273422241,
0.1534356325864792,
0.4277505576610565,
-0.3759285807609558,
0.8343115448951721,
0.41613540053367615,
0.4607952833175659,... |
api/serviceworkerglobalscope/backgroundfetchsuccess_event/index.md | API - ServiceWorkerGlobalScope - backgroundfetchsuccess event - Syntax:
Use the event name in methods like `addEventListener()`, or set an event handler property.
Example:
addEventListener("backgroundfetchsuccess", (event) => { })
onbackgroundfetchsuccess = (event) => { } | [
-0.4023480713367462,
-0.11025193333625793,
-0.12884433567523956,
0.2890600562095642,
0.5897876024246216,
-0.9156686067581177,
0.21124131977558136,
0.8635271787643433,
-0.2830440402030945,
0.238067165017128,
-1.057776927947998,
0.4771655797958374,
0.39355209469795227,
0.2683371901512146,
... |
api/serviceworkerglobalscope/backgroundfetchsuccess_event/index.md | API - ServiceWorkerGlobalScope - backgroundfetchsuccess event - Event type:
A `BackgroundFetchUpdateUIEvent`. | [
-1.0409690141677856,
0.16908691823482513,
-0.30464041233062744,
-0.24757005274295807,
0.5032660365104675,
-0.7282923460006714,
-0.20342151820659637,
1.38651442527771,
-0.3095127046108246,
0.5948888063430786,
-0.5386835932731628,
0.9546107053756714,
0.1729738563299179,
0.6433902978897095,
... |
api/serviceworkerglobalscope/backgroundfetchsuccess_event/index.md | API - ServiceWorkerGlobalScope - backgroundfetchsuccess event - Description:
When a background fetch operation completes successfully (meaning that all individual network requests have completed successfully), the browser starts the service worker, if necessary, and fires the `backgroundfetchsuccess` event in the serv... | [
-0.13543978333473206,
-0.09871616959571838,
-0.22737009823322296,
0.2410954236984253,
0.713965654373169,
-0.1646258533000946,
-0.24488820135593414,
1.1046843528747559,
-0.16281670331954956,
0.3365553617477417,
-0.3843128979206085,
0.6813995242118835,
0.7348940968513489,
0.7529153227806091,... |
api/serviceworkerglobalscope/backgroundfetchsuccess_event/index.md | API - ServiceWorkerGlobalScope - backgroundfetchsuccess event - Examples - Storing responses and updating UI:
This event handler stores all responses in the cache, and updates the UI.
Example:
addEventListener("backgroundfetchsuccess", (event) => {
const registration = event.registration;
event.waitUntil(async ... | [
-0.26750901341438293,
-0.6354324221611023,
-0.4498507082462311,
0.2190622091293335,
0.15334771573543549,
-0.8017076849937439,
0.022655539214611053,
1.2617526054382324,
-0.5903488397598267,
0.3140610158443451,
-0.20483632385730743,
0.6995168924331665,
0.26787441968917847,
0.6969114542007446... |
api/serviceworkerglobalscope/sync_event/index.md | API - ServiceWorkerGlobalScope - sync event:
Secure context: This feature is available only in secure contexts (HTTPS). Note: This feature is available in Web Workers.
The `sync` event of the `ServiceWorkerGlobalScope` interface is fired when the page (or worker) that registered the event with the `SyncManager` is ru... | [
-0.0359792485833168,
0.29548677802085876,
-0.4987448453903198,
0.3822695016860962,
0.37521690130233765,
-0.9386491179466248,
-0.6284714937210083,
1.4816054105758667,
0.41493627429008484,
0.31703925132751465,
0.28497689962387085,
0.9620031118392944,
0.057290978729724884,
0.3143545091152191,... |
api/serviceworkerglobalscope/sync_event/index.md | API - ServiceWorkerGlobalScope - sync event - Syntax:
Use the event name in methods like `addEventListener()`, or set an event handler property.
Example:
addEventListener("sync", (event) => { })
onsync = (event) => { } | [
-0.14354431629180908,
-0.12053247541189194,
-0.09271644800901413,
0.3178888261318207,
0.18771374225616455,
-1.343341588973999,
-0.23319728672504425,
0.2260657250881195,
0.3153233528137207,
0.4993070960044861,
-0.5060750246047974,
0.273930162191391,
0.1304752379655838,
-0.11447584629058838,... |
api/serviceworkerglobalscope/sync_event/index.md | API - ServiceWorkerGlobalScope - sync event - Event type:
A `SyncEvent`. Inherits from `ExtendableEvent` and `Event`. | [
-0.5177229046821594,
-0.025072772055864334,
-0.24962303042411804,
0.4370388388633728,
-0.06223566085100174,
-1.5084929466247559,
-0.7294651865959167,
0.7151860594749451,
-0.07759173959493637,
0.5982217192649841,
-0.006576398387551308,
0.45504361391067505,
0.10038657486438751,
0.55251598358... |
api/serviceworkerglobalscope/sync_event/index.md | API - ServiceWorkerGlobalScope - sync event - Examples:
The following example shows how to respond to a sync event in the service worker.
Example:
self.addEventListener("sync", (event) => {
if (event.tag === "sync-messages") {
event.waitUntil(sendOutboxMessages());
}
});
You can also set up the event handle... | [
-0.38635069131851196,
-0.3263293504714966,
-0.2506207823753357,
0.35009539127349854,
0.26393312215805054,
-1.7475948333740234,
-0.24211116135120392,
0.514171302318573,
-0.315701961517334,
0.5162268280982971,
-0.3048044741153717,
0.1639920473098755,
0.491555392742157,
0.23900684714317322,
... |
api/serviceworkerglobalscope/messageerror_event/index.md | API - ServiceWorkerGlobalScope - messageerror event:
Secure context: This feature is available only in secure contexts (HTTPS). Note: This feature is available in Web Workers.
The `messageerror` event of the `ServiceWorkerGlobalScope` interface occurs when incoming messages can't be deserialized.
This event is not c... | [
-0.2782783806324005,
-0.009875498712062836,
-0.2818532884120941,
0.04252646118402481,
0.5633077025413513,
-1.1490247249603271,
-0.32082852721214294,
0.9167545437812805,
0.05423060059547424,
0.14140361547470093,
0.1452796757221222,
0.5908333659172058,
0.5407587289810181,
0.3434790372848511,... |
api/serviceworkerglobalscope/messageerror_event/index.md | API - ServiceWorkerGlobalScope - messageerror event - Syntax:
Use the event name in methods like `addEventListener()`, or set an event handler property.
Example:
addEventListener("messageerror", (event) => { })
onmessageerror = (event) => { } | [
0.1457097828388214,
-0.27960118651390076,
-0.22570422291755676,
-0.280764102935791,
0.36218324303627014,
-1.5606242418289185,
-0.17737768590450287,
0.13529503345489502,
0.2101912498474121,
0.4759235680103302,
-0.6405222415924072,
0.23494479060173035,
-0.028347855433821678,
0.23524501919746... |
api/serviceworkerglobalscope/messageerror_event/index.md | API - ServiceWorkerGlobalScope - messageerror event - Event type:
An `ExtendableMessageEvent`. Inherits from `ExtendableEvent`. | [
-0.6218303442001343,
-0.17024824023246765,
0.1859058290719986,
-0.35331740975379944,
-0.11813086271286011,
-1.4253228902816772,
-0.27700480818748474,
0.3966571092605591,
-0.03159624710679054,
0.33278214931488037,
0.016508955508470535,
0.7182935476303101,
-0.14449860155582428,
0.19357901811... |
api/serviceworkerglobalscope/messageerror_event/index.md | API - ServiceWorkerGlobalScope - messageerror event - Examples:
In the below example a page gets a handle to the `ServiceWorker` object via `ServiceWorkerRegistration.active`, and then calls its `postMessage()` function.
Example:
// main.js
if (navigator.serviceWorker) {
navigator.serviceWorker.register("service-w... | [
-0.8993133306503296,
-0.2858450710773468,
-0.3048763573169708,
0.6354374885559082,
0.743958055973053,
-1.2222847938537598,
0.23723360896110535,
0.11694230139255524,
-0.4991954565048218,
0.2771978974342346,
-0.1412724405527115,
0.046213842928409576,
0.534127414226532,
0.229823499917984,
0... |
api/serviceworkerglobalscope/message_event/index.md | API - ServiceWorkerGlobalScope - message event:
Secure context: This feature is available only in secure contexts (HTTPS). Note: This feature is available in Web Workers.
The `message` event of the `ServiceWorkerGlobalScope` interface occurs when incoming messages are received. Controlled pages can use the `ServiceWo... | [
-0.1667398065328598,
0.07300840318202972,
-0.19278490543365479,
-0.2539461553096771,
0.7110807299613953,
-1.1617110967636108,
-0.20890744030475616,
1.303617238998413,
-0.24095401167869568,
0.30787044763565063,
0.4519706666469574,
1.0967020988464355,
0.4886120557785034,
0.1762663722038269,
... |
api/serviceworkerglobalscope/message_event/index.md | API - ServiceWorkerGlobalScope - message event - Syntax:
Use the event name in methods like `addEventListener()`, or set an event handler property.
Example:
addEventListener("message", (event) => { })
onmessage = (event) => { } | [
-0.22693806886672974,
-0.14896364510059357,
0.0972076877951622,
-0.14713823795318604,
0.38033804297447205,
-1.7032749652862549,
-0.012363692745566368,
0.27170509099960327,
-0.2676193118095398,
0.4006955623626709,
-0.6126759648323059,
0.22401759028434753,
0.24158525466918945,
-0.17457723617... |
api/serviceworkerglobalscope/message_event/index.md | API - ServiceWorkerGlobalScope - message event - Event type:
An `ExtendableMessageEvent`. Inherits from `ExtendableEvent`. | [
-0.9209685921669006,
-0.2411208599805832,
0.22738730907440186,
-0.5011453032493591,
-0.13849374651908875,
-1.331752896308899,
-0.21652354300022125,
0.47709959745407104,
-0.28607451915740967,
0.43516021966934204,
-0.09256280958652496,
0.618753969669342,
-0.00489802286028862,
-0.047010466456... |
api/serviceworkerglobalscope/message_event/index.md | API - ServiceWorkerGlobalScope - message event - Examples:
In the below example a page gets a handle to the `ServiceWorker` object via `ServiceWorkerRegistration.active`, and then calls its `postMessage()` function.
Example:
// main.js
if (navigator.serviceWorker) {
navigator.serviceWorker.register("service-worker... | [
-0.7459673285484314,
-0.06482929736375809,
0.06770963221788406,
0.6066704392433167,
0.563483715057373,
-1.013492226600647,
0.20414935052394867,
0.18262319266796112,
-0.4739841818809509,
0.5001245141029358,
-0.41450098156929016,
0.36504238843917847,
0.23532864451408386,
0.015228129923343658... |
api/serviceworkerglobalscope/backgroundfetchabort_event/index.md | API - ServiceWorkerGlobalScope - backgroundfetchabort event:
Secure context: This feature is available only in secure contexts (HTTPS). Note: This feature is available in Web Workers.
The `backgroundfetchabort` event of the `ServiceWorkerGlobalScope` interface is fired when the user or the app itself cancels a backgr... | [
-0.5739831924438477,
0.03225108981132507,
-0.3005501627922058,
-0.07089515030384064,
0.5240791440010071,
-1.191646933555603,
-0.12794092297554016,
1.0206350088119507,
0.021570324897766113,
0.35775238275527954,
-0.38829243183135986,
0.7371288537979126,
0.13896073400974274,
0.371572464704513... |
api/serviceworkerglobalscope/backgroundfetchabort_event/index.md | API - ServiceWorkerGlobalScope - backgroundfetchabort event - Syntax:
Use the event name in methods like `addEventListener()`, or set an event handler property.
Example:
addEventListener("backgroundfetchabort", (event) => { })
onbackgroundfetchabort = (event) => { } | [
-0.4426548182964325,
-0.3675321936607361,
-0.08066032826900482,
0.46635544300079346,
0.11605243384838104,
-1.901285171508789,
0.06272842735052109,
0.24919819831848145,
-0.06735947728157043,
0.46743878722190857,
-1.1541849374771118,
0.5105112195014954,
0.11198413372039795,
-0.00280827656388... |
api/serviceworkerglobalscope/backgroundfetchabort_event/index.md | API - ServiceWorkerGlobalScope - backgroundfetchabort event - Event type:
A `BackgroundFetchEvent`. | [
-0.37508124113082886,
0.05479073524475098,
0.2206278294324875,
0.026079721748828888,
-0.06551048159599304,
-1.4755789041519165,
-0.07877837121486664,
0.9196720719337463,
-0.7770101428031921,
0.4720567464828491,
-0.3575393557548523,
0.732326090335846,
0.20937877893447876,
0.6492161154747009... |
api/serviceworkerglobalscope/backgroundfetchabort_event/index.md | API - ServiceWorkerGlobalScope - backgroundfetchabort event - Description:
In the background fetch API, the browser shows a UI element to the user to indicate the progress of the operation. This element also enables the user to cancel the fetch. The app itself can also cancel the fetch by calling `BackgroundFetchRegis... | [
-0.8057613968849182,
-0.04622923582792282,
-0.5665126442909241,
0.5251978039741516,
0.1534777283668518,
-1.0124456882476807,
-0.4838884472846985,
0.9053722620010376,
0.7446022033691406,
0.5573135018348694,
-0.8873755931854248,
0.27698197960853577,
0.20709022879600525,
0.2955116033554077,
... |
api/serviceworkerglobalscope/backgroundfetchabort_event/index.md | API - ServiceWorkerGlobalScope - backgroundfetchabort event - Examples - Cleaning up:
This event handler might perform any cleanup of data associated with the aborted fetch.
Example:
addEventListener("backgroundfetchabort", (event) => {
// clean up any related data
}); | [
-0.6337378025054932,
-0.4752369225025177,
-0.284148633480072,
-0.12401134520769119,
0.42220908403396606,
-1.6816432476043701,
0.09340693801641464,
0.6730248332023621,
-0.44646474719047546,
0.4001924991607666,
-0.7974255681037903,
0.6923920512199402,
0.09449689090251923,
0.6018703579902649,... |
api/serviceworkerglobalscope/notificationclick_event/index.md | API - ServiceWorkerGlobalScope - notificationclick event:
Secure context: This feature is available only in secure contexts (HTTPS). Note: This feature is available in Web Workers.
The `notificationclick` event of the `ServiceWorkerGlobalScope` interface is fired to indicate that a system notification spawned by `Ser... | [
-0.30723562836647034,
-0.09625419974327087,
-0.16197733581066132,
0.6201074123382568,
0.6976128220558167,
-1.560076117515564,
-0.5894796252250671,
1.4382458925247192,
-0.24280129373073578,
0.5193670988082886,
0.20666982233524323,
0.5404547452926636,
0.2631305754184723,
0.5270110964775085,
... |
api/serviceworkerglobalscope/notificationclick_event/index.md | API - ServiceWorkerGlobalScope - notificationclick event - Syntax:
Use the event name in methods like `addEventListener()`, or set an event handler property.
Example:
addEventListener("notificationclick", (event) => { })
onnotificationclick = (event) => { } | [
-0.3416438698768616,
-0.2556349039077759,
0.3747529685497284,
0.32546404004096985,
0.35330963134765625,
-1.8680052757263184,
-0.42793580889701843,
0.4668480455875397,
0.19120553135871887,
0.7364007234573364,
-0.4584811329841614,
0.29554834961891174,
-0.023851078003644943,
-0.00999306514859... |
api/serviceworkerglobalscope/notificationclick_event/index.md | API - ServiceWorkerGlobalScope - notificationclick event - Event type:
A `NotificationEvent`. Inherits from `ExtendableEvent` and `Event`. | [
-0.7189919948577881,
-0.1615826040506363,
-0.027877327054739,
0.5930038690567017,
0.34659120440483093,
-1.5504430532455444,
-0.6650654077529907,
1.0518298149108887,
-0.3188665509223938,
0.9064726233482361,
0.3908122777938843,
0.7735530734062195,
-0.26238375902175903,
0.6459193229675293,
... |
api/serviceworkerglobalscope/notificationclick_event/index.md | API - ServiceWorkerGlobalScope - notificationclick event - Examples:
You can use the `notificationclick` event in an `addEventListener` method:
Example:
self.addEventListener("notificationclick", (event) => {
console.log("On notification click: ", event.notification.tag);
event.notification.close();
// This l... | [
0.3508383333683014,
-0.06845599412918091,
-0.22862134873867035,
0.31850528717041016,
0.8160724639892578,
-1.2747726440429688,
0.06237185001373291,
1.564223051071167,
-0.49330586194992065,
0.6308702826499939,
0.43329912424087524,
0.4666711091995239,
-0.22571292519569397,
0.49982786178588867... |
api/serviceworkerglobalscope/install_event/index.md | API - ServiceWorkerGlobalScope - install event:
Secure context: This feature is available only in secure contexts (HTTPS). Note: This feature is available in Web Workers.
The `install` event of the `ServiceWorkerGlobalScope` interface is fired when a `ServiceWorkerRegistration` acquires a new `ServiceWorkerRegistrati... | [
-0.48179611563682556,
-0.047470688819885254,
-0.34305262565612793,
0.38560977578163147,
0.39448416233062744,
-1.29371178150177,
-0.3566139042377472,
1.0531991720199585,
0.3995397090911865,
0.3982606828212738,
0.2789197862148285,
0.6457933783531189,
0.4694308042526245,
0.5315572023391724,
... |
api/serviceworkerglobalscope/install_event/index.md | API - ServiceWorkerGlobalScope - install event - Syntax:
Use the event name in methods like `addEventListener()`, or set an event handler property.
Example:
addEventListener("install", (event) => { })
oninstall = (event) => { } | [
-0.1831984966993332,
-0.002182099036872387,
-0.099173404276371,
0.5912765860557556,
0.21716052293777466,
-2.0463056564331055,
-0.07117190957069397,
0.5520118474960327,
0.08450616896152496,
0.6657863259315491,
-0.4797267019748688,
0.04284806549549103,
0.31331703066825867,
-0.098113283514976... |
api/serviceworkerglobalscope/install_event/index.md | API - ServiceWorkerGlobalScope - install event - Event type:
An `ExtendableEvent`. Inherits from `Event`. | [
-0.7428519129753113,
-0.5161113142967224,
-0.0930381491780281,
0.34824809432029724,
-0.6620846390724182,
-1.679225206375122,
-0.4113968312740326,
0.4150744080543518,
0.4063851833343506,
0.7478392720222473,
0.3103446364402771,
0.5831708312034607,
0.26888617873191833,
-0.006826180964708328,
... |
api/serviceworkerglobalscope/install_event/index.md | API - ServiceWorkerGlobalScope - install event - Examples:
The following snippet shows how an `install` event handler can be used to populate a cache with a number of responses, which the service worker can then use to serve assets offline:
Example:
self.addEventListener("install", (event) => {
event.waitUntil(
... | [
-0.043303512036800385,
-0.876899003982544,
-0.5388821959495544,
1.224677324295044,
0.453937292098999,
-1.767635464668274,
-0.10457543283700943,
1.1446412801742554,
0.20340359210968018,
0.5204744338989258,
-0.038814011961221695,
0.511934757232666,
0.43629565834999084,
0.7795462012290955,
... |
api/serviceworkerglobalscope/backgroundfetchfail_event/index.md | API - ServiceWorkerGlobalScope - backgroundfetchfail event:
Secure context: This feature is available only in secure contexts (HTTPS). Note: This feature is available in Web Workers.
The `backgroundfetchfail` event of the `ServiceWorkerGlobalScope` interface is fired when a background fetch operation has failed: that... | [
-0.6795675754547119,
-0.08951592445373535,
-0.26321274042129517,
-0.0612579807639122,
0.6541405320167542,
-0.9829723238945007,
0.03997369110584259,
1.226468801498413,
-0.0960930585861206,
0.494598388671875,
-0.25521165132522583,
0.6488971710205078,
0.3078332543373108,
0.3449953496456146,
... |
api/serviceworkerglobalscope/backgroundfetchfail_event/index.md | API - ServiceWorkerGlobalScope - backgroundfetchfail event - Syntax:
Use the event name in methods like `addEventListener()`, or set an event handler property.
Example:
addEventListener("backgroundfetchfail", (event) => { })
onbackgroundfetchfail = (event) => { } | [
-0.3298860788345337,
-0.013575672172009945,
-0.2581062912940979,
0.013889715075492859,
0.2733384966850281,
-1.473541021347046,
0.12852388620376587,
0.9636552333831787,
-0.399490624666214,
0.2301480919122696,
-1.208611011505127,
0.09448321163654327,
0.5510638356208801,
0.14875781536102295,
... |
api/serviceworkerglobalscope/backgroundfetchfail_event/index.md | API - ServiceWorkerGlobalScope - backgroundfetchfail event - Event type:
A `BackgroundFetchUpdateUIEvent`. | [
-0.8454570770263672,
0.01910954713821411,
0.30164143443107605,
-0.506034255027771,
0.10645836591720581,
-1.2140165567398071,
-0.07912905514240265,
1.049851894378662,
-0.6042018532752991,
0.5264407396316528,
-0.4237239956855774,
0.6661890149116516,
0.22038748860359192,
0.5871593952178955,
... |
api/serviceworkerglobalscope/backgroundfetchfail_event/index.md | API - ServiceWorkerGlobalScope - backgroundfetchfail event - Description:
When a background fetch operation fails (meaning that at least one of the individual network requests has not completed successfully), the browser starts the service worker, if necessary, and fires the `backgroundfetchfail` event in the service ... | [
-0.6258445382118225,
-0.6430203914642334,
-0.31900161504745483,
0.3281785845756531,
0.4134354591369629,
-0.5605986714363098,
0.023941874504089355,
1.0009870529174805,
-0.08574316650629044,
0.7483547925949097,
-0.8636358976364136,
0.5237290263175964,
0.5125464200973511,
0.6803939342498779,
... |
api/serviceworkerglobalscope/backgroundfetchfail_event/index.md | API - ServiceWorkerGlobalScope - backgroundfetchfail event - Examples - Updating UI:
This event handler updates the UI to let the user know that the operation failed.
Example:
addEventListener("backgroundfetchfail", (event) => {
event.updateUI({ title: "Could not complete download" });
}); | [
-1.3182669878005981,
-0.4927244484424591,
-0.2042713314294815,
0.011862196028232574,
0.17062783241271973,
-1.2912445068359375,
0.019698966294527054,
0.9030583500862122,
-0.7232151031494141,
0.3075692057609558,
-0.6282067894935608,
0.6491355299949646,
0.011610150337219238,
0.722378849983215... |
api/serviceworkerglobalscope/periodicsync_event/index.md | API - ServiceWorkerGlobalScope - periodicsync event:
Secure context: This feature is available only in secure contexts (HTTPS). Note: This feature is available in Web Workers.
The `periodicsync` event of the `ServiceWorkerGlobalScope` interface is fired at timed intervals, specified when registering a `PeriodicSyncMa... | [
-0.22774267196655273,
-0.07720308005809784,
-0.5737495422363281,
0.3195834755897522,
0.37351658940315247,
-1.0554507970809937,
-0.3418065011501312,
1.4398313760757446,
0.14064428210258484,
0.30232205986976624,
-0.10944563895463943,
0.6222524642944336,
0.21498382091522217,
0.466671407222747... |
api/serviceworkerglobalscope/periodicsync_event/index.md | API - ServiceWorkerGlobalScope - periodicsync event - Syntax:
Use the event name in methods like `addEventListener()`, or set an event handler property.
Example:
addEventListener("periodicsync", (event) => { })
onperiodicsync = (event) => { } | [
-0.39557600021362305,
0.12626014649868011,
-0.4305512011051178,
0.8975099325180054,
-0.0874604657292366,
-1.4826664924621582,
0.013005908578634262,
0.367708683013916,
-0.009272746741771698,
0.6767299175262451,
-0.6957365870475769,
0.10242502391338348,
0.26607435941696167,
-0.34346964955329... |
api/serviceworkerglobalscope/periodicsync_event/index.md | API - ServiceWorkerGlobalScope - periodicsync event - Event type:
A `PeriodicSyncEvent`. Inherits from `Event`. | [
-0.632741391658783,
0.02494966983795166,
-0.3634759187698364,
0.4277961254119873,
-0.34403860569000244,
-1.0713541507720947,
-0.18511176109313965,
0.20325134694576263,
-0.20529645681381226,
0.6147962212562561,
0.11508098244667053,
0.08279107511043549,
0.0025720298290252686,
0.2838360965251... |
api/serviceworkerglobalscope/periodicsync_event/index.md | API - ServiceWorkerGlobalScope - periodicsync event - Examples:
The following example shows how to respond to a periodic sync event in the service worker.
Example:
self.addEventListener("periodicsync", (event) => {
if (event.tag === "get-latest-news") {
event.waitUntil(fetchAndCacheLatestNews());
}
});
You ... | [
-0.45363175868988037,
-0.14215710759162903,
-0.4145314693450928,
0.8074714541435242,
0.1603415608406067,
-1.7083077430725098,
-0.12388470768928528,
0.8414661288261414,
-0.5946272611618042,
0.5556297302246094,
-0.3304980993270874,
0.4066261351108551,
0.39311540126800537,
0.5225126147270203,... |
api/serviceworkerglobalscope/push_event/index.md | API - ServiceWorkerGlobalScope - push event:
Secure context: This feature is available only in secure contexts (HTTPS). Note: This feature is available in Web Workers.
The `push` event is sent to a service worker's global scope (represented by the `ServiceWorkerGlobalScope` interface) when the service worker has rece... | [
-1.0830683708190918,
0.04103607311844826,
-0.03795352578163147,
0.07971002161502838,
0.441872775554657,
-1.43288254737854,
-0.4167204201221466,
0.35061460733413696,
0.15640263259410858,
0.6284748911857605,
0.006675902754068375,
0.7984638810157776,
0.5004872679710388,
0.04604397714138031,
... |
api/serviceworkerglobalscope/push_event/index.md | API - ServiceWorkerGlobalScope - push event - Syntax:
Use the event name in methods like `addEventListener()`, or set an event handler property.
Example:
addEventListener("push", (event) => { })
onpush = (event) => { } | [
-0.42626941204071045,
-0.036550506949424744,
-0.012132292613387108,
0.297107994556427,
0.3826047480106354,
-1.5392820835113525,
-0.3921734094619751,
0.16073662042617798,
0.31287240982055664,
0.5505956411361694,
-0.6190122365951538,
0.3608280420303345,
-0.14532707631587982,
-0.1877043098211... |
api/serviceworkerglobalscope/push_event/index.md | API - ServiceWorkerGlobalScope - push event - Event type:
A `PushEvent`. Inherits from `Event`. | [
-0.6342781186103821,
-0.10797610878944397,
0.03511728346347809,
0.2628763020038605,
-0.12441668659448624,
-0.8559420108795166,
-0.3990788459777832,
0.003409847617149353,
-0.021964672952890396,
0.6201142072677612,
-0.032275933772325516,
0.19521406292915344,
0.35656964778900146,
-0.094412371... |
api/serviceworkerglobalscope/push_event/index.md | API - ServiceWorkerGlobalScope - push event - Example:
This example sets up a handler for `push` events that takes `JSON` data, parses it, and dispatches the message for handling based on information contained within the message.
Example:
self.addEventListener("push", (event) => {
let message = event.data.json();
... | [
-1.5349867343902588,
0.4005676507949829,
-0.7027377486228943,
-0.2105145901441574,
0.13707761466503143,
-1.2211461067199707,
0.03962245583534241,
0.35957619547843933,
0.07479830086231232,
0.6563498973846436,
0.768892228603363,
0.9336305856704712,
0.12595362961292267,
-0.005754437297582626,... |
api/serviceworkerglobalscope/backgroundfetchclick_event/index.md | API - ServiceWorkerGlobalScope - backgroundfetchclick event:
Secure context: This feature is available only in secure contexts (HTTPS). Note: This feature is available in Web Workers.
The `backgroundfetchclick` event of the `ServiceWorkerGlobalScope` interface is fired when the user clicks on the UI that the browser ... | [
-0.6589841842651367,
-0.12321093678474426,
-0.4700835347175598,
-0.15808667242527008,
0.44793760776519775,
-0.6700506210327148,
-0.27083176374435425,
1.260850191116333,
0.21592992544174194,
0.43025150895118713,
-0.271614670753479,
0.721644401550293,
0.15732084214687347,
0.291157990694046,
... |
api/serviceworkerglobalscope/backgroundfetchclick_event/index.md | API - ServiceWorkerGlobalScope - backgroundfetchclick event - Syntax:
Use the event name in methods like `addEventListener()`, or set an event handler property.
Example:
addEventListener("backgroundfetchclick", (event) => { })
onbackgroundfetchclick = (event) => { } | [
-0.5736802220344543,
-0.25726425647735596,
-0.349666029214859,
0.3623247444629669,
0.3224053680896759,
-1.4285125732421875,
-0.1837843954563141,
0.6255391836166382,
-0.018852930516004562,
0.5640800595283508,
-0.9220407009124756,
0.2986339330673218,
0.4494931399822235,
-0.2083258479833603,
... |
api/serviceworkerglobalscope/backgroundfetchclick_event/index.md | API - ServiceWorkerGlobalScope - backgroundfetchclick event - Event type:
A `BackgroundFetchEvent`. | [
-0.48743513226509094,
-0.011941191740334034,
-0.4189751446247101,
-0.1519455909729004,
0.41856443881988525,
-1.0183106660842896,
-0.32781097292900085,
1.5045431852340698,
-0.20492860674858093,
0.7664656043052673,
-0.4145641624927521,
1.0583491325378418,
0.018166474997997284,
0.579648256301... |
api/serviceworkerglobalscope/backgroundfetchclick_event/index.md | API - ServiceWorkerGlobalScope - backgroundfetchclick event - Description:
When a background fetch operation starts, the browser shows a UI element to the user to indicate the progress of the operation. If the user clicks this element, the browser starts the service worker, if necessary, and fires the `backgroundfetch... | [
-0.7632814049720764,
-0.3379116654396057,
-0.8499186635017395,
-0.1450497806072235,
0.6740266680717468,
-0.45291635394096375,
-0.05729147046804428,
1.3303920030593872,
0.04837743937969208,
0.18678748607635498,
-0.6145091652870178,
1.0720980167388916,
0.11917249858379364,
0.7411667108535767... |
api/serviceworkerglobalscope/backgroundfetchclick_event/index.md | API - ServiceWorkerGlobalScope - backgroundfetchclick event - Examples - Opening a window with more details:
This event handler uses the global `clients` property to open a window giving the user more details about the fetch. It opens a different window depending on whether the fetch has completed or not.
Example:
a... | [
-0.844339907169342,
-0.3800937533378601,
-0.14301659166812897,
0.5576857924461365,
0.24550437927246094,
-0.8302346467971802,
0.02661239355802536,
0.6369892954826355,
0.11660219728946686,
0.6299852728843689,
-0.5079904794692993,
0.40276119112968445,
0.0792766585946083,
0.13419009745121002,
... |
api/serviceworkerglobalscope/contentdelete_event/index.md | API - ServiceWorkerGlobalScope - contentdelete event:
Secure context: This feature is available only in secure contexts (HTTPS). Note: This feature is available in Web Workers.
The `contentdelete` event of the `ServiceWorkerGlobalScope` interface is fired when an item is removed from the indexed content via the user ... | [
-0.4664880037307739,
-0.20077534019947052,
-0.1824817955493927,
0.2989325523376465,
0.6111014485359192,
-1.6652542352676392,
-0.4554959237575531,
1.5316617488861084,
-0.040060754865407944,
0.2691122889518738,
-0.24121564626693726,
0.3727695941925049,
-0.31556662917137146,
0.472549200057983... |
api/serviceworkerglobalscope/contentdelete_event/index.md | API - ServiceWorkerGlobalScope - contentdelete event - Syntax:
Use the event name in methods like `addEventListener()`, or set an event handler property.
Example:
addEventListener("contentdelete", (event) => { })
oncontentdelete = (event) => { } | [
-0.24103403091430664,
0.014794697985053062,
0.36287957429885864,
0.4138554632663727,
0.14985276758670807,
-2.3239123821258545,
-0.08552883565425873,
0.5854077339172363,
-0.3570401966571808,
0.6775059700012207,
-0.6025223135948181,
0.06170015037059784,
-0.10969551652669907,
-0.1517325043678... |
api/serviceworkerglobalscope/contentdelete_event/index.md | API - ServiceWorkerGlobalScope - contentdelete event - Event type:
A `ContentIndexEvent`. Inherits from `Event`. | [
-0.5131754279136658,
0.008951954543590546,
0.2995319366455078,
0.28487491607666016,
0.27318060398101807,
-1.6499661207199097,
-0.536615252494812,
0.6336687803268433,
-0.41190698742866516,
0.6363790035247803,
0.032556481659412384,
0.3279017508029938,
-0.44911855459213257,
0.5845821499824524... |
api/serviceworkerglobalscope/contentdelete_event/index.md | API - ServiceWorkerGlobalScope - contentdelete event - Examples:
The following example uses a `contentdelete` event handler to remove cached content related to the deleted index item.
Example:
self.addEventListener("contentdelete", (event) => {
const deletion = caches
.open("cache-name")
.then((cache) =>
... | [
0.06700865924358368,
-0.5624622702598572,
-0.4756854176521301,
0.5335028171539307,
1.0015901327133179,
-2.0243473052978516,
-0.2826666533946991,
1.6211597919464111,
-0.586323618888855,
0.2725338637828827,
-0.20960521697998047,
0.47817808389663696,
-0.012063499540090561,
0.9725954532623291,... |
api/identitycredentialrequestoptions/index.md | API - IdentityCredentialRequestOptions:
Secure context: This feature is available only in secure contexts (HTTPS).
The `IdentityCredentialRequestOptions` dictionary represents the object passed to `CredentialsContainer.get()` as the value of the `identity` option.
When an `identity` option is provided in a `get()` c... | [
0.2851560413837433,
0.36439698934555054,
-0.5506114363670349,
0.2191360890865326,
-0.19311824440956116,
-1.2120085954666138,
0.8591434359550476,
0.776777982711792,
-0.4500353932380676,
-0.34500542283058167,
-0.17637871205806732,
0.6038969159126282,
0.07504385709762573,
-0.37528711557388306... |
api/identitycredentialrequestoptions/index.md | API - IdentityCredentialRequestOptions - Instance properties:
- `context` (optional): A string specifying the context in which the user is authenticating with FedCM. The browser uses this value to vary the text in its FedCM UI to better suit the context. Possible values are: - `"continue"`: Suitable for situations wh... | [
0.2698139548301697,
-0.12328647822141647,
-0.5004584789276123,
-0.23454424738883972,
0.02378804236650467,
-0.8854865431785583,
1.4934014081954956,
1.0542389154434204,
-0.35743534564971924,
0.049388591200113297,
-0.28657451272010803,
0.33175382018089294,
-0.3285565674304962,
-0.030570797622... |
api/texttracklist/removetrack_event/index.md | API - TextTrackList - removetrack event:
The `removetrack` event is fired when a track is removed from a `TextTrackList`. | [
-0.8826770186424255,
-0.5054985880851746,
0.05270981043577194,
0.4213552474975586,
-0.019808560609817505,
-2.045090436935425,
0.19325664639472961,
-0.43593233823776245,
-0.06554453074932098,
0.6977322101593018,
-0.6326298117637634,
-0.4380655884742737,
-0.27394115924835205,
0.5359967947006... |
api/texttracklist/removetrack_event/index.md | API - TextTrackList - removetrack event - Syntax:
Use the event name in methods like `addEventListener()`, or set an event handler property.
Example:
addEventListener("removetrack", (event) => { })
onremovetrack = (event) => { } | [
-0.26350176334381104,
-0.4739922881126404,
0.13073594868183136,
0.4294133186340332,
0.27318981289863586,
-1.7131223678588867,
-0.11632660031318665,
0.7400652766227722,
-0.10195847600698471,
0.7085996270179749,
-0.7431439161300659,
-0.3580082952976227,
-0.12116344273090363,
0.11938297748565... |
api/texttracklist/removetrack_event/index.md | API - TextTrackList - removetrack event - Event type:
A `TrackEvent`. Inherits from `Event`. | [
-0.4108911156654358,
-0.49472856521606445,
0.3106440007686615,
-0.008243482559919357,
-0.1541208028793335,
-1.7285633087158203,
0.046609848737716675,
0.6399710774421692,
0.15861012041568756,
0.6139612197875977,
-0.5737124085426331,
0.25822713971138,
0.03720283508300781,
0.17670868337154388... |
api/texttracklist/removetrack_event/index.md | API - TextTrackList - removetrack event - Examples:
Using `addEventListener()`:
Example:
const mediaElement = document.querySelector("video, audio");
mediaElement.textTracks.addEventListener("removetrack", (event) => {
console.log(`Text track: ${event.track.label} removed`);
});
Using the `onremovetrack` event h... | [
-0.272579163312912,
-0.6181797981262207,
-0.24406030774116516,
0.6003608703613281,
0.15503093600273132,
-1.2424719333648682,
-0.5751892328262329,
0.32433268427848816,
-0.3493022918701172,
0.2774738073348999,
-0.06738211214542389,
-0.5466309785842896,
-0.02646440453827381,
0.063598558306694... |
api/texttracklist/addtrack_event/index.md | API - TextTrackList - addtrack event:
The `addtrack` event is fired when a track is added to a `TextTrackList`. | [
-0.529157817363739,
-0.31312960386276245,
0.14773447811603546,
0.35899901390075684,
-0.22407010197639465,
-1.5378693342208862,
0.5531524419784546,
-0.0008466262370347977,
-0.35153621435165405,
0.37914079427719116,
-0.48398780822753906,
0.005221270024776459,
-0.6840769052505493,
0.836127638... |
api/texttracklist/addtrack_event/index.md | API - TextTrackList - addtrack event - Syntax:
Use the event name in methods like `addEventListener()`, or set an event handler property.
Example:
addEventListener("addtrack", (event) => { })
onaddtrack = (event) => { } | [
0.1486172080039978,
-0.7936250567436218,
-0.051499202847480774,
0.6106460094451904,
-0.022563986480236053,
-1.6562511920928955,
0.06790535897016525,
0.5653833150863647,
0.09424801170825958,
0.2156061828136444,
-0.9918012022972107,
0.055665649473667145,
-0.5894417762756348,
0.37977233529090... |
api/texttracklist/addtrack_event/index.md | API - TextTrackList - addtrack event - Event type:
A `TrackEvent`. Inherits from `Event`. | [
-0.3268352746963501,
-0.6482048630714417,
0.29361724853515625,
0.027147524058818817,
-0.47094839811325073,
-1.41370689868927,
0.09275586158037186,
0.6509289741516113,
0.053069740533828735,
0.5495431423187256,
-0.48909759521484375,
0.146907240152359,
-0.25088006258010864,
0.3104100823402405... |
api/texttracklist/addtrack_event/index.md | API - TextTrackList - addtrack event - Examples:
Using `addEventListener()`:
Example:
const mediaElement = document.querySelector("video, audio");
mediaElement.textTracks.addEventListener("addtrack", (event) => {
console.log(`Text track: ${event.track.label} added`);
});
Using the `onaddtrack` event handler prop... | [
-0.2537473142147064,
-0.7757308483123779,
-0.45014429092407227,
0.8876728415489197,
-0.13306941092014313,
-1.1101046800613403,
-0.40776193141937256,
0.2369212806224823,
-0.43241459131240845,
0.22981467843055725,
-0.10145500302314758,
-0.3242699205875397,
-0.1553039848804474,
0.232686370611... |
api/fedcm_api/rp_sign-in/index.md | API - FedCM API - RP sign-in:
This article describes the process by which a `relying party` (RP) can use the Federated Credential Management (FedCM) API to perform a federated sign-in via an `identity provider` (IdP). | [
-0.3729828894138336,
-0.34866809844970703,
0.47369760274887085,
0.6358202695846558,
-0.3836613595485687,
-0.5088858604431152,
0.9099631905555725,
0.0741509199142456,
0.33365288376808167,
0.2412835657596588,
-0.5758273601531982,
0.09132818877696991,
0.4710569381713867,
-0.13899563252925873,... |
api/fedcm_api/rp_sign-in/index.md | API - FedCM API - RP sign-in - Calling the `get()` method:
RPs can call `navigator.credentials.get()` with an `identity` option to request that a user be given the option to sign in to the RP with a choice of existing IdP accounts. The IdPs identify the RP by its `clientId`, which was issued by each IdP to the RP in a... | [
-0.24736982583999634,
-0.23284614086151123,
-0.8392919898033142,
-0.22994780540466309,
-0.5356701016426086,
-1.3402215242385864,
0.7817646265029907,
-0.009284280240535736,
0.5799123048782349,
0.6284926533699036,
-0.6388213038444519,
-0.11836007982492447,
-0.007673116400837898,
-0.232456624... |
api/fedcm_api/rp_sign-in/index.md | API - FedCM API - RP sign-in - Calling the `get()` method - The `IdentityCredential.token` object:
The `IdentityCredential` includes a `token` property which the RP can use to sign the user in.
The FedCM API does not define the structure of the `token` object or what the RP should do with it: this depends entirely on... | [
0.42306649684906006,
-0.1348647177219391,
-0.8232576847076416,
0.25095850229263306,
-0.27756446599960327,
-1.387376308441162,
0.7650658488273621,
0.9431774616241455,
-0.27202942967414856,
0.4004650413990021,
-0.7238364815711975,
0.6158597469329834,
0.30577099323272705,
-0.17507538199424744... |
api/fedcm_api/rp_sign-in/index.md | API - FedCM API - RP sign-in - Calling the `get()` method - Example request:
A typical request might look like this:
Example:
async function signIn() {
const identityCredential = await navigator.credentials.get({
identity: {
context: "signup",
providers: [
{
configURL: "https://ac... | [
0.15467232465744019,
0.3065219819545746,
-0.7998015284538269,
-0.4359513819217682,
-0.23988470435142517,
-0.9884804487228394,
0.9988219738006592,
0.9850285053253174,
-0.3703649044036865,
0.45761775970458984,
-0.46305155754089355,
0.030717328190803528,
-0.03634478524327278,
-0.0184052512049... |
api/fedcm_api/rp_sign-in/index.md | API - FedCM API - RP sign-in - FedCM sign-in flow:
There are three parties involved in the sign-in flow — the RP app, the browser itself, and the IdP. The following diagram summarizes what is happening visually.
The flow is as follows:
- The RP invokes `navigator.credentials.get()` to start off the sign-in flow.
- F... | [
0.21232503652572632,
0.2912719249725342,
-0.4270869791507721,
-0.57107013463974,
-0.0410124696791172,
-0.7381236553192139,
0.9046387076377869,
1.5110608339309692,
-0.4839121401309967,
0.19119228422641754,
-0.40208539366722107,
0.7183634042739868,
-0.2808578312397003,
0.11710390448570251,
... |
api/fedcm_api/rp_sign-in/index.md | API - FedCM API - RP sign-in - Active versus passive mode:
There are two different UI modes the browser can provide to an RP user when they sign-in via the FedCM API, `active` and `passive` mode. Which mode is used for sign-in is controlled by the `mode` option of the `identity` object:
Example:
async function signI... | [
0.5490727424621582,
-0.5726128816604614,
-0.7939131259918213,
-0.18324950337409973,
0.008224725723266602,
-0.5416861176490784,
0.9707270860671997,
1.2910516262054443,
-0.2443099319934845,
0.4301539361476898,
0.08534495532512665,
0.37140151858329773,
-0.017596326768398285,
0.279427856206893... |
api/fedcm_api/rp_sign-in/index.md | API - FedCM API - RP sign-in - Auto-reauthentication:
FedCM auto-reauthentication lets users reauthenticate automatically when they try to sign in to an RP again after their initial authentication using FedCM. "Initial authentication" refers to when the user creates an account or signs into the RP's website via the Fe... | [
0.3897045850753784,
-0.627943754196167,
-0.1987031102180481,
0.49531280994415283,
0.22924089431762695,
-0.8853009939193726,
0.6210357546806335,
0.8995823860168457,
-0.13703203201293945,
0.644010603427887,
-0.20482715964317322,
0.6606777310371399,
0.17941097915172577,
0.5957139730453491,
... |
api/fedcm_api/rp_sign-in/index.md | API - FedCM API - RP sign-in - Disconnecting a federated sign-in:
The RP may disconnect a specified federated sign-in account from the associated IdP by invoking `IdentityCredential.disconnect()`. This function can be called from a top-level RP frame.
Example:
IdentityCredential.disconnect({
configURL: "https://id... | [
0.3206884562969208,
-0.5080502033233643,
-0.9214397668838501,
0.17953570187091827,
-0.44013407826423645,
-1.2206625938415527,
0.9669616222381592,
-0.27875441312789917,
0.27792465686798096,
0.3038567006587982,
-0.8941887021064758,
-0.0347498320043087,
0.055609263479709625,
0.166767314076423... |
api/idbobjectstore/index.md | API - IDBObjectStore:
Note: This feature is available in Web Workers.
The `IDBObjectStore` interface of the IndexedDB API represents an object store in a database. Records within an object store are sorted according to their keys. This sorting enables fast insertion, look-up, and ordered retrieval. | [
0.6739127039909363,
-0.7321478724479675,
-0.4140172600746155,
1.0477241277694702,
0.15684619545936584,
-1.1393766403198242,
0.17065539956092834,
0.32656577229499817,
0.9475845098495483,
0.49915391206741333,
-0.47166433930397034,
0.27530205249786377,
0.4099384844303131,
0.27995026111602783,... |
api/idbobjectstore/index.md | API - IDBObjectStore - Instance properties:
- `IDBObjectStore.indexNames` (read only): A list of the names of indexes on objects in this object store.
- `IDBObjectStore.keyPath` (read only): The key path of this object store. If this attribute is `null`, the application must provide a key for each modification operati... | [
0.07311573624610901,
-0.9343450665473938,
-0.47955968976020813,
1.0470733642578125,
-0.12751337885856628,
-1.1122064590454102,
0.778156042098999,
0.19162486493587494,
0.36803922057151794,
-0.17565962672233582,
-0.9203232526779175,
0.021604150533676147,
0.21475303173065186,
0.50357592105865... |
api/idbobjectstore/index.md | API - IDBObjectStore - Instance methods:
- `IDBObjectStore.add()`: Returns an `IDBRequest` object and, in a separate thread, creates a structured clone of the `value`, and stores the cloned value in the object store. This is for adding new records to an object store.
- `IDBObjectStore.clear()`: Creates and immediately... | [
0.9965639114379883,
0.1079898327589035,
-0.49454665184020996,
0.496246337890625,
0.7025936841964722,
-0.6253920197486877,
1.147678256034851,
1.4409081935882568,
-0.7005596160888672,
-0.42801225185394287,
-0.44187235832214355,
0.3079577088356018,
-0.26693814992904663,
1.0734974145889282,
... |
api/idbobjectstore/index.md | API - IDBObjectStore - Example:
This example shows a variety of different uses of object stores, from updating the data structure with `IDBObjectStore.createIndex` inside an `onupgradeneeded` function, to adding a new item to our object store with `IDBObjectStore.add`. For a full working example, see our To-do Notific... | [
0.3593697249889374,
-0.2594867944717407,
-0.3418124318122864,
0.743247926235199,
0.19861865043640137,
-0.9240409135818481,
0.6880300641059875,
1.0076385736465454,
-0.17035681009292603,
0.06818453967571259,
-0.6676532030105591,
0.42894238233566284,
-0.01400570385158062,
0.8971267342567444,
... |
api/idbobjectstore/getallrecords/index.md | API - IDBObjectStore - getAllRecords:
The `getAllRecords()` method of the `IDBObjectStore` interface retrieves all records (including primary keys and values) from the object store.
`getAllRecords()` effectively combines the functionality of `getAllKeys()` and `getAll()` by enumerating both primary keys and values at... | [
0.41136085987091064,
-0.6447350978851318,
-1.2052720785140991,
0.7603658437728882,
-0.1433211863040924,
-1.2561134099960327,
0.4559580087661743,
1.5404828786849976,
-0.29774248600006104,
-0.053699083626270294,
-0.564063310623169,
0.33306679129600525,
0.5514837503433228,
0.5987644195556641,... |
api/idbobjectstore/getallrecords/index.md | API - IDBObjectStore - getAllRecords - Syntax:
Example:
getAllRecords()
getAllRecords(options) | [
-0.5664361715316772,
-0.2168089747428894,
-0.7762945890426636,
-0.05948277935385704,
-0.614342987537384,
-0.9939163327217102,
0.3359774649143219,
0.5200533270835876,
0.055046021938323975,
-0.23480945825576782,
-0.16045404970645905,
0.2572079300880432,
0.17429685592651367,
0.836250245571136... |
api/idbobjectstore/getallrecords/index.md | API - IDBObjectStore - getAllRecords - Syntax - Parameters:
An options object whose properties can include:
- `query` (optional): A key or an `IDBKeyRange` identifying the records to retrieve. If this value is `null` or not specified, the browser will use an unbound key range.
- `count` (optional): The number of reco... | [
0.3139649033546448,
-0.4845356345176697,
-1.0190937519073486,
0.769934892654419,
0.16797009110450745,
-1.1611782312393188,
0.8235585689544678,
1.1415534019470215,
-0.009758852422237396,
0.29739874601364136,
-0.6183408498764038,
0.5558750033378601,
0.13376308977603912,
0.5725213885307312,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.