blob: 88eef149e4a194048498bf2bc35f5645ae35c5d3 [file] [log] [blame]
<html>
<head>
<script>
if (window.testRunner) {
testRunner.waitUntilDone();
testRunner.dumpAsText();
testRunner.dumpChildFramesAsText();
}
function decrement() {
if (window.testRunner)
internals.settings.setStorageBlockingPolicy('BlockAll');
for (var i = 0; i < window.frames.length; ++i)
window.frames[i].postMessage('blocked', '*');
}
window.onmessage = function() {
if (window.testRunner) {
internals.settings.setStorageBlockingPolicy('AllowAll');
testRunner.notifyDone();
}
}
</script>
</head>
<body>
<p>This iframe should return only one security error:</p>
<iframe src="http://127.0.0.1:8000/security/resources/iframe-for-storage-blocking-changed-websql.html" onload="decrement()"></iframe>
</body>
</html>