web.whatsapp.com - Dragging and dropping image saves a .url file instead of the image itself
Categories
(Web Compatibility :: Site Reports, defect, P2)
Tracking
(Webcompat Priority:P2, Webcompat Score:6, firefox140 affected)
| Tracking | Status | |
|---|---|---|
| firefox140 | --- | affected |
People
(Reporter: selim, Unassigned)
References
()
Details
(Keywords: webcompat:platform-bug, webcompat:site-report, Whiteboard: [webcompat:sightline])
User Story
platform:windows impact:annoyance configuration:general affects:all branch:release user-impact-score:210 diagnosis-team:dom
Steps to reproduce
- Login to https://web.whatsapp.com/
- Drag any recieved image to desktop.
Result
A file named blob_https___web.whatsapp.com_<random_id> is created. Double clicking that file returns this error message:
Unable to open this Internet Shortcut. The protocol "blob" does not have a registered program.
I cannot reproduce this on Chrome. Dragging and dropping on Chrome creates a regular JPEG file.
Comment 1•8 months ago
|
||
I cannot reproduce on Nightly (2025-05-21) and macOS. Could you test on a different profile, or in troubleshoot mode?
| Reporter | ||
Comment 2•8 months ago
|
||
This was actually reported by a forum user using Firefox 138 on Windows and I was able to reproduce on Nightly on Windows. I'm also able to reproduce in troubleshoot mode. I suppose this could be a Windows-only issue?
Updated•8 months ago
|
Updated•8 months ago
|
Updated•8 months ago
|
Updated•8 months ago
|
Comment 3•7 months ago
|
||
I don't think we ever understood what's going on even in bug 1670200. Pushing back to the needs-diagnosis state.
Updated•7 months ago
|
Comment 4•7 months ago
|
||
It sounds like this is known. Edgar knows more about the drag and drop code.
Edgar, do you mind confirm the behaviour here? Thanks
Comment 5•7 months ago
|
||
I could also reproduce this.
Since drag and drop a image with http/https URL to desktop creates a regular file, I suspect the issue may be related to blob URLs. Perhaps we doesn't generate proper native dnd entry for blob URL in widget layer? I will try to take a look.
Comment 6•7 months ago
|
||
I dump the DataObject entry for both case,
Drag image with HTTP/HTTPS URL to desktop:
[Parent 25400: Main Thread]: D/WidgetDragService FORMAT text/x-moz-url
[Parent 25400: Main Thread]: D/WidgetDragService FORMAT FileGroupDescriptor
[Parent 25400: Main Thread]: D/WidgetDragService FORMAT FileGroupDescriptorW
[Parent 25400: Main Thread]: D/WidgetDragService FORMAT FileContents
[Parent 25400: Main Thread]: D/WidgetDragService FORMAT UniformResourceLocator
[Parent 25400: Main Thread]: D/WidgetDragService FORMAT UniformResourceLocatorW
[Parent 25400: Main Thread]: D/WidgetDragService FORMAT text/x-moz-url-data
[Parent 25400: Main Thread]: D/WidgetDragService FORMAT text/x-moz-url-desc
[Parent 25400: Main Thread]: D/WidgetDragService FORMAT application/x-moz-custom-clipdata
[Parent 25400: Main Thread]: D/WidgetDragService FORMAT text/_moz_htmlcontext
[Parent 25400: Main Thread]: D/WidgetDragService FORMAT text/_moz_htmlinfo
[Parent 25400: Main Thread]: D/WidgetDragService FORMAT text/html
[Parent 25400: Main Thread]: D/WidgetDragService FORMAT HTML Format
[Parent 25400: Main Thread]: D/WidgetDragService FORMAT CF_UNICODETEXT
[Parent 25400: Main Thread]: D/WidgetDragService FORMAT CF_TEXT
[Parent 25400: Main Thread]: D/WidgetDragService FORMAT application/x-moz-nativeimage
[Parent 25400: Main Thread]: D/WidgetDragService FORMAT PNG
[Parent 25400: Main Thread]: D/WidgetDragService FORMAT CF_DIBV5
[Parent 25400: Main Thread]: D/WidgetDragService FORMAT CF_DIB
[Parent 25400: Main Thread]: D/WidgetDragService FORMAT CF_HDROP
[Parent 25400: Main Thread]: D/WidgetDragService FORMAT Preferred DropEffect
[Parent 25400: Main Thread]: D/WidgetDragService FORMAT application/x-moz-file-promise-url
[Parent 25400: Main Thread]: D/WidgetDragService FORMAT application/x-moz-file-promise-dest-filename
[Parent 25400: Main Thread]: D/WidgetDragService FORMAT DragImageBits
[Parent 25400: Main Thread]: D/WidgetDragService FORMAT DragContext
[Parent 25400: Main Thread]: D/WidgetDragService FORMAT IsShowingLayered
[Parent 25400: Main Thread]: D/WidgetDragService FORMAT DragWindow
Drag image with blob URL to desktop:
[Parent 25400: Main Thread]: D/WidgetDragService FORMAT text/x-moz-url
[Parent 25400: Main Thread]: D/WidgetDragService FORMAT FileGroupDescriptor
[Parent 25400: Main Thread]: D/WidgetDragService FORMAT FileGroupDescriptorW
[Parent 25400: Main Thread]: D/WidgetDragService FORMAT FileContents
[Parent 25400: Main Thread]: D/WidgetDragService FORMAT UniformResourceLocator
[Parent 25400: Main Thread]: D/WidgetDragService FORMAT UniformResourceLocatorW
[Parent 25400: Main Thread]: D/WidgetDragService FORMAT text/x-moz-url-data
[Parent 25400: Main Thread]: D/WidgetDragService FORMAT text/x-moz-url-desc
[Parent 25400: Main Thread]: D/WidgetDragService FORMAT application/x-moz-custom-clipdata
[Parent 25400: Main Thread]: D/WidgetDragService FORMAT text/_moz_htmlcontext
[Parent 25400: Main Thread]: D/WidgetDragService FORMAT text/_moz_htmlinfo
[Parent 25400: Main Thread]: D/WidgetDragService FORMAT text/html
[Parent 25400: Main Thread]: D/WidgetDragService FORMAT HTML Format
[Parent 25400: Main Thread]: D/WidgetDragService FORMAT CF_UNICODETEXT
[Parent 25400: Main Thread]: D/WidgetDragService FORMAT CF_TEXT
[Parent 25400: Main Thread]: D/WidgetDragService FORMAT DragImageBits
[Parent 25400: Main Thread]: D/WidgetDragService FORMAT DragContext
[Parent 25400: Main Thread]: D/WidgetDragService FORMAT IsShowingLayered
[Parent 25400: Main Thread]: D/WidgetDragService FORMAT DragWindow
We do include FileGroupDescriptorW and FileContents in the DataObject entry, but I suspect there may be some issues with the content.
Comment 7•7 months ago
|
||
Okay, the nsITransfer carries different data to trigger dnd.
Drag image with HTTP/HTTPS URL:
[Parent 21524: Main Thread]: D/WidgetDragService MIME text/x-moz-url
[Parent 21524: Main Thread]: D/WidgetDragService MIME text/x-moz-url-data
[Parent 21524: Main Thread]: D/WidgetDragService MIME text/x-moz-url-desc
[Parent 21524: Main Thread]: D/WidgetDragService MIME application/x-moz-custom-clipdata
[Parent 21524: Main Thread]: D/WidgetDragService MIME text/_moz_htmlcontext
[Parent 21524: Main Thread]: D/WidgetDragService MIME text/_moz_htmlinfo
[Parent 21524: Main Thread]: D/WidgetDragService MIME text/html
[Parent 21524: Main Thread]: D/WidgetDragService MIME text/plain
[Parent 21524: Main Thread]: D/WidgetDragService MIME application/x-moz-nativeimage
[Parent 21524: Main Thread]: D/WidgetDragService MIME application/x-moz-file-promise
[Parent 21524: Main Thread]: D/WidgetDragService MIME application/x-moz-file-promise-url
[Parent 21524: Main Thread]: D/WidgetDragService MIME application/x-moz-file-promise-dest-filename
Drag image with blob URL:
[Parent 21524: Main Thread]: D/WidgetDragService MIME text/x-moz-url
[Parent 21524: Main Thread]: D/WidgetDragService MIME text/x-moz-url-data
[Parent 21524: Main Thread]: D/WidgetDragService MIME text/x-moz-url-desc
[Parent 21524: Main Thread]: D/WidgetDragService MIME application/x-moz-custom-clipdata
[Parent 21524: Main Thread]: D/WidgetDragService MIME text/_moz_htmlcontext
[Parent 21524: Main Thread]: D/WidgetDragService MIME text/_moz_htmlinfo
[Parent 21524: Main Thread]: D/WidgetDragService MIME text/html
[Parent 21524: Main Thread]: D/WidgetDragService MIME text/plain
This looks like a platform bug to me.
Comment 8•7 months ago
|
||
(I am working on the fix in bug 1670200)
Comment 9•6 months ago
|
||
The latest Nightly should contain the fix for bug 1670200. And I can no longer reproduce the issue on Windows.
Selim, could you help confirm whether the fix works on your end as well? Thanks!
| Reporter | ||
Comment 10•6 months ago
|
||
I can confirm that it works fine on the latest Nightly.
Comment 11•6 months ago
|
||
Thank you.
Description
•