From 10386df14650d7ee42945c52a4283d2b0416c423 Mon Sep 17 00:00:00 2001 From: Christoph Kerschbaumer Date: Thu, 3 Sep 2015 13:30:38 -0700 Subject: [PATCH] Bug 1192946 - Use channel->ascynOpen2 in widget/windows/WinUtils.cpp (r=sicking) --- widget/windows/WinUtils.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/widget/windows/WinUtils.cpp b/widget/windows/WinUtils.cpp index 0348705261a..1aba34da641 100644 --- a/widget/windows/WinUtils.cpp +++ b/widget/windows/WinUtils.cpp @@ -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