Closed Bug 2051445 Opened 2 months ago Closed 1 month ago

Search term jumps rightwards in URL bar after you've submitted it

Categories

(Firefox :: Protections UI, defect, P2)

defect

Tracking

()

RESOLVED FIXED
154 Branch
Tracking Status
firefox-esr140 --- unaffected
firefox152 --- unaffected
firefox153 + wontfix
firefox154 --- verified

People

(Reporter: dholbert, Assigned: daisuke)

References

(Regression)

Details

(Keywords: regression)

Attachments

(4 files)

STR:

  1. Type any search query (e.g. test) into your URL bar
  2. Hit enter.
  3. See what happens to that search query in your URL bar.

ACTUAL RESULTS:
The search query jumps rightwards. (Nothing else in the URL bar moves; just the search query.)

EXPECTED RESULTS:
No such jump.

Regression range:
https://hg-edge.mozilla.org/integration/autoland/pushloghtml?fromchange=3385c294f2337d197ac8573bae60c432cde1deca&tochange=df04a5ae1f2f4ccc25ad030e10cc276243547ab9

--> Regression from the margin added in bug 2012038.

Flags: needinfo?(daisuke)
Attached video screencast of bug

Set release status flags based on info from the regressing bug 2012038

Thank you very much, Daniel!
Yeah, I confirmed this issue. I will fix it.

Flags: needinfo?(daisuke)
Assignee: nobody → daisuke
Status: NEW → ASSIGNED

This bug was caused by #identity-box still getting a margin-inline-end even
though all of its children were hidden and the box was effectively invisible,
because the box itself was not display: none. So, when all of its children
are hidden, set the hidden attribute on #identity-box to make it
display: none.

Attachment #9603261 - Attachment description: Bug 2051445 - Set hidden attribute to #identity-box when it has no visible content → Bug 2051445 - Put the urlbar input gap on the input box instead of preceding components
See Also: → 2052029
Blocks: 2052029
See Also: 2052029

The severity field is not set for this bug.
:emz, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(emz)
Severity: -- → S4
Flags: needinfo?(emz)
Priority: -- → P2
Pushed by dakatsuka.birchill@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/f340ab6fd3da https://hg.mozilla.org/integration/autoland/rev/02e983e617bf Put the urlbar input gap on the input box instead of preceding components r=adw,desktop-theme-reviewers,urlbar-reviewers,dao
Status: ASSIGNED → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 154 Branch

The patch landed in nightly and beta is affected.
:daisuke, is this bug important enough to require an uplift?

For more information, please visit BugBot documentation.

Flags: needinfo?(daisuke)

Reproducible on a 2026-06-29 Firefox Nightly build on Windows 11.

Verified as fixed on Firefox Nightly 154.0a1 on Windows 11, macOS 15.

Regressions: 2055109
Flags: needinfo?(daisuke)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: