Bug 1108047 - Use instanceof instead of QueryInterface to reduce debugging exception noise. r=gavin

This commit is contained in:
Alexander J. Vincent 2014-12-08 15:09:03 -08:00
Родитель 5f76b1224d
Коммит ce38cd7157
1 изменённых файлов: 4 добавлений и 6 удалений

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

@ -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;
},