From 65295bd9e21289e6ebdbeebee71e63d55cbab37d Mon Sep 17 00:00:00 2001 From: Vivien Nicolas <21@vingtetun.org> Date: Mon, 30 Nov 2009 11:49:48 -0500 Subject: [PATCH] Bug 531715: in in-browser XUL does not open [r=mark.finkle] --- mobile/chrome/content/browser-ui.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mobile/chrome/content/browser-ui.js b/mobile/chrome/content/browser-ui.js index e70b1d11047..90401d7e6a5 100644 --- a/mobile/chrome/content/browser-ui.js +++ b/mobile/chrome/content/browser-ui.js @@ -1080,7 +1080,7 @@ var FormHelper = { if (aElement.disabled) return false; - if (aElement instanceof HTMLSelectElement || aElement instanceof HTMLTextAreaElement) + if (this._isValidSelectElement(aElement) || aElement instanceof HTMLTextAreaElement) return this._isElementVisible(aElement); if (aElement instanceof HTMLInputElement) { @@ -1287,7 +1287,7 @@ var FormHelper = { }; function SelectWrapper(aControl) { - this._control = aControl; + this._control = aControl.wrappedJSObject || aControl; } SelectWrapper.prototype = { @@ -1315,7 +1315,7 @@ SelectWrapper.prototype = { }; function MenulistWrapper(aControl) { - this._control = aControl; + this._control = aControl.wrappedJSObject || aControl; } MenulistWrapper.prototype = {