| Index: LayoutTests/fast/frames/detach-frame-nested-on-commit-no-crash.html
|
| diff --git a/LayoutTests/fast/frames/detach-frame-nested-on-commit-no-crash.html b/LayoutTests/fast/frames/detach-frame-nested-on-commit-no-crash.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..ac88ef0f6a1d17d792e01a914186a481329cbfb5
|
| --- /dev/null
|
| +++ b/LayoutTests/fast/frames/detach-frame-nested-on-commit-no-crash.html
|
| @@ -0,0 +1,31 @@
|
| +<!DOCTYPE html>
|
| +<html>
|
| +<head>
|
| +<script src="../../resources/js-test.js"></script>
|
| +<script>
|
| +description("Indirectly detaching frames on load completion should not crash.");
|
| +
|
| +window.jsTestIsAsync = true;
|
| +
|
| +function maybeStart()
|
| +{
|
| + window.secondFrame.contentWindow.onunload = function() {
|
| + document.documentElement.removeChild(window.bodyEl);
|
| + setTimeout(finishJSTest, 10);
|
| + };
|
| + window.firstFrame.src = 'about:blank';
|
| +}
|
| +function runTest()
|
| +{
|
| + window.firstFrame = document.createElement('iframe');
|
| + document.body.appendChild(window.firstFrame);
|
| + window.secondFrame = document.createElement('iframe');
|
| + window.secondFrame.src = 'javascript:window.top.maybeStart();';
|
| + window.firstFrame.contentDocument.documentElement.appendChild(window.secondFrame);
|
| +}
|
| +
|
| +window.onload = runTest;
|
| +</script>
|
| +</head>
|
| +<body id=bodyEl>
|
| +</html>
|
|
|