Index: Source/web/tests/WebFrameTest.cpp |
diff --git a/Source/web/tests/WebFrameTest.cpp b/Source/web/tests/WebFrameTest.cpp |
index 9a04cf12e1414d581bd98598fc28e4cc3b6871dc..84c623244f0d7c561266a6122d1fd6ea83d56203 100644 |
--- a/Source/web/tests/WebFrameTest.cpp |
+++ b/Source/web/tests/WebFrameTest.cpp |
@@ -5332,7 +5332,7 @@ TEST_F(WebFrameTest, DidWriteToInitialDocumentBeforeModalDialog) |
// initial empty document state of the state machine. We normally set a |
// timer to notify the client. |
newView->mainFrame()->executeScript( |
- WebScriptSource("window.opener.document.write('Modified');")); |
+ WebScriptSource("window.opener.document.write('Modified'); window.opener.document.close();")); |
EXPECT_FALSE(webFrameClient.m_didAccessInitialDocument); |
// Make sure that a modal dialog forces us to notify right away. |