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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/serviceworker/sandbox-iframe-register-link-element.html

Issue 2896643002: Upstream service wrkr "iframe sandbox" test to WPT (Closed)
Patch Set: 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/iframe-register-link-element.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
(Empty)
1 <!DOCTYPE html>
2 <script src="../resources/testharness.js"></script>
3 <script src="../resources/testharnessreport.js"></script>
4 <script src="resources/test-helpers.js"></script>
5 <script src="resources/registration-tests.js"></script>
6 <body>
7 <script>
8 async_test(function(t) {
9 window.addEventListener('message', function(e) {
10 if (e.data == 'error') {
11 t.step(function() {
12 t.done();
13 });
14 } else {
15 t.step(function() {
16 assert_unreached('iframe successfully loaded service worker');
17 });
18 }
19 });
20 }, 'Sandboxed iframe should not be able to register service worker with link r el');
21 </script>
22 <iframe src="resources/iframe-register-link-element.html" sandbox="allow-scripts "></iframe>
23 </body>
OLDNEW
« no previous file with comments | « third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/iframe-register-link-element.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698