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 d9ff10255d983a431a82f8c790bd8bc9eefa8e78..4e860f176ad3d792af0347de97257a1a452a85b4 100644 |
--- a/third_party/WebKit/Source/core/loader/FrameLoader.cpp |
+++ b/third_party/WebKit/Source/core/loader/FrameLoader.cpp |
@@ -327,6 +327,7 @@ void FrameLoader::replaceDocumentWhileExecutingJavaScriptURL(const String& sourc |
// inherit an aliased security context. |
DocumentInit init(m_frame->document()->url(), m_frame); |
init.withNewRegistrationContext(); |
+ init.withoutInheritingSecurityOrigin(); |
stopAllLoaders(); |
// Don't allow any new child frames to load in this frame: attaching a new |