blob: 69d771ce0bc1ef8dc2d3b2682d0bc61d393af8be [file] [log] [blame]
<html>
<head>
<script>
var frames = 2;
if (window.testRunner) {
testRunner.dumpAsText();
testRunner.dumpChildFramesAsText();
internals.settings.setStorageBlockingPolicy('BlockThirdParty');
}
function decrement() {
--frames;
if (!frames && window.testRunner)
internals.settings.setStorageBlockingPolicy('AllowAll');
}
</script>
<body>
<p>This iframe should have private browsing enabled:</p>
<iframe src="http://localhost:8000/security/resources/cross-origin-iframe-for-plugin.html" onload="decrement()"></iframe>
<p>This iframe should not have private browsing enabled:</p>
<iframe src="http://127.0.0.1:8000/security/resources/cross-origin-iframe-for-plugin.html" onload="decrement()"></iframe>
</body>
</html>