On 3/6/06, Boris Zbarsky <[EMAIL PROTECTED]> wrote: > Darin Fisher wrote: > > Hmm... ok. When asking such a question, it would be nice to tell the > > protocol handler what URI or channel is being queried. > > Yeah, true. That would need API changes though, no?
Yeah, it would. I'm not sure that it is something that we should do or not. > > Our channels calls nsIIOService::AllowPort from AsyncOpen (see > > NS_CheckPortSafety). You could extend that hook, I suppose. > > You mean have it take the channel, etc? Or something else? Yeah, I was thinking of generalizing it to some kind of method call on the IO service that passes the channel and gives the IO service a chance to abort the load. We have the http-on-modify-request notification that can be used to implement this today for HTTP, and I've wanted to extend that to a generic on-modify-request notification sent by all channels (or at least most channels). -Darin _______________________________________________ dev-tech-network mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-network
