Dragging a scrollbar of a block anchor is not possible as expected, because link's drag-and-drop operation is started.
Categories
(Core :: XUL, defect, P5)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox97 | --- | verified |
People
(Reporter: big.sea.cow, Assigned: edgar)
References
()
Details
(Keywords: testcase, Whiteboard: [testday-20110902])
Attachments
(3 files, 1 obsolete file)
Comment 1•19 years ago
|
||
Comment 2•16 years ago
|
||
Comment 3•16 years ago
|
||
| Reporter | ||
Comment 4•16 years ago
|
||
Comment 5•16 years ago
|
||
Comment 7•15 years ago
|
||
Comment 8•15 years ago
|
||
Comment 9•15 years ago
|
||
Comment 11•14 years ago
|
||
Comment 12•14 years ago
|
||
Updated•14 years ago
|
Comment 13•14 years ago
|
||
Comment 14•14 years ago
|
||
Comment 15•14 years ago
|
||
Updated•14 years ago
|
Updated•14 years ago
|
Comment 16•14 years ago
|
||
Comment 17•14 years ago
|
||
Updated•14 years ago
|
Comment 18•14 years ago
|
||
Comment 20•14 years ago
|
||
Updated•14 years ago
|
Comment 21•10 years ago
|
||
Comment 22•9 years ago
|
||
Updated•9 years ago
|
Comment 23•9 years ago
|
||
Comment 24•9 years ago
|
||
Comment 25•5 years ago
|
||
Bulk-downgrade of unassigned, untouched DOM/Storage bug's priority.
If you have reason to believe, this is wrong, please write a comment and ni :jstutte.
Updated•4 years ago
|
Comment 26•4 years ago
|
||
That should be interesting to have eyeballs from the UX team.
Maybe Dennis will look at it to see if it's simple or not to fix.
Comment 27•4 years ago
|
||
So, I don't know if this is not simple to fix, or if my understanding is just too limited to understand what's going on here.
The patch in this bug was adjusting XUL stuff, but this got removed a couple of years ago. These days, the elements you see in that XML are created programmatically, namely in nsScrollbarFrame::CreateAnonymousContent. Unfortuantely, you can't just add a event.stopPropagation() there.
There are some comments from :bgrins about these specific scrollbar handlers in bug 1431246 comment 4 and the comments after that. From my somewhat limited understanding, I share his understanding that nsXULElement::IsEventStoppedFromAnonymousScrollbar should already make this drag-interaction impossible, although I don't understand the order of things when we scroll a block element as it's the case in this bug. Clearly I'm missing something here.
Unfortunately, I'm not deep enough into this code to be able to suggest a way forward here. If this is an interesting bug to someone, :smaug may be a good person to talk to. Or maybe Emilio?
Comment 28•4 years ago
|
||
https://searchfox.org/mozilla-central/rev/1e5b6b30d96e9bd7d63eb22bda6f43cf212b5819/dom/xul/nsXULElement.cpp#911 doesn't seem to handle mousedown, so that'd be the equivalent to the xul patch above I believe. About why having Dragstart there doesn't seem to be enough, we probably create Dragstart from the mousedown event or so, but it's just a guess and rr is not working for me atm, so would need to dig more.
Comment 29•4 years ago
|
||
eDragStart is synthesized from eMouseMove, not eMouseDown.
https://searchfox.org/mozilla-central/rev/bc5e79f3ae0f42cb4a6ebd05fc32f48a3829059d/dom/events/EventStateManager.cpp#690,733-735,744-745,748
I guess that it captures mouse pointer for changing scroll position, then, it needs to make PresShell::IsMouseCapturePreventingDrag() return true.
Edgar may be familiar around here.
| Assignee | ||
Comment 30•4 years ago
|
||
(In reply to Masayuki Nakano [:masayuki] (he/him)(JST, +0900) from comment #29)
I guess that it captures mouse pointer for changing scroll position, then, it needs to make
PresShell::IsMouseCapturePreventingDrag()returntrue.
Yeah, we probably need to prevent drag while capturing mouse in https://searchfox.org/mozilla-central/rev/3d94f040d68627d07fb06be04a05cad33cda10d4/layout/xul/nsSliderFrame.cpp#1270-1271.
| Assignee | ||
Comment 31•4 years ago
|
||
| Assignee | ||
Comment 32•4 years ago
|
||
Updated•4 years ago
|
Updated•4 years ago
|
| Assignee | ||
Comment 33•4 years ago
|
||
Comment 35•4 years ago
|
||
Comment 36•4 years ago
|
||
| bugherder | ||
Updated•4 years ago
|
Updated•4 years ago
|
Comment 38•3 years ago
|
||
Reproduced the issue with affected Firefox 95.0a1 (20211005215418) on Windows 10x64. Dragging scrollbar from the attached test case drags the frame as well. Also using Ctrl+A inside a PDF and then dragging the scroll bar blocks the scroll bar.
I can no longer reproduce the issue with Firefox 97.0b9 (20220127193706) on Windows 10x64, macOS 10.15 and Ubuntu 20.04. Dragging the scroll bar inside the attached test case and inside a PDF after using CTRL+A works as expected.
Updated•3 years ago
|
Description
•