This API is only used in the page info dialog, where it is almost always
redundant with nsISecureBrowserUI.secInfo.
The one case where nsISecureBrowserUI.secInfo differs is when a site's
certificate did not validate successfully. Previously, the page info dialog
would show certificate information about a connection as if it had succeeded.
This is misleading, and in any case that information is available in the
certificate error page.
This also fixes situations where the previous API would erroneously show secure
connections as if no certificate had been presented.
Differential Revision: https://phabricator.services.mozilla.com/D158605