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

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

Created:
4 years, 3 months ago by dougarnett
Modified:
4 years, 3 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, dewittj+watch_chromium.org, tburkard+watch_chromium.org, fgorski+watch_chromium.org, romax+watch_chromium.org, petewil+watch_chromium.org, gavinp+prer_chromium.org, chili+watch_chromium.org, dimich+watch_chromium.org, mmenke, dewittj
Target Ref:
refs/pending/heads/master
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 Committed: https://crrev.com/27e86c877f293dec2693281e7848e4d61a95ba4c Cr-Commit-Position: refs/heads/master@{#415673}

Patch Set 1 #

Total comments: 9

Patch Set 2 : Revises handling of PRERENDERING_CANCELED to not treat as an abort and not try another request in p… #

Patch Set 3 : Revert started try count change from this cl and added TODO with followup bug id. #

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 2 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 1 3 chunks +8 lines, -3 lines 0 comments Download
M components/offline_pages/background/request_coordinator_unittest.cc View 1 1 chunk +39 lines, -0 lines 0 comments Download
M components/offline_pages/background/request_notifier.h View 1 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 30 (18 generated)
dougarnett
https://codereview.chromium.org/2294933003/diff/1/components/offline_pages/background/offliner_policy.h File components/offline_pages/background/offliner_policy.h (right): https://codereview.chromium.org/2294933003/diff/1/components/offline_pages/background/offliner_policy.h#newcode9 components/offline_pages/background/offliner_policy.h:9: const int kMaxStartedTries = 3; Per dimich request to ...
4 years, 3 months ago (2016-08-30 20:28:15 UTC) #5
Pete Williamson
https://codereview.chromium.org/2294933003/diff/1/chrome/browser/android/offline_pages/prerendering_loader.cc File chrome/browser/android/offline_pages/prerendering_loader.cc (right): https://codereview.chromium.org/2294933003/diff/1/chrome/browser/android/offline_pages/prerendering_loader.cc#newcode173 chrome/browser/android/offline_pages/prerendering_loader.cc:173: // unsupported scheme error as a cancel. See issue ...
4 years, 3 months ago (2016-08-30 20:42:47 UTC) #6
Dmitry Titov
lgtm with a note: https://codereview.chromium.org/2294933003/diff/1/components/offline_pages/background/offliner_policy.h File components/offline_pages/background/offliner_policy.h (right): https://codereview.chromium.org/2294933003/diff/1/components/offline_pages/background/offliner_policy.h#newcode9 components/offline_pages/background/offliner_policy.h:9: const int kMaxStartedTries = 3; ...
4 years, 3 months ago (2016-08-30 23:15:38 UTC) #9
dougarnett
Note: this CL is not sufficient - will be uploading some changes to handling PRERENDERING_CANCEL ...
4 years, 3 months ago (2016-08-30 23:27:47 UTC) #10
dougarnett
PTAL wrt coordinator changes
4 years, 3 months ago (2016-08-31 00:30:21 UTC) #13
Pete Williamson
RequestCoordinator changes look good, still waiting for answers to other questions.
4 years, 3 months ago (2016-08-31 00:35:27 UTC) #14
pasko
lgtm
4 years, 3 months ago (2016-08-31 11:15:41 UTC) #17
dougarnett
https://codereview.chromium.org/2294933003/diff/1/chrome/browser/android/offline_pages/prerendering_loader.cc File chrome/browser/android/offline_pages/prerendering_loader.cc (right): https://codereview.chromium.org/2294933003/diff/1/chrome/browser/android/offline_pages/prerendering_loader.cc#newcode173 chrome/browser/android/offline_pages/prerendering_loader.cc:173: // unsupported scheme error as a cancel. See issue ...
4 years, 3 months ago (2016-08-31 16:10:53 UTC) #20
Pete Williamson
lgtm
4 years, 3 months ago (2016-08-31 16:55:17 UTC) #21
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/2294933003/40001
4 years, 3 months ago (2016-08-31 17:30:14 UTC) #26
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 3 months ago (2016-08-31 17:34:56 UTC) #28
commit-bot: I haz the power
4 years, 3 months ago (2016-08-31 17:36:20 UTC) #30
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/27e86c877f293dec2693281e7848e4d61a95ba4c
Cr-Commit-Position: refs/heads/master@{#415673}

Powered by Google App Engine
This is Rietveld 408576698