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

Issue 9325082: Create window in a new BrowsingInstance when opening a link in a new process. (Closed)

Created:
8 years, 10 months ago by Charlie Reis
Modified:
8 years, 9 months ago
CC:
chromium-reviews, Avi (use Gerrit), creis+watch_chromium.org, ajwong+watch_chromium.org, jam, joi+watch-content_chromium.org, darin-cc_chromium.org, brettw-cc_chromium.org
Visibility:
Public.

Description

Create window in a new BrowsingInstance when opening a link in a new process. This allows the rel=noreferrer process trick to work even for same-site links. BUG=69267 TEST=Same-site link to rel=noreferrer target=_blank link gets new process. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=125180

Patch Set 1 #

Patch Set 2 : Use correct navigation policy. #

Total comments: 2

Patch Set 3 : Pass WebNavigationPolicy to createView #

Patch Set 4 : Add test and clean up changes #

Patch Set 5 : Merge to get WebKit patch #

Total comments: 1

Patch Set 6 : Fix line break #

Unified diffs Side-by-side diffs Delta from patch set Stats (+132 lines, -72 lines) Patch
M chrome/test/data/click-noreferrer-links.html View 1 2 3 2 chunks +9 lines, -2 lines 0 comments Download
M content/browser/renderer_host/render_view_host_manager_browsertest.cc View 1 2 3 1 chunk +58 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_helper.cc View 1 2 3 4 2 chunks +24 lines, -10 lines 0 comments Download
M content/browser/tab_contents/tab_contents_view_helper.cc View 1 2 3 4 3 chunks +30 lines, -1 line 0 comments Download
M content/common/view_messages.h View 1 2 3 4 1 chunk +7 lines, -0 lines 0 comments Download
M content/renderer/render_view_impl.h View 1 2 3 4 1 chunk +0 lines, -6 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 4 5 4 chunks +4 lines, -39 lines 0 comments Download
M webkit/tools/test_shell/test_webview_delegate.h View 1 2 3 4 1 chunk +0 lines, -6 lines 0 comments Download
M webkit/tools/test_shell/test_webview_delegate.cc View 1 2 3 4 1 chunk +0 lines, -8 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
Charlie Reis
Hi Darin-- This is still a draft, but I'm wondering if you think this approach ...
8 years, 10 months ago (2012-02-06 20:38:54 UTC) #1
Charlie Reis
Here's an updated draft that uses the correct WindowDisposition when opening the new window. Unfortunately, ...
8 years, 10 months ago (2012-02-07 02:19:54 UTC) #2
Charlie Reis
Hey Darin-- now that you're back, would you have time to take a look at ...
8 years, 10 months ago (2012-02-13 21:25:05 UTC) #3
darin (slow to review)
Is there a corresponding WebKit patch I can read? I'm not sure I get didSetNextNavigationPolicy. ...
8 years, 10 months ago (2012-02-14 00:15:56 UTC) #4
Charlie Reis
On 2012/02/14 00:15:56, darin wrote: > Is there a corresponding WebKit patch I can read? ...
8 years, 10 months ago (2012-02-14 02:18:58 UTC) #5
Charlie Reis
After our discussions, I've changed this to expect WebKit to pass the WebNavigationPolicy into RenderViewImpl::createView. ...
8 years, 9 months ago (2012-03-01 23:31:50 UTC) #6
darin (slow to review)
Landing a chromium side patch in advance like that is a common technique. On Thu, ...
8 years, 9 months ago (2012-03-02 23:00:45 UTC) #7
Charlie Reis
On 2012/03/02 23:00:45, darin wrote: > Landing a chromium side patch in advance like that ...
8 years, 9 months ago (2012-03-02 23:59:12 UTC) #8
Charlie Reis
Hi Darin-- The other patches are in place and the try jobs look happy. Can ...
8 years, 9 months ago (2012-03-06 17:52:20 UTC) #9
darin (slow to review)
8 years, 9 months ago (2012-03-06 17:54:34 UTC) #10
LGTM

https://chromiumcodereview.appspot.com/9325082/diff/16001/content/renderer/re...
File content/renderer/render_view_impl.cc (right):

https://chromiumcodereview.appspot.com/9325082/diff/16001/content/renderer/re...
content/renderer/render_view_impl.cc:1453: params.disposition =
looks like you don't need a line break here

Powered by Google App Engine
This is Rietveld 408576698