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

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

Issue 2869093002: Upstream Service Worker window test to WPT
Patch Set: Incorporate review feedback Created 3 years, 7 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 | « third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/insecure-parent.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
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <meta charset="utf-8"> 2 <meta charset="utf-8">
3 <script src="../../resources/get-host-info.js?pipe=sub"></script> 3 <script src="../../resources/get-host-info.js?pipe=sub"></script>
4 <title>Page Title</title> 4 <title>Page Title</title>
5 <body></body> 5 <body></body>
6 <script> 6 <script>
7 var iframe = document.createElement('iframe'); 7 var iframe = document.createElement('iframe');
8 iframe.src = get_host_info().HTTP_ORIGIN + 8 iframe.src = get_host_info().HTTP_ORIGIN +
9 '/serviceworker/resources/insecure-inscope.html'; 9 '/serviceworker/resources/insecure-inscope.html';
10 document.body.appendChild(iframe); 10 document.body.appendChild(iframe);
11 11
12 // The top frame messages us to message the subframe. 12 // The top frame messages us to message the subframe.
13 window.addEventListener('message', e => { 13 window.addEventListener('message', e => {
14 iframe.contentWindow.postMessage(e.data, '*'); 14 iframe.contentWindow.postMessage(e.data, '*');
15 }); 15 });
16 </script> 16 </script>
OLDNEW
« no previous file with comments | « third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/insecure-parent.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698