Closed Bug 901166 Opened 12 years ago Closed 4 years ago

Trying to Print Preview XUL documents should give a better error message

Categories

(Toolkit :: Printing, defect)

24 Branch
x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: 326374, Unassigned)

References

Details

User Agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20130802 Firefox/24.0 (Nightly/Aurora) Build ID: 20130802004004 Steps to reproduce: 1. Go to a new tab (about:newtab is a XUL document) 2. Go to print preview (Aurora->Print...->Print preview or File->Print preview) Actual results: After half a second of processing something, a dialog 'Print Preview Error' appears with the message 'There was an unexpected problem while printing.'. Expected results: The error message should instead be 'Printing XUL documents is not supported.', just like when trying to *print* a XUL document. And just like with 'Print...', the error message should be instant.
Component: Untriaged → Print Preview
Product: Firefox → Core
Seems to me we should just disable the Print/Print Preview commands for XUL documents since we don't support that.
Component: Print Preview → Printing
Product: Core → Toolkit
In the menus you can do that, but it *is* nice to get an error message when pressing Ctrl+P.
Status: UNCONFIRMED → RESOLVED
Closed: 4 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.