mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1038756: Callsites creating a channel in /embedding/ (r=bz)
This commit is contained in:
parent
a9deb69f8a
commit
a1af7cf629
@ -1200,9 +1200,15 @@ nsresult nsWebBrowserPersist::SaveURIInternal(
|
||||
|
||||
// Open a channel to the URI
|
||||
nsCOMPtr<nsIChannel> inputChannel;
|
||||
rv = NS_NewChannel(getter_AddRefs(inputChannel), aURI,
|
||||
nullptr, nullptr, static_cast<nsIInterfaceRequestor*>(this),
|
||||
loadFlags);
|
||||
rv = NS_NewChannel(getter_AddRefs(inputChannel),
|
||||
aURI,
|
||||
nsContentUtils::GetSystemPrincipal(),
|
||||
nsILoadInfo::SEC_NORMAL,
|
||||
nsIContentPolicy::TYPE_OTHER,
|
||||
nullptr, // aChannelPolicy
|
||||
nullptr, // aLoadGroup
|
||||
static_cast<nsIInterfaceRequestor*>(this),
|
||||
loadFlags);
|
||||
|
||||
nsCOMPtr<nsIPrivateBrowsingChannel> pbChannel = do_QueryInterface(inputChannel);
|
||||
if (pbChannel)
|
||||
|
Loading…
Reference in New Issue
Block a user