Bug 1063197 - Callsites of NS_NewInputStreamChannel in /toolit/ (r=mak77)

This commit is contained in:
Christoph Kerschbaumer 2014-10-16 11:17:22 -07:00
Родитель cd2a7562b5
Коммит 1fdd35f09d
1 изменённых файлов: 6 добавлений и 2 удалений

Просмотреть файл

@ -335,8 +335,12 @@ nsAnnoProtocolHandler::NewFaviconChannel(nsIURI *aURI, nsIURI *aAnnotationURI,
// Create our channel. We'll call SetContentType with the right type when
// we know what it actually is.
nsCOMPtr<nsIChannel> channel;
rv = NS_NewInputStreamChannel(getter_AddRefs(channel), aURI, inputStream,
EmptyCString());
rv = NS_NewInputStreamChannel(getter_AddRefs(channel),
aURI,
inputStream,
nsContentUtils::GetSystemPrincipal(),
nsILoadInfo::SEC_NORMAL,
nsIContentPolicy::TYPE_OTHER);
NS_ENSURE_SUCCESS(rv, GetDefaultIcon(_channel));
// Now we go ahead and get our data asynchronously for the favicon.