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

Issue 1173943002: Service Worker: Detach the controller when falling back to network on failure (Closed)

Created:
5 years, 6 months ago by falken
Modified:
5 years, 6 months ago
Reviewers:
kinuko, nhiroki
CC:
chromium-reviews, michaeln, jsbell+serviceworker_chromium.org, tzik, serviceworker-reviews, jam, darin-cc_chromium.org, horo+watch_chromium.org, kinuko+serviceworker, kinuko+watch
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Service Worker: Detach the controller when falling back to network on failure Otherwise, subresource loads would also go to the broken SW, defeating the fallback mechanism. It also would skew start worker metrics if the SW fails to startup on each requst. The eviction mechanism already takes case of this in ServiceWorkerRegistration::DeleteVersion, but we don't currently evict everytime a fetch event fails to dispatch. BUG=498661, 448003 Committed: https://crrev.com/e46ff16ad6df1050d357009e5041ba90aa66c983 Cr-Commit-Position: refs/heads/master@{#333713}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -1 line) Patch
M content/browser/service_worker/service_worker_url_request_job.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_url_request_job_unittest.cc View 2 chunks +5 lines, -1 line 0 comments Download

Messages

Total messages: 9 (2 generated)
falken
Discovered this when doing local testing for what happens if a SW is "NOT_FOUND".
5 years, 6 months ago (2015-06-10 08:00:50 UTC) #2
nhiroki
Great! LGTM! > but we don't currently evict everytime a fetch event fails to dispatch. ...
5 years, 6 months ago (2015-06-10 08:14:41 UTC) #3
kinuko
lgtm
5 years, 6 months ago (2015-06-10 08:19:19 UTC) #4
falken
On 2015/06/10 08:14:41, nhiroki wrote: > Great! LGTM! > > > but we don't currently ...
5 years, 6 months ago (2015-06-10 08:22:08 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1173943002/1
5 years, 6 months ago (2015-06-10 08:27:57 UTC) #7
commit-bot: I haz the power
Committed patchset #1 (id:1)
5 years, 6 months ago (2015-06-10 10:16:43 UTC) #8
commit-bot: I haz the power
5 years, 6 months ago (2015-06-10 10:17:48 UTC) #9
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/e46ff16ad6df1050d357009e5041ba90aa66c983
Cr-Commit-Position: refs/heads/master@{#333713}

Powered by Google App Engine
This is Rietveld 408576698