diff options
author | Matt A. Tobin <mattatobin@localhost.localdomain> | 2018-02-02 04:16:08 -0500 |
---|---|---|
committer | Matt A. Tobin <mattatobin@localhost.localdomain> | 2018-02-02 04:16:08 -0500 |
commit | 5f8de423f190bbb79a62f804151bc24824fa32d8 (patch) | |
tree | 10027f336435511475e392454359edea8e25895d /testing/web-platform/tests/service-workers/stub-3.2.10-navigator-service-worker-oncontrollerchange.html | |
parent | 49ee0794b5d912db1f95dce6eb52d781dc210db5 (diff) | |
download | UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.gz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.lz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.xz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.zip |
Add m-esr52 at 52.6.0
Diffstat (limited to 'testing/web-platform/tests/service-workers/stub-3.2.10-navigator-service-worker-oncontrollerchange.html')
-rw-r--r-- | testing/web-platform/tests/service-workers/stub-3.2.10-navigator-service-worker-oncontrollerchange.html | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/testing/web-platform/tests/service-workers/stub-3.2.10-navigator-service-worker-oncontrollerchange.html b/testing/web-platform/tests/service-workers/stub-3.2.10-navigator-service-worker-oncontrollerchange.html new file mode 100644 index 000000000..478860146 --- /dev/null +++ b/testing/web-platform/tests/service-workers/stub-3.2.10-navigator-service-worker-oncontrollerchange.html @@ -0,0 +1,45 @@ +<!DOCTYPE html> +<html> +<title>Service Workers: oncontrollerchange</title> + <head> + <link rel="help" href="https://w3c.github.io/ServiceWorker/#navigator-service-worker-oncontrollerchange"> + <script src="/resources/testharness.js"></script> + <script src="/resources/testharnessreport.js"></script> + + </head> + <body> + +<!-- + +`navigator.serviceWorker.oncontrollerchange` is the [event handler][1] that +must be supported as attribute by the `[ServiceWorkerContainer][2]` object. A +`controllerchange` event using the `[Event][3]` interface is dispatched on +`[ServiceWorkerContainer][2]` object (See step 7 of the [_Activation +algorithm][4]) when the associated Service Worker [registration][5] for the +document enters the [activation process][6]. When the [activation process][6] +is triggered by `replace()` method call within the event handler of the +`install` event, `navigator.serviceWorker.controller` immediately reflects the +[active worker][7] as the Service Worker that [controls][8] the document. + +[1]: http://goo.gl/rBfiz0 +[2]: #service-worker-container-interface +[3]: http://goo.gl/Mzv7Dv +[4]: #activation-algorithm +[5]: #registration +[6]: #activation-process +[7]: #active-worker +[8]: #document-control + +--> + + + + <script> + test(function() { + // not_implemented(); + }, "There are no tests for section oncontrollerchange so far."); + </script> + + </body> +</html> + |