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: case this.ALLOW_COOKIES_FOR_SESSION:
return gStringBundle.GetStringFromName("state.current.allowedForSession"); return gStringBundle.GetStringFromName("state.current.allowedForSession");
case this.BLOCK: 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.blockedTemporarily");
}
return gStringBundle.GetStringFromName("state.current.blocked"); return gStringBundle.GetStringFromName("state.current.blocked");
default: default:
return null; return null;