[WebMCP] Add AbortSignal support to ExecuteTool for imperative tools [chromium/src : main]

38 views
Skip to first unread message

Fr (Gerrit)

unread,
Feb 3, 2026, 3:39:18 AM (8 days ago) Feb 3
to Anders Hartvoll Ruud, Chromium LUCI CQ, chromium...@chromium.org, Kentaro Hara, Raphael Kubo da Costa, blink-revie...@chromium.org, blink-...@chromium.org, jmedle...@chromium.org
Attention needed from Anders Hartvoll Ruud

Fr voted and added 1 comment

Votes added by Fr

Commit-Queue+1

1 comment

Patchset-level comments
Open in Gerrit

Related details

Attention is currently required from:
  • Anders Hartvoll Ruud
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: Ie92b43972431b3753eb7dc898efe850574b5c325
Gerrit-Change-Number: 7531666
Gerrit-PatchSet: 3
Gerrit-Owner: Fr <beaufort...@gmail.com>
Gerrit-Reviewer: Anders Hartvoll Ruud <and...@chromium.org>
Gerrit-Reviewer: Fr <beaufort...@gmail.com>
Gerrit-CC: Kentaro Hara <har...@chromium.org>
Gerrit-CC: Raphael Kubo da Costa <ku...@igalia.com>
Gerrit-Attention: Anders Hartvoll Ruud <and...@chromium.org>
Gerrit-Comment-Date: Tue, 03 Feb 2026 08:39:02 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

Anders Hartvoll Ruud (Gerrit)

unread,
Feb 3, 2026, 2:14:54 PM (8 days ago) Feb 3
to Fr, Mason Freed, Chromium LUCI CQ, chromium...@chromium.org, Kentaro Hara, Raphael Kubo da Costa, blink-revie...@chromium.org, blink-...@chromium.org, jmedle...@chromium.org
Attention needed from Fr and Mason Freed

Anders Hartvoll Ruud added 2 comments

Patchset-level comments
Anders Hartvoll Ruud . resolved

I can review this if there are no other good options available, but ideally we would try someone with the faintest clue about `AbortSignal` first.

File third_party/blink/renderer/core/script_tools/model_context_testing.cc
Line 62, Patchset 3 (Latest): if (options->hasSignal() && options->signal()->aborted()) {
resolver->Reject(options->signal()->reason(script_state));
return promise;
}
Anders Hartvoll Ruud . unresolved

We might want to test this insta-abort path?

Open in Gerrit

Related details

