[SharedWorker] Implement exception reporting [chromium/src : main]

0 views
Skip to first unread message

AI Code Reviewer (Gerrit)

unread,
Aug 13, 2025, 6:21:52 AMAug 13
to Yoshisato Yanagisawa, AyeAye, Hiroki Nakagawa, Chromium LUCI CQ, chromium...@chromium.org, 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 needed from Hiroki Nakagawa

AI Code Reviewer added 1 comment

File third_party/blink/renderer/core/exported/web_shared_worker_impl.cc
Line 115, Patchset 2 (Latest): int exception_id) {
AI Code Reviewer . unresolved

This comment was generated by [Experimental Blink C++ Code Review Agent](http://go/blink-c++-code-review-agent) \
To opt out permanently, please join [Blink AIAgent Optout](https://ganpati2.corp.google.com/group/peep-genai-blink-agent-optout.prod)

The `exception_id` parameter is unused in this function's body. To adhere to the style guide, please comment out the name of the unused parameter (e.g., `int /* exception_id */`) to indicate it is intentionally not used. (Blink Style Guide: Naming - May leave obvious parameter names out of function declarations)
For a quick and terse communication, please consider using one of these options: \
Done | b/<bug_id> | Invalid: reason | Won't fix: reason<br/>

NOTE: AI reviews can give wrong results. \
We apologize in advance for any inconvenience and would love to take your feedback to make this better. \
[file a bug](http://go/blink-c++-code-review-agent-feedback) or [ping us on chat](https://chat.google.com/room/AAQA0zhQHe0?cls=4)

Open in Gerrit

Related details

Attention is currently required from:
  • Hiroki Nakagawa
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
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: I2ffd326eb8afffad4ff7748f86da1712e8d12fe2
Gerrit-Change-Number: 6845297
Gerrit-PatchSet: 2
Gerrit-Owner: Yoshisato Yanagisawa <yyana...@chromium.org>
Gerrit-Reviewer: Hiroki Nakagawa <nhi...@chromium.org>
Gerrit-Reviewer: Yoshisato Yanagisawa <yyana...@chromium.org>
Gerrit-CC: AI Code Reviewer <peep-gen...@system.gserviceaccount.com>
Gerrit-Attention: Hiroki Nakagawa <nhi...@chromium.org>
Gerrit-Comment-Date: Wed, 13 Aug 2025 10:21:40 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Yoshisato Yanagisawa (Gerrit)

unread,
Aug 13, 2025, 9:32:24 PMAug 13
to AI Code Reviewer, AyeAye, Hiroki Nakagawa, Chromium LUCI CQ, chromium...@chromium.org, 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 needed from Hiroki Nakagawa

Yoshisato Yanagisawa added 1 comment

File third_party/blink/renderer/core/exported/web_shared_worker_impl.cc
Line 115, Patchset 2: int exception_id) {
AI Code Reviewer . resolved

This comment was generated by [Experimental Blink C++ Code Review Agent](http://go/blink-c++-code-review-agent) \
To opt out permanently, please join [Blink AIAgent Optout](https://ganpati2.corp.google.com/group/peep-genai-blink-agent-optout.prod)

The `exception_id` parameter is unused in this function's body. To adhere to the style guide, please comment out the name of the unused parameter (e.g., `int /* exception_id */`) to indicate it is intentionally not used. (Blink Style Guide: Naming - May leave obvious parameter names out of function declarations)
For a quick and terse communication, please consider using one of these options: \
Done | b/<bug_id> | Invalid: reason | Won't fix: reason<br/>

NOTE: AI reviews can give wrong results. \
We apologize in advance for any inconvenience and would love to take your feedback to make this better. \
[file a bug](http://go/blink-c++-code-review-agent-feedback) or [ping us on chat](https://chat.google.com/room/AAQA0zhQHe0?cls=4)

Yoshisato Yanagisawa

Done

Open in Gerrit

Related details

Attention is currently required from:
  • Hiroki Nakagawa
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
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: I2ffd326eb8afffad4ff7748f86da1712e8d12fe2
Gerrit-Change-Number: 6845297
Gerrit-PatchSet: 3
Gerrit-Owner: Yoshisato Yanagisawa <yyana...@chromium.org>
Gerrit-Reviewer: Hiroki Nakagawa <nhi...@chromium.org>
Gerrit-Reviewer: Yoshisato Yanagisawa <yyana...@chromium.org>
Gerrit-CC: AI Code Reviewer <peep-gen...@system.gserviceaccount.com>
Gerrit-Attention: Hiroki Nakagawa <nhi...@chromium.org>
Gerrit-Comment-Date: Thu, 14 Aug 2025 01:31:52 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: AI Code Reviewer <peep-gen...@system.gserviceaccount.com>
satisfied_requirement
unsatisfied_requirement
open
diffy

gwsq (Gerrit)

unread,
Aug 14, 2025, 8:30:28 PMAug 14
to Yoshisato Yanagisawa, Chromium IPC Reviews, Takashi Toyoshima, AI Code Reviewer, AyeAye, Hiroki Nakagawa, Chromium LUCI CQ, chromium...@chromium.org, 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 needed from Hiroki Nakagawa and Takashi Toyoshima

Message from gwsq

From googleclient/chrome/chromium_gwsq/ipc/config.gwsq:
IPC: toyo...@chromium.org

📎 It looks like you’re making a possibly security-sensitive change! 📎 IPC security review isn’t a rubberstamp, so your friendly security reviewer will need a fair amount of context to review your CL effectively. Please review your CL description and code comments to make sure they provide context for someone unfamiliar with your project/area. Pay special attention to where data comes from and which processes it flows between (and their privilege levels). Feel free to point your security reviewer at design docs, bugs, or other links if you can’t reasonably make a self-contained CL description. (Also see https://cbea.ms/git-commit/).

IPC reviewer(s): toyo...@chromium.org


Reviewer source(s):
toyo...@chromium.org is from context(googleclient/chrome/chromium_gwsq/ipc/config.gwsq)

Open in Gerrit

Related details

Attention is currently required from:
  • Hiroki Nakagawa
  • Takashi Toyoshima
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
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: I2ffd326eb8afffad4ff7748f86da1712e8d12fe2
Gerrit-Change-Number: 6845297
Gerrit-PatchSet: 12
Gerrit-Owner: Yoshisato Yanagisawa <yyana...@chromium.org>
Gerrit-Reviewer: Hiroki Nakagawa <nhi...@chromium.org>
Gerrit-Reviewer: Takashi Toyoshima <toyo...@chromium.org>
Gerrit-Reviewer: Yoshisato Yanagisawa <yyana...@chromium.org>
Gerrit-CC: AI Code Reviewer <peep-gen...@system.gserviceaccount.com>
Gerrit-CC: Chromium IPC Reviews <chrome-ip...@google.com>
Gerrit-CC: gwsq
Gerrit-Attention: Hiroki Nakagawa <nhi...@chromium.org>
Gerrit-Attention: Takashi Toyoshima <toyo...@chromium.org>
Gerrit-Comment-Date: Fri, 15 Aug 2025 00:30:16 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Yoshisato Yanagisawa (Gerrit)

unread,
Aug 17, 2025, 9:02:08 PMAug 17
to Anna Sato, Chromium IPC Reviews, Takashi Toyoshima, AI Code Reviewer, AyeAye, Hiroki Nakagawa, Chromium LUCI CQ, chromium...@chromium.org, 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 needed from Hiroki Nakagawa and Takashi Toyoshima

Yoshisato Yanagisawa added 1 comment

Patchset-level comments
File-level comment, Patchset 12 (Latest):
Yoshisato Yanagisawa . resolved

FYI, Anna might have asked me to implement this before.

Open in Gerrit

Related details

Attention is currently required from:
  • Hiroki Nakagawa
  • Takashi Toyoshima
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
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: I2ffd326eb8afffad4ff7748f86da1712e8d12fe2
Gerrit-Change-Number: 6845297
Gerrit-PatchSet: 12
Gerrit-Owner: Yoshisato Yanagisawa <yyana...@chromium.org>
Gerrit-Reviewer: Hiroki Nakagawa <nhi...@chromium.org>
Gerrit-Reviewer: Takashi Toyoshima <toyo...@chromium.org>
Gerrit-Reviewer: Yoshisato Yanagisawa <yyana...@chromium.org>
Gerrit-CC: AI Code Reviewer <peep-gen...@system.gserviceaccount.com>
Gerrit-CC: Anna Sato <anna...@chromium.org>
Gerrit-CC: Chromium IPC Reviews <chrome-ip...@google.com>
Gerrit-CC: gwsq
Gerrit-Attention: Hiroki Nakagawa <nhi...@chromium.org>
Gerrit-Attention: Takashi Toyoshima <toyo...@chromium.org>
Gerrit-Comment-Date: Mon, 18 Aug 2025 01:01:34 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Takashi Toyoshima (Gerrit)

unread,
Aug 18, 2025, 12:48:28 AMAug 18
to Yoshisato Yanagisawa, Anna Sato, Chromium IPC Reviews, AI Code Reviewer, AyeAye, Hiroki Nakagawa, Chromium LUCI CQ, chromium...@chromium.org, 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 needed from Hiroki Nakagawa and Yoshisato Yanagisawa

Takashi Toyoshima added 7 comments

File content/browser/worker_host/mock_shared_worker.cc
Line 170, Patchset 12 (Latest):MockSharedWorkerClient::MockSharedWorkerClient() {}
Takashi Toyoshima . unresolved

Please fix this WARNING reported by ClangTidy: check: modernize-use-equals-default

use '= default' to define a trivial default...

check: modernize-use-equals-default

use '= default' to define a trivial default constructor (https://clang.llvm.org/extra/clang-tidy/checks/modernize/use-equals-default.html)

(Note: You can add `Skip-Clang-Tidy-Checks: modernize-use-equals-default` footer to the CL description to skip the check)

(Note: building this file or its dependencies failed; this diagnostic might be incorrect as a result.)

(Lint observed on `mac-clang-tidy-rel`, but not on `android-clang-tidy-rel` or `linux-clang-tidy-rel`)

Line 279, Patchset 12 (Latest): DCHECK(!on_report_exception_received_);
Takashi Toyoshima . unresolved

EXPECT_FALSE is better in a mock? (ditto on existing DCHECKs above)

File third_party/blink/public/mojom/worker/shared_worker_client.mojom
Line 26, Patchset 12 (Latest): // Reports an exception to the creator frame's console.
Takashi Toyoshima . unresolved

Can we add some more detailed explanations on the `is_eval_error` parameter?
E.g. like a comment in shared_worker_client.cc

fyi, especially in Blink, we prefer enum over bool; https://chromium.googlesource.com/chromium/src/+/main/styleguide/c++/blink-c++.md#Prefer-enums-or-StrongAliases-to-bare-bools-for-function-parameters

But as this is a Mojo interface, it's on border, and maybe ok to keep using bool here (but needs a comment as this variable meaning is not trivial)

File third_party/blink/public/mojom/worker/shared_worker_host.mojom
Line 33, Patchset 12 (Latest): // Reports an exception to the creator frame's console.
Takashi Toyoshima . unresolved

ditto

File third_party/blink/renderer/core/exported/web_shared_worker_impl.cc
Line 117, Patchset 12 (Latest): DCHECK(IsMainThread());
Takashi Toyoshima . unresolved

maybe prefer CHECK() for new code (and ideally make all cases in the same file consistent)

File third_party/blink/renderer/core/workers/shared_worker_client.cc
Line 85, Patchset 12 (Latest): ErrorEvent::Create(error_message, location, /*error=*/nullptr);
Takashi Toyoshima . unresolved

maybe meant `world`?

File third_party/blink/renderer/core/workers/shared_worker_reporting_proxy.cc
Line 91, Patchset 12 (Latest): DCHECK(!IsMainThread());
Takashi Toyoshima . unresolved

Can we check if this is called only once at most?
`CHECK(!script_evaluated_);`

Open in Gerrit

Related details

Attention is currently required from:
  • Hiroki Nakagawa
  • Yoshisato Yanagisawa
Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    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: I2ffd326eb8afffad4ff7748f86da1712e8d12fe2
    Gerrit-Change-Number: 6845297
    Gerrit-PatchSet: 12
    Gerrit-Owner: Yoshisato Yanagisawa <yyana...@chromium.org>
    Gerrit-Reviewer: Hiroki Nakagawa <nhi...@chromium.org>
    Gerrit-Reviewer: Takashi Toyoshima <toyo...@chromium.org>
    Gerrit-Reviewer: Yoshisato Yanagisawa <yyana...@chromium.org>
    Gerrit-CC: AI Code Reviewer <peep-gen...@system.gserviceaccount.com>
    Gerrit-CC: Anna Sato <anna...@chromium.org>
    Gerrit-CC: Chromium IPC Reviews <chrome-ip...@google.com>
    Gerrit-CC: gwsq
    Gerrit-Attention: Yoshisato Yanagisawa <yyana...@chromium.org>
    Gerrit-Attention: Hiroki Nakagawa <nhi...@chromium.org>
    Gerrit-Comment-Date: Mon, 18 Aug 2025 04:47:52 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Hiroki Nakagawa (Gerrit)

    unread,
    Aug 18, 2025, 2:03:29 AMAug 18
    to Yoshisato Yanagisawa, Anna Sato, Chromium IPC Reviews, Takashi Toyoshima, AI Code Reviewer, AyeAye, Chromium LUCI CQ, chromium...@chromium.org, 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 needed from Yoshisato Yanagisawa

    Hiroki Nakagawa added 2 comments

    Patchset-level comments
    Hiroki Nakagawa . resolved

    FYI: I'll review this CL after having offline discussion about the spec with yyanagisawa@ tomorrow.

    File third_party/blink/renderer/core/workers/shared_worker_reporting_proxy.cc
    Open in Gerrit

    Related details

    Attention is currently required from:
    • Yoshisato Yanagisawa
    Gerrit-Comment-Date: Mon, 18 Aug 2025 06:03:05 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Yoshisato Yanagisawa (Gerrit)

    unread,
    Aug 18, 2025, 5:53:20 AMAug 18
    to Anna Sato, Chromium IPC Reviews, Takashi Toyoshima, AI Code Reviewer, AyeAye, Hiroki Nakagawa, Chromium LUCI CQ, chromium...@chromium.org, 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 needed from Hiroki Nakagawa and Takashi Toyoshima

    Yoshisato Yanagisawa added 8 comments

    File content/browser/worker_host/mock_shared_worker.cc
    Line 170, Patchset 12:MockSharedWorkerClient::MockSharedWorkerClient() {}
    Takashi Toyoshima . resolved

    Please fix this WARNING reported by ClangTidy: check: modernize-use-equals-default

    use '= default' to define a trivial default...

    check: modernize-use-equals-default

    use '= default' to define a trivial default constructor (https://clang.llvm.org/extra/clang-tidy/checks/modernize/use-equals-default.html)

    (Note: You can add `Skip-Clang-Tidy-Checks: modernize-use-equals-default` footer to the CL description to skip the check)

    (Note: building this file or its dependencies failed; this diagnostic might be incorrect as a result.)

    (Lint observed on `mac-clang-tidy-rel`, but not on `android-clang-tidy-rel` or `linux-clang-tidy-rel`)

    Yoshisato Yanagisawa

    Done

    Line 279, Patchset 12: DCHECK(!on_report_exception_received_);
    Takashi Toyoshima . resolved

    EXPECT_FALSE is better in a mock? (ditto on existing DCHECKs above)

    Yoshisato Yanagisawa

    Done

    File third_party/blink/public/mojom/worker/shared_worker_client.mojom
    Line 26, Patchset 12: // Reports an exception to the creator frame's console.
    Takashi Toyoshima . resolved

    Can we add some more detailed explanations on the `is_eval_error` parameter?
    E.g. like a comment in shared_worker_client.cc

    fyi, especially in Blink, we prefer enum over bool; https://chromium.googlesource.com/chromium/src/+/main/styleguide/c++/blink-c++.md#Prefer-enums-or-StrongAliases-to-bare-bools-for-function-parameters

    But as this is a Mojo interface, it's on border, and maybe ok to keep using bool here (but needs a comment as this variable meaning is not trivial)

    Yoshisato Yanagisawa

    Sure.
    updated the arguments.

    File third_party/blink/public/mojom/worker/shared_worker_host.mojom
    Line 33, Patchset 12: // Reports an exception to the creator frame's console.
    Takashi Toyoshima . resolved

    ditto

    Yoshisato Yanagisawa

    Done

    File third_party/blink/renderer/core/exported/web_shared_worker_impl.cc
    Line 117, Patchset 12: DCHECK(IsMainThread());
    Takashi Toyoshima . resolved

    maybe prefer CHECK() for new code (and ideally make all cases in the same file consistent)

    Yoshisato Yanagisawa

    Done

    File third_party/blink/renderer/core/workers/shared_worker_client.cc
    Line 85, Patchset 12: ErrorEvent::Create(error_message, location, /*error=*/nullptr);
    Takashi Toyoshima . resolved

    maybe meant `world`?

    Yoshisato Yanagisawa

    Done

    File third_party/blink/renderer/core/workers/shared_worker_reporting_proxy.cc

    https://html.spec.whatwg.org/C/#worker-processing-model is shorter and more consistent with the next link.

    Yoshisato Yanagisawa

    Done

    Line 91, Patchset 12: DCHECK(!IsMainThread());
    Takashi Toyoshima . resolved

    Can we check if this is called only once at most?
    `CHECK(!script_evaluated_);`

    Yoshisato Yanagisawa

    Done

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Hiroki Nakagawa
    • Takashi Toyoshima
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    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: I2ffd326eb8afffad4ff7748f86da1712e8d12fe2
    Gerrit-Change-Number: 6845297
    Gerrit-PatchSet: 16
    Gerrit-Owner: Yoshisato Yanagisawa <yyana...@chromium.org>
    Gerrit-Reviewer: Hiroki Nakagawa <nhi...@chromium.org>
    Gerrit-Reviewer: Takashi Toyoshima <toyo...@chromium.org>
    Gerrit-Reviewer: Yoshisato Yanagisawa <yyana...@chromium.org>
    Gerrit-CC: AI Code Reviewer <peep-gen...@system.gserviceaccount.com>
    Gerrit-CC: Anna Sato <anna...@chromium.org>
    Gerrit-CC: Chromium IPC Reviews <chrome-ip...@google.com>
    Gerrit-CC: gwsq
    Gerrit-Attention: Hiroki Nakagawa <nhi...@chromium.org>
    Gerrit-Attention: Takashi Toyoshima <toyo...@chromium.org>
    Gerrit-Comment-Date: Mon, 18 Aug 2025 09:52:48 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Hiroki Nakagawa <nhi...@chromium.org>
    Comment-In-Reply-To: Takashi Toyoshima <toyo...@chromium.org>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Takashi Toyoshima (Gerrit)

    unread,
    Aug 19, 2025, 3:09:02 AMAug 19
    to Yoshisato Yanagisawa, Anna Sato, Chromium IPC Reviews, AI Code Reviewer, AyeAye, Hiroki Nakagawa, Chromium LUCI CQ, chromium...@chromium.org, 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 needed from Hiroki Nakagawa and Yoshisato Yanagisawa

    Takashi Toyoshima added 1 comment

    File third_party/blink/public/mojom/worker/shared_worker_exception_details.mojom
    Line 22, Patchset 16 (Latest): int32 line_number;
    int32 column_number;
    string source_url;
    Takashi Toyoshima . unresolved

    We may use netowrk.mojom.SourceLocation for these triples here?
    services/network/public/mojom/source_location.mojom

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Hiroki Nakagawa
    • Yoshisato Yanagisawa
    Submit Requirements:
      • requirement satisfiedCode-Coverage
      • requirement is not satisfiedCode-Owners
      • requirement is not satisfiedCode-Review
      • requirement is not satisfiedNo-Unresolved-Comments
      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: I2ffd326eb8afffad4ff7748f86da1712e8d12fe2
      Gerrit-Change-Number: 6845297
      Gerrit-PatchSet: 16
      Gerrit-Owner: Yoshisato Yanagisawa <yyana...@chromium.org>
      Gerrit-Reviewer: Hiroki Nakagawa <nhi...@chromium.org>
      Gerrit-Reviewer: Takashi Toyoshima <toyo...@chromium.org>
      Gerrit-Reviewer: Yoshisato Yanagisawa <yyana...@chromium.org>
      Gerrit-CC: AI Code Reviewer <peep-gen...@system.gserviceaccount.com>
      Gerrit-CC: Anna Sato <anna...@chromium.org>
      Gerrit-CC: Chromium IPC Reviews <chrome-ip...@google.com>
      Gerrit-CC: gwsq
      Gerrit-Attention: Yoshisato Yanagisawa <yyana...@chromium.org>
      Gerrit-Attention: Hiroki Nakagawa <nhi...@chromium.org>
      Gerrit-Comment-Date: Tue, 19 Aug 2025 07:08:35 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Hiroki Nakagawa (Gerrit)

      unread,
      Aug 19, 2025, 3:55:41 AMAug 19
      to Yoshisato Yanagisawa, Anna Sato, Chromium IPC Reviews, Takashi Toyoshima, AI Code Reviewer, AyeAye, Chromium LUCI CQ, chromium...@chromium.org, 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 needed from Yoshisato Yanagisawa

      Hiroki Nakagawa voted and added 1 comment

      Votes added by Hiroki Nakagawa

      Code-Review+1

      1 comment

      Patchset-level comments
      File-level comment, Patchset 16 (Latest):
      Hiroki Nakagawa . resolved

      LGTM, thanks!

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Yoshisato Yanagisawa
      Submit Requirements:
        • requirement satisfiedCode-Coverage
        • requirement is not satisfiedCode-Owners
        • requirement satisfiedCode-Review
        • requirement is not satisfiedNo-Unresolved-Comments
        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: I2ffd326eb8afffad4ff7748f86da1712e8d12fe2
        Gerrit-Change-Number: 6845297
        Gerrit-PatchSet: 16
        Gerrit-Owner: Yoshisato Yanagisawa <yyana...@chromium.org>
        Gerrit-Reviewer: Hiroki Nakagawa <nhi...@chromium.org>
        Gerrit-Reviewer: Takashi Toyoshima <toyo...@chromium.org>
        Gerrit-Reviewer: Yoshisato Yanagisawa <yyana...@chromium.org>
        Gerrit-CC: AI Code Reviewer <peep-gen...@system.gserviceaccount.com>
        Gerrit-CC: Anna Sato <anna...@chromium.org>
        Gerrit-CC: Chromium IPC Reviews <chrome-ip...@google.com>
        Gerrit-CC: gwsq
        Gerrit-Attention: Yoshisato Yanagisawa <yyana...@chromium.org>
        Gerrit-Comment-Date: Tue, 19 Aug 2025 07:55:15 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: Yes
        satisfied_requirement
        unsatisfied_requirement
        open
        diffy

        Hiroki Nakagawa (Gerrit)

        unread,
        Aug 19, 2025, 9:18:54 AMAug 19
        to Yoshisato Yanagisawa, Anna Sato, Chromium IPC Reviews, Takashi Toyoshima, AI Code Reviewer, AyeAye, Chromium LUCI CQ, chromium...@chromium.org, blink-re...@chromium.org, 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 needed from Yoshisato Yanagisawa

        Hiroki Nakagawa voted Code-Review+1

        Code-Review+1
        Open in Gerrit

        Related details

        Attention is currently required from:
        • Yoshisato Yanagisawa
        Submit Requirements:
        • requirement satisfiedCode-Coverage
        • requirement is not satisfiedCode-Owners
        • requirement satisfiedCode-Review
        • requirement is not satisfiedNo-Unresolved-Comments
        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: I2ffd326eb8afffad4ff7748f86da1712e8d12fe2
        Gerrit-Change-Number: 6845297
        Gerrit-PatchSet: 18
        Gerrit-Owner: Yoshisato Yanagisawa <yyana...@chromium.org>
        Gerrit-Reviewer: Hiroki Nakagawa <nhi...@chromium.org>
        Gerrit-Reviewer: Takashi Toyoshima <toyo...@chromium.org>
        Gerrit-Reviewer: Yoshisato Yanagisawa <yyana...@chromium.org>
        Gerrit-CC: AI Code Reviewer <peep-gen...@system.gserviceaccount.com>
        Gerrit-CC: Anna Sato <anna...@chromium.org>
        Gerrit-CC: Chromium IPC Reviews <chrome-ip...@google.com>
        Gerrit-CC: gwsq
        Gerrit-Attention: Yoshisato Yanagisawa <yyana...@chromium.org>
        Gerrit-Comment-Date: Tue, 19 Aug 2025 13:18:24 +0000
        Gerrit-HasComments: No
        Gerrit-Has-Labels: Yes
        satisfied_requirement
        unsatisfied_requirement
        open
        diffy

        Yoshisato Yanagisawa (Gerrit)

        unread,
        Aug 19, 2025, 8:53:53 PMAug 19
        to Hiroki Nakagawa, Anna Sato, Chromium IPC Reviews, Takashi Toyoshima, AI Code Reviewer, AyeAye, Chromium LUCI CQ, chromium...@chromium.org, blink-re...@chromium.org, 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 needed from Takashi Toyoshima

        Yoshisato Yanagisawa added 1 comment

        File third_party/blink/public/mojom/worker/shared_worker_exception_details.mojom
        Line 22, Patchset 16: int32 line_number;
        int32 column_number;
        string source_url;
        Takashi Toyoshima . resolved

        We may use netowrk.mojom.SourceLocation for these triples here?
        services/network/public/mojom/source_location.mojom

        Yoshisato Yanagisawa

        Done

        Open in Gerrit

        Related details

        Attention is currently required from:
        • Takashi Toyoshima
        Submit Requirements:
        • requirement satisfiedCode-Coverage
        • requirement is not satisfiedCode-Owners
        • requirement satisfiedCode-Review
        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: I2ffd326eb8afffad4ff7748f86da1712e8d12fe2
        Gerrit-Change-Number: 6845297
        Gerrit-PatchSet: 18
        Gerrit-Owner: Yoshisato Yanagisawa <yyana...@chromium.org>
        Gerrit-Reviewer: Hiroki Nakagawa <nhi...@chromium.org>
        Gerrit-Reviewer: Takashi Toyoshima <toyo...@chromium.org>
        Gerrit-Reviewer: Yoshisato Yanagisawa <yyana...@chromium.org>
        Gerrit-CC: AI Code Reviewer <peep-gen...@system.gserviceaccount.com>
        Gerrit-CC: Anna Sato <anna...@chromium.org>
        Gerrit-CC: Chromium IPC Reviews <chrome-ip...@google.com>
        Gerrit-CC: gwsq
        Gerrit-Attention: Takashi Toyoshima <toyo...@chromium.org>
        Gerrit-Comment-Date: Wed, 20 Aug 2025 00:53:20 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: No
        Comment-In-Reply-To: Takashi Toyoshima <toyo...@chromium.org>
        satisfied_requirement
        unsatisfied_requirement
        open
        diffy

        Takashi Toyoshima (Gerrit)

        unread,
        Aug 20, 2025, 1:43:59 AMAug 20
        to Yoshisato Yanagisawa, Hiroki Nakagawa, Anna Sato, Chromium IPC Reviews, AI Code Reviewer, AyeAye, Chromium LUCI CQ, chromium...@chromium.org, blink-re...@chromium.org, 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 needed from Yoshisato Yanagisawa

        Takashi Toyoshima voted Code-Review+1

        Code-Review+1
        Open in Gerrit

        Related details

        Attention is currently required from:
        • Yoshisato Yanagisawa
        Submit Requirements:
        • requirement satisfiedCode-Coverage
        • requirement is not satisfiedCode-Owners
        • requirement satisfiedCode-Review
        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: I2ffd326eb8afffad4ff7748f86da1712e8d12fe2
        Gerrit-Change-Number: 6845297
        Gerrit-PatchSet: 18
        Gerrit-Owner: Yoshisato Yanagisawa <yyana...@chromium.org>
        Gerrit-Reviewer: Hiroki Nakagawa <nhi...@chromium.org>
        Gerrit-Reviewer: Takashi Toyoshima <toyo...@chromium.org>
        Gerrit-Reviewer: Yoshisato Yanagisawa <yyana...@chromium.org>
        Gerrit-CC: AI Code Reviewer <peep-gen...@system.gserviceaccount.com>
        Gerrit-CC: Anna Sato <anna...@chromium.org>
        Gerrit-CC: Chromium IPC Reviews <chrome-ip...@google.com>
        Gerrit-CC: gwsq
        Gerrit-Attention: Yoshisato Yanagisawa <yyana...@chromium.org>
        Gerrit-Comment-Date: Wed, 20 Aug 2025 05:43:31 +0000
        Gerrit-HasComments: No
        Gerrit-Has-Labels: Yes
        satisfied_requirement
        unsatisfied_requirement
        open
        diffy

        Yoshisato Yanagisawa (Gerrit)

        unread,
        Aug 20, 2025, 2:00:39 AMAug 20
        to Kent Tamura, Takashi Toyoshima, Hiroki Nakagawa, Anna Sato, Chromium IPC Reviews, AI Code Reviewer, AyeAye, Chromium LUCI CQ, chromium...@chromium.org, blink-re...@chromium.org, 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 needed from Kent Tamura

        Yoshisato Yanagisawa added 1 comment

        Patchset-level comments
        File-level comment, Patchset 18 (Latest):
        Yoshisato Yanagisawa . resolved

        Can I ask you to review the BUILD.gn?
        I have added shared_worker_exception_details.mojom, which has a struct used by other mojom files. When SharedWorker error happens during its set up time, it need to report that to the client. The client needs to know details of the exceptions and the struct contains them.

        Open in Gerrit

        Related details

        Attention is currently required from:
        • Kent Tamura
        Submit Requirements:
        • requirement satisfiedCode-Coverage
        • requirement is not satisfiedCode-Owners
        • requirement satisfiedCode-Review
        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: I2ffd326eb8afffad4ff7748f86da1712e8d12fe2
        Gerrit-Change-Number: 6845297
        Gerrit-PatchSet: 18
        Gerrit-Owner: Yoshisato Yanagisawa <yyana...@chromium.org>
        Gerrit-Reviewer: Hiroki Nakagawa <nhi...@chromium.org>
        Gerrit-Reviewer: Kent Tamura <tk...@chromium.org>
        Gerrit-Reviewer: Takashi Toyoshima <toyo...@chromium.org>
        Gerrit-Reviewer: Yoshisato Yanagisawa <yyana...@chromium.org>
        Gerrit-CC: AI Code Reviewer <peep-gen...@system.gserviceaccount.com>
        Gerrit-CC: Anna Sato <anna...@chromium.org>
        Gerrit-CC: Chromium IPC Reviews <chrome-ip...@google.com>
        Gerrit-CC: gwsq
        Gerrit-Attention: Kent Tamura <tk...@chromium.org>
        Gerrit-Comment-Date: Wed, 20 Aug 2025 06:00:10 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: No
        satisfied_requirement
        unsatisfied_requirement
        open
        diffy

        Kent Tamura (Gerrit)

        unread,
        Aug 20, 2025, 2:05:06 AMAug 20
        to Yoshisato Yanagisawa, Kent Tamura, Takashi Toyoshima, Hiroki Nakagawa, Anna Sato, Chromium IPC Reviews, AI Code Reviewer, AyeAye, Chromium LUCI CQ, chromium...@chromium.org, blink-re...@chromium.org, 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 needed from Yoshisato Yanagisawa

        Kent Tamura voted Code-Review+1

        Code-Review+1
        Open in Gerrit

        Related details

        Attention is currently required from:
        • Yoshisato Yanagisawa
        Submit Requirements:
        • requirement satisfiedCode-Coverage
        • requirement satisfiedCode-Owners
        • requirement satisfiedCode-Review
        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: I2ffd326eb8afffad4ff7748f86da1712e8d12fe2
        Gerrit-Change-Number: 6845297
        Gerrit-PatchSet: 18
        Gerrit-Owner: Yoshisato Yanagisawa <yyana...@chromium.org>
        Gerrit-Reviewer: Hiroki Nakagawa <nhi...@chromium.org>
        Gerrit-Reviewer: Kent Tamura <tk...@chromium.org>
        Gerrit-Reviewer: Takashi Toyoshima <toyo...@chromium.org>
        Gerrit-Reviewer: Yoshisato Yanagisawa <yyana...@chromium.org>
        Gerrit-CC: AI Code Reviewer <peep-gen...@system.gserviceaccount.com>
        Gerrit-CC: Anna Sato <anna...@chromium.org>
        Gerrit-CC: Chromium IPC Reviews <chrome-ip...@google.com>
        Gerrit-CC: gwsq
        Gerrit-Attention: Yoshisato Yanagisawa <yyana...@chromium.org>
        Gerrit-Comment-Date: Wed, 20 Aug 2025 06:04:36 +0000
        Gerrit-HasComments: No
        Gerrit-Has-Labels: Yes
        satisfied_requirement
        open
        diffy

        Yoshisato Yanagisawa (Gerrit)

        unread,
        Aug 20, 2025, 3:34:43 AMAug 20
        to Kent Tamura, Takashi Toyoshima, Hiroki Nakagawa, Anna Sato, Chromium IPC Reviews, AI Code Reviewer, AyeAye, Chromium LUCI CQ, chromium...@chromium.org, blink-re...@chromium.org, 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

        Yoshisato Yanagisawa voted Commit-Queue+2

        Commit-Queue+2
        Open in Gerrit

        Related details

        Attention set is empty
        Submit Requirements:
        • requirement satisfiedCode-Coverage
        • requirement satisfiedCode-Owners
        • requirement satisfiedCode-Review
        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: I2ffd326eb8afffad4ff7748f86da1712e8d12fe2
        Gerrit-Change-Number: 6845297
        Gerrit-PatchSet: 18
        Gerrit-Owner: Yoshisato Yanagisawa <yyana...@chromium.org>
        Gerrit-Reviewer: Hiroki Nakagawa <nhi...@chromium.org>
        Gerrit-Reviewer: Kent Tamura <tk...@chromium.org>
        Gerrit-Reviewer: Takashi Toyoshima <toyo...@chromium.org>
        Gerrit-Reviewer: Yoshisato Yanagisawa <yyana...@chromium.org>
        Gerrit-CC: AI Code Reviewer <peep-gen...@system.gserviceaccount.com>
        Gerrit-CC: Anna Sato <anna...@chromium.org>
        Gerrit-CC: Chromium IPC Reviews <chrome-ip...@google.com>
        Gerrit-CC: gwsq
        Gerrit-Comment-Date: Wed, 20 Aug 2025 07:34:17 +0000
        Gerrit-HasComments: No
        Gerrit-Has-Labels: Yes
        satisfied_requirement
        open
        diffy

        Chromium LUCI CQ (Gerrit)

        unread,
        Aug 20, 2025, 3:37:49 AMAug 20
        to Yoshisato Yanagisawa, Kent Tamura, Takashi Toyoshima, Hiroki Nakagawa, Anna Sato, Chromium IPC Reviews, AI Code Reviewer, AyeAye, chromium...@chromium.org, blink-re...@chromium.org, 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

        Chromium LUCI CQ submitted the change

        Change information

        Commit message:
        [SharedWorker] Implement exception reporting

        This patch implements the previously missing exception
        reporting for Shared Workers. When an unhandled exception
        occurs in a worker, the details are now propagated to all
        connected clients.

        To align with the HTML specification and pass relevant Web
        Platform Tests, this change distinguishes between script
        evaluation errors and runtime errors. A generic `Event` is
        dispatched for script errors (e.g., parse errors), while a
        detailed `ErrorEvent` is dispatched for runtime exceptions.

        This is achieved by:
        - `SharedWorkerGlobalScope` reporting all exceptions to its
        `SharedWorkerReportingProxy`.
        - The proxy tracks whether the top-level script has finished
        evaluation. It prevents reporting of exceptions that occur
        after evaluation (i.e., runtime errors).
        - For pre-evaluation errors, the proxy uses a heuristic to
        distinguish script parse errors from other evaluation-time
        errors by checking for "SyntaxError" in the message. This
        determines the value of an `is_eval_error` boolean.
        - This boolean is passed through the `OnReportException`
        Mojo IPC call from the worker, to the browser process (
        `SharedWorkerHost`), and then to all connected renderer
        clients (`SharedWorkerClient`).
        - The `SharedWorkerClient` uses `is_eval_error` to dispatch
        the appropriate event type (`Event` for parse errors,
        `ErrorEvent` otherwise) to the `worker.onerror` handler.

        This change improves the debugging experience by making
        runtime errors visible in the developer console, while
        correctly handling script evaluation failures.
        Bug: 412384494
        Change-Id: I2ffd326eb8afffad4ff7748f86da1712e8d12fe2
        Reviewed-by: Kent Tamura <tk...@chromium.org>
        Commit-Queue: Yoshisato Yanagisawa <yyana...@chromium.org>
        Reviewed-by: Hiroki Nakagawa <nhi...@chromium.org>
        Reviewed-by: Takashi Toyoshima <toyo...@chromium.org>
        Cr-Commit-Position: refs/heads/main@{#1503791}
        Files:
        • M content/browser/worker_host/mock_shared_worker.cc
        • M content/browser/worker_host/mock_shared_worker.h
        • M content/browser/worker_host/shared_worker_host.cc
        • M content/browser/worker_host/shared_worker_host.h
        • M content/browser/worker_host/shared_worker_host_unittest.cc
        • M third_party/blink/public/mojom/BUILD.gn
        • M third_party/blink/public/mojom/worker/shared_worker_client.mojom
        • A third_party/blink/public/mojom/worker/shared_worker_exception_details.mojom
        • M third_party/blink/public/mojom/worker/shared_worker_host.mojom
        • M third_party/blink/renderer/core/exported/web_shared_worker_impl.cc
        • M third_party/blink/renderer/core/exported/web_shared_worker_impl.h
        • M third_party/blink/renderer/core/workers/shared_worker_client.cc
        • M third_party/blink/renderer/core/workers/shared_worker_client.h
        • M third_party/blink/renderer/core/workers/shared_worker_reporting_proxy.cc
        • M third_party/blink/renderer/core/workers/shared_worker_reporting_proxy.h
        • M third_party/blink/web_tests/TestExpectations
        Change size: L
        Delta: 16 files changed, 250 insertions(+), 15 deletions(-)
        Branch: refs/heads/main
        Submit Requirements:
        • requirement satisfiedCode-Review: +1 by Hiroki Nakagawa, +1 by Takashi Toyoshima, +1 by Kent Tamura
        Open in Gerrit
        Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
        Gerrit-MessageType: merged
        Gerrit-Project: chromium/src
        Gerrit-Branch: main
        Gerrit-Change-Id: I2ffd326eb8afffad4ff7748f86da1712e8d12fe2
        Gerrit-Change-Number: 6845297
        Gerrit-PatchSet: 19
        Gerrit-Owner: Yoshisato Yanagisawa <yyana...@chromium.org>
        Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
        Gerrit-Reviewer: Hiroki Nakagawa <nhi...@chromium.org>
        Gerrit-Reviewer: Kent Tamura <tk...@chromium.org>
        Gerrit-Reviewer: Takashi Toyoshima <toyo...@chromium.org>
        Gerrit-Reviewer: Yoshisato Yanagisawa <yyana...@chromium.org>
        Gerrit-CC: AI Code Reviewer <peep-gen...@system.gserviceaccount.com>
        Gerrit-CC: Anna Sato <anna...@chromium.org>
        Gerrit-CC: Chromium IPC Reviews <chrome-ip...@google.com>
        Gerrit-CC: gwsq
        open
        diffy
        satisfied_requirement
        Reply all
        Reply to author
        Forward
        0 new messages