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

Issue 627933002: Oilpan: move ScriptController+WindowProxy to the heap. (Closed)

Created:
6 years, 2 months ago by sof
Modified:
6 years, 2 months ago
CC:
blink-reviews, blink-reviews-bindings_chromium.org, arv+blink
Project:
blink
Visibility:
Public.

Description

Oilpan: move ScriptController+WindowProxy to the heap. Turn LocalFrame's ScriptController into a GCed object, letting it correctly trace its member reference back to its owner. Having it be heap allocated also simplifies how its LocalFrame is kept alive across calls that invoke scripts which indirectly detaches/removes the frame. Transitively do the exact same for ScriptController's owned WindowProxies. R=mkwst,haraken BUG=340522 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=183255

Patch Set 1 #

Patch Set 2 : Rebased #

Patch Set 3 : Move WindowProxy over as well #

Patch Set 4 : Non-Oilpan compile fix #

Total comments: 8

Patch Set 5 : Smaller fixes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+53 lines, -25 lines) Patch
M Source/bindings/core/v8/ScriptController.h View 1 2 3 chunks +13 lines, -6 lines 0 comments Download
M Source/bindings/core/v8/ScriptController.cpp View 1 2 3 4 7 chunks +15 lines, -8 lines 0 comments Download
M Source/bindings/core/v8/WindowProxy.h View 1 2 3 chunks +7 lines, -5 lines 0 comments Download
M Source/bindings/core/v8/WindowProxy.cpp View 1 2 3 4 2 chunks +13 lines, -2 lines 0 comments Download
M Source/core/frame/LocalFrame.h View 3 chunks +3 lines, -3 lines 0 comments Download
M Source/core/frame/LocalFrame.cpp View 2 chunks +2 lines, -1 line 0 comments Download

Messages

Total messages: 11 (4 generated)
sof
Please take a look. See https://groups.google.com/a/chromium.org/forum/#!topic/oilpan-reviews/JbTaFVkJCWA for some context on why this change is being ...
6 years, 2 months ago (2014-10-05 15:20:43 UTC) #2
Mike West
LGTM. It's probably a good idea to get an oilpanner to take a second pass, ...
6 years, 2 months ago (2014-10-05 16:25:45 UTC) #4
haraken
LGTM https://codereview.chromium.org/627933002/diff/60001/Source/bindings/core/v8/ScriptController.cpp File Source/bindings/core/v8/ScriptController.cpp (right): https://codereview.chromium.org/627933002/diff/60001/Source/bindings/core/v8/ScriptController.cpp#newcode241 Source/bindings/core/v8/ScriptController.cpp:241: OwnPtrWillBeMember<WindowProxy> isolatedWorldWindowProxy = WindowProxy::create(m_frame, world, m_isolate); OwnPtrWillBeRawPtr ? ...
6 years, 2 months ago (2014-10-05 23:37:26 UTC) #6
sof
Thanks for the reviews. https://codereview.chromium.org/627933002/diff/60001/Source/bindings/core/v8/ScriptController.cpp File Source/bindings/core/v8/ScriptController.cpp (right): https://codereview.chromium.org/627933002/diff/60001/Source/bindings/core/v8/ScriptController.cpp#newcode241 Source/bindings/core/v8/ScriptController.cpp:241: OwnPtrWillBeMember<WindowProxy> isolatedWorldWindowProxy = WindowProxy::create(m_frame, world, ...
6 years, 2 months ago (2014-10-06 07:34:40 UTC) #7
haraken
> https://codereview.chromium.org/627933002/diff/60001/Source/bindings/core/v8/ScriptController.h > File Source/bindings/core/v8/ScriptController.h (right): > > https://codereview.chromium.org/627933002/diff/60001/Source/bindings/core/v8/ScriptController.h#newcode158 > Source/bindings/core/v8/ScriptController.h:158: typedef HashMap<Widget*, > NPObject*> ...
6 years, 2 months ago (2014-10-06 07:39:23 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/627933002/80001
6 years, 2 months ago (2014-10-06 07:52:22 UTC) #10
commit-bot: I haz the power
6 years, 2 months ago (2014-10-06 08:58:42 UTC) #11
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as 183255

Powered by Google App Engine
This is Rietveld 408576698