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

Issue 2604763002: Fix crash when forwarding a request to a null service worker. (Closed)

Created:
3 years, 12 months ago by falken
Modified:
3 years, 11 months ago
Reviewers:
nhiroki, horo
CC:
chromium-reviews, michaeln, jsbell+serviceworker_chromium.org, shimazu+serviceworker_chromium.org, serviceworker-reviews, jam, nhiroki, kinuko+serviceworker, horo+watch_chromium.org, darin-cc_chromium.org, kinuko+watch, tzik, blink-worker-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix crash when forwarding a request to a null service worker. This crash occurred when a ServiceWorkerControlleeRequestHandler was created to handle a subresource request for a provider host with a controller, but by the time MaybeCreateJob() was created the controller and active version was removed due to ServiceWorkerRegistration::DeleteVersion(). In this case, we just tell the URLRequestJob to abort with error rather than handle the error (e.g., by fall back to network). We don't want to silently hide the exceptional case in case some bug makes this happen often. Also add some general comments and DCHECKs in ServiceWorkerProviderHost to clarify controller vs active version. BUG=655910 Committed: https://crrev.com/ba53250ca4a45cc39c9381ad3bfaa990532aaa78 Cr-Commit-Position: refs/heads/master@{#440742}

Patch Set 1 #

Patch Set 2 : comment #

Patch Set 3 : ok #

Patch Set 4 : fix #

Messages

Total messages: 18 (12 generated)
falken
nhiroki: ptal horo: FYI Added a unit test but I'm not sure how to test ...
3 years, 12 months ago (2016-12-27 05:53:06 UTC) #2
falken
OK I managed to test manually by forcing a lost controller for some subresources and ...
3 years, 12 months ago (2016-12-27 06:50:58 UTC) #5
nhiroki
lgtm
3 years, 12 months ago (2016-12-27 08:20:01 UTC) #8
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/2604763002/60001
3 years, 12 months ago (2016-12-27 08:25:57 UTC) #13
commit-bot: I haz the power
Committed patchset #4 (id:60001)
3 years, 12 months ago (2016-12-27 08:44:38 UTC) #16
commit-bot: I haz the power
3 years, 11 months ago (2017-01-02 15:45:51 UTC) #18
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/ba53250ca4a45cc39c9381ad3bfaa990532aaa78
Cr-Commit-Position: refs/heads/master@{#440742}

Powered by Google App Engine
This is Rietveld 408576698