Closed
Bug 271700
Opened 21 years ago
Closed 20 years ago
Crash when I try to pass '@mozilla.org/messenger/progress;1' object to resgisterListener() method of the same object.
Categories
(MailNews Core :: Backend, defect)
MailNews Core
Backend
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: surkov, Assigned: pythonesque+bugzilla)
Details
(Keywords: crash)
Attachments
(2 obsolete files)
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7) Gecko/20040616
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7) Gecko/20040616
I create object '@mozilla.org/messenger/progress;1', query nsIMsgProgress
interface, query nsIWebProgressListener interface. I try to pass
nsIWebProgressListener to registerListener() method of nsIMsgProgress.
Reproducible: Always
Steps to Reproduce:
1. var
progress=Components.classes["@mozilla.org/messenger/progress;1"].createInstance(Components.interfaces.nsIMsgProgress);
2.
progress.registerListener(progress.QueryInterface(Components.interfaces.nsIWebProgressListener));
| Reporter | ||
Comment 1•21 years ago
|
||
I get exception: "Unhandled exception in mozilla.exe (MSGBASE.DLL): 0xC00000FD:
Stack Overflow."
Comment 2•21 years ago
|
||
This has nothing to do with XPCOM. It's just a bug in the mailnews code... It
should throw if |this| is passed in.
Assignee: dougt → sspitzer
Status: UNCONFIRMED → NEW
Component: XPCOM → MailNews: Backend
Ever confirmed: true
Keywords: crash,
helpwanted
OS: Windows 2000 → All
Hardware: PC → All
Whiteboard: [good first bug]
Comment 3•21 years ago
|
||
why is this not a bug in the caller, which passes a listener in which it shouldn't?
Comment 4•21 years ago
|
||
Because the callee shouldn't crash anyway.... (General "calls from JS should
not crash us" principle).
Summary: Crach when I try to pass '@mozilla.org/messenger/progress;1' object to resgisterListener() method of the same object. → Crash when I try to pass '@mozilla.org/messenger/progress;1' object to resgisterListener() method of the same object.
| Assignee | ||
Comment 5•20 years ago
|
||
Requesting review. This being the first bug I've attempted to submit, I don't
know if there's something else I'm supposed to do at this point.
Attachment #184862 -
Flags: review?(cbiesinger)
Comment 6•20 years ago
|
||
Comment on attachment 184862 [details] [diff] [review]
Proposed Patch
I'm not a mailnews peer...
also, is the call here really necessary?
Attachment #184862 -
Flags: review?(cbiesinger) → review?(bienvenu)
| Assignee | ||
Comment 7•20 years ago
|
||
Sorry about that... I should, in retrospect, have ensured that the comment was
done properly. Also, I assume that pointer conversion is unnecessary in this
case.
Attachment #184862 -
Attachment is obsolete: true
Attachment #184865 -
Flags: review?(cbiesinger)
| Assignee | ||
Comment 8•20 years ago
|
||
(In reply to comment #6)
> (From update of attachment 184862 [details] [diff] [review] [edit])
> I'm not a mailnews peer...
>
> also, is the call here really necessary?
>
Oh, sorry. I didn't see your comment. On that note, what do you mean by 'is
the call here really necessary'? Keep in mind that I have no prior experience
in this, and as such my expertise is limited.
| Assignee | ||
Comment 9•20 years ago
|
||
Comment on attachment 184865 [details] [diff] [review]
Proposed Patch v1.1
And... fixing the requestee. Again, I apologize.
Attachment #184865 -
Flags: review?(cbiesinger) → review?(bienvenu)
Comment 10•20 years ago
|
||
bah, did I write "call"? I meant to write "cast", sorry. but I see that you
already removed it :-)
Comment 11•20 years ago
|
||
Comment on attachment 184865 [details] [diff] [review]
Proposed Patch v1.1
seems ok, thx.
Attachment #184865 -
Flags: review?(bienvenu) → review+
| Assignee | ||
Updated•20 years ago
|
Attachment #184865 -
Flags: approval1.8b2?
| Assignee | ||
Updated•20 years ago
|
Attachment #184865 -
Flags: approval1.8b2? → superreview?(dmose)
Comment 12•20 years ago
|
||
Comment on attachment 184865 [details] [diff] [review]
Proposed Patch v1.1
sr=dmose
Attachment #184865 -
Flags: superreview?(dmose) → superreview+
| Assignee | ||
Updated•20 years ago
|
Attachment #184865 -
Flags: approval1.8b3?
Comment 13•20 years ago
|
||
Comment on attachment 184865 [details] [diff] [review]
Proposed Patch v1.1
a=me for 1.8b3.
/be
Attachment #184865 -
Flags: approval1.8b3? → approval1.8b3+
Updated•20 years ago
|
Attachment #184862 -
Flags: review?(bienvenu)
Comment 14•20 years ago
|
||
Comment on attachment 184865 [details] [diff] [review]
Proposed Patch v1.1
mozilla/mailnews/base/src/nsMsgProgress.cpp 1.20
Attachment #184865 -
Attachment is obsolete: true
| Assignee | ||
Updated•20 years ago
|
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
| Assignee | ||
Updated•20 years ago
|
Keywords: crash,
helpwanted
Whiteboard: [good first bug]
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
•