Comment #1 on issue 1021 by [email protected]: Drag and drop broken -
Firefox 3.6.6 under Win7 doesn't work; other browsers/OS combinations flakey
http://code.google.com/p/gears/issues/detail?id=1021
I have discovered a work-around for this in javascript - with no clue as to
why it works. It suffices to simply read the HTML5 field
dataTransfer.dropEffect after calling the Gears desktop.setDropEffect
method.
e.g.
window['fred'] = evt.dataTransfer.dropEffect;
window.fred is not used anywhere else - it's coded that way so that any
optimizer can't remove the apparently useless read.
You can use it, or watch the firefox bugzilla case that I entered
(https://bugzilla.mozilla.org/show_bug.cgi?id=578757) to see if anyone can
explain this. Meantime, bracketing the read with a suitable browser
conditional (and maybe memorializing someone other than fred :-) should
make javascript code work.
It would be better if someone from the Gears team could fix this inside
Gears.
Attachments:
test.html 4.6 KB