Make DedicatedWorkerHost inherit BackForwardCacheHostControllerHost [chromium/src : main]

0 views
Skip to first unread message

Hajime Hoshi (Gerrit)

unread,
Oct 20, 2021, 10:51:27 PM10/20/21
to Daniel Cheng, Alexander Timin, Hiroki Nakagawa, blink-re...@chromium.org, blink-...@chromium.org, blink-work...@chromium.org, horo+...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, kinuko...@chromium.org, shimazu...@chromium.org

Attention is currently required from: Daniel Cheng, Alexander Timin, Hiroki Nakagawa.

Hajime Hoshi would like Daniel Cheng, Alexander Timin and Hiroki Nakagawa to review this change.

View Change

Make DedicatedWorkerHost inherit BackForwardCacheHostControllerHost

This is a preparation to notify feature usages and/or evict the frame
from dedicated workers.

This CL also passes a BackForwardCacheHostControllerHost to a renderer,
but the renderer doesn't call any functions of the host yet. I will
update this in later CLs.

Design Doc: https://docs.google.com/document/d/1CJfDNqA2tEp_dmxK5kaBHHqGjx7cK2_jhTpsCwSCa3A/edit?usp=sharing

Bug: 1146955
Change-Id: Ieea9c9013e52b7e0ffb8d9b4386903dd32fe82bb
---
M content/browser/worker_host/dedicated_worker_service_impl_unittest.cc
M content/renderer/worker/dedicated_worker_host_factory_client.h
M third_party/blink/renderer/core/workers/dedicated_worker_messaging_proxy.cc
M third_party/blink/renderer/core/workers/dedicated_worker_thread.cc
M third_party/blink/renderer/core/workers/dedicated_worker.h
M third_party/blink/renderer/core/workers/dedicated_worker_global_scope.h
M content/browser/worker_host/dedicated_worker_host.cc
M third_party/blink/renderer/core/workers/dedicated_worker_messaging_proxy.h
M content/renderer/worker/dedicated_worker_host_factory_client.cc
M third_party/blink/renderer/core/workers/dedicated_worker_test.cc
M third_party/blink/public/mojom/worker/dedicated_worker_host_factory.mojom
M third_party/blink/public/platform/web_dedicated_worker.h
M content/browser/worker_host/dedicated_worker_host.h
M third_party/blink/renderer/core/workers/dedicated_worker.cc
M third_party/blink/renderer/core/workers/dedicated_worker_thread.h
M third_party/blink/renderer/core/workers/dedicated_worker_global_scope.cc
16 files changed, 168 insertions(+), 38 deletions(-)


To view, visit change 3220891. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Ieea9c9013e52b7e0ffb8d9b4386903dd32fe82bb
Gerrit-Change-Number: 3220891
Gerrit-PatchSet: 12
Gerrit-Owner: Hajime Hoshi <hajim...@chromium.org>
Gerrit-Reviewer: Alexander Timin <alt...@chromium.org>
Gerrit-Reviewer: Daniel Cheng <dch...@chromium.org>
Gerrit-Reviewer: Hajime Hoshi <hajim...@chromium.org>
Gerrit-Reviewer: Hiroki Nakagawa <nhi...@chromium.org>
Gerrit-Attention: Daniel Cheng <dch...@chromium.org>
Gerrit-Attention: Alexander Timin <alt...@chromium.org>
Gerrit-Attention: Hiroki Nakagawa <nhi...@chromium.org>
Gerrit-MessageType: newchange

Hajime Hoshi (Gerrit)

unread,
Oct 20, 2021, 10:51:33 PM10/20/21
to blink-re...@chromium.org, blink-...@chromium.org, blink-work...@chromium.org, horo+...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, kinuko...@chromium.org, shimazu...@chromium.org, Daniel Cheng, Alexander Timin, Hiroki Nakagawa, Chromium LUCI CQ, chromium...@chromium.org

Attention is currently required from: Daniel Cheng, Alexander Timin, Hiroki Nakagawa.

Patch set 12:Auto-Submit +1Commit-Queue +1

View Change

1 comment:

