Index: third_party/WebKit/Source/core/loader/FrameLoader.cpp |
diff --git a/third_party/WebKit/Source/core/loader/FrameLoader.cpp b/third_party/WebKit/Source/core/loader/FrameLoader.cpp |
index 53f7684b8db3ea884fdd141dbc5b29bc0ca880a9..6ee1cad35c2d861a1c4a86350297f0ffbc10894f 100644 |
--- a/third_party/WebKit/Source/core/loader/FrameLoader.cpp |
+++ b/third_party/WebKit/Source/core/loader/FrameLoader.cpp |
@@ -373,8 +373,12 @@ void FrameLoader::replaceDocumentWhileExecutingJavaScriptURL( |
if (!m_frame->page()) |
return; |
+ SecurityOrigin* frameSecurityOrigin = |
+ frameSecurityOrigin = m_frame->document()->getSecurityOrigin(); |
+ |
client()->transitionToCommittedForNewPage(); |
- documentLoader->replaceDocumentWhileExecutingJavaScriptURL(init, source); |
+ documentLoader->replaceDocumentWhileExecutingJavaScriptURL( |
+ init, source, frameSecurityOrigin); |
} |
void FrameLoader::finishedParsing() { |