OLD | NEW |
| (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> | |
OLD | NEW |