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

Issue 640803004: Add a basic DOMWindow base class and use it in WindowProxy. (Closed)

Created:
6 years, 2 months ago by dcheng
Modified:
6 years, 2 months ago
Reviewers:
haraken, Nate Chapin, Yuki
CC:
arv+blink, blink-reviews, blink-reviews-bindings_chromium.org, sof, site-isolation-reviews_chromium.org
Project:
blink
Visibility:
Public.

Description

Add a basic DOMWindow base class and use it in WindowProxy. This is the first step towards providing RemoteFrames with a DOMWindow so things like postMessage() on a remote frame will work. This patch also moves Frame::setDOMWindow with a LocalDOMWindow to LocalFrame, since it's only called on a LocalFrame. The corresponding member has also been moved to LocalFrame, since it was never set to a non-null value for RemoteFrames anyway. BUG=425623 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=184244

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : Move the member too #

Total comments: 7

Patch Set 4 : Address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+60 lines, -43 lines) Patch
M Source/bindings/core/v8/WindowProxy.cpp View 1 2 3 2 chunks +6 lines, -5 lines 0 comments Download
M Source/core/core.gypi View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
A Source/core/frame/DOMWindow.h View 1 2 3 1 chunk +21 lines, -0 lines 0 comments Download
M Source/core/frame/Frame.h View 1 2 4 chunks +3 lines, -12 lines 0 comments Download
M Source/core/frame/Frame.cpp View 1 2 3 chunks +0 lines, -14 lines 0 comments Download
M Source/core/frame/LocalDOMWindow.h View 3 chunks +6 lines, -2 lines 0 comments Download
M Source/core/frame/LocalFrame.h View 1 2 3 chunks +3 lines, -1 line 0 comments Download
M Source/core/frame/LocalFrame.cpp View 1 2 3 chunks +10 lines, -1 line 0 comments Download
M Source/core/frame/RemoteFrame.h View 1 2 2 chunks +4 lines, -2 lines 0 comments Download
M Source/core/frame/RemoteFrame.cpp View 1 2 2 chunks +6 lines, -6 lines 0 comments Download

Messages

Total messages: 25 (6 generated)
dcheng
6 years, 2 months ago (2014-10-21 22:28:30 UTC) #2
Nate Chapin
6 years, 2 months ago (2014-10-21 22:44:25 UTC) #3
Nate Chapin
lgtm
6 years, 2 months ago (2014-10-21 22:44:31 UTC) #4
dcheng
https://codereview.chromium.org/640803004/diff/40001/Source/core/frame/Frame.h File Source/core/frame/Frame.h (right): https://codereview.chromium.org/640803004/diff/40001/Source/core/frame/Frame.h#newcode63 Source/core/frame/Frame.h:63: virtual LocalDOMWindow* domWindow() const = 0; I meant to ...
6 years, 2 months ago (2014-10-21 23:22:55 UTC) #5
haraken
Just to confirm: Are you planning to make RemoteFrame inherit from DOMWindow in the future? ...
6 years, 2 months ago (2014-10-22 00:59:14 UTC) #7
dcheng
RemoteFrame itself probably won't inherit from DOMWindow, but we'll add a RemoteDOMWindow that will. https://codereview.chromium.org/640803004/diff/40001/Source/core/frame/DOMWindow.h ...
6 years, 2 months ago (2014-10-22 01:01:47 UTC) #8
haraken
On 2014/10/22 01:01:47, dcheng wrote: > RemoteFrame itself probably won't inherit from DOMWindow, but we'll ...
6 years, 2 months ago (2014-10-22 01:16:56 UTC) #9
haraken
On 2014/10/22 01:16:56, haraken wrote: > On 2014/10/22 01:01:47, dcheng wrote: > > RemoteFrame itself ...
6 years, 2 months ago (2014-10-22 01:22:06 UTC) #10
dcheng
On 2014/10/22 at 01:22:06, haraken wrote: > On 2014/10/22 01:16:56, haraken wrote: > > On ...
6 years, 2 months ago (2014-10-22 01:36:53 UTC) #13
haraken
On 2014/10/22 01:36:53, dcheng wrote: > On 2014/10/22 at 01:22:06, haraken wrote: > > On ...
6 years, 2 months ago (2014-10-22 01:42:25 UTC) #14
Yuki
On 2014/10/22 01:42:25, haraken wrote: > On 2014/10/22 01:36:53, dcheng wrote: > > On 2014/10/22 ...
6 years, 2 months ago (2014-10-22 04:23:38 UTC) #15
dcheng
On 2014/10/22 at 04:23:38, yukishiino wrote: > On 2014/10/22 01:42:25, haraken wrote: > > On ...
6 years, 2 months ago (2014-10-22 06:14:16 UTC) #16
Yuki
On 2014/10/22 06:14:16, dcheng wrote: > On 2014/10/22 at 04:23:38, yukishiino wrote: > > On ...
6 years, 2 months ago (2014-10-23 04:45:18 UTC) #18
haraken
On 2014/10/23 04:45:18, Yuki wrote: > On 2014/10/22 06:14:16, dcheng wrote: > > On 2014/10/22 ...
6 years, 2 months ago (2014-10-23 04:46:01 UTC) #19
Yuki
Sorry, I forgot to send these comments. https://codereview.chromium.org/640803004/diff/40001/Source/bindings/core/v8/WindowProxy.cpp File Source/bindings/core/v8/WindowProxy.cpp (right): https://codereview.chromium.org/640803004/diff/40001/Source/bindings/core/v8/WindowProxy.cpp#newcode294 Source/bindings/core/v8/WindowProxy.cpp:294: DOMWindow* window ...
6 years, 2 months ago (2014-10-23 06:03:34 UTC) #20
haraken
Also let's add a good comment about the situation on DOMWindow.h.
6 years, 2 months ago (2014-10-23 06:08:38 UTC) #21
dcheng
I've also added a comment to DOMWindow::toScriptWrappable to describe why we need a silly looking ...
6 years, 2 months ago (2014-10-23 06:48:46 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/640803004/60001
6 years, 2 months ago (2014-10-23 06:49:05 UTC) #24
commit-bot: I haz the power
6 years, 2 months ago (2014-10-23 08:40:29 UTC) #25
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as 184244

Powered by Google App Engine
This is Rietveld 408576698