Closed
Bug 271700
Opened 20 years ago
Closed 19 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•20 years ago
|
||
I get exception: "Unhandled exception in mozilla.exe (MSGBASE.DLL): 0xC00000FD: Stack Overflow."
Comment 2•20 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•20 years ago
|
||
why is this not a bug in the caller, which passes a listener in which it shouldn't?
Comment 4•20 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•19 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•19 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•19 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•19 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•19 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•19 years ago
|
||
bah, did I write "call"? I meant to write "cast", sorry. but I see that you already removed it :-)
Comment 11•19 years ago
|
||
Comment on attachment 184865 [details] [diff] [review] Proposed Patch v1.1 seems ok, thx.
Attachment #184865 -
Flags: review?(bienvenu) → review+
Assignee | ||
Updated•19 years ago
|
Attachment #184865 -
Flags: approval1.8b2?
Assignee | ||
Updated•19 years ago
|
Attachment #184865 -
Flags: approval1.8b2? → superreview?(dmose)
Comment 12•19 years ago
|
||
Comment on attachment 184865 [details] [diff] [review] Proposed Patch v1.1 sr=dmose
Attachment #184865 -
Flags: superreview?(dmose) → superreview+
Assignee | ||
Updated•19 years ago
|
Attachment #184865 -
Flags: approval1.8b3?
Comment 13•19 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•19 years ago
|
Attachment #184862 -
Flags: review?(bienvenu)
Comment 14•19 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•19 years ago
|
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Assignee | ||
Updated•19 years ago
|
Keywords: crash,
helpwanted
Whiteboard: [good first bug]
Updated•16 years ago
|
Product: Core → MailNews Core
You need to log in
before you can comment on or make changes to this bug.
Description
•