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

Issue 1693353002: Reland #2 Remove the is_loading_ field from WebContentsImpl (Closed)

Created:
4 years, 10 months ago by clamy
Modified:
4 years, 10 months ago
Reviewers:
Charlie Reis
CC:
chromium-reviews, extensions-reviews_chromium.org, creis+watch_chromium.org, mlamouri+watch-content_chromium.org, nasko+codewatch_chromium.org, jam, darin-cc_chromium.org, ajwong+watch_chromium.org, mkwst+moarreviews-renderer_chromium.org, chromium-apps-reviews_chromium.org, nasko, ncarter (slow)
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Reland #2 Remove the is_loading_ field from WebContentsImpl The original CL was reverted because it introduced flakyness on some SessionHistoryTest on the Cast Linux bot. Original commit message: 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 edge cases in the code. These edge cases are removed by this CL, which allows the current architecture and PlzNavigate to have the same behavior. It also removes some flakyness with browser-initiated navigations and reenables 2 content_browsertests. BUG=571887, 298193 TBR=nasko@chromium.org,rockot@chromium.org,nick@chromium.org,carlosk@chromium.org CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:linux_site_isolation Committed: https://crrev.com/44e84cef5a598bbee63ba83ad1cd5534e7295abd Cr-Commit-Position: refs/heads/master@{#376732}

Patch Set 1 : Original patch #

Patch Set 2 : Checking whether the frame is loading on history navigations #

Total comments: 43

Patch Set 3 : Addressed comments #

Total comments: 14

Patch Set 4 : Addressed nits + rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+442 lines, -190 lines) Patch
M chrome/browser/extensions/extension_resource_request_policy_apitest.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M content/browser/frame_host/frame_tree.h View 4 chunks +41 lines, -1 line 0 comments Download
M content/browser/frame_host/frame_tree.cc View 3 chunks +44 lines, -2 lines 0 comments Download
M content/browser/frame_host/frame_tree_node.h View 1 2 2 chunks +10 lines, -1 line 0 comments Download
M content/browser/frame_host/frame_tree_node.cc View 1 2 3 4 chunks +35 lines, -9 lines 0 comments Download
M content/browser/frame_host/interstitial_page_impl.h View 1 2 3 3 chunks +7 lines, -4 lines 0 comments Download
M content/browser/frame_host/interstitial_page_impl.cc View 1 2 4 chunks +9 lines, -12 lines 0 comments Download
M content/browser/frame_host/navigation_controller_delegate.h View 2 chunks +1 line, -4 lines 0 comments Download
M content/browser/frame_host/navigation_controller_impl_unittest.cc View 1 chunk +13 lines, -8 lines 0 comments Download
M content/browser/frame_host/navigator_impl.cc View 1 2 1 chunk +14 lines, -4 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.h View 5 chunks +16 lines, -4 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.cc View 1 2 3 9 chunks +35 lines, -27 lines 0 comments Download
M content/browser/frame_host/render_frame_host_manager.cc View 1 2 3 6 chunks +24 lines, -1 line 0 comments Download
M content/browser/site_instance_impl.h View 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/web_contents/aura/overscroll_navigation_overlay_unittest.cc View 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/web_contents/web_contents_impl.h View 1 2 3 3 chunks +11 lines, -9 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 3 10 chunks +85 lines, -60 lines 0 comments Download
M content/browser/web_contents/web_contents_impl_browsertest.cc View 4 chunks +15 lines, -24 lines 0 comments Download
M content/common/frame_messages.h View 1 2 3 1 chunk +0 lines, -3 lines 0 comments Download
M content/renderer/history_controller.h View 1 1 chunk +3 lines, -1 line 0 comments Download
M content/renderer/history_controller.cc View 1 4 chunks +8 lines, -1 line 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 3 5 chunks +23 lines, -6 lines 0 comments Download
M content/test/test_web_contents.cc View 1 2 3 1 chunk +22 lines, -1 line 0 comments Download
M content/test/web_contents_observer_sanity_checker.h View 2 chunks +4 lines, -0 lines 0 comments Download
M content/test/web_contents_observer_sanity_checker.cc View 1 2 3 1 chunk +17 lines, -2 lines 0 comments Download

Messages

Total messages: 32 (16 generated)
clamy
@creis: PTAL. Since Nasko is out, I'm sending this to you. The goal of the ...
4 years, 10 months ago (2016-02-16 16:01:03 UTC) #4
Charlie Reis
Sorry, but I'm having trouble understanding the improvement here. This seems like a substantial amount ...
4 years, 10 months ago (2016-02-17 05:15:28 UTC) #5
clamy
The goal of the patch is to make WebContentsImpl::IsLoading depends uniquely on FrameTree::IsLoading (and whether ...
4 years, 10 months ago (2016-02-17 14:42:06 UTC) #6
Charlie Reis
On 2016/02/17 14:42:06, clamy wrote: > The goal of the patch is to make WebContentsImpl::IsLoading ...
4 years, 10 months ago (2016-02-17 23:34:26 UTC) #7
clamy
Thanks! Updated the CL description. https://codereview.chromium.org/1693353002/diff/20001/content/browser/frame_host/frame_tree_node.cc File content/browser/frame_host/frame_tree_node.cc (right): https://codereview.chromium.org/1693353002/diff/20001/content/browser/frame_host/frame_tree_node.cc#newcode412 content/browser/frame_host/frame_tree_node.cc:412: if (!IsMainFrame()) On 2016/02/17 ...
4 years, 10 months ago (2016-02-18 17:20:27 UTC) #10
Charlie Reis
Thanks for explaining. LGTM with nits. https://codereview.chromium.org/1693353002/diff/20001/content/browser/frame_host/frame_tree_node.h File content/browser/frame_host/frame_tree_node.h (right): https://codereview.chromium.org/1693353002/diff/20001/content/browser/frame_host/frame_tree_node.h#newcode265 content/browser/frame_host/frame_tree_node.h:265: // cancelled the ...
4 years, 10 months ago (2016-02-19 05:24:55 UTC) #11
clamy
Thanks! https://codereview.chromium.org/1693353002/diff/60001/content/browser/frame_host/frame_tree_node.cc File content/browser/frame_host/frame_tree_node.cc (right): https://codereview.chromium.org/1693353002/diff/60001/content/browser/frame_host/frame_tree_node.cc#newcode412 content/browser/frame_host/frame_tree_node.cc:412: // TODO(clamy); Support BeforeUnload in subframes. On 2016/02/19 ...
4 years, 10 months ago (2016-02-19 12:02:05 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1693353002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1693353002/80001
4 years, 10 months ago (2016-02-19 12:12:36 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/25784)
4 years, 10 months ago (2016-02-19 14:14:00 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1693353002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1693353002/80001
4 years, 10 months ago (2016-02-19 16:15:02 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/25898)
4 years, 10 months ago (2016-02-19 17:27:47 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1693353002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1693353002/80001
4 years, 10 months ago (2016-02-22 10:24:44 UTC) #24
commit-bot: I haz the power
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/1017)
4 years, 10 months ago (2016-02-22 14:09:04 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1693353002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1693353002/80001
4 years, 10 months ago (2016-02-22 14:29:29 UTC) #28
commit-bot: I haz the power
Committed patchset #4 (id:80001)
4 years, 10 months ago (2016-02-22 15:38:33 UTC) #30
commit-bot: I haz the power
4 years, 10 months ago (2016-02-22 15:39:22 UTC) #32
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/44e84cef5a598bbee63ba83ad1cd5534e7295abd
Cr-Commit-Position: refs/heads/master@{#376732}

Powered by Google App Engine
This is Rietveld 408576698