mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-08 10:44:56 +00:00
Backing out my fix for bug 301471 (XUL error pages should have 'Try Again' button focused) because it caused a regression, bug 310774 (Unable to select most menu items using keyboard when error page is shown). a=asa for backout.
This commit is contained in:
parent
36778b8ea0
commit
34f40c0fa0
@ -135,16 +135,6 @@
|
||||
// remove undisplayed errors to avoid bug 39098
|
||||
var errContainer = document.getElementById("errorContainer");
|
||||
errContainer.parentNode.removeChild(errContainer);
|
||||
|
||||
// Focus the Try Again button. We can't just do this inline because of
|
||||
// bug 232004. We can't use onload (see comment below). Since the
|
||||
// <script> that calls initPage is the last DOM node in the document,
|
||||
// a setTimeout of 0 should work.
|
||||
setTimeout(function(){
|
||||
var tryAgainButton = document.getElementById("errorTryAgain");
|
||||
if (tryAgainButton)
|
||||
tryAgainButton.focus();
|
||||
}, 0);
|
||||
}
|
||||
]]></script>
|
||||
</head>
|
||||
|
Loading…
Reference in New Issue
Block a user