mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-09 09:18:42 +09:00
Bug 1006461 - Fix handling of permission notifications in preference dialogs
This commit is contained in:
parent
13a5a75e2c
commit
af4f1319d1
1 changed files with 5 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue