Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(487)

Unified Diff: content/test/data/service_worker/disable_web_security_register.html

Issue 2196633002: [ServiceWorker] Don't check the origin equality when disable-web-security flag is set. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: incorporated nhiroki's comment Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/test/data/service_worker/disable_web_security_register.html
diff --git a/content/test/data/service_worker/disable_web_security_register.html b/content/test/data/service_worker/disable_web_security_register.html
new file mode 100644
index 0000000000000000000000000000000000000000..c82ccb5239beb09ad46711c9359baefc4ac7146e
--- /dev/null
+++ b/content/test/data/service_worker/disable_web_security_register.html
@@ -0,0 +1,8 @@
+<!DOCTYPE html>
+<body>
+<script>
+var scope = location.search.substring(1);
+navigator.serviceWorker.register(scope + 'fetch_event_blob.js', {scope: scope})
+ .then(_ => { document.title = "PASS"; });
+</script>
+</body>

Powered by Google App Engine
This is Rietveld 408576698