[webmcp] Make FillFormControls transactional [chromium/src : main]

0 views
Skip to first unread message

Anders Hartvoll Ruud (Gerrit)

unread,
Jan 22, 2026, 10:16:33 AMJan 22
to Mason Freed, chromium...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org
Attention needed from Mason Freed

Anders Hartvoll Ruud added 1 comment

Patchset-level comments
File-level comment, Patchset 1 (Latest):
Anders Hartvoll Ruud . resolved

Does this make sense? It seems bad to return a failure when we potentially did modify things.

Open in Gerrit

Related details

Attention is currently required from:
  • Mason Freed
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement 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: I8a8c18e043efe76d7adecb6c0ccc02e354b3388d
Gerrit-Change-Number: 7510670
Gerrit-PatchSet: 1
Gerrit-Owner: Anders Hartvoll Ruud <and...@chromium.org>
Gerrit-Reviewer: Mason Freed <mas...@chromium.org>
Gerrit-Attention: Mason Freed <mas...@chromium.org>
Gerrit-Comment-Date: Thu, 22 Jan 2026 15:16:17 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Mason Freed (Gerrit)

unread,
Jan 23, 2026, 1:44:17 PMJan 23
to Anders Hartvoll Ruud, Chromium LUCI CQ, chromium...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org
Attention needed from Anders Hartvoll Ruud

Mason Freed voted and added 2 comments

Votes added by Mason Freed

Code-Review+1

2 comments

Patchset-level comments
Mason Freed . resolved

Looks good!

File third_party/blink/renderer/core/html/forms/html_form_element.cc
Line 192, Patchset 1 (Latest): transactions;
Mason Freed . unresolved

"transactions" is a bit funny. Maybe just `controls_to_fill` or something?

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 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: I8a8c18e043efe76d7adecb6c0ccc02e354b3388d
    Gerrit-Change-Number: 7510670
    Gerrit-PatchSet: 1
    Gerrit-Owner: Anders Hartvoll Ruud <and...@chromium.org>
    Gerrit-Reviewer: Anders Hartvoll Ruud <and...@chromium.org>
    Gerrit-Reviewer: Mason Freed <mas...@chromium.org>
    Gerrit-Attention: Anders Hartvoll Ruud <and...@chromium.org>
    Gerrit-Comment-Date: Fri, 23 Jan 2026 18:44:00 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Anders Hartvoll Ruud (Gerrit)

    unread,
    Jan 24, 2026, 12:53:51 AMJan 24
    to Mason Freed, Chromium LUCI CQ, chromium...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org

    Anders Hartvoll Ruud added 1 comment

    File third_party/blink/renderer/core/html/forms/html_form_element.cc
    Line 192, Patchset 1: transactions;
    Mason Freed . resolved

    "transactions" is a bit funny. Maybe just `controls_to_fill` or something?

    Anders Hartvoll Ruud

    Done.

    Avoided this terminology except in the high-level description in the commit message.

    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: I8a8c18e043efe76d7adecb6c0ccc02e354b3388d
      Gerrit-Change-Number: 7510670
      Gerrit-PatchSet: 2
      Gerrit-Owner: Anders Hartvoll Ruud <and...@chromium.org>
      Gerrit-Reviewer: Anders Hartvoll Ruud <and...@chromium.org>
      Gerrit-Reviewer: Mason Freed <mas...@chromium.org>
      Gerrit-Comment-Date: Sat, 24 Jan 2026 05:53:29 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      Comment-In-Reply-To: Mason Freed <mas...@chromium.org>
      satisfied_requirement
      open
      diffy

      Anders Hartvoll Ruud (Gerrit)

      unread,
      Jan 24, 2026, 1:37:22 AMJan 24
      to Mason Freed, Chromium LUCI CQ, chromium...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org

      Anders Hartvoll Ruud 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
      • 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: I8a8c18e043efe76d7adecb6c0ccc02e354b3388d
      Gerrit-Change-Number: 7510670
      Gerrit-PatchSet: 3
      Gerrit-Owner: Anders Hartvoll Ruud <and...@chromium.org>
      Gerrit-Reviewer: Anders Hartvoll Ruud <and...@chromium.org>
      Gerrit-Reviewer: Mason Freed <mas...@chromium.org>
      Gerrit-Comment-Date: Sat, 24 Jan 2026 06:36:59 +0000
      Gerrit-HasComments: No
      Gerrit-Has-Labels: Yes
      satisfied_requirement
      open
      diffy

      Anders Hartvoll Ruud (Gerrit)

      unread,
      Jan 24, 2026, 8:15:46 AMJan 24
      to Mason Freed, Chromium LUCI CQ, chromium...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org
      Gerrit-Comment-Date: Sat, 24 Jan 2026 13:15:24 +0000
      Gerrit-HasComments: No
      Gerrit-Has-Labels: Yes
      satisfied_requirement
      open
      diffy

      Chromium LUCI CQ (Gerrit)

      unread,
      Jan 24, 2026, 8:48:06 AMJan 24
      to Anders Hartvoll Ruud, Mason Freed, chromium...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org

      Chromium LUCI CQ submitted the change with unreviewed changes

      Unreviewed changes

      1 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/html/forms/html_form_element.cc
      Insertions: 5, Deletions: 5.

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

      Change information

      Commit message:
      [webmcp] Make FillFormControls transactional

      Currently, it's possible for FillFormControls to return "false"
      (failure), but still modify the form control states. This is assumed
      to be undesirable behavior, and therefore this CL makes FillWebMCPData
      transactional: We now validate the input first, and then "commit"
      those changes as a whole once we're sure it is valid.

      FillWebMCPData's capability of returning a bool is currently unused;
      I've removed it for now, since any validation step needs to happen
      separately in a transactional model.
      Bug: 475992364
      Change-Id: I8a8c18e043efe76d7adecb6c0ccc02e354b3388d
      Commit-Queue: Anders Hartvoll Ruud <and...@chromium.org>
      Reviewed-by: Mason Freed <mas...@chromium.org>
      Cr-Commit-Position: refs/heads/main@{#1574160}
      Files:
      • M third_party/blink/renderer/core/html/forms/html_form_control_element.cc
      • M third_party/blink/renderer/core/html/forms/html_form_control_element.h
      • M third_party/blink/renderer/core/html/forms/html_form_element.cc
      • M third_party/blink/renderer/core/html/forms/html_form_element.h
      • M third_party/blink/renderer/core/html/forms/html_form_mcp_tool_test.cc
      • M third_party/blink/renderer/core/html/forms/html_input_element.cc
      • M third_party/blink/renderer/core/html/forms/html_input_element.h
      • M third_party/blink/renderer/core/html/forms/html_select_element.cc
      • M third_party/blink/renderer/core/html/forms/html_select_element.h
      Change size: M
      Delta: 9 files changed, 61 insertions(+), 16 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: I8a8c18e043efe76d7adecb6c0ccc02e354b3388d
      Gerrit-Change-Number: 7510670
      Gerrit-PatchSet: 4
      Gerrit-Owner: Anders Hartvoll Ruud <and...@chromium.org>
      Gerrit-Reviewer: Anders Hartvoll Ruud <and...@chromium.org>
      Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
      Gerrit-Reviewer: Mason Freed <mas...@chromium.org>
      open
      diffy
      satisfied_requirement
      Reply all
      Reply to author
      Forward
      0 new messages