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

Issue 307063002: ServiceWorker: Add a Response ctor that accepts the body as a Blob (Closed)

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

Description

ServiceWorker: Add a Response ctor that accepts the body as a Blob This ctor is expected to be added to the spec: https://github.com/slightlyoff/ServiceWorker/issues/192 Eventually we'll also have ctors for String, Stream, and ArrayBuffer bodies. Multi-sided patch to implement blob-type fetch event response bodies: #1: blink-side, THIS PATCH #2: chromium-side: https://codereview.chromium.org/304153015/ #3: blink-side: https://codereview.chromium.org/304233017 BUG=379074 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=175350

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : simpler #

Total comments: 8

Patch Set 4 : use BlobDataHandle #

Total comments: 2

Patch Set 5 : don't crash on null body #

Unified diffs Side-by-side diffs Delta from patch set Stats (+51 lines, -13 lines) Patch
M LayoutTests/http/tests/serviceworker/resources/response-worker.js View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/serviceworkers/Response.h View 1 2 3 3 chunks +5 lines, -2 lines 0 comments Download
M Source/modules/serviceworkers/Response.cpp View 1 2 3 4 2 chunks +13 lines, -5 lines 0 comments Download
M Source/modules/serviceworkers/Response.idl View 1 chunk +3 lines, -0 lines 0 comments Download
M Source/platform/exported/WebServiceWorkerResponse.cpp View 1 2 3 4 chunks +20 lines, -0 lines 0 comments Download
M public/platform/WebServiceWorkerResponse.h View 1 2 3 2 chunks +9 lines, -5 lines 0 comments Download

Messages

Total messages: 23 (0 generated)
falken
6 years, 6 months ago (2014-05-30 08:10:46 UTC) #1
kinuko
DBC https://codereview.chromium.org/307063002/diff/40001/Source/modules/serviceworkers/Response.h File Source/modules/serviceworkers/Response.h (right): https://codereview.chromium.org/307063002/diff/40001/Source/modules/serviceworkers/Response.h#newcode39 Source/modules/serviceworkers/Response.h:39: String m_blobUUID; I think this should hold a ...
6 years, 6 months ago (2014-05-30 12:53:14 UTC) #2
michaeln1
https://codereview.chromium.org/307063002/diff/40001/Source/modules/serviceworkers/Response.h File Source/modules/serviceworkers/Response.h (right): https://codereview.chromium.org/307063002/diff/40001/Source/modules/serviceworkers/Response.h#newcode39 Source/modules/serviceworkers/Response.h:39: String m_blobUUID; On 2014/05/30 12:53:15, kinuko (ooo) wrote: > ...
6 years, 6 months ago (2014-05-30 20:09:35 UTC) #3
dominicc (has gone to gerrit)
https://codereview.chromium.org/307063002/diff/40001/Source/modules/serviceworkers/Response.cpp File Source/modules/serviceworkers/Response.cpp (right): https://codereview.chromium.org/307063002/diff/40001/Source/modules/serviceworkers/Response.cpp#newcode24 Source/modules/serviceworkers/Response.cpp:24: // FIXME: Maybe append or override content-length and content-type ...
6 years, 6 months ago (2014-06-02 00:50:46 UTC) #4
falken
Thanks! PTAL https://codereview.chromium.org/307063002/diff/40001/Source/modules/serviceworkers/Response.cpp File Source/modules/serviceworkers/Response.cpp (right): https://codereview.chromium.org/307063002/diff/40001/Source/modules/serviceworkers/Response.cpp#newcode24 Source/modules/serviceworkers/Response.cpp:24: // FIXME: Maybe append or override content-length ...
6 years, 6 months ago (2014-06-02 03:55:27 UTC) #5
michaeln
lgtm
6 years, 6 months ago (2014-06-02 23:23:35 UTC) #6
falken
The CQ bit was checked by falken@chromium.org
6 years, 6 months ago (2014-06-03 00:02:12 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/falken@chromium.org/307063002/60001
6 years, 6 months ago (2014-06-03 00:02:57 UTC) #8
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-03 00:17:18 UTC) #9
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-03 00:32:15 UTC) #10
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/6735)
6 years, 6 months ago (2014-06-03 00:32:15 UTC) #11
falken
Kent-san, can you please review as platform OWNER?
6 years, 6 months ago (2014-06-03 00:36:56 UTC) #12
tkent
https://codereview.chromium.org/307063002/diff/60001/Source/modules/serviceworkers/Response.cpp File Source/modules/serviceworkers/Response.cpp (right): https://codereview.chromium.org/307063002/diff/60001/Source/modules/serviceworkers/Response.cpp#newcode26 Source/modules/serviceworkers/Response.cpp:26: return adoptRef(new Response(body->blobDataHandle(), ResponseInit(responseInit))); This will crash if |body| ...
6 years, 6 months ago (2014-06-03 02:13:40 UTC) #13
falken
PTAL https://codereview.chromium.org/307063002/diff/60001/Source/modules/serviceworkers/Response.cpp File Source/modules/serviceworkers/Response.cpp (right): https://codereview.chromium.org/307063002/diff/60001/Source/modules/serviceworkers/Response.cpp#newcode26 Source/modules/serviceworkers/Response.cpp:26: return adoptRef(new Response(body->blobDataHandle(), ResponseInit(responseInit))); On 2014/06/03 02:13:41, tkent ...
6 years, 6 months ago (2014-06-03 08:12:27 UTC) #14
tkent
lgtm
6 years, 6 months ago (2014-06-03 08:13:33 UTC) #15
falken
The CQ bit was checked by falken@chromium.org
6 years, 6 months ago (2014-06-03 08:15:15 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/falken@chromium.org/307063002/80001
6 years, 6 months ago (2014-06-03 08:15:39 UTC) #17
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: mac_blink_rel on tryserver.blink ...
6 years, 6 months ago (2014-06-03 09:25:09 UTC) #18
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-03 10:23:43 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: mac_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/mac_blink_rel/builds/10027)
6 years, 6 months ago (2014-06-03 10:23:44 UTC) #20
falken
The CQ bit was checked by falken@chromium.org
6 years, 6 months ago (2014-06-03 10:26:04 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/falken@chromium.org/307063002/80001
6 years, 6 months ago (2014-06-03 10:26:52 UTC) #22
commit-bot: I haz the power
6 years, 6 months ago (2014-06-03 11:14:55 UTC) #23
Message was sent while issue was closed.
Change committed as 175350

Powered by Google App Engine
This is Rietveld 408576698