OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <title>Service Workers: url</title> |
| 4 <head> |
| 5 <link rel="help" href="https://w3c.github.io/ServiceWorker/#service-work
er-url"> |
| 6 <script src="/resources/testharness.js"></script> |
| 7 <script src="/resources/testharnessreport.js"></script> |
| 8 |
| 9 </head> |
| 10 <body> |
| 11 |
| 12 <!-- |
| 13 |
| 14 The `url` attribute must return the [serialization][1] of the URL of the script |
| 15 of the Service Worker, identified by its [URL scope][2], that is associated |
| 16 with the [ServiceWorkerGlobalScope][3] object. The `url` attribute is always an |
| 17 [absolute URL][4] corresponding to the script file which the Service Worker |
| 18 evaluates. |
| 19 |
| 20 In the example in section 3.1.1, the value of |
| 21 `navigator.serviceWorker.controller.url` will be |
| 22 `"https://example.com/service_worker.js"`. |
| 23 |
| 24 |
| 25 |
| 26 [1]: http://url.spec.whatwg.org/#concept-url-serializer |
| 27 [2]: #url-scope |
| 28 [3]: #service-worker-global-scope-interface |
| 29 [4]: http://url.spec.whatwg.org/#concept-absolute-url |
| 30 |
| 31 --> |
| 32 |
| 33 |
| 34 |
| 35 <script> |
| 36 test(function() { |
| 37 // not_implemented(); |
| 38 }, "There are no tests for section url so far."); |
| 39 </script> |
| 40 |
| 41 </body> |
| 42 </html> |
| 43 |
OLD | NEW |