CL 8313708: Throttle burst Dedicated Worker creation [chromium/src : main]

0 views
Skip to first unread message

Hiroshige Hayashizaki (Gerrit)

unread,
Nov 9, 2026, 2:17:10 PMNov 9
to Kyouhei Horizumi, Daniel Cheng, Chromium LUCI CQ, Kentaro Hara, Nate Chapin, Kouhei Ueno, android-bu...@system.gserviceaccount.com, chromium...@chromium.org, blink-re...@chromium.org, blink-...@chromium.org, blink-work...@chromium.org, horo+...@chromium.org, kinuko...@chromium.org, kinuko...@chromium.org, shimazu...@chromium.org
Attention needed from Daniel Cheng, Kentaro Hara, Kouhei Ueno and Kyouhei Horizumi

Hiroshige Hayashizaki added 1 comment on change 8313708

Patchset-level comments
File-level comment, Patchset 12 (Latest):
Hiroshige Hayashizaki . resolved

+dcheng@ as another third_party/blink/tools/blinkpy/presubmit/audit_non_blink_usage.py OWNER.

Open in Gerrit

Related details

Attention is currently required from:
  • Daniel Cheng
  • Kentaro Hara
  • Kouhei Ueno
  • Kyouhei Horizumi
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I559d06ba1cf387d0d80bc9e48311ebc613c95241
Gerrit-Change-Number: 8313708
Gerrit-PatchSet: 12
Gerrit-Owner: Kyouhei Horizumi <kyouhei....@gmail.com>
Gerrit-Reviewer: Daniel Cheng <dch...@chromium.org>
Gerrit-Reviewer: Hiroshige Hayashizaki <hiro...@chromium.org>
Gerrit-Reviewer: Kentaro Hara <har...@chromium.org>
Gerrit-Reviewer: Kouhei Ueno <kou...@chromium.org>
Gerrit-Reviewer: Kyouhei Horizumi <kyouhei....@gmail.com>
Gerrit-Reviewer: Nate Chapin <jap...@chromium.org>
Gerrit-Attention: Kouhei Ueno <kou...@chromium.org>
Gerrit-Attention: Kyouhei Horizumi <kyouhei....@gmail.com>
Gerrit-Attention: Kentaro Hara <har...@chromium.org>
Gerrit-Attention: Daniel Cheng <dch...@chromium.org>
Gerrit-Comment-Date: Mon, 09 Nov 2026 19:16:34 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Kyouhei Horizumi (Gerrit)

unread,
Nov 9, 2026, 6:37:19 PMNov 9
to Daniel Cheng, Chromium LUCI CQ, Hiroshige Hayashizaki, Kentaro Hara, Nate Chapin, Kouhei Ueno, android-bu...@system.gserviceaccount.com, chromium...@chromium.org, blink-re...@chromium.org, blink-...@chromium.org, blink-work...@chromium.org, horo+...@chromium.org, kinuko...@chromium.org, kinuko...@chromium.org, shimazu...@chromium.org
Attention needed from Daniel Cheng, Kentaro Hara and Kouhei Ueno

Kyouhei Horizumi added 2 comments on change 8313708

Patchset-level comments
Hiroshige Hayashizaki . resolved

Some tests are failing on bots because the failing tests creates 100 workers
third_party/blink/web_tests/external/wpt/hr-time/resources/clamped-time-origin.js
and this CL throttles them.

It's nice it means the throttling is working -- maybe tweaking the throttling limit to e.g. 128 (or adjust the test to create e.g. 50 workers, while I haven't checked for the context for "100" workers -- just random number, or should be sufficient large to deflake?) might fix the failure.

Kyouhei Horizumi

I'll first try increasing the limit to 128 and check whether it still effectively blocks the attack using my tech support scam PoC.

Kyouhei Horizumi

I confirmed locally that the affected WPT tests TIMEOUT with a limit of 64, but PASS with 128.

I also tested my tech support scam PoC in a Debug build with the limit set to 128.

When triggered from `beforeunload`, navigating back or closing the tab still works, with only about 0.5s of additional delay compared to 64.

