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

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

Issue 2009453002: service worker: Don't control a subframe of an insecure context (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: refactor errorMessage 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 // The subframe messages us.
8 window.addEventListener('message', e => {
9 window.parent.postMessage(e.data, '*');
10 });
11
12 var iframe = document.createElement('iframe');
13 iframe.src = get_host_info().HTTP_ORIGIN +
14 '/serviceworker/resources/insecure-inscope.html';
15 document.body.appendChild(iframe);
16 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698