To view, visit change 3220891. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Ieea9c9013e52b7e0ffb8d9b4386903dd32fe82bb
Gerrit-Change-Number: 3220891
Gerrit-PatchSet: 12
Gerrit-Owner: Hajime Hoshi <hajim...@chromium.org>
Gerrit-Reviewer: Alexander Timin <alt...@chromium.org>
Gerrit-Reviewer: Daniel Cheng <dch...@chromium.org>
Gerrit-Reviewer: Hajime Hoshi <hajim...@chromium.org>
Gerrit-Reviewer: Hiroki Nakagawa <nhi...@chromium.org>
Gerrit-Attention: Daniel Cheng <dch...@chromium.org>
Gerrit-Attention: Alexander Timin <alt...@chromium.org>
Gerrit-Attention: Hiroki Nakagawa <nhi...@chromium.org>
Gerrit-Comment-Date: Thu, 21 Oct 2021 02:51:22 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment

Hiroki Nakagawa (Gerrit)

unread,
Oct 21, 2021, 8:26:59 AM10/21/21
to Hajime Hoshi, blink-re...@chromium.org, blink-...@chromium.org, blink-work...@chromium.org, horo+...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, kinuko...@chromium.org, shimazu...@chromium.org, Daniel Cheng, Alexander Timin, Chromium LUCI CQ, chromium...@chromium.org

Attention is currently required from: Daniel Cheng, Hajime Hoshi, Alexander Timin.

Patch set 14:Code-Review +1

View Change

4 comments:

  • Patchset:

  • File content/renderer/worker/dedicated_worker_host_factory_client.cc:

    • Patch Set #14, Line 18: #include "third_party/blink/public/mojom/frame/back_forward_cache_controller.mojom.h"

      This is already included in the header.

  • File third_party/blink/public/mojom/worker/dedicated_worker_host_factory.mojom:

    • Patch Set #14, Line 67: pending_remote<BackForwardCacheControllerHost> back_forward_cache_controller_host);

      Can you wrap these lines at the 80th char?

  • File third_party/blink/renderer/core/workers/dedicated_worker_messaging_proxy.cc:

To view, visit change 3220891. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Ieea9c9013e52b7e0ffb8d9b4386903dd32fe82bb
Gerrit-Change-Number: 3220891
Gerrit-PatchSet: 14
Gerrit-Owner: Hajime Hoshi <hajim...@chromium.org>
Gerrit-Reviewer: Alexander Timin <alt...@chromium.org>
Gerrit-Reviewer: Daniel Cheng <dch...@chromium.org>
Gerrit-Reviewer: Hajime Hoshi <hajim...@chromium.org>
Gerrit-Reviewer: Hiroki Nakagawa <nhi...@chromium.org>
Gerrit-Attention: Daniel Cheng <dch...@chromium.org>
Gerrit-Attention: Hajime Hoshi <hajim...@chromium.org>
Gerrit-Attention: Alexander Timin <alt...@chromium.org>
Gerrit-Comment-Date: Thu, 21 Oct 2021 12:26:49 +0000

Hajime Hoshi (Gerrit)

unread,
Oct 24, 2021, 10:47:02 PM10/24/21
to blink-re...@chromium.org, blink-...@chromium.org, blink-work...@chromium.org, horo+...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, kinuko...@chromium.org, shimazu...@chromium.org, Hiroki Nakagawa, Daniel Cheng, Alexander Timin, Chromium LUCI CQ, chromium...@chromium.org

Attention is currently required from: Daniel Cheng, Alexander Timin.

Patch set 14:Auto-Submit +1

View Change

4 comments:

  • Patchset:

  • File content/renderer/worker/dedicated_worker_host_factory_client.cc:

    • Patch Set #14, Line 18: #include "third_party/blink/public/mojom/frame/back_forward_cache_controller.mojom.h"

      This is already included in the header.

    • Done

  • File third_party/blink/public/mojom/worker/dedicated_worker_host_factory.mojom:

    • Patch Set #14, Line 67: pending_remote<BackForwardCacheControllerHost> back_forward_cache_controller_host);

      Can you wrap these lines at the 80th char?

    • Done

  • File third_party/blink/renderer/core/workers/dedicated_worker_messaging_proxy.cc:

    • "These must be stored before InitializeWorkerThread. […]

      Done

To view, visit change 3220891. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Ieea9c9013e52b7e0ffb8d9b4386903dd32fe82bb
Gerrit-Change-Number: 3220891
Gerrit-PatchSet: 14
Gerrit-Owner: Hajime Hoshi <hajim...@chromium.org>
Gerrit-Reviewer: Alexander Timin <alt...@chromium.org>
Gerrit-Reviewer: Daniel Cheng <dch...@chromium.org>
Gerrit-Reviewer: Hajime Hoshi <hajim...@chromium.org>
Gerrit-Reviewer: Hiroki Nakagawa <nhi...@chromium.org>
Gerrit-Attention: Daniel Cheng <dch...@chromium.org>
Gerrit-Attention: Alexander Timin <alt...@chromium.org>
Gerrit-Comment-Date: Mon, 25 Oct 2021 02:46:53 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Comment-In-Reply-To: Hiroki Nakagawa <nhi...@chromium.org>
Gerrit-MessageType: comment

