Bug 788609 - Check for about: URIs in isMarketPlace(). r=mfinkle

This commit is contained in:
Brian Nicholson 2012-09-06 11:04:55 -07:00
Родитель 08d07b16af
Коммит d1e2548172
1 изменённых файлов: 1 добавлений и 2 удалений

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

@ -6191,9 +6191,8 @@ var WebappsUI = {
isMarketplace: function isMarketplace(aUri) {
try {
return aUri.host == this.MARKETPLACE.URI.host;
return !aUri.schemeIs("about") && aUri.host == this.MARKETPLACE.URI.host;
} catch(ex) {
// this can fail for uri's that don't have a host (i.e. about urls)
console.log("could not find host for " + aUri.spec + ", " + ex);
}
return false;