Closed Bug 1852289 Opened 2 years ago Closed 2 years ago

Dragging images into Photos app fails

Categories

(Core :: DOM: Copy & Paste and Drag & Drop, defect)

Firefox 117
Unspecified
macOS
defect

Tracking

()

RESOLVED DUPLICATE of bug 1802163

People

(Reporter: mozilla.h2cqp, Unassigned)

Details

Attachments

(1 file)

Attached video Video of bug.mov

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:

  1. Go to any website with an image
  2. 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.

OS: Unspecified → macOS

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.

Component: Untriaged → DOM: Core & HTML
Product: Firefox → Core
Component: DOM: Core & HTML → DOM: Copy & Paste and Drag & Drop

I tried a few scenarios:

  1. Drag an image from the page to the toolbar icon.
  2. 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.

Severity: -- → S3
Status: UNCONFIRMED → NEW
Ever confirmed: true

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.

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.

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?

Flags: needinfo?(mozilla.h2cqp)

(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.

Flags: needinfo?(mozilla.h2cqp)

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.

Flags: needinfo?(spohl.mozilla.bugs)

I tried dragging an image to desktop, and that worked just fine.

(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.

Flags: needinfo?(spohl.mozilla.bugs)
Status: NEW → RESOLVED
Closed: 2 years ago
Duplicate of bug: 1802163
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: