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

Issue 1413863006: Change BrowsingInstance when changing WebUI type. (Closed)

Created:
5 years, 2 months ago by nasko
Modified:
5 years, 2 months ago
Reviewers:
Lei Zhang, Charlie Reis
CC:
chromium-reviews, darin-cc_chromium.org, nasko+codewatch_chromium.org, jam, creis+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Change BrowsingInstance when changing WebUI type. In the current implementation of --process-per-tab process model, navigation from one type of WebUI to another type of WebUI does not result in a change of SiteInstance. Since different WebUI types are unrelated, the navigation should result in changing of SiteInstance. Since the current code doesn't support keeping the same BrowsingInstance and only changing the SiteInstance, this CL achieves the desired behavior by forcing a BrowsingInstance change. BUG=508850 Committed: https://crrev.com/cf3a66c97c6f3b22b6adb31daf52bce767a1ecbf Cr-Commit-Position: refs/heads/master@{#355951}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Fixes based on Charlie's review. No new test yet. #

Patch Set 3 : Added a test. #

Total comments: 8

Patch Set 4 : Fix nits. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+80 lines, -7 lines) Patch
A chrome/browser/ui/webui/webui_browsertest.cc View 1 2 3 1 chunk +52 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/frame_host/render_frame_host_manager.cc View 1 2 chunks +14 lines, -1 line 0 comments Download
M content/browser/frame_host/render_frame_host_manager_browsertest.cc View 1 2 3 3 chunks +13 lines, -6 lines 0 comments Download

Messages

Total messages: 17 (5 generated)
nasko
Hey Charlie, This is the change we have been discussing for ensuring we do SiteInstance ...
5 years, 2 months ago (2015-10-23 22:35:46 UTC) #2
Charlie Reis
Yes, I think we should force a swap for different WebUI types. That has the ...
5 years, 2 months ago (2015-10-23 23:09:50 UTC) #3
nasko
Fixes, no test yet. https://codereview.chromium.org/1413863006/diff/1/content/browser/frame_host/render_frame_host_manager.cc File content/browser/frame_host/render_frame_host_manager.cc (right): https://codereview.chromium.org/1413863006/diff/1/content/browser/frame_host/render_frame_host_manager.cc#newcode1245 content/browser/frame_host/render_frame_host_manager.cc:1245: if (IsRendererDebugURL(new_effective_url)) On 2015/10/23 23:09:50, ...
5 years, 2 months ago (2015-10-23 23:46:53 UTC) #4
nasko
Now it has a test too : )
5 years, 2 months ago (2015-10-24 00:16:09 UTC) #5
nasko
Hey Lei, Can you do an OWNERS review of chrome/? I had to add a ...
5 years, 2 months ago (2015-10-24 00:17:41 UTC) #7
nasko
Adding mostynb@opera.com for FYI. Carlos, this will make your refactor much simpler. No need for ...
5 years, 2 months ago (2015-10-24 00:19:22 UTC) #9
Charlie Reis
Thanks! LGTM with nits. Don't forget to give mostynb@opera.com a heads up. https://codereview.chromium.org/1413863006/diff/40001/chrome/browser/ui/webui/webui_browsertest.cc File chrome/browser/ui/webui/webui_browsertest.cc ...
5 years, 2 months ago (2015-10-24 00:19:22 UTC) #10
Lei Zhang
lgtm stamp https://codereview.chromium.org/1413863006/diff/40001/chrome/browser/ui/webui/webui_browsertest.cc File chrome/browser/ui/webui/webui_browsertest.cc (right): https://codereview.chromium.org/1413863006/diff/40001/chrome/browser/ui/webui/webui_browsertest.cc#newcode18 chrome/browser/ui/webui/webui_browsertest.cc:18: typedef InProcessBrowserTest WebUIBrowserTest; nit: using foo = ...
5 years, 2 months ago (2015-10-24 00:21:23 UTC) #11
nasko
Fixed nits. https://codereview.chromium.org/1413863006/diff/40001/chrome/browser/ui/webui/webui_browsertest.cc File chrome/browser/ui/webui/webui_browsertest.cc (right): https://codereview.chromium.org/1413863006/diff/40001/chrome/browser/ui/webui/webui_browsertest.cc#newcode18 chrome/browser/ui/webui/webui_browsertest.cc:18: typedef InProcessBrowserTest WebUIBrowserTest; On 2015/10/24 00:21:23, Lei ...
5 years, 2 months ago (2015-10-24 00:30:49 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1413863006/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1413863006/60001
5 years, 2 months ago (2015-10-24 00:32:12 UTC) #15
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 2 months ago (2015-10-24 01:43:24 UTC) #16
commit-bot: I haz the power
5 years, 2 months ago (2015-10-24 01:44:08 UTC) #17
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/cf3a66c97c6f3b22b6adb31daf52bce767a1ecbf
Cr-Commit-Position: refs/heads/master@{#355951}

Powered by Google App Engine
This is Rietveld 408576698