Daniel Cheng (Gerrit)

unread,
Oct 25, 2021, 8:15:06 PM10/25/21
to Hajime Hoshi, blink-re...@chromium.org, blink-...@chromium.org, blink-work...@chromium.org, horo+...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, kinuko...@chromium.org, shimazu...@chromium.org, Hiroki Nakagawa, Daniel Cheng, Alexander Timin, Chromium LUCI CQ, chromium...@chromium.org

Attention is currently required from: Hajime Hoshi, Alexander Timin.

View Change

2 comments:

  • File content/browser/worker_host/dedicated_worker_host.cc:

    • Patch Set #15, Line 807: // The frame may have already been closed.

      Does this imply that the dedicated worker host will go away "soon" too?

    • Patch Set #15, Line 818: // The frame may have already been closed.

      Similar question here. Does a DedicatedWorkerHost observe the lifetime of the RFH in any way?

To view, visit change 3220891. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Ieea9c9013e52b7e0ffb8d9b4386903dd32fe82bb
Gerrit-Change-Number: 3220891
Gerrit-PatchSet: 15
Gerrit-Owner: Hajime Hoshi <hajim...@chromium.org>
Gerrit-Reviewer: Alexander Timin <alt...@chromium.org>
Gerrit-Reviewer: Daniel Cheng <dch...@chromium.org>
Gerrit-Reviewer: Hajime Hoshi <hajim...@chromium.org>
Gerrit-Reviewer: Hiroki Nakagawa <nhi...@chromium.org>
Gerrit-Attention: Hajime Hoshi <hajim...@chromium.org>
Gerrit-Attention: Alexander Timin <alt...@chromium.org>
Gerrit-Comment-Date: Tue, 26 Oct 2021 00:14:54 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment

Hajime Hoshi (Gerrit)

unread,
Oct 25, 2021, 11:41:54 PM10/25/21
to blink-re...@chromium.org, blink-...@chromium.org, blink-work...@chromium.org, horo+...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, kinuko...@chromium.org, shimazu...@chromium.org, Hiroki Nakagawa, Daniel Cheng, Alexander Timin, Chromium LUCI CQ, chromium...@chromium.org

Attention is currently required from: Daniel Cheng, Alexander Timin.

View Change

2 comments:

  • File content/browser/worker_host/dedicated_worker_host.cc:

    • Patch Set #15, Line 807: // The frame may have already been closed.

      Does this imply that the dedicated worker host will go away "soon" too?

    • Similar question here. […]

      ditto

To view, visit change 3220891. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Ieea9c9013e52b7e0ffb8d9b4386903dd32fe82bb
Gerrit-Change-Number: 3220891
Gerrit-PatchSet: 15
Gerrit-Owner: Hajime Hoshi <hajim...@chromium.org>
Gerrit-Reviewer: Alexander Timin <alt...@chromium.org>
Gerrit-Reviewer: Daniel Cheng <dch...@chromium.org>
Gerrit-Reviewer: Hajime Hoshi <hajim...@chromium.org>
Gerrit-Reviewer: Hiroki Nakagawa <nhi...@chromium.org>
Gerrit-Attention: Daniel Cheng <dch...@chromium.org>
Gerrit-Attention: Alexander Timin <alt...@chromium.org>
Gerrit-Comment-Date: Tue, 26 Oct 2021 03:41:43 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Daniel Cheng <dch...@chromium.org>
Gerrit-MessageType: comment

Daniel Cheng (Gerrit)

unread,
Oct 26, 2021, 1:26:28 AM10/26/21
to Hajime Hoshi, blink-re...@chromium.org, blink-...@chromium.org, blink-work...@chromium.org, horo+...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, kinuko...@chromium.org, shimazu...@chromium.org, Daniel Cheng, Hiroki Nakagawa, Alexander Timin, Chromium LUCI CQ, chromium...@chromium.org

Attention is currently required from: Hajime Hoshi, Alexander Timin.

Patch set 15:Code-Review +1

View Change

1 comment:

