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

Issue 1426403006: Reland #1 of: Move WebUI ownership from the RenderFrameHostManager to the RenderFrameHost. (Closed)

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

Reland #1 of: Move WebUI ownership from the RenderFrameHostManager to the RenderFrameHost. (Revert: https://codereview.chromium.org/1422043007/) This change refactors the current ownership of the WebUI instance, moving it from the RenderFrameHostManager to the RenderFrameHost which is directly associated with the WebUI. The design document for this change is here: https://docs.google.com/a/chromium.org/document/d/1jrge5ulZ1YtqSR3WkNXzrtxhd3JXcWm8_zWBhEjaJtI BUG=508850, 552253 Committed: https://crrev.com/113503ad7f6957c1eb2bb12215c8d5fae3303ef6 Cr-Commit-Position: refs/heads/master@{#360807}

Patch Set 1 #

Total comments: 22

Patch Set 2 : Rebase. #

Patch Set 3 : Removed RFHM WebUI getters (merged from http://crrev.com/1418853003). #

Patch Set 4 : RFHM unittests improvements and new tests (merged from http://crrev.com/1417953002) #

Patch Set 5 : WIP: finding tests that restora a WebUI #

Patch Set 6 : Added a new test for restore navigations of WebUI. #

Patch Set 7 : WebUIs destruction step in ~WebContents (crbug.com/552253, crbug.com/552394). #

Patch Set 8 : Minor changes and comment updates. #

Patch Set 9 : Rebase. #

Patch Set 10 : Re-add the pending WebUI to RFHI. #

Total comments: 52

Patch Set 11 : Address CR comments. #

Total comments: 4

Patch Set 12 : Address CR comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+672 lines, -350 lines) Patch
M content/browser/frame_host/frame_tree.cc View 1 1 chunk +1 line, -2 lines 0 comments Download
M content/browser/frame_host/navigator_impl.cc View 1 2 3 4 5 6 7 8 3 chunks +5 lines, -5 lines 0 comments Download
M content/browser/frame_host/render_frame_host_delegate.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +5 lines, -0 lines 0 comments Download
M content/browser/frame_host/render_frame_host_delegate.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.h View 1 2 3 4 5 6 7 8 9 10 4 chunks +45 lines, -0 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 6 chunks +101 lines, -0 lines 0 comments Download
M content/browser/frame_host/render_frame_host_manager.h View 1 2 3 4 5 6 7 8 9 10 14 chunks +36 lines, -88 lines 0 comments Download
M content/browser/frame_host/render_frame_host_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 29 chunks +141 lines, -199 lines 0 comments Download
M content/browser/frame_host/render_frame_host_manager_browsertest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +9 lines, -6 lines 0 comments Download
M content/browser/frame_host/render_frame_host_manager_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 chunks +303 lines, -25 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.h View 1 2 3 4 5 6 7 8 2 chunks +1 line, -1 line 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 3 4 5 6 7 8 9 10 6 chunks +15 lines, -19 lines 0 comments Download
M content/browser/webui/web_ui_impl.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +5 lines, -5 lines 0 comments Download

Messages

Total messages: 28 (6 generated)
carlosk
This is a reland of the WebUI refactor. I had to revert it as it ...
5 years, 1 month ago (2015-11-06 13:05:53 UTC) #2
carlosk
Beyond the WebUI transition crashes [1] I described above there is also another crash that ...
5 years, 1 month ago (2015-11-06 13:56:14 UTC) #3
carlosk
And just making it clear that this first patch set is simply a copy of ...
5 years, 1 month ago (2015-11-06 21:56:37 UTC) #4
Charlie Reis
On 2015/11/06 21:56:37, carlosk wrote: > And just making it clear that this first patch ...
5 years, 1 month ago (2015-11-07 01:04:25 UTC) #5
Charlie Reis
Most of my comments here are about the notion of changing the WebUI of a ...
5 years, 1 month ago (2015-11-09 07:01:00 UTC) #6
carlosk
Only replying to the comments (no new patch set yet) as I'm still unsure about ...
5 years, 1 month ago (2015-11-10 15:02:31 UTC) #7
Charlie Reis
Thanks. A few thoughts on your questions below. https://codereview.chromium.org/1426403006/diff/1/content/browser/frame_host/render_frame_host_impl.h File content/browser/frame_host/render_frame_host_impl.h (right): https://codereview.chromium.org/1426403006/diff/1/content/browser/frame_host/render_frame_host_impl.h#newcode489 content/browser/frame_host/render_frame_host_impl.h:489: // ...
5 years, 1 month ago (2015-11-11 01:11:00 UTC) #8
clamy
Considering we are hitting a lot of unknowns with this patch, and that it has ...
5 years, 1 month ago (2015-11-12 10:41:18 UTC) #10
carlosk
Thanks. The investigation of the unknown cases of same-site navigations that are transitioning the WebUI ...
5 years, 1 month ago (2015-11-13 16:43:53 UTC) #11
carlosk
Pending WebUI is back and it should solve the same-site navigation problems we've been discussing. ...
5 years, 1 month ago (2015-11-17 15:10:44 UTC) #14
Charlie Reis
I'm sad the pending WebUI case proved to be a problem, but I'm ok with ...
5 years, 1 month ago (2015-11-18 00:24:41 UTC) #15
Dan Beam
https://codereview.chromium.org/1426403006/diff/220001/content/browser/webui/web_ui_impl.h File content/browser/webui/web_ui_impl.h (right): https://codereview.chromium.org/1426403006/diff/220001/content/browser/webui/web_ui_impl.h#newcode30 content/browser/webui/web_ui_impl.h:30: // RenderView, vice-versa or if both have just been ...
5 years, 1 month ago (2015-11-18 18:10:58 UTC) #16
carlosk
Thanks. https://codereview.chromium.org/1426403006/diff/220001/content/browser/webui/web_ui_impl.h File content/browser/webui/web_ui_impl.h (right): https://codereview.chromium.org/1426403006/diff/220001/content/browser/webui/web_ui_impl.h#newcode30 content/browser/webui/web_ui_impl.h:30: // RenderView, vice-versa or if both have just ...
5 years, 1 month ago (2015-11-18 20:02:01 UTC) #17
nasko
Another round of comments. Count is high, but the CL is in very good shape. ...
5 years, 1 month ago (2015-11-18 23:48:04 UTC) #18
carlosk
Thanks. https://codereview.chromium.org/1426403006/diff/220001/content/browser/frame_host/render_frame_host_delegate.h File content/browser/frame_host/render_frame_host_delegate.h (right): https://codereview.chromium.org/1426403006/diff/220001/content/browser/frame_host/render_frame_host_delegate.h#newcode12 content/browser/frame_host/render_frame_host_delegate.h:12: #include "content/browser/webui/web_ui_impl.h" On 2015/11/18 23:48:03, nasko wrote: > ...
5 years, 1 month ago (2015-11-19 16:49:14 UTC) #19
nasko
LGTM with a few nits. https://codereview.chromium.org/1426403006/diff/220001/content/browser/frame_host/render_frame_host_impl.h File content/browser/frame_host/render_frame_host_impl.h (right): https://codereview.chromium.org/1426403006/diff/220001/content/browser/frame_host/render_frame_host_impl.h#newcode864 content/browser/frame_host/render_frame_host_impl.h:864: // same-site navigation to ...
5 years, 1 month ago (2015-11-19 19:45:24 UTC) #20
Dan Beam
https://codereview.chromium.org/1426403006/diff/220001/content/browser/webui/web_ui_impl.h File content/browser/webui/web_ui_impl.h (right): https://codereview.chromium.org/1426403006/diff/220001/content/browser/webui/web_ui_impl.h#newcode30 content/browser/webui/web_ui_impl.h:30: // RenderView, vice-versa or if both have just been ...
5 years, 1 month ago (2015-11-20 00:08:00 UTC) #21
carlosk
Thanks. I'll hit the Commit check now. Fingers crossed! nasko@: If you think fell strongly ...
5 years, 1 month ago (2015-11-20 12:21:11 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1426403006/260001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1426403006/260001
5 years, 1 month ago (2015-11-20 12:21:40 UTC) #25
commit-bot: I haz the power
Committed patchset #12 (id:260001)
5 years, 1 month ago (2015-11-20 13:26:07 UTC) #26
commit-bot: I haz the power
Patchset 12 (id:??) landed as https://crrev.com/113503ad7f6957c1eb2bb12215c8d5fae3303ef6 Cr-Commit-Position: refs/heads/master@{#360807}
5 years, 1 month ago (2015-11-20 13:27:12 UTC) #27
grt (UTC plus 2)
5 years, 1 month ago (2015-11-20 16:01:53 UTC) #28
Message was sent while issue was closed.
A revert of this CL (patchset #12 id:260001) has been created in
https://codereview.chromium.org/1454883006/ by grt@chromium.org.

The reason for reverting is: ExtensionApiTest.Debugger browser_tests failed on
Win7 Tests (dbg)(1) Build #43339 with

[3192:3164:1120/071447:FATAL:render_frame_host_manager.cc(2372)] Check failed:
!render_frame_host_->pending_web_ui().

Which was introduced with this change..

Powered by Google App Engine
This is Rietveld 408576698