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

Issue 2150863002: service worker: Don't BadMessageReceived when a response for a timed out request arrives (Closed)

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

Description

service worker: Don't BadMessageReceived when a response for a timed out request arrives If the worker is stopping, assume an unhandled message is due to the request timing out which triggered the stopping. I considered saving timed out request ids but it's a bit cumbersome: you have to store the IPC message type along with the request id which involves some changes to PendingRequest along with the data structure to hold the timed out requests. Seems more trouble than it's worth to avoid this bug, and we expect to migrate to Mojo soon anyway. BUG=625040 Committed: https://crrev.com/b321c36b95fa43f0378ce82a222b89224d030a6a Cr-Commit-Position: refs/heads/master@{#405477}

Patch Set 1 #

Total comments: 3

Patch Set 2 : comment and move expect #

Unified diffs Side-by-side diffs Delta from patch set Stats (+35 lines, -1 line) Patch
M content/browser/service_worker/embedded_worker_registry.cc View 1 chunk +8 lines, -1 line 0 comments Download
M content/browser/service_worker/service_worker_dispatcher_host_unittest.cc View 1 2 chunks +27 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (4 generated)
falken
ptal
4 years, 5 months ago (2016-07-14 07:15:01 UTC) #2
nhiroki
lgtm https://codereview.chromium.org/2150863002/diff/1/content/browser/service_worker/service_worker_dispatcher_host_unittest.cc File content/browser/service_worker/service_worker_dispatcher_host_unittest.cc (right): https://codereview.chromium.org/2150863002/diff/1/content/browser/service_worker/service_worker_dispatcher_host_unittest.cc#newcode789 content/browser/service_worker/service_worker_dispatcher_host_unittest.cc:789: // message count should not increase. nit: a ...
4 years, 5 months ago (2016-07-14 10:35:27 UTC) #3
falken
Thanks https://codereview.chromium.org/2150863002/diff/1/content/browser/service_worker/service_worker_dispatcher_host_unittest.cc File content/browser/service_worker/service_worker_dispatcher_host_unittest.cc (right): https://codereview.chromium.org/2150863002/diff/1/content/browser/service_worker/service_worker_dispatcher_host_unittest.cc#newcode789 content/browser/service_worker/service_worker_dispatcher_host_unittest.cc:789: // message count should not increase. On 2016/07/14 ...
4 years, 5 months ago (2016-07-14 11:05:28 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2150863002/20001
4 years, 5 months ago (2016-07-14 11:06:00 UTC) #7
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 5 months ago (2016-07-14 12:19:02 UTC) #8
commit-bot: I haz the power
4 years, 5 months ago (2016-07-14 12:20:18 UTC) #10
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/b321c36b95fa43f0378ce82a222b89224d030a6a
Cr-Commit-Position: refs/heads/master@{#405477}

Powered by Google App Engine
This is Rietveld 408576698