To view, visit change 3220891. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Ieea9c9013e52b7e0ffb8d9b4386903dd32fe82bb
Gerrit-Change-Number: 3220891
Gerrit-PatchSet: 15
Gerrit-Owner: Hajime Hoshi <hajim...@chromium.org>
Gerrit-Reviewer: Alexander Timin <alt...@chromium.org>
Gerrit-Reviewer: Daniel Cheng <dch...@chromium.org>
Gerrit-Reviewer: Hajime Hoshi <hajim...@chromium.org>
Gerrit-Reviewer: Hiroki Nakagawa <nhi...@chromium.org>
Gerrit-Attention: Hajime Hoshi <hajim...@chromium.org>
Gerrit-Attention: Alexander Timin <alt...@chromium.org>
Gerrit-Comment-Date: Tue, 26 Oct 2021 05:26:18 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment

Hajime Hoshi (Gerrit)

unread,
Oct 26, 2021, 2:23:23 AM10/26/21
to blink-re...@chromium.org, blink-...@chromium.org, blink-work...@chromium.org, horo+...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, kinuko...@chromium.org, shimazu...@chromium.org, Daniel Cheng, Hiroki Nakagawa, Alexander Timin, Chromium LUCI CQ, chromium...@chromium.org

Attention is currently required from: Alexander Timin.

View Change

1 comment:

  • Patchset:

    • Patch Set #15:

      This CL adds a new argument back_forward_cache_controller_host to DedicatedWorkerHostFactoryClient::OnScriptLoaded, but I started to think that we should add this to OnWorkerHostCreated instead, as a worker thread is created. There are some cases that OnScriptLoaded is not invoked (e.g., DedicatedWorker::OnHostCreated is invoked with type module), but I'm not 100% sure.

      nhiroki@, what do you think?

To view, visit change 3220891. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Ieea9c9013e52b7e0ffb8d9b4386903dd32fe82bb
Gerrit-Change-Number: 3220891
Gerrit-PatchSet: 15
Gerrit-Owner: Hajime Hoshi <hajim...@chromium.org>
Gerrit-Reviewer: Alexander Timin <alt...@chromium.org>
Gerrit-Reviewer: Daniel Cheng <dch...@chromium.org>
Gerrit-Reviewer: Hajime Hoshi <hajim...@chromium.org>
Gerrit-Reviewer: Hiroki Nakagawa <nhi...@chromium.org>
Gerrit-Attention: Alexander Timin <alt...@chromium.org>
Gerrit-Comment-Date: Tue, 26 Oct 2021 06:23:13 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment

Hajime Hoshi (Gerrit)

unread,
Oct 26, 2021, 3:51:12 AM10/26/21
to blink-re...@chromium.org, blink-...@chromium.org, blink-work...@chromium.org, horo+...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, kinuko...@chromium.org, shimazu...@chromium.org, Daniel Cheng, Hiroki Nakagawa, Alexander Timin, Chromium LUCI CQ, chromium...@chromium.org

Attention is currently required from: Alexander Timin.

Patch set 15:Commit-Queue +2

View Change

1 comment:

To view, visit change 3220891. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Ieea9c9013e52b7e0ffb8d9b4386903dd32fe82bb
Gerrit-Change-Number: 3220891
Gerrit-PatchSet: 15
Gerrit-Owner: Hajime Hoshi <hajim...@chromium.org>
Gerrit-Reviewer: Alexander Timin <alt...@chromium.org>
Gerrit-Reviewer: Daniel Cheng <dch...@chromium.org>
Gerrit-Reviewer: Hajime Hoshi <hajim...@chromium.org>
Gerrit-Reviewer: Hiroki Nakagawa <nhi...@chromium.org>
Gerrit-Attention: Alexander Timin <alt...@chromium.org>
Gerrit-Comment-Date: Tue, 26 Oct 2021 07:51:00 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Comment-In-Reply-To: Hajime Hoshi <hajim...@chromium.org>
Gerrit-MessageType: comment

Chromium LUCI CQ (Gerrit)

unread,
Oct 26, 2021, 4:57:20 AM10/26/21
to Hajime Hoshi, blink-re...@chromium.org, blink-...@chromium.org, blink-work...@chromium.org, horo+...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, kinuko...@chromium.org, shimazu...@chromium.org, Daniel Cheng, Hiroki Nakagawa, Alexander Timin, chromium...@chromium.org

Chromium LUCI CQ submitted this change.

View Change


Approvals: Daniel Cheng: Looks good to me Hiroki Nakagawa: Looks good to me Hajime Hoshi: Commit; Send CL to CQ automatically after approval
Make DedicatedWorkerHost inherit BackForwardCacheHostControllerHost

