Index: Source/web/WebLocalFrameImpl.cpp |
diff --git a/Source/web/WebLocalFrameImpl.cpp b/Source/web/WebLocalFrameImpl.cpp |
index b29dbe64f152eed6977f8b870b52a81721fceff3..a713db687284ea41e728dcd9f28891a755c26ad8 100644 |
--- a/Source/web/WebLocalFrameImpl.cpp |
+++ b/Source/web/WebLocalFrameImpl.cpp |
@@ -1803,7 +1803,7 @@ void WebLocalFrameImpl::loadJavaScriptURL(const KURL& url) |
return; |
String scriptResult = toCoreString(v8::Handle<v8::String>::Cast(result)); |
if (!frame()->navigationScheduler().locationChangePending()) |
- frame()->document()->loader()->replaceDocument(scriptResult, ownerDocument.get()); |
+ frame()->loader().replaceDocumentWhileExecutingJavaScriptURL(scriptResult, ownerDocument.get()); |
} |
void WebLocalFrameImpl::addStyleSheetByURL(const WebString& url) |