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

Issue 14329005: UpdateWidget() can fire beforeload event synchronously blowing away RenderArena and its associated … (Closed)

Created:
7 years, 8 months ago by inferno
Modified:
7 years, 8 months ago
CC:
blink-reviews, Chris Evans, dmazzoni
Visibility:
Public.

Description

UpdateWidget() can fire beforeload event synchronously blowing away RenderArena and its associated RenderObjects. In that case, we bail-out and clear m_widgetUpdateSet set. BUG=226696 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=148933

Patch Set 1 #

Total comments: 3

Patch Set 2 : Incorporate Eric's comments #

Total comments: 4

Patch Set 3 : Incorporate Dominicc's comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+72 lines, -14 lines) Patch
A LayoutTests/fast/dom/beforeload/object-beforeload-crash-main.html View 1 1 chunk +20 lines, -0 lines 0 comments Download
A + LayoutTests/fast/dom/beforeload/object-beforeload-crash-main-expected.txt View 1 0 chunks +-1 lines, --1 lines 0 comments Download
A LayoutTests/fast/dom/beforeload/resources/object-beforeload-crash.html View 1 1 chunk +26 lines, -0 lines 0 comments Download
M Source/core/dom/Document.cpp View 1 2 1 chunk +10 lines, -8 lines 0 comments Download
M Source/core/page/FrameView.h View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/core/page/FrameView.cpp View 1 4 chunks +16 lines, -6 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
inferno
7 years, 8 months ago (2013-04-17 19:19:33 UTC) #1
cevans
On 2013/04/17 19:19:33, inferno wrote: I think the RenderArena lifetime is tied to a owning ...
7 years, 8 months ago (2013-04-17 20:03:14 UTC) #2
inferno
On 2013/04/17 20:03:14, cevans wrote: > On 2013/04/17 19:19:33, inferno wrote: > > I think ...
7 years, 8 months ago (2013-04-17 20:05:47 UTC) #3
abarth-chromium
Can we write a test?
7 years, 8 months ago (2013-04-17 22:30:12 UTC) #4
inferno
On 2013/04/17 22:30:12, abarth wrote: > Can we write a test? The fix causes a ...
7 years, 8 months ago (2013-04-17 22:34:13 UTC) #5
eseidel
https://codereview.chromium.org/14329005/diff/1/Source/core/page/FrameView.cpp File Source/core/page/FrameView.cpp (right): https://codereview.chromium.org/14329005/diff/1/Source/core/page/FrameView.cpp#newcode2288 Source/core/page/FrameView.cpp:2288: RELEASE_ASSERT(ownerElement->renderer() == embeddedObject); Why is crashing the right thing ...
7 years, 8 months ago (2013-04-18 00:13:00 UTC) #6
inferno
On 2013/04/18 00:13:00, Eric Seidel (Google) wrote: > https://codereview.chromium.org/14329005/diff/1/Source/core/page/FrameView.cpp > File Source/core/page/FrameView.cpp (right): > > ...
7 years, 8 months ago (2013-04-18 00:24:33 UTC) #7
eseidel
Please add a test and then I'm ready to r+. https://codereview.chromium.org/14329005/diff/1/Source/core/page/FrameView.cpp File Source/core/page/FrameView.cpp (right): https://codereview.chromium.org/14329005/diff/1/Source/core/page/FrameView.cpp#newcode2264 ...
7 years, 8 months ago (2013-04-18 02:14:22 UTC) #8
inferno
On 2013/04/18 02:14:22, Eric Seidel (Google) wrote: > Please add a test and then I'm ...
7 years, 8 months ago (2013-04-18 16:34:51 UTC) #9
eseidel
It seems worst-case we could make updateWidget() return a bool, and if the bool is ...
7 years, 8 months ago (2013-04-18 20:40:35 UTC) #10
eseidel
lgtm https://codereview.chromium.org/14329005/diff/12001/Source/core/dom/Document.cpp File Source/core/dom/Document.cpp (right): https://codereview.chromium.org/14329005/diff/12001/Source/core/dom/Document.cpp#newcode2362 Source/core/dom/Document.cpp:2362: if (f && renderObject && AXObjectCache::accessibilityEnabled() && axObjectCache()) ...
7 years, 8 months ago (2013-04-23 20:37:51 UTC) #11
eseidel
7 years, 8 months ago (2013-04-23 20:38:03 UTC) #12
inferno
https://codereview.chromium.org/14329005/diff/12001/Source/core/dom/Document.cpp File Source/core/dom/Document.cpp (right): https://codereview.chromium.org/14329005/diff/12001/Source/core/dom/Document.cpp#newcode2362 Source/core/dom/Document.cpp:2362: if (f && renderObject && AXObjectCache::accessibilityEnabled() && axObjectCache()) { ...
7 years, 8 months ago (2013-04-23 20:43:42 UTC) #13
dmazzoni
https://codereview.chromium.org/14329005/diff/12001/Source/core/dom/Document.cpp File Source/core/dom/Document.cpp (right): https://codereview.chromium.org/14329005/diff/12001/Source/core/dom/Document.cpp#newcode2362 Source/core/dom/Document.cpp:2362: if (f && renderObject && AXObjectCache::accessibilityEnabled() && axObjectCache()) { ...
7 years, 8 months ago (2013-04-23 20:54:07 UTC) #14
inferno
On 2013/04/23 20:54:07, Dominic Mazzoni wrote: > https://codereview.chromium.org/14329005/diff/12001/Source/core/dom/Document.cpp > File Source/core/dom/Document.cpp (right): > > https://codereview.chromium.org/14329005/diff/12001/Source/core/dom/Document.cpp#newcode2362 ...
7 years, 8 months ago (2013-04-23 20:57:27 UTC) #15
dmazzoni
https://codereview.chromium.org/14329005/diff/12001/Source/core/dom/Document.cpp File Source/core/dom/Document.cpp (right): https://codereview.chromium.org/14329005/diff/12001/Source/core/dom/Document.cpp#newcode2362 Source/core/dom/Document.cpp:2362: if (f && renderObject && AXObjectCache::accessibilityEnabled() && axObjectCache()) { ...
7 years, 8 months ago (2013-04-23 21:08:41 UTC) #16
inferno
7 years, 8 months ago (2013-04-23 21:32:08 UTC) #17
Message was sent while issue was closed.
Committed patchset #3 manually as r148933 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698