Bug 773360 - Remove workarounds for bug 768400. r=enn

This commit is contained in:
Dão Gottwald 2012-07-13 16:28:21 +02:00
parent 26169ea144
commit 3d0e2390fd
2 changed files with 2 additions and 16 deletions

View File

@ -97,7 +97,6 @@ var tabPreviewPanelHelper = {
var handler = this._generateHandler(host);
host.panel.addEventListener("popupshown", handler, false);
host.panel.addEventListener("popuphiding", handler, false);
host.panel.addEventListener("popuphidden", handler, false);
host._prevFocus = document.commandDispatcher.focusedElement;
},
@ -130,11 +129,6 @@ var tabPreviewPanelHelper = {
gBrowser.selectedTab = host.tabToSelect;
host.tabToSelect = null;
}
},
_popuphidden: function (host) {
// Destroy the widget in order to prevent outdated content
// when re-opening the panel.
host.panel.hidden = true;
}
};

View File

@ -467,17 +467,9 @@
<handler event="popupshown" phase="target">
this.setAttribute("panelopen", "true");
</handler>
<handler event="popuphidden" phase="target"><![CDATA[
<handler event="popuphidden" phase="target">
this.removeAttribute("panelopen");
if (this.state == "closed") {
// Destroy the widget to prevent the current state from being rendered
// briefly when the panel reopens.
this.hidden = true;
this.clientHeight; // flush layout
this.hidden = false;
}
]]></handler>
</handler>
</handlers>
</binding>