|
|
Chromium Code Reviews
DescriptionEnsure that the PlzNavigate code path removes pending NavigationEntrys if the navigation is cancelled.
For the old code paths, this is done by NavigatorImpl::DidFailProvisionalLoadWithError. So copy that call.
This fixes
NewTabPageTest#testUrlFocusAnimationsEnabledOnFailedLoad
BUG=699387
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation
R=cblume@chromium.org, creis@chromium.org
Review-Url: https://codereview.chromium.org/2768933004 .
Cr-Commit-Position: refs/heads/master@{#459473}
Committed: https://chromium.googlesource.com/chromium/src/+/adbac71e30fdf997eb5b543da155b08542f88c71
Patch Set 1 #Patch Set 2 : without PlzNavigate #
Messages
Total messages: 26 (16 generated)
Description was changed from ========== Ensure that the PlzNavigate code path removes pending NavigationEntrys if the navigation is cancelled. For the old code paths, this is done by NavigatorImpl::DidFailProvisionalLoadWithError. So copy that call. This fixes NewTabPageTest#testUrlFocusAnimationsEnabledOnFailedLoad BUG=699387 ========== to ========== Ensure that the PlzNavigate code path removes pending NavigationEntrys if the navigation is cancelled. For the old code paths, this is done by NavigatorImpl::DidFailProvisionalLoadWithError. So copy that call. This fixes NewTabPageTest#testUrlFocusAnimationsEnabledOnFailedLoad BUG=699387 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation ==========
The CQ bit was checked by jam@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was checked by jam@chromium.org to run a CQ dry run
Description was changed from ========== Ensure that the PlzNavigate code path removes pending NavigationEntrys if the navigation is cancelled. For the old code paths, this is done by NavigatorImpl::DidFailProvisionalLoadWithError. So copy that call. This fixes NewTabPageTest#testUrlFocusAnimationsEnabledOnFailedLoad BUG=699387 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation ========== to ========== Ensure that the PlzNavigate code path removes pending NavigationEntrys if the navigation is cancelled. For the old code paths, this is done by NavigatorImpl::DidFailProvisionalLoadWithError. So copy that call. This fixes NewTabPageTest#testUrlFocusAnimationsEnabledOnFailedLoad BUG=699387 ==========
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
jam@chromium.org changed reviewers: + cblume@chromium.org
Description was changed from ========== Ensure that the PlzNavigate code path removes pending NavigationEntrys if the navigation is cancelled. For the old code paths, this is done by NavigatorImpl::DidFailProvisionalLoadWithError. So copy that call. This fixes NewTabPageTest#testUrlFocusAnimationsEnabledOnFailedLoad BUG=699387 ========== to ========== Ensure that the PlzNavigate code path removes pending NavigationEntrys if the navigation is cancelled. For the old code paths, this is done by NavigatorImpl::DidFailProvisionalLoadWithError. So copy that call. This fixes NewTabPageTest#testUrlFocusAnimationsEnabledOnFailedLoad BUG=699387 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation ==========
Thanks for tracking this down to stops leaving a pending entry.
LGTM I like the very specific test, too.
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: linux_chromium_asan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
The CQ bit was checked by cblume@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
No L-G-T-M from a valid reviewer yet. CQ run can only be started once the patch has received an L-G-T-M from a full committer. Even if an L-G-T-M may have been provided, it was from a non-committer,_not_ a full super star committer. Committers are members of the group "project-chromium-committers". Note that this has nothing to do with OWNERS files.
jam@chromium.org changed reviewers: + creis@chromium.org
+Charlie
(note to self: the try runs with plznavigate enabled had a lot of flake/infra failures yesterday, as did other cls of mine. here's a try now of patchset 1 that is green: https://codereview.chromium.org/2770943006/)
LGTM
The CQ bit was checked by jam@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Failed to apply patch for content/browser/frame_host/frame_tree_node.cc:
While running git apply --index -p1;
error: patch failed: content/browser/frame_host/frame_tree_node.cc:497
error: content/browser/frame_host/frame_tree_node.cc: patch does not apply
Patch: content/browser/frame_host/frame_tree_node.cc
Index: content/browser/frame_host/frame_tree_node.cc
diff --git a/content/browser/frame_host/frame_tree_node.cc
b/content/browser/frame_host/frame_tree_node.cc
index
2fdd79c55b1d9dc58ea8b75bce1127ca4e190dbb..1461438152b61e69e1dfef3a2d3d588840bd1532
100644
--- a/content/browser/frame_host/frame_tree_node.cc
+++ b/content/browser/frame_host/frame_tree_node.cc
@@ -497,8 +497,10 @@ void FrameTreeNode::DidChangeLoadProgress(double
load_progress) {
bool FrameTreeNode::StopLoading() {
if (IsBrowserSideNavigationEnabled()) {
if (navigation_request_) {
- navigation_request_->navigation_handle()->set_net_error_code(
+ navigation_request_->navigation_handle()->set_net_error_code(
net::ERR_ABORTED);
+ navigator_->DiscardPendingEntryIfNeeded(
+ navigation_request_->navigation_handle());
}
ResetNavigationRequest(false);
}
Description was changed from ========== Ensure that the PlzNavigate code path removes pending NavigationEntrys if the navigation is cancelled. For the old code paths, this is done by NavigatorImpl::DidFailProvisionalLoadWithError. So copy that call. This fixes NewTabPageTest#testUrlFocusAnimationsEnabledOnFailedLoad BUG=699387 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation ========== to ========== Ensure that the PlzNavigate code path removes pending NavigationEntrys if the navigation is cancelled. For the old code paths, this is done by NavigatorImpl::DidFailProvisionalLoadWithError. So copy that call. This fixes NewTabPageTest#testUrlFocusAnimationsEnabledOnFailedLoad BUG=699387 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation R=cblume@chromium.org, creis@chromium.org Review-Url: https://codereview.chromium.org/2768933004 . Cr-Commit-Position: refs/heads/master@{#459473} Committed: https://chromium.googlesource.com/chromium/src/+/adbac71e30fdf997eb5b543da155... ==========
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as adbac71e30fdf997eb5b543da155b08542f88c71 (presubmit successful). |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
