зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1099296 - Attach LoadInfo to remaining callers of ioService and ProtocolHandlers - in js/ (r=bholly)
This commit is contained in:
Родитель
e83e426f75
Коммит
217965f260
|
@ -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; }
|
||||
|
|
Загрузка…
Ссылка в новой задаче