blob: c85ba76792fe482df8f41eee9dcf9727d6be9ea4 [file] [log] [blame]
<!DOCTYPE html>
<html>
<body>
<div id="console"></div>
<script>
if (window.testRunner) {
testRunner.dumpAsText();
testRunner.evaluateScriptInIsolatedWorld(
1,
"frame = document.body.appendChild(document.createElement('iframe'));\n" +
"frame.contentWindow.open = function() { alert('FAIL: contentDocument.open must not invoke contentWindow.open, contentDocument.open must open a new window with only internal implementation.');};\n" +
"w = frame.contentDocument.open(1, 1, 1);\n" +
"if (typeof(w) === 'object')\n" +
"alert('PASS');");
}
</script>
</body>
</html>