Closed Bug 1814047 Opened 1 year ago Closed 1 year ago

Text from button is not visible on print preview nor on saved pdf.

Categories

(Core :: Print Preview, defect)

Firefox 110
Desktop
All
defect

Tracking

()

RESOLVED FIXED
111 Branch
Tracking Status
firefox110 --- wontfix
firefox111 --- verified

People

(Reporter: mchiorean, Assigned: emilio)

Details

Attachments

(5 files)

Attached image Screenshot

Found in

  • 110.0b7 beta (20230129190147)

Affected versions

  • 110.0b7 (20230129190147)
  • 111.0a1 (20230130095434)

Tested platforms

  • Affected platforms: Win7, Win10
  • Unaffected platforms: will update

Steps to reproduce

  1. Open the following link (https://www.washingtonpost.com/gdpr-consent/?next_url=https%3a%2f%2fwww.washingtonpost.com%2f).
  2. Select Ctrl+P to print preview the page.
  3. Select to Save to PDF.

Expected result

  • Text from the button ‘Browse now’ should be visible on print preview.

Actual result

  • On print preview the text is not visible only a black button is displayed (see attached screenshot), text is not visible on PDF file either.

Regression range

  • Will look for one.

Additional notes

  • Issue does not reproduce on Chrome.
Severity: -- → S3
Has STR: --- → yes
Attached file Trivial test-case.

We were ignoring print backgrounds, but still darkening colors, which
obviously breaks.

I tracked this down to bug 191574 /
https://searchfox.org/mozilla-central/commit/0757c0a5b18b646554969a67eedf2bcb0ad41b63

Make sure all caller have to pass in the "ignore 'print backgrounds'
Make block/inline not ignore that pref

Which was just preserving behavior. So this seems all rather accidental.

Implement backgrounds for page / page sequence frame using
print-color-adjust, and remove the virtual method.

The XUL box removal stuff seems harmless. The only XUL boxes we have
around in content are scrollbars, and we don't have scrollbars when
printing.

Assignee: nobody → emilio
Status: NEW → ASSIGNED
Pushed by ealvarez@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/1721492ffd0c
Make buttons not ignore the "print backgrounds" setting. r=jfkthame,layout-reviewers
Pushed by ealvarez@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/e2e0bc9c8683
Add support for testing print-background options on reftests. r=jfkthame
https://hg.mozilla.org/integration/autoland/rev/e26b05e5e4be
Add a test for this bug. r=jfkthame
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 111 Branch

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

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

For more information, please visit auto_nag documentation.

Flags: needinfo?(emilio)

Very long-standing bug, can probably ride the trains.

Flags: needinfo?(emilio)

Verified as fixed on Win10, Mac 10.13, Ubuntu 20.04 using FF build 111.0a1(20230202091542).

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

Attachment

General

Created:
Updated:
Size: