The default bug view has changed. See this FAQ.

New Drag and Drop JS API does not work with Jetpack installed

NEW
Unassigned

Status

()

Core
Drag and Drop
--
major
7 years ago
4 years ago

People

(Reporter: pascalc, Unassigned)

Tracking

Trunk
x86
Linux
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(URL)

Attachments

(1 attachment)

(Reporter)

Description

7 years ago
Mozilla/5.0 (X11; U; Linux i686; fr; rv:1.9.2b4) Gecko/20091124 Firefox/3.6b4

1/ install jetpack extension (I have version 0.6.2)
2/ go to http://demos.hacks.mozilla.org/openweb/DnD/
3/ drag and drop a jpeg image in the drop box area

expected result:
Area gets bigger on hover avec file dropping is detected with a thumnail created

actual result:
Page is replaced by the local File:// link to the image

Deactivate Jetpack in the add-ons manager avec the demo will work correctly
Flags: blocking-firefox3.6?
Got this confirmed by somebody else on Linux. CC'ing Atul in case he has some insight.

FWIW, it's working for me with Jetpack installed on OSX & today's 3.6 nightly
Why do we think this is a Firefox blocker, and not a JetPack blocker?
The more I look at this bug, the more I think it's not a blocker until proven to be a problem with Firefox instead of JetPack; the only bit that trips me up is that it's Linux only.

Removing the blocking nomination until someone answers my question in comment 2, and adding Enn to see if the fact that this is a linux-only problem gives him pause, as well.

--> Core::Drag and Drop
Component: General → Drag and Drop
Flags: blocking-firefox3.6?
Product: Firefox → Core
QA Contact: general → drag-drop

Comment 4

7 years ago
I confirm that this is happening with me with JetPack installed (3.6 Beta 5).  I disable Jetpack, DnD works fine. (using Linux/Ubuntu)
(Reporter)

Comment 5

7 years ago
For information, this bug is still there with Jetpack 0.7

Comment 6

7 years ago
yes it is there with 0.7

Comment 7

7 years ago
Sounds like it's from the slidebar.

The XBL slidebar.xml#stack is a stack (display: -moz-stack;) and for some reason doesn't forward dragenter event to the web content (if I remove -moz-stack, it works).
(In reply to comment #7)
> (if I remove -moz-stack, it works).

Does it affect the slidebar's functionality? (We're likely getting rid of it after 0.8 anyway, but if we can fix this bug in this release, we might as well.)

Comment 9

7 years ago
The stack is there to put content over slidebar contents to work around bug 130078. Pretty sure I needed the -moz-stack and crazy binding stuff to get things working, but if it's not necessary.. even better!

Comment 10

7 years ago
Yes, it affects the slidebar.

I'm trying to understand why the propagation of this event is stopped.

Comment 11

7 years ago
Created attachment 426244 [details]
extension testcase

The webpage doesn't receive the event because the slidebar (a <browser/>) is behind the tabbrowser (<browser type="content"/>).

A simple test case to reproduce the bug outside of jetpack:

<stack>
    <browser flex="1"/>
    <browser type="content" flex="1"/>
</stack>

The content of the second browser doesn't receive the event and only if it's a type="content" (or content-primary).

Testcase attached.
Install extension, then open test.xul:

javascript:window.opendDialog("chrome://test/content/test.xul")

Drag'n Drop a file into the web page: no visual feedback (the dropzone should be bigger). Toggle the stack: visual feedback (event received).
You need to log in before you can comment on or make changes to this bug.