mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1192946 - Use channel->ascynOpen2 in widget/windows/WinUtils.cpp (r=sicking)
This commit is contained in:
parent
9988fb9b5b
commit
1347197f13
@ -1107,7 +1107,7 @@ nsresult AsyncFaviconDataReady::OnFaviconDataNotAvailable(void)
|
||||
rv = NS_NewChannel(getter_AddRefs(channel),
|
||||
mozIconURI,
|
||||
nsContentUtils::GetSystemPrincipal(),
|
||||
nsILoadInfo::SEC_NORMAL,
|
||||
nsILoadInfo::SEC_ALLOW_CROSS_ORIGIN_DATA_IS_NULL,
|
||||
nsIContentPolicy::TYPE_IMAGE);
|
||||
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
@ -1117,8 +1117,7 @@ nsresult AsyncFaviconDataReady::OnFaviconDataNotAvailable(void)
|
||||
rv = NS_NewDownloader(getter_AddRefs(listener), downloadObserver, icoFile);
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
|
||||
channel->AsyncOpen(listener, nullptr);
|
||||
return NS_OK;
|
||||
return channel->AsyncOpen2(listener);
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
|
Loading…
Reference in New Issue
Block a user