Bug: New DragDrop api in 0.5.21.0 doesn't work i Firefox 3.0.10 OS X but works with Safari

0 views
Skip to first unread message

Manu J

unread,
May 31, 2009, 5:57:18 PM5/31/09
to Gears Users
I'm using the new DragDrop api using
http://code.google.com/p/gears/source/browse/trunk/gears/test/manual/drag_and_drop.html

as reference. inf firefox this

var data = desktop.getDragData(event, 'application/x-gears-files');

will result in an empty data object even if the dragdrop is
successull. ie
data.files = [], data.count = 0 etc.

The same code works fine on Safari 4 beta

Peter

unread,
Jun 2, 2009, 12:35:50 AM6/2/09
to Gears Users
I second Manu's finding. I am getting the exact same result.

On May 31, 2:57 pm, Manu J <manu.1...@gmail.com> wrote:
> I'm using the new DragDrop api usinghttp://code.google.com/p/gears/source/browse/trunk/gears/test/manual/...

Peter

unread,
Jun 2, 2009, 2:36:03 AM6/2/09
to Gears Users
Not sure where my last message went, but I want to confirm Manu's
findings that this sample does not work in Firefox. The following is
returned:

{ "count": 0, "totalBytes": 0, "extensions": [], "mimeTypes": [],
"files": [] }


On May 31, 2:57 pm, Manu J <manu.1...@gmail.com> wrote:
> I'm using the new DragDrop api usinghttp://code.google.com/p/gears/source/browse/trunk/gears/test/manual/...

fvisticot

unread,
Jun 3, 2009, 3:42:06 AM6/3/09
to Gears Users
Hello,
I'm using Firefox 3.0 and it's working fine..
When i drag and drop an image, i can see the image dimensions, file
size and extension.
The next step is to display the image(s).
How to display the image from the "file.blob" ? Is there any
GoogleGears method to display image or thumbnail or do i need to use
external javascript library to display the content ?

Regards

Fred

fvisticot

unread,
Jun 3, 2009, 4:08:01 AM6/3/09
to Gears Users
After some reflection i wanted to use the Canvas HTML5 to display the
png/jpg.
Is it possible ? and is it the best solution ?? Sorry for this stupid
idea...i'm not a javascript expert...

Nigel Tao

unread,
Jun 4, 2009, 11:46:04 PM6/4/09
to Gears Users
On Jun 2, 4:36 pm, Peter <chang.pe...@gmail.com> wrote:
> Not sure where my last message went, but I want to confirm Manu's
> findings that this sample does not work in Firefox.

Firefox 3's event model is different from IE, Safari and HTML5. For a
code snippet that works in Firefox, please see the "Documentation for
0.5.21 ?" thread at http://groups.google.com/group/gears-users/browse_thread/thread/71d7eafc0062f2e9

Lars Trieloff

unread,
Jun 9, 2009, 6:06:55 AM6/9/09
to Gears Users
I am using the example from gears SVN, but I get the same results as
described before. The data object returned by desktop.getDragData
(event, 'application/x-gears-files') is essentially empty, and while
debugging it turns out that in Safari 4 the event contains a
transferData property which has all the clipboard data, while a
similar property is absent when debugging in Firefox 3.0.10 on Leopard
with Gears 0.5.21.

Does anyone know if there are additional tweaks necessary to make it
work?

regards,

Lars
> 0.5.21 ?" thread athttp://groups.google.com/group/gears-users/browse_thread/thread/71d7e...
Reply all
Reply to author
Forward
0 new messages