Closed Bug 1909189 Opened 3 months ago Closed 29 days ago

Evaluate alternatives to avoid shifting url when using double-click to select

Categories

(Firefox :: Address Bar, defect, P3)

defect

Tracking

()

RESOLVED FIXED
132 Branch
Tracking Status
firefox132 --- fixed

People

(Reporter: mak, Assigned: mak)

References

Details

(Whiteboard: [sng])

Attachments

(1 file)

While in most cases it works fine, there's cases where the removal of permission icons, not secure label, and the appearance of the dedicated search button, may cause double-click to select word to target an unexpected word.
To appropriately address the problem, we must ensure the url doesn't move until dbl-click is complete, that means the space in front of the input field must remain the same.
There's various approaches, all having their pro and cons:

  1. modify the ui so the url doesn't move at all, for example introducing a fixed size "dynamic island"-like box
  2. introduce a delay before showing/hiding icons. Though that delay can't be smaller than 1s, because double click delay is by default 500ms, and on touch it's closer to 1s. That introduces some risks as other events may arrive that invalidate the state. Plus the ui may feel "slow"
  3. Apply a css trick where for 1s we fix the before-url boxes width and use overflow: hidden, then unlock it after 1s. In some cases text/icons may appear cut for 1s.
Assignee: nobody → mak
Status: NEW → ASSIGNED
Pushed by mak77@bonardo.net: https://hg.mozilla.org/integration/autoland/rev/63171f1495ff Don't shift URL in the Address Bar on mouse focus, delay DOM changes to the first input event. r=jteow,daleharvey,desktop-theme-reviewers,urlbar-reviewers,dao
Status: ASSIGNED → RESOLVED
Closed: 29 days ago
Resolution: --- → FIXED
Target Milestone: --- → 132 Branch
See Also: → 1919734
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: