Fix readonly elements incorrectly barred from constraint validation [chromium/src : main]

0 views
Skip to first unread message

YeongHan Kim (Gerrit)

unread,
Feb 21, 2026, 5:11:04 AM (8 days ago) Feb 21
to Mason Freed, Chromium LUCI CQ, chromium...@chromium.org, blink-rev...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org, dominicc+...@chromium.org
Attention needed from Joey Arhar and Mason Freed

YeongHan Kim added 1 comment

Patchset-level comments
File-level comment, Patchset 5 (Latest):
YeongHan Kim . resolved

Please take a look. Thank you!

Open in Gerrit

Related details

Attention is currently required from:
  • Joey Arhar
  • 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: I18e1b289cac7a6beff46455a01bd4553dc616911
Gerrit-Change-Number: 7596856
Gerrit-PatchSet: 5
Gerrit-Owner: YeongHan Kim <soosu...@gmail.com>
Gerrit-Reviewer: Joey Arhar <jar...@chromium.org>
Gerrit-Reviewer: Mason Freed <mas...@chromium.org>
Gerrit-Reviewer: YeongHan Kim <soosu...@gmail.com>
Gerrit-Attention: Mason Freed <mas...@chromium.org>
Gerrit-Attention: Joey Arhar <jar...@chromium.org>
Gerrit-Comment-Date: Sat, 21 Feb 2026 10:10:30 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Joey Arhar (Gerrit)

unread,
Feb 23, 2026, 10:48:44 AM (5 days ago) Feb 23
to YeongHan Kim, Mason Freed, Chromium LUCI CQ, chromium...@chromium.org, blink-rev...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org, dominicc+...@chromium.org
Attention needed from Mason Freed and YeongHan Kim

Joey Arhar added 3 comments

Commit Message
Line 11, Patchset 5 (Latest):constraint validation. The current implementation does not bar
constraint validation by default, but bars it when the element is
readonly. However, for button [2] and select [3], the barred condition
Joey Arhar . unresolved

Where is the code that is already doing this? Should it be removed since this patch adds new code seemingly for add ListedElements?

File third_party/blink/renderer/core/html/custom/element_internals.h
Line 135, Patchset 5 (Latest): bool ReadOnlyBarsFromConstraintValidation() const final { return true; }
Joey Arhar . unresolved

Is this tested? It seems like the test changes are only for the select and button elements, but not custom elements.

File third_party/blink/renderer/core/html/forms/listed_element.h
Line 213, Patchset 5 (Latest): virtual bool ReadOnlyBarsFromConstraintValidation() const { return false; }
Joey Arhar . unresolved

I think "Prevents" would be easier to read than "BarsFrom"

Open in Gerrit

Related details

