зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1108047 - Use instanceof instead of QueryInterface to reduce debugging exception noise. r=gavin
This commit is contained in:
Родитель
5f76b1224d
Коммит
ce38cd7157
|
@ -597,12 +597,10 @@
|
|||
|
||||
// Don't show progress indicators in tabs for about: URIs
|
||||
// pointing to local resources.
|
||||
try {
|
||||
let channel = aRequest.QueryInterface(Ci.nsIChannel);
|
||||
if (channel.originalURI.schemeIs("about") &&
|
||||
(channel.URI.schemeIs("jar") || channel.URI.schemeIs("file")))
|
||||
return false;
|
||||
} catch (e) {}
|
||||
if ((aRequest instanceof Ci.nsIChannel) &&
|
||||
aRequest.originalURI.schemeIs("about") &&
|
||||
(aRequest.URI.schemeIs("jar") || aRequest.URI.schemeIs("file")))
|
||||
return false;
|
||||
|
||||
return true;
|
||||
},
|
||||
|
|
Загрузка…
Ссылка в новой задаче