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

Issue 1545973002: Remove the is_loading_ field from WebContentsImpl (Closed)

Created:
4 years, 12 months ago by clamy
Modified:
4 years, 10 months ago
CC:
carlosk, chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, jam, mkwst+moarreviews-renderer_chromium.org, mlamouri+watch-content_chromium.org, nasko+codewatch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove the is_loading_ field from WebContentsImpl This CL removes the is_loading_ field from WebContents, in favor of only tracking the loading state through the FrameTree. Currently the loading state is tracked in both, leading to more complexity in the code. BUG=571887, 298193 CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:linux_site_isolation Committed: https://crrev.com/db73eb6cf1e59e753fb53e8c744620b00606ccd5 Cr-Commit-Position: refs/heads/master@{#374651}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Total comments: 27

Patch Set 7 : Rebase #

Patch Set 8 : Addressed Nasko's comments #

Total comments: 15

Patch Set 9 : Addressed more comments #

Patch Set 10 : RenderFrameHost now reacts to RenderProcessGone #

Patch Set 11 : Rebase on top of 1605763002 #

Total comments: 5

Patch Set 12 : Fixed issue with swapped-out RFHs #

Total comments: 15

Patch Set 13 : Addressed comments #

Patch Set 14 : Reenabled 2 tests #

Total comments: 4

Patch Set 15 : Fix compilation error on windows #

Total comments: 2

Patch Set 16 : Rebase #

Patch Set 17 : Fixed issue with WebContents::IsLoading being false when load starts #

Patch Set 18 : Rebase #

Patch Set 19 : Fixed issue with tests #

Total comments: 3

Patch Set 20 : Fixed issue with transfer navigations #

Patch Set 21 : Rebase #

Patch Set 22 : Fixed issue with transfer to same #

Patch Set 23 : No more changes to SubframeTaskBrowserTest since transfers work #

Total comments: 4

Patch Set 24 : Rebase + addressed Nasko's nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+351 lines, -144 lines) Patch
M chrome/browser/extensions/extension_resource_request_policy_apitest.cc View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -3 lines 0 comments Download
M content/browser/frame_host/frame_tree.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 4 chunks +41 lines, -1 line 0 comments Download
M content/browser/frame_host/frame_tree.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +44 lines, -2 lines 0 comments Download
M content/browser/frame_host/frame_tree_node.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +9 lines, -1 line 0 comments Download
M content/browser/frame_host/frame_tree_node.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 4 chunks +34 lines, -9 lines 0 comments Download
M content/browser/frame_host/interstitial_page_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +0 lines, -4 lines 0 comments Download
M content/browser/frame_host/interstitial_page_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 3 chunks +1 line, -12 lines 0 comments Download
M content/browser/frame_host/navigation_controller_delegate.h View 1 2 3 4 5 6 7 2 chunks +1 line, -4 lines 0 comments Download
M content/browser/frame_host/navigation_controller_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +13 lines, -8 lines 0 comments Download
M content/browser/frame_host/navigator_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 2 chunks +15 lines, -4 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 11 12 13 14 15 16 17 18 19 20 21 22 23 5 chunks +16 lines, -4 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 11 12 13 14 15 16 17 18 19 20 21 22 23 9 chunks +28 lines, -27 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 12 13 14 15 16 17 18 19 20 21 6 chunks +21 lines, -1 line 0 comments Download
M content/browser/site_instance_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/web_contents/aura/overscroll_navigation_overlay_unittest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/web_contents/web_contents_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 4 chunks +16 lines, -9 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 13 chunks +39 lines, -20 lines 0 comments Download
M content/browser/web_contents/web_contents_impl_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 4 chunks +15 lines, -23 lines 0 comments Download
M content/common/frame_messages.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +0 lines, -3 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 3 chunks +9 lines, -3 lines 0 comments Download
M content/test/test_web_contents.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +23 lines, -1 line 0 comments Download
M content/test/web_contents_observer_sanity_checker.h View 1 2 3 2 chunks +4 lines, -0 lines 0 comments Download
M content/test/web_contents_observer_sanity_checker.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +17 lines, -2 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 56 (17 generated)
clamy
@nasko: PTAL. This is the continuation of the DidStart/StopLoading refactoring. I'm a bit unhappy that ...
4 years, 11 months ago (2016-01-14 17:36:56 UTC) #3
nasko
Adding avi@, since an IPC he added is being removed. Overall I think there is ...
4 years, 11 months ago (2016-01-15 01:19:17 UTC) #5
Avi (use Gerrit)
> Adding avi@, since an IPC he added is being removed. I'm actually quite happy ...
4 years, 11 months ago (2016-01-15 04:43:06 UTC) #6
Avi (use Gerrit)
https://codereview.chromium.org/1545973002/diff/90001/content/renderer/render_frame_impl.cc File content/renderer/render_frame_impl.cc (right): https://codereview.chromium.org/1545973002/diff/90001/content/renderer/render_frame_impl.cc#newcode4581 content/renderer/render_frame_impl.cc:4581: NOTREACHED(); On 2016/01/15 01:19:16, nasko wrote: > Shouldn't this ...
4 years, 11 months ago (2016-01-15 04:48:00 UTC) #7
clamy
Thanks! https://codereview.chromium.org/1545973002/diff/90001/content/browser/frame_host/frame_tree_node.cc File content/browser/frame_host/frame_tree_node.cc (right): https://codereview.chromium.org/1545973002/diff/90001/content/browser/frame_host/frame_tree_node.cc#newcode405 content/browser/frame_host/frame_tree_node.cc:405: if (current_frame_host->render_view_host() == render_view_host) On 2016/01/15 01:19:16, nasko ...
4 years, 11 months ago (2016-01-15 16:47:44 UTC) #8
carlosk
LGTM with a nit. https://codereview.chromium.org/1545973002/diff/130001/content/browser/frame_host/render_frame_host_manager.cc File content/browser/frame_host/render_frame_host_manager.cc (right): https://codereview.chromium.org/1545973002/diff/130001/content/browser/frame_host/render_frame_host_manager.cc#newcode1044 content/browser/frame_host/render_frame_host_manager.cc:1044: if (IsBrowserSideNavigationEnabled() && speculative_render_frame_host_ && ...
4 years, 11 months ago (2016-01-15 17:24:04 UTC) #10
Avi (use Gerrit)
Nasko brought me in to double-check a few points and I'm happy there, so I'm ...
4 years, 11 months ago (2016-01-15 17:29:59 UTC) #12
nasko
A few more comments. https://codereview.chromium.org/1545973002/diff/130001/content/browser/frame_host/frame_tree_node.cc File content/browser/frame_host/frame_tree_node.cc (right): https://codereview.chromium.org/1545973002/diff/130001/content/browser/frame_host/frame_tree_node.cc#newcode413 content/browser/frame_host/frame_tree_node.cc:413: pending_frame_host->ResetLoadingState(); Do we need to ...
4 years, 11 months ago (2016-01-16 00:13:51 UTC) #13
clamy
Thanks! https://codereview.chromium.org/1545973002/diff/130001/content/browser/frame_host/frame_tree_node.cc File content/browser/frame_host/frame_tree_node.cc (right): https://codereview.chromium.org/1545973002/diff/130001/content/browser/frame_host/frame_tree_node.cc#newcode413 content/browser/frame_host/frame_tree_node.cc:413: pending_frame_host->ResetLoadingState(); On 2016/01/16 00:13:51, nasko wrote: > Do ...
4 years, 11 months ago (2016-01-19 13:31:19 UTC) #14
clamy
FYI I had to do a significant rebase in the latest patch set. https://codereview.chromium.org/1545973002/diff/210001/content/browser/frame_host/frame_tree.h File ...
4 years, 11 months ago (2016-01-20 13:23:45 UTC) #16
carlosk
Good changes. https://codereview.chromium.org/1545973002/diff/210001/content/browser/frame_host/frame_tree.h File content/browser/frame_host/frame_tree.h (right): https://codereview.chromium.org/1545973002/diff/210001/content/browser/frame_host/frame_tree.h#newcode81 content/browser/frame_host/frame_tree.h:81: class CONTENT_EXPORT ConstNodeIterator { On 2016/01/20 13:23:45, ...
4 years, 11 months ago (2016-01-20 14:05:15 UTC) #17
nasko
Few more comments. https://codereview.chromium.org/1545973002/diff/230001/content/browser/frame_host/render_frame_host_impl.cc File content/browser/frame_host/render_frame_host_impl.cc (right): https://codereview.chromium.org/1545973002/diff/230001/content/browser/frame_host/render_frame_host_impl.cc#newcode698 content/browser/frame_host/render_frame_host_impl.cc:698: ResetLoadingState(); Let's not add implementation of ...
4 years, 11 months ago (2016-01-20 20:58:35 UTC) #18
ncarter (slow)
https://codereview.chromium.org/1545973002/diff/230001/content/browser/frame_host/render_frame_host_impl.cc File content/browser/frame_host/render_frame_host_impl.cc (right): https://codereview.chromium.org/1545973002/diff/230001/content/browser/frame_host/render_frame_host_impl.cc#newcode694 content/browser/frame_host/render_frame_host_impl.cc:694: void RenderFrameHostImpl::RenderProcessGone(SiteInstanceImpl* site_instance) { I'm glad you've done this. ...
4 years, 11 months ago (2016-01-21 00:26:40 UTC) #20
clamy
Thanks! https://codereview.chromium.org/1545973002/diff/230001/content/browser/frame_host/render_frame_host_impl.cc File content/browser/frame_host/render_frame_host_impl.cc (right): https://codereview.chromium.org/1545973002/diff/230001/content/browser/frame_host/render_frame_host_impl.cc#newcode698 content/browser/frame_host/render_frame_host_impl.cc:698: ResetLoadingState(); On 2016/01/21 00:26:40, ncarter wrote: > On ...
4 years, 11 months ago (2016-01-22 13:08:15 UTC) #21
nasko
https://codereview.chromium.org/1545973002/diff/230001/content/browser/frame_host/render_frame_host_impl.cc File content/browser/frame_host/render_frame_host_impl.cc (right): https://codereview.chromium.org/1545973002/diff/230001/content/browser/frame_host/render_frame_host_impl.cc#newcode698 content/browser/frame_host/render_frame_host_impl.cc:698: ResetLoadingState(); On 2016/01/22 13:08:15, clamy wrote: > On 2016/01/21 ...
4 years, 11 months ago (2016-01-22 17:52:59 UTC) #22
nasko
On 2016/01/22 17:52:59, nasko wrote: > https://codereview.chromium.org/1545973002/diff/230001/content/browser/frame_host/render_frame_host_impl.cc > File content/browser/frame_host/render_frame_host_impl.cc (right): > > https://codereview.chromium.org/1545973002/diff/230001/content/browser/frame_host/render_frame_host_impl.cc#newcode698 > ...
4 years, 11 months ago (2016-01-22 17:58:27 UTC) #23
clamy
Thanks! https://codereview.chromium.org/1545973002/diff/230001/content/browser/frame_host/render_frame_host_impl.cc File content/browser/frame_host/render_frame_host_impl.cc (right): https://codereview.chromium.org/1545973002/diff/230001/content/browser/frame_host/render_frame_host_impl.cc#newcode698 content/browser/frame_host/render_frame_host_impl.cc:698: ResetLoadingState(); On 2016/01/22 17:52:59, nasko wrote: > On ...
4 years, 11 months ago (2016-01-25 14:01:18 UTC) #25
nasko
It looks good. Nick, does the conversion away from pure virtual in the observer interface ...
4 years, 11 months ago (2016-01-26 01:34:27 UTC) #26
ncarter (slow)
SiteInstanceImpl::Observer changes lgtm, I didn't review the full CL
4 years, 10 months ago (2016-01-26 23:06:53 UTC) #27
clamy
@rockot: PTAL at the changes in chrome/browser/extensions https://codereview.chromium.org/1545973002/diff/270001/content/browser/web_contents/web_contents_impl_browsertest.cc File content/browser/web_contents/web_contents_impl_browsertest.cc (right): https://codereview.chromium.org/1545973002/diff/270001/content/browser/web_contents/web_contents_impl_browsertest.cc#newcode215 content/browser/web_contents/web_contents_impl_browsertest.cc:215: DidStopLoadingDetailsWithPending) { ...
4 years, 10 months ago (2016-01-28 13:52:21 UTC) #29
Ken Rockot(use gerrit already)
https://codereview.chromium.org/1545973002/diff/290001/chrome/browser/extensions/extension_resource_request_policy_apitest.cc File chrome/browser/extensions/extension_resource_request_policy_apitest.cc (right): https://codereview.chromium.org/1545973002/diff/290001/chrome/browser/extensions/extension_resource_request_policy_apitest.cc#newcode230 chrome/browser/extensions/extension_resource_request_policy_apitest.cc:230: browser(), accessible_newtab_override, 1); I'm curious why these had to ...
4 years, 10 months ago (2016-01-28 21:27:49 UTC) #30
clamy
https://codereview.chromium.org/1545973002/diff/290001/chrome/browser/extensions/extension_resource_request_policy_apitest.cc File chrome/browser/extensions/extension_resource_request_policy_apitest.cc (right): https://codereview.chromium.org/1545973002/diff/290001/chrome/browser/extensions/extension_resource_request_policy_apitest.cc#newcode230 chrome/browser/extensions/extension_resource_request_policy_apitest.cc:230: browser(), accessible_newtab_override, 1); On 2016/01/28 21:27:49, Ken Rockot wrote: ...
4 years, 10 months ago (2016-01-29 10:44:55 UTC) #31
Ken Rockot(use gerrit already)
Ah OK, thanks! lgtm
4 years, 10 months ago (2016-01-29 11:47:05 UTC) #32
nasko
LGTM
4 years, 10 months ago (2016-01-29 15:02:20 UTC) #33
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1545973002/320024 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1545973002/320024
4 years, 10 months ago (2016-02-01 17:00:43 UTC) #36
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: cast_shell_linux on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linux/builds/109651)
4 years, 10 months ago (2016-02-01 17:26:07 UTC) #38
clamy
@nasko: PTAL at the latest version, which has some changes with the version previously lgtmed ...
4 years, 10 months ago (2016-02-02 16:05:02 UTC) #40
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1545973002/360001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1545973002/360001
4 years, 10 months ago (2016-02-02 16:07:56 UTC) #41
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_site_isolation on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_site_isolation/builds/864)
4 years, 10 months ago (2016-02-02 18:43:38 UTC) #43
nasko
There seem to be a few browser tests failing on the site isolation bot. https://codereview.chromium.org/1545973002/diff/360001/content/browser/web_contents/web_contents_impl.cc ...
4 years, 10 months ago (2016-02-03 18:38:09 UTC) #44
clamy
Thanks! I investigated the failures on the site isolation bots. They were due to an ...
4 years, 10 months ago (2016-02-08 16:13:49 UTC) #45
nasko
It looks like a different set of tests related to site isolation are now broken. ...
4 years, 10 months ago (2016-02-09 00:12:23 UTC) #46
clamy
@nasko: PTAL. I think it should be good for now (though I'm still waiting on ...
4 years, 10 months ago (2016-02-09 17:02:58 UTC) #47
nasko
Still LGTM with a couple of nits. https://codereview.chromium.org/1545973002/diff/440001/content/browser/frame_host/navigator_impl.cc File content/browser/frame_host/navigator_impl.cc (right): https://codereview.chromium.org/1545973002/diff/440001/content/browser/frame_host/navigator_impl.cc#newcode342 content/browser/frame_host/navigator_impl.cc:342: // that ...
4 years, 10 months ago (2016-02-09 17:15:24 UTC) #48
clamy
Thanks! https://codereview.chromium.org/1545973002/diff/440001/content/browser/frame_host/navigator_impl.cc File content/browser/frame_host/navigator_impl.cc (right): https://codereview.chromium.org/1545973002/diff/440001/content/browser/frame_host/navigator_impl.cc#newcode342 content/browser/frame_host/navigator_impl.cc:342: // that this works both for a transfer ...
4 years, 10 months ago (2016-02-10 12:03:31 UTC) #49
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1545973002/460001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1545973002/460001
4 years, 10 months ago (2016-02-10 12:04:25 UTC) #52
commit-bot: I haz the power
Committed patchset #24 (id:460001)
4 years, 10 months ago (2016-02-10 13:28:04 UTC) #53
commit-bot: I haz the power
Patchset 24 (id:??) landed as https://crrev.com/db73eb6cf1e59e753fb53e8c744620b00606ccd5 Cr-Commit-Position: refs/heads/master@{#374651}
4 years, 10 months ago (2016-02-10 13:30:11 UTC) #55
waffles
4 years, 10 months ago (2016-02-10 17:41:01 UTC) #56
Message was sent while issue was closed.
A revert of this CL (patchset #24 id:460001) has been created in
https://codereview.chromium.org/1690633002/ by waffles@chromium.org.

The reason for reverting is: CHECK(is_loading_) appears to fail (flakily?) on 
Linux ChromiumOS Tests (1). More details in the bug..

Powered by Google App Engine
This is Rietveld 408576698