зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1063197 - Callsites of NS_NewInputStreamChannel in /toolit/ (r=mak77)
This commit is contained in:
Родитель
cd2a7562b5
Коммит
1fdd35f09d
|
@ -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.
|
||||
|
|
Загрузка…
Ссылка в новой задаче