Inserting mouse cursor caret in address bar at specific location no longer works when clicking near top/bottom edges of box (insertable height does not match visual height)
Categories
(Firefox :: Address Bar, defect, P3)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox-esr115 | --- | unaffected |
| firefox-esr140 | --- | unaffected |
| firefox-esr153 | --- | wontfix |
| firefox150 | --- | unaffected |
| firefox151 | --- | wontfix |
| firefox152 | --- | wontfix |
| firefox153 | --- | wontfix |
| firefox154 | --- | verified |
| firefox155 | --- | verified |
People
(Reporter: ke5trel, Assigned: daisuke)
References
(Regression)
Details
(4 keywords, Whiteboard: [sng])
Attachments
(3 files, 1 obsolete file)
STR:
- Start latest Nightly 152.0a1 on Ubuntu 26.04.
- Move the mouse cursor into the address bar above/below where there is text.
- When the cursor icon first changes to an "I" to indicate insertion, left-click and drag to make a selection.
Expected:
Caret inserted at mouse cursor position like before.
Actual:
Caret inserted at end of address when clicking on bottom edge or at beginning of address when clicking on top edge.
The deadzone around the edges of the address bar where caret insertion fails despite the icon showing "I" is 5px which is 36% of the clickable height. The user must be careful to click directly over text for caret insertion to work at the cursor location like before.
Regression window:
https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=02376ed8674012d2bd575682466cc9177039adb9&tochange=a77a08b9be8a059936afa68f259adb86823bb75f
Regressed by Bug 2031757.
Comment 1•5 months ago
|
||
:emilio, since you are the author of the regressor, bug 2031757, could you take a look? Also, could you set the severity field?
For more information, please visit BugBot documentation.
Comment 2•5 months ago
|
||
This is kind of expected because the editable element no longer covers the whole padding area...
Comment 3•5 months ago
|
||
I guess a potential way of addressing this for the urlbar could be to bump up the line-height.
Comment 4•5 months ago
|
||
Hey Emilo! I'm the Engineering REO for Fx151.
Is this bug something that we can expect a patch/uplift for? Specifically, your comment regarding that this may expected behavior, I wasn't sure if this was more of a WONTFIX.
Thank you!
Comment 5•5 months ago
|
||
Yeah I don't see how to easily fix it other than doing something like comment 3 (which works on the urlbar but not on the smartbar etc). This feels very low severity but lmk if you disagree.
When I first encountered this, it wasn't clear why it was happening. Insertion failed randomly and it took me some time to figure out I wasn't clicking in the right spot. It is relatively easy to account for once you understand how it works but many people will have a similar confusing discovery process and some will never fully understand it. Users expect the border and cursor icon to define the interactive area but that is no longer the case.
The smaller and less forgiving interactive area also makes the address bar less accessible, requiring more precise cursor placement. The address bar is very prominent and should be as frictionless as possible.
Chrome has the expected behavior.
Updated•4 months ago
|
Updated•4 months ago
|
This was partially fixed but has regressed again in latest Nightly. The cursor icon changed to a caret only in the insertable areas which avoided confusion but now it has gone back to the full height, including areas that are not insertable.
Partial fix window:
https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=14b0bb51437f40a70414998f8bdc96c3ae09cf23&tochange=baacfcca6a956c09ebf7b735290133eed268df8c
Partially fixed by Bug 2039721.
Regression window:
https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=3f9d84a97b5989975cacbfd4ef1f7a6a4842fbaa&tochange=1f793ac428db458797324746e0964d708f9cb926
Regressed by Bug 2050821.
Comment 8•2 months ago
|
||
let's investigate this as part of Nova follow-ons
Updated•2 months ago
|
Comment 10•2 months ago
|
||
(In reply to Drew Willcoxon :adw (Away July 17–July 24) from comment #9)
I agree with comment 6 and think we should fix this for Nova.
Or at least revert it back to before bug 2050821 regressed it again, but we need to be careful not to reintroduce the problem that bug 2050821 was addressing.
| Assignee | ||
Comment 11•2 months ago
|
||
I tried a few things, and it seems that increasing line-height works well, as Emilio suggested. I will make the patch.
| Assignee | ||
Updated•2 months ago
|
| Assignee | ||
Comment 12•2 months ago
|
||
Comment 13•2 months ago
|
||
Comment 14•2 months ago
|
||
Comment 15•2 months ago
|
||
Reverted this because it was causing wpt failures in anchor-scroll-position-try-016.html.
- Revert link
- Push with failures
- Failure Log
- Failure line: TEST-UNEXPECTED-PASS | /css/css-anchor-position/anchor-scroll-position-try-016.html | Initially, anchored is at top left position - expected FAIL
| Assignee | ||
Updated•2 months ago
|
Comment 16•2 months ago
|
||
Comment 17•2 months ago
|
||
| bugherder | ||
Updated•2 months ago
|
Updated•2 months ago
|
Comment 18•2 months ago
|
||
The patch landed in nightly and beta is affected, along with ESR.
:daisuke, is this bug important enough to require an uplift?
- If yes, please nominate the patch for beta and ESR approvals.
- See https://wiki.mozilla.org/Release_Management/Requesting_an_Uplift for documentation on how to request an uplift.
- If no, please set
status-firefox154and the ESR status flag(s) towontfix.
For more information, please visit BugBot documentation.
| Assignee | ||
Comment 19•1 month ago
|
||
Original Revision: https://phabricator.services.mozilla.com/D313373
Updated•1 month ago
|
Comment 20•1 month ago
|
||
firefox-beta Uplift Approval Request
- User impact if declined/Reason for urgency: User can't put the caret position correctly by clicking at the edge of the urlbar.
- Code covered by automated testing?: no
- Fix verified in Nightly?: yes
- Needs manual QE testing?: no
- Steps to reproduce for manual QE testing:
- Risk associated with taking this patch: low
- Explanation of risk level: The code changes only CSS line-height.
- String changes made/needed?: None
- Is Android affected?: unknown
| Assignee | ||
Updated•1 month ago
|
| Assignee | ||
Comment 21•1 month ago
|
||
Original Revision: https://phabricator.services.mozilla.com/D313373
Updated•1 month ago
|
Comment 22•1 month ago
|
||
firefox-esr153 Uplift Approval Request
- User impact if declined/Reason for urgency: User can't put the caret position correctly by clicking at the edge of the urlbar.
- Code covered by automated testing?: no
- Fix verified in Nightly?: yes
- Needs manual QE testing?: no
- Steps to reproduce for manual QE testing:
- Risk associated with taking this patch: low
- Explanation of risk level: The code changes only CSS line-height.
- String changes made/needed?: None
- Is Android affected?: unknown
Updated•1 month ago
|
Updated•1 month ago
|
Comment 23•1 month ago
|
||
| uplift | ||
Updated•1 month ago
|
Updated•1 month ago
|
Updated•1 month ago
|
Comment 24•1 month ago
|
||
| uplift | ||
Comment 25•1 month ago
|
||
| backout uplift | ||
Comment 26•1 month ago
•
|
||
:daisuke backed out of esr153 due to bc failures and wpt failures
Updated•1 month ago
|
Updated•1 month ago
|
| Assignee | ||
Updated•1 month ago
|
Updated•1 month ago
|
Updated•1 month ago
|
| Assignee | ||
Comment 27•1 month ago
|
||
We wanted to uplift this fix to the ESR, but it might make another regression, we decided to stop uplifting. Thanks!
Updated•1 month ago
|
Updated•1 month ago
|
Reproducible on a 2026-04-28 Firefox Nightly build on Ubuntu 22.
Verified as fixed on Firefox Nightly 155.0a1 and Firefox 154.0b9 on Ubuntu 22, macOS 13, Windows 10.
Description
•