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

Issue 2628553002: ServiceWorker: OnSimpleEventFinished could be called after timed out (Closed)

Created:
3 years, 11 months ago by shimazu
Modified:
3 years, 11 months ago
Reviewers:
falken
CC:
chromium-reviews, michaeln, jsbell+serviceworker_chromium.org, shimazu+serviceworker_chromium.org, serviceworker-reviews, jam, nhiroki, kinuko+serviceworker, horo+watch_chromium.org, darin-cc_chromium.org, kinuko+watch, tzik, blink-worker-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

ServiceWorker: OnSimpleEventFinished could be called after timed out The mojo responses can be reached to the callback even after the PendingRequest is removed. That didn't happen on the legacy IPC because the receiver object was owned by PendingRequest. This patch is to allow the situation that the PendingRequest is null when the response has received. BUG=676984 Review-Url: https://codereview.chromium.org/2628553002 Cr-Commit-Position: refs/heads/master@{#443173} Committed: https://chromium.googlesource.com/chromium/src/+/64efa56e5bb67106cea0eb4033b866d9217d8324

Patch Set 1 #

Patch Set 2 : Updated a unittest #

Total comments: 14

Patch Set 3 : Updated comments and removed ' != NULL' #

Total comments: 20

Patch Set 4 : Update comments #

Total comments: 4

Patch Set 5 : Fix comments #

Messages

Total messages: 24 (14 generated)
shimazu
Adding a test... just a moment!
3 years, 11 months ago (2017-01-10 10:18:06 UTC) #1
shimazu
ptal:)
3 years, 11 months ago (2017-01-11 01:55:29 UTC) #3
falken
https://codereview.chromium.org/2628553002/diff/20001/content/browser/service_worker/embedded_worker_test_helper.cc File content/browser/service_worker/embedded_worker_test_helper.cc (right): https://codereview.chromium.org/2628553002/diff/20001/content/browser/service_worker/embedded_worker_test_helper.cc#newcode290 content/browser/service_worker/embedded_worker_test_helper.cc:290: ASSERT_TRUE(worker != nullptr); nit: Can drop the != nullptr ...
3 years, 11 months ago (2017-01-11 06:31:55 UTC) #8
shimazu
Thanks for your comments. Updated the patch. https://codereview.chromium.org/2628553002/diff/20001/content/browser/service_worker/embedded_worker_test_helper.cc File content/browser/service_worker/embedded_worker_test_helper.cc (right): https://codereview.chromium.org/2628553002/diff/20001/content/browser/service_worker/embedded_worker_test_helper.cc#newcode290 content/browser/service_worker/embedded_worker_test_helper.cc:290: ASSERT_TRUE(worker != ...
3 years, 11 months ago (2017-01-12 01:45:24 UTC) #12
falken
Thanks this makes more sense to me now. Sorry for the newbie questions, I'm trying ...
3 years, 11 months ago (2017-01-12 02:29:05 UTC) #15
shimazu
No problem, thanks for asking to me! :) Updated. ptal again. https://codereview.chromium.org/2628553002/diff/20001/content/browser/service_worker/embedded_worker_test_helper.cc File content/browser/service_worker/embedded_worker_test_helper.cc (right): ...
3 years, 11 months ago (2017-01-12 03:48:27 UTC) #16
falken
lgtm, thanks https://codereview.chromium.org/2628553002/diff/60001/content/browser/service_worker/embedded_worker_test_helper.h File content/browser/service_worker/embedded_worker_test_helper.h (right): https://codereview.chromium.org/2628553002/diff/60001/content/browser/service_worker/embedded_worker_test_helper.h#newcode167 content/browser/service_worker/embedded_worker_test_helper.h:167: // StopWorker IPC handler. This calls StopWorkerCallback ...
3 years, 11 months ago (2017-01-12 04:14:48 UTC) #17
shimazu
https://codereview.chromium.org/2628553002/diff/60001/content/browser/service_worker/embedded_worker_test_helper.h File content/browser/service_worker/embedded_worker_test_helper.h (right): https://codereview.chromium.org/2628553002/diff/60001/content/browser/service_worker/embedded_worker_test_helper.h#newcode167 content/browser/service_worker/embedded_worker_test_helper.h:167: // StopWorker IPC handler. This calls StopWorkerCallback by default. ...
3 years, 11 months ago (2017-01-12 05:25:21 UTC) #18
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/2628553002/100001
3 years, 11 months ago (2017-01-12 05:25:52 UTC) #21
commit-bot: I haz the power
3 years, 11 months ago (2017-01-12 07:06:58 UTC) #24
Message was sent while issue was closed.
Committed patchset #5 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/64efa56e5bb67106cea0eb4033b8...

Powered by Google App Engine
This is Rietveld 408576698