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

Issue 1176843006: Move window.close implementation to DOMWindow (Closed)

Created:
5 years, 6 months ago by nasko
Modified:
5 years, 6 months ago
Reviewers:
dcheng
CC:
blink-reviews, dglazkov+blink, gavinp+loader_chromium.org, Nate Chapin, site-isolation-reviews_chromium.org, tyoshino+watch_chromium.org
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Move window.close implementation to DOMWindow This CL moves the implementation of window.close to DOMWindow, such that it is shared between LocalDOMWindow and RemoteDOMWindow. Follow up CLs will split the difference between closing windows and popups in the WebWidgetClient interface to ensure we have separate codepaths for those two types. BUG=498900 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=197688

Patch Set 1 #

Total comments: 3

Patch Set 2 : Added checks in RemoteDOMWindow::close and a test. #

Patch Set 3 : Add setting of m_windowIsClosing. #

Patch Set 4 : Rebase. #

Total comments: 2

Patch Set 5 : Moved close() implementation to DOMWindow. #

Patch Set 6 : Cleanup some leftover changes. #

Total comments: 10

Patch Set 7 : Fixed windows failure and moved shouldClose to Frame. #

Patch Set 8 : Rebase and move backForwardHistory to FrameClient. #

Total comments: 11

Patch Set 9 : Addressed Daniel's comments. #

Total comments: 3

Patch Set 10 : Remove resetting of the main view. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+132 lines, -49 lines) Patch
M Source/core/frame/DOMWindow.h View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M Source/core/frame/DOMWindow.cpp View 1 2 3 4 5 6 7 2 chunks +50 lines, -0 lines 0 comments Download
M Source/core/frame/Frame.h View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/frame/FrameClient.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/frame/LocalDOMWindow.h View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -1 line 0 comments Download
M Source/core/frame/LocalDOMWindow.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -40 lines 0 comments Download
M Source/core/frame/LocalFrame.h View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/frame/LocalFrame.cpp View 1 2 3 4 5 6 7 8 1 chunk +7 lines, -0 lines 0 comments Download
M Source/core/frame/RemoteDOMWindow.h View 1 2 3 4 5 6 7 1 chunk +0 lines, -1 line 0 comments Download
M Source/core/frame/RemoteDOMWindow.cpp View 1 2 3 4 5 6 7 1 chunk +0 lines, -5 lines 0 comments Download
M Source/core/frame/RemoteFrame.h View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/frame/RemoteFrame.cpp View 1 2 3 4 5 6 7 1 chunk +7 lines, -0 lines 0 comments Download
M Source/core/frame/RemoteFrameClient.h View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M Source/web/RemoteFrameClientImpl.h View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M Source/web/RemoteFrameClientImpl.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +9 lines, -0 lines 0 comments Download
M Source/web/WebRemoteFrameImpl.cpp View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -1 line 0 comments Download
M Source/web/tests/WebFrameTest.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +49 lines, -0 lines 0 comments Download

Messages

