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

Issue 1283263002: parserInsertBefore: Bail out if the parent no longer contains the child. (Closed)

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

Description

parserInsertBefore: Bail out if the parent no longer contains the child. nextChild may be removed from the DOM tree during the |parserRemoveChild(*newChild)| call which triggers unload events of newChild's descendant iframes. In order to maintain the integrity of the DOM tree, the insertion of newChild must be aborted in this case. This patch adds a return statement that rectifies the behavior in this edge case. BUG=519558 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=200690

Patch Set 1 #

Total comments: 4

Patch Set 2 : nit corrections #

Patch Set 3 : fixed the failing test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+44 lines, -0 lines) Patch
A LayoutTests/fast/parser/scriptexec-during-parserInsertBefore.html View 1 1 chunk +30 lines, -0 lines 0 comments Download
A LayoutTests/fast/parser/scriptexec-during-parserInsertBefore-expected.txt View 1 2 1 chunk +11 lines, -0 lines 0 comments Download
M Source/core/dom/ContainerNode.cpp View 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (4 generated)
esprehn
lgtm w/ nits fixed. Thanks! https://codereview.chromium.org/1283263002/diff/1/LayoutTests/fast/parser/scriptexec-during-parserInsertBefore.html File LayoutTests/fast/parser/scriptexec-during-parserInsertBefore.html (right): https://codereview.chromium.org/1283263002/diff/1/LayoutTests/fast/parser/scriptexec-during-parserInsertBefore.html#newcode5 LayoutTests/fast/parser/scriptexec-during-parserInsertBefore.html:5: /** single star https://codereview.chromium.org/1283263002/diff/1/LayoutTests/fast/parser/scriptexec-during-parserInsertBefore.html#newcode15 ...
5 years, 4 months ago (2015-08-12 19:42:19 UTC) #2
Mariusz Mlynski
Thanks for the review.
5 years, 4 months ago (2015-08-12 20:40:18 UTC) #3
esprehn
lgtm
5 years, 4 months ago (2015-08-12 20:45:22 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1283263002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1283263002/20001
5 years, 4 months ago (2015-08-12 20:45:39 UTC) #6
commit-bot: I haz the power
The author marius.mlynski@gmail.com has not signed Google Contributor License Agreement. Please visit https://cla.developers.google.com to sign ...
5 years, 4 months ago (2015-08-12 20:45:40 UTC) #8
Mariusz Mlynski
On 2015/08/12 20:45:40, commit-bot: I haz the power wrote: > Please visit https://cla.developers.google.com to sign ...
5 years, 4 months ago (2015-08-12 20:48:27 UTC) #9
Mariusz Mlynski
It appears that the tests will fail. The corresponding "-expected" file needs to have the ...
5 years, 4 months ago (2015-08-12 21:23:15 UTC) #10
Mariusz Mlynski
I've uploaded a corrected version. Luckily, the bot aborted the build immediately due to the ...
5 years, 4 months ago (2015-08-12 21:41:07 UTC) #11
Robert Sesek
esphren: Does this still LG?
5 years, 4 months ago (2015-08-18 02:06:37 UTC) #12
Robert Sesek
On 2015/08/18 02:06:37, Robert Sesek wrote: > esphren: Does this still LG? (Sorry, esprehn, ^T'd ...
5 years, 4 months ago (2015-08-18 02:11:22 UTC) #13
esprehn
lgtm
5 years, 4 months ago (2015-08-18 03:28:03 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1283263002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1283263002/40001
5 years, 4 months ago (2015-08-18 03:28:21 UTC) #16
commit-bot: I haz the power
5 years, 4 months ago (2015-08-18 04:30:59 UTC) #17
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=200690

Powered by Google App Engine
This is Rietveld 408576698