Closed Bug 402353 Opened 17 years ago Closed 17 years ago

print Page Setup fails with Illegal value... [nsICommandLine::handleFlagWithParam] plus Error: NSPrintSetup is not defined when invoked from 3pane or standalone mail window

Categories

(SeaMonkey :: MailNews: Message Display, defect)

defect
Not set
major

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: wsmwk, Assigned: standard8)

References

Details

Attachments

(1 file)

mail window menu fails to bring up Page Setup Error: [Exception... "'Illegal value' when calling method: [nsICommandLine::handleFlagWithParam]" nsresult: "0x80070057 (NS_ERROR_ILLEGAL_VALUE)" location: "JS frame :: file:///C:/Program%20Files/mozilla.org/SM%202.0a%20071022/components/nsBrowserContentHandler.js :: handle :: line 397" data: no] Source File: file:///C:/Program%20Files/mozilla.org/SM%202.0a%20071022/components/nsBrowserContentHandler.js Line: 397 Error: NSPrintSetup is not defined Source File: chrome://messenger/content/mail3PaneWindowCommands.js Line: 579 Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9a9pre) Gecko/2007102203 SeaMonkey/2.0a1pre
forgot to state, doesn't fail when invoked from browser window.
Looks like regression from bug 387247. Page Setup in the Message Window is also broken. Patch coming up.
Assignee: mail → bugzilla
Status: UNCONFIRMED → NEW
Depends on: 387247
Ever confirmed: true
OS: Windows Vista → All
QA Contact: mail
Hardware: PC → All
Attached patch The fix (deleted) — Splinter Review
These looked fine when I viewed them in emacs :/
Attachment #287251 - Flags: review?(neil)
(In reply to comment #3) > Created an attachment (id=287251) [details] > The fix > > These looked fine when I viewed them in emacs :/ (the indentation, that is)
Yeah, looks good to me apart from the indentation.
Comment on attachment 287251 [details] [diff] [review] The fix > case "cmd_printSetup": >- NSPrintSetup(); >+ PrintUtils.showPageSetup(); > return; While you're there you might as well fix the tabs on the other two relevant lines too (I'm not one for random whitespace fixup but I figure these three lines are sufficiently related to merit it, as per the other hunk).
Attachment #287251 - Flags: review?(neil) → review+
Patch checked in to trunk with whitespace fixed.
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: