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

Issue 1109213002: Make createWindow (mostly) work with OOPIF (Closed)

Created:
5 years, 7 months ago by Nate Chapin
Modified:
5 years, 7 months ago
Reviewers:
esprehn, dcheng
CC:
blink-reviews, mlamouri (slow - plz ping), site-isolation-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Make createWindow (mostly) work with OOPIF If a RemoteFrame is targeted by window.open(), we correctly plumb the navigation out of blink. We no longer assume that ChromeClient::createWindow will return a Page with a local main frame. However, there are a several places where we wouldn't have the plumbing to set the correct state even if a Page with a remote main frame was ever returned. BUG=463742 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=195063

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Total comments: 3

Patch Set 5 : Rebase #

Total comments: 10

Patch Set 6 : Address comments #

Patch Set 7 : Fix popup unit test failures #

Total comments: 5

Patch Set 8 : Fix style, use FrameView::root #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+104 lines, -104 lines) Patch
M Source/core/frame/LocalDOMWindow.h View 1 2 3 4 1 chunk +0 lines, -2 lines 0 comments Download
M Source/core/frame/LocalDOMWindow.cpp View 1 2 3 4 5 6 7 7 chunks +5 lines, -36 lines 0 comments Download
M Source/core/frame/Screen.cpp View 1 2 3 4 5 5 chunks +21 lines, -12 lines 0 comments Download
M Source/core/page/Chrome.cpp View 1 2 3 4 5 6 7 2 chunks +18 lines, -2 lines 0 comments Download
M Source/core/page/CreateWindow.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/page/CreateWindow.cpp View 1 2 3 4 5 7 chunks +33 lines, -41 lines 0 comments Download
M Source/platform/PlatformScreen.h View 1 2 3 4 5 2 chunks +2 lines, -1 line 0 comments Download
M Source/platform/PlatformScreen.cpp View 1 2 3 4 5 1 chunk +2 lines, -5 lines 1 comment Download
M Source/web/PopupContainer.cpp View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M Source/web/tests/WebFrameTest.cpp View 1 2 3 4 5 6 7 1 chunk +18 lines, -0 lines 0 comments Download
M Source/web/tests/data/frame-a-b-c.html View 1 1 chunk +3 lines, -3 lines 0 comments Download

Messages

Total messages: 18 (5 generated)
Nate Chapin
https://codereview.chromium.org/1109213002/diff/60001/Source/core/frame/LocalDOMWindow.cpp File Source/core/frame/LocalDOMWindow.cpp (left): https://codereview.chromium.org/1109213002/diff/60001/Source/core/frame/LocalDOMWindow.cpp#oldcode261 Source/core/frame/LocalDOMWindow.cpp:261: IntRect LocalDOMWindow::adjustWindowRect(LocalFrame& frame, const IntRect& pendingChanges) This was only ...
5 years, 7 months ago (2015-04-28 23:25:52 UTC) #2
dcheng
https://codereview.chromium.org/1109213002/diff/80001/Source/core/frame/Frame.h File Source/core/frame/Frame.h (right): https://codereview.chromium.org/1109213002/diff/80001/Source/core/frame/Frame.h#newcode68 Source/core/frame/Frame.h:68: virtual Widget* widget() const = 0; It feels weird ...
5 years, 7 months ago (2015-04-29 21:37:47 UTC) #3
Nate Chapin
https://codereview.chromium.org/1109213002/diff/80001/Source/core/frame/Frame.h File Source/core/frame/Frame.h (right): https://codereview.chromium.org/1109213002/diff/80001/Source/core/frame/Frame.h#newcode68 Source/core/frame/Frame.h:68: virtual Widget* widget() const = 0; On 2015/04/29 21:37:46, ...
5 years, 7 months ago (2015-05-01 20:30:53 UTC) #4
dcheng
https://codereview.chromium.org/1109213002/diff/120001/Source/core/page/Chrome.cpp File Source/core/page/Chrome.cpp (right): https://codereview.chromium.org/1109213002/diff/120001/Source/core/page/Chrome.cpp#newcode104 Source/core/page/Chrome.cpp:104: Nit: remove extra newline. https://codereview.chromium.org/1109213002/diff/120001/Source/core/page/CreateWindow.cpp File Source/core/page/CreateWindow.cpp (left): https://codereview.chromium.org/1109213002/diff/120001/Source/core/page/CreateWindow.cpp#oldcode153 ...
5 years, 7 months ago (2015-05-04 17:38:11 UTC) #5
Nate Chapin
https://codereview.chromium.org/1109213002/diff/120001/Source/core/page/CreateWindow.cpp File Source/core/page/CreateWindow.cpp (left): https://codereview.chromium.org/1109213002/diff/120001/Source/core/page/CreateWindow.cpp#oldcode153 Source/core/page/CreateWindow.cpp:153: bool hasUserGesture = UserGestureIndicator::processingUserGesture(); On 2015/05/04 17:38:11, dcheng wrote: ...
5 years, 7 months ago (2015-05-04 18:09:13 UTC) #6
dcheng
lgtm (sorry for the delay; since you didn't reply to the other comments, I assumed ...
5 years, 7 months ago (2015-05-05 21:54:45 UTC) #7
Nate Chapin
On 2015/05/05 21:54:45, dcheng wrote: > lgtm > > (sorry for the delay; since you ...
5 years, 7 months ago (2015-05-06 18:06:33 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1109213002/140001
5 years, 7 months ago (2015-05-06 18:56:43 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: blink_presubmit on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/blink_presubmit/builds/32763)
5 years, 7 months ago (2015-05-06 19:02:50 UTC) #12
esprehn
lgtm https://codereview.chromium.org/1109213002/diff/140001/Source/platform/PlatformScreen.cpp File Source/platform/PlatformScreen.cpp (left): https://codereview.chromium.org/1109213002/diff/140001/Source/platform/PlatformScreen.cpp#oldcode85 Source/platform/PlatformScreen.cpp:85: HostWindow* hostWindow = toHostWindow(widget); Yay, I dream of ...
5 years, 7 months ago (2015-05-07 17:27:17 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1109213002/140001
5 years, 7 months ago (2015-05-07 17:30:46 UTC) #16
commit-bot: I haz the power
Committed patchset #8 (id:140001) as https://src.chromium.org/viewvc/blink?view=rev&revision=195063
5 years, 7 months ago (2015-05-07 17:33:47 UTC) #17
tasak
5 years, 7 months ago (2015-05-08 08:01:52 UTC) #18
Message was sent while issue was closed.
A revert of this CL (patchset #8 id:140001) has been created in
https://codereview.chromium.org/1135633004/ by tasak@google.com.

The reason for reverting is: This breaks the following browser_tests:
ActivityLogApiTest.TriggerEvent
ExtensionApiTest.Events
ExtensionBrowserTest.WindowOpenExtension
WebNavigationApiTest.OpenTab
WebstoreInlineInstallerTest.ShouldBlockInlineInstallFromPopupWindow
.

Powered by Google App Engine
This is Rietveld 408576698