Closed
Bug 31929
Opened 25 years ago
Closed 25 years ago
Wrong way to throw a message box in nsMessenger.cpp
Categories
(MailNews Core :: Backend, defect, P3)
Tracking
(Not tracked)
VERIFIED
FIXED
M15
People
(Reporter: jefft, Assigned: jefft)
Details
Subject:
How to Throw a Message Box
Date:
Wed, 15 Mar 2000 02:32:18 -0800
From:
travis@netscape.com (Travis Bogard)
To:
<mozilla-seamonkey@mozilla.org>, <seamonkey-internal@mozilla.org>
CC:
<jefft@netscape.com>
I've noticed message boxes going into the tree in various places (the most
recent ones being in mailnews). Please don't call on services for doing
message boxes. This has implications for embedding. When you want to throw
a message box, find your nearest docShell and do a nsCOMPtr<nsIPrompt>
prompter(do_GetInterface(docShell)); NOTE that is a do_GetInterface. Or if
you have the nsIDocShellTreeOwner you can call do_GetInterface on it (that's
what docShell does behind the scenes anyway).
Travis
-*-*-*
Travis Bogard mailto:Travis@netscape.com
714.812.8200 AIM Screen Name: Travis
-*-*-*
fix checked in.
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Did a grep on all mailnews code. All our nsIPrompt(s) are now getting from the
docshell instead of directly from the service. There are fall back situations
but we always try to get it from the doc shell first. If fail then go for the
service. Marking this bug as verified.
Status: RESOLVED → VERIFIED
Updated•21 years ago
|
Product: MailNews → Core
Updated•17 years ago
|
Product: Core → MailNews Core
You need to log in
before you can comment on or make changes to this bug.
Description
•