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

Side by Side Diff: content/test/data/service_worker/disable_web_security_update.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, 4 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 unified diff | Download patch
« no previous file with comments | « content/test/data/service_worker/disable_web_security_unregister.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <body>
3 <script>
4 var iframe = document.createElement('iframe');
5 iframe.onload = (_ => {
6 if (iframe.contentWindow.location.origin == location.origin) {
7 document.title = "FAIL";
8 return;
9 }
10 iframe.contentWindow.navigator.serviceWorker.ready
11 .then(reg => reg.update())
12 .then(_ => { document.title = "PASS"; })
13 });
14 iframe.src = location.search.substring(1);
15 document.body.appendChild(iframe);
16 </script>
17 </body>
OLDNEW
« no previous file with comments | « content/test/data/service_worker/disable_web_security_unregister.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698