Antonio Gomes wrote:
So far, I am using the gtkmozembed's
open_uri callback (returning TRUE) to avoid load, but it fails in some
cases ...
What cases?
So, if I could remove mouse_down listener and then add it on mouse_up,
I'd reach what I want to (avoid loading) without failing I think ...
Do I have to reimplementing nsIDOMMouseListener interface to get it ?
Remove _what_ mouse down listener?
> > So, could I get the listener of a nsDOMWindow
There is no such thing.
But, look at
http://lxr.mozilla.org/mozilla1.8/source/dom/src/base/nsGlobalWindow.cpp#5104
That's the way one can add listeners to a DOMWindow, yes. There aren't any
there, necessarily.
// getting DOMWindow listener somehow. Dont know if it's possible
....
_Which_ DOMWindow listener?
// to remove temporarily mousedown event listener from it, I have
to have the listener first (missing parameter bellow)
There is no mousedown listener on a window, generally.
-Boris
_______________________________________________
dev-embedding mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-embedding