From 43f943626919609c1634306663cbfda44ed32cab Mon Sep 17 00:00:00 2001
From: Shane Tomlinson <stomlinson@mozilla.com>
Date: Wed, 18 Jul 2012 14:48:13 +0100
Subject: [PATCH] Focus the password field on the confirmation page if the user
 has to enter their password.

---
 resources/static/pages/js/verify_secondary_address.js | 1 +
 1 file changed, 1 insertion(+)

diff --git a/resources/static/pages/js/verify_secondary_address.js b/resources/static/pages/js/verify_secondary_address.js
index ee9e2227c..793538d61 100644
--- a/resources/static/pages/js/verify_secondary_address.js
+++ b/resources/static/pages/js/verify_secondary_address.js
@@ -119,6 +119,7 @@ BrowserID.verifySecondaryAddress = (function() {
           // These are users who are authenticating in a different browser or
           // session than the initiator.
           dom.addClass("body", "enter_password");
+          dom.focus("input[autofocus]");
           complete(oncomplete, true);
         }
         else {
-- 
GitLab