OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <title>Service Workers: reloadAll()</title> |
| 4 <head> |
| 5 <link rel="help" href="https://w3c.github.io/ServiceWorker/#reloadall-me
thod"> |
| 6 <script src="/resources/testharness.js"></script> |
| 7 <script src="/resources/testharnessreport.js"></script> |
| 8 |
| 9 </head> |
| 10 <body> |
| 11 |
| 12 <!-- |
| 13 |
| 14 `reloadAll()` provides a mechanism for the worker to request synchronized |
| 15 re-fetch of all documents whose URLs match the registration's [URL scope][1]. |
| 16 An event named `reloadpage` is dispatched on the `navigator.serviceWorker` |
| 17 object of each document. The in-document handlers may allow the event to |
| 18 continue, request an extension (via [`e.waitUntil()`][2]), or cancel the |
| 19 collective reload by calling [`e.preventDefault()`][3]. |
| 20 |
| 21 [1]: #url-scope |
| 22 [2]: #wait-until-method |
| 23 [3]: http://goo.gl/2zH6ie |
| 24 |
| 25 --> |
| 26 |
| 27 |
| 28 |
| 29 <script> |
| 30 test(function() { |
| 31 // not_implemented(); |
| 32 }, "There are no tests for section reloadAll() so far."); |
| 33 </script> |
| 34 |
| 35 </body> |
| 36 </html> |
| 37 |
OLD | NEW |