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

Issue 218403012: Check for null selectors when looping in findBestRuleSetAndAdd (Closed)

Created:
6 years, 8 months ago by chrishtr
Modified:
6 years, 8 months ago
Reviewers:
ojan
CC:
blink-reviews, ed+blinkwatch_opera.com, dglazkov+blink, apavlov+blink_chromium.org, darktears, rune+blink, rwlbuis, esprehn
Visibility:
Public.

Description

Check for null selectors when looping in findBestRuleSetAndAdd. This is necessary because a relation() of SubSelector does not in all cases guarantee that tagHistory() is non-NULL. This happens in particular for this selector: af|inputtext:focus::content { ... } BUG=358475 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=170611

Patch Set 1 #

Patch Set 2 : Added test. #

Patch Set 3 : #

Total comments: 4

Patch Set 4 : Addressed comments from ojan@. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -3 lines) Patch
A LayoutTests/fast/css/inputtext-crash.html View 1 2 3 1 chunk +9 lines, -0 lines 0 comments Download
A LayoutTests/fast/css/inputtext-crash-expected.txt View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/css/CSSSelector.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/css/CSSSelector.cpp View 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/css/RuleSet.cpp View 1 2 3 1 chunk +4 lines, -2 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
chrishtr
6 years, 8 months ago (2014-04-01 19:42:51 UTC) #1
ojan
test?
6 years, 8 months ago (2014-04-01 19:49:24 UTC) #2
chrishtr
Added test.
6 years, 8 months ago (2014-04-01 20:43:45 UTC) #3
ojan
lgtm Please add the FIXME and fix the test before committing. https://codereview.chromium.org/218403012/diff/40001/LayoutTests/fast/css/inputtext-crash.html File LayoutTests/fast/css/inputtext-crash.html (right): ...
6 years, 8 months ago (2014-04-01 21:20:49 UTC) #4
chrishtr
https://codereview.chromium.org/218403012/diff/40001/LayoutTests/fast/css/inputtext-crash.html File LayoutTests/fast/css/inputtext-crash.html (right): https://codereview.chromium.org/218403012/diff/40001/LayoutTests/fast/css/inputtext-crash.html#newcode1 LayoutTests/fast/css/inputtext-crash.html:1: <style> On 2014/04/01 21:20:50, ojan wrote: > Nit: add ...
6 years, 8 months ago (2014-04-01 21:27:58 UTC) #5
chrishtr
The CQ bit was checked by chrishtr@chromium.org
6 years, 8 months ago (2014-04-01 21:28:04 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/chrishtr@chromium.org/218403012/50005
6 years, 8 months ago (2014-04-01 22:42:59 UTC) #7
commit-bot: I haz the power
6 years, 8 months ago (2014-04-01 23:52:20 UTC) #8
Message was sent while issue was closed.
Change committed as 170611

Powered by Google App Engine
This is Rietveld 408576698