Open Bug 1780910 Opened 2 years ago Updated 1 years ago

screenshot zoomed/cropped when resistFingerprinting enabled

Categories

(Firefox :: Screenshots, defect, P3)

Firefox 102
Desktop
Unspecified
defect

Tracking

()

People

(Reporter: johnathan.conley, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

Attached image macos-resistFingerprinting-true.png (deleted) —

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)

Attached image macos-resistFingerprinting-false.png (deleted) —

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.

Component: Untriaged → Screenshots

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.

Reproduced on Mac10.13 using Firefox build 103.0 and steps from description.
Marking issue as new.

Severity: -- → S3
Status: UNCONFIRMED → NEW
Ever confirmed: true
Hardware: Unspecified → Desktop

Thanks for diagnosing!

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.

Priority: -- → P3

a workaround for this is to use the console :screenshot command and pass --dpr 2
e.g. :screenshot --fullpage --dpr 2

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: