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

Issue 2345913002: Fix NetErrorTabHelper with PlzNavigate. (Closed)

Created:
4 years, 3 months ago by jam
Modified:
4 years, 2 months ago
Reviewers:
Julia Tuttle, clamy
CC:
chromium-reviews, cbentzel+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix NetErrorTabHelper with PlzNavigate. This includes: -switching NetErrorTabHelper to use the new WebContentsObserver navigation callbacks that work with PlzNavigate -fixing NavigationHandle::IsErrorPage to return true for reloads of error pages This fixes DnsProbeBrowserTest.CorrectionsDisabled DnsProbeBrowserTest.CorrectionsLoadStopped DnsProbeBrowserTest.CorrectionsLoadStoppedSlowProbe DnsProbeBrowserTest.Incognito DnsProbeBrowserTest.NoInternetProbeResultWithBrokenCorrections DnsProbeBrowserTest.NoInternetProbeResultWithSlowBrokenCorrections DnsProbeBrowserTest.NxdomainProbeResultWithWorkingCorrections DnsProbeBrowserTest.NxdomainProbeResultWithWorkingSlowCorrections DnsProbeBrowserTest.ProbesDisabled DnsProbeBrowserTest.SyncFailureWithBrokenCorrections ErrorPageNavigationCorrectionsFailTest.FetchCorrectionsFails BUG=504347, 647859 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation R=clamy@chromium.org, juliatuttle@chromium.org Committed: https://crrev.com/a9a4ec98f42e665ecdef10370825e76c5299d72f Cr-Commit-Position: refs/heads/master@{#419483}

Patch Set 1 #

Patch Set 2 : fix NavigationHandle::IsErrorPage for reloads of error pages #

Total comments: 10
Unified diffs Side-by-side diffs Delta from patch set Stats (+98 lines, -270 lines) Patch
M chrome/browser/net/net_error_tab_helper.h View 1 2 chunks +5 lines, -23 lines 0 comments Download
M chrome/browser/net/net_error_tab_helper.cc View 1 2 chunks +19 lines, -51 lines 0 comments Download
M chrome/browser/net/net_error_tab_helper_unittest.cc View 1 7 chunks +51 lines, -190 lines 1 comment Download
M content/browser/frame_host/navigation_handle_impl.cc View 1 2 chunks +9 lines, -1 line 6 comments Download
M content/public/browser/navigation_handle.h View 1 2 chunks +5 lines, -1 line 0 comments Download
M content/public/browser/navigation_handle.cc View 1 2 chunks +9 lines, -1 line 0 comments Download
M content/test/web_contents_observer_sanity_checker.cc View 1 1 chunk +0 lines, -3 lines 3 comments Download

Messages

Total messages: 39 (29 generated)
jam
Camille: ptal at content/ (I'll get a chrome/browser/net owner later if the content changes sound ...
4 years, 3 months ago (2016-09-19 04:03:58 UTC) #26
clamy
Thanks! It looks mostly good, a few questions below. https://codereview.chromium.org/2345913002/diff/100001/content/browser/frame_host/navigation_handle_impl.cc File content/browser/frame_host/navigation_handle_impl.cc (right): https://codereview.chromium.org/2345913002/diff/100001/content/browser/frame_host/navigation_handle_impl.cc#newcode465 content/browser/frame_host/navigation_handle_impl.cc:465: ...
4 years, 3 months ago (2016-09-19 11:46:44 UTC) #27
jam
https://codereview.chromium.org/2345913002/diff/100001/content/browser/frame_host/navigation_handle_impl.cc File content/browser/frame_host/navigation_handle_impl.cc (right): https://codereview.chromium.org/2345913002/diff/100001/content/browser/frame_host/navigation_handle_impl.cc#newcode465 content/browser/frame_host/navigation_handle_impl.cc:465: // If an error page reloads, net_error_code might be ...
4 years, 3 months ago (2016-09-19 14:19:41 UTC) #28
clamy
Thanks! Lgtm. https://codereview.chromium.org/2345913002/diff/100001/content/browser/frame_host/navigation_handle_impl.cc File content/browser/frame_host/navigation_handle_impl.cc (right): https://codereview.chromium.org/2345913002/diff/100001/content/browser/frame_host/navigation_handle_impl.cc#newcode465 content/browser/frame_host/navigation_handle_impl.cc:465: // If an error page reloads, net_error_code ...
4 years, 3 months ago (2016-09-19 15:27:12 UTC) #29
jam
Julia: ptal at chrome/browser/net/, I saw you added the tests. The existing unit tests depended ...
4 years, 3 months ago (2016-09-19 15:32:38 UTC) #31
Julia Tuttle
lgtm with nit https://codereview.chromium.org/2345913002/diff/100001/chrome/browser/net/net_error_tab_helper_unittest.cc File chrome/browser/net/net_error_tab_helper_unittest.cc (right): https://codereview.chromium.org/2345913002/diff/100001/chrome/browser/net/net_error_tab_helper_unittest.cc#newcode17 chrome/browser/net/net_error_tab_helper_unittest.cc:17: #undef NO_ERROR Comment where you're undefining ...
4 years, 3 months ago (2016-09-19 16:23:19 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2345913002/100001
4 years, 3 months ago (2016-09-19 16:40:29 UTC) #35
jam
Thanks for the quick review! On 2016/09/19 16:23:19, Julia Tuttle wrote: > lgtm with nit ...
4 years, 3 months ago (2016-09-19 16:40:59 UTC) #36
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/a9a4ec98f42e665ecdef10370825e76c5299d72f Cr-Commit-Position: refs/heads/master@{#419483}
4 years, 3 months ago (2016-09-19 16:53:12 UTC) #38
sath
4 years, 2 months ago (2016-09-29 17:43:00 UTC) #39
Message was sent while issue was closed.
I'm so sorry but I wonder why You didn't use params.url_is_unreachable == true
instead of params.base_url.spec() == kUnreachableWebDataURL.

Powered by Google App Engine
This is Rietveld 408576698