> I do see an implementation in nsContentPolicy though...
Implementation of what?
> I'll add that to my implementation with the next patch
Please make sure your patch shares code, not just behavior, so the behaviors can't get out of sync.
> I don't know of any other scheme that GetHost works for, is there anything
> else?
Anything using nsStandardURL. chrome://, irc://, news://, imap://. That's off the top of my head; there are probably more we implement internally, and extensions can implement still others.
> I do see an implementation in nsContentPolicy though...
Implementation of what?
> I'll add that to my implementation with the next patch
Please make sure your patch shares code, not just behavior, so the behaviors can't get out of sync.
> I don't know of any other scheme that GetHost works for, is there anything
> else?
Anything using nsStandardURL. chrome://, irc://, news://, imap://. That's off the top of my head; there are probably more we implement internally, and extensions can implement still others.