Commit 14dcbf1e authored by Carlos IL's avatar Carlos IL Committed by Commit Bot

Disable auto-reload on net::ERR_BLOCKED_BY_CLIENT

If a request was blocked by Chrome, a reload is unlikely to help and
auto reloads cause issues with some types of errors (e.g. Safe Browsing
committed interstitials).

Bug: 910794
Change-Id: I94e6d040216cee92b9dd1ad4ee89f1cd25a52e2a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1504033
Commit-Queue: Carlos IL <carlosil@chromium.org>
Reviewed-by: default avatarMatt Menke <mmenke@chromium.org>
Cr-Commit-Position: refs/heads/master@{#638328}
parent 657a8c53
......@@ -510,6 +510,8 @@ bool NetErrorHelperCore::IsReloadableError(
// Do not trigger for blacklisted URLs.
// https://crbug.com/803839
info.error.reason() != net::ERR_BLOCKED_BY_ADMINISTRATOR &&
// Do not trigger for requests that were blocked by the browser itself.
info.error.reason() != net::ERR_BLOCKED_BY_CLIENT &&
!info.was_failed_post &&
// Don't auto-reload non-http/https schemas.
// https://crbug.com/471713
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment