Closed
Bug 474616
Opened 16 years ago
Closed 6 years ago
CSS: Overflow:auto caused Drag Drop issue in (Only) Mac FF3 with Prototype JS
Categories
(Core :: Widget: Cocoa, defect, P5)
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: gary, Unassigned)
References
()
Details
(Keywords: regression)
Attachments
(2 files)
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.0.5) Gecko/2008120121 Firefox/3.0.5
Build Identifier: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.0.5) Gecko/2008120121 Firefox/3.0.5
When attempting to drag and drop an image from the sidebar that has overflow:auto applied in the css, Firefox gets stuck on the drag procedure. All other environments like Saf, IE6/7, FF3(PC), FF2(Mac and PC) work perfectly. It's just FF3 on Mac that has this issue.
Reproducible: Always
Steps to Reproduce:
1.Click "Compose"
2.Upload an Image
3.Try drag it over.
Actual Results:
Image gets caught inside the sidebar.
Expected Results:
Image should drag over with a smooth movement.
This is not likely to be our code causing the issue.
Comment 1•16 years ago
|
||
Can you provide a minimal test case. Are there any errors in the console?
Reporter | ||
Comment 2•16 years ago
|
||
(In reply to comment #1)
> Can you provide a minimal test case. Are there any errors in the console?
Hey,
This might be too complex for a simple test case, but if it helps you can have a look while we drum something up
http://www.eternal.co.za/demos/mimi/
That's a single page demo that doesn't require a user to create an acct.
There are no console errors.
Reporter | ||
Comment 3•16 years ago
|
||
The line of CSS with the Overflow:auto is:
#image_list ul {
height: 300px;
overflow: auto;
width: 140px;
margin:4px 0px 4px 4px;
}
Comment 4•16 years ago
|
||
Can you set javscript.options.showInConsole (in about:config) to true and then check.
Henrik, can you test this on Mac?
Reporter | ||
Comment 5•16 years ago
|
||
Hey guys,
I set javscript.options.showInConsole (in about:config) to true, and I'm not seeing errors as far as I can tell.
Comment 6•16 years ago
|
||
I can see the same behavior. Let's mark it as new and see that we can get more information. Gary, I'll attach a minimized testcase for this issue. It would be great if you will find the time to remove all the unnecessary js scripts. The best thing would be to only have one file but I don't think that it will be possible here. So please reduce the amount of lines as much as you can. Thanks!
Status: UNCONFIRMED → NEW
Ever confirmed: true
Version: unspecified → 3.0 Branch
Comment 7•16 years ago
|
||
Still needs to get minimized...
Reporter | ||
Comment 8•16 years ago
|
||
Hey guys,
I've just spent some time auditing the JS here and although there's not very much to strip away because of the Proto library that's sitting on top of everything, I have some insight into the way we're dragging.
What Tobie (Tobie Langel, from Prototype who is responsible for the JS here) is trying to do, is he's waiting for a mousedown, THEN cloning the object, creating a draggable, and then activating it. He is cloning the image and the new copy is then image is created and dragged.
He's also doing something funky with absolutizing the container and then fixing it after the drop... but only in FF.
Since everything is tied into the Protoype JS, and I'm not a good JS coder like Tobie who built this Drag feature, I'm having trouble minimizing it further than Henrik so kindly has done.
Comment 9•16 years ago
|
||
As what I can see is that the start of a drag action clones the image but the new one stuck inside the sidebar until you release the mouse button. Now without a button pressed the image can be positioned. Doing a parallel test on XP doesn't show this problem. So a widget problem?
Assignee: nobody → joshmoz
Component: General → Widget: Mac
Product: Firefox → Core
QA Contact: general → mac
Version: 3.0 Branch → Trunk
Comment 10•16 years ago
|
||
Henrik, this doesn't happen on the 1.8 branch, so it isn't a Widget : Mac bug :-)
Component: Widget: Mac → Widget: Cocoa
QA Contact: mac → cocoa
Comment 11•16 years ago
|
||
On the face of it, it looks like something isn't receiving a mouse-up event that should be receiving one.
Assignee: joshmoz → smichaud
Comment 12•16 years ago
|
||
Or maybe some kind of drag event isn't being sent/received.
Comment 13•16 years ago
|
||
> Or maybe some kind of drag event isn't being sent/received.
No, because this bug can happen without any dragging at all.
Comment 14•16 years ago
|
||
Henrik, it'd be really nice if you could find a regression range for this.
Updated•16 years ago
|
Keywords: regression,
regressionwindow-wanted
Comment 15•16 years ago
|
||
Huh, that's an really old regression. Luckily I was able to get the range. The following days no builds are available on OS X. Ok, so this regressed between the following builds:
Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.9a1) Gecko/20060928 Minefield/3.0a1
Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.9a1) Gecko/20060929 Minefield/3.0a1
Checkins: http://tinyurl.com/ctyqkw
I highly suspect bug 326469. Means the switch from Carbon to Cocoa.
Blocks: 326469
Keywords: regressionwindow-wanted
Comment 16•16 years ago
|
||
I was finally able to get a testcase for this. It turns out that the mouseup event is somehow eaten when the parent container changes into an absolute positioned element onmousedown.
Updated•16 years ago
|
Flags: blocking1.9.1?
Comment 17•16 years ago
|
||
This is an old regression, it isn't clear to me that it affects enough people for us to block on it. wanted1.9.1+
Flags: wanted1.9.1+
Flags: blocking1.9.1?
Flags: blocking1.9.1-
Priority: -- → P1
Comment 18•6 years ago
|
||
Decreasing the priority as no update for the last 2 years on this bug.
See https://github.com/mozilla/bug-handling/blob/master/policy/triage-bugzilla.md#how-do-you-triage
about the priority meaning.
Priority: P1 → P5
Comment 19•6 years ago
|
||
This appears to be fixed in current builds. Please reopen if this continues to be an issue.
Assignee: smichaud → nobody
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•