Bug 1076978 - Favicons should be categorized as TYPE_IMAGE. r=jimm
authorTanvi Vyas <tvyas@mozilla.com>
Fri, 03 Oct 2014 17:23:36 -0700
changeset 208796 8340783e3145a8c8e6d7d363905066f7e4235d6d
parent 208795 afeff2d265bdf1d9b27284de44b6185082691f91
child 208797 099906f74b62e32dda1273823d9de076abf19158
push id1
push userroot
push dateMon, 20 Oct 2014 17:29:22 +0000
reviewersjimm
bugs1076978
milestone35.0a1
Bug 1076978 - Favicons should be categorized as TYPE_IMAGE. r=jimm
toolkit/components/places/AsyncFaviconHelpers.cpp
--- a/toolkit/components/places/AsyncFaviconHelpers.cpp
+++ b/toolkit/components/places/AsyncFaviconHelpers.cpp
@@ -541,17 +541,17 @@ AsyncFetchAndSetIconFromNetwork::Run()
   nsCOMPtr<nsIURI> iconURI;
   nsresult rv = NS_NewURI(getter_AddRefs(iconURI), mIcon.spec);
   NS_ENSURE_SUCCESS(rv, rv);
   nsCOMPtr<nsIChannel> channel;
   rv = NS_NewChannel(getter_AddRefs(channel),
                      iconURI,
                      nsContentUtils::GetSystemPrincipal(),
                      nsILoadInfo::SEC_NORMAL,
-                     nsIContentPolicy::TYPE_OTHER);
+                     nsIContentPolicy::TYPE_IMAGE);
 
   NS_ENSURE_SUCCESS(rv, rv);
   nsCOMPtr<nsIInterfaceRequestor> listenerRequestor =
     do_QueryInterface(reinterpret_cast<nsISupports*>(this));
   NS_ENSURE_STATE(listenerRequestor);
   rv = channel->SetNotificationCallbacks(listenerRequestor);
   NS_ENSURE_SUCCESS(rv, rv);
   nsCOMPtr<nsIPrivateBrowsingChannel> pbChannel = do_QueryInterface(channel);