However, in other scenarios such as reloading, the hung renderer dialog appears, but terminating the page takes significantly longer. Some example measurements:

  • 64 / 5s: ~8s
  • 128 / 5s: ~20s
  • 128 / 10s: ~7s

(These are only example measurements from a Debug build, so I'm not sure how much this affects Release builds. The termination time can also increase significantly if the dialog is left open, as noted below.)

@hiro...@chromium.org I think increasing the limit to 128 makes sense for WPT compatibility, but perhaps we should also extend the time window from 5s to 10s to reduce the load. What do you think?

---

**Separately, one additional observation:**

Even while the hung renderer dialog is displayed, the page can continue creating Workers until the user clicks a button.

I observed that leaving the dialog open for about 5 minutes eventually makes the entire browser severely unresponsive.

This might be related to the lack of an overall limit on the number of active Workers, though I haven't confirmed the cause.

I can't think of a practical way to exploit this at the moment, and it's outside the scope of this CL, but it may be worth filing a separate issue to document the behavior.

Hiroshige Hayashizaki

OK, let's keep the current limit of this CL and instead adjust the WPT (e.g. 100 -> 50, in a separate CL).

Kyouhei Horizumi

Sounds good! For now, I've confirmed that the WPT passes locally after reducing the number of Workers from 100 to 50.

Kyouhei Horizumi

I've created a separate CL for the WPT tests:
https://chromium-review.googlesource.com/c/chromium/src/+/8714620

Kyouhei Horizumi

Done

Kyouhei Horizumi . resolved

@jap...@chromium.org Hi Nate, would you mind taking another look at the latest patchset? I've updated the CL to address Hiroshige's review comments (changes since patchset 5).

Kyouhei Horizumi

@jap...@chromium.org Hi Nate, Hiroshige is back and has assigned another reviewer, so no need to take another look. Thanks anyway!

Open in Gerrit

Related details

Attention is currently required from:
  • Daniel Cheng
  • Kentaro Hara
  • Kouhei Ueno
Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedReview-Enforcement
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I559d06ba1cf387d0d80bc9e48311ebc613c95241
    Gerrit-Change-Number: 8313708
    Gerrit-PatchSet: 12
    Gerrit-Owner: Kyouhei Horizumi <kyouhei....@gmail.com>
    Gerrit-Reviewer: Daniel Cheng <dch...@chromium.org>
    Gerrit-Reviewer: Hiroshige Hayashizaki <hiro...@chromium.org>
    Gerrit-Reviewer: Kentaro Hara <har...@chromium.org>
    Gerrit-Reviewer: Kouhei Ueno <kou...@chromium.org>
    Gerrit-Reviewer: Kyouhei Horizumi <kyouhei....@gmail.com>
    Gerrit-Reviewer: Nate Chapin <jap...@chromium.org>
    Gerrit-Attention: Kouhei Ueno <kou...@chromium.org>
    Gerrit-Attention: Kentaro Hara <har...@chromium.org>
    Gerrit-Attention: Daniel Cheng <dch...@chromium.org>
    Gerrit-Comment-Date: Mon, 09 Nov 2026 23:36:45 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Hiroshige Hayashizaki <hiro...@chromium.org>
    Comment-In-Reply-To: Kyouhei Horizumi <kyouhei....@gmail.com>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Daniel Cheng (Gerrit)

    unread,
    Nov 9, 2026, 9:55:51 PMNov 9
    to Kyouhei Horizumi, Daniel Cheng, Chromium LUCI CQ, Hiroshige Hayashizaki, Kentaro Hara, Nate Chapin, Kouhei Ueno, android-bu...@system.gserviceaccount.com, chromium...@chromium.org, blink-re...@chromium.org, blink-...@chromium.org, blink-work...@chromium.org, horo+...@chromium.org, kinuko...@chromium.org, kinuko...@chromium.org, shimazu...@chromium.org
    Attention needed from Kentaro Hara, Kouhei Ueno and Kyouhei Horizumi

    Daniel Cheng added 4 comments on change 8313708

    Patchset-level comments
    Daniel Cheng . unresolved

    How much do we really need to protect against this? There many other ways to DoS the browser process. This is a fair amount of complexity for something that only offers fairly limited protection in the end.

    File third_party/blink/renderer/core/workers/dedicated_worker.cc
    Line 84, Patchset 12 (Latest): int count = 0;
    Daniel Cheng . unresolved

    Making this the second field will reduce the amount of padding in the struct overall.

    Line 91, Patchset 12 (Latest):using WorkerCreationBursts = base::flat_map<url::Origin, WorkerCreationBurst>;
    Daniel Cheng . unresolved

    Blink maps should be using blink::HashMap.

    Line 135, Patchset 12 (Latest): DEFINE_THREAD_SAFE_STATIC_LOCAL(WorkerCreationBursts, bursts, ());
    Daniel Cheng . unresolved

    This should use GUARDED_BY() if we keep it.

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Kentaro Hara
    • Kouhei Ueno
    • Kyouhei Horizumi
    Submit Requirements:
      • requirement satisfiedCode-Coverage
      • requirement is not satisfiedCode-Owners
      • requirement is not satisfiedCode-Review
      • requirement is not satisfiedNo-Unresolved-Comments
      • requirement is not satisfiedReview-Enforcement
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: comment
      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: I559d06ba1cf387d0d80bc9e48311ebc613c95241
      Gerrit-Change-Number: 8313708
      Gerrit-PatchSet: 12
      Gerrit-Owner: Kyouhei Horizumi <kyouhei....@gmail.com>
      Gerrit-Reviewer: Daniel Cheng <dch...@chromium.org>
      Gerrit-Reviewer: Hiroshige Hayashizaki <hiro...@chromium.org>
      Gerrit-Reviewer: Kentaro Hara <har...@chromium.org>
      Gerrit-Reviewer: Kouhei Ueno <kou...@chromium.org>
      Gerrit-Reviewer: Kyouhei Horizumi <kyouhei....@gmail.com>
      Gerrit-Reviewer: Nate Chapin <jap...@chromium.org>
      Gerrit-Attention: Kouhei Ueno <kou...@chromium.org>
      Gerrit-Attention: Kyouhei Horizumi <kyouhei....@gmail.com>
      Gerrit-Attention: Kentaro Hara <har...@chromium.org>
      Gerrit-Comment-Date: Tue, 10 Nov 2026 02:55:38 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Kyouhei Horizumi (Gerrit)

      unread,
      Nov 9, 2026, 10:39:20 PMNov 9
      to Daniel Cheng, Chromium LUCI CQ, Hiroshige Hayashizaki, Kentaro Hara, Nate Chapin, Kouhei Ueno, android-bu...@system.gserviceaccount.com, chromium...@chromium.org, blink-re...@chromium.org, blink-...@chromium.org, blink-work...@chromium.org, horo+...@chromium.org, kinuko...@chromium.org, kinuko...@chromium.org, shimazu...@chromium.org
      Attention needed from Daniel Cheng, Kentaro Hara and Kouhei Ueno

      Kyouhei Horizumi added 1 comment on change 8313708

      Patchset-level comments
      Daniel Cheng . unresolved

      How much do we really need to protect against this? There many other ways to DoS the browser process. This is a fair amount of complexity for something that only offers fairly limited protection in the end.

      Kyouhei Horizumi

      @dch...@chromium.org Thanks for pointing this out!

      I'd like to clarify what you mean by "fairly limited protection."

      A. Do you mean that, because there are many other ways to DoS the browser process, mitigating only this Worker-based path provides limited protection against the broader problem (including support-scam scenarios), so this may not be worth mitigating individually?

      B. Or do you agree that this particular issue is worth mitigating, but think the current approach is too complex relative to the protection it provides?

      I think the next direction would be quite different depending on which you mean.

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Daniel Cheng
      • Kentaro Hara
      • Kouhei Ueno
      Gerrit-Attention: Kentaro Hara <har...@chromium.org>
      Gerrit-Attention: Daniel Cheng <dch...@chromium.org>
      Gerrit-Comment-Date: Tue, 10 Nov 2026 03:38:47 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      Comment-In-Reply-To: Daniel Cheng <dch...@chromium.org>
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Kyouhei Horizumi (Gerrit)

      unread,
      Nov 14, 2026, 12:52:49 PMNov 14
      to Daniel Cheng, Chromium LUCI CQ, Hiroshige Hayashizaki, Kentaro Hara, Nate Chapin, Kouhei Ueno, android-bu...@system.gserviceaccount.com, chromium...@chromium.org, blink-re...@chromium.org, blink-...@chromium.org, blink-work...@chromium.org, horo+...@chromium.org, kinuko...@chromium.org, kinuko...@chromium.org, shimazu...@chromium.org
      Attention needed from Daniel Cheng, Hiroshige Hayashizaki, Kentaro Hara and Kouhei Ueno

      Kyouhei Horizumi added 3 comments on change 8313708

      File third_party/blink/renderer/core/workers/dedicated_worker.cc
      Line 84, Patchset 12: int count = 0;
      Daniel Cheng . resolved

      Making this the second field will reduce the amount of padding in the struct overall.

      Kyouhei Horizumi

      Done

      Line 91, Patchset 12:using WorkerCreationBursts = base::flat_map<url::Origin, WorkerCreationBurst>;
      Daniel Cheng . resolved

      Blink maps should be using blink::HashMap.

      Kyouhei Horizumi

      Done. Thanks for the suggestion.

      Line 135, Patchset 12: DEFINE_THREAD_SAFE_STATIC_LOCAL(WorkerCreationBursts, bursts, ());
      Daniel Cheng . resolved

      This should use GUARDED_BY() if we keep it.

      Kyouhei Horizumi

      Done.
      I used `AtomicStringTable` as a reference for the locking pattern.

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Daniel Cheng
      • Hiroshige Hayashizaki
      • Kentaro Hara
      • Kouhei Ueno
      Submit Requirements:
      • requirement satisfiedCode-Coverage
      • requirement satisfiedCode-Owners
      • requirement is not satisfiedCode-Review
      • requirement is not satisfiedNo-Unresolved-Comments
      • requirement is not satisfiedReview-Enforcement
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: comment
      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: I559d06ba1cf387d0d80bc9e48311ebc613c95241
      Gerrit-Change-Number: 8313708
      Gerrit-PatchSet: 13
      Gerrit-Owner: Kyouhei Horizumi <kyouhei....@gmail.com>
      Gerrit-Reviewer: Daniel Cheng <dch...@chromium.org>
      Gerrit-Reviewer: Hiroshige Hayashizaki <hiro...@chromium.org>
      Gerrit-Reviewer: Kentaro Hara <har...@chromium.org>
      Gerrit-Reviewer: Kouhei Ueno <kou...@chromium.org>
      Gerrit-Reviewer: Kyouhei Horizumi <kyouhei....@gmail.com>
      Gerrit-Reviewer: Nate Chapin <jap...@chromium.org>
      Gerrit-Attention: Hiroshige Hayashizaki <hiro...@chromium.org>
      Gerrit-Attention: Kouhei Ueno <kou...@chromium.org>
      Gerrit-Attention: Kentaro Hara <har...@chromium.org>
      Gerrit-Attention: Daniel Cheng <dch...@chromium.org>
      Gerrit-Comment-Date: Sat, 14 Nov 2026 17:52:14 +0000
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Kyouhei Horizumi (Gerrit)

      unread,
      Nov 18, 2026, 2:20:32 PMNov 18
      to Daniel Cheng, Chromium LUCI CQ, Hiroshige Hayashizaki, Kentaro Hara, Nate Chapin, Kouhei Ueno, android-bu...@system.gserviceaccount.com, chromium...@chromium.org, blink-re...@chromium.org, blink-...@chromium.org, blink-work...@chromium.org, horo+...@chromium.org, kinuko...@chromium.org, kinuko...@chromium.org, shimazu...@chromium.org
      Attention needed from Daniel Cheng, Hiroshige Hayashizaki, Kentaro Hara and Kouhei Ueno

      Kyouhei Horizumi added 1 comment on change 8313708

      Patchset-level comments
      Daniel Cheng . unresolved

      How much do we really need to protect against this? There many other ways to DoS the browser process. This is a fair amount of complexity for something that only offers fairly limited protection in the end.

      Kyouhei Horizumi

      @dch...@chromium.org Thanks for pointing this out!

      I'd like to clarify what you mean by "fairly limited protection."

      A. Do you mean that, because there are many other ways to DoS the browser process, mitigating only this Worker-based path provides limited protection against the broader problem (including support-scam scenarios), so this may not be worth mitigating individually?

      B. Or do you agree that this particular issue is worth mitigating, but think the current approach is too complex relative to the protection it provides?

      I think the next direction would be quite different depending on which you mean.

      Kyouhei Horizumi

      I found the 2018 discussion around the IPC-flooding mitigation that became `NavigationRateLimiter`:
      https://chromium-review.googlesource.com/c/1230067

      In particular, your concern there about accumulating technical debt through API-specific IPC-flooding mitigations helped me understand your concern here better.

      When I have some time, I'll compare the current Worker mitigation with `NavigationRateLimiter` and explain why the Worker case needs additional complexity.

      A generic IPC-level solution would of course be preferable, but that does not seem to be the current direction:
      https://issues.chromium.org/issues/40086182#comment21

      Gerrit-Comment-Date: Wed, 18 Nov 2026 19:19:56 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      Comment-In-Reply-To: Kyouhei Horizumi <kyouhei....@gmail.com>
      Comment-In-Reply-To: Daniel Cheng <dch...@chromium.org>
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Kyouhei Horizumi (Gerrit)

      unread,
      Nov 22, 2026, 12:27:07 PMNov 22
      to Daniel Cheng, Chromium LUCI CQ, Hiroshige Hayashizaki, Kentaro Hara, Nate Chapin, Kouhei Ueno, android-bu...@system.gserviceaccount.com, chromium...@chromium.org, blink-re...@chromium.org, blink-...@chromium.org, blink-work...@chromium.org, horo+...@chromium.org, kinuko...@chromium.org, kinuko...@chromium.org, shimazu...@chromium.org
      Attention needed from Daniel Cheng, Hiroshige Hayashizaki, Kentaro Hara and Kouhei Ueno

      Kyouhei Horizumi added 1 comment on change 8313708

      Patchset-level comments
      Daniel Cheng . unresolved

      How much do we really need to protect against this? There many other ways to DoS the browser process. This is a fair amount of complexity for something that only offers fairly limited protection in the end.

      Kyouhei Horizumi

      @dch...@chromium.org Thanks for pointing this out!

      I'd like to clarify what you mean by "fairly limited protection."

      A. Do you mean that, because there are many other ways to DoS the browser process, mitigating only this Worker-based path provides limited protection against the broader problem (including support-scam scenarios), so this may not be worth mitigating individually?

      B. Or do you agree that this particular issue is worth mitigating, but think the current approach is too complex relative to the protection it provides?

      I think the next direction would be quite different depending on which you mean.

      Kyouhei Horizumi

      I found the 2018 discussion around the IPC-flooding mitigation that became `NavigationRateLimiter`:
      https://chromium-review.googlesource.com/c/1230067

      In particular, your concern there about accumulating technical debt through API-specific IPC-flooding mitigations helped me understand your concern here better.

      When I have some time, I'll compare the current Worker mitigation with `NavigationRateLimiter` and explain why the Worker case needs additional complexity.

      A generic IPC-level solution would of course be preferable, but that does not seem to be the current direction:
      https://issues.chromium.org/issues/40086182#comment21

      Kyouhei Horizumi

      @dch...@chromium.org Would the following explanation address your concerns about the complexity of this CL?

      ### Why this CL is necessary

      I don't think a browser hang alone necessarily justifies a Chromium fix.
      However, tech support scams have caused substantial financial losses, and this particular attack technique has been used in such scams for over a year. The attack is also extremely easy to execute (see [Issue 519762183](https://issues.chromium.org/issues/519762183) for details).
      It can also prevent existing timeouts and hang detection mechanisms from working properly.

      ### Why a map is necessary

      `NavigationRateLimiter` is relatively simple because it stores a counter in each Frame.
      In contrast, this Worker creation limit needs to be enforced in the Renderer before sending IPCs to the Browser Process.
      Since a single Renderer Process may contain multiple Origins, a process-wide limit could also restrict Worker creation from unrelated Origins.
      Therefore, we use a map to maintain separate counters for each Origin.

      ### Why a Lock is necessary

      Nested Workers run on separate threads, so synchronization is required to safely share the counters.

      ### Why Factory Client creation is deferred

      Originally, the Factory Client was created in the DedicatedWorker constructor, which initiated communication with the Browser Process.
      To avoid this IPC for rejected Workers, Factory Client creation has been deferred until first use.

      Gerrit-Comment-Date: Sun, 22 Nov 2026 17:26:31 +0000
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Daniel Cheng (Gerrit)

      unread,
      Nov 30, 2026, 4:26:25 AM (6 days ago) Nov 30
      to Kyouhei Horizumi, Daniel Cheng, Chromium LUCI CQ, Hiroshige Hayashizaki, Kentaro Hara, Nate Chapin, Kouhei Ueno, android-bu...@system.gserviceaccount.com, chromium...@chromium.org, blink-re...@chromium.org, blink-...@chromium.org, blink-work...@chromium.org, horo+...@chromium.org, kinuko...@chromium.org, kinuko...@chromium.org, shimazu...@chromium.org
      Attention needed from Hiroshige Hayashizaki, Kentaro Hara, Kouhei Ueno and Kyouhei Horizumi

      Daniel Cheng added 1 comment on change 8313708

      Patchset-level comments
      Daniel Cheng

      Given a few other recent issues in this area, I think it's worth pursuing something here.

      However, I'm wondering if we can do something simpler than maintaining per-origin tables. For pages, we prevent pages from having more than 1000 frames ever but we don't have something similar for workers.

      Would it make sense to just have a process global counter for the number of live (dedicated?) workers? Firefox actually has this and sets it to `dom.workers.maxPerDomain`; I am wondering if setting it to something like 1024 would be "good enough" or if that's still too easy to hit a DoS condition.

      Rationale for 1024: Firefox's default limit is 512; Chrome uses site isolation so having a per-process map is mostly a waste. Platforms which have weaker site isolation will have an easier time hitting this... but platforms with weaker site isolation have more resource limits too, so having the limit be process global kind of makes sense to me there too.

      Another difference is Firefox queues dedicated workers when it hits the limit instead of throwing an exception; that's something we could consider here too.

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Hiroshige Hayashizaki
      • Kentaro Hara
      • Kouhei Ueno
      • Kyouhei Horizumi
      Gerrit-Attention: Kyouhei Horizumi <kyouhei....@gmail.com>
      Gerrit-Attention: Kentaro Hara <har...@chromium.org>
      Gerrit-Comment-Date: Mon, 30 Nov 2026 09:26:10 +0000
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Kyouhei Horizumi (Gerrit)

      unread,
      Nov 30, 2026, 12:56:02 PM (6 days ago) Nov 30
      to Daniel Cheng, Chromium LUCI CQ, Hiroshige Hayashizaki, Kentaro Hara, Nate Chapin, Kouhei Ueno, android-bu...@system.gserviceaccount.com, chromium...@chromium.org, blink-re...@chromium.org, blink-...@chromium.org, blink-work...@chromium.org, horo+...@chromium.org, kinuko...@chromium.org, kinuko...@chromium.org, shimazu...@chromium.org
      Attention needed from Daniel Cheng, Hiroshige Hayashizaki, Kentaro Hara and Kouhei Ueno

      Kyouhei Horizumi added 1 comment on change 8313708

      Patchset-level comments
      Kyouhei Horizumi

      @dch...@chromium.org Thank you for your feedback!

      Would it make sense to just have a process global counter for the number of live (dedicated?) workers?

      Regarding the process-wide limit, Hiroshige previously raised a concern about the potential side-channel attack surface in his Sep 17 comment:
      https://chromium-review.googlesource.com/c/chromium/src/+/8313708/comment/cb9aa21f_73a66732/

      Would this still be a concern with the proposed approach?

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Daniel Cheng
      • Hiroshige Hayashizaki
      • Kentaro Hara
      • Kouhei Ueno
      Gerrit-Attention: Kentaro Hara <har...@chromium.org>
      Gerrit-Attention: Daniel Cheng <dch...@chromium.org>
      Gerrit-Comment-Date: Mon, 30 Nov 2026 17:55:28 +0000
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Daniel Cheng (Gerrit)

      unread,
      Dec 3, 2026, 7:13:21 PM (3 days ago) Dec 3
      to Kyouhei Horizumi, Daniel Cheng, Chromium LUCI CQ, Hiroshige Hayashizaki, Kentaro Hara, Nate Chapin, Kouhei Ueno, android-bu...@system.gserviceaccount.com, chromium...@chromium.org, blink-re...@chromium.org, blink-...@chromium.org, blink-work...@chromium.org, horo+...@chromium.org, kinuko...@chromium.org, kinuko...@chromium.org, shimazu...@chromium.org
      Attention needed from Hiroshige Hayashizaki, Kentaro Hara, Kouhei Ueno and Kyouhei Horizumi

      Daniel Cheng added 1 comment on change 8313708

      Patchset-level comments
      Daniel Cheng

      Sorry for the long delay here; I was asking around for opinions. While I would personally prefer a per-renderer approach, it's undeniably true that there is some cross-site info leaks, especially on Android.

      I have two questions:
      1. If we really want to keep this per-origin, I think we actually need to key on the precursor tuple. Otherwise, if you create a worker from data: URLs, those would never be throttled because the nonce would be unique (and the nonce is considered for the hash). Do you know of any other edge cases here? (Any origins that don't have a tuple at all would all be batched together, but I think that's unavoidable)
      2. Is it hard to queue the request to run the worker if we hit the limit instead of trying to do this rate limit? What would be more preferable to the worker team?

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Hiroshige Hayashizaki
      • Kentaro Hara
      • Kouhei Ueno
      • Kyouhei Horizumi
      Gerrit-Attention: Kyouhei Horizumi <kyouhei....@gmail.com>
      Gerrit-Attention: Kentaro Hara <har...@chromium.org>
      Gerrit-Comment-Date: Fri, 04 Dec 2026 00:13:06 +0000
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Kyouhei Horizumi (Gerrit)

      unread,
      12:57 PM (2 hours ago) 12:57 PM
      to Daniel Cheng, Chromium LUCI CQ, Hiroshige Hayashizaki, Kentaro Hara, Nate Chapin, Kouhei Ueno, android-bu...@system.gserviceaccount.com, chromium...@chromium.org, blink-re...@chromium.org, blink-...@chromium.org, blink-work...@chromium.org, horo+...@chromium.org, kinuko...@chromium.org, kinuko...@chromium.org, shimazu...@chromium.org
      Attention needed from Hiroshige Hayashizaki, Kentaro Hara and Kouhei Ueno

      Kyouhei Horizumi added 1 comment on change 8313708

      Patchset-level comments
      Kyouhei Horizumi

      Daniel, thank you for your reply. I think that's a very good point.

      I think your proposed approach would also cover cases such as `data:` URLs, sandboxed iframes and popups, and CSP sandbox. One potential concern, though, is whether this could introduce a side channel, given that sandboxing may be used to intentionally isolate otherwise same-origin documents.

      Not exactly an edge case, but a similar way to bypass the limit would be to create workers from iframes with different ports or (sub)domains. A similar issue was discussed by Mozilla in the past (see comments #6–#9):
      https://bugzilla.mozilla.org/show_bug.cgi?id=1286895#c6

      However, Mozilla appears to have chosen not to address this issue.

      @hiro...@chromium.org What are your thoughts on question 2?

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Hiroshige Hayashizaki
      • Kentaro Hara
      • Kouhei Ueno
      Gerrit-Attention: Kentaro Hara <har...@chromium.org>
      Gerrit-Comment-Date: Sun, 06 Dec 2026 17:57:00 +0000
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy
      Reply all
      Reply to author
      Forward
      0 new messages