[omnibox] Fix omnibox popup visibility condition for active drafts [chromium/src : main]

0 views
Skip to first unread message

Paul Adedeji (Gerrit)

unread,
Jul 16, 2026, 3:34:52 PMJul 16
to Marlon Facey, Chromium LUCI CQ, chromium...@chromium.org, jdonnel...@chromium.org, omnibox-...@chromium.org, orinj...@chromium.org
Attention needed from Marlon Facey

Paul Adedeji voted

Auto-Submit+1
Commit-Queue+1
Open in Gerrit

Related details

Attention is currently required from:
  • Marlon Facey
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: I56e17d5fb4f992164731acdfaefdcc20a7ce28ae
Gerrit-Change-Number: 8108627
Gerrit-PatchSet: 2
Gerrit-Owner: Paul Adedeji <paula...@google.com>
Gerrit-Reviewer: Marlon Facey <mfa...@chromium.org>
Gerrit-Reviewer: Paul Adedeji <paula...@google.com>
Gerrit-Attention: Marlon Facey <mfa...@chromium.org>
Gerrit-Comment-Date: Thu, 16 Jul 2026 19:34:42 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

Marlon Facey (Gerrit)

unread,
Jul 16, 2026, 3:37:53 PMJul 16
to Paul Adedeji, Chromium LUCI CQ, chromium...@chromium.org, jdonnel...@chromium.org, omnibox-...@chromium.org, orinj...@chromium.org
Attention needed from Paul Adedeji

Marlon Facey voted and added 1 comment

Votes added by Marlon Facey

Code-Review+1
Commit-Queue+2

1 comment

Patchset-level comments
File-level comment, Patchset 2 (Latest):
Marlon Facey . resolved

LGTM

Open in Gerrit

Related details

Attention is currently required from:
  • Paul Adedeji
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: I56e17d5fb4f992164731acdfaefdcc20a7ce28ae
    Gerrit-Change-Number: 8108627
    Gerrit-PatchSet: 2
    Gerrit-Owner: Paul Adedeji <paula...@google.com>
    Gerrit-Reviewer: Marlon Facey <mfa...@chromium.org>
    Gerrit-Reviewer: Paul Adedeji <paula...@google.com>
    Gerrit-Attention: Paul Adedeji <paula...@google.com>
    Gerrit-Comment-Date: Thu, 16 Jul 2026 19:37:42 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    satisfied_requirement
    open
    diffy

    Chromium LUCI CQ (Gerrit)

    unread,
    Jul 16, 2026, 4:57:54 PMJul 16
    to Paul Adedeji, Marlon Facey, chromium...@chromium.org, jdonnel...@chromium.org, omnibox-...@chromium.org, orinj...@chromium.org

    Chromium LUCI CQ submitted the change

    Change information

    Commit message:
    [omnibox] Fix omnibox popup visibility condition for active drafts

    Ensure the omnibox popup state is set to full when an active draft is
    present, regardless of focus status. Previously, the popup state
    condition inadvertently required focus even when user input was in
    progress with user text.
    Change-Id: I56e17d5fb4f992164731acdfaefdcc20a7ce28ae
    Bug: b:504668582
    Reviewed-by: Marlon Facey <mfa...@chromium.org>
    Commit-Queue: Paul Adedeji <paula...@google.com>
    Commit-Queue: Marlon Facey <mfa...@chromium.org>
    Auto-Submit: Paul Adedeji <paula...@google.com>
    Cr-Commit-Position: refs/heads/main@{#1663496}
    Files:
    • M chrome/browser/ui/views/omnibox/omnibox_popup_view_full_webui.cc
    Change size: S
    Delta: 1 file changed, 7 insertions(+), 7 deletions(-)
    Branch: refs/heads/main
    Submit Requirements:
    • requirement satisfiedCode-Review: +1 by Marlon Facey
    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: I56e17d5fb4f992164731acdfaefdcc20a7ce28ae
    Gerrit-Change-Number: 8108627
    Gerrit-PatchSet: 3
    Gerrit-Owner: Paul Adedeji <paula...@google.com>
    Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
    Gerrit-Reviewer: Marlon Facey <mfa...@chromium.org>
    Gerrit-Reviewer: Paul Adedeji <paula...@google.com>
    open
    diffy
    satisfied_requirement

    manuk hovanesian (Gerrit)

    unread,
    3:29 PM (5 hours ago) 3:29 PM
    to Chromium LUCI CQ, Paul Adedeji, Marlon Facey, chromium...@chromium.org, jdonnel...@chromium.org, omnibox-...@chromium.org, orinj...@chromium.org
    Attention needed from Paul Adedeji

    manuk hovanesian added 1 comment

    File chrome/browser/ui/views/omnibox/omnibox_popup_view_full_webui.cc
    Line 205, Patchset 3 (Latest):
    // The popup must be visible (`OmniboxPopupState::kFull`) if there is an
    // active draft or if the omnibox should have visible focus.
    const bool has_non_empty_draft =
    state->model_state.user_input_in_progress &&
    !state->model_state.user_text.empty();
    target_popup_state = (has_non_empty_draft || should_focus_popup)
    ? OmniboxPopupState::kFull
    : OmniboxPopupState::kNone;
    manuk hovanesian . unresolved

    I'm not sure what this block of code is supposed to do.

    Based on the CL description and the comment in the code, it seems like the intent was that if you switch to a tab with user edited input, the popup should automatically open?

    if that was the intent, then it doesn't seem to occur at tip of tree nor canary.

    it also doesn't occur in views omnibox, so i'm unsure if we should even try to fix it but rather remove the code altogether?

    i'm possibly just misunderstanding the intent of this CL.

    printf shows `target_popup_state` is being set to kFull (sometimes incorrectly when there is no user drafted edit), but it *almost* never actually opens the popup.

    so there seems to be 3 bugs,

    a) target_popup_state is being set to kFull even when there is no edit, e.g switching to an NTP with an unmodified omnibox.

    b) even when target_popup_state is set to kFull, the popup almost never opens (like 95% of the time)

    c) why are we even trying to open the popup since the views omnibox doesn't seem to do so.

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Paul Adedeji
    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: I56e17d5fb4f992164731acdfaefdcc20a7ce28ae
    Gerrit-Change-Number: 8108627
    Gerrit-PatchSet: 3
    Gerrit-Owner: Paul Adedeji <paula...@google.com>
    Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
    Gerrit-Reviewer: Marlon Facey <mfa...@chromium.org>
    Gerrit-Reviewer: Paul Adedeji <paula...@google.com>
    Gerrit-CC: manuk hovanesian <man...@chromium.org>
    Gerrit-Attention: Paul Adedeji <paula...@google.com>
    Gerrit-Comment-Date: Sun, 09 Aug 2026 19:29:44 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    open
    diffy
    Reply all
    Reply to author
    Forward
    0 new messages