From 90e7b450997fcf0e48034dbec4402f9f68027b0b Mon Sep 17 00:00:00 2001 From: janekptacijarabaci Date: Thu, 26 Apr 2018 06:33:40 +0200 Subject: Bug 1006461 - Fix handling of permission notifications in preference dialogs --- application/palemoon/components/preferences/permissions.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'application/palemoon/components/preferences') 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; -- cgit v1.2.3