SebastianSimon / firefox-omni-tweaks

A script that disables the clickSelectsAll behavior of Firefox, and more.
MIT License
43 stars 8 forks source link

Option to disable URL selection on tab switch #20

Open Celelibi opened 2 years ago

Celelibi commented 2 years ago

Switching tab to one that had an active URL bar selects the URL. The option tabSwitchCopiesToClipboard copies the selected content to the clipboard. I'd rather like to not select the URL at all. I don't know when this behavior actually appeared, but it wasn't always the case. I can say for sure that firefox 59 didn't have it.

It would be nice if the cursor position could be restored, but IMO it's also ok if the cursor just get to the beginning or the end of the URL.

I don't really know what to modify to implement this. But the method setURI in modules/UrlbarInput.jsm seems like a good candidate to start exploring.