Open emilio opened 4 years ago
Hi @emilio ,
The default preference were ported from the old python selenium code, which used to be located here (when I created this extension) but has been moved to here. The default prefs are now defined here here (using this build file).
So it seems like the default behaviour is still to use 'browser.link.open_newwindow': '2'
. But I might have missed something.
I checked my firefox install, it is set to 3
by default...
Note for self: here is an explanation of the different possible values for browser.link.open_newwindow
: http://kb.mozillazine.org/Browser.link.open_newwindow .
This link states that the default value is 3 for firefox 2.0 (??? 👀 ???) and newer...
Summary: So this library seems to use the default value used by the default selenium libraries, but I don't understand why the selenium libraries still default to browser.link.open_newwindow = 2
.
Any thoughts?
Not sure, the default value in Gecko is defined here: https://searchfox.org/mozilla-central/rev/a78233c11a6baf2c308fbed17eb16c6e57b6a2ac/browser/app/profile/firefox.js#431
But not sure why other libraries would change it.
I wouldn't mind setting it to 3
, which will require increasing the major version of this library. Feel free to open a PR if you have time. If you don't have time but still think web-ext
could benefit from it, let me know, I'll do it.
I sent https://github.com/mozilla/web-ext/pull/1766 right before opening this issue for web-ext.
I don't know about other users of this library.
https://github.com/saadtazi/firefox-profile-js/blob/397764d1d6868cecabbe4a29a144d1b4f1ef7e49/lib/firefox_profile.js#L32
Changes the behavior of
target="_blank"
links. This is problematic for two reasons:If there's a good reason to change default behavior like that, it'd be good to state why in a comment at least? :)