Closed
Bug 10258
Opened 25 years ago
Closed 25 years ago
QueryInterface for nsIMsgSend fails in JavaScript
Categories
(Core :: XPConnect, defect, P3)
Tracking
()
VERIFIED
INVALID
People
(Reporter: ppandit, Assigned: jband_mozilla)
Details
Attachments
(1 file)
(deleted),
text/html
|
Details |
Writing a testcase in javascript
It contains the following code:
var sendservice =
Components.classes['component://netscape/messengercompose/send'].getService();
var sendsession = sendservice.QueryInterface(Components.interfaces.nsIMsgSend);
Output window (DOS) shows
Got the send service: [xpconnect wrapped nsISupports]
JavaScript error: uncaught exception: Could not convert JavaScript argument (NUL
L value can not be used for a C++ reference type) arg 0 [nsISupports.QueryInterf
ace, {file: file:///K|/suites/mail/mncompose001.html, line: 40}]
The type library for msgcompose shows:
- ::nsIMsgSend (9e9bd970-c5d6-11d2-8297-000000000000):
Parent: ::nsISupports
Flags:
Scriptable: TRUE
Methods:
uint32 CreateAndSendMessage(in nsIMsgIdentity, in nsIMsgCompFields, in
boolean, in boolean, in int32, in nsIMessage, in string, in string, in uint32,
in void *, in void *, in void *, in void *);
uint32 SendMessageFile(in nsIMsgIdentity, in nsIMsgCompFields, in
nsIFileSpec, in boolean, in boolean, in int32, in nsIMessage, in void *);
uint32 SendWebPage(in nsIMsgIdentity, in nsIMsgCompFields, in nsIURI,
in int32, in void *);
uint32 AddListener(in nsIMsgSendListener);
uint32 RemoveListener(in nsIMsgSendListener);
Constants:
No Constants
Is there something wrong with the my code? I am assuming this is a bug.
Par
Assignee | ||
Comment 1•25 years ago
|
||
Are you sure you don't have a typo? What you put in the bug report is clearly
not *exactly* what the code looks like; i.e. there is nothing that would print
out: "Got the send service: [xpconnect wrapped nsISupports]".
Running the (soon to be) attached file in apprunner works fine for me.
Assignee | ||
Comment 2•25 years ago
|
||
John - I'm still getting the problem with your example file. Let me rebuild and
try again.
Par
Assignee | ||
Comment 4•25 years ago
|
||
I did a full update clobber build just before the tree opened this morning and
it works for me. Is your tree older or newer?
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → INVALID
Built my tree last night and tried it this morning. It works.
You can check it also at http://bubblegum/NGDriver/suites/mail/mncompose001.html
Moving BUG to INVALID
Par
You need to log in
before you can comment on or make changes to this bug.
Description
•