Total messages: 33 (9 generated)
nasko
Hey Daniel, This is a strawman CL to implement RemoteDOMWindow::close. Let me know if it ...
5 years, 6 months ago (2015-06-10 17:45:36 UTC) #2
dcheng
https://codereview.chromium.org/1176843006/diff/1/Source/core/frame/RemoteFrame.cpp File Source/core/frame/RemoteFrame.cpp (right): https://codereview.chromium.org/1176843006/diff/1/Source/core/frame/RemoteFrame.cpp#newcode157 Source/core/frame/RemoteFrame.cpp:157: remoteFrameClient()->close(); LocalDOMWindow::close() has a bunch of other stuff. It ...
5 years, 6 months ago (2015-06-10 20:10:41 UTC) #3
nasko
https://codereview.chromium.org/1176843006/diff/1/Source/core/frame/RemoteFrame.cpp File Source/core/frame/RemoteFrame.cpp (right): https://codereview.chromium.org/1176843006/diff/1/Source/core/frame/RemoteFrame.cpp#newcode157 Source/core/frame/RemoteFrame.cpp:157: remoteFrameClient()->close(); On 2015/06/10 20:10:41, dcheng wrote: > LocalDOMWindow::close() has ...
5 years, 6 months ago (2015-06-11 00:04:39 UTC) #4
dcheng
https://codereview.chromium.org/1176843006/diff/1/Source/core/frame/RemoteFrame.cpp File Source/core/frame/RemoteFrame.cpp (right): https://codereview.chromium.org/1176843006/diff/1/Source/core/frame/RemoteFrame.cpp#newcode157 Source/core/frame/RemoteFrame.cpp:157: remoteFrameClient()->close(); On 2015/06/11 at 00:04:39, nasko wrote: > On ...
5 years, 6 months ago (2015-06-11 02:00:06 UTC) #5
nasko
On 2015/06/11 02:00:06, dcheng wrote: > https://codereview.chromium.org/1176843006/diff/1/Source/core/frame/RemoteFrame.cpp > File Source/core/frame/RemoteFrame.cpp (right): > > https://codereview.chromium.org/1176843006/diff/1/Source/core/frame/RemoteFrame.cpp#newcode157 > ...
5 years, 6 months ago (2015-06-11 04:42:01 UTC) #6
dcheng
Yes, but we can change ChromeClient. On Wed, Jun 10, 2015, 21:42 <nasko@chromium.org> wrote: > ...
5 years, 6 months ago (2015-06-11 04:47:55 UTC) #7
nasko
Hey Daniel, I've taken the road we've discussed of moving ::close into DOMWindow and out ...
5 years, 6 months ago (2015-06-15 17:45:19 UTC) #8
dcheng
(Sorry I had drafts and forgot to send them out!) https://codereview.chromium.org/1176843006/diff/100001/Source/core/frame/DOMWindow.cpp File Source/core/frame/DOMWindow.cpp (right): https://codereview.chromium.org/1176843006/diff/100001/Source/core/frame/DOMWindow.cpp#newcode310 ...
5 years, 6 months ago (2015-06-16 20:08:24 UTC) #9
nasko
https://codereview.chromium.org/1176843006/diff/100001/Source/core/frame/DOMWindow.cpp File Source/core/frame/DOMWindow.cpp (right): https://codereview.chromium.org/1176843006/diff/100001/Source/core/frame/DOMWindow.cpp#newcode310 Source/core/frame/DOMWindow.cpp:310: // FIXME: The session history length should be implemented ...
5 years, 6 months ago (2015-06-16 22:58:54 UTC) #10
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1176843006/140001
5 years, 6 months ago (2015-06-16 23:21:51 UTC) #12
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 6 months ago (2015-06-17 00:47:41 UTC) #14
dcheng
https://codereview.chromium.org/1176843006/diff/140001/Source/core/frame/LocalFrame.cpp File Source/core/frame/LocalFrame.cpp (right): https://codereview.chromium.org/1176843006/diff/140001/Source/core/frame/LocalFrame.cpp#newcode355 Source/core/frame/LocalFrame.cpp:355: return m_loader.shouldClose(); Let's add a TODO, since we need ...
5 years, 6 months ago (2015-06-17 23:39:50 UTC) #15
nasko
https://codereview.chromium.org/1176843006/diff/140001/Source/core/frame/LocalFrame.cpp File Source/core/frame/LocalFrame.cpp (right): https://codereview.chromium.org/1176843006/diff/140001/Source/core/frame/LocalFrame.cpp#newcode355 Source/core/frame/LocalFrame.cpp:355: return m_loader.shouldClose(); On 2015/06/17 23:39:50, dcheng wrote: > Let's ...
5 years, 6 months ago (2015-06-19 13:23:23 UTC) #16
dcheng
lgtm with a nit https://codereview.chromium.org/1176843006/diff/140001/Source/web/tests/WebFrameTest.cpp File Source/web/tests/WebFrameTest.cpp (right): https://codereview.chromium.org/1176843006/diff/140001/Source/web/tests/WebFrameTest.cpp#newcode7352 Source/web/tests/WebFrameTest.cpp:7352: LocalFrame* localFrame = toLocalFrame(toCoreFrame(mainFrame())); On ...
5 years, 6 months ago (2015-06-20 00:41:32 UTC) #17
nasko
Responded to your comment. There might be a further issue to investigate, but I'm not ...
5 years, 6 months ago (2015-06-22 12:47:45 UTC) #18
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1176843006/160001
5 years, 6 months ago (2015-06-22 12:48:04 UTC) #20
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 6 months ago (2015-06-22 14:38:51 UTC) #22
nasko
Daniel, do you think this is ready to go?
5 years, 6 months ago (2015-06-23 21:39:03 UTC) #23
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1176843006/180001
5 years, 6 months ago (2015-06-23 21:40:09 UTC) #26
dcheng
Yeah, I think there might be room for future cleanup in DOMWindow::close()... but I'm happy ...
5 years, 6 months ago (2015-06-23 21:40:56 UTC) #27
dcheng
(Ignore the draft, I forgot to remove it)
5 years, 6 months ago (2015-06-23 21:41:24 UTC) #28
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 6 months ago (2015-06-23 23:17:34 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1176843006/180001
5 years, 6 months ago (2015-06-24 00:36:10 UTC) #32
commit-bot: I haz the power
5 years, 6 months ago (2015-06-24 00:41:25 UTC) #33
Message was sent while issue was closed.
Committed patchset #10 (id:180001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=197688

Powered by Google App Engine
This is Rietveld 408576698