Chaned nsDocument to use NewChannel3 and to call AsyncOpen2
Merge branch 'revampGeckoSecHook' of https://github.com/ckerschb/gecko-dev into revampGeckoSecHook