Closed
Bug 1423892
Opened 7 years ago
Closed 4 years ago
Clipboard content of copied Finder image file is an icon instead of the actual content
Categories
(Core :: DOM: Serializers, defect, P3)
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: kamwysocki, Unassigned)
References
Details
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36
Steps to reproduce:
Using `paste` event to get the content of image file copied from system (OSX). Using getAsFile() method on one of event.clipboardData.items, then accesing it via window.URL.createObjectURL.
See the fiddle here: https://jsfiddle.net/9p487088/ and try pasting image there, first in FireFox, then in Chrome.
Actual results:
Returns the content of the icon.
Expected results:
Should return the content of an image.
Comment 1•7 years ago
|
||
The testcase worked as expected on win10. This could be a macos issue.
Blocks: 1390899
Priority: -- → P3
Comment 2•4 years ago
|
||
Works on Ubuntu 18.04 too.
Updated•4 years ago
|
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Unspecified → macOS
Hardware: Unspecified → All
Comment 3•4 years ago
|
||
When right-clicking on a .png file, and clicking "Copy" on it, then pasting to the reporter's jsfiddle, nothing is pasted. Works with Chrome and Safari.
With Firefox, currentItem.type
is text/plain
.
Comment 4•4 years ago
|
||
Surprise. After installing the latest macOS updates, this works on Nightly an Release. The clipboard now contains two flavors: text/plain
and image/png
.
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•