I've found the problem in
file: nsEventDispatcher.cpp
function:
nsresult
nsEventDispatcher::DispatchDOMEvent(nsISupports* aTarget,
nsEvent* aEvent,
nsIDOMEvent* aDOMEvent,
nsPresContext* aPresContext,
nsEventStatus* aEventStatus)
code:
PRBool trusted;
nsCOMPtr<nsIDOMNSEvent> nsevent(do_QueryInterface(privEvt));
nsevent->GetIsTrusted(&trusted);
My custom event component does not implement nsIDOMNSEvent therefore the
"nsevent" nsCOMPtr is null.
I believe there should be a check against a null pointer there.
Also I will have to implement the nsIDOMNSEvent interface in my component.
-----Original Message-----
From: dev-embedding-bounces+walter.fettich=lasting...@lists.mozilla.org
[mailto:dev-embedding-bounces+walter.fettich=lasting...@lists.mozilla.org]
On Behalf Of Walter Fettich
Sent: Friday, January 23, 2009 4:11 PM
To: [email protected]
Subject: RE: Why can't I send my custom event?
It works now.
You need to follow the tutorial you mentioned for the symbol server:
https://developer.mozilla.org/en/Using_the_Mozilla_symbol_server
And this one for the source server:
https://developer.mozilla.org/en/Using_the_Mozilla_source_server
The only difference is that the server name is :
http://symbols.mozilla.org/xulrunner
Mark Finkle mentioned it in his blog
http://starkravingfinkle.org/blog/2008/06/xulrunner-19-rc2/
Thanks a lot.
I'll keep everyone posted if I make any progress.
-----Original Message-----
From: dev-embedding-bounces+walter.fettich=lasting...@lists.mozilla.org
[mailto:dev-embedding-bounces+walter.fettich=lasting...@lists.mozilla.org]
On Behalf Of Boris Zbarsky
Sent: Friday, January 23, 2009 4:05 PM
To: [email protected]
Subject: Re: Why can't I send my custom event?
Walter Fettich wrote:
> This worked but now I have the debug symbols for Firefox and not for
> xulrunner-1.9.0.4 and that doesn't help me much.
Hmm. Can you try running your code against Firefox 3.0.4? If not, you
might need to set up your own build, possibly. I really don't know much
about debugging on Windows past what I've already said; maybe someone
else does....
-Boris
_______________________________________________
dev-embedding mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-embedding
_______________________________________________
dev-embedding mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-embedding
_______________________________________________
dev-embedding mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-embedding