diff --git a/browser/base/content/tabbrowser.xml b/browser/base/content/tabbrowser.xml
index 4a99a7d2d8d..497095f511c 100644
--- a/browser/base/content/tabbrowser.xml
+++ b/browser/base/content/tabbrowser.xml
@@ -3371,12 +3371,27 @@
if (anonid == "close-button")
this.mOverCloseButton = false;
+
+ this.style.MozUserFocus = '';
+
+
+ this.style.MozUserFocus = 'ignore';
+ this.clientTop;
+
+
+ this.style.MozUserFocus = '';
+
diff --git a/browser/base/content/test/Makefile.in b/browser/base/content/test/Makefile.in
index 7629f64cef7..fb5def60ef6 100644
--- a/browser/base/content/test/Makefile.in
+++ b/browser/base/content/test/Makefile.in
@@ -99,6 +99,7 @@ _BROWSER_FILES = browser_sanitize-timespans.js \
browser_sanitize-passwordDisabledHosts.js \
browser_bug479408.js \
browser_bug479408_sample.html \
+ browser_bug462289.js \
$(NULL)
ifneq (,$(filter mac cocoa,$(MOZ_WIDGET_TOOLKIT)))