Fix 53977: shouldn't be able to access hidden tabs using the keyboard. r=jag a=ben
git-svn-id: svn://10.0.0.236/trunk@82876 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
7b73cacd8a
commit
98fac2c892
@ -57,9 +57,9 @@ function Startup()
|
||||
if (!pref.GetBoolPref("wallet.enabled")) {
|
||||
var element;
|
||||
element = document.getElementById("nopreview");
|
||||
element.setAttribute("style","display: none;" );
|
||||
element.setAttribute("hidden", "true");
|
||||
element = document.getElementById("nocapture");
|
||||
element.setAttribute("style","display: none;" );
|
||||
element.setAttribute("hidden", "true");
|
||||
}
|
||||
} catch(e) {
|
||||
dump("wallet.enabled pref is missing from all.js");
|
||||
@ -72,15 +72,15 @@ function Startup()
|
||||
var tab = window.arguments[0];
|
||||
if (tab == "S") {
|
||||
element = document.getElementById("signonTab");
|
||||
element.setAttribute("selected","true" );
|
||||
element.setAttribute("hidden", "true");
|
||||
element = document.getElementById("panel");
|
||||
element.setAttribute("index","0" );
|
||||
|
||||
// hide non-used tabs
|
||||
element = document.getElementById("nopreview");
|
||||
element.setAttribute("style", "display: none");
|
||||
element.setAttribute("hidden", "true");
|
||||
element = document.getElementById("nocapture");
|
||||
element.setAttribute("style", "display: none");
|
||||
element.setAttribute("hidden", "true");
|
||||
} else if (tab == "W") {
|
||||
element = document.getElementById("signonviewer");
|
||||
element.setAttribute("title", element.getAttribute("alttitle"));
|
||||
@ -89,9 +89,9 @@ function Startup()
|
||||
element = document.getElementById("nopreview");
|
||||
element.selected = true;
|
||||
element = document.getElementById("signonTab");
|
||||
element.setAttribute("style", "display: none");
|
||||
element.setAttribute("hidden", "true");
|
||||
element = document.getElementById("signonSitesTab");
|
||||
element.setAttribute("style", "display: none");
|
||||
element.setAttribute("hidden", "true");
|
||||
|
||||
element = document.getElementById("panel");
|
||||
element.setAttribute("index","2" );
|
||||
|
||||
@ -70,15 +70,11 @@
|
||||
<parameter name="aDir"/>
|
||||
<body>
|
||||
<![CDATA[
|
||||
var next = null;
|
||||
if (aDir == -1)
|
||||
next = this.selectedTab.previousSibling;
|
||||
else if (aDir == 1)
|
||||
next = this.selectedTab.nextSibling;
|
||||
if (next) {
|
||||
this.selectedTab = next;
|
||||
next.focus();
|
||||
}
|
||||
var next = this.selectedTab[aDir == -1 ? "previousSibling" : "nextSibling"];
|
||||
if (next && !next.getAttribute("hidden")) {
|
||||
this.selectedTab = next;
|
||||
next.focus();
|
||||
}
|
||||
]]>
|
||||
</body>
|
||||
</method>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user