OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <title>Service Workers: onreloadpage</title> |
| 4 <head> |
| 5 <link rel="help" href="https://w3c.github.io/ServiceWorker/#navigator-se
rvice-worker-onreloadpage"> |
| 6 <script src="/resources/testharness.js"></script> |
| 7 <script src="/resources/testharnessreport.js"></script> |
| 8 |
| 9 </head> |
| 10 <body> |
| 11 |
| 12 <!-- |
| 13 |
| 14 `navigator.serviceWorker.onreloadpage` is the [event handler][1] that must be |
| 15 supported as attribute by the `[ServiceWorkerContainer][2]` object. An event |
| 16 named `reloadpage` using the `[ReloadPageEvent][3]` interface is dispatched on |
| 17 `[ServiceWorkerContainer][2]` object when the page reload is triggered by the |
| 18 `[self.clients.reloadAll()][4]` method call from the [active worker][5], |
| 19 represented by its associated [ServiceWorkerGlobalScope][6] object, for the |
| 20 document. |
| 21 |
| 22 [1]: http://goo.gl/rBfiz0 |
| 23 [2]: #service-worker-container-interface |
| 24 [3]: #reload-page-event-interface |
| 25 [4]: #reloadall-method |
| 26 [5]: #active-worker |
| 27 [6]: #service-worker-global-scope-interface |
| 28 |
| 29 --> |
| 30 |
| 31 |
| 32 |
| 33 <script> |
| 34 test(function() { |
| 35 // not_implemented(); |
| 36 }, "There are no tests for section onreloadpage so far."); |
| 37 </script> |
| 38 |
| 39 </body> |
| 40 </html> |
| 41 |
OLD | NEW |