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

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

Issue 2516473002: Cross-origin iframes: collect data under hypothetical loading strategies (Closed)
Patch Set: Created 4 years, 1 month 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 0973ebc02c37956d9b0348d6c97bed8a8ae39ccc..4c616750899e874cce40cf547c5ca03863a100fb 100644
--- a/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp
+++ b/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp
@@ -352,7 +352,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