OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <title>Service Workers: controller</title> |
| 4 <head> |
| 5 <link rel="help" href="https://w3c.github.io/ServiceWorker/#navigator-se
rvice-worker-controller"> |
| 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.controller` must return a [ServiceWorker][1] object |
| 15 representing the [active worker][2] that currently handles resource requests |
| 16 for the document. `navigator.serviceWorker.controller` returns `null` if the |
| 17 current document was not [created under a Service Worker][3] (See step 6-1 of |
| 18 [_OnFetchRequest][3] algorithm) or the request is a force refresh |
| 19 (shift+refresh). |
| 20 |
| 21 [1]: #service-worker-interface |
| 22 [2]: #active-worker |
| 23 [3]: #on-fetch-request-algorithm |
| 24 |
| 25 --> |
| 26 |
| 27 |
| 28 |
| 29 <script> |
| 30 test(function() { |
| 31 // not_implemented(); |
| 32 }, "There are no tests for section controller so far."); |
| 33 </script> |
| 34 |
| 35 </body> |
| 36 </html> |
| 37 |
OLD | NEW |