Skip to content

Replace UnknownError with specific DOMException types. - #339

Merged
markafoltz merged 5 commits into
mainfrom
fix-execution-errors
Oct 8, 2026
Merged

markafoltz merged 5 commits into
mainfrom
fix-execution-errors

Conversation

@markafoltz

@markafoltz markafoltz commented Oct 7, 2026 •

Copy link
Copy Markdown
Collaborator

Addresses #323.


Preview | Diff

Comment thread index.bs Outdated
@markafoltz
markafoltz requested review from bwalderman and domfarolino and removed request for domfarolino October 7, 2026 17:07
@domfarolino
domfarolino self-requested a review October 7, 2026 18:38
Comment thread index.bs Outdated
Comment thread index.bs
@markafoltz
markafoltz merged commit b206dae into main Oct 8, 2026
2 checks passed
@markafoltz
markafoltz deleted the fix-execution-errors branch October 8, 2026 17:58
@markafoltz

Copy link
Copy Markdown
Collaborator Author

@bwalderman PTAL and let me know if you have any feedback or suggested improvements!

beckysiegel pushed a commit to chromium/chromium that referenced this pull request Oct 16, 2026
Spec change: webmachinelearning/webmcp#339

Updates ModelContext.executeTool() to reject with specific DOMException
types instead of UnknownError.

Implementation details:
- Moves ScriptToolErrorCode into script_tools.mojom for target-
  renderer to browser-process reporting.
- Introduces ExecuteRemoteScriptToolError in script_tools.mojom for
  reporting a subset of errors to calling frames.
- Updates WPT to verify the new exception behavior.

Bug: 509555636
Change-Id: I64d89525ac15af05250971a1ccc76e5964b41084
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/8546218
Reviewed-by: Fr <beaufort.francois@gmail.com>
Reviewed-by: Alex Moshchuk <alexmos@chromium.org>
Commit-Queue: Mark Foltz <mfoltz@chromium.org>
Reviewed-by: Dominic Farolino <dom@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1720407}
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this pull request Oct 16, 2026
Spec change: webmachinelearning/webmcp#339

Updates ModelContext.executeTool() to reject with specific DOMException
types instead of UnknownError.

Implementation details:
- Moves ScriptToolErrorCode into script_tools.mojom for target-
  renderer to browser-process reporting.
- Introduces ExecuteRemoteScriptToolError in script_tools.mojom for
  reporting a subset of errors to calling frames.
- Updates WPT to verify the new exception behavior.

Bug: 509555636
Change-Id: I64d89525ac15af05250971a1ccc76e5964b41084
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/8546218
Reviewed-by: Fr <beaufort.francois@gmail.com>
Reviewed-by: Alex Moshchuk <alexmos@chromium.org>
Commit-Queue: Mark Foltz <mfoltz@chromium.org>
Reviewed-by: Dominic Farolino <dom@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1720407}
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this pull request Oct 16, 2026
Spec change: webmachinelearning/webmcp#339

Updates ModelContext.executeTool() to reject with specific DOMException
types instead of UnknownError.

Implementation details:
- Moves ScriptToolErrorCode into script_tools.mojom for target-
  renderer to browser-process reporting.
- Introduces ExecuteRemoteScriptToolError in script_tools.mojom for
  reporting a subset of errors to calling frames.
- Updates WPT to verify the new exception behavior.

Bug: 509555636
Change-Id: I64d89525ac15af05250971a1ccc76e5964b41084
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/8546218
Reviewed-by: Fr <beaufort.francois@gmail.com>
Reviewed-by: Alex Moshchuk <alexmos@chromium.org>
Commit-Queue: Mark Foltz <mfoltz@chromium.org>
Reviewed-by: Dominic Farolino <dom@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1720407}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants