Open GoogleCodeExporter opened 9 years ago
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.
Original comment by timothe....@gmail.com
on 22 Jul 2010 at 2:31
Attachments:
Original issue reported on code.google.com by
timothe....@gmail.com
on 13 Jul 2010 at 3:36Attachments: