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

Issue 329433002: Initial ServiceWorker CacheStorage API polyfill. (Closed)

Created:
6 years, 6 months ago by gavinp
Modified:
6 years, 6 months ago
CC:
blink-reviews, michaeln, jsbell+serviceworker_chromium.org, tzik, serviceworker-reviews, nhiroki, falken, kinuko+serviceworker, horo+watch_chromium.org, alecflett+watch_chromium.org
Visibility:
Public.

Description

Initial ServiceWorker CacheStorage API polyfill. This provides CacheStorage, the namespace of caches, although without serialization. The idea is to let us test this API end-to-end early, and we can replace it with something more sophisticated as we progress. R=jsbell@chromium.org,falken@chromium.org,jkarlin@chromium.org,asanka@chromium.org,slightlyoff@chromium.org,jakearchibald@chromium.org TBR=jochen@chromium.org BUG=374822 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=175988

Patch Set 1 #

Patch Set 2 : some fixes #

Total comments: 1

Patch Set 3 : rebase correctly #

Patch Set 4 : fix style, use proposed narrower API #

Patch Set 5 : add FIXMEs #

Total comments: 14

Patch Set 6 : remediate to reviews #

Patch Set 7 : one moar typo #

Total comments: 6

Patch Set 8 : clear to land #

Unified diffs Side-by-side diffs Delta from patch set Stats (+119 lines, -2 lines) Patch
M Source/modules/modules.gyp View 1 2 1 chunk +25 lines, -0 lines 0 comments Download
M Source/modules/serviceworkers/ServiceWorkerGlobalScope.cpp View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M Source/modules/serviceworkers/polyfills/cachePolyfill.js View 1 2 1 chunk +1 line, -2 lines 0 comments Download
A Source/modules/serviceworkers/polyfills/cacheStoragePolyfill.js View 1 2 3 4 5 6 7 1 chunk +91 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
gavinp
Here's a very basic CacheStorage API as well, that installs the "caches" object into the ...
6 years, 6 months ago (2014-06-10 00:25:28 UTC) #1
falken
lgtm https://codereview.chromium.org/329433002/diff/20001/Source/modules/serviceworkers/polyfills/cacheStoragePolyfill.js File Source/modules/serviceworkers/polyfills/cacheStoragePolyfill.js (right): https://codereview.chromium.org/329433002/diff/20001/Source/modules/serviceworkers/polyfills/cacheStoragePolyfill.js#newcode48 Source/modules/serviceworkers/polyfills/cacheStoragePolyfill.js:48: Object.keys(this.cachesByName).map(function (key) { I think your other patches ...
6 years, 6 months ago (2014-06-10 17:47:03 UTC) #2
gavinp
On 2014/06/10 17:47:03, falken wrote: > lgtm > > https://codereview.chromium.org/329433002/diff/20001/Source/modules/serviceworkers/polyfills/cacheStoragePolyfill.js > File Source/modules/serviceworkers/polyfills/cacheStoragePolyfill.js (right): > ...
6 years, 6 months ago (2014-06-10 17:51:08 UTC) #3
gavinp
falken, Here is a change that brings this to the API that I'd prefer. Does ...
6 years, 6 months ago (2014-06-10 18:01:37 UTC) #4
falken
still lgtm as a first cut. I think it'd be good to start the spec ...
6 years, 6 months ago (2014-06-10 18:36:12 UTC) #5
jsbell
Initial notes https://codereview.chromium.org/329433002/diff/90001/Source/modules/serviceworkers/polyfills/cacheStoragePolyfill.js File Source/modules/serviceworkers/polyfills/cacheStoragePolyfill.js (right): https://codereview.chromium.org/329433002/diff/90001/Source/modules/serviceworkers/polyfills/cacheStoragePolyfill.js#newcode17 Source/modules/serviceworkers/polyfills/cacheStoragePolyfill.js:17: return Promise.resolve(this.cachesByName[key]); Overall: this polyfill is doing ...
6 years, 6 months ago (2014-06-10 18:36:19 UTC) #6
gavinp
Thanks for the reviews. jsbell: how's this? https://codereview.chromium.org/329433002/diff/90001/Source/modules/serviceworkers/polyfills/cacheStoragePolyfill.js File Source/modules/serviceworkers/polyfills/cacheStoragePolyfill.js (right): https://codereview.chromium.org/329433002/diff/90001/Source/modules/serviceworkers/polyfills/cacheStoragePolyfill.js#newcode17 Source/modules/serviceworkers/polyfills/cacheStoragePolyfill.js:17: return Promise.resolve(this.cachesByName[key]); ...
6 years, 6 months ago (2014-06-10 20:03:09 UTC) #7
jsbell
Overall lgtm but some bugs and nits. I can has tests next? https://codereview.chromium.org/329433002/diff/120001/Source/modules/serviceworkers/polyfills/cacheStoragePolyfill.js File Source/modules/serviceworkers/polyfills/cacheStoragePolyfill.js ...
6 years, 6 months ago (2014-06-10 22:26:34 UTC) #8
gavinp
You _can_ has tests. See crbug.com/374802 , I'm laying track and Asanka is running a ...
6 years, 6 months ago (2014-06-11 16:58:30 UTC) #9
gavinp
The CQ bit was checked by gavinp@chromium.org
6 years, 6 months ago (2014-06-11 22:02:05 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gavinp@chromium.org/329433002/140001
6 years, 6 months ago (2014-06-11 22:02:51 UTC) #11
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: blink_presubmit on tryserver.blink ...
6 years, 6 months ago (2014-06-11 22:07:53 UTC) #12
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-11 22:10:18 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: blink_presubmit on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/blink_presubmit/builds/7478)
6 years, 6 months ago (2014-06-11 22:10:19 UTC) #14
gavinp
+jochen as TBD for modules.gyp changes.
6 years, 6 months ago (2014-06-11 22:10:32 UTC) #15
gavinp
The CQ bit was checked by gavinp@chromium.org
6 years, 6 months ago (2014-06-11 22:10:36 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gavinp@chromium.org/329433002/140001
6 years, 6 months ago (2014-06-11 22:10:51 UTC) #17
commit-bot: I haz the power
6 years, 6 months ago (2014-06-12 05:35:57 UTC) #18
Message was sent while issue was closed.
Change committed as 175988

Powered by Google App Engine
This is Rietveld 408576698