Bug 1192946 - Use channel->ascynOpen2 in widget/windows/WinUtils.cpp (r=sicking)

This commit is contained in:
Christoph Kerschbaumer 2015-09-03 13:30:38 -07:00
parent 9988fb9b5b
commit 1347197f13

View File

@ -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