bug 342862, Security mismatch dialog hardcodes focusing (which breaks default focus behavior on OS X). r=kengert, sr=neil

This commit is contained in:
hwaara%gmail.com 2006-06-30 08:43:53 +00:00
Родитель 9854205eef
Коммит 61f91e70a0
1 изменённых файлов: 5 добавлений и 1 удалений

Просмотреть файл

@ -22,7 +22,7 @@
*
* Contributor(s):
* Javier Delgadillo <javi@netscape.com>
* Håkan Waara <hwaara@chello.se>
* Håkan Waara <hwaara@gmail.com>
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
@ -73,7 +73,11 @@ function onLoad()
// Focus the accept button explicitly, because the dialog onLoad handler
// focuses the first focusable element in the dialog, which is the "View
// Certificate" button.
// Never explicitly focus buttons on OS X, as this breaks default focus
// handling, outlined in dialog.xml
#ifndef XP_MACOSX
document.documentElement.getButton("accept").focus();
#endif
}
function doOK()