Closed Bug 370966 Opened 17 years ago Closed 17 years ago

Fix error handling in nsPrintEngine

Categories

(Core :: Printing: Output, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: sharparrow1, Assigned: sharparrow1)

References

Details

Attachments

(1 file)

I'll post a patch sometime pretty soon.  One major issue: FirePrintCompletionEvent can destroy a subsequent print engine in the case where a print dialog get cancelled, e.g. data:text/html,<script>print();print();</script> crashes if you cancel the first print dialog.
Assignee: printing → sharparrow1
Attached patch PatchSplinter Review
In the interest of making things easier to read, I merged Print() and PrintPreview().  This makes it clearer where they are the same and where they differ.

This patch makes the error handling much more consistent; also, it uses NS_ENSURE_*, so it should consistently warn when something unexpected happens.
Attachment #256122 - Flags: review?(roc)
Checked in.
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Depends on: 407080
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: