Dragging images into Photos app fails
Categories
(Core :: DOM: Copy & Paste and Drag & Drop, defect)
Tracking
()
People
(Reporter: mozilla.h2cqp, Unassigned)
Details
Attachments
(1 file)
|
8.78 MB,
video/quicktime
|
Details |
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Safari/605.1.15
Steps to reproduce:
- Go to any website with an image
- Drag and Drop it onto the Photos App in the Dock on MacOSX
Actual results:
You can an error alert with "The file can't be found"
Expected results:
It should add the image to the Photo library.
If you perform the same action in either Safari or Chrome it'll work as expected without error in import the image.
| Reporter | ||
Updated•2 years ago
|
Comment 1•2 years ago
|
||
The Bugbug bot thinks this bug should belong to the 'Core::DOM: Core & HTML' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Updated•2 years ago
|
Comment 2•2 years ago
|
||
I tried a few scenarios:
- Drag an image from the page to the toolbar icon.
- Drag an image from the page to the app itself.
In scenario 1 with Google image search, I did not get the popup error, though it did fail to drop the image into the app. I was able to reproduce the popup error from an image on a Wikipedia page, however. Scenario 2 again failed to drop the image from both Wikipedia and Google image search. A green plus appears, but nothing actually gets imported.
I tried all of these scenarios on MacOS Chrome, and the image was successfully imported.
I'll mark this as S3 because I guess you can save the image and then import it that way, though that is a hassle.
| Reporter | ||
Comment 3•2 years ago
|
||
Thanks for looking into it!
Yeah saving and then importing the image is the workaround for it, but as you said it's a hassle.
Comment 4•2 years ago
|
||
In a debug build, I got this warning when I picked up the image:
[Child 11867, Main Thread] WARNING: NS_ENSURE_SUCCESS(rv, rv) failed with result 0x80004005 (NS_ERROR_FAILURE): file [...]/dom/base/nsContentAreaDragDrop.cpp:287
Line 287 is the final line here:
// get the target directory from the kFilePromiseDirectoryMime
// flavor
nsCOMPtr<nsISupports> dirPrimitive;
rv = aTransferable->GetTransferData(kFilePromiseDirectoryMime,
getter_AddRefs(dirPrimitive));
NS_ENSURE_SUCCESS(rv, rv);
I don't know if that's related.
Comment 5•2 years ago
|
||
Do you happen to know if this used to work or did you just happen to try this for the first time and noticed that it wasn't working?
| Reporter | ||
Comment 6•2 years ago
|
||
(In reply to Andrew McCreight [:mccr8] from comment #5)
Do you happen to know if this used to work or did you just happen to try this for the first time and noticed that it wasn't working?
Can't say if it used to work, sadly.
Was trying this cause I'm looking to completely ditch Safari and the last thing that's kinda keeping me is how easy you can get photos into the Photos app.
So I tried to drag a photo onto the app and got that error.
Comment 7•2 years ago
|
||
Thanks.
It looks like kFilePromiseDirectoryMime is supposed to be set here. Maybe this is more of a Widget: Cocoa issue? I'm not sure where the dividing line falls.
Comment 8•2 years ago
|
||
I tried dragging an image to desktop, and that worked just fine.
| Reporter | ||
Comment 9•2 years ago
|
||
(In reply to Andrew McCreight [:mccr8] from comment #8)
I tried dragging an image to desktop, and that worked just fine.
Yes, dragging it into Finder folders also works.
It specifically seems to have issues with dragging it into ANY kind of app that's not Finder related.
I just tried trying to drag it into Photoshop on the dock and the same error happens. (Again Chrome works and opens the image as new canvas)
It does work when you drag it into an already open canvas though.
Updated•2 years ago
|
Updated•2 years ago
|
Description
•