OLD | NEW |
| (Empty) |
1 <html> | |
2 <head> | |
3 <script> | |
4 var frames = 2; | |
5 if (window.testRunner) { | |
6 testRunner.dumpAsText(); | |
7 testRunner.dumpChildFramesAsText(); | |
8 testRunner.waitUntilDone(); | |
9 internals.settings.setStorageBlockingPolicy('BlockThirdParty'); | |
10 } | |
11 | |
12 function decrement() { | |
13 --frames; | |
14 if (!frames && window.testRunner) { | |
15 internals.settings.setStorageBlockingPolicy('AllowAll'); | |
16 testRunner.notifyDone(); | |
17 } | |
18 } | |
19 | |
20 window.onmessage = decrement; | |
21 </script> | |
22 </head> | |
23 <body> | |
24 <p>This iframe should return a security error:</p> | |
25 <iframe src="http://localhost:8000/security/resources/cross-origin-iframe-for-sh
ared-worker.html"></iframe> | |
26 <p>This iframe should not return any errors:</p> | |
27 <iframe src="http://127.0.0.1:8000/security/resources/cross-origin-iframe-for-sh
ared-worker.html"></iframe> | |
28 </body> | |
29 </html> | |
OLD | NEW |