OLD | NEW |
| (Empty) |
1 <!DOCTYPE html> | |
2 <html> | |
3 <head> | |
4 <script> | |
5 var frames = 2; | |
6 if (window.testRunner) { | |
7 testRunner.dumpAsText(); | |
8 testRunner.dumpChildFramesAsText(); | |
9 internals.settings.setStorageBlockingPolicy('BlockThirdParty'); | |
10 } | |
11 | |
12 function decrement() { | |
13 --frames; | |
14 if (!frames && window.testRunner) | |
15 internals.settings.setStorageBlockingPolicy('AllowAll'); | |
16 } | |
17 </script> | |
18 </head> | |
19 <body> | |
20 <p>The first iframe below should return a security error, and the second sho
uld successfully open the database.</p> | |
21 <iframe src="http://localhost:8000/security/resources/cross-origin-iframe-fo
r-indexeddb.html" onload="decrement()"></iframe> | |
22 <iframe src="http://127.0.0.1:8000/security/resources/cross-origin-iframe-fo
r-indexeddb.html" onload="decrement()"></iframe> | |
23 </body> | |
24 </html> | |
OLD | NEW |