OLD | NEW |
| (Empty) |
1 <html> | |
2 <head> | |
3 <script> | |
4 if (window.testRunner) { | |
5 testRunner.waitUntilDone(); | |
6 testRunner.dumpAsText(); | |
7 testRunner.dumpChildFramesAsText(); | |
8 } | |
9 | |
10 window.onmessage = function() { | |
11 if (window.testRunner) | |
12 internals.settings.setStorageBlockingPolicy('BlockAll'); | |
13 for (var i = 0; i < window.frames.length; ++i) | |
14 window.frames[i].postMessage('blocked', '*'); | |
15 | |
16 window.onmessage = function() { | |
17 if (window.testRunner) { | |
18 internals.settings.setStorageBlockingPolicy('AllowAll'); | |
19 testRunner.notifyDone(); | |
20 } | |
21 } | |
22 } | |
23 </script> | |
24 </head> | |
25 <body> | |
26 <p>This iframe should return only one security error:</p> | |
27 <iframe src="http://127.0.0.1:8000/security/resources/iframe-for-storage-blockin
g-changed-shared-worker.html"></iframe> | |
28 </body> | |
29 </html> | |
OLD | NEW |