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

Issue 1799413002: ServiceWorker: Release a reference when it fails to dispatch ExtendableMessageEvent (Closed)

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

Description

ServiceWorker: Release a reference when it fails to dispatch ExtendableMessageEvent This CL makes sure to release a reference to ServiceWorkerHandle that was supposed to be sent to the destination. Note: ExtendableMessageEvent is still behind a flag and resource leaks due to this have not happened in release builds. BUG=543198 Committed: https://crrev.com/f6da9a0a7eb3a919aa29749017321c9bae8bfa8b Cr-Commit-Position: refs/heads/master@{#382455}

Patch Set 1 : #

Total comments: 3

Patch Set 2 : reduce duplicate code #

Total comments: 6

Patch Set 3 : address review comments #

Patch Set 4 : fix build failures #

Unified diffs Side-by-side diffs Delta from patch set Stats (+298 lines, -77 lines) Patch
M content/browser/message_port_service.h View 1 chunk +3 lines, -0 lines 0 comments Download
M content/browser/message_port_service.cc View 1 chunk +7 lines, -0 lines 0 comments Download
M content/browser/service_worker/embedded_worker_test_helper.h View 1 2 5 chunks +9 lines, -4 lines 0 comments Download
M content/browser/service_worker/embedded_worker_test_helper.cc View 3 chunks +21 lines, -5 lines 0 comments Download
M content/browser/service_worker/service_worker_dispatcher_host.h View 1 2 chunks +19 lines, -2 lines 0 comments Download
M content/browser/service_worker/service_worker_dispatcher_host.cc View 1 2 3 6 chunks +52 lines, -19 lines 0 comments Download
M content/browser/service_worker/service_worker_dispatcher_host_unittest.cc View 1 2 3 7 chunks +181 lines, -47 lines 0 comments Download
M content/browser/service_worker/service_worker_handle.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_provider_host.h View 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_storage.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 33 (19 generated)
nhiroki
PTAL, thanks!
4 years, 9 months ago (2016-03-17 04:59:26 UTC) #12
falken
https://codereview.chromium.org/1799413002/diff/60001/content/browser/service_worker/service_worker_dispatcher_host.cc File content/browser/service_worker/service_worker_dispatcher_host.cc (right): https://codereview.chromium.org/1799413002/diff/60001/content/browser/service_worker/service_worker_dispatcher_host.cc#newcode951 content/browser/service_worker/service_worker_dispatcher_host.cc:951: void ServiceWorkerDispatcherHost::DidFailToDispatchExtendableMessageEvent( I'm kind of confused why there are ...
4 years, 9 months ago (2016-03-17 05:10:49 UTC) #13
nhiroki
Thank you for your comment. https://codereview.chromium.org/1799413002/diff/60001/content/browser/service_worker/service_worker_dispatcher_host.cc File content/browser/service_worker/service_worker_dispatcher_host.cc (right): https://codereview.chromium.org/1799413002/diff/60001/content/browser/service_worker/service_worker_dispatcher_host.cc#newcode951 content/browser/service_worker/service_worker_dispatcher_host.cc:951: void ServiceWorkerDispatcherHost::DidFailToDispatchExtendableMessageEvent( On 2016/03/17 ...
4 years, 9 months ago (2016-03-17 06:05:30 UTC) #15
nhiroki
https://codereview.chromium.org/1799413002/diff/60001/content/browser/service_worker/service_worker_dispatcher_host.cc File content/browser/service_worker/service_worker_dispatcher_host.cc (right): https://codereview.chromium.org/1799413002/diff/60001/content/browser/service_worker/service_worker_dispatcher_host.cc#newcode951 content/browser/service_worker/service_worker_dispatcher_host.cc:951: void ServiceWorkerDispatcherHost::DidFailToDispatchExtendableMessageEvent( On 2016/03/17 06:05:30, nhiroki wrote: > On ...
4 years, 9 months ago (2016-03-17 06:33:28 UTC) #16
falken
lgtm https://codereview.chromium.org/1799413002/diff/100001/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/1799413002/diff/100001/content/browser/service_worker/service_worker_dispatcher_host_unittest.cc#newcode641 content/browser/service_worker/service_worker_dispatcher_host_unittest.cc:641: GURL scope = GURL("http://www.example.com/service_worker.js"); script_url https://codereview.chromium.org/1799413002/diff/100001/content/browser/service_worker/service_worker_dispatcher_host_unittest.cc#newcode673 content/browser/service_worker/service_worker_dispatcher_host_unittest.cc:673: ASSERT_EQ(SERVICE_WORKER_OK, ...
4 years, 9 months ago (2016-03-17 06:44:36 UTC) #17
nhiroki
Updated. Thank you! https://codereview.chromium.org/1799413002/diff/100001/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/1799413002/diff/100001/content/browser/service_worker/service_worker_dispatcher_host_unittest.cc#newcode641 content/browser/service_worker/service_worker_dispatcher_host_unittest.cc:641: GURL scope = GURL("http://www.example.com/service_worker.js"); On 2016/03/17 ...
4 years, 9 months ago (2016-03-17 07:58:18 UTC) #18
nhiroki
+kinuko@ for content/browser/message_port_service.{cc.h} PTAL, thanks!
4 years, 9 months ago (2016-03-17 07:59:26 UTC) #20
nhiroki
On 2016/03/17 07:59:26, nhiroki wrote: > +kinuko@ for content/browser/message_port_service.{cc.h} > > PTAL, thanks! ping?
4 years, 9 months ago (2016-03-18 09:16:25 UTC) #21
kinuko
lgtm
4 years, 9 months ago (2016-03-19 06:35:05 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1799413002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1799413002/140001
4 years, 9 months ago (2016-03-19 06:51:27 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/199282)
4 years, 9 months ago (2016-03-19 09:56:51 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1799413002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1799413002/140001
4 years, 9 months ago (2016-03-21 23:18:22 UTC) #29
commit-bot: I haz the power
Committed patchset #4 (id:140001)
4 years, 9 months ago (2016-03-22 00:26:42 UTC) #31
commit-bot: I haz the power
4 years, 9 months ago (2016-03-22 00:28:52 UTC) #33
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/f6da9a0a7eb3a919aa29749017321c9bae8bfa8b
Cr-Commit-Position: refs/heads/master@{#382455}

Powered by Google App Engine
This is Rietveld 408576698