Changeset 140867 in webkit
- Timestamp:
- Jan 25, 2013 2:35:29 PM (11 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r140863 r140867 1 2013-01-25 Tony Gentilcore <tonyg@chromium.org> 2 3 Fix an ASSERT in BackgroundHTMLParser::appendPartial 4 https://bugs.webkit.org/show_bug.cgi?id=107983 5 6 Reviewed by Eric Seidel. 7 8 The complier may create a temporary for the isolatedCopy of the source string. This could cause the refCount of the 9 StringImpl to be greater than one when appendPartial is invoked on the background thread. 10 This patch ensures the temporary is gone by that time which fixes the ASSERT in numerous layout tests. 11 12 No new tests because covered by existing tests. 13 14 * html/parser/HTMLDocumentParser.cpp: 15 (WebCore::HTMLDocumentParser::append): 16 1 17 2013-01-25 Dean Jackson <dino@apple.com> 2 18 -
trunk/Source/WebCore/html/parser/HTMLDocumentParser.cpp
r140842 r140867 499 499 500 500 ParserIdentifier identifier = ParserMap::identifierForParser(this); 501 HTMLParserThread::shared()->postTask(bind(&BackgroundHTMLParser::appendPartial, identifier, source.toString().isolatedCopy())); 501 const Closure& appendPartial = bind(&BackgroundHTMLParser::appendPartial, identifier, source.toString().isolatedCopy()); 502 HTMLParserThread::shared()->postTask(appendPartial); 502 503 return; 503 504 }
Note: See TracChangeset
for help on using the changeset viewer.