Chromium Code Reviews
DescriptionFix HTMLDocumentParser::stopBackgroundParser crash
HTMLDocumentParser::stopBackgroundParser was getting called from
HTMLDocumentParser::~HTMLDocumentParser, this is a problem because it
assumes document() is valid. That's not always the case since both
HTMLDocumentParser and Document are on the oilpan heap and it's not
allowed to dereference an object like that in the destructor.
As a workaround I've added a pre-finalizer. This fixes the crash
described in the bug.
BUG=634244
Committed: https://crrev.com/61c5d52a6f5366abfec4474bec4b0dd5965abf22
Cr-Commit-Position: refs/heads/master@{#409806}
Patch Set 1 #
Messages
Total messages: 18 (11 generated)
|
||||||||||||||||||||||||||||