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

Issue 2241193005: Fixed crash by replacing DCHECK with returning nullptr. (Closed)

Created:
4 years, 4 months ago by Bugs Nash
Modified:
4 years, 4 months ago
Reviewers:
esprehn, rjwright
CC:
blink-reviews, blink-reviews-dom_chromium.org, blink-reviews-style_chromium.org, chromium-reviews, dglazkov+blink, eae+blinkwatch, nainar, rwlbuis, sof, Timothy Loh
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fixed crash by replacing DCHECK with returning nullptr. Fixed crash by replacing DCHECK in Node::mutableComputedStyle with returning nullptr if the NodeRareData is not an ElementRareData. Crash introcuded in https://codereview.chromium.org/1962953002. BUG=638102 Committed: https://crrev.com/c739b16ff7c5b84fcd4620df5d46c419563c2ef7 Cr-Commit-Position: refs/heads/master@{#412472}

Patch Set 1 #

Patch Set 2 : Added layout test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -1 line) Patch
A third_party/WebKit/LayoutTests/fast/css/document-rare-data-style-crash.html View 1 1 chunk +12 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/css/document-rare-data-style-crash-expected.html View 1 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/NodeComputedStyle.h View 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 21 (14 generated)
rjwright
lgtm
4 years, 4 months ago (2016-08-17 03:32:20 UTC) #7
Timothy Loh
Test? :)
4 years, 4 months ago (2016-08-17 03:33:10 UTC) #8
Bugs Nash
On 2016/08/17 at 03:33:10, timloh wrote: > Test? :) Added, thanks
4 years, 4 months ago (2016-08-17 04:29:21 UTC) #10
esprehn
Lgtm, glad we caught this :) I'm worried about the amount of branching we've introduced ...
4 years, 4 months ago (2016-08-17 04:48:21 UTC) #13
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/2241193005/20001
4 years, 4 months ago (2016-08-17 08:00:21 UTC) #18
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 4 months ago (2016-08-17 08:04:24 UTC) #19
commit-bot: I haz the power
4 years, 4 months ago (2016-08-17 08:14:24 UTC) #21
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/c739b16ff7c5b84fcd4620df5d46c419563c2ef7
Cr-Commit-Position: refs/heads/master@{#412472}

Powered by Google App Engine
This is Rietveld 408576698