Closed Bug 1620807 Opened 5 years ago Closed 2 years ago

[macos] Save to PDF in the system print dialog defaults filename to Untitled.pdf when websites call window.print()

Categories

(Core :: Printing: Setup, defect, P3)

75 Branch
All
macOS
defect

Tracking

()

RESOLVED WORKSFORME
Tracking Status
firefox75 --- affected

People

(Reporter: fiveNinePlusR, Unassigned)

References

(Regression)

Details

(Keywords: regression, Whiteboard: [works in new printing UI, broken in old UI])

opening up a site like https://www.recipegirl.com/irish-soda-bread-muffins/ and clicking print(on the page not through the normal menu or cmd-p) will open up a new page that is immediately commanded to print. the print dialog box is initiated before the page either has a title or the internal mechanism to set the attribute that was fixed by bug 1606512 wasn't set yet. if you exit out of the print dialog and initiate another print it works as expected.

Flags: needinfo?(jwatt)
Priority: -- → P3

so it turns out it's not a timing issue and it occurs anytime the webpage itself tries to print or you press the print button on the page. for instance this page doesn't print automatically when you press the print button but when you press the print button on the opened page it will still have untitled in the filename but when you do cmd-p it's the correct filename.

https://www.thekitchn.com/black-pepper-chicken-23001840

This seems to affect me the most when I'm print-to-PDF'ing Order Confirmations from Amazon.com or a few other email retailers.

Because this bug's Severity has not been changed from the default since it was filed, and it's Priority is P3 (Backlog,) indicating it has been triaged, the bug's Severity is being updated to S3 (normal.)

Severity: normal → S3

The bug also occurs in my Thunderbird installation after the Thunderbird 78 update...

(In reply to firestormx2k from comment #4)

The bug also occurs in my Thunderbird installation after the Thunderbird 78 update...

Can you file a new bug for that and CC me? This bug is specifically about window.print() being called in webpages. For your issue it sounds like Thunderbird needs something along the lines of the Firefox patch in bug 1664332.

Flags: needinfo?(jwatt) → needinfo?(firestormx2k)
See Also: → 1664332
Summary: [macos] Save to PDF feature defaults filename to untitled.pdf when printing sites that load a new page and immediately open the print dialog box. → [macos] Save to PDF in the system print dialog defaults filename to Untitled.pdf when websites call window.print()
Whiteboard: [works in new printing UI, broken in old UI]

(In reply to Jonathan Watt [:jwatt] from comment #5)

(In reply to firestormx2k from comment #4)

The bug also occurs in my Thunderbird installation after the Thunderbird 78 update...

Can you file a new bug for that and CC me? This bug is specifically about window.print() being called in webpages. For your issue it sounds like Thunderbird needs something along the lines of the Firefox patch in bug 1664332.

Done :)

Flags: needinfo?(firestormx2k)

(In reply to firestormx2k from comment #6)

(In reply to Jonathan Watt [:jwatt] from comment #5)

(In reply to firestormx2k from comment #4)

The bug also occurs in my Thunderbird installation after the Thunderbird 78 update...

Can you file a new bug for that and CC me? This bug is specifically about window.print() being called in webpages. For your issue it sounds like Thunderbird needs something along the lines of the Firefox patch in bug 1664332.

Done :) -> opened as bug 1668515

(In reply to firestormx2k from comment #7)

Done :) -> opened as bug 1668515

Thank you!

Has Regression Range: --- → yes

The old printing UI was removed some time ago.

Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → WORKSFORME

(In reply to Jonathan Watt [:jwatt] from comment #9)

The old printing UI was removed some time ago.

You can still open up the system UI from firefox's UI. It does seem resolved now though.

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