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

Issue 1967683003: service worker: Wait for request body blobs to finish construction (Closed)

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

Description

service worker: Wait for request body blobs to finish construction Blob construction recently became async and we have to handle that. Note to sheriff: there's a good chance the crash test added will be flaky on debug builds. That's because of an existing crash crbug.com/611317 which happens before this patch. In that event, I'd rather we add the test to TestExpectations than revert the patch. BUG=608544 Committed: https://crrev.com/8e6cf517c56051b81e32c05dd2dddb024c93ffe2 Cr-Commit-Position: refs/heads/master@{#394241}

Patch Set 1 #

Total comments: 6

Patch Set 2 : review comments and refactor #

Patch Set 3 : self-review #

Patch Set 4 : rebase #

Total comments: 6

Patch Set 5 : review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+281 lines, -30 lines) Patch
M content/browser/service_worker/service_worker_metrics.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_url_request_job.h View 1 5 chunks +11 lines, -1 line 0 comments Download
M content/browser/service_worker/service_worker_url_request_job.cc View 1 2 3 4 9 chunks +138 lines, -29 lines 0 comments Download
M net/log/net_log_event_type_list.h View 1 2 3 4 1 chunk +13 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/serviceworker/chromium/request-body-blob-crash.html View 1 1 chunk +34 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/serviceworker/chromium/resources/request-body-blob-crash-iframe.html View 1 1 chunk +15 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/serviceworker/chromium/resources/request-body-blob-crash-worker.js View 1 1 chunk +12 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/serviceworker/request-body-blob.html View 1 chunk +32 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/request-body-blob-iframe.html View 1 1 chunk +13 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/request-body-blob-worker.js View 1 2 1 chunk +12 lines, -0 lines 0 comments Download

Messages

Total messages: 23 (9 generated)
falken
dmurph, horo PTAL
4 years, 7 months ago (2016-05-11 10:07:03 UTC) #2
dmurph
https://codereview.chromium.org/1967683003/diff/1/content/browser/service_worker/service_worker_url_request_job.cc File content/browser/service_worker/service_worker_url_request_job.cc (right): https://codereview.chromium.org/1967683003/diff/1/content/browser/service_worker/service_worker_url_request_job.cc#newcode899 content/browser/service_worker/service_worker_url_request_job.cc:899: std::unique_ptr<storage::BlobDataHandle> handle = You can check if the blob ...
4 years, 7 months ago (2016-05-11 21:35:58 UTC) #3
horo
https://codereview.chromium.org/1967683003/diff/1/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/request-body-blob-worker.js File third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/request-body-blob-worker.js (right): https://codereview.chromium.org/1967683003/diff/1/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/request-body-blob-worker.js#newcode6 third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/request-body-blob-worker.js:6: if (resp.indexOf("it's me the blob") == -1) Nit: use ...
4 years, 7 months ago (2016-05-12 06:13:37 UTC) #4
falken
PTAL. I found a the crash test fails when run in isolation on the test ...
4 years, 7 months ago (2016-05-12 08:49:33 UTC) #7
horo
lgtm
4 years, 7 months ago (2016-05-16 02:03:53 UTC) #8
falken
Reviewers, please review: dmurph: blob stuff xunjieli: net/
4 years, 7 months ago (2016-05-16 04:16:38 UTC) #10
xunjieli
net_log_event_type_list.h looks good to me. But I have never done review of that particular file. ...
4 years, 7 months ago (2016-05-16 14:54:07 UTC) #12
mmenke
https://codereview.chromium.org/1967683003/diff/60001/content/browser/service_worker/service_worker_url_request_job.cc File content/browser/service_worker/service_worker_url_request_job.cc (right): https://codereview.chromium.org/1967683003/diff/60001/content/browser/service_worker/service_worker_url_request_job.cc#newcode117 content/browser/service_worker/service_worker_url_request_job.cc:117: TYPE_SERVICE_WORKER_REQUEST_BODY_BLOB_CONSTRUCTION_STARTED); Would it make sense to use BeginEvent / ...
4 years, 7 months ago (2016-05-16 15:30:02 UTC) #13
dmurph
On 2016/05/16 at 15:30:02, mmenke wrote: > https://codereview.chromium.org/1967683003/diff/60001/content/browser/service_worker/service_worker_url_request_job.cc > File content/browser/service_worker/service_worker_url_request_job.cc (right): > > https://codereview.chromium.org/1967683003/diff/60001/content/browser/service_worker/service_worker_url_request_job.cc#newcode117 ...
4 years, 7 months ago (2016-05-16 21:08:18 UTC) #14
falken
mmenke: thank you. patch updated, PTAL https://codereview.chromium.org/1967683003/diff/60001/content/browser/service_worker/service_worker_url_request_job.cc File content/browser/service_worker/service_worker_url_request_job.cc (right): https://codereview.chromium.org/1967683003/diff/60001/content/browser/service_worker/service_worker_url_request_job.cc#newcode117 content/browser/service_worker/service_worker_url_request_job.cc:117: TYPE_SERVICE_WORKER_REQUEST_BODY_BLOB_CONSTRUCTION_STARTED); On 2016/05/16 ...
4 years, 7 months ago (2016-05-17 02:03:14 UTC) #15
mmenke
LGTM
4 years, 7 months ago (2016-05-17 15:33:57 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1967683003/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1967683003/80001
4 years, 7 months ago (2016-05-17 22:07:12 UTC) #19
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 7 months ago (2016-05-17 22:14:57 UTC) #21
commit-bot: I haz the power
4 years, 7 months ago (2016-05-17 22:17:12 UTC) #23
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/8e6cf517c56051b81e32c05dd2dddb024c93ffe2
Cr-Commit-Position: refs/heads/master@{#394241}

Powered by Google App Engine
This is Rietveld 408576698