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

Issue 881683003: Issue FrameDestructionObserver::frameDestroyed() notification on detach. (Closed)

Created:
5 years, 10 months ago by sof
Modified:
5 years, 10 months ago
CC:
blink-reviews
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Issue FrameDestructionObserver::frameDestroyed() notification on detach. Send this notification during detach instead of waiting until finalization, which will typically proceed shortly afterwards (non-Oilpan.) The supplements of the LocalFrame are cleared at the same time so as to prevent FrameDestructionObservers that are also supplements from being used in their detached state. Doing so makes the observable lifetimes for FrameDestructionObserver's frame() identical, with and without Oilpan. Not having GC/finalization of frames be observable to scripts is preferable. For LocalDOMWindow, a FrameDestructionObserver, its set of registered DOMWindowProperty objects are also detached on frameDestroyed(), clearing their frame references at the same time. R=haraken,dcheng BUG=446452 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=189906

Patch Set 1 #

Patch Set 2 : inline temporary helper, tidy #

Total comments: 5

Patch Set 3 : Detach DOMWindowProperty objects also + supplements #

Patch Set 4 : Clear out destruction observers #

Total comments: 2

Patch Set 5 : weak references no longer needed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+58 lines, -59 lines) Patch
M LayoutTests/OilpanExpectations View 1 chunk +0 lines, -4 lines 0 comments Download
M LayoutTests/fast/dom/Window/property-access-on-cached-properties-after-frame-removed-expected.txt View 1 2 1 chunk +9 lines, -9 lines 0 comments Download
M LayoutTests/fast/dom/Window/property-access-on-cached-window-after-frame-removed-expected.txt View 1 2 4 chunks +22 lines, -22 lines 0 comments Download
M Source/core/frame/DOMWindowProperty.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M Source/core/frame/FrameDestructionObserver.h View 1 2 3 4 2 chunks +1 line, -9 lines 0 comments Download
M Source/core/frame/FrameDestructionObserver.cpp View 1 chunk +0 lines, -2 lines 0 comments Download
M Source/core/frame/LocalDOMWindow.h View 1 2 3 4 2 chunks +2 lines, -0 lines 0 comments Download
M Source/core/frame/LocalDOMWindow.cpp View 1 2 3 4 3 chunks +13 lines, -2 lines 0 comments Download
M Source/core/frame/LocalFrame.cpp View 1 2 3 4 3 chunks +10 lines, -10 lines 0 comments Download

Messages

