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

Issue 258513002: Introduce WorkerStoragePartitionId and use it in SharedWorkerInstance. (Closed)

Created:
6 years, 8 months ago by horo
Modified:
6 years, 8 months ago
Reviewers:
kinuko, michaeln, yurys
CC:
chromium-reviews, darin-cc_chromium.org, jam, michaeln
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Introduce WorkerStoragePartitionId and use it in SharedWorkerInstance. WorkerStoragePartitionId can be used to identify each WorkerStoragePartitions. We can hold WorkerStoragePartitionId without extending the lifetime of all objects in the WorkerStoragePartition. BUG=366182, 327256 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=265930

Patch Set 1 : #

Total comments: 4

Patch Set 2 : #

Total comments: 2

Patch Set 3 : #

Total comments: 2

Patch Set 4 : Hold WorkerStoragePartition in SharedWorkerMessageFilter #

Unified diffs Side-by-side diffs Delta from patch set Stats (+99 lines, -36 lines) Patch
M content/browser/devtools/shared_worker_devtools_manager_unittest.cc View 4 chunks +6 lines, -4 lines 0 comments Download
M content/browser/shared_worker/shared_worker_instance.h View 4 chunks +7 lines, -10 lines 0 comments Download
M content/browser/shared_worker/shared_worker_instance.cc View 4 chunks +11 lines, -8 lines 0 comments Download
M content/browser/shared_worker/shared_worker_instance_unittest.cc View 3 chunks +14 lines, -7 lines 0 comments Download
M content/browser/shared_worker/shared_worker_message_filter.cc View 1 2 3 2 chunks +8 lines, -3 lines 0 comments Download
M content/browser/shared_worker/shared_worker_service_impl.h View 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/shared_worker/shared_worker_service_impl.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/worker_host/worker_storage_partition.h View 1 2 1 chunk +22 lines, -0 lines 0 comments Download
M content/browser/worker_host/worker_storage_partition.cc View 1 1 chunk +27 lines, -0 lines 0 comments Download

Messages

