Bug 1713578 - Removed leftover PermissionStateChange events. r=prathiksha

Differential Revision: https://phabricator.services.mozilla.com/D118850
This commit is contained in:
Paul Zuehlcke 2021-07-05 10:10:23 +00:00
Родитель 56b9a33c06
Коммит 80b7bda1cd
2 изменённых файлов: 0 добавлений и 12 удалений

Просмотреть файл

@ -528,12 +528,6 @@ function prompt(aActor, aBrowser, aRequest) {
}
}
// Tell the browser to refresh the identity block display in case there
// are expired permission states.
aBrowser.dispatchEvent(
new aBrowser.ownerGlobal.CustomEvent("PermissionStateChange")
);
let chromeDoc = aBrowser.ownerDocument;
let stringBundle = chromeDoc.defaultView.gNavigatorBundle;
let localization = new Localization(

Просмотреть файл

@ -401,12 +401,6 @@ var PermissionPromptPrototype = {
this.allow();
return;
}
// Tell the browser to refresh the identity block display in case there
// are expired permission states.
this.browser.dispatchEvent(
new this.browser.ownerGlobal.CustomEvent("PermissionStateChange")
);
} else if (this.permissionKey) {
// If we're reading a permission which already has a temporary value,
// see if we can use the temporary value.