31 _hideResizer:
function() {
32 const resizerBox = this._addonsDoc.getElementById(
"resizerBox");
33 resizerBox.setAttribute(
"hidden",
"true");
36 _hidePlugins:
function() {
37 const viewGroup = this._addonsDoc.getElementById(
"viewGroup");
38 if (viewGroup.getAttribute(
"last-selected") !=
"extensions") {
40 viewGroup.setAttribute(
"last-selected",
"extensions");
44 const pluginRadio = this._addonsDoc.getElementById(
"plugins-view");
45 pluginRadio.setAttribute(
"hidden",
"true");
48 _setupWindowArgs:
function() {
49 if (
"arguments" in
window &&
50 window.arguments[0] instanceof Components.interfaces.nsIDialogParamBlock &&
51 window.arguments[1] instanceof Components.interfaces.nsIObserver) {
53 var frameAddons = document.getElementById(
"addonsFrame");
54 frameAddons.contentWindow.arguments =
window.arguments;
62 const addonsIFrame = document.getElementById(
"addonsFrame");
63 addonsIFrame.addEventListener(
"load",
self.onEMLoad,
true);
66 onEMLoad:
function onEMLoad() {
69 const addonsIFrame = document.getElementById(
"addonsFrame");
70 addonsIFrame.removeEventListener(
"load",
self.onEMLoad,
true);
72 self._addonsDoc = addonsIFrame.contentDocument;
74 self._setupWindowArgs();