Dropping an <img> tag into content exposes application/x-moz-nativeimage as a string
Categories
(Core :: DOM: Copy & Paste and Drag & Drop, defect, P3)
Tracking
()
People
(Reporter: nika, Unassigned)
Details
(Whiteboard: [iris])
Updated•8 years ago
|
Reporter | ||
Comment 1•6 years ago
|
||
:ccomorasu has noticed that Windows e10s is now also affected by this issue. I'm guessing something in the OS has changed to cause the data types used for these native images to now be strings.
We should probably still hide these data types from web content, perhaps by tagging them with SetChromeOnly(true)
: https://searchfox.org/mozilla-central/rev/465dbfe030dfec7756b9b523029e90d48dd5ecce/dom/events/DataTransferItemList.cpp#396 -- we'd probably change the check here: https://searchfox.org/mozilla-central/rev/465dbfe030dfec7756b9b523029e90d48dd5ecce/dom/ipc/ContentChild.cpp#3040-3044
ni? neil to see if this seems reasonable.
Comment 2•6 years ago
|
||
I could reproduce this issue using:
- Fx 66.0a1
- Fx 65.0
- Fx 60.5.0esr
On the following platforms:
- Windows 10 x64
- Ubuntu 16.04 LTS
- macOS 10.13.6.
I could not find a regression range as builds that have previously passed the test now fail it. Below there are the testing details:
Steps to reproduce:
- Start Firefox and visit https://mystor.github.io/dragndrop/.
- Select drop-image-data from the demopage.
- In a new window visit a webpage with many images: https://1stwebdesigner.com/image-file-types/.
- Select a image from the website and drag it in the Drop Stuff Here! area from the demo.
Expected result:
- Matching appears under the Drop Stuff Here area.
Actual result:
- Not Matching appears under the Drop Stuff Here area.
Updated•6 years ago
|
Updated•6 years ago
|
Updated•6 years ago
|
Assignee | ||
Updated•6 years ago
|
Comment 3•6 years ago
|
||
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
Comment 4•5 years ago
|
||
Reproducible in the Latest Nightly 69.0a1 (2019-07-01).
Comment 5•5 years ago
|
||
Reproducible in the latest Nightly 72.0a1 (2019-11-25).
Comment 6•3 years ago
|
||
Lets' fold this into bug 1728425.
Updated•3 years ago
|
Description
•