| OLD | NEW |
| (Empty) |
| 1 <html> | |
| 2 <head> | |
| 3 <script> | |
| 4 if (window.testRunner) { | |
| 5 testRunner.waitUntilDone(); | |
| 6 testRunner.dumpAsText(); | |
| 7 testRunner.dumpChildFramesAsText(); | |
| 8 testRunner.setPrivateBrowsingEnabled(true); | |
| 9 } | |
| 10 | |
| 11 function decrement() { | |
| 12 if (window.testRunner) { | |
| 13 internals.settings.setStorageBlockingPolicy('BlockAll'); | |
| 14 testRunner.setPrivateBrowsingEnabled(false); | |
| 15 } | |
| 16 for (var i = 0; i < window.frames.length; ++i) | |
| 17 window.frames[i].postMessage('blocked', '*'); | |
| 18 } | |
| 19 | |
| 20 window.onmessage = function() { | |
| 21 if (window.testRunner) { | |
| 22 internals.settings.setStorageBlockingPolicy('AllowAll'); | |
| 23 testRunner.notifyDone(); | |
| 24 } | |
| 25 } | |
| 26 </script> | |
| 27 </head> | |
| 28 <body> | |
| 29 <p>This iframe should have private browsing enabled:</p> | |
| 30 <iframe src="http://127.0.0.1:8000/security/resources/cross-origin-iframe-for-pl
ugin-async.html" onload="decrement()"></iframe> | |
| 31 </body> | |
| 32 </html> | |
| OLD | NEW |