Chromium Code Reviews| Index: content/test/data/service_worker/disable_web_security_unregister.html |
| diff --git a/content/test/data/service_worker/disable_web_security_unregister.html b/content/test/data/service_worker/disable_web_security_unregister.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..198e76a730eee64211b2cfe4b363906c63bcc96b |
| --- /dev/null |
| +++ b/content/test/data/service_worker/disable_web_security_unregister.html |
| @@ -0,0 +1,13 @@ |
| +<!DOCTYPE html> |
| +<body> |
| +<script> |
| +var iframe = document.createElement('iframe'); |
| +iframe.onload = (_ => { |
|
nhiroki
2016/08/01 04:32:45
Can you verify iframe is on a different origin fro
horo
2016/08/01 07:40:55
Done.
|
| + iframe.contentWindow.navigator.serviceWorker.ready |
| + .then(reg => reg.unregister() ) |
|
shimazu
2016/08/01 05:06:20
+2 indent?
# There seems to be two types of codin
shimazu
2016/08/01 05:06:20
Extra space before the last ')'
horo
2016/08/01 07:40:56
Done.
horo
2016/08/01 07:40:56
Done.
We use type 2.
See http://www.chromium.org/b
|
| + .then(_ => { document.title = "PASS"; }) |
| +}); |
| +iframe.src = location.search.substring(1); |
| +document.body.appendChild(iframe); |
| +</script> |
| +</body> |