Comment 20 for bug 1888942

Revision history for this message
In , Mozbugs-a (mozbugs-a) wrote :

(In reply to Marco Bonardo [:mak] from comment #2)
> For how much it may look confusing (it is definitely a shift in behavior and habits), this is the expected behavior currently. Clicking on the urlbar focuses and selects its contents, but because the selection is programmatic we don't override the primary selection, that is because maybe you are selecting the urlbar to paste something, and we don't want to overwrite that.
>
> triple-click should work correctly if you start from an unfocused urlbar (please let us know otherwise), or it's bug 1633203 (allow to re-select). Would fixing that bug help?
> You can also drag select starting from the unfocused urlbar.

I appreciate your explanations. I see that you have had to re-explain this across a suite of bug reports, over several years. Maybe there's a middle ground here.

In X11, highlight == primary selection. I understand that the current behavior is an auto-selection, and I think I agree that automatic actions should not have side-effects.

The middle ground would be to allow the user to control that auto-selection. In X11, the auto-select is giving a false view of the state of the system. Make the default to work as it currently does, but give X11 users the opportunity to set Firefox up to conform to X11 (ICCM, Freedesktop.org) standards.

Handling the urlbar selection should be done in only one place (I'd guess), so adding an 'if' in that one place doesn't seem too extreme a solution, and would give you a rest from re-explaining the current behavior.