When middle clicking opens a tab in the background diverted windows should also open in the background
Categories
(Firefox :: Settings UI, defect, P3)
Tracking
()
People
(Reporter: mossop, Unassigned)
References
Details
(Whiteboard: [fidefe-quality-foundations])
Attachments
(1 obsolete file)
Updated•3 years ago
|
Updated•1 year ago
|
Updated•1 year ago
|
Comment 1•1 year ago
|
||
Actually, not 100% sure I follow this bug report. Is the "hidden preference" browser.tabs.loadDivertedInBackground
?
Reporter | ||
Comment 2•1 year ago
|
||
Yes. Basically I think that setting in the settings UI should control both tabs open via middle click and tabs opened via clicks on links with target="_blank"
rather than needing to go into about:config to change the latter.
Comment 3•1 year ago
|
||
Am I correct that the following is the problem?
steps to reproduce:
- Open about:preferences
- Check "Open links in tabs instead of new windows" (the default option)
- Uncheck "When you open a link, image or media in a new tab, switch to it immediately" (the default option)
- open
data:text/html,<a href="https://bugzilla.mozilla.org/" target="_blank">link</a>
- primary-click on "link" on the page
- (go back to the step 4's tab and) middle-click on "link" on the page
actual result:
- new tab is opened and selected on step 5
- new tab is opened but not selected on step 6
expected result:
- new tab is opened but not selected on step 5
- new tab is opened but not selected on step 6
Comment 4•1 year ago
|
||
Re: comment #3, I think so but I'll let Dave confirm.
It sounds like we should be able to get rid of the loadDivertedInBackground
pref entirely.
Reporter | ||
Comment 5•1 year ago
|
||
Yes, I think we should get rid of loadDivertedInBackground
and just use the one setting "When you open a link, image or media in a new tab, switch to it immediately" to control whether new tabs are immediately focused regardless of how they are opened.
Comment 6•1 year ago
|
||
Actually, the current Firefox behavior matches to Chrome and Safari, with the above steps.
With the default option, Chrome and Safari opens and select tab on step 5, and
opens a tab but doesn't select on step 6.
Safari has an option "when a new tab or window opens, make it active", which is unchecked by default.
when I check it, it opens and select tab both on steps 5 and 6.
So, this means primary-click on target="_blank"
is not controlled by the option.
I don't find relevant option on Chrome.
while I agree on simplifying the prefs and behaviors, changing the default behavior for those operations could cause interop issue
Reporter | ||
Updated•1 year ago
|
Description
•