[WebAudio] Core URL Plumbing & Promise Rejection Enrichment (3/3) [chromium/src : main]

0 views
Skip to first unread message

Mahesh Kannan (Gerrit)

unread,
Jul 30, 2026, 12:46:24 PM (17 hours ago) Jul 30
to Hongchan Choi, android-bu...@system.gserviceaccount.com, Chromium LUCI CQ, chromium...@chromium.org, Nate Chapin, Hiroki Nakagawa, blink-revie...@chromium.org, blink-...@chromium.org, blink-work...@chromium.org, dom+...@chromium.org, gavinp...@chromium.org, hiroshig...@chromium.org, horo+...@chromium.org, kinuko+ser...@chromium.org, kinuko...@chromium.org, kouhei...@chromium.org, loading...@chromium.org, servicewor...@chromium.org, shimazu+se...@chromium.org, shimazu...@chromium.org
Attention needed from Mahesh Kannan

Message from Mahesh Kannan

Set Ready For Review

Open in Gerrit

Related details

Attention is currently required from:
  • Mahesh Kannan
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: I00ae8b5f84c2191e8f9868efd2380e9143fabcd7
Gerrit-Change-Number: 8075265
Gerrit-PatchSet: 11
Gerrit-Owner: Mahesh Kannan <kmah...@google.com>
Gerrit-Reviewer: Mahesh Kannan <kmah...@google.com>
Gerrit-CC: Hiroki Nakagawa <nhi...@chromium.org>
Gerrit-CC: Hongchan Choi <hong...@chromium.org>
Gerrit-CC: Michael Wilson <mjwi...@chromium.org>
Gerrit-CC: Nate Chapin <jap...@chromium.org>
Gerrit-Attention: Mahesh Kannan <kmah...@google.com>
Gerrit-Comment-Date: Thu, 30 Jul 2026 16:46:10 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Mahesh Kannan (Gerrit)

unread,
Jul 30, 2026, 12:47:08 PM (17 hours ago) Jul 30
to Nate Chapin, Hongchan Choi, android-bu...@system.gserviceaccount.com, Chromium LUCI CQ, chromium...@chromium.org, Hiroki Nakagawa, blink-revie...@chromium.org, blink-...@chromium.org, blink-work...@chromium.org, dom+...@chromium.org, gavinp...@chromium.org, hiroshig...@chromium.org, horo+...@chromium.org, kinuko+ser...@chromium.org, kinuko...@chromium.org, kouhei...@chromium.org, loading...@chromium.org, servicewor...@chromium.org, shimazu+se...@chromium.org, shimazu...@chromium.org
Attention needed from Nate Chapin

Mahesh Kannan added 1 comment

Patchset-level comments
File-level comment, Patchset 11 (Latest):
Mahesh Kannan . resolved

Last CL part of this series. Thank you for your reviews. PTAL!

Open in Gerrit

Related details

Attention is currently required from:
  • Nate Chapin
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: I00ae8b5f84c2191e8f9868efd2380e9143fabcd7
Gerrit-Change-Number: 8075265
Gerrit-PatchSet: 11
Gerrit-Owner: Mahesh Kannan <kmah...@google.com>
Gerrit-Reviewer: Mahesh Kannan <kmah...@google.com>
Gerrit-Reviewer: Nate Chapin <jap...@chromium.org>
Gerrit-CC: Hiroki Nakagawa <nhi...@chromium.org>
Gerrit-CC: Hongchan Choi <hong...@chromium.org>
Gerrit-CC: Michael Wilson <mjwi...@chromium.org>
Gerrit-Attention: Nate Chapin <jap...@chromium.org>
Gerrit-Comment-Date: Thu, 30 Jul 2026 16:46:55 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Nate Chapin (Gerrit)

unread,
Jul 30, 2026, 1:46:27 PM (16 hours ago) Jul 30
to Mahesh Kannan, Hongchan Choi, android-bu...@system.gserviceaccount.com, Chromium LUCI CQ, chromium...@chromium.org, Hiroki Nakagawa, blink-revie...@chromium.org, blink-...@chromium.org, blink-work...@chromium.org, dom+...@chromium.org, gavinp...@chromium.org, hiroshig...@chromium.org, horo+...@chromium.org, kinuko+ser...@chromium.org, kinuko...@chromium.org, kouhei...@chromium.org, loading...@chromium.org, servicewor...@chromium.org, shimazu+se...@chromium.org, shimazu...@chromium.org
Attention needed from Mahesh Kannan

Nate Chapin voted and added 4 comments

Votes added by Nate Chapin

Code-Review+1

4 comments

