Closed Bug 1976450 Opened 8 months ago Closed 8 months ago

print, save as pdf, produces empty file (maybe triggered by "alpha" SVG mask-type?)

Categories

(Core :: Printing: Output, defect)

Firefox 140
defect

Tracking

()

RESOLVED DUPLICATE of bug 1970805

People

(Reporter: rachel, Unassigned)

Details

Attachments

(3 files)

Attached file doc title here.html

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:140.0) Gecko/20100101 Firefox/140.0

Steps to reproduce:

  • Fresh new FF profile
  • Open the attached HTML file
  • Print
  • Save to PDF
  • Wait for the dialog to close

Actual results:

The file doc title here.pdf is created, but is empty (zero bytes long).

Expected results:

Either a valid PDF file should have been created, or a message should have been shown explaining that the save didn't work.

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 test file, by the way, is the result of me trimming down a page where I experienced the problem, down to a smaller problem space.

The yellow quadrilateral seen in the page was, in the original page, part of the Google Play logo for a "Get it on Google Play" link-to-app button. Somehow, it seems to be that quadrilateral that triggers the bug.

Simpler fail case

Simpler success case

The only difference between with-mask-type-alpha.html and with-mask-type-luminance.html is the mask-type style (and the document title).

alpha produces a 0-byte PDF. luminance produces a valid PDF.

Summary: print, save as pdf, produces empty file → print, save as pdf, produces empty file (maybe triggered by "alpha" SVG mask-type?)

Thanks for the report, and particularly for reducing the example so thoroughly -- that's really helpful.

It looks like the failure here was recently fixed in bug 1970805 (expected to ship in Firefox 142), so current Nightly versions no longer have this issue. (I'm not certain the resulting rendering is necessarily correct, particularly for more complex cases, but at least it should generate a valid file.)

Status: UNCONFIRMED → RESOLVED
Closed: 8 months ago
Duplicate of bug: 1970805
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: