summaryrefslogtreecommitdiffstats
path: root/application/palemoon/components/preferences/permissions.js
diff options
context:
space:
mode:
Diffstat (limited to 'application/palemoon/components/preferences/permissions.js')
-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;