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

Issue 1073823002: Correctly handle updates over attached Attrs involving null values. (Closed)

Created:
5 years, 8 months ago by sof
Modified:
5 years, 8 months ago
Reviewers:
tkent, Mike West, adamk
CC:
blink-reviews, blink-reviews-dom_chromium.org, dglazkov+blink, eae+blinkwatch, rwlbuis
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Correctly handle updates over attached Attrs involving null values. Element attributes having a null value are not stored by the ElementData's attribute collection. When updating an Element-attached Attr with a new value, which previously was null, correctly handle updates over null values (before and after.) R= BUG=472840 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=193484

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+52 lines, -5 lines) Patch
A LayoutTests/fast/dom/Attr/update-attribute-node-null-value-no-crash.html View 1 chunk +22 lines, -0 lines 0 comments Download
A LayoutTests/fast/dom/Attr/update-attribute-node-null-value-no-crash-expected.txt View 1 chunk +17 lines, -0 lines 0 comments Download
M Source/core/dom/Attr.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/dom/Attr.cpp View 3 chunks +12 lines, -4 lines 0 comments Download

Messages

Total messages: 8 (2 generated)
sof
Please take a look. Older issue; surprising it has gone undetected.
5 years, 8 months ago (2015-04-09 15:35:46 UTC) #2
tkent
lgtm > Older issue; surprising it has gone undetected. Unfortunately no one was responsible for ...
5 years, 8 months ago (2015-04-09 22:56:55 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1073823002/1
5 years, 8 months ago (2015-04-09 22:57:16 UTC) #5
commit-bot: I haz the power
Committed patchset #1 (id:1) as https://src.chromium.org/viewvc/blink?view=rev&revision=193484
5 years, 8 months ago (2015-04-09 23:08:54 UTC) #6
sof
On 2015/04/09 22:56:55, tkent wrote: > lgtm > > > Older issue; surprising it has ...
5 years, 8 months ago (2015-04-10 05:18:06 UTC) #7
tkent
5 years, 8 months ago (2015-04-12 23:41:38 UTC) #8
Message was sent while issue was closed.
On 2015/04/10 05:18:06, sof wrote:
> On 2015/04/09 22:56:55, tkent wrote:
> > lgtm
> > 
> > > Older issue; surprising it has gone undetected.
> > 
> > Unfortunately no one was responsible for Cr-Blink-DOM bugs.
> 
> thanks for the review (and commit.) Responsible for making sure incoming bugs
> are sorted, assigned, prioritized ?

Right.

> (I was just surprised that fuzzers haven't uncovered this - problem has been
> there since 2012.)

I heard our fuzzer constructed test cases from fragments of existing layout
tests.  If we have a few tests including |attr.value = null|, it has low
possibility to produce a test case for this bug.

Powered by Google App Engine
This is Rietveld 408576698