diff options
author | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-04-26 06:33:40 +0200 |
---|---|---|
committer | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-04-26 06:33:40 +0200 |
commit | 90e7b450997fcf0e48034dbec4402f9f68027b0b (patch) | |
tree | 95780b6e26fd201b52dd0a7de480b002096c587f | |
parent | e33d1d875e14056204214378bbee3923bce8219c (diff) | |
download | UXP-90e7b450997fcf0e48034dbec4402f9f68027b0b.tar UXP-90e7b450997fcf0e48034dbec4402f9f68027b0b.tar.gz UXP-90e7b450997fcf0e48034dbec4402f9f68027b0b.tar.lz UXP-90e7b450997fcf0e48034dbec4402f9f68027b0b.tar.xz UXP-90e7b450997fcf0e48034dbec4402f9f68027b0b.zip |
Bug 1006461 - Fix handling of permission notifications in preference dialogs
-rw-r--r-- | application/palemoon/components/preferences/permissions.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/application/palemoon/components/preferences/permissions.js b/application/palemoon/components/preferences/permissions.js index 0723a44cb..25d86fabf 100644 --- a/application/palemoon/components/preferences/permissions.js +++ b/application/palemoon/components/preferences/permissions.js @@ -203,6 +203,11 @@ var gPermissionManager = { { if (aTopic == "perm-changed") { var permission = aSubject.QueryInterface(Components.interfaces.nsIPermission); + + // Ignore unrelated permission types. + if (permission.type != this._type) + return; + if (aData == "added") { this._addPermissionToList(permission); ++this._view._rowCount; |