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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/insecure-parent.html

Issue 2071433003: Reland: service worker: Don't control a subframe of an insecure context (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: revised Created 4 years, 6 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
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <meta charset="utf-8">
3 <script src="../../resources/get-host-info.js?pipe=sub"></script>
4 <title>Page Title</title>
5 <body></body>
6 <script>
7 var iframe = document.createElement('iframe');
8 iframe.src = get_host_info().HTTP_ORIGIN +
9 '/serviceworker/resources/insecure-inscope.html';
10 document.body.appendChild(iframe);
11
12 // The top frame messages us to message the subframe.
13 window.addEventListener('message', e => {
14 iframe.contentWindow.postMessage(e.data, '*');
15 });
16 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698