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

Unified Diff: third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp

Issue 2516473002: Cross-origin iframes: collect data under hypothetical loading strategies (Closed)
Patch Set: just look below Created 4 years 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/frame/LocalDOMWindow.cpp
diff --git a/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp b/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp
index 86f2a58cdd13d15cae46cec45c18279a660a36d9..62c46829cf8ed4b223a9170cbcf7e14486103248 100644
--- a/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp
+++ b/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp
@@ -354,7 +354,8 @@ Document* LocalDOMWindow::installNewDocument(const String& mimeType,
frame()->selection().updateSecureKeyboardEntryIfActive();
- m_document->maybeRecordLoadReason(Created);
+ if (frame()->isCrossOriginSubframe())
+ m_document->recordDeferredLoadReason(Created);
return m_document;
}

Powered by Google App Engine
This is Rietveld 408576698