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