Bug 722979 - Add privacy status argument to relevant nsIStrictTransportSecurityService methods. r=bsmith sr=biesi
This commit is contained in:
@@ -114,6 +114,7 @@
|
||||
#include "nsIObserver.h"
|
||||
#include "nsINestedURI.h"
|
||||
#include "nsITransportSecurityInfo.h"
|
||||
#include "nsISSLSocketControl.h"
|
||||
#include "nsINSSErrorsService.h"
|
||||
#include "nsIApplicationCache.h"
|
||||
#include "nsIApplicationCacheChannel.h"
|
||||
@@ -4174,9 +4175,14 @@ nsDocShell::DisplayLoadError(nsresult aError, nsIURI *aURI,
|
||||
nsCOMPtr<nsIStrictTransportSecurityService> stss =
|
||||
do_GetService(NS_STSSERVICE_CONTRACTID, &rv);
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
|
||||
uint32_t flags = 0;
|
||||
nsCOMPtr<nsISSLSocketControl> socketControl = do_QueryInterface(tsi);
|
||||
if (socketControl) {
|
||||
socketControl->GetProviderFlags(&flags);
|
||||
}
|
||||
|
||||
bool isStsHost = false;
|
||||
rv = stss->IsStsURI(aURI, &isStsHost);
|
||||
rv = stss->IsStsURI(aURI, flags, &isStsHost);
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
|
||||
uint32_t bucketId;
|
||||
|
||||
Reference in New Issue
Block a user