Total messages: 30 (0 generated)
horo
kinuko@ Could you please review?
6 years, 8 months ago (2014-04-24 03:21:25 UTC) #1
kinuko
https://codereview.chromium.org/258513002/diff/20001/content/browser/worker_host/worker_storage_partition.h File content/browser/worker_host/worker_storage_partition.h (right): https://codereview.chromium.org/258513002/diff/20001/content/browser/worker_host/worker_storage_partition.h#newcode112 content/browser/worker_host/worker_storage_partition.h:112: // extending the lifetime of all objects in the ...
6 years, 8 months ago (2014-04-24 04:11:46 UTC) #2
horo
https://codereview.chromium.org/258513002/diff/20001/content/browser/worker_host/worker_storage_partition.h File content/browser/worker_host/worker_storage_partition.h (right): https://codereview.chromium.org/258513002/diff/20001/content/browser/worker_host/worker_storage_partition.h#newcode112 content/browser/worker_host/worker_storage_partition.h:112: // extending the lifetime of all objects in the ...
6 years, 8 months ago (2014-04-24 04:26:32 UTC) #3
kinuko
lgtm (I can't see issue 366182, but assume this should fix it) https://codereview.chromium.org/258513002/diff/40001/content/browser/worker_host/worker_storage_partition.h File content/browser/worker_host/worker_storage_partition.h ...
6 years, 8 months ago (2014-04-24 04:53:38 UTC) #4
horo
https://codereview.chromium.org/258513002/diff/40001/content/browser/worker_host/worker_storage_partition.h File content/browser/worker_host/worker_storage_partition.h (right): https://codereview.chromium.org/258513002/diff/40001/content/browser/worker_host/worker_storage_partition.h#newcode114 content/browser/worker_host/worker_storage_partition.h:114: // corresponding partitionand its members are kept alive. On ...
6 years, 8 months ago (2014-04-24 05:09:52 UTC) #5
horo
The CQ bit was checked by horo@chromium.org
6 years, 8 months ago (2014-04-24 05:09:59 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/horo@chromium.org/258513002/60001
6 years, 8 months ago (2014-04-24 05:13:51 UTC) #7
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-24 05:48:50 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on chromium_presubmit
6 years, 8 months ago (2014-04-24 05:48:51 UTC) #9
michaeln
https://codereview.chromium.org/258513002/diff/60001/content/browser/shared_worker/shared_worker_message_filter.h File content/browser/shared_worker/shared_worker_message_filter.h (right): https://codereview.chromium.org/258513002/diff/60001/content/browser/shared_worker/shared_worker_message_filter.h#newcode71 content/browser/shared_worker/shared_worker_message_filter.h:71: const WorkerStoragePartitionId partition_id_; The bug has to do with ...
6 years, 8 months ago (2014-04-24 08:04:31 UTC) #10
horo
https://codereview.chromium.org/258513002/diff/60001/content/browser/shared_worker/shared_worker_message_filter.h File content/browser/shared_worker/shared_worker_message_filter.h (right): https://codereview.chromium.org/258513002/diff/60001/content/browser/shared_worker/shared_worker_message_filter.h#newcode71 content/browser/shared_worker/shared_worker_message_filter.h:71: const WorkerStoragePartitionId partition_id_; On 2014/04/24 08:04:32, michaeln wrote: > ...
6 years, 8 months ago (2014-04-24 08:23:13 UTC) #11
kinuko
On 2014/04/24 08:23:13, horo wrote: > https://codereview.chromium.org/258513002/diff/60001/content/browser/shared_worker/shared_worker_message_filter.h > File content/browser/shared_worker/shared_worker_message_filter.h (right): > > https://codereview.chromium.org/258513002/diff/60001/content/browser/shared_worker/shared_worker_message_filter.h#newcode71 > ...
6 years, 8 months ago (2014-04-24 08:59:31 UTC) #12
horo
The CQ bit was checked by horo@chromium.org
6 years, 8 months ago (2014-04-24 09:20:19 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/horo@chromium.org/258513002/70001
6 years, 8 months ago (2014-04-24 09:20:28 UTC) #14
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-24 09:30:08 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on chromium_presubmit
6 years, 8 months ago (2014-04-24 09:30:08 UTC) #16
horo
yurys@ Please review shared_worker_devtools_manager_unittest.cc
6 years, 8 months ago (2014-04-24 10:21:29 UTC) #17
yurys
On 2014/04/24 10:21:29, horo wrote: > yurys@ > Please review shared_worker_devtools_manager_unittest.cc shared_worker_devtools_manager_unittest.cc - lgtm
6 years, 8 months ago (2014-04-24 11:02:37 UTC) #18
horo
The CQ bit was checked by horo@chromium.org
6 years, 8 months ago (2014-04-24 11:03:00 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/horo@chromium.org/258513002/70001
6 years, 8 months ago (2014-04-24 11:28:12 UTC) #20
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-24 12:11:38 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on chromium_presubmit
6 years, 8 months ago (2014-04-24 12:11:39 UTC) #22
horo
The CQ bit was checked by horo@chromium.org
6 years, 8 months ago (2014-04-24 12:31:27 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/horo@chromium.org/258513002/70001
6 years, 8 months ago (2014-04-24 12:31:37 UTC) #24
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-24 14:18:35 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on chromium_presubmit
6 years, 8 months ago (2014-04-24 14:18:36 UTC) #26
horo
The CQ bit was checked by horo@chromium.org
6 years, 8 months ago (2014-04-24 14:38:58 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/horo@chromium.org/258513002/70001
6 years, 8 months ago (2014-04-24 14:39:27 UTC) #28
commit-bot: I haz the power
Change committed as 265930
6 years, 8 months ago (2014-04-24 16:20:13 UTC) #29
michaeln1
6 years, 8 months ago (2014-04-24 21:41:52 UTC) #30
Message was sent while issue was closed.
> > Done.
> > Oh yes.
> > SharedWorkerMessageFilter should hold WorkerStoragePartition.

Thnx!

> I haven't looked into deeper but at a quick look I have a feeling that it
might
> be ok not to hold the reference in SharedWorkerMessageFilter either? ...but to
> fix this particular issue not to change the current behavior for the working
> part would be probably safer (and it looks we must fix this issue asap,
without
> other potential breakages).

It might be, but it's a bit of a leap of faith, and there's no need to make that
leap.

Powered by Google App Engine
This is Rietveld 408576698