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

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

Issue 2212183004: Log to UMA when x-origin frames (1) are created and (2) become visible (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: use frameloader->stateMachine. kill racy DCHECK. rename histogram Created 4 years, 4 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
« no previous file with comments | « third_party/WebKit/Source/core/frame/LocalFrame.cpp ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/loader/DocumentLoader.cpp
diff --git a/third_party/WebKit/Source/core/loader/DocumentLoader.cpp b/third_party/WebKit/Source/core/loader/DocumentLoader.cpp
index e80d27fe57157e57b4e657e4dff21b0e965700f2..249536ca3045fbbfed0aac29db8665773d17d3ca 100644
--- a/third_party/WebKit/Source/core/loader/DocumentLoader.cpp
+++ b/third_party/WebKit/Source/core/loader/DocumentLoader.cpp
@@ -695,6 +695,8 @@ DocumentWriter* DocumentLoader::createWriterFor(const DocumentInit& init, const
frame->document()->setBaseURLOverride(overridingURL);
frame->loader().didInstallNewDocument(dispatchWindowObjectAvailable);
+ if (frame->loader().stateMachine()->committedFirstRealDocumentLoad())
+ frame->didInstallNewRealDocument();
dcheng 2016/08/26 18:28:29 I think it would be nicer if we could do this with
dgrogan 2016/08/26 18:54:06 This allowed the enum and logging code to live sol
// This must be called before DocumentWriter is created, otherwise HTML parser
// will use stale values from HTMLParserOption.
« no previous file with comments | « third_party/WebKit/Source/core/frame/LocalFrame.cpp ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698