Bug 837075 - Without a rootDoc, we don't have a rootUri to check if the root is https and we don't have the channel to see whether mixed content was allowed on the page. Set aRootHasSecureConnection to true by default instead of false by default. r=smaug
Bug 836951 - If piwin is null, return NS_OK and skip setting the mixed content state. r=bsmith