| Index: Source/core/html/parser/HTMLDocumentParser.cpp
|
| diff --git a/Source/core/html/parser/HTMLDocumentParser.cpp b/Source/core/html/parser/HTMLDocumentParser.cpp
|
| index 5fa1975ebf40a4a712dd6115436d7b06cfd5caf2..ce6ec0737feeb2e2080f5fc592afe2b7a1b22135 100644
|
| --- a/Source/core/html/parser/HTMLDocumentParser.cpp
|
| +++ b/Source/core/html/parser/HTMLDocumentParser.cpp
|
| @@ -783,6 +783,12 @@ void HTMLDocumentParser::startBackgroundParser()
|
| config->xssAuditor->init(document(), &m_xssAuditorDelegate);
|
| config->preloadScanner = adoptPtr(new TokenPreloadScanner(document()->url().copy(), CachedDocumentParameters::create(document())));
|
| config->decoder = takeDecoder();
|
| + if (document()->settings()) {
|
| + if (document()->settings()->backgroundHtmlParserOutstandingTokenLimit())
|
| + config->outstandingTokenLimit = document()->settings()->backgroundHtmlParserOutstandingTokenLimit();
|
| + if (document()->settings()->backgroundHtmlParserPendingTokenLimit())
|
| + config->pendingTokenLimit = document()->settings()->backgroundHtmlParserPendingTokenLimit();
|
| + }
|
|
|
| ASSERT(config->xssAuditor->isSafeToSendToAnotherThread());
|
| ASSERT(config->preloadScanner->isSafeToSendToAnotherThread());
|
|
|