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

Side by Side Diff: LayoutTests/http/tests/serviceworker/chromium/resources/sandboxed-iframe-navigator-serviceworker-iframe.html

Issue 1199183002: Throw a SecurityError when navigator.serviceWorker is accessed in a sandboxed iframe. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: use ASSERT_NO_EXCEPTION Created 5 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
« no previous file with comments | « no previous file | LayoutTests/http/tests/serviceworker/chromium/sandboxed-iframe-navigator-serviceworker.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <script>
2 window.onmessage = function (e) {
3 var id = e.data['id'];
4 try {
5 var sw = window.navigator.serviceWorker;
6 } catch (e) {
7 window.top.postMessage({id: id, result:e.toString()}, '*');
8 return;
9 }
10 window.top.postMessage({id: id, result:'ok'}, '*');
11 };
12 </script>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/http/tests/serviceworker/chromium/sandboxed-iframe-navigator-serviceworker.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698