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)
Tracking
()
| 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)
|
124 bytes,
text/html
|
Details |
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
Comment 1•17 days ago
|
||
perhaps you could use mozregression to get a more accurate regression range.
Comment 2•17 days ago
|
||
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.
Comment 3•17 days ago
|
||
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, setprint.windows.skia-gdi.enabledto false and print again. Does the image show?
| Assignee | ||
Updated•9 days ago
|
| Assignee | ||
Comment 4•9 days ago
|
||
| Assignee | ||
Comment 5•9 days ago
|
||
I can repro this on Nightly windows when using Microsoft print to pdf. Works with Cairo.
| Assignee | ||
Updated•9 days ago
|
Comment 6•9 days ago
|
||
Set release status flags based on info from the regressing bug 2079470
| Assignee | ||
Comment 7•9 days ago
|
||
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.
| Assignee | ||
Comment 8•9 days ago
|
||
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.
| Assignee | ||
Updated•9 days ago
|
Comment 10•8 days ago
|
||
Comment 11•8 days ago
|
||
Comment 12•8 days ago
|
||
Comment 13•8 days ago
|
||
Backed out for causing reftest assertion failures
Backout link: https://hg.mozilla.org/integration/autoland/rev/8cac0144d5168abb3100028701148e980d523dc5
Comment 14•8 days ago
|
||
Comment 15•8 days ago
|
||
Comment 16•8 days ago
|
||
Comment 17•8 days ago
|
||
| Assignee | ||
Updated•8 days ago
|
Comment 18•8 days ago
|
||
| bugherder | ||
Comment 19•8 days ago
|
||
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-firefox162towontfixif 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.
Comment 20•8 days ago
|
||
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
| Assignee | ||
Comment 21•8 days ago
|
||
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
Comment 22•8 days ago
|
||
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
| Assignee | ||
Comment 23•8 days ago
|
||
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
| Assignee | ||
Updated•8 days ago
|
Updated•8 days ago
|
Updated•8 days ago
|
Comment 24•8 days ago
|
||
| uplift | ||
Comment 25•7 days ago
|
||
| bugherder | ||
Updated•7 days ago
|
Comment 26•7 days ago
|
||
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.
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
Updated•4 days ago
|
Updated•4 days ago
|
Comment 29•4 days ago
|
||
| uplift | ||
Comment 30•2 days ago
|
||
Verified as fixed on Win11x64/Mac 15.5 using Firefox builds 162.0b4 and 161.0.1.
Description
•