| 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 function decrement() { | |
| 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 | |
| 17 window.onmessage = function() { | |
| 18 if (window.testRunner) { | |
| 19 internals.settings.setStorageBlockingPolicy('AllowAll'); | |
| 20 testRunner.notifyDone(); | |
| 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-websql.html" onload="decrement()"></iframe> | |
| 28 </body> | |
| 29 </html> | |
| OLD | NEW |