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

Issue 2925623004: Only use SiteInstance process reuse for ServiceWorker with no failures (Closed)

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

Description

Only use SiteInstance process reuse for ServiceWorker with no failures This CL ensures we will only attempt to use the SiteInstance process reuse mechanism when creating a SiteInstance for a ServiceWorker when the ServiceWorker has not failed to start. Otherwise, we will try to start it in a brand new process. BUG=728030 Review-Url: https://codereview.chromium.org/2925623004 Cr-Commit-Position: refs/heads/master@{#477493} Committed: https://chromium.googlesource.com/chromium/src/+/47dc328bb08ac9c66848eeaf68fc8e96a39975cb

Patch Set 1 #

Total comments: 2

Patch Set 2 : Addressed comments #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+109 lines, -3 lines) Patch
M content/browser/service_worker/service_worker_process_manager.h View 1 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_process_manager.cc View 1 1 chunk +7 lines, -3 lines 1 comment Download
M content/browser/service_worker/service_worker_process_manager_unittest.cc View 1 4 chunks +98 lines, -0 lines 3 comments Download

Messages

Total messages: 24 (14 generated)
clamy
@horo, falken: PTAL. This follows horo's suggestion in the bug.
3 years, 6 months ago (2017-06-06 12:34:51 UTC) #6
falken
Seems like a good idea. Could we add a unit test in service_worker_process_manager_unittest.cc for this? ...
3 years, 6 months ago (2017-06-06 13:32:43 UTC) #7
clamy
Thanks! I have added some unit tests in the latest patch set. https://codereview.chromium.org/2925623004/diff/1/content/browser/service_worker/service_worker_process_manager.cc File content/browser/service_worker/service_worker_process_manager.cc ...
3 years, 6 months ago (2017-06-06 16:37:39 UTC) #11
falken
thanks for the test, lgtm https://codereview.chromium.org/2925623004/diff/20001/content/browser/service_worker/service_worker_process_manager.cc File content/browser/service_worker/service_worker_process_manager.cc (right): https://codereview.chromium.org/2925623004/diff/20001/content/browser/service_worker/service_worker_process_manager.cc#newcode226 content/browser/service_worker/service_worker_process_manager.cc:226: SiteInstanceImpl::CreateForURL(browser_context_, script_url); does it ...
3 years, 6 months ago (2017-06-07 00:12:22 UTC) #15
horo
lgtm
3 years, 6 months ago (2017-06-07 00:20:57 UTC) #16
jam
On 2017/06/07 00:12:22, falken wrote: > thanks for the test, lgtm > > https://codereview.chromium.org/2925623004/diff/20001/content/browser/service_worker/service_worker_process_manager.cc > ...
3 years, 6 months ago (2017-06-07 00:48:48 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/2925623004/20001
3 years, 6 months ago (2017-06-07 00:48:52 UTC) #19
jam
On 2017/06/07 00:12:22, falken wrote: > thanks for the test, lgtm > > https://codereview.chromium.org/2925623004/diff/20001/content/browser/service_worker/service_worker_process_manager.cc > ...
3 years, 6 months ago (2017-06-07 00:49:21 UTC) #20
commit-bot: I haz the power
Committed patchset #2 (id:20001) as https://chromium.googlesource.com/chromium/src/+/47dc328bb08ac9c66848eeaf68fc8e96a39975cb
3 years, 6 months ago (2017-06-07 00:53:56 UTC) #23
falken
3 years, 6 months ago (2017-06-07 04:49:51 UTC) #24
Message was sent while issue was closed.
On 2017/06/07 00:49:21, jam wrote:
> Since these are nits, I've hit CQ button so that this can make it in today's
> canary to see if it fixes the problem. The nits can be done in a followup,
> thanks.

Sure, created https://chromium-review.googlesource.com/c/526893/

Powered by Google App Engine
This is Rietveld 408576698