Closed Bug 1660773 Opened 4 years ago Closed 4 years ago

Doorhanger: Firefox crashes when trying to print on reddit.com

Categories

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

defect

Tracking

()

VERIFIED FIXED
82 Branch
Tracking Status
firefox-esr68 --- unaffected
firefox-esr78 --- unaffected
firefox79 --- unaffected
firefox80 --- unaffected
firefox81 --- unaffected
firefox82 --- verified
firefox83 --- verified

People

(Reporter: mbalfanz, Assigned: emilio)

References

Details

(Keywords: crash, regression, regressionwindow-wanted, Whiteboard: [print2020_v81][old-ui+])

Attachments

(1 file)

STR:

  1. Visit https://www.reddit.com/r/Clojure/
  2. Trigger print dialog (doorhanger)
  3. Select "Save to PDF" as destination
  4. Continue the "Save to PDF" workflow

ER: A PDF document should be created and saved
AR: Firefox crashes, see crash report

Crash Signature: https://crash-stats.mozilla.org/report/index/dfb0451b-86bd-406e-a26b-b628a0200824
Keywords: crash

I can reproduce the same crash using the old dialog (setting print.tab_modal.enabled to false) and choosing "PDF -> Open in Preview" on OS X. On Windows, it seems to work.

Here's the crash report.

Severity: -- → S2
Priority: -- → P1
Whiteboard: [print2020_v81] → [print2020_v81][old-ui+]

Looks like deep in the Cocoa PDF driver :(

This doesn't crash for me; using the given STR, I successfully created a Clojure.pdf document. I'm currently on macOS 10.15.4 Beta (19E224g), fwiw.

(The resulting PDF does seem to be missing lots of text, though; basically only the titles of the posts show up, not the contents. This seems to be caused by the mask-image that's applied to the post contents. The same issue can be seen in the preview display.)

I'm able to reproduce this on 10.15.6 every time. I wonder if there's something different between 10.15.4 and 10.15.6?

I am also able to successfully save to PDF using the given STR. I'm on macOS 10.15.5.

Looks like this crashes if you print or save to PDF with Black & White mode.

I remember a crash on macOS a while back when printing with background images enabled somewhere in Core Graphics. I wonder if the filter being applied for B&W is causing similar issues ...

I've confirmed that the first patch in bug 1660857 fixes this crash (on macOS 10.14.6, FWIW).

Depends on: 1660857

Now bug 1660857 landed, this crash should no longer happen. (Note that the key factor is "not applying filter: grayscale(1)" in printing documents)

Matin or Sean, Can you please double check the crash no longer happens? The latest nightly hasn't yet been available though.

Flags: needinfo?(svoisen)
Flags: needinfo?(mbalfanz)

I can confirm that this works for me in the latest Nightly!

I see that the color choice option has been disabled in the settings dialog, which is great.

One remark though: The preview does not update properly on the changed color setting. See the screenshot attached: On the left is a new, fresh profile. On the right is my old (day-to-day) profile. Both run the same Nightly version, and the right one shows a black and white preview (probably because of the previous settings).

Flags: needinfo?(mbalfanz)

Thank you, Martin!

(In reply to Martin Balfanz [:mbalfanz] from comment #10)

One remark though: The preview does not update properly on the changed color setting. See the screenshot attached: On the left is a new, fresh profile. On the right is my old (day-to-day) profile. Both run the same Nightly version, and the right one shows a black and white preview (probably because of the previous settings).

Filed bug 1661645.

Now this has been fixed by bug 1660857.

Status: NEW → RESOLVED
Closed: 4 years ago
Flags: needinfo?(svoisen)
Resolution: --- → FIXED
Assignee: nobody → emilio
Target Milestone: --- → 82 Branch
Flags: qe-verify+

Confirming this issue as verified fixed on 83.0a(120200922154306) and 82.0b2(20200922183749). Used a macOS 10.14.6 to test

Status: RESOLVED → VERIFIED
Flags: qe-verify+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: