Closed Bug 2093782 Opened 17 days ago Closed 8 days ago

Since version 160.0, images with CSS "filter:opacity(100%);" (or any percentage) do not print, but they do appear in Print Preview

Categories

(Core :: Printing: Output, defect, P3)

Firefox 160
defect

Tracking

()

VERIFIED FIXED
163 Branch
Tracking Status
firefox-esr153 --- unaffected
firefox161 --- verified
firefox162 --- verified
firefox163 --- verified

People

(Reporter: dartheditous, Assigned: emilio)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 file, 4 external files)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:160.0) Gecko/20100101 Firefox/160.0

Steps to reproduce

Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:160.0) Gecko/20100101 Firefox/160.0

Load the following HTML and print via the usual Print dialog:

<!DOCTYPE html>
<html>
<body>
<img src="https://samplelib.com/png/sample-boat-400x300.png" style="filter:opacity(100%);">

Actual results

The image appears in the print preview, but is not visible in the print output.

Expected results

The image should be visible in print output (as it is in version 153.7.0esr and v152.0.6

perhaps you could use mozregression to get a more accurate regression range.

Flags: needinfo?(dartheditous)

The Bugbug bot thinks this bug should belong to the 'Core::Printing: Output' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Printing: Output
Product: Firefox → Core

This is potentially a duplicate of Bug 2083739.
Reporter, if you could check:

  • Does this reproduce in Firefox Nightly? (currently Fx162)
  • In Release, if you go to about:config, set print.windows.skia-gdi.enabled to false and print again. Does the image show?
Flags: needinfo?(emilio)

I can repro this on Nightly windows when using Microsoft print to pdf. Works with Cairo.

Severity: -- → S3
Status: UNCONFIRMED → NEW
Ever confirmed: true
Flags: needinfo?(dartheditous)
Keywords: regression
Priority: -- → P3
Regressed by: 2079470
Assignee: nobody → emilio
Status: NEW → ASSIGNED

Set release status flags based on info from the regressing bug 2079470

The replaying code doesn't deal with a SourceSurfaceOffset wrapping
another recording, and this is the only place where it happens afaict.

Instead, just replay the event as-is when we're recording. But that
said, I think this is kinda dumb? We should probably just move the
special code into the base DrawTarget.

So that it works the same, and it picks up the RecordingDrawTarget
implementation by default.

I think this is a bit riskier but is cleaner, it leaves the replay just
doing the forwarding.

Flags: needinfo?(emilio)
Blocks: 2097144
Duplicate of this bug: 2097144
Pushed by ealvarez@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/f8c8f88d9f01 https://hg.mozilla.org/integration/autoland/rev/06fb612e424e Make RecordedCreateDrawTargetForFilter replay properly on a recorded DT. r=lsalzman,gfx-reviewers
Pushed by ealvarez@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/ea13afa2535d https://hg.mozilla.org/integration/autoland/rev/8d2f77b13f32 Move CreateSimilarDrawTargetForFilter replay into DrawTarget. r=lsalzman,gfx-reviewers
Pushed by smolnar@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/3061380ef6f6 https://hg.mozilla.org/integration/autoland/rev/8cac0144d516 Revert "Bug 2093782 - Move CreateSimilarDrawTargetForFilter replay into DrawTarget. r=lsalzman,gfx-reviewers" for causing reftest assertion failures
Pushed by smolnar@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/fc1dbc51bdee https://hg.mozilla.org/integration/autoland/rev/e91959af8814 Revert "Bug 2093782 - Make RecordedCreateDrawTargetForFilter replay properly on a recorded DT. r=lsalzman,gfx-reviewers" causing assertion failures
Pushed by ealvarez@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/b66f352bbe02 https://hg.mozilla.org/integration/autoland/rev/0c1c244469e9 Make RecordedCreateDrawTargetForFilter replay properly on a recorded DT. r=lsalzman,gfx-reviewers
Pushed by ealvarez@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/cc426706f519 https://hg.mozilla.org/integration/autoland/rev/a3e31742ebeb Move CreateSimilarDrawTargetForFilter replay into DrawTarget. r=lsalzman,gfx-reviewers
Flags: needinfo?(emilio)
Status: ASSIGNED → RESOLVED
Closed: 8 days ago
Resolution: --- → FIXED
Target Milestone: --- → 163 Branch

The patch landed in nightly and beta is affected.

:emilio, please make an uplift decision for beta:

  • For beta, nominate the patch for beta uplift approval if the fix should be included in this release, or set status-firefox162 to wontfix if the fix can wait for the next release.

Uplift requests can be submitted from Lando: D346112, D346113.

See Requesting an Uplift for documentation on how to request an uplift.

For more information, please visit BugBot documentation.

Flags: needinfo?(emilio)

firefox-beta Uplift Approval Request

  • User impact if declined/Reason for urgency: Fixes print regression from 160 with default settings.
  • Code covered by automated testing?: yes
  • Fix verified in Nightly?: yes
  • Needs manual QE testing?: yes
  • Steps to reproduce for manual QE testing: print the test-case using Microsoft Print to PDF, should show the image.
  • Risk associated with taking this patch: low
  • Explanation of risk level: Targeted fix. The follow-up commit is not needed and is a bit more risky so I'd rather let that one ride the trains.
  • String changes made/needed?: none
  • Is Android affected?: no
Attachment #9691496 - Flags: approval-mozilla-beta?
Flags: qe-verify+

The replaying code doesn't deal with a SourceSurfaceOffset wrapping
another recording, and this is the only place where it happens afaict.

Instead, just replay the event as-is when we're recording. But that
said, I think this is kinda dumb? We should probably just move the
special code into the base DrawTarget.

Original Revision: https://phabricator.services.mozilla.com/D346112

firefox-release Uplift Approval Request

  • User impact if declined/Reason for urgency: Fixes print regression from 160 with default settings.
  • Code covered by automated testing?: yes
  • Fix verified in Nightly?: yes
  • Needs manual QE testing?: yes
  • Steps to reproduce for manual QE testing: print the test-case using Microsoft Print to PDF, should show the image.
  • Risk associated with taking this patch: low
  • Explanation of risk level: Targeted fix. The follow-up commit is not needed and is a bit more risky so I'd rather let that one ride the trains.
  • String changes made/needed?: none
  • Is Android affected?: no
Attachment #9691497 - Flags: approval-mozilla-release?

The replaying code doesn't deal with a SourceSurfaceOffset wrapping
another recording, and this is the only place where it happens afaict.

Instead, just replay the event as-is when we're recording. But that
said, I think this is kinda dumb? We should probably just move the
special code into the base DrawTarget.

Original Revision: https://phabricator.services.mozilla.com/D346112

Flags: needinfo?(emilio)
Attachment #9691496 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
QA Whiteboard: [uplift][qa-ver-needed-c163/b162]

I was able to reproduce the issue on Win11x64 using Firefox build 160.0a1(20261021205324) and the test-case from comment#4.
Verified as fixed on Win11x64/Mac 15.5 using Firefox build 163.0a1(20261126193150). Pending verification on Beta.

QA Contact: mchiorean

Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/65806 for changes under testing/web-platform/tests

Upstream PR merged by moz-wptsync-bot

No longer blocks: 2097144
Attachment #9691497 - Flags: approval-mozilla-release? → approval-mozilla-release+

Verified as fixed on Win11x64/Mac 15.5 using Firefox builds 162.0b4 and 161.0.1.

Status: RESOLVED → VERIFIED
QA Whiteboard: [uplift][qa-ver-needed-c163/b162] → [uplift][qa-ver-done-c163/b162]
Flags: qe-verify+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: