Bug 1485953 - Fix label for permissions blocked globally. r=johannh

MozReview-Commit-ID: Jx902nO2RwZ
This commit is contained in:
Dale Harvey 2018-08-26 11:07:38 +01:00
parent d5597064b9
commit d3a00966a3

View file

@ -682,8 +682,10 @@ var SitePermissions = {
case this.ALLOW_COOKIES_FOR_SESSION:
return gStringBundle.GetStringFromName("state.current.allowedForSession");
case this.BLOCK:
if (scope && scope != this.SCOPE_PERSISTENT && scope != this.SCOPE_POLICY)
if (scope && scope != this.SCOPE_PERSISTENT && scope != this.SCOPE_POLICY &&
scope != this.SCOPE_GLOBAL) {
return gStringBundle.GetStringFromName("state.current.blockedTemporarily");
}
return gStringBundle.GetStringFromName("state.current.blocked");
default:
return null;