Converted nsHTMLDocument to use NewChannel2