Bug 1099296 - Attach LoadInfo to remaining callers of ioService and ProtocolHandlers - websocket changes (r=jduell)

This commit is contained in:
Christoph Kerschbaumer
2015-02-17 10:09:58 -08:00
parent a4a3d29c9d
commit 32a6d0de6b
12 changed files with 168 additions and 15 deletions

View File

@@ -182,6 +182,19 @@ BaseWebSocketChannel::SetPingTimeout(uint32_t aSeconds)
return NS_OK;
}
NS_IMETHODIMP
BaseWebSocketChannel::InitLoadInfo(nsIDOMNode* aLoadingNode,
nsIPrincipal* aLoadingPrincipal,
nsIPrincipal* aTriggeringPrincipal,
uint32_t aSecurityFlags,
uint32_t aContentPolicyType)
{
nsCOMPtr<nsINode> node = do_QueryInterface(aLoadingNode);
mLoadInfo = new LoadInfo(aLoadingPrincipal, aTriggeringPrincipal,
node, aSecurityFlags, aContentPolicyType);
return NS_OK;
}
//-----------------------------------------------------------------------------
// BaseWebSocketChannel::nsIProtocolHandler
//-----------------------------------------------------------------------------