Closed Bug 1288773 Opened 8 years ago Closed 1 year ago

Allow copying and pasting files from the file browser into web content

Categories

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

defect

Tracking

()

RESOLVED DUPLICATE of bug 1699743
Tracking Status
firefox68 --- affected
firefox69 --- affected
firefox72 --- affected
firefox73 --- affected
firefox74 --- affected
firefox75 --- affected
firefox77 --- affected
firefox78 --- affected
firefox79 --- affected
firefox84 --- affected
firefox89 --- affected

People

(Reporter: nika, Unassigned)

Details

Currently copying and pasting files from the file browser into firefox doesn't work correctly, only dragging and dropping will work properly. This should be fixed such that copy and paste also works correctly.
Are we going to block shipping the directory picker stuff on this?
Flags: needinfo?(amarchesini)
Isn't this more about pasteEvent.clipboardData.files not being filled properly or something.
I think this should not block Directory picker. But definitely we should fix it.
Flags: needinfo?(amarchesini)
Priority: -- → P2
(In reply to Olli Pettay [:smaug] (TPAC) from comment #2)
> Isn't this more about pasteEvent.clipboardData.files not being filled
> properly or something.

Is it, Michael?
Flags: needinfo?(michael)
Priority: P2 → P3
(In reply to Andrew Overholt [:overholt] from comment #4)
> (In reply to Olli Pettay [:smaug] (TPAC) from comment #2)
> > Isn't this more about pasteEvent.clipboardData.files not being filled
> > properly or something.
> 
> Is it, Michael?

Kinda? Specifically it's about the process of getting file data from the OS into a nsITransferable to be loaded into a DataTranfer in FillInExternalData. Basically, we use the same code for DnD as we use for clipboard events for loading data from the transferable, but with clipboard the transferable seems to have different stuff in it. I haven't looked much into how different those code paths are.
Flags: needinfo?(michael)
Component: DOM → DOM: Core & HTML

Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0

Hi,

I have managed to reproduce this issue on latest latest Nightly build 68.0a1 (2019-05-06) using Ubuntu 18.04

Reproducible in the latest Nightly 69.0a1 (2019-07-01).

QA Whiteboard: [iris]

Reproducible in the latest Nightly 72.0a1 (2019-11-25).

Reproducible also in the latest Firefox 73 beta and in the latest Nightly 74.0a1.

Hi,

I was able to reproduce this issue on Windows 10 with Firefox version Nightly 75.0a1 (2020-03-03) (64-bit). Marking that flag as affected.

Hi, I was able to reproduce the issue on MacOS 10.15.6 with Firefox Nightly 79.0a1 (2020-06-23), Firefox 78.0b9 and Firefox 77.0.1. Marking the flags accordingly.

Hi,
I was able to reproduce this on Ubuntu 18, Firefox 86.0b6 on imgur.

Hi,
I was able to reproduce this on Ubuntu 20, Firefox 89.0b6 (64-bit) on https://mystor.github.io/dragndrop/# . Marking that flag as affected.

Component: DOM: Core & HTML → DOM: Copy & Paste and Drag & Drop
Severity: normal → S3
Status: NEW → RESOLVED
Closed: 1 year ago
Duplicate of bug: 1699743
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.