From 2acb28d0dffd8243dd47a20ac6ac08e2f54d4f79 Mon Sep 17 00:00:00 2001 From: Ehsan Akhgari Date: Wed, 11 Jan 2012 13:11:22 -0500 Subject: [PATCH] Bug 717154 - Make sure the focus handler is only run once in order to avoid the intermittent orange; r=bzbarsky --- content/xul/content/test/test_bug330705-2.xul | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/content/xul/content/test/test_bug330705-2.xul b/content/xul/content/test/test_bug330705-2.xul index fc2c45f03121..8d6a394f6996 100644 --- a/content/xul/content/test/test_bug330705-2.xul +++ b/content/xul/content/test/test_bug330705-2.xul @@ -26,7 +26,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=330705 ok(isFocused, "The first box element is still focused after blur() has been called on the second box element"); SimpleTest.finish(); - }, 100); + }, 0); } function onLoad() { @@ -34,6 +34,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=330705 box.addEventListener('focus', function() { isFocused = true; setTimeout(doTest, 0); + box.removeEventListener('focus', arguments.callee, true); }, true); box.addEventListener('blur', function() { isFocused = false;}, true); box.focus();