Total messages: 40 (9 generated)
sof
Please take a look. This seems workable and the preferable option (issue frameDestroyed at the ...
5 years, 10 months ago (2015-01-30 11:40:19 UTC) #2
haraken
https://codereview.chromium.org/881683003/diff/20001/LayoutTests/fast/dom/Window/property-access-on-cached-window-after-frame-removed-expected.txt File LayoutTests/fast/dom/Window/property-access-on-cached-window-after-frame-removed-expected.txt (right): https://codereview.chromium.org/881683003/diff/20001/LayoutTests/fast/dom/Window/property-access-on-cached-window-after-frame-removed-expected.txt#newcode200 LayoutTests/fast/dom/Window/property-access-on-cached-window-after-frame-removed-expected.txt:200: FAIL childWindow.speechSynthesis.speaking should be false. Threw exception TypeError: Cannot ...
5 years, 10 months ago (2015-01-31 01:30:01 UTC) #4
haraken
5 years, 10 months ago (2015-01-31 01:30:13 UTC) #6
dcheng
https://codereview.chromium.org/881683003/diff/20001/LayoutTests/fast/dom/Window/property-access-on-cached-window-after-frame-removed-expected.txt File LayoutTests/fast/dom/Window/property-access-on-cached-window-after-frame-removed-expected.txt (right): https://codereview.chromium.org/881683003/diff/20001/LayoutTests/fast/dom/Window/property-access-on-cached-window-after-frame-removed-expected.txt#newcode200 LayoutTests/fast/dom/Window/property-access-on-cached-window-after-frame-removed-expected.txt:200: FAIL childWindow.speechSynthesis.speaking should be false. Threw exception TypeError: Cannot ...
5 years, 10 months ago (2015-01-31 01:38:14 UTC) #7
sof
https://codereview.chromium.org/881683003/diff/20001/LayoutTests/fast/dom/Window/property-access-on-cached-window-after-frame-removed-expected.txt File LayoutTests/fast/dom/Window/property-access-on-cached-window-after-frame-removed-expected.txt (right): https://codereview.chromium.org/881683003/diff/20001/LayoutTests/fast/dom/Window/property-access-on-cached-window-after-frame-removed-expected.txt#newcode200 LayoutTests/fast/dom/Window/property-access-on-cached-window-after-frame-removed-expected.txt:200: FAIL childWindow.speechSynthesis.speaking should be false. Threw exception TypeError: Cannot ...
5 years, 10 months ago (2015-01-31 08:07:24 UTC) #8
sof
https://codereview.chromium.org/881683003/diff/20001/LayoutTests/fast/dom/Window/property-access-on-cached-window-after-frame-removed-expected.txt File LayoutTests/fast/dom/Window/property-access-on-cached-window-after-frame-removed-expected.txt (right): https://codereview.chromium.org/881683003/diff/20001/LayoutTests/fast/dom/Window/property-access-on-cached-window-after-frame-removed-expected.txt#newcode200 LayoutTests/fast/dom/Window/property-access-on-cached-window-after-frame-removed-expected.txt:200: FAIL childWindow.speechSynthesis.speaking should be false. Threw exception TypeError: Cannot ...
5 years, 10 months ago (2015-01-31 08:13:55 UTC) #9
dcheng
On 2015/01/31 at 08:13:55, sigbjornf wrote: > https://codereview.chromium.org/881683003/diff/20001/LayoutTests/fast/dom/Window/property-access-on-cached-window-after-frame-removed-expected.txt > File LayoutTests/fast/dom/Window/property-access-on-cached-window-after-frame-removed-expected.txt (right): > > https://codereview.chromium.org/881683003/diff/20001/LayoutTests/fast/dom/Window/property-access-on-cached-window-after-frame-removed-expected.txt#newcode200 ...
5 years, 10 months ago (2015-01-31 09:02:41 UTC) #10
sof
On 2015/01/31 09:02:41, dcheng wrote: > On 2015/01/31 at 08:13:55, sigbjornf wrote: > > > ...
5 years, 10 months ago (2015-01-31 09:17:38 UTC) #11
dcheng
On 2015/01/31 at 09:17:38, sigbjornf wrote: > On 2015/01/31 09:02:41, dcheng wrote: > > On ...
5 years, 10 months ago (2015-02-02 18:59:09 UTC) #12
sof
On 2015/02/02 18:59:09, dcheng wrote: > On 2015/01/31 at 09:17:38, sigbjornf wrote: > > On ...
5 years, 10 months ago (2015-02-03 14:29:35 UTC) #13
haraken
On 2015/02/03 14:29:35, sof wrote: > On 2015/02/02 18:59:09, dcheng wrote: > > On 2015/01/31 ...
5 years, 10 months ago (2015-02-03 14:41:58 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/881683003/20001
5 years, 10 months ago (2015-02-03 15:43:47 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: win_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/win_blink_rel/builds/49047)
5 years, 10 months ago (2015-02-03 17:42:52 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/881683003/20001
5 years, 10 months ago (2015-02-03 21:08:33 UTC) #20
commit-bot: I haz the power
Committed patchset #2 (id:20001) as https://src.chromium.org/viewvc/blink?view=rev&revision=189443
5 years, 10 months ago (2015-02-03 23:17:57 UTC) #21
Noel Gordon
http://build.chromium.org/p/chromium.webkit/builders/Linux%20ChromiumOS%20Tests%20%28dbg%29%281%29/builds/5961 ScreenOrientationBrowserTest.CrashTest_UseAfterDetach failing b/w blink 189443 -189439
5 years, 10 months ago (2015-02-04 05:21:12 UTC) #22
Noel Gordon
A revert of this CL (patchset #2 id:20001) has been created in https://codereview.chromium.org/896103002/ by noel@chromium.org. ...
5 years, 10 months ago (2015-02-04 05:23:41 UTC) #23
sof
Please take another look? I've updated this CL following the issues encountered via https://code.google.com/p/chromium/issues/detail?id=455161. While ...
5 years, 10 months ago (2015-02-05 22:07:05 UTC) #25
dcheng
I'm Blink gardening atm, but will try to take a look tonight.
5 years, 10 months ago (2015-02-05 22:11:45 UTC) #26
dcheng
https://codereview.chromium.org/881683003/diff/60001/Source/core/frame/FrameDestructionObserver.h File Source/core/frame/FrameDestructionObserver.h (right): https://codereview.chromium.org/881683003/diff/60001/Source/core/frame/FrameDestructionObserver.h#newcode39 Source/core/frame/FrameDestructionObserver.h:39: virtual void frameDestroyed(); Perhaps we should rename this if ...
5 years, 10 months ago (2015-02-06 20:33:10 UTC) #27
sof
https://codereview.chromium.org/881683003/diff/60001/Source/core/frame/FrameDestructionObserver.h File Source/core/frame/FrameDestructionObserver.h (right): https://codereview.chromium.org/881683003/diff/60001/Source/core/frame/FrameDestructionObserver.h#newcode39 Source/core/frame/FrameDestructionObserver.h:39: virtual void frameDestroyed(); On 2015/02/06 20:33:10, dcheng wrote: > ...
5 years, 10 months ago (2015-02-06 20:50:16 UTC) #28
sof
On 2015/02/06 20:50:16, sof wrote: > https://codereview.chromium.org/881683003/diff/60001/Source/core/frame/FrameDestructionObserver.h > File Source/core/frame/FrameDestructionObserver.h (right): > > https://codereview.chromium.org/881683003/diff/60001/Source/core/frame/FrameDestructionObserver.h#newcode39 > ...
5 years, 10 months ago (2015-02-07 17:17:58 UTC) #29
dcheng
lgtm, but let's update the description to include the changes for supplements that are FrameDestructionObservers ...
5 years, 10 months ago (2015-02-09 18:46:11 UTC) #30
sof
(friendly) monday ping :)
5 years, 10 months ago (2015-02-09 18:46:15 UTC) #31
sof
On 2015/02/09 18:46:11, dcheng wrote: > lgtm, but let's update the description to include the ...
5 years, 10 months ago (2015-02-09 19:13:55 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/881683003/80001
5 years, 10 months ago (2015-02-09 20:01:49 UTC) #34
commit-bot: I haz the power
Committed patchset #5 (id:80001) as https://src.chromium.org/viewvc/blink?view=rev&revision=189837
5 years, 10 months ago (2015-02-09 20:10:24 UTC) #35
sof
A revert of this CL (patchset #5 id:80001) has been created in https://codereview.chromium.org/908043002/ by sigbjornf@opera.com. ...
5 years, 10 months ago (2015-02-09 22:01:34 UTC) #36
sof
On 2015/02/09 22:01:34, sof wrote: > A revert of this CL (patchset #5 id:80001) has ...
5 years, 10 months ago (2015-02-10 16:01:01 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/881683003/80001
5 years, 10 months ago (2015-02-10 16:02:05 UTC) #39
commit-bot: I haz the power
5 years, 10 months ago (2015-02-10 16:02:46 UTC) #40
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=189906

Powered by Google App Engine
This is Rietveld 408576698