modifier+click on a link (ctrl, shift) should not generate onclick event for links
Categories
(Core :: DOM: Events, defect, P5)
Tracking
()
People
(Reporter: ndm, Unassigned)
References
(Blocks 3 open bugs, )
Details
(Keywords: testcase)
Attachments
(4 files, 1 obsolete file)
Comment 1•23 years ago
|
||
Comment 2•23 years ago
|
||
Comment 3•23 years ago
|
||
| Reporter | ||
Comment 4•23 years ago
|
||
Comment 5•23 years ago
|
||
| Reporter | ||
Comment 6•23 years ago
|
||
Comment 7•23 years ago
|
||
| Reporter | ||
Comment 8•23 years ago
|
||
Comment 9•23 years ago
|
||
Comment 10•23 years ago
|
||
| Reporter | ||
Comment 11•23 years ago
|
||
Comment 12•23 years ago
|
||
Comment 13•23 years ago
|
||
Updated•23 years ago
|
Comment 14•23 years ago
|
||
Comment 15•23 years ago
|
||
Comment 16•22 years ago
|
||
Comment 17•22 years ago
|
||
Updated•22 years ago
|
Updated•22 years ago
|
Updated•22 years ago
|
Comment 18•22 years ago
|
||
Comment 19•21 years ago
|
||
Comment 20•21 years ago
|
||
Comment 21•21 years ago
|
||
Comment 22•21 years ago
|
||
Comment 23•21 years ago
|
||
Comment 24•21 years ago
|
||
Comment 25•21 years ago
|
||
Comment 26•21 years ago
|
||
Comment 27•20 years ago
|
||
Comment 28•20 years ago
|
||
Comment 29•20 years ago
|
||
Comment 30•20 years ago
|
||
Comment 31•19 years ago
|
||
Comment 32•19 years ago
|
||
Comment 33•19 years ago
|
||
Comment 34•19 years ago
|
||
Comment 35•19 years ago
|
||
Comment 36•19 years ago
|
||
Comment 41•17 years ago
|
||
Comment 42•17 years ago
|
||
Comment 43•17 years ago
|
||
Updated•16 years ago
|
Updated•15 years ago
|
Comment 54•4 years ago
|
||
Bulk-downgrade of unassigned, 4 years untouched DOM/Storage bugs' priority.
If you have reason to believe this is wrong (especially for the severity), please write a comment and ni :jstutte.
Modifier+click is now expected to generate click events, and getModifierState() can be used to prevent unwanted behavior.
Comment 56•4 years ago
|
||
Modifier+click is now expected to generate click events
Expected by who?
and getModifierState() can be used to prevent unwanted behavior.
Who can use getModifierState() for this purpose (as stated in the initial description) and how?
Comment 57•4 years ago
|
||
(In reply to Kagami :saschanaz from comment #55)
Modifier+click is now expected to generate click events, and
getModifierState()can be used to prevent unwanted behavior.
Both of these things are well known. The problem is the every website has to make an effort to use getModifierState(). This will not happen, so Ctrl-click is now unreliable for Firefox. Since it is unreliable it is pointless and should be removed.
Oh, on the second investigation I found Chrome has some different behavior here. It does fire click event but window.open() behavior changes based on modifier state. The spec says:
If there is a user agent that supports control-clicking a link to open it in a new tab, and the user control-clicks on an element whose onclick handler uses the window.open() API to open a page in an iframe element, the user agent could override the selection of the target browsing context to instead target a new tab.
I think we want to implement this behavior.
Comment 59•4 years ago
|
||
I'm not sure that is enough to help OP, which is about window.location = ... sets.
Agreed, filed bug 1686439 as this bug is not exactly about window.open behavior.
Comment 61•4 years ago
|
||
Why do you think this should be INVALID though? It seems quite reasonable for end users to expect consistent behavior with other link clicks here.
Okay, let's go WONTFIX as we do want to keep firing onclick here.
Description
•