Closed Bug 1780910 Opened 2 years ago Closed 4 months ago

screenshot zoomed/cropped when resistFingerprinting enabled

Categories

(Firefox :: Screenshots, defect, P3)

Firefox 102
Desktop
Unspecified
defect

Tracking

()

RESOLVED FIXED

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)

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

now that screenshots is using the built-in component, does this still happen? If so, can we exempt it from RFP?

Flags: needinfo?(tihuang)

No, it doesn't happen anymore. I tested it, and the full screenshot works fine with RFP enabled.

Status: NEW → RESOLVED
Closed: 4 months ago
Flags: needinfo?(tihuang)
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: