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?
With just protocol flags, we can only ask questions about all URIs of a given scheme, and not "this" particular URI. Maybe that's okay.
Well, it's what we have now, more or less. I'm happy with making what we have now better, of course. ;)
So, the question being asked is really about restrictions placed on the consumer of the channel.
Pretty much. Or restrictions on whoever gave the consumer the URI to load.
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? -Boris _______________________________________________ dev-tech-network mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-network
