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

Issue 2209283002: Fix HTMLDocumentParser::stopBackgroundParser crash (Closed)

Created:
4 years, 4 months ago by alex clarke (OOO till 29th)
Modified:
4 years, 4 months ago
CC:
chromium-reviews, blink-reviews, dglazkov+blink, blink-reviews-html_chromium.org, kinuko+watch, loading-reviews+parser_chromium.org, kouhei (in TOK)
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -0 lines) Patch
M third_party/WebKit/Source/core/html/parser/HTMLDocumentParser.h View 2 chunks +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/parser/HTMLDocumentParser.cpp View 2 chunks +6 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (11 generated)
alex clarke (OOO till 29th)
4 years, 4 months ago (2016-08-04 14:15:58 UTC) #3
alex clarke (OOO till 29th)
4 years, 4 months ago (2016-08-04 14:16:32 UTC) #5
haraken
LGTM
4 years, 4 months ago (2016-08-04 15:35:07 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2209283002/1
4 years, 4 months ago (2016-08-04 15:52:35 UTC) #13
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 4 months ago (2016-08-04 16:36:29 UTC) #14
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/61c5d52a6f5366abfec4474bec4b0dd5965abf22 Cr-Commit-Position: refs/heads/master@{#409806}
4 years, 4 months ago (2016-08-04 16:38:44 UTC) #16
kouhei (in TOK)
4 years, 4 months ago (2016-08-05 05:49:29 UTC) #18
Message was sent while issue was closed.
lgtm

Powered by Google App Engine
This is Rietveld 408576698