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

Issue 457903002: After 24 hours, bust the browser cache when checking for ServiceWorker updates (Closed)

Created:
6 years, 4 months ago by michaeln
Modified:
6 years, 4 months ago
CC:
chromium-reviews, jsbell+serviceworker_chromium.org, tzik, serviceworker-reviews, jam, kinuko+serviceworker, nhiroki, darin-cc_chromium.org, horo+watch_chromium.org, alecflett+watch_chromium.org
Project:
chromium
Visibility:
Public.

Description

After 24 hours, bust the browser cache when checking for ServiceWorker updates and fetching it's imports. Also bypass the browser cache for the initial registration. BUG=371671 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=289891

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 4

Patch Set 4 : #

Patch Set 5 : #

Total comments: 8

Patch Set 6 : #

Total comments: 3

Patch Set 7 : #

Total comments: 2

Patch Set 8 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+157 lines, -52 lines) Patch
M content/browser/service_worker/service_worker_context_request_handler.cc View 1 2 3 7 2 chunks +15 lines, -0 lines 0 comments Download
A + content/browser/service_worker/service_worker_context_request_handler_unittest.cc View 1 2 3 4 5 6 7 4 chunks +52 lines, -35 lines 0 comments Download
M content/browser/service_worker/service_worker_controllee_request_handler_unittest.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M content/browser/service_worker/service_worker_provider_host.h View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_register_job.h View 1 1 chunk +1 line, -1 line 0 comments Download
M content/browser/service_worker/service_worker_register_job.cc View 1 2 3 4 5 5 chunks +24 lines, -9 lines 0 comments Download
M content/browser/service_worker/service_worker_registration.h View 1 2 3 2 chunks +5 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_storage.h View 1 2 3 4 2 chunks +5 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_storage.cc View 1 2 3 3 chunks +20 lines, -1 line 0 comments Download
M content/browser/service_worker/service_worker_storage_unittest.cc View 1 2 3 4 6 chunks +16 lines, -2 lines 0 comments Download
M content/browser/service_worker/service_worker_write_to_cache_job.h View 1 2 3 4 5 6 7 2 chunks +7 lines, -1 line 0 comments Download
M content/browser/service_worker/service_worker_write_to_cache_job.cc View 1 2 3 4 4 chunks +6 lines, -2 lines 0 comments Download
M content/content_tests.gypi View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
michaeln
ptal, tests are still [wip]
6 years, 4 months ago (2014-08-09 02:16:11 UTC) #1
dominicc (has gone to gerrit)
nit https://codereview.chromium.org/457903002/diff/40001/content/browser/service_worker/service_worker_register_job.cc File content/browser/service_worker/service_worker_register_job.cc (right): https://codereview.chromium.org/457903002/diff/40001/content/browser/service_worker/service_worker_register_job.cc#newcode234 content/browser/service_worker/service_worker_register_job.cc:234: // TODO(michaeln): If the last update check was ...
6 years, 4 months ago (2014-08-11 04:01:16 UTC) #2
falken
This looks good to me. https://codereview.chromium.org/457903002/diff/40001/content/browser/service_worker/service_worker_context_request_handler.cc File content/browser/service_worker/service_worker_context_request_handler.cc (right): https://codereview.chromium.org/457903002/diff/40001/content/browser/service_worker/service_worker_context_request_handler.cc#newcode64 content/browser/service_worker/service_worker_context_request_handler.cc:64: // checks after 24 ...
6 years, 4 months ago (2014-08-11 04:13:15 UTC) #3
michaeln
https://codereview.chromium.org/457903002/diff/40001/content/browser/service_worker/service_worker_context_request_handler.cc File content/browser/service_worker/service_worker_context_request_handler.cc (right): https://codereview.chromium.org/457903002/diff/40001/content/browser/service_worker/service_worker_context_request_handler.cc#newcode64 content/browser/service_worker/service_worker_context_request_handler.cc:64: // checks after 24 hours have past. On 2014/08/11 ...
6 years, 4 months ago (2014-08-13 03:42:55 UTC) #4
falken
Thanks. Is this patch still WIP for tests?
6 years, 4 months ago (2014-08-13 04:43:05 UTC) #5
michaeln
I still haven't put together tests for this but i'd like get it in prior ...
6 years, 4 months ago (2014-08-14 02:39:27 UTC) #6
falken
On 2014/08/14 02:39:27, michaeln wrote: > I still haven't put together tests for this but ...
6 years, 4 months ago (2014-08-14 02:53:30 UTC) #7
dominicc (has gone to gerrit)
On 2014/08/14 02:39:27, michaeln wrote: > I still haven't put together tests for this but ...
6 years, 4 months ago (2014-08-14 07:03:37 UTC) #8
michaeln
> In everything I have observed, skipping writing tests to make a deadline is a ...
6 years, 4 months ago (2014-08-15 01:15:42 UTC) #9
michaeln
> So to summarize our update functionality, including this patch: > - every page load ...
6 years, 4 months ago (2014-08-15 01:39:59 UTC) #10
falken
https://codereview.chromium.org/457903002/diff/80001/content/browser/service_worker/service_worker_context_request_handler_unittest.cc File content/browser/service_worker/service_worker_context_request_handler_unittest.cc (right): https://codereview.chromium.org/457903002/diff/80001/content/browser/service_worker/service_worker_context_request_handler_unittest.cc#newcode54 content/browser/service_worker/service_worker_context_request_handler_unittest.cc:54: context()->AddProviderHost(host.Pass()); Can you clean it up in service_worker_controllee_request_handler_unittest.cc also? ...
6 years, 4 months ago (2014-08-15 02:13:56 UTC) #11
michaeln
thnx for looking https://codereview.chromium.org/457903002/diff/80001/content/browser/service_worker/service_worker_context_request_handler_unittest.cc File content/browser/service_worker/service_worker_context_request_handler_unittest.cc (right): https://codereview.chromium.org/457903002/diff/80001/content/browser/service_worker/service_worker_context_request_handler_unittest.cc#newcode80 content/browser/service_worker/service_worker_context_request_handler_unittest.cc:80: TEST_F(ServiceWorkerContextRequestHandlerTest, SoftUpdateBefore24Hours) { On 2014/08/15 02:13:55, ...
6 years, 4 months ago (2014-08-15 02:53:24 UTC) #12
michaeln
The CQ bit was checked by michaeln@chromium.org
6 years, 4 months ago (2014-08-15 03:04:37 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/michaeln@chromium.org/457903002/140001
6 years, 4 months ago (2014-08-15 03:08:42 UTC) #14
commit-bot: I haz the power
Committed patchset #8 (140001) as 289891
6 years, 4 months ago (2014-08-15 16:05:36 UTC) #15
mlamouri (slow - plz ping)
6 years, 3 months ago (2014-08-27 10:17:48 UTC) #16
Message was sent while issue was closed.
A revert of this CL (patchset #8) has been created in
https://codereview.chromium.org/511813002/ by mlamouri@chromium.org.

The reason for reverting is: Some SW tests are starting to randomly crash
following that CL.

See bug 404607..

Powered by Google App Engine
This is Rietveld 408576698