Improve customizable combobox dismissal prevention [chromium/src : main]

0 views
Skip to first unread message

David Baron (Gerrit)

unread,
Jan 9, 2026, 11:21:03 AM (3 days ago) Jan 9
to David Baron, AyeAye, Chromium LUCI CQ, blink-...@chromium.org, blink-rev...@chromium.org
Attention needed from Joey Arhar

David Baron voted and added 3 comments

Votes added by David Baron

Code-Review+1

3 comments

Patchset-level comments
File-level comment, Patchset 2 (Latest):
David Baron . unresolved

LGTM with a few comments, although I wonder if it's worth adding any tests for what you're improving here

File third_party/blink/renderer/core/html/forms/html_input_element.cc
Line 2520, Patchset 2 (Latest): if (auto* datalist = DataList()) {
David Baron . unresolved
```suggestion
if (HTMLDataListElement* datalist = DataList()) {
```
File third_party/blink/renderer/core/html/forms/text_field_input_type.cc
Line 719, Patchset 2 (Parent): // MenuListSelectType::DefaultEventHandler.
David Baron . unresolved

Curious if you want to do something similar for that case too?

Open in Gerrit

Related details

Attention is currently required from:
  • Joey Arhar
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement satisfiedCode-Owners
  • requirement 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: Ica9fbc04c4210206911a9253ef46ffcc8a747918
Gerrit-Change-Number: 7411416
Gerrit-PatchSet: 2
Gerrit-Owner: Joey Arhar <jar...@chromium.org>
Gerrit-Reviewer: David Baron <dba...@chromium.org>
Gerrit-Reviewer: Joey Arhar <jar...@chromium.org>
Gerrit-Attention: Joey Arhar <jar...@chromium.org>
Gerrit-Comment-Date: Fri, 09 Jan 2026 16:20:55 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

Joey Arhar (Gerrit)

unread,
Jan 9, 2026, 12:59:10 PM (3 days ago) Jan 9
to David Baron, AyeAye, Chromium LUCI CQ, blink-...@chromium.org, blink-rev...@chromium.org
Attention needed from David Baron

Joey Arhar added 3 comments

Patchset-level comments
David Baron . unresolved

LGTM with a few comments, although I wonder if it's worth adding any tests for what you're improving here

Joey Arhar

As far as I can tell there shouldn't be any behavior changes with this patch

File third_party/blink/renderer/core/html/forms/html_input_element.cc
Line 2520, Patchset 2 (Latest): if (auto* datalist = DataList()) {
David Baron . resolved
```suggestion
if (HTMLDataListElement* datalist = DataList()) {
```
Joey Arhar

Done

File third_party/blink/renderer/core/html/forms/text_field_input_type.cc
Line 719, Patchset 2 (Parent): // MenuListSelectType::DefaultEventHandler.
David Baron . unresolved

Curious if you want to do something similar for that case too?

Joey Arhar

Good point, we could probably remove the call to SetPopoverPointerdownTarget there too, since I already made a similar fix for customizable select. It's already behind a flag though and will get removed as part of the light dismiss rewrite though.

Open in Gerrit

Related details

Attention is currently required from:
  • David Baron
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement satisfiedCode-Owners
  • requirement 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: Ica9fbc04c4210206911a9253ef46ffcc8a747918
Gerrit-Change-Number: 7411416
Gerrit-PatchSet: 2
Gerrit-Owner: Joey Arhar <jar...@chromium.org>
Gerrit-Reviewer: David Baron <dba...@chromium.org>
Gerrit-Reviewer: Joey Arhar <jar...@chromium.org>
Gerrit-Attention: David Baron <dba...@chromium.org>
Gerrit-Comment-Date: Fri, 09 Jan 2026 17:58:58 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: David Baron <dba...@chromium.org>
satisfied_requirement
unsatisfied_requirement
open
diffy

David Baron (Gerrit)

unread,
Jan 9, 2026, 3:21:42 PM (3 days ago) Jan 9
to David Baron, AyeAye, Chromium LUCI CQ, blink-...@chromium.org, blink-rev...@chromium.org
Attention needed from Joey Arhar

David Baron voted and added 2 comments

Votes added by David Baron

Code-Review+1

2 comments

Patchset-level comments
File-level comment, Patchset 2:
David Baron . resolved

LGTM with a few comments, although I wonder if it's worth adding any tests for what you're improving here

Joey Arhar

As far as I can tell there shouldn't be any behavior changes with this patch

David Baron

Acknowledged

File third_party/blink/renderer/core/html/forms/text_field_input_type.cc
Line 719, Patchset 2 (Parent): // MenuListSelectType::DefaultEventHandler.
David Baron . resolved

Curious if you want to do something similar for that case too?

Joey Arhar

Good point, we could probably remove the call to SetPopoverPointerdownTarget there too, since I already made a similar fix for customizable select. It's already behind a flag though and will get removed as part of the light dismiss rewrite though.

David Baron

Acknowledged

Open in Gerrit

Related details

Attention is currently required from:
  • Joey Arhar
Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement satisfiedCode-Owners
    • requirement 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: Ica9fbc04c4210206911a9253ef46ffcc8a747918
    Gerrit-Change-Number: 7411416
    Gerrit-PatchSet: 3
    Gerrit-Owner: Joey Arhar <jar...@chromium.org>
    Gerrit-Reviewer: David Baron <dba...@chromium.org>
    Gerrit-Reviewer: Joey Arhar <jar...@chromium.org>
    Gerrit-Attention: Joey Arhar <jar...@chromium.org>
    Gerrit-Comment-Date: Fri, 09 Jan 2026 20:21:34 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    Comment-In-Reply-To: Joey Arhar <jar...@chromium.org>
    Comment-In-Reply-To: David Baron <dba...@chromium.org>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Joey Arhar (Gerrit)

    unread,
    Jan 9, 2026, 6:25:39 PM (3 days ago) Jan 9
    to David Baron, AyeAye, Chromium LUCI CQ, blink-...@chromium.org, blink-rev...@chromium.org

    Joey Arhar 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 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: Ica9fbc04c4210206911a9253ef46ffcc8a747918
    Gerrit-Change-Number: 7411416
    Gerrit-PatchSet: 3
    Gerrit-Owner: Joey Arhar <jar...@chromium.org>
    Gerrit-Reviewer: David Baron <dba...@chromium.org>
    Gerrit-Reviewer: Joey Arhar <jar...@chromium.org>
    Gerrit-Comment-Date: Fri, 09 Jan 2026 23:25:28 +0000
    Gerrit-HasComments: No
    Gerrit-Has-Labels: Yes
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Joey Arhar (Gerrit)

    unread,
    Jan 9, 2026, 6:25:45 PM (3 days ago) Jan 9
    to David Baron, AyeAye, Chromium LUCI CQ, blink-...@chromium.org, blink-rev...@chromium.org
    Attention needed from Joey Arhar

    Joey Arhar voted

    Code-Review+1
    Commit-Queue+2
    Open in Gerrit

    Related details

    Attention is currently required from:
    • Joey Arhar
    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: Ica9fbc04c4210206911a9253ef46ffcc8a747918
      Gerrit-Change-Number: 7411416
      Gerrit-PatchSet: 3
      Gerrit-Owner: Joey Arhar <jar...@chromium.org>
      Gerrit-Reviewer: David Baron <dba...@chromium.org>
      Gerrit-Reviewer: Joey Arhar <jar...@chromium.org>
      Gerrit-Attention: Joey Arhar <jar...@chromium.org>
      Gerrit-Comment-Date: Fri, 09 Jan 2026 23:25:36 +0000
      Gerrit-HasComments: No
      Gerrit-Has-Labels: Yes
      satisfied_requirement
      open
      diffy

      Chromium LUCI CQ (Gerrit)

      unread,
      Jan 9, 2026, 6:28:38 PM (3 days ago) Jan 9
      to David Baron, AyeAye, blink-...@chromium.org, blink-rev...@chromium.org

      Chromium LUCI CQ submitted the change

      Change information

      Commit message:
      Improve customizable combobox dismissal prevention

      The existing code which prevents the popover from being shown and then
      dismissed in one click was hitting a CHECK due to the light dismiss
      rewrite, so this patch migrates the logic to another spot which is also
      being used for customizable select.

      This patch also adds some logic to try preventing autofill from showing
      a picker by signaling that autocomplete should be turned off.
      Bug: 453705243
      Change-Id: Ica9fbc04c4210206911a9253ef46ffcc8a747918
      Reviewed-by: David Baron <dba...@chromium.org>
      Reviewed-by: Joey Arhar <jar...@chromium.org>
      Commit-Queue: Joey Arhar <jar...@chromium.org>
      Cr-Commit-Position: refs/heads/main@{#1567253}
      Files:
      • 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/text_field_input_type.cc
      • M third_party/blink/renderer/core/html/html_element.cc
      Change size: M
      Delta: 4 files changed, 29 insertions(+), 26 deletions(-)
      Branch: refs/heads/main
      Submit Requirements:
      • requirement satisfiedCode-Review: +1 by Joey Arhar, +1 by David Baron
      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: Ica9fbc04c4210206911a9253ef46ffcc8a747918
      Gerrit-Change-Number: 7411416
      Gerrit-PatchSet: 4
      Gerrit-Owner: Joey Arhar <jar...@chromium.org>
      Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
      open
      diffy
      satisfied_requirement
      Reply all
      Reply to author
      Forward
      0 new messages