mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1205151 - Use channel->Open2() in extensions/cookie/nsPermissionManager.cpp (r=sicking)
This commit is contained in:
parent
bf79dd03f3
commit
cb97217d73
@ -2636,12 +2636,12 @@ nsPermissionManager::ImportDefaults()
|
||||
rv = NS_NewChannel(getter_AddRefs(channel),
|
||||
defaultsURI,
|
||||
nsContentUtils::GetSystemPrincipal(),
|
||||
nsILoadInfo::SEC_NORMAL,
|
||||
nsILoadInfo::SEC_ALLOW_CROSS_ORIGIN_DATA_IS_NULL,
|
||||
nsIContentPolicy::TYPE_OTHER);
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
|
||||
nsCOMPtr<nsIInputStream> inputStream;
|
||||
rv = channel->Open(getter_AddRefs(inputStream));
|
||||
rv = channel->Open2(getter_AddRefs(inputStream));
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
|
||||
rv = _DoImport(inputStream, nullptr);
|
||||
|
Loading…
Reference in New Issue
Block a user