mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1006461
- Fix handling of permission notifications in preference dialogs. r=florian
This commit is contained in:
parent
702caf8060
commit
c15b473706
@ -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…
Reference in New Issue
Block a user