Copied screenshots have black border when zoom factor is 110%, 120%, or 133%
Categories
(Core :: Graphics, defect)
Tracking
()
Tracking | Status | |
---|---|---|
firefox-esr78 | --- | unaffected |
firefox-esr91 | --- | wontfix |
firefox92 | --- | wontfix |
firefox93 | --- | wontfix |
firefox94 | --- | wontfix |
firefox95 | --- | wontfix |
firefox99 | --- | wontfix |
firefox100 | --- | wontfix |
firefox101 | --- | wontfix |
firefox105 | --- | wontfix |
firefox106 | --- | wontfix |
firefox107 | --- | wontfix |
firefox108 | --- | fix-optional |
People
(Reporter: cpeterson, Unassigned)
References
(Depends on 1 open bug, Blocks 1 open bug, Regression)
Details
(Keywords: polish, regression)
Attachments
(1 file)
(deleted),
image/png
|
Details |
Steps to reproduce
- Load any page.
- Zoom the page to 110%, 120%, or 133%. The bug does not reproduce if you select a zoom factor 150%, 170%, or 200%!
- Right click on the page and select the "Take Screenshot" context menu item.
- Select a portion of the page and click the "Copy" button. The bug does not reproduce if you click the "Download" button!
- Paste the copied image into MS Paint or a Slack message.
Actual result
The image has a black border on the right and bottom edges. See the attached screenshot.
This bug is a regression from qcms bug 1684760 in Firefox 86. I bisected this regression to this pushlog:
I am running Windows 11 Beta.
Is this bug a duplicate of "Use zoom factor for all screenshot types" bug 1721200?
Reporter | ||
Updated•3 years ago
|
Updated•3 years ago
|
Reporter | ||
Comment 1•3 years ago
|
||
I can only reproduce this bug for browser windows on my external monitor. If I drag the same window to my laptop's screen and take a new screenshot of the same page, the screenshot image does not have a black border.
I don't know if this is because the displays have different dimensions or are using different GPUs.
Windows says both my external monitor and laptop screen have resolution 3840x2160 with display scale "250% (Recommended)".
My laptop has two GPUs:
Intel(R) UHD Graphics 630
NVIDIA GeForce GTX 1050 Ti with Max-Q Design
But about:support says the Intel GPU is active whether my external monitor is connected or not.
Comment 2•3 years ago
|
||
I see this too w/ Quadro graphics. 4k monitor w/ 200% scaling.
Updated•3 years ago
|
Updated•3 years ago
|
Comment 3•3 years ago
|
||
We're going to move this over to graphics, but feel free to move it back.
We're passing in the correct scale value [1], but we're seeing the image rendered differently depending on the zoom value.
Updated•3 years ago
|
Updated•3 years ago
|
Reporter | ||
Updated•3 years ago
|
Updated•3 years ago
|
Reporter | ||
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Comment 4•3 years ago
|
||
Probably because internally the zoom ratio is implemented as changing the integer number of app units per device pixel (default 60), but drawSnapshot platform functionality that is used to take screenshots needs to have the zoom ratio passed in as a float so there will be some inaccuracy at some zoom ratios.
Comment 5•3 years ago
|
||
Maybe we could fix this by making drawSnapshot draw at the current zoom ratio by default (ie without having to pass a float)?
Updated•3 years ago
|
Reporter | ||
Comment 6•2 years ago
|
||
Good news: I can't reproduce this bug in the new screenshots browser component (bug 1696573, screenshots.browser.component.enabled
pref = true
). So once the screenshots browser component ships, we can close this bug.
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Description
•