summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-04-26 06:33:40 +0200
committerjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-04-26 06:33:40 +0200
commit90e7b450997fcf0e48034dbec4402f9f68027b0b (patch)
tree95780b6e26fd201b52dd0a7de480b002096c587f
parente33d1d875e14056204214378bbee3923bce8219c (diff)
downloadUXP-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.js5
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;