Closed Bug 1779517 Opened 2 years ago Closed 2 years ago

Screenshot malfunctions if site CSS has max-width set for iframe

Categories

(Firefox :: Screenshots, defect, P2)

Unspecified
All
defect

Tracking

()

RESOLVED FIXED
105 Branch
Tracking Status
firefox-esr91 --- wontfix
firefox-esr102 --- wontfix
firefox102 --- wontfix
firefox103 --- wontfix
firefox104 --- wontfix
firefox105 --- verified

People

(Reporter: sumstultussedesquoque, Assigned: niklas)

References

Details

Attachments

(2 files)

Attached image 2022-07-13_18-18.png

Steps to reproduce:

Attempt to take a screenshot (e.g. by Ctrl+Shift+S) on a website with the max-width property set for the iframe element.

An extremely simple website illustrating this is available here: https://siriusstarr.github.io/firefox-screenshot-bug/
(source at https://github.com/SiriusStarr/firefox-screenshot-bug/blob/main/index.html )

Actual results:

The colored overlay that allows one to take a screenshot is clamped to the left edge of the screen and extends only by the value of max-width, rendering it impossible to screenshot parts of the website further right than that.

Expected results:

The behavior of Firefox screenshots should not be subject to CSS on the page.

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

Reproducible on MacOS 11 and Windows 10.

I'm setting the flags accordingly.

Thank you for reporting!

Severity: -- → S3
Status: UNCONFIRMED → NEW
Has STR: --- → yes
Ever confirmed: true
OS: Unspecified → All
Version: Firefox 101 → Trunk

Thanks for the report, this should be a straightforward fix.

Assignee: nobody → nbaumgardner
Status: NEW → ASSIGNED
Priority: -- → P2
Pushed by sfoster@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/88827c9fe38a
Set max width and height for screenshots iframes. r=sfoster
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 105 Branch

I have verified the fix on Windows 10 and MacOS 11 using Firefox Nightly 105.0a1 (20220727214405).

The patch landed in nightly and beta is affected.
:niklas, is this bug important enough to require an uplift?

  • If yes, please nominate the patch for beta approval.
  • If no, please set status-firefox104 to wontfix.

For more information, please visit auto_nag documentation.

Flags: needinfo?(nbaumgardner)
Regressions: 1782035

Given how late we are in the cycle and the open regression bug, we should probably not uplift this to 104.

Flags: needinfo?(nbaumgardner)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: