From b86f39ac724322a253fc1463007ca5a5c5a2c629 Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Mon, 24 Jan 2011 06:42:54 -0500 Subject: [PATCH] Fix urlbar focus bug when urlbar is in the menu bar. --HG-- extra : transplant_source : 9%25k%AB%AD%81%D6%3C%DD%9E%AD%3E%99%8E%89%DD%5C%95%F4%0D --- common/content/events.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/content/events.js b/common/content/events.js index bdab4bcd..582e09cb 100644 --- a/common/content/events.js +++ b/common/content/events.js @@ -742,7 +742,8 @@ var Events = Module("events", { if (event.target instanceof Ci.nsIDOMXULTextBoxElement) for (let e = elem; e instanceof Element; e = e.parentNode) - if (util.computedStyle(e).visibility !== "visible") { + if (util.computedStyle(e).visibility !== "visible" || + e.boxObject && e.boxObject.height === 0) { elem.blur(); break; }