Index: content/test/data/service_worker/disable_web_security_update.html |
diff --git a/content/test/data/service_worker/disable_web_security_update.html b/content/test/data/service_worker/disable_web_security_update.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..be745a2316b0222058fb2fa634bb3dd2eef9c144 |
--- /dev/null |
+++ b/content/test/data/service_worker/disable_web_security_update.html |
@@ -0,0 +1,17 @@ |
+<!DOCTYPE html> |
+<body> |
+<script> |
+var iframe = document.createElement('iframe'); |
+iframe.onload = (_ => { |
+ if (iframe.contentWindow.location.origin == location.origin) { |
+ document.title = "FAIL"; |
+ return; |
+ } |
+ iframe.contentWindow.navigator.serviceWorker.ready |
+ .then(reg => reg.update()) |
+ .then(_ => { document.title = "PASS"; }) |
+ }); |
+iframe.src = location.search.substring(1); |
+document.body.appendChild(iframe); |
+</script> |
+</body> |