File third_party/blink/renderer/core/workers/worklet_module_tree_client.cc
Line 126, Patchset 11 (Latest): if (global_scope && global_scope->GetModuleResponsesMap()) {
Nate Chapin . unresolved

I think `global_scope` is guaranteed non-null here?

Line 169, Patchset 11 (Latest): ToV8Traits<DOMException>::ToV8(script_state_, dom_exception);
Nate Chapin . unresolved

`dom_exception->ToV8(script_state_);` is a little more direct and cleaner - you can use it for an class that is a subclass of `ScriptWrappable` and is guaranteed non-null.

File third_party/blink/renderer/core/workers/worklet_pending_tasks.cc
Line 50, Patchset 11 (Latest): if (script_state && script_state->ContextIsValid()) {
Nate Chapin . unresolved

`script_state` should be guaranteed non-null.

Line 51, Patchset 11 (Latest): ScriptState::Scope scope(script_state);
Nate Chapin . unresolved

I think this can stay inside the `if (error_to_rethrow) {}` block. ScriptPromiseResolver takes care of ensuring we're in-scope, so we only need to enter the scope for `Deserialize()`

Open in Gerrit

Related details

Attention is currently required from:
  • Mahesh Kannan
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement satisfiedCode-Owners
  • requirement satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
  • requirement 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: I00ae8b5f84c2191e8f9868efd2380e9143fabcd7
Gerrit-Change-Number: 8075265
Gerrit-PatchSet: 11
Gerrit-Owner: Mahesh Kannan <kmah...@google.com>
Gerrit-Reviewer: Mahesh Kannan <kmah...@google.com>
Gerrit-Reviewer: Nate Chapin <jap...@chromium.org>
Gerrit-CC: Hiroki Nakagawa <nhi...@chromium.org>
Gerrit-CC: Hongchan Choi <hong...@chromium.org>
Gerrit-CC: Michael Wilson <mjwi...@chromium.org>
Gerrit-Attention: Mahesh Kannan <kmah...@google.com>
Gerrit-Comment-Date: Thu, 30 Jul 2026 17:46:15 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

Mahesh Kannan (Gerrit)

unread,
Jul 30, 2026, 6:54:43 PM (11 hours ago) Jul 30
to Nate Chapin, Hongchan Choi, android-bu...@system.gserviceaccount.com, Chromium LUCI CQ, chromium...@chromium.org, Hiroki Nakagawa, blink-revie...@chromium.org, blink-...@chromium.org, blink-work...@chromium.org, dom+...@chromium.org, gavinp...@chromium.org, hiroshig...@chromium.org, horo+...@chromium.org, kinuko+ser...@chromium.org, kinuko...@chromium.org, kouhei...@chromium.org, loading...@chromium.org, servicewor...@chromium.org, shimazu+se...@chromium.org, shimazu...@chromium.org

Mahesh Kannan added 4 comments

File third_party/blink/renderer/core/workers/worklet_module_tree_client.cc
Line 126, Patchset 11: if (global_scope && global_scope->GetModuleResponsesMap()) {
Nate Chapin . resolved

I think `global_scope` is guaranteed non-null here?

Mahesh Kannan

Acknowledged

Line 169, Patchset 11: ToV8Traits<DOMException>::ToV8(script_state_, dom_exception);
Nate Chapin . resolved

`dom_exception->ToV8(script_state_);` is a little more direct and cleaner - you can use it for an class that is a subclass of `ScriptWrappable` and is guaranteed non-null.

Mahesh Kannan

Thank you, applied

File third_party/blink/renderer/core/workers/worklet_pending_tasks.cc
Line 50, Patchset 11: if (script_state && script_state->ContextIsValid()) {
Nate Chapin . resolved

`script_state` should be guaranteed non-null.

Mahesh Kannan

Done

Line 51, Patchset 11: ScriptState::Scope scope(script_state);
Nate Chapin . resolved

I think this can stay inside the `if (error_to_rethrow) {}` block. ScriptPromiseResolver takes care of ensuring we're in-scope, so we only need to enter the scope for `Deserialize()`

Mahesh Kannan

Done

Open in Gerrit

Related details

Attention set is empty
Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement satisfiedCode-Owners
    • requirement satisfiedCode-Review
    • requirement 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: I00ae8b5f84c2191e8f9868efd2380e9143fabcd7
    Gerrit-Change-Number: 8075265
    Gerrit-PatchSet: 12
    Gerrit-Owner: Mahesh Kannan <kmah...@google.com>
    Gerrit-Reviewer: Mahesh Kannan <kmah...@google.com>
    Gerrit-Reviewer: Nate Chapin <jap...@chromium.org>
    Gerrit-CC: Hiroki Nakagawa <nhi...@chromium.org>
    Gerrit-CC: Hongchan Choi <hong...@chromium.org>
    Gerrit-CC: Michael Wilson <mjwi...@chromium.org>
    Gerrit-Comment-Date: Thu, 30 Jul 2026 22:54:32 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Nate Chapin <jap...@chromium.org>
    satisfied_requirement
    open
    diffy
    Reply all
    Reply to author
    Forward
    0 new messages