This is a preparation to notify feature usages and/or evict the frame
from dedicated workers.

This CL also passes a BackForwardCacheHostControllerHost to a renderer,
but the renderer doesn't call any functions of the host yet. I will
update this in later CLs.

Design Doc: https://docs.google.com/document/d/1CJfDNqA2tEp_dmxK5kaBHHqGjx7cK2_jhTpsCwSCa3A/edit?usp=sharing

Bug: 1146955
Change-Id: Ieea9c9013e52b7e0ffb8d9b4386903dd32fe82bb
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3220891
Auto-Submit: Hajime Hoshi <hajim...@chromium.org>
Reviewed-by: Daniel Cheng <dch...@chromium.org>
Reviewed-by: Hiroki Nakagawa <nhi...@chromium.org>
Commit-Queue: Hajime Hoshi <hajim...@chromium.org>
Cr-Commit-Position: refs/heads/main@{#934878}

---
M content/browser/worker_host/dedicated_worker_service_impl_unittest.cc
M content/renderer/worker/dedicated_worker_host_factory_client.h
M third_party/blink/renderer/core/workers/dedicated_worker_messaging_proxy.cc
M third_party/blink/renderer/core/workers/dedicated_worker_thread.cc
M third_party/blink/renderer/core/workers/dedicated_worker.h
M third_party/blink/renderer/core/workers/dedicated_worker_global_scope.h
M content/browser/worker_host/dedicated_worker_host.cc
M third_party/blink/renderer/core/workers/dedicated_worker_messaging_proxy.h
M content/renderer/worker/dedicated_worker_host_factory_client.cc
M third_party/blink/renderer/core/workers/dedicated_worker_test.cc
M third_party/blink/public/mojom/worker/dedicated_worker_host_factory.mojom
M third_party/blink/public/platform/web_dedicated_worker.h
M content/browser/worker_host/dedicated_worker_host.h
M third_party/blink/renderer/core/workers/dedicated_worker.cc
M third_party/blink/renderer/core/workers/dedicated_worker_thread.h
M third_party/blink/renderer/core/workers/dedicated_worker_global_scope.cc
16 files changed, 177 insertions(+), 39 deletions(-)


To view, visit change 3220891. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Ieea9c9013e52b7e0ffb8d9b4386903dd32fe82bb
Gerrit-Change-Number: 3220891
Gerrit-PatchSet: 16
Gerrit-Owner: Hajime Hoshi <hajim...@chromium.org>
Gerrit-Reviewer: Alexander Timin <alt...@chromium.org>
Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
Gerrit-Reviewer: Daniel Cheng <dch...@chromium.org>
Gerrit-Reviewer: Hajime Hoshi <hajim...@chromium.org>
Gerrit-Reviewer: Hiroki Nakagawa <nhi...@chromium.org>
Gerrit-MessageType: merged

Fergal Daly (Gerrit)

unread,
Oct 28, 2021, 2:40:59 AM10/28/21
to blink-re...@chromium.org, blink-...@chromium.org, blink-work...@chromium.org, horo+...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, kinuko...@chromium.org, shimazu...@chromium.org, Riho Isawa, Yuzu Saijo, Hajime Hoshi, Chromium LUCI CQ, Daniel Cheng, Hiroki Nakagawa, Alexander Timin, Fergal Daly

Attention is currently required from: Hajime Hoshi.

Hajime Hoshi has uploaded this change for review.

View Change

Gerrit-CC: Fergal Daly <fer...@chromium.org>
Gerrit-CC: Riho Isawa <rhi...@google.com>
Gerrit-CC: Yuzu Saijo <yu...@chromium.org>
Gerrit-Attention: Hajime Hoshi <hajim...@chromium.org>
Gerrit-MessageType: newchange

Fergal Daly (Gerrit)

unread,
Oct 28, 2021, 2:41:05 AM10/28/21
to Hajime Hoshi, Chromium LUCI CQ, blink-re...@chromium.org, blink-...@chromium.org, blink-work...@chromium.org, horo+...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, kinuko...@chromium.org, shimazu...@chromium.org, Yuzu Saijo, Riho Isawa, Fergal Daly, Daniel Cheng, Hiroki Nakagawa, Alexander Timin, chromium...@chromium.org

Attention is currently required from: Hajime Hoshi.

View Change

2 comments:

  • File content/browser/worker_host/dedicated_worker_host.cc:

    • Patch Set #16, Line 821: ancestor_render_frame_host->DidChangeBackForwardCacheDisablingFeatures(

      Very late but this is going to just overwrite the frame's existing reasons (or if the frame changes its reasons later, it will overwrite this).

      Also, if the DW is destroyed, its reasons are no longer relevant.

      We need the DWHost to store its own reasons. I think we should factor out a class/struct with

        BackForwardCacheDisablingFeatures
      renderer_reported_bfcache_disabling_features_;
        // Count the usage of BackForwardCacheDisablingFeature.
      base::flat_map<BackForwardCacheDisablingFeature, int>
      browser_reported_bfcache_disabling_features_counts_;

      and related code and include it in RFH and DWH and iterate over them all when we are trying to decide if we can cache or not.

      We will also want this later because we would like to display each frame's and reasons separately and it makes sense to display each worker's reasons separately too.

    • Patch Set #16, Line 821: ancestor_render_frame_host->DidChangeBackForwardCacheDisablingFeatures(

      Very late but this is going to just overwrite the frame's existing reasons (or if the frame changes its reasons later, it will overwrite this).

      Also, if the DW is destroyed, its reasons are no longer relevant.

      We need the DWHost to store its own reasons. I think we should factor out a class/struct with

        BackForwardCacheDisablingFeatures
      renderer_reported_bfcache_disabling_features_;
        // Count the usage of BackForwardCacheDisablingFeature.
      base::flat_map<BackForwardCacheDisablingFeature, int>
      browser_reported_bfcache_disabling_features_counts_;

      and related code and include it in RFH and DWH and iterate over them all when we are trying to decide if we can cache or not.

      We will also want this later because we would like to display each frame's and reasons separately and it makes sense to display each worker's reasons separately too.

To view, visit change 3220891. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Ieea9c9013e52b7e0ffb8d9b4386903dd32fe82bb
Gerrit-Change-Number: 3220891
Gerrit-PatchSet: 16
Gerrit-Owner: Hajime Hoshi <hajim...@chromium.org>
Gerrit-Reviewer: Alexander Timin <alt...@chromium.org>
Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
Gerrit-Reviewer: Daniel Cheng <dch...@chromium.org>
Gerrit-Reviewer: Hajime Hoshi <hajim...@chromium.org>
Gerrit-Reviewer: Hiroki Nakagawa <nhi...@chromium.org>
Gerrit-CC: Fergal Daly <fer...@chromium.org>
Gerrit-CC: Riho Isawa <rhi...@google.com>
Gerrit-CC: Yuzu Saijo <yu...@chromium.org>
Gerrit-Attention: Hajime Hoshi <hajim...@chromium.org>
Gerrit-Comment-Date: Thu, 28 Oct 2021 06:40:53 +0000

Hajime Hoshi (Gerrit)

unread,
Oct 28, 2021, 3:45:52 AM10/28/21
to Chromium LUCI CQ, blink-re...@chromium.org, blink-...@chromium.org, blink-work...@chromium.org, horo+...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, kinuko...@chromium.org, shimazu...@chromium.org, Yuzu Saijo, Riho Isawa, Fergal Daly, Daniel Cheng, Hiroki Nakagawa, Alexander Timin, chromium...@chromium.org

View Change

1 comment:

  • File content/browser/worker_host/dedicated_worker_host.cc:

    • Very late but this is going to just overwrite the frame's existing reasons (or if the frame changes […]

      Yeah that's a good point... I'll take care of them in another CL. Thanks,

To view, visit change 3220891. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Ieea9c9013e52b7e0ffb8d9b4386903dd32fe82bb
Gerrit-Change-Number: 3220891
Gerrit-PatchSet: 16
Gerrit-Owner: Hajime Hoshi <hajim...@chromium.org>
Gerrit-Reviewer: Alexander Timin <alt...@chromium.org>
Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
Gerrit-Reviewer: Daniel Cheng <dch...@chromium.org>
Gerrit-Reviewer: Hajime Hoshi <hajim...@chromium.org>
Gerrit-Reviewer: Hiroki Nakagawa <nhi...@chromium.org>
Gerrit-CC: Fergal Daly <fer...@chromium.org>
Gerrit-CC: Riho Isawa <rhi...@google.com>
Gerrit-CC: Yuzu Saijo <yu...@chromium.org>
Gerrit-Comment-Date: Thu, 28 Oct 2021 07:45:38 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Fergal Daly <fer...@chromium.org>
Gerrit-MessageType: comment
Reply all
Reply to author
Forward
0 new messages