Index: Source/core/html/parser/BackgroundHTMLParser.cpp |
diff --git a/Source/core/html/parser/BackgroundHTMLParser.cpp b/Source/core/html/parser/BackgroundHTMLParser.cpp |
index fc06a4cffd0011d8795204cfc41633d952a0605b..6bbde221f630ccffd2b751657d30d90b8b94c09b 100644 |
--- a/Source/core/html/parser/BackgroundHTMLParser.cpp |
+++ b/Source/core/html/parser/BackgroundHTMLParser.cpp |
@@ -157,7 +157,9 @@ void BackgroundHTMLParser::updateDocument(const String& decodedData) |
m_lastSeenEncodingData = encodingData; |
m_xssAuditor->setEncoding(encodingData.encoding()); |
- Platform::current()->mainThread()->postTask(FROM_HERE, threadSafeBind(&HTMLDocumentParser::didReceiveEncodingDataFromBackgroundParser, AllowCrossThreadAccess(m_parser), encodingData)); |
+ m_scheduler->postLoadingTask( |
+ FROM_HERE, |
+ new Task(threadSafeBind(&HTMLDocumentParser::didReceiveEncodingDataFromBackgroundParser, AllowCrossThreadAccess(m_parser), encodingData))); |
} |
if (decodedData.isEmpty()) |