From a5c7be8bd2733943798209d8742153b7770b1897 Mon Sep 17 00:00:00 2001 From: "philringnalda%gmail.com" Date: Tue, 27 Feb 2007 04:15:12 +0000 Subject: [PATCH] Bug 371807: reusing permissions dialog shouldn't keep adding observers, r=mano --- browser/components/preferences/permissions.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/browser/components/preferences/permissions.js b/browser/components/preferences/permissions.js index 40bec3517c5..4a2233b833e 100644 --- a/browser/components/preferences/permissions.js +++ b/browser/components/preferences/permissions.js @@ -170,6 +170,11 @@ var gPermissionManager = { init: function (aParams) { + if (this._type) { + // reusing an open dialog, clear the old observer + this.uninit(); + } + this._type = aParams.permissionType; var permissionsText = document.getElementById("permissionsText");