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

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

Issue 2061203002: WIP Reland: service worker: Don't control a subframe of an insecure context Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: maybe fix drmemory 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 <title>Insecure inscope page</title>
4 <script>
5 // The top window messages us when it wants to check for a controller.
6 window.onmessage = (e => {
7 if (navigator.serviceWorker.controller === null)
8 window.top.postMessage('PASS', '*');
9 else
10 window.top.postMessage('FAIL', '*');
11 });
12 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698