Attention is currently required from:
  • Mason Freed
  • YeongHan Kim
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: I18e1b289cac7a6beff46455a01bd4553dc616911
    Gerrit-Change-Number: 7596856
    Gerrit-PatchSet: 5
    Gerrit-Owner: YeongHan Kim <soosu...@gmail.com>
    Gerrit-Reviewer: Joey Arhar <jar...@chromium.org>
    Gerrit-Reviewer: Mason Freed <mas...@chromium.org>
    Gerrit-Reviewer: YeongHan Kim <soosu...@gmail.com>
    Gerrit-Attention: Mason Freed <mas...@chromium.org>
    Gerrit-Attention: YeongHan Kim <soosu...@gmail.com>
    Gerrit-Comment-Date: Mon, 23 Feb 2026 15:48:36 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Mason Freed (Gerrit)

    unread,
    Feb 23, 2026, 7:50:59 PM (5 days ago) Feb 23
    to YeongHan Kim, Chromium LUCI CQ, chromium...@chromium.org, blink-rev...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org, dominicc+...@chromium.org
    Attention needed from YeongHan Kim

    Mason Freed added 3 comments

    File third_party/blink/renderer/core/html/forms/listed_element.h
    Line 213, Patchset 5 (Latest): virtual bool ReadOnlyBarsFromConstraintValidation() const { return false; }
    Joey Arhar . unresolved

    I think "Prevents" would be easier to read than "BarsFrom"

    Mason Freed
    File third_party/blink/renderer/core/html/forms/listed_element.cc
    Line 373, Patchset 5 (Latest): !(is_readonly_ && ReadOnlyBarsFromConstraintValidation());
    Mason Freed . unresolved

    Two things:

    1. I think this would be a bit easier to read:

    `(!is_readonly_ || !ReadOnlyPreventsConstraintValidation())`

    and 2. I think this needs a runtime enabled feature flag guard. It's a small change, but you never know what it might break.

    File third_party/blink/renderer/core/html/forms/text_control_element.h
    Line 267, Patchset 5 (Latest): bool ReadOnlyBarsFromConstraintValidation() const final { return true; }
    Mason Freed . unresolved

    Add link to spec please

    Open in Gerrit

    Related details

    Attention is currently required from:
    • YeongHan Kim
    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: I18e1b289cac7a6beff46455a01bd4553dc616911
    Gerrit-Change-Number: 7596856
    Gerrit-PatchSet: 5
    Gerrit-Owner: YeongHan Kim <soosu...@gmail.com>
    Gerrit-Reviewer: Joey Arhar <jar...@chromium.org>
    Gerrit-Reviewer: Mason Freed <mas...@chromium.org>
    Gerrit-Reviewer: YeongHan Kim <soosu...@gmail.com>
    Gerrit-Attention: YeongHan Kim <soosu...@gmail.com>
    Gerrit-Comment-Date: Tue, 24 Feb 2026 00:50:51 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Joey Arhar <jar...@chromium.org>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    YeongHan Kim (Gerrit)

    unread,
    Feb 25, 2026, 6:21:23 AM (4 days ago) Feb 25
    to AyeAye, Mason Freed, Chromium LUCI CQ, chromium...@chromium.org, jmedle...@chromium.org, kinuko...@chromium.org, blink-rev...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org, dominicc+...@chromium.org
    Attention needed from Joey Arhar and Mason Freed

    YeongHan Kim added 6 comments

    Patchset-level comments
    File-level comment, Patchset 5:
    YeongHan Kim . resolved

    Thank you for the review! I've replied!

    Commit Message
    Line 11, Patchset 5:constraint validation. The current implementation does not bar

    constraint validation by default, but bars it when the element is
    readonly. However, for button [2] and select [3], the barred condition
    Joey Arhar . unresolved

    Where is the code that is already doing this? Should it be removed since this patch adds new code seemingly for add ListedElements?

    YeongHan Kim

    This is [the part](https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/core/html/forms/listed_element.cc;l=373?q=third_party%2Fblink%2Frenderer%2Fcore%2Fhtml%2Fforms%2Flisted_element.cc&ss=chromium). I think I wrote the commit message in a confusing way. I was trying to say that the current implementation bars all elements when they are readonly.
    So this code should not be removed. Instead, it should find elements that are readonly and whose constraint validation is prevented by readonly.

    If I understand your point correctly, I'll update the commit message.

    File third_party/blink/renderer/core/html/custom/element_internals.h
    Line 135, Patchset 5: bool ReadOnlyBarsFromConstraintValidation() const final { return true; }
    Joey Arhar . unresolved

    Is this tested? It seems like the test changes are only for the select and button elements, but not custom elements.

    File third_party/blink/renderer/core/html/forms/listed_element.h
    Line 213, Patchset 5: virtual bool ReadOnlyBarsFromConstraintValidation() const { return false; }
    Joey Arhar . resolved

    I think "Prevents" would be easier to read than "BarsFrom"

    Mason Freed

    +1. Also, could you please add a link above this to the spec:

    https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#barred-from-constraint-validation

    YeongHan Kim

    Done!

    File third_party/blink/renderer/core/html/forms/listed_element.cc
    Line 373, Patchset 5: !(is_readonly_ && ReadOnlyBarsFromConstraintValidation());
    Mason Freed . resolved

    Two things:

    1. I think this would be a bit easier to read:

    `(!is_readonly_ || !ReadOnlyPreventsConstraintValidation())`

    and 2. I think this needs a runtime enabled feature flag guard. It's a small change, but you never know what it might break.

    YeongHan Kim

    Agreed. I've added a feature flag!

    File third_party/blink/renderer/core/html/forms/text_control_element.h
    Line 267, Patchset 5: bool ReadOnlyBarsFromConstraintValidation() const final { return true; }
    Mason Freed . resolved

    Add link to spec please

    YeongHan Kim

    Done!

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Joey Arhar
    • 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: I18e1b289cac7a6beff46455a01bd4553dc616911
    Gerrit-Change-Number: 7596856
    Gerrit-PatchSet: 6
    Gerrit-Owner: YeongHan Kim <soosu...@gmail.com>
    Gerrit-Reviewer: Joey Arhar <jar...@chromium.org>
    Gerrit-Reviewer: Mason Freed <mas...@chromium.org>
    Gerrit-Reviewer: YeongHan Kim <soosu...@gmail.com>
    Gerrit-Attention: Mason Freed <mas...@chromium.org>
    Gerrit-Attention: Joey Arhar <jar...@chromium.org>
    Gerrit-Comment-Date: Wed, 25 Feb 2026 11:20:51 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Mason Freed <mas...@chromium.org>
    Comment-In-Reply-To: Joey Arhar <jar...@chromium.org>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Joey Arhar (Gerrit)

    unread,
    Feb 25, 2026, 12:59:39 PM (3 days ago) Feb 25
    to YeongHan Kim, AyeAye, Mason Freed, Chromium LUCI CQ, chromium...@chromium.org, jmedle...@chromium.org, kinuko...@chromium.org, blink-rev...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org, dominicc+...@chromium.org
    Attention needed from Mason Freed and YeongHan Kim

    Joey Arhar added 2 comments

    Commit Message
    Line 11, Patchset 5:constraint validation. The current implementation does not bar
    constraint validation by default, but bars it when the element is
    readonly. However, for button [2] and select [3], the barred condition
    Joey Arhar . resolved

    Where is the code that is already doing this? Should it be removed since this patch adds new code seemingly for add ListedElements?

    YeongHan Kim

    This is [the part](https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/core/html/forms/listed_element.cc;l=373?q=third_party%2Fblink%2Frenderer%2Fcore%2Fhtml%2Fforms%2Flisted_element.cc&ss=chromium). I think I wrote the commit message in a confusing way. I was trying to say that the current implementation bars all elements when they are readonly.
    So this code should not be removed. Instead, it should find elements that are readonly and whose constraint validation is prevented by readonly.

    If I understand your point correctly, I'll update the commit message.

    Joey Arhar

    Acknowledged

    File third_party/blink/renderer/core/html/custom/element_internals.h
    Line 135, Patchset 5: bool ReadOnlyBarsFromConstraintValidation() const final { return true; }
    Joey Arhar . unresolved

    Is this tested? It seems like the test changes are only for the select and button elements, but not custom elements.

    YeongHan Kim

    I think it's being verified in [this test](https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/web_tests/external/wpt/custom-elements/form-associated/ElementInternals-validation.html;l=54-58?q=ElementInternals-validation&ss=chromium). But would it be better to add a new test under form to make it clearer?

    Joey Arhar

    So if you removed this added method, then that test would fail?

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Mason Freed
    • YeongHan Kim
    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: I18e1b289cac7a6beff46455a01bd4553dc616911
    Gerrit-Change-Number: 7596856
    Gerrit-PatchSet: 6
    Gerrit-Owner: YeongHan Kim <soosu...@gmail.com>
    Gerrit-Reviewer: Joey Arhar <jar...@chromium.org>
    Gerrit-Reviewer: Mason Freed <mas...@chromium.org>
    Gerrit-Reviewer: YeongHan Kim <soosu...@gmail.com>
    Gerrit-Attention: Mason Freed <mas...@chromium.org>
    Gerrit-Attention: YeongHan Kim <soosu...@gmail.com>
    Gerrit-Comment-Date: Wed, 25 Feb 2026 17:59:31 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Joey Arhar <jar...@chromium.org>
    Comment-In-Reply-To: YeongHan Kim <soosu...@gmail.com>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Mason Freed (Gerrit)

    unread,
    Feb 25, 2026, 4:49:42 PM (3 days ago) Feb 25
    to YeongHan Kim, AyeAye, Chromium LUCI CQ, chromium...@chromium.org, jmedle...@chromium.org, kinuko...@chromium.org, blink-rev...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org, dominicc+...@chromium.org
    Attention needed from YeongHan Kim

    Mason Freed voted and added 3 comments

    Votes added by Mason Freed

    Code-Review+1

    3 comments

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

    LGTM, but please wait for Joey's LGTM also.

    File third_party/blink/renderer/platform/runtime_enabled_features.json5
    Line 2269, Patchset 6 (Latest): // Whether the readonly attribute prevents from constraint
    // validation depends on the submittable element.
    Mason Freed . unresolved

    nit:
    ```
    When enabled, the readonly attribute will prevent constraint validation
    only in some cases, depending on the element.
    ```

    Line 2271, Patchset 6 (Latest): // This was added in M146 and can be removed after M148.
    Mason Freed . unresolved

    It looks like this will land in M147, and can be removed after M149.

    Open in Gerrit

    Related details

    Attention is currently required from:
    • YeongHan Kim
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement 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: I18e1b289cac7a6beff46455a01bd4553dc616911
    Gerrit-Change-Number: 7596856
    Gerrit-PatchSet: 6
    Gerrit-Owner: YeongHan Kim <soosu...@gmail.com>
    Gerrit-Reviewer: Joey Arhar <jar...@chromium.org>
    Gerrit-Reviewer: Mason Freed <mas...@chromium.org>
    Gerrit-Reviewer: YeongHan Kim <soosu...@gmail.com>
    Gerrit-Attention: YeongHan Kim <soosu...@gmail.com>
    Gerrit-Comment-Date: Wed, 25 Feb 2026 21:49:28 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    YeongHan Kim (Gerrit)

    unread,
    Feb 26, 2026, 6:45:28 AM (3 days ago) Feb 26
    to Mason Freed, AyeAye, Chromium LUCI CQ, chromium...@chromium.org, jmedle...@chromium.org, kinuko...@chromium.org, blink-rev...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org, dominicc+...@chromium.org
    Attention needed from Joey Arhar and Mason Freed

    YeongHan Kim added 4 comments

    Patchset-level comments
    File-level comment, Patchset 7 (Latest):
    YeongHan Kim . resolved

    Thanks for the quick review!

    File third_party/blink/renderer/core/html/custom/element_internals.h
    Line 135, Patchset 5: bool ReadOnlyBarsFromConstraintValidation() const final { return true; }
    Joey Arhar . unresolved

    Is this tested? It seems like the test changes are only for the select and button elements, but not custom elements.

    YeongHan Kim

    I think it's being verified in [this test](https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/web_tests/external/wpt/custom-elements/form-associated/ElementInternals-validation.html;l=54-58?q=ElementInternals-validation&ss=chromium). But would it be better to add a new test under form to make it clearer?

    Joey Arhar

    So if you removed this added method, then that test would fail?

    YeongHan Kim

    No, it won't fail.

    Here's a summary of the changes:

    • AS-IS: Prevents constraint validation for all elements when readonly
    • TO-BE: Only prevents constraint validation for elements whose condition for preventing validation is readonly


    For [custom elements](https://html.spec.whatwg.org/multipage/custom-elements.html#custom-elements-core-concepts), since readonly is a condition that should prevent validation, the result doesn't change.
    The elements affected by this change are button and select.

    File third_party/blink/renderer/platform/runtime_enabled_features.json5
    Line 2269, Patchset 6: // Whether the readonly attribute prevents from constraint

    // validation depends on the submittable element.
    Mason Freed . resolved

    nit:
    ```
    When enabled, the readonly attribute will prevent constraint validation
    only in some cases, depending on the element.
    ```

    YeongHan Kim

    Done!

    Line 2271, Patchset 6: // This was added in M146 and can be removed after M148.
    Mason Freed . resolved

    It looks like this will land in M147, and can be removed after M149.

    YeongHan Kim

    Oh, thanks for looking out for this!

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Joey Arhar
    • Mason Freed
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement 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: I18e1b289cac7a6beff46455a01bd4553dc616911
    Gerrit-Change-Number: 7596856
    Gerrit-PatchSet: 7
    Gerrit-Owner: YeongHan Kim <soosu...@gmail.com>
    Gerrit-Reviewer: Joey Arhar <jar...@chromium.org>
    Gerrit-Reviewer: Mason Freed <mas...@chromium.org>
    Gerrit-Reviewer: YeongHan Kim <soosu...@gmail.com>
    Gerrit-Attention: Mason Freed <mas...@chromium.org>
    Gerrit-Attention: Joey Arhar <jar...@chromium.org>
    Gerrit-Comment-Date: Thu, 26 Feb 2026 11:44:56 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Mason Freed <mas...@chromium.org>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Joey Arhar (Gerrit)

    unread,
    Feb 27, 2026, 1:38:18 PM (yesterday) Feb 27
    to YeongHan Kim, Mason Freed, AyeAye, Chromium LUCI CQ, chromium...@chromium.org, jmedle...@chromium.org, kinuko...@chromium.org, blink-rev...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org, dominicc+...@chromium.org
    Attention needed from Mason Freed and YeongHan Kim

    Joey Arhar voted and added 1 comment

    Votes added by Joey Arhar

    Code-Review+1

    1 comment

    File third_party/blink/renderer/core/html/custom/element_internals.h
    Line 135, Patchset 5: bool ReadOnlyBarsFromConstraintValidation() const final { return true; }
    Joey Arhar . resolved

    Is this tested? It seems like the test changes are only for the select and button elements, but not custom elements.

    YeongHan Kim

    I think it's being verified in [this test](https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/web_tests/external/wpt/custom-elements/form-associated/ElementInternals-validation.html;l=54-58?q=ElementInternals-validation&ss=chromium). But would it be better to add a new test under form to make it clearer?

    Joey Arhar

    So if you removed this added method, then that test would fail?

    YeongHan Kim

    No, it won't fail.

    Here's a summary of the changes:

    • AS-IS: Prevents constraint validation for all elements when readonly
    • TO-BE: Only prevents constraint validation for elements whose condition for preventing validation is readonly


    For [custom elements](https://html.spec.whatwg.org/multipage/custom-elements.html#custom-elements-core-concepts), since readonly is a condition that should prevent validation, the result doesn't change.
    The elements affected by this change are button and select.

    Joey Arhar

    Acknowledged

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Mason Freed
    • YeongHan Kim
    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: I18e1b289cac7a6beff46455a01bd4553dc616911
      Gerrit-Change-Number: 7596856
      Gerrit-PatchSet: 7
      Gerrit-Owner: YeongHan Kim <soosu...@gmail.com>
      Gerrit-Reviewer: Joey Arhar <jar...@chromium.org>
      Gerrit-Reviewer: Mason Freed <mas...@chromium.org>
      Gerrit-Reviewer: YeongHan Kim <soosu...@gmail.com>
      Gerrit-Attention: Mason Freed <mas...@chromium.org>
      Gerrit-Attention: YeongHan Kim <soosu...@gmail.com>
      Gerrit-Comment-Date: Fri, 27 Feb 2026 18:38:08 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: Yes
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Mason Freed (Gerrit)

      unread,
      Feb 27, 2026, 5:30:02 PM (yesterday) Feb 27
      to YeongHan Kim, AyeAye, Chromium LUCI CQ, chromium...@chromium.org, jmedle...@chromium.org, kinuko...@chromium.org, blink-rev...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org, dominicc+...@chromium.org
      Attention needed from YeongHan Kim

      Mason Freed voted Code-Review+1

      Code-Review+1
      Open in Gerrit

      Related details

      Attention is currently required from:
      • YeongHan Kim
      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: I18e1b289cac7a6beff46455a01bd4553dc616911
        Gerrit-Change-Number: 7596856
        Gerrit-PatchSet: 7
        Gerrit-Owner: YeongHan Kim <soosu...@gmail.com>
        Gerrit-Reviewer: Joey Arhar <jar...@chromium.org>
        Gerrit-Reviewer: Mason Freed <mas...@chromium.org>
        Gerrit-Reviewer: YeongHan Kim <soosu...@gmail.com>
        Gerrit-Attention: YeongHan Kim <soosu...@gmail.com>
        Gerrit-Comment-Date: Fri, 27 Feb 2026 22:29:55 +0000
        Gerrit-HasComments: No
        Gerrit-Has-Labels: Yes
        satisfied_requirement
        open
        diffy

        YeongHan Kim (Gerrit)

        unread,
        6:56 AM (14 hours ago) 6:56 AM
        to Mason Freed, AyeAye, Chromium LUCI CQ, chromium...@chromium.org, jmedle...@chromium.org, kinuko...@chromium.org, blink-rev...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org, dominicc+...@chromium.org

        YeongHan Kim 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: I18e1b289cac7a6beff46455a01bd4553dc616911
        Gerrit-Change-Number: 7596856
        Gerrit-PatchSet: 7
        Gerrit-Owner: YeongHan Kim <soosu...@gmail.com>
        Gerrit-Reviewer: Joey Arhar <jar...@chromium.org>
        Gerrit-Reviewer: Mason Freed <mas...@chromium.org>
        Gerrit-Reviewer: YeongHan Kim <soosu...@gmail.com>
        Gerrit-Comment-Date: Sat, 28 Feb 2026 11:56:18 +0000
        Gerrit-HasComments: No
        Gerrit-Has-Labels: Yes
        satisfied_requirement
        open
        diffy

        Chromium LUCI CQ (Gerrit)

        unread,
        8:00 AM (13 hours ago) 8:00 AM
        to YeongHan Kim, Mason Freed, AyeAye, chromium...@chromium.org, jmedle...@chromium.org, kinuko...@chromium.org, blink-rev...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org, dominicc+...@chromium.org

        Chromium LUCI CQ submitted the change

        Change information

        Commit message:
        Fix readonly elements incorrectly barred from constraint validation

        According to [1], a submittable element is a candidate for constraint
        validation except when a condition has barred the element from

        constraint validation. The current implementation does not bar
        constraint validation by default, but bars it when the element is
        readonly. However, for button [2] and select [3], the barred condition
        is not readonly, so they are incorrectly barred from constraint
        validation.
        So, this patch changes the behavior so that elements are not barred from
        constraint validation even if they are readonly, and only elements whose
        barred condition includes readonly are barred. The elements whose barred
        condition includes readonly are input, textarea, and custom elements.

        [1] https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#barred-from-constraint-validation
        [2] https://html.spec.whatwg.org/multipage/form-elements.html#the-button-element:barred-from-constraint-validation
        [3] https://html.spec.whatwg.org/multipage/form-elements.html#the-select-element:barred-from-constraint-validation
        Bug: 486228104
        Change-Id: I18e1b289cac7a6beff46455a01bd4553dc616911
        Reviewed-by: Mason Freed <mas...@chromium.org>
        Commit-Queue: YeongHan Kim <soosu...@gmail.com>
        Reviewed-by: Joey Arhar <jar...@chromium.org>
        Cr-Commit-Position: refs/heads/main@{#1592007}
        Files:
        • M third_party/blink/renderer/core/html/custom/element_internals.h
        • M third_party/blink/renderer/core/html/forms/listed_element.cc
        • M third_party/blink/renderer/core/html/forms/listed_element.h
        • M third_party/blink/renderer/core/html/forms/text_control_element.h
        • M third_party/blink/renderer/platform/runtime_enabled_features.json5
        • D third_party/blink/web_tests/external/wpt/html/semantics/forms/the-button-element/button-willvalidate-readonly-attribute-expected.txt
        • D third_party/blink/web_tests/external/wpt/html/semantics/forms/the-select-element/select-willvalidate-readonly-attribute-expected.txt
        Change size: S
        Delta: 7 files changed, 21 insertions(+), 11 deletions(-)
        Branch: refs/heads/main
        Submit Requirements:
        • requirement satisfiedCode-Review: +1 by Joey Arhar, +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: I18e1b289cac7a6beff46455a01bd4553dc616911
        Gerrit-Change-Number: 7596856
        Gerrit-PatchSet: 8
        Gerrit-Owner: YeongHan Kim <soosu...@gmail.com>
        Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
        Gerrit-Reviewer: Joey Arhar <jar...@chromium.org>
        Gerrit-Reviewer: Mason Freed <mas...@chromium.org>
        Gerrit-Reviewer: YeongHan Kim <soosu...@gmail.com>
        open
        diffy
        satisfied_requirement
        Reply all
        Reply to author
        Forward
        0 new messages