Attention is currently required from:
  • Fr
  • Mason Freed
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: Ie92b43972431b3753eb7dc898efe850574b5c325
    Gerrit-Change-Number: 7531666
    Gerrit-PatchSet: 3
    Gerrit-Owner: Fr <beaufort...@gmail.com>
    Gerrit-Reviewer: Fr <beaufort...@gmail.com>
    Gerrit-Reviewer: Mason Freed <mas...@chromium.org>
    Gerrit-CC: Anders Hartvoll Ruud <and...@chromium.org>
    Gerrit-CC: Kentaro Hara <har...@chromium.org>
    Gerrit-CC: Raphael Kubo da Costa <ku...@igalia.com>
    Gerrit-Attention: Mason Freed <mas...@chromium.org>
    Gerrit-Attention: Fr <beaufort...@gmail.com>
    Gerrit-Comment-Date: Tue, 03 Feb 2026 19:14:41 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Mason Freed (Gerrit)

    unread,
    Feb 3, 2026, 5:28:10 PM (8 days ago) Feb 3
    to Fr, Anders Hartvoll Ruud, Chromium LUCI CQ, chromium...@chromium.org, Kentaro Hara, Raphael Kubo da Costa, blink-revie...@chromium.org, blink-...@chromium.org, jmedle...@chromium.org
    Attention needed from Fr

    Mason Freed added 7 comments

    Patchset-level comments
    Mason Freed . resolved

    Looks ok to me, with mostly nits and small things.

    File third_party/blink/renderer/core/exported/web_document.cc
    Line 416, Patchset 3 (Latest): return model_context->ExecuteTool(name, input_arguments, nullptr,
    Mason Freed . unresolved

    Can you add a (big!) TODO to plumb this into the browser side? Otherwise, this patch doesn't do anything observable, other than the testing interface, right?

    And in the meantime:
    nit: can you add `/*signal=*/nullptr` here?

    File third_party/blink/renderer/core/script_tools/model_context.h
    Line 124, Patchset 3 (Latest): base::expected<String, WebDocument::ScriptToolError>)>>
    Mason Freed . unresolved

    I wonder if you need couldn't keep re-using ScriptToolExecutedCallback here, by using WebString instead/somehow?

    File third_party/blink/renderer/core/script_tools/model_context.cc
    Line 225, Patchset 3 (Latest): // TODO: crbug.com/479598776 - Add support for tracking execution of
    Mason Freed . unresolved

    Perhaps you could add another TODO here, for adding `signal` support?

    File third_party/blink/renderer/core/script_tools/model_context_test.cc
    Line 595, Patchset 3 (Latest): "echo", "{\"text\": \"hello\"}", nullptr,
    Mason Freed . unresolved

    Seems like it might be worth adding at least one test case to this file where a signal is provided and aborted?

    File third_party/blink/renderer/core/script_tools/model_context_testing.cc
    Line 62, Patchset 3 (Latest): if (options->hasSignal() && options->signal()->aborted()) {
    resolver->Reject(options->signal()->reason(script_state));
    return promise;
    }
    Anders Hartvoll Ruud . unresolved

    We might want to test this insta-abort path?

    Mason Freed

    +1, but also, should this block actually reside in `ExecuteTool()` itself? I.e. it seems like if the signal is already aborted, we shouldn't execute the tool. As it stands, that's only the case for the testing interface.

    File third_party/blink/web_tests/fast/webmcp/execute_tool.html
    Line 29, Patchset 3 (Latest): await new Promise(r => { setTimeout(r, 1000); });
    Mason Freed . unresolved

    Might want to go a bit longer, just to avoid flakiness due to slow bots? Like `5000` maybe?

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Fr
    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: Ie92b43972431b3753eb7dc898efe850574b5c325
    Gerrit-Change-Number: 7531666
    Gerrit-PatchSet: 3
    Gerrit-Owner: Fr <beaufort...@gmail.com>
    Gerrit-Reviewer: Fr <beaufort...@gmail.com>
    Gerrit-Reviewer: Mason Freed <mas...@chromium.org>
    Gerrit-CC: Anders Hartvoll Ruud <and...@chromium.org>
    Gerrit-CC: Kentaro Hara <har...@chromium.org>
    Gerrit-CC: Raphael Kubo da Costa <ku...@igalia.com>
    Gerrit-Attention: Fr <beaufort...@gmail.com>
    Gerrit-Comment-Date: Tue, 03 Feb 2026 22:28:01 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Anders Hartvoll Ruud <and...@chromium.org>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Fr (Gerrit)

    unread,
    Feb 4, 2026, 5:37:51 AM (7 days ago) Feb 4
    to Mason Freed, Anders Hartvoll Ruud, Chromium LUCI CQ, chromium...@chromium.org, Kentaro Hara, Raphael Kubo da Costa, blink-revie...@chromium.org, blink-...@chromium.org, jmedle...@chromium.org
    Attention needed from Anders Hartvoll Ruud and Mason Freed

    Fr added 7 comments

    Patchset-level comments
    File-level comment, Patchset 4 (Latest):
    Fr . resolved

    Thanks for the review!

    File third_party/blink/renderer/core/exported/web_document.cc
    Line 416, Patchset 3: return model_context->ExecuteTool(name, input_arguments, nullptr,
    Mason Freed . resolved

    Can you add a (big!) TODO to plumb this into the browser side? Otherwise, this patch doesn't do anything observable, other than the testing interface, right?

    And in the meantime:
    nit: can you add `/*signal=*/nullptr` here?

    Fr

    Done

    File third_party/blink/renderer/core/script_tools/model_context.h
    Line 124, Patchset 3: base::expected<String, WebDocument::ScriptToolError>)>>
    Mason Freed . unresolved

    I wonder if you need couldn't keep re-using ScriptToolExecutedCallback here, by using WebString instead/somehow?

    Fr

    How would you do that?

    File third_party/blink/renderer/core/script_tools/model_context.cc
    Line 225, Patchset 3: // TODO: crbug.com/479598776 - Add support for tracking execution of
    Mason Freed . resolved

    Perhaps you could add another TODO here, for adding `signal` support?

    Fr

    Done

    File third_party/blink/renderer/core/script_tools/model_context_test.cc
    Line 595, Patchset 3: "echo", "{\"text\": \"hello\"}", nullptr,
    Mason Freed . resolved

    Seems like it might be worth adding at least one test case to this file where a signal is provided and aborted?

    Fr

    Done

    File third_party/blink/renderer/core/script_tools/model_context_testing.cc
    Line 62, Patchset 3: if (options->hasSignal() && options->signal()->aborted()) {

    resolver->Reject(options->signal()->reason(script_state));
    return promise;
    }
    Anders Hartvoll Ruud . resolved

    We might want to test this insta-abort path?

    Mason Freed

    +1, but also, should this block actually reside in `ExecuteTool()` itself? I.e. it seems like if the signal is already aborted, we shouldn't execute the tool. As it stands, that's only the case for the testing interface.

    Fr

    I've moved this.

    File third_party/blink/web_tests/fast/webmcp/execute_tool.html
    Line 29, Patchset 3: await new Promise(r => { setTimeout(r, 1000); });
    Mason Freed . resolved

    Might want to go a bit longer, just to avoid flakiness due to slow bots? Like `5000` maybe?

    Fr

    Done

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Anders Hartvoll Ruud
    • Mason Freed
    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: Ie92b43972431b3753eb7dc898efe850574b5c325
    Gerrit-Change-Number: 7531666
    Gerrit-PatchSet: 4
    Gerrit-Owner: Fr <beaufort...@gmail.com>
    Gerrit-Reviewer: Fr <beaufort...@gmail.com>
    Gerrit-Reviewer: Mason Freed <mas...@chromium.org>
    Gerrit-CC: Anders Hartvoll Ruud <and...@chromium.org>
    Gerrit-CC: Kentaro Hara <har...@chromium.org>
    Gerrit-CC: Raphael Kubo da Costa <ku...@igalia.com>
    Gerrit-Attention: Mason Freed <mas...@chromium.org>
    Gerrit-Attention: Anders Hartvoll Ruud <and...@chromium.org>
    Gerrit-Comment-Date: Wed, 04 Feb 2026 10:37:36 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Mason Freed <mas...@chromium.org>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Mason Freed (Gerrit)

    unread,
    Feb 4, 2026, 5:42:08 PM (7 days ago) Feb 4
    to Fr, Anders Hartvoll Ruud, Chromium LUCI CQ, chromium...@chromium.org, Kentaro Hara, Raphael Kubo da Costa, blink-revie...@chromium.org, blink-...@chromium.org, jmedle...@chromium.org
    Attention needed from Anders Hartvoll Ruud and Fr

    Mason Freed added 6 comments

    File third_party/blink/renderer/core/exported/web_document.cc
    Line 416, Patchset 4 (Latest): // TODO(475998009): PLUMB SIGNAL TO THE BROWSER SIDE!
    Mason Freed . unresolved

    So this is a closed bug (that I own!). Would you mind filing one with the context for this connection? I.e. a bug about finishing the implementation of AbortSignal in tools?

    File third_party/blink/renderer/core/script_tools/model_context.h
    Line 124, Patchset 4 (Latest): base::OnceCallback<void(

    base::expected<String, WebDocument::ScriptToolError>)>
    callback;
    Mason Freed . unresolved

    1. undo this change.

    Line 124, Patchset 3: base::expected<String, WebDocument::ScriptToolError>)>>
    Mason Freed . unresolved

    I wonder if you need couldn't keep re-using ScriptToolExecutedCallback here, by using WebString instead/somehow?

    Fr

    How would you do that?

    Mason Freed

    I'm likely missing something! But see the two *numbered* comments below...

    File third_party/blink/renderer/core/script_tools/model_context.cc
    Line 236, Patchset 4 (Latest): // TODO(475998009): Add signal support for declarative tools.
    Mason Freed . unresolved

    ditto

    Line 372, Patchset 4 (Latest): base::expected<String, WebDocument::ScriptToolError> result) {
    Mason Freed . unresolved

    2. change this to `WebString`

    File third_party/blink/web_tests/fast/webmcp/execute_tool.html
    Line 119, Patchset 4 (Latest): setTimeout(() => { controller.abort('aborted after 500ms'); }, 500);
    Mason Freed . unresolved

    nit: maybe `aborted after 500ms (this is expected)` ?

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Anders Hartvoll Ruud
    • Fr
    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: Ie92b43972431b3753eb7dc898efe850574b5c325
    Gerrit-Change-Number: 7531666
    Gerrit-PatchSet: 4
    Gerrit-Owner: Fr <beaufort...@gmail.com>
    Gerrit-Reviewer: Fr <beaufort...@gmail.com>
    Gerrit-Reviewer: Mason Freed <mas...@chromium.org>
    Gerrit-CC: Anders Hartvoll Ruud <and...@chromium.org>
    Gerrit-CC: Kentaro Hara <har...@chromium.org>
    Gerrit-CC: Raphael Kubo da Costa <ku...@igalia.com>
    Gerrit-Attention: Fr <beaufort...@gmail.com>
    Gerrit-Attention: Anders Hartvoll Ruud <and...@chromium.org>
    Gerrit-Comment-Date: Wed, 04 Feb 2026 22:41:59 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Fr <beaufort...@gmail.com>
    Comment-In-Reply-To: Mason Freed <mas...@chromium.org>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Fr (Gerrit)

    unread,
    Feb 5, 2026, 3:27:45 AM (6 days ago) Feb 5
    to Mason Freed, Anders Hartvoll Ruud, Chromium LUCI CQ, chromium...@chromium.org, Kentaro Hara, Raphael Kubo da Costa, blink-revie...@chromium.org, blink-...@chromium.org, jmedle...@chromium.org
    Attention needed from Anders Hartvoll Ruud and Mason Freed

    Fr added 6 comments

    File third_party/blink/renderer/core/exported/web_document.cc
    Line 416, Patchset 4: // TODO(475998009): PLUMB SIGNAL TO THE BROWSER SIDE!
    Mason Freed . resolved

    So this is a closed bug (that I own!). Would you mind filing one with the context for this connection? I.e. a bug about finishing the implementation of AbortSignal in tools?

    Fr

    Done

    File third_party/blink/renderer/core/script_tools/model_context.h
    Line 124, Patchset 4: base::OnceCallback<void(

    base::expected<String, WebDocument::ScriptToolError>)>
    callback;
    Mason Freed . resolved

    1. undo this change.

    Fr

    Done

    Line 124, Patchset 3: base::expected<String, WebDocument::ScriptToolError>)>>
    Mason Freed . resolved

    I wonder if you need couldn't keep re-using ScriptToolExecutedCallback here, by using WebString instead/somehow?

    Fr

    How would you do that?

    Mason Freed

    I'm likely missing something! But see the two *numbered* comments below...

    Fr

    🙏 I get what you meant now ;)

    File third_party/blink/renderer/core/script_tools/model_context.cc
    Line 236, Patchset 4: // TODO(475998009): Add signal support for declarative tools.
    Mason Freed . resolved

    ditto

    Fr

    Done

    Line 372, Patchset 4: base::expected<String, WebDocument::ScriptToolError> result) {
    Mason Freed . resolved

    2. change this to `WebString`

    Fr

    Done

    File third_party/blink/web_tests/fast/webmcp/execute_tool.html
    Line 119, Patchset 4: setTimeout(() => { controller.abort('aborted after 500ms'); }, 500);
    Mason Freed . resolved

    nit: maybe `aborted after 500ms (this is expected)` ?

    Fr

    Done

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Anders Hartvoll Ruud
    • Mason Freed
    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: Ie92b43972431b3753eb7dc898efe850574b5c325
      Gerrit-Change-Number: 7531666
      Gerrit-PatchSet: 6
      Gerrit-Owner: Fr <beaufort...@gmail.com>
      Gerrit-Reviewer: Fr <beaufort...@gmail.com>
      Gerrit-Reviewer: Mason Freed <mas...@chromium.org>
      Gerrit-CC: Anders Hartvoll Ruud <and...@chromium.org>
      Gerrit-CC: Kentaro Hara <har...@chromium.org>
      Gerrit-CC: Raphael Kubo da Costa <ku...@igalia.com>
      Gerrit-Attention: Mason Freed <mas...@chromium.org>
      Gerrit-Attention: Anders Hartvoll Ruud <and...@chromium.org>
      Gerrit-Comment-Date: Thu, 05 Feb 2026 08:27:30 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      Comment-In-Reply-To: Mason Freed <mas...@chromium.org>
      Comment-In-Reply-To: Fr <beaufort...@gmail.com>
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Mason Freed (Gerrit)

      unread,
      Feb 5, 2026, 3:17:03 PM (6 days ago) Feb 5
      to Fr, Anders Hartvoll Ruud, Chromium LUCI CQ, chromium...@chromium.org, Kentaro Hara, Raphael Kubo da Costa, blink-revie...@chromium.org, blink-...@chromium.org, jmedle...@chromium.org
      Attention needed from Anders Hartvoll Ruud and Fr

      Mason Freed voted and added 2 comments

      Votes added by Mason Freed

      Code-Review+1

      2 comments

      Patchset-level comments
      File-level comment, Patchset 6 (Latest):
      Mason Freed . resolved

      Thanks!

      File third_party/blink/renderer/core/exported/web_document.cc
      Line 416, Patchset 4: // TODO(475998009): PLUMB SIGNAL TO THE BROWSER SIDE!
      Mason Freed . resolved

      So this is a closed bug (that I own!). Would you mind filing one with the context for this connection? I.e. a bug about finishing the implementation of AbortSignal in tools?

      Fr

      Done

      Mason Freed

      Awesome, thank you.

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Anders Hartvoll Ruud
      • Fr
      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: Ie92b43972431b3753eb7dc898efe850574b5c325
      Gerrit-Change-Number: 7531666
      Gerrit-PatchSet: 6
      Gerrit-Owner: Fr <beaufort...@gmail.com>
      Gerrit-Reviewer: Fr <beaufort...@gmail.com>
      Gerrit-Reviewer: Mason Freed <mas...@chromium.org>
      Gerrit-CC: Anders Hartvoll Ruud <and...@chromium.org>
      Gerrit-CC: Kentaro Hara <har...@chromium.org>
      Gerrit-CC: Raphael Kubo da Costa <ku...@igalia.com>
      Gerrit-Attention: Fr <beaufort...@gmail.com>
      Gerrit-Attention: Anders Hartvoll Ruud <and...@chromium.org>
      Gerrit-Comment-Date: Thu, 05 Feb 2026 20:16:46 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: Yes
      satisfied_requirement
      open
      diffy

      Fr (Gerrit)

      unread,
      Feb 5, 2026, 3:25:24 PM (6 days ago) Feb 5
      to Mason Freed, Anders Hartvoll Ruud, Chromium LUCI CQ, chromium...@chromium.org, Kentaro Hara, Raphael Kubo da Costa, blink-revie...@chromium.org, blink-...@chromium.org, jmedle...@chromium.org
      Attention needed from Anders Hartvoll Ruud

      Fr voted Commit-Queue+2

      Commit-Queue+2
      Open in Gerrit

      Related details

      Attention is currently required from:
      • Anders Hartvoll Ruud
      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: Ie92b43972431b3753eb7dc898efe850574b5c325
      Gerrit-Change-Number: 7531666
      Gerrit-PatchSet: 6
      Gerrit-Owner: Fr <beaufort...@gmail.com>
      Gerrit-Reviewer: Fr <beaufort...@gmail.com>
      Gerrit-Reviewer: Mason Freed <mas...@chromium.org>
      Gerrit-CC: Anders Hartvoll Ruud <and...@chromium.org>
      Gerrit-CC: Kentaro Hara <har...@chromium.org>
      Gerrit-CC: Raphael Kubo da Costa <ku...@igalia.com>
      Gerrit-Attention: Anders Hartvoll Ruud <and...@chromium.org>
      Gerrit-Comment-Date: Thu, 05 Feb 2026 20:25:10 +0000
      Gerrit-HasComments: No
      Gerrit-Has-Labels: Yes
      satisfied_requirement
      open
      diffy

      Fr (Gerrit)

      unread,
      Feb 6, 2026, 2:39:02 AM (5 days ago) Feb 6
      to Mason Freed, Anders Hartvoll Ruud, Chromium LUCI CQ, chromium...@chromium.org, Kentaro Hara, Raphael Kubo da Costa, blink-revie...@chromium.org, blink-...@chromium.org, jmedle...@chromium.org
      Gerrit-Comment-Date: Fri, 06 Feb 2026 07:38:48 +0000
      Gerrit-HasComments: No
      Gerrit-Has-Labels: Yes
      satisfied_requirement
      open
      diffy

      Fr (Gerrit)

      unread,
      Feb 6, 2026, 3:30:38 AM (5 days ago) Feb 6
      to Mason Freed, Anders Hartvoll Ruud, Chromium LUCI CQ, chromium...@chromium.org, Kentaro Hara, Raphael Kubo da Costa, blink-revie...@chromium.org, blink-...@chromium.org, jmedle...@chromium.org
      Attention needed from Anders Hartvoll Ruud

      Fr voted Commit-Queue+2

      Commit-Queue+2
      Open in Gerrit

      Related details

      Attention is currently required from:
      • Anders Hartvoll Ruud
      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: Ie92b43972431b3753eb7dc898efe850574b5c325
      Gerrit-Change-Number: 7531666
      Gerrit-PatchSet: 8
      Gerrit-Owner: Fr <beaufort...@gmail.com>
      Gerrit-Reviewer: Fr <beaufort...@gmail.com>
      Gerrit-Reviewer: Mason Freed <mas...@chromium.org>
      Gerrit-CC: Anders Hartvoll Ruud <and...@chromium.org>
      Gerrit-CC: Kentaro Hara <har...@chromium.org>
      Gerrit-CC: Raphael Kubo da Costa <ku...@igalia.com>
      Gerrit-Attention: Anders Hartvoll Ruud <and...@chromium.org>
      Gerrit-Comment-Date: Fri, 06 Feb 2026 08:30:22 +0000
      Gerrit-HasComments: No
      Gerrit-Has-Labels: Yes
      satisfied_requirement
      open
      diffy

      Chromium LUCI CQ (Gerrit)

      unread,
      Feb 6, 2026, 4:19:34 AM (5 days ago) Feb 6
      to Fr, Mason Freed, Anders Hartvoll Ruud, chromium...@chromium.org, Kentaro Hara, Raphael Kubo da Costa, blink-revie...@chromium.org, blink-...@chromium.org, jmedle...@chromium.org

      Chromium LUCI CQ submitted the change with unreviewed changes

      Unreviewed changes

      6 is the latest approved patch-set.
      The change was submitted with unreviewed changes in the following files:

      ```
      The name of the file: third_party/blink/renderer/core/script_tools/model_context_test.cc
      Insertions: 48, Deletions: 7.

      The diff is too large to show. Please review the diff.
      ```

      Change information

      Commit message:
      [WebMCP] Add AbortSignal support to ExecuteTool for imperative tools

      This CL adds an optional signal option to ExecuteTool so that imperative
      script tools execution can be aborted. Support for declarative script
      tools will come later.
      As part of this CL, an uncaught promise error is not raised anymore when
      a syntax error occurs when parsing JSON input arguments string. Because
      of this issue, the tests were not passing.
      Bug: 481899636
      Change-Id: Ie92b43972431b3753eb7dc898efe850574b5c325
      Reviewed-by: Mason Freed <mas...@chromium.org>
      Commit-Queue: Fr <beaufort...@gmail.com>
      Cr-Commit-Position: refs/heads/main@{#1580668}
      Files:
      • M third_party/blink/renderer/bindings/generated_in_core.gni
      • M third_party/blink/renderer/core/exported/web_document.cc
      • M third_party/blink/renderer/core/script_tools/model_context.cc
      • M third_party/blink/renderer/core/script_tools/model_context.h
      • M third_party/blink/renderer/core/script_tools/model_context_test.cc
      • M third_party/blink/renderer/core/script_tools/model_context_testing.cc
      • M third_party/blink/renderer/core/script_tools/model_context_testing.h
      • M third_party/blink/renderer/core/script_tools/model_context_testing.idl
      • M third_party/blink/web_tests/fast/webmcp/execute_tool-expected.txt
      • M third_party/blink/web_tests/fast/webmcp/execute_tool.html
      Change size: M
      Delta: 10 files changed, 163 insertions(+), 35 deletions(-)
      Branch: refs/heads/main
      Submit Requirements:
      • requirement satisfiedCode-Review: +1 by Mason Freed
      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: Ie92b43972431b3753eb7dc898efe850574b5c325
      Gerrit-Change-Number: 7531666
      Gerrit-PatchSet: 9
      Gerrit-Owner: Fr <beaufort...@gmail.com>
      Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
      Gerrit-Reviewer: Fr <beaufort...@gmail.com>
      Gerrit-Reviewer: Mason Freed <mas...@chromium.org>
      Gerrit-CC: Anders Hartvoll Ruud <and...@chromium.org>
      open
      diffy
      satisfied_requirement
      Reply all
      Reply to author
      Forward
      0 new messages