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. |