Open Bug 1757132 Opened 4 years ago Updated 2 years ago

[macOS] v-font website cannot be printed to PDF

Categories

(Core :: Printing: Output, defect)

Desktop
macOS
defect

Tracking

()

Tracking Status
firefox-esr91 --- wontfix
firefox97 --- wontfix
firefox98 --- wontfix
firefox99 --- wontfix

People

(Reporter: csasca, Unassigned)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 file)

Attached image br console error.png

Affected versions

  • Firefox 98.0b9
  • Firefox 99.0a1

Affected platforms

  • macOS 11.6.4

Steps to reproduce

  1. Launch Firefox and access v-fonts.com
  2. Print preview the page and select save to PDF as destination
  3. Print the page

Expected result

  • The page is printed without issues

Actual result

  • An error is thrown and the PDF is not saved

Regression range

  • Will see for a regression

Additional notes

  • The issue can be seen in the following attachment
  • Windows and Ubuntu are not affected.
  • The browser console error can be seen in the attachment.
Has Regression Range: --- → no
Has STR: --- → yes
QA Whiteboard: [qa-regression-triage]

This appears to be specifically related to the "Wavefont" example; if I disable that font via devtools, the rest of the v-fonts.com site gets saved to PDF successfully.

As a guess: perhaps this is triggered by the lack of any space in the Wavefont font. (The old Apple truetype spec appeared to require space to be supported in some way; not all software necessarily depends on this, but there may be an assumption somewhere that is failing because of it.)

Interestingly, this doesn't affect Safari: it works OK to create a PDF that includes the Wavefont sample.

Narrowed regression window to:

Last good revision: 15ffd69c83be752a28fc40a5db6b6859452fa41f (2019-09-25)
First bad revision: 1d189ae70326e415f8590e3aeee24885fb8418bc (2019-09-26)

Pushlog:
https://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=15ffd69c83be752a28fc40a5db6b6859452fa41f&tochange=1d189ae70326e415f8590e3aeee24885fb8418bc

Has Regression Range: no → yes

(In reply to Jonathan Kew (:jfkthame) from comment #2)

As a guess: perhaps this is triggered by the lack of any space in the Wavefont font. (The old Apple truetype spec appeared to require space to be supported in some way; not all software necessarily depends on this, but there may be an assumption somewhere that is failing because of it.)

Adding space to the cmap of the font doesn't seem to make any difference. But also, on inspection it turns out this is a CFF2 font, not TrueType with variations, so the old TT spec requirements wouldn't be relevant.

So this was affected by bug 1577799 because one of the changes in the OTS 8.0.0 release was:

  • Support CFF2 table, including variations support.

Prior to that, the Wavefont resource was simply dropped as unsupported, and a fallback rendered.

:csasca, since this bug is a regression, could you fill (if possible) the regressed_by field?
For more information, please visit auto_nag documentation.

Flags: needinfo?(catalin.sasca)
Flags: needinfo?(catalin.sasca)
Regressed by: 1577799

:RyanVM, since you are the author of the regressor, bug 1577799, could you take a look?
For more information, please visit auto_nag documentation.

Flags: needinfo?(ryanvm)
Flags: needinfo?(ryanvm)
Whiteboard: [no-nag]

The bot should be smart enough not to re-needinfo here, so removing "[no-nag]".

Whiteboard: [no-nag]

Jonathan, is there anything actionable for us to do here?

(In reply to Ryan VanderMeulen [:RyanVM] from comment #9)

Jonathan, is there anything actionable for us to do here?

In principle, yes -- given that Safari successfully generates a PDF with the "problem" font here, we should try to figure out why it's failing for us.

It'd be interesting to know if all CFF2 fonts fail similarly, or if it is something specific to this one font.

The problem might well lie somewhere in the cairo-quartz layer that interfaces between gecko and coregraphics PDF output, in which case we can potentially debug and fix it (or at least file an actionable issue upstream). But it'll take some debugging effort to figure out which component is actually at fault here.

Flags: needinfo?(jfkthame)
Duplicate of this bug: 1798487
Duplicate of this bug: 1849134
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: