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

Issue 311343003: ServiceWorker polyfill Fetch implementation. (Closed)

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

Description

ServiceWorker polyfill Fetch implementation. This is by no means a good implementation of Fetch, however it is sufficient to let us start proceeding with the cache API (and add). R=falken@chromium.org,jkarlin@chromium.org TBR=jochen@chromium.org BUG=381179 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=175846

Patch Set 1 #

Patch Set 2 : rebase only #

Patch Set 3 : clean up and add FIXMEs #

Total comments: 22

Patch Set 4 : rebase onl6y #

Patch Set 5 : review remediation #

Patch Set 6 : fix typo #

Patch Set 7 : rebase only #

Total comments: 3

Patch Set 8 : rebase only #

Patch Set 9 : fix memory error #

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

Messages

Total messages: 20 (0 generated)
gavinp
PTAL. Boy is this incomplete and potentially controversial, but it's awesomely useful for very lame ...
6 years, 6 months ago (2014-06-05 15:00:30 UTC) #1
gavinp
Note: this CL is downstream of https://codereview.chromium.org/314133002/ , which hasn't landed yet, so it's tricky ...
6 years, 6 months ago (2014-06-05 15:01:21 UTC) #2
jsbell
Initial notes https://codereview.chromium.org/311343003/diff/40001/Source/modules/serviceworkers/polyfills/cachePolyfill.js File Source/modules/serviceworkers/polyfills/cachePolyfill.js (right): https://codereview.chromium.org/311343003/diff/40001/Source/modules/serviceworkers/polyfills/cachePolyfill.js#newcode86 Source/modules/serviceworkers/polyfills/cachePolyfill.js:86: request = _castToRequest(request); _castToRequest isn't exposed, and ...
6 years, 6 months ago (2014-06-05 17:48:03 UTC) #3
jsbell
https://codereview.chromium.org/311343003/diff/40001/Source/modules/serviceworkers/polyfills/cachePolyfill.js File Source/modules/serviceworkers/polyfills/cachePolyfill.js (right): https://codereview.chromium.org/311343003/diff/40001/Source/modules/serviceworkers/polyfills/cachePolyfill.js#newcode86 Source/modules/serviceworkers/polyfills/cachePolyfill.js:86: request = _castToRequest(request); On 2014/06/05 17:48:02, jsbell wrote: > ...
6 years, 6 months ago (2014-06-05 17:50:50 UTC) #4
jsbell
Just some minor notes from my reading of the Fetch spec (which was on my ...
6 years, 6 months ago (2014-06-05 23:06:44 UTC) #5
gavinp
I've cleaned up the code and remediated to many comments. The network error issue is ...
6 years, 6 months ago (2014-06-06 16:43:14 UTC) #6
jsbell
LGTM as a WIP
6 years, 6 months ago (2014-06-06 17:06:31 UTC) #7
falken
lgtm2 https://codereview.chromium.org/311343003/diff/120001/Source/modules/serviceworkers/polyfills/fetchPolyfill.js File Source/modules/serviceworkers/polyfills/fetchPolyfill.js (right): https://codereview.chromium.org/311343003/diff/120001/Source/modules/serviceworkers/polyfills/fetchPolyfill.js#newcode11 Source/modules/serviceworkers/polyfills/fetchPolyfill.js:11: var _castToRequest = function (item) { No space ...
6 years, 6 months ago (2014-06-06 17:29:03 UTC) #8
horo
https://codereview.chromium.org/311343003/diff/120001/Source/modules/serviceworkers/polyfills/fetchPolyfill.js File Source/modules/serviceworkers/polyfills/fetchPolyfill.js (right): https://codereview.chromium.org/311343003/diff/120001/Source/modules/serviceworkers/polyfills/fetchPolyfill.js#newcode32 Source/modules/serviceworkers/polyfills/fetchPolyfill.js:32: var response = new Response({ I noticed that passing ...
6 years, 6 months ago (2014-06-09 05:25:13 UTC) #9
gavinp
The CQ bit was checked by gavinp@chromium.org
6 years, 6 months ago (2014-06-10 00:29:19 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/311343003/140001
6 years, 6 months ago (2014-06-10 00:29:37 UTC) #11
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-10 00:29:44 UTC) #12
commit-bot: I haz the power
Failed to apply patch for Source/modules/serviceworkers/ServiceWorkerGlobalScope.cpp: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 6 months ago (2014-06-10 00:29:45 UTC) #13
gavinp
On 2014/06/10 00:29:45, I haz the power (commit-bot) wrote: > Failed to apply patch for ...
6 years, 6 months ago (2014-06-10 00:31:12 UTC) #14
gavinp
Added jochen@chromium.org as a TBR for modules.gyp changes.
6 years, 6 months ago (2014-06-10 00:38:02 UTC) #15
gavinp
The CQ bit was checked by gavinp@chromium.org
6 years, 6 months ago (2014-06-10 00:38:07 UTC) #16
gavinp
The CQ bit was unchecked by gavinp@chromium.org
6 years, 6 months ago (2014-06-10 00:38:22 UTC) #17
gavinp
The CQ bit was checked by gavinp@chromium.org
6 years, 6 months ago (2014-06-10 00:40:37 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gavinp@chromium.org/311343003/180001
6 years, 6 months ago (2014-06-10 00:41:43 UTC) #19
commit-bot: I haz the power
6 years, 6 months ago (2014-06-10 01:42:03 UTC) #20
Message was sent while issue was closed.
Change committed as 175846

Powered by Google App Engine
This is Rietveld 408576698