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

Issue 877343010: PlzNavigate: Fix WebUI creation logic for both cross and same site navigation. (Closed)

Created:
5 years, 10 months ago by carlosk
Modified:
5 years, 10 months ago
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

This CL is basically a 3 fixes in 1. I started off fixing the fact that WebUIs were not properly being created when reusing the current RenderFrameHost. But while doing that I found an issue in RenderFrameHostManager::CreateSpeculativeRenderFrameHost where instead of setting an instance member I was mistakenly shadowing it with a same-named function member. This last fix caused another test to crash because the WebUI reuse logic was incorrect. Instead of checking if it should be reused when the navigation SiteInstance matched the current one, it was being done when they were different (what doesn't even makes sense). Due to these changes I also had to update how RFHM::CleanUpNavigation and UnsetSpeculativeRenderFrameHost work,so that the speculative WebUI member is always cleaned up even if a speculative RFH does not exist. Also renamed the speculative WebUI getter as it's not test-only anymore. With these changes these tests were fixed when PlzNavigate is enabled: RenderFrameHostManagerTest.EnableWebUIWithSwappedOutOpener RenderFrameHostManagerTest.WebUIInNewTab BUG=439423 Committed: https://crrev.com/1ae0930d2a6f0c8ecfe6bf60bbd2140303b122a2 Cr-Commit-Position: refs/heads/master@{#315006}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Minor changes from CR comments. #

Total comments: 2

Patch Set 3 : Single comment change. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -15 lines) Patch
M content/browser/frame_host/render_frame_host_manager.h View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/frame_host/render_frame_host_manager.cc View 1 2 8 chunks +27 lines, -13 lines 0 comments Download
M content/browser/frame_host/render_frame_host_manager_unittest.cc View 3 chunks +8 lines, -1 line 0 comments Download

Messages

Total messages: 15 (4 generated)
carlosk
nasko, clamy: PTAL. fdegans: FYI. Please find the CL explanations in the description and the ...
5 years, 10 months ago (2015-02-05 16:09:06 UTC) #3
clamy
Thanks! https://chromiumcodereview.appspot.com/877343010/diff/1/content/browser/frame_host/render_frame_host_manager.cc File content/browser/frame_host/render_frame_host_manager.cc (right): https://chromiumcodereview.appspot.com/877343010/diff/1/content/browser/frame_host/render_frame_host_manager.cc#newcode719 content/browser/frame_host/render_frame_host_manager.cc:719: // As site instances are the same, check ...
5 years, 10 months ago (2015-02-05 16:54:27 UTC) #4
carlosk
Thanks. https://codereview.chromium.org/877343010/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/877343010/diff/1/content/browser/frame_host/render_frame_host_manager.cc#newcode719 content/browser/frame_host/render_frame_host_manager.cc:719: // As site instances are the same, check ...
5 years, 10 months ago (2015-02-05 17:07:33 UTC) #5
clamy
Thanks! Lgtm
5 years, 10 months ago (2015-02-05 17:09:52 UTC) #6
clamy
Ah could you also prefix the issue title with PlzNavigate?
5 years, 10 months ago (2015-02-05 17:10:17 UTC) #7
carlosk
On 2015/02/05 17:10:17, clamy wrote: > Ah could you also prefix the issue title with ...
5 years, 10 months ago (2015-02-05 17:26:25 UTC) #8
nasko
In the future, please don't combine multiple bugfixes in one CL. They should be separate, ...
5 years, 10 months ago (2015-02-06 02:18:57 UTC) #9
carlosk
On 2015/02/06 02:18:57, nasko wrote: > In the future, please don't combine multiple bugfixes in ...
5 years, 10 months ago (2015-02-06 10:37:58 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/877343010/40001
5 years, 10 months ago (2015-02-06 10:39:06 UTC) #13
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 10 months ago (2015-02-06 12:14:43 UTC) #14
commit-bot: I haz the power
5 years, 10 months ago (2015-02-06 12:15:40 UTC) #15
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/1ae0930d2a6f0c8ecfe6bf60bbd2140303b122a2
Cr-Commit-Position: refs/heads/master@{#315006}

Powered by Google App Engine
This is Rietveld 408576698