Chromium Code Reviews| 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 var t = async_test('Sandboxed iframe should not be able to register service worker with link rel'); | |
| 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 }); | |
|
falken
2016/09/23 01:22:33
Since this is serviceworker/ it should use the som
jww
2016/09/23 04:34:47
Yikes! I had no idea. I tried to update to match t
| |
| 20 </script> | |
| 21 <iframe src="resources/iframe-register-link-element.html" sandbox="allow-scr ipts"></iframe> | |
| 22 </body> | |
| OLD | NEW |