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

Issue 2298063004: [Offline Pages] Handle prerender FinalStatus UnsupportedScheme as a cancel rather than failure. Los… (Closed)

Created:
4 years, 3 months ago by Pete Williamson
Modified:
4 years, 3 months ago
Reviewers:
CC:
chromium-reviews
Target Ref:
refs/pending/branch-heads/2840
Project:
chromium
Visibility:
Public.

Description

[Offline Pages] Handle prerender FinalStatus UnsupportedScheme as a cancel rather than failure. Losing network connection while prerendering can show up as an Unsupported Scheme failure currently as it sees a special data URL in path toward rendering an error page. We don't want a flakey network connection fail a background load request on just a single try, so for now, we will treat this specific error type as a cancel rather than a failure so that it is subject some limited retrying. The down side, is that for some page that has a repeatable redirect to an unsupported scheme, we will waste some retries on it that we otherwise could skip. Ideally, we could get a different final status code from the prerenderer if it could clearly distinguish a network failure condition but it does not currently have such knowledge. BUG=642025 Review-Url: https://codereview.chromium.org/2294933003 Cr-Commit-Position: refs/heads/master@{#415673} (cherry picked from commit 27e86c877f293dec2693281e7848e4d61a95ba4c) Committed: https://chromium.googlesource.com/chromium/src/+/fb7fb8344b2af613675770e6446e21d847fcaefb

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+94 lines, -9 lines) Patch
M chrome/browser/android/offline_pages/prerendering_loader.cc View 1 chunk +19 lines, -6 lines 0 comments Download
M chrome/browser/android/offline_pages/prerendering_loader_unittest.cc View 2 chunks +27 lines, -0 lines 0 comments Download
M components/offline_pages/background/request_coordinator.cc View 3 chunks +8 lines, -3 lines 0 comments Download
M components/offline_pages/background/request_coordinator_unittest.cc View 1 chunk +39 lines, -0 lines 0 comments Download
M components/offline_pages/background/request_notifier.h View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 2 (1 generated)
Pete Williamson
4 years, 3 months ago (2016-08-31 21:41:57 UTC) #2
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
fb7fb8344b2af613675770e6446e21d847fcaefb.

Powered by Google App Engine
This is Rietveld 408576698