(Brief policy note first: if you're going to cross-post this way, please set a 
followup-to header so that responses ideally all go to exactly one newsgroup.)

> I'm doing it under Mozilla Thunderbird 1.5.0.10. If there are errors in my
> code, please, point them.

So, first, you should really check return codes for success or failure, and you 
should null-check your do_QueryInterfaces in case the object doesn't implement 
that interface.  Without those checks it's easy to have crashes or incorrect 
behavior if something goes wrong or an object doesn't implement the interfaces 
you thought it implemented.

> After AsyncOpen modal dialog is displayed, which waits for HTTP transaction
> end.

So, it seems possible that these callbacks occur on the same thread on which 
AsyncOpen is called (this is how it's always occurred for me, and the existence 
of an nsIRequestObserverProxy interface suggests this is policy -- it really 
should be documented in the IDL if true).  If you open the modal dialog from 
the same thread as the channel is opened, you'd never get the listener 
notifications (notification callbacks may have a different policy).  What 
happens if you don't open the modal dialog?  Do you get request observer 
notifications?


Jeff
_______________________________________________
dev-tech-network mailing list
[EMAIL PROTECTED]
https://lists.mozilla.org/listinfo/dev-tech-network

Reply via email to