Closed Bug 1769113 Opened 3 years ago Closed 3 years ago

Kill off nsIPrintingPromptService and use nsIPrintDialogService directly

Categories

(Core :: Printing: Setup, task)

task

Tracking

()

RESOLVED FIXED
102 Branch
Tracking Status
firefox102 --- fixed

People

(Reporter: jwatt, Assigned: jwatt)

References

Details

Attachments

(2 files)

No description provided.

nsIPrintingPromptService comes from an era when the platform print code would
open the print settings dialog, which defaulted to the OS native dialogs.
Its purpose was to allow that dialog to be overridden by embedders to provide
their own interface for the user to select print settings. Nowadays the
platform print code does not open the dialogs. Instead apps like Firefox are
responsible for getting the print settings to pass to the platform code, and
the platform code provides a way to open the OS native print dialog if they
want to use that (nsIPrintDialogService). So nsIPrintingPromptService no longer
has any purpose, and just adds indirection and needless complexity.

Assignee: nobody → jwatt
Status: NEW → ASSIGNED

FYI I think TB will need to change https://searchfox.org/comm-central/rev/cb066c59205002a0b0ac64a72e9ac2313acef39c/mail/base/content/mail3PaneWindowCommands.js#1606 in a similar fashion as comment 1 does for the Firefox printing code.

Flags: needinfo?(mkmelin+mozilla)

Thanks for the heads up!

Flags: needinfo?(mkmelin+mozilla)
Pushed by jwatt@jwatt.org: https://hg.mozilla.org/integration/autoland/rev/7a8b46329956 Kill off nsIPrintingPromptService and use nsIPrintDialogService directly. r=emilio
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 102 Branch
Pushed by mkmelin@iki.fi: https://hg.mozilla.org/comm-central/rev/bda126269442 use nsIPrintDialogService directly in Thunderbird. r=lasana
Regressions: 1769769
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: