| 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.setPrivateBrowsingEnabled(true); | |
| 9 testRunner.waitUntilDone(); | |
| 10 } | |
| 11 | |
| 12 function decrement() { | |
| 13 --frames; | |
| 14 if (!frames) { | |
| 15 if (window.testRunner) | |
| 16 testRunner.setPrivateBrowsingEnabled(false); | |
| 17 for (var i = 0; i < 2; ++i) { | |
| 18 var frame = document.getElementsByTagName('iframe')[i].c
ontentWindow; | |
| 19 frame.postMessage('loaded', '*'); | |
| 20 } | |
| 21 frames = 2; | |
| 22 } | |
| 23 } | |
| 24 | |
| 25 window.onmessage = function() { | |
| 26 --frames; | |
| 27 if (window.testRunner) | |
| 28 testRunner.notifyDone(); | |
| 29 } | |
| 30 </script> | |
| 31 <body> | |
| 32 <p>This iframe should not have private browsing enabled:</p> | |
| 33 <iframe src="http://localhost:8000/security/resources/cross-origin-iframe-for-pl
ugin-async.html" onload="decrement()"></iframe> | |
| 34 <p>This iframe should not have private browsing enabled:</p> | |
| 35 <iframe src="http://127.0.0.1:8000/security/resources/cross-origin-iframe-for-pl
ugin-async.html" onload="decrement()"></iframe> | |
| 36 </body> | |
| 37 </html> | |
| OLD | NEW |