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

Issue 341273006: Protect an element while removing an attribute. (Closed)

Created:
6 years, 6 months ago by Nate Chapin
Modified:
6 years, 5 months ago
CC:
blink-reviews, blink-reviews-dom_chromium.org, dglazkov+blink, eae+blinkwatch, rwlbuis, sof
Project:
blink
Visibility:
Public.

Description

Protect an element while removing an attribute. It's possible for attribute removal to do non-trivial work (e.g., in the case of removing an iframe's src attr, which navigates the iframe to about:blank) BUG=382279 TEST=http/tests/misc/adopt-iframe-src-attr-after-remove.html Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=176668

Patch Set 1 #

Total comments: 8

Patch Set 2 : RefPtr->RefPtrWillBeRawPtr #

Total comments: 1

Patch Set 3 : Move the RefPtr to Document::adoptNode #

Unified diffs Side-by-side diffs Delta from patch set Stats (+26 lines, -2 lines) Patch
A LayoutTests/http/tests/misc/adopt-iframe-src-attr-after-remove.html View 1 2 1 chunk +23 lines, -0 lines 0 comments Download
A LayoutTests/http/tests/misc/adopt-iframe-src-attr-after-remove-expected.txt View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/dom/Document.cpp View 1 2 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
Nate Chapin
6 years, 6 months ago (2014-06-20 18:23:31 UTC) #1
sof
https://codereview.chromium.org/341273006/diff/1/Source/core/dom/Element.cpp File Source/core/dom/Element.cpp (right): https://codereview.chromium.org/341273006/diff/1/Source/core/dom/Element.cpp#newcode2864 Source/core/dom/Element.cpp:2864: RefPtr<Element> protect(this); Make it Oilpan friendly as "RefPtrWillBeRawPtr<Element> ..."
6 years, 6 months ago (2014-06-20 18:28:07 UTC) #2
abarth-chromium
+esprehn, who probably is the best reviewer here.
6 years, 6 months ago (2014-06-20 18:38:25 UTC) #3
esprehn
I don't understand this test case, the script should be keeping the frame alive with ...
6 years, 6 months ago (2014-06-20 20:01:31 UTC) #4
Nate Chapin
My understanding of the sequence of the test: * DOMContentLoaded fires, the src attribute is ...
6 years, 6 months ago (2014-06-20 20:17:43 UTC) #5
esprehn
On 2014/06/20 at 20:17:43, japhet wrote: > My understanding of the sequence of the test: ...
6 years, 6 months ago (2014-06-20 20:51:58 UTC) #6
esprehn
On 2014/06/20 at 20:51:58, esprehn wrote: > On 2014/06/20 at 20:17:43, japhet wrote: > > ...
6 years, 6 months ago (2014-06-20 21:08:09 UTC) #7
esprehn
On 2014/06/20 at 21:08:09, esprehn wrote: > On 2014/06/20 at 20:51:58, esprehn wrote: > > ...
6 years, 6 months ago (2014-06-20 21:11:35 UTC) #8
esprehn
https://codereview.chromium.org/341273006/diff/20001/LayoutTests/http/tests/misc/adopt-iframe-src-attr-after-remove.html File LayoutTests/http/tests/misc/adopt-iframe-src-attr-after-remove.html (right): https://codereview.chromium.org/341273006/diff/20001/LayoutTests/http/tests/misc/adopt-iframe-src-attr-after-remove.html#newcode17 LayoutTests/http/tests/misc/adopt-iframe-src-attr-after-remove.html:17: document.adoptNode(i.attributes["src"]); It abarth explained to me the reason for ...
6 years, 6 months ago (2014-06-20 21:24:45 UTC) #9
abarth-chromium
LGTM I talked this over with Nate. We're not sure whether this covers all the ...
6 years, 6 months ago (2014-06-20 22:44:38 UTC) #10
abarth-chromium
On 2014/06/20 at 21:24:45, esprehn wrote: > 1) Attr should keep the owner element alive. ...
6 years, 6 months ago (2014-06-20 22:45:14 UTC) #11
Nate Chapin
The CQ bit was checked by japhet@chromium.org
6 years, 6 months ago (2014-06-20 22:47:51 UTC) #12
esprehn
On 2014/06/20 at 22:45:14, abarth wrote: > On 2014/06/20 at 21:24:45, esprehn wrote: > > ...
6 years, 6 months ago (2014-06-20 22:57:44 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/japhet@chromium.org/341273006/40001
6 years, 6 months ago (2014-06-20 23:00:05 UTC) #14
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_gpu_triggered_tests on tryserver.chromium.gpu ...
6 years, 6 months ago (2014-06-21 01:12:47 UTC) #15
commit-bot: I haz the power
Change committed as 176668
6 years, 6 months ago (2014-06-21 01:43:47 UTC) #16
abarth-chromium
On 2014/06/20 at 22:57:44, esprehn wrote: > > > 2) onload should never fire synchronously. ...
6 years, 6 months ago (2014-06-21 05:43:37 UTC) #17
abarth-chromium
event loop
6 years, 6 months ago (2014-06-21 05:43:48 UTC) #18
falken
6 years, 5 months ago (2014-07-14 09:52:18 UTC) #19
Message was sent while issue was closed.
On 2014/06/21 05:43:48, abarth wrote:
> event loop

It looks like this test has had flaky timeouts since it was added. Would you be
willing to revert or fix the test?

http://test-results.appspot.com/dashboards/flakiness_dashboard.html#group=%40...

Powered by Google App Engine
This is Rietveld 408576698