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

Unified Diff: third_party/WebKit/Source/core/dom/Document.cpp

Issue 2885633002: Style tag in an XHR's responseXML shouldn't make the responseXML be null. (Closed)
Patch Set: Move setting Document::well_formed_ Created 3 years, 7 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/dom/Document.cpp
diff --git a/third_party/WebKit/Source/core/dom/Document.cpp b/third_party/WebKit/Source/core/dom/Document.cpp
index 4c5698d9b2f75ecd9beedc41ca75cfde121445cf..77e717c5b7fd735398744909d05ab7051eccba82 100644
--- a/third_party/WebKit/Source/core/dom/Document.cpp
+++ b/third_party/WebKit/Source/core/dom/Document.cpp
@@ -3032,9 +3032,6 @@ void Document::ImplicitClose() {
load_event_progress_ = kLoadEventInProgress;
- ScriptableDocumentParser* parser = GetScriptableDocumentParser();
- well_formed_ = parser && parser->WellFormed();
-
// We have to clear the parser, in case someone document.write()s from the
// onLoad event handler, as in Radar 3206524.
DetachParser();
@@ -5501,6 +5498,9 @@ void Document::FinishedParsing() {
// a queued task, which will do a checkpoint anyway. https://crbug.com/425790
Microtask::PerformCheckpoint(V8PerIsolateData::MainThreadIsolate());
+ ScriptableDocumentParser* parser = GetScriptableDocumentParser();
+ well_formed_ = parser && parser->WellFormed();
+
if (LocalFrame* frame = this->GetFrame()) {
// Don't update the layout tree if we haven't requested the main resource
// yet to avoid adding extra latency. Note that the first layout tree update

Powered by Google App Engine
This is Rietveld 408576698