Bug 1182571: Fix nsILoadInfo->GetContentPolicyType API to be less ambigious. Audit and fix all users of it. r=ckerschb
This commit is contained in:
@@ -3244,6 +3244,8 @@ WebSocketChannel::AsyncOpen(nsIURI *aURI,
|
||||
return rv;
|
||||
}
|
||||
|
||||
// Ideally we'd call newChannelFromURIWithLoadInfo here, but that doesn't
|
||||
// allow setting proxy uri/flags
|
||||
rv = io2->NewChannelFromURIWithProxyFlags2(
|
||||
localURI,
|
||||
mURI,
|
||||
@@ -3254,7 +3256,7 @@ WebSocketChannel::AsyncOpen(nsIURI *aURI,
|
||||
mLoadInfo->LoadingPrincipal(),
|
||||
mLoadInfo->TriggeringPrincipal(),
|
||||
mLoadInfo->GetSecurityFlags(),
|
||||
mLoadInfo->GetContentPolicyType(),
|
||||
mLoadInfo->InternalContentPolicyType(),
|
||||
getter_AddRefs(localChannel));
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user