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

Unified Diff: third_party/WebKit/Source/core/html/parser/HTMLViewSourceParser.cpp

Issue 2537043002: After detach, there's no document to notify parsing is finished. (Closed)
Patch Set: Feedback. 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/html/parser/HTMLViewSourceParser.cpp
diff --git a/third_party/WebKit/Source/core/html/parser/HTMLViewSourceParser.cpp b/third_party/WebKit/Source/core/html/parser/HTMLViewSourceParser.cpp
index ce2a0a505aa4d2bdff8189831324f6e57b28c28f..edf1862ed0a07e106f8492a17c5e575d8af621d3 100644
--- a/third_party/WebKit/Source/core/html/parser/HTMLViewSourceParser.cpp
+++ b/third_party/WebKit/Source/core/html/parser/HTMLViewSourceParser.cpp
@@ -77,10 +77,10 @@ void HTMLViewSourceParser::finish() {
if (!m_input.haveSeenEndOfFile())
m_input.markEndOfFile();
- if (!isDetached())
+ if (!isDetached()) {
pumpTokenizer();
-
- document()->finishedParsing();
+ document()->finishedParsing();
+ }
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698