-moz-user-select:none triggers dragging also when @draggable="false"
Categories
(Core :: DOM: Selection, defect, P3)
Tracking
()
Webcompat Priority | P3 |
People
(Reporter: MatsPalmgren_bugz, Assigned: smaug)
References
Details
(Keywords: regression, testcase, Whiteboard: [webcompat] )
Attachments
(1 file)
431 bytes,
text/html
|
Details |
Updated•7 years ago
|
Updated•7 years ago
|
Comment 1•7 years ago
|
||
Updated•6 years ago
|
Comment 2•6 years ago
|
||
Comment 3•6 years ago
|
||
Comment 4•6 years ago
|
||
Is there a workaround while waiting for a fix? I have an element that I'd like to be able to click, but not drag or select. It works fine in any other browser, but in Firefox I have to pick one of those two to prohibit and allow the other one, which is a bad user experience.
Also, trackback to bug 1326143, which is probably the same thing?
Comment 7•6 years ago
|
||
You can currently preventDefault
on mousedown
event to workaround this, but it's not ideal... Hopefully this bug can be fixed.
Comment 8•6 years ago
|
||
Migrating Webcompat whiteboard priorities to project flags. See bug 1547409.
Comment 9•6 years ago
|
||
See bug 1547409. Migrating whiteboard priority tags to program flags.
Comment 10•6 years ago
|
||
(In reply to Daniel Holbert [:dholbert] from comment #4)
Aha -- so in that range, this would've regressed from bug 936092:
1eec2c8789c1 Olli Pettay — Bug 936092, initial DnD support for e10s, r=enndeakin,karlt
("DnD" = Drag n Drop)
Smaug, maybe you could take a look?
So, this is affecting Google, Netflix, a considerable number of users of our software and no doubt countless thousands of other users in other applications across the world.
Can we please get the priority of this bumped up considerably and ensure it gets the attention it deserves?
Updated•5 years ago
|
Comment 12•5 years ago
|
||
HI,
Thanks for the details. I was able to reproduce on windows 10 pro, on the following versions
Firefox Nightly Nightly 77.0a1 (2020-04-08) (64-bit)
Beta 76.0b1 (64-bit)
Release 75.0 (64-bit)
I will update flags accordingly.
Best,
Clara
Updated•5 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
Assignee | ||
Updated•4 years ago
|
Comment 13•4 years ago
|
||
A temporary workaround:
if (window.navigator.userAgent.toLowerCase().includes("firefox")) {
document.querySelectorAll("img[draggable=false]").forEach((el) => {
el.addEventListener("mousedown", (event) => event.preventDefault());
});
}
Comment 14•4 years ago
|
||
(In reply to chris from comment #10)
I second the motion to get this bumped up in priority - in our case it causes a safety issue (like real human injury could occur - type safety). We have a web based control of a commercially available robot where a button causes the robot to drive forward. Under firefox the button, in effect, gets stuck and the robot drives off in to the distance and can and has crashed, and I don't mean the computer just went down.
(In reply to Daniel Holbert [:dholbert] from comment #4)
Aha -- so in that range, this would've regressed from bug 936092:
1eec2c8789c1 Olli Pettay — Bug 936092, initial DnD support for e10s, r=enndeakin,karlt
("DnD" = Drag n Drop)
Smaug, maybe you could take a look?
So, this is affecting Google, Netflix, a considerable number of users of our software and no doubt countless thousands of other users in other applications across the world.
Can we please get the priority of this bumped up considerably and ensure it gets the attention it deserves?
Comment 15•3 years ago
|
||
P3 based on the fact we have a couple of reports for now. But the comment #14 is very unfortunate indeed.
If people in this bug have examples of more cases on real websites, that would be cool to know about them, to better understand the next course of actions.
Updated•2 years ago
|
Comment 16•2 years ago
|
||
I'm new on bugzilla but, as a firefox addict, I follow the question for a long time now.
My point is: since you allow <img draggable="false" ... /> the guy who really wants to prevent it can.
But in his site where he will have to make it for each img block and each generated img object, webkit solution allows it one-line quite simply where moz doesn't.
It is not a question of making img "impossible to drag by default", like it was repeatedly objected years ago, but simply allowing to prevent it with a simple line where it currently requires typing it in every concerned html object, just for firefox.
As for this very page header-external-menu-button, and other pop-up able images of the header, its image is not draggable while not pop-up ones are (browse, search, ...).
I happen to browse number of images and, as quite a long time interface designer, it feels more like an unexpected side-effect than a really wanted feature, and the result is a feeling of incoherence.
Personally, I force draggable="false" in the body which makes the same, but it breaks my W3C xhtml validation for it's not a body attribute.
Allow KISS principle, please.
Respectfully.
A stupid.
Comment 17•2 years ago
|
||
(In reply to faeldihn from comment #16)
I'm new on bugzilla but, as a firefox addict, I follow the question for a long time now.
My point is: since you allow <img draggable="false" ... /> the guy who really wants to prevent it can.
But in his site where he will have to make it for each img block and each generated img object, webkit solution allows it one-line quite simply where moz doesn't.
It is not a question of making img "impossible to drag by default", like it was repeatedly objected years ago, but simply allowing to prevent it with a simple line where it currently requires typing it in every concerned html object, just for firefox.As for this very page header-external-menu-button, and other pop-up able images of the header, its image is not draggable while not pop-up ones are (browse, search, ...).
I happen to browse number of images and, as quite a long time interface designer, it feels more like an unexpected side-effect than a really wanted feature, and the result is a feeling of incoherence.
Personally, I force ondragstart="return false" in the body which makes the same, but it breaks my W3C xhtml validation for it's not a body attribute.Allow KISS principle, please.
Respectfully.A stupid.
Description
•