screenshot zoomed/cropped when resistFingerprinting enabled
Categories
(Firefox :: Screenshots, defect, P3)
Tracking
()
People
(Reporter: johnathan.conley, Unassigned)
References
(Blocks 1 open bug)
Details
Attachments
(2 files)
Steps to reproduce:
test performed on macOS 12.x on a retina display
start with clean profile
enable privacy.resistFingerprinting
visit https://www.mozilla.org/en-US/
scroll to bottom of page to make sure all elements loaded/rendered
take full screenshot
Actual results:
saved screenshot is zoomed/cropped
Expected results:
should match the screenshot with privacy.resistFingerprinting disabled (attached)
Comment 2•2 years ago
|
||
The Bugbug bot thinks this bug should belong to the 'Firefox::Screenshots' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Comment 3•2 years ago
|
||
This seems to be because resistFingerprinting makes the api that screenshots uses for the css to device pixel ratio to return 1. Since screenshots is chrome code is should have access to the proper value.
Comment 4•2 years ago
|
||
Reproduced on Mac10.13 using Firefox build 103.0 and steps from description.
Marking issue as new.
Comment 6•2 years ago
|
||
Thanks for digging into this.
This only affects the extension version of screenshots (screenshots.browser.component.enabled
= false) and is not affected in the component version (screenshots.browser.component.enabled
= true). For the component, we use the zoom manager for capturing the image.
a workaround for this is to use the console :screenshot
command and pass --dpr 2
e.g. :screenshot --fullpage --dpr 2
Description
•