Bug 1099296 - Attach LoadInfo to remaining callers of ioService and ProtocolHandlers - in js/ (r=bholly)

This commit is contained in:
Christoph Kerschbaumer 2015-02-17 10:09:23 -08:00
Родитель e83e426f75
Коммит 217965f260
1 изменённых файлов: 9 добавлений и 1 удалений

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

@ -237,7 +237,15 @@ class MOZ_STACK_CLASS ComponentLoaderInfo {
nsIChannel* ScriptChannel() { MOZ_ASSERT(mScriptChannel); return mScriptChannel; }
nsresult EnsureScriptChannel() {
BEGIN_ENSURE(ScriptChannel, IOService, URI);
return mIOService->NewChannelFromURI(mURI, getter_AddRefs(mScriptChannel));
return NS_NewChannel(getter_AddRefs(mScriptChannel),
mURI,
nsContentUtils::GetSystemPrincipal(),
nsILoadInfo::SEC_NORMAL,
nsIContentPolicy::TYPE_SCRIPT,
nullptr, // aLoadGroup
nullptr, // aCallbacks
nsIRequest::LOAD_NORMAL,
mIOService);
}
nsIURI* ResolvedURI() { MOZ_ASSERT(mResolvedURI); return mResolvedURI; }