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.overridePreference('WebKitStorageBlockingPolicy', 1); | |
9 } | |
10 | |
11 function decrement() { | |
12 --frames; | |
13 if (!frames && window.testRunner) | |
14 testRunner.overridePreference('WebKitStorageBlockingPolicy', 0); | |
15 } | |
16 </script> | |
17 </head> | |
18 <body> | |
19 <p>This iframe should return a security error:</p> | |
20 <iframe src="http://localhost:8000/security/resources/cross-origin-iframe-for-lo
cal-storage.html" onload="decrement()"></iframe> | |
21 <p>This iframe should not return any errors:</p> | |
22 <iframe src="http://127.0.0.1:8000/security/resources/cross-origin-iframe-for-lo
cal-storage.html" onload="decrement()"></iframe> | |
23 </body> | |
24 </html> | |
OLD | NEW |