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

Issue 67813002: Protect contextElement during insertAdjacentHTML call (Closed)

Created:
7 years, 1 month ago by davve
Modified:
7 years, 1 month ago
CC:
blink-reviews, dglazkov+blink, adamk+blink_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Protect contextElement during insertAdjacentHTML call JS event handlers may cause element to lose its last ref during parsing. BUG=315842 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=161697

Patch Set 1 #

Total comments: 2

Patch Set 2 : Address review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -2 lines) Patch
A LayoutTests/fast/dom/insertAdjacentHTML-afterend-crash.html View 1 1 chunk +16 lines, -0 lines 0 comments Download
A LayoutTests/fast/dom/insertAdjacentHTML-afterend-crash-expected.txt View 1 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/html/HTMLElement.cpp View 1 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
davve
Better fix to https://code.google.com/p/chromium/issues/detail?id=315842 than https://codereview.chromium.org/67773002/ I hope. I haven't been able verify it, since ...
7 years, 1 month ago (2013-11-09 13:14:34 UTC) #1
davve
On 2013/11/09 13:14:34, David Vest wrote: > I haven't been able verify it, since I ...
7 years, 1 month ago (2013-11-09 15:22:10 UTC) #2
inferno
https://codereview.chromium.org/67813002/diff/1/Source/core/html/HTMLElement.cpp File Source/core/html/HTMLElement.cpp (right): https://codereview.chromium.org/67813002/diff/1/Source/core/html/HTMLElement.cpp#newcode530 Source/core/html/HTMLElement.cpp:530: RefPtr<Element> protect = contextElement; Please define the contextElement as ...
7 years, 1 month ago (2013-11-10 09:10:46 UTC) #3
inferno
On 2013/11/10 09:10:46, inferno wrote: > https://codereview.chromium.org/67813002/diff/1/Source/core/html/HTMLElement.cpp > File Source/core/html/HTMLElement.cpp (right): > > https://codereview.chromium.org/67813002/diff/1/Source/core/html/HTMLElement.cpp#newcode530 > ...
7 years, 1 month ago (2013-11-10 09:11:55 UTC) #4
davve
On 2013/11/10 09:11:55, inferno wrote: > On 2013/11/10 09:10:46, inferno wrote: > > > https://codereview.chromium.org/67813002/diff/1/Source/core/html/HTMLElement.cpp ...
7 years, 1 month ago (2013-11-10 20:02:05 UTC) #5
davve
https://codereview.chromium.org/67813002/diff/1/Source/core/html/HTMLElement.cpp File Source/core/html/HTMLElement.cpp (right): https://codereview.chromium.org/67813002/diff/1/Source/core/html/HTMLElement.cpp#newcode530 Source/core/html/HTMLElement.cpp:530: RefPtr<Element> protect = contextElement; On 2013/11/10 09:10:46, inferno wrote: ...
7 years, 1 month ago (2013-11-10 20:02:13 UTC) #6
inferno
lgtm
7 years, 1 month ago (2013-11-10 20:16:21 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/davve@opera.com/67813002/70001
7 years, 1 month ago (2013-11-10 20:16:34 UTC) #8
commit-bot: I haz the power
7 years, 1 month ago (2013-11-10 21:07:32 UTC) #9
Message was sent while issue was closed.
Change committed as 161697

Powered by Google App Engine
This is Rietveld 408576698