mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-17 23:35:34 +00:00
Bug 1325223 - Remove ExtensionsUI.jsm workarounds, r=florian.
This commit is contained in:
parent
3a6e5eb917
commit
c1a7aaaddb
@ -223,7 +223,6 @@ this.ExtensionsUI = {
|
||||
...perms.hosts.map(formatHostPermission),
|
||||
];
|
||||
|
||||
let rendered = false;
|
||||
let popupOptions = {
|
||||
hideClose: true,
|
||||
popupIconURL: info.icon,
|
||||
@ -231,11 +230,6 @@ this.ExtensionsUI = {
|
||||
|
||||
eventCallback(topic) {
|
||||
if (topic == "showing") {
|
||||
// This check can be removed when bug 1325223 is resolved.
|
||||
if (rendered) {
|
||||
return false;
|
||||
}
|
||||
|
||||
let doc = this.browser.ownerDocument;
|
||||
doc.getElementById("addon-webext-perm-header").textContent = header;
|
||||
|
||||
@ -257,11 +251,7 @@ this.ExtensionsUI = {
|
||||
item.textContent = msg;
|
||||
list.appendChild(item);
|
||||
}
|
||||
rendered = true;
|
||||
} else if (topic == "dismissed") {
|
||||
rendered = false;
|
||||
} else if (topic == "swapping") {
|
||||
rendered = false;
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user