On 6/14/06, Boris Zbarsky <[EMAIL PROTECTED]> wrote:
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?

If I pan from a frame (ueba.net has lost of it) that is also a link, I
able to identify it's a link and open_uri blocks the loading. Perfect
that would be it _but_ suddenly in these cases only (frame+link)
open_uri is called again (same url) , and that's completly unexpected
and it loads. I am able to reproduce it even with TestGtkEmbed

I'll file a bug , btw.

> 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?

something like this
http://lxr.mozilla.org/mozilla1.8/source/minimo/chrome/content/minimo.js#1798

>  > > 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.

humm :s

thanks again


--
--Antonio Gomes
_______________________________________________
dev-embedding mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-embedding

Reply via email to