| Index: third_party/WebKit/LayoutTests/fast/frames/open-without-opener-frame-crash.html
|
| diff --git a/third_party/WebKit/LayoutTests/fast/frames/open-without-opener-frame-crash.html b/third_party/WebKit/LayoutTests/fast/frames/open-without-opener-frame-crash.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..7c012e09e77dff8d35964125acc8c3c12e9307a4
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/fast/frames/open-without-opener-frame-crash.html
|
| @@ -0,0 +1,34 @@
|
| +<!DOCTYPE html>
|
| +<html>
|
| +<head>
|
| +<script src="../../resources/js-test.js"></script>
|
| +</head>
|
| +<body>
|
| +<script>
|
| +description('Test that document.open() doesn\'t crash when being opened from a frame-less context.');
|
| +
|
| +window.jsTestIsAsync = true;
|
| +
|
| +if (window.testRunner) {
|
| + testRunner.dumpAsText();
|
| + testRunner.waitUntilDone();
|
| + testRunner.setCanOpenWindows();
|
| +}
|
| +
|
| +(function() {
|
| + if (location.hash == "#stop")
|
| + return;
|
| +
|
| + blankWindow = open(location + "#stop");
|
| + blankWindow.onload = function() {
|
| + blankFunc = blankWindow.Function;
|
| + blankWindow.eval("location = 'about:blank'");
|
| + setTimeout(function() {
|
| + blankFunc( "(" + function() { targetWindow = open(); } + ")()")();
|
| + finishJSTest();
|
| + });
|
| + };
|
| +})();
|
| +</script>
|
| +</body>
|
| +</html>
|
|
|