Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(684)

Unified Diff: third_party/WebKit/Source/core/loader/FrameLoader.cpp

Issue 2795673002: Added UseCounter for clearing browsing context name on cross-origin name (Closed)
Patch Set: Rebase-update Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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() {

Powered by Google App Engine
This is Rietveld 408576698