Open Bug 402394 Opened 16 years ago Updated 6 months ago

gtk drag and drop does not contain a jpg image when dragging to external gtk application

Categories

(Firefox :: Shell Integration, defect)

3.0 Branch
x86
Linux
defect

Tracking

()

UNCONFIRMED

People

(Reporter: p.g.richardson, Unassigned)

References

()

Details

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9a9pre) Gecko/2007110304 Minefield/3.0a9pre
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9a9pre) Gecko/2007110304 Minefield/3.0a9pre

Aim:
1) goto http://www.allcdcovers.com/show/11863/catatonia_international_velvet_1998_retail_cd/front
2) click download button to show one-session only jpg file.
3) drag image file from webpage into external gtk application, eg. gtkpod, and retrieve jpg image from drag data.

At the moment both ff3 nightly build and ff2 support following data flavours when the image is dragged from ff into gtkpod:
Atom: text/x-moz-url
Atom: _NETSCAPE_URL
Atom: text/x-moz-url-data
Atom: text/x-moz-url-desc
Atom: text/_moz_htmlcontext
Atom: text/_moz_htmlinfo
Atom: text/html
Atom: text/unicode
Atom: text/plain
Atom: application/x-moz-nativeimage
Atom: application/x-moz-file-promise
Atom: application/x-moz-file-promise-url
Atom: application/x-moz-file-promise-dest-filename

Some contain the jpg url (which is one-session only so cannot be used with curl or wget to download separately) while some contain variations (title + url).

None seem to contain a pixbuf of the image itself. Tested by calling
GdkPixbuf *pixbuf = gtk_selection_data_get_pixbuf (data);
pixbuf returns null for each flavour above containing data.

Konqueror includes an image/jpeg data flavour that does return a pixbuf of the displayed image. Is it possible similar functionality could be added to ff?

Can you please confirm whether image can be obtained from existing data flavours without redownloading from the url.

Reproducible: Always

Steps to Reproduce:
1. Load ff2-3 and navigate to a jpg file - AllCDCovers or google images
2. drag displayed image to external dnd supporting gtk application
3. external app does not receive any data that is/can be a pixbuf.
Actual Results:  
Lack of image data. Only text of url.

Expected Results:  
image data that can be converted to a pixbuf and saved externally.
Version: unspecified → 3.0 Branch
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.