Defect image in paste to browser page from clipboard making by "paint.net"
Categories
(Core :: Graphics: ImageLib, defect)
Tracking
()
People
(Reporter: bagdenisov, Unassigned)
Details
Attachments
(1 file)
|
12.31 KB,
application/x-zip-compressed
|
Details |
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:129.0) Gecko/20100101 Firefox/129.0
Steps to reproduce:
This bug is relevant to Windows because in testing on Linux with same clipboard data nothing to defect.
0. Download attach archive.
-
Get defect image to clipboard.
You have a 2 way to get it
Way 1: download a "paint.net" (https://www.getpaint.net/download.html), install and run, drop "example.png" to this program and make copy to clipboard (ctrl+v)
Way 2: download "InsideClipboard" (https://www.nirsoft.net/utils/inside_clipboard.html) and run, click "File" > "Load From .Clp File" > select "clipboard.clp" file from attached archive and "Open". After that file data automatically imported to system clipboard. -
Check clipboard image in test page.
Open "testbrowset.html" in Firefox and just press Ctrl+V. If you do correct, you must see a result text and pasted image to 1-st section.
For another test you can paste it to another site, for example "Imgur", and see how image was defected after paste. If you install "paint.net", you can testing any image.
Please note. This page use a "navigator.clipboard.read()". In some version of browser that might be not working. In last Windows version must be work.
Actual results:
Image slide left to 3 pixels and 1-st scanline fill to black.
In test page you must see "Not passed" that means compare is not valid.
Expected results:
That clipboard data must be processing correctly. In another browser (Edge) is all fine.
In test page you must see "Passed" that means compare is valid.
| Reporter | ||
Comment 1•1 year ago
|
||
I mistake in Way 1. You must use a "Ctrl+C" in "paint.net"
Comment 2•1 year ago
|
||
The Bugbug bot thinks this bug should belong to the 'Core::DOM: Copy & Paste and Drag & Drop' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Although I'm not sure what's going on. When I copy the image in paint.net, both PNG and Bitmap data are copied into the clipboard on Win10, and the PNG data is not original one. So, I think that this is a compat issue of image decoder of broken PNG file or it might be better to use the bitmap data to create pasting PNG data. Anyway, I change the component to investigate deeper by other exports of image formats.
Updated•1 year ago
|
Description
•