middle mouse click to open URL in new window causes new window to steal focus
Categories
(Core :: DOM: UI Events & Focus Handling, defect)
Tracking
()
People
(Reporter: gak, Unassigned)
Details
Attachments
(1 file, 1 obsolete file)
644 bytes,
text/html
|
Details |
Reporter | ||
Comment 11•9 years ago
|
||
Assignee | ||
Updated•6 years ago
|
Reporter | ||
Comment 12•6 years ago
|
||
Sorry, "later this week" turned into just over three years but in the course of just reporting https://bugzilla.mozilla.org/show_bug.cgi?id=1544072, related to focus stealing when starting a new window from firefox shell command line invocation, I downloaded a ton of old release versions to test with, and have also tracked down when this bug was introduced.
I used the test.html file I will attach momentarily as well as the about:config settings in comment #5:
browser.link.open_newwindow = 2
browser.link.open_newwindow.override.external = 2
browser.link.open_newwindow.restriction = 0
browser.tabs.opentabfor.middleclick = false
middlemouse.openNewWindow = true
to test three cases of opening a new window via mouse click on a link:
- center-click on a regular link: <a href="url">
- left-click on a target="_blank" link: <a href="url" target="_blank">
- window.open() via onclick" <a ... onclick="window.open('url','_blank')
For case 1, i.e. the bug originally reported here, this bug still exists in 66.0.1. I have traced it, and found that it was introduced between 18.0 and 19.0. Interestingly, the secondary bug reported in comments 1 and 2 of https://bugzilla.mozilla.org/show_bug.cgi?id=1544072 was also introduced between those same versions.
For case 2, whereas I had previously reported at the end of comment #5 that left-click on a target="_blank" link was no longer working correctly in 44.0.2 and the 47.0a1 nightly, having regresses from the initial report against 33.0, I am no longer seeing that problem, and all versions tested through 66.0.1 are working correctly: the new window is created and does not grab focus.
For case 3, similarly, for the window.open() case, all versions are working correctly thru current stable release 66.0.1.
Reporter | ||
Comment 13•6 years ago
|
||
see description in comment #12
Updated•2 years ago
|
Updated•1 year ago
|
Description
•