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
Родитель 3974a500cf
Коммит 0996d4ce53
1 изменённых файлов: 5 добавлений и 1 удалений

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

@ -22,7 +22,7 @@
* *
* Contributor(s): * Contributor(s):
* Javier Delgadillo <javi@netscape.com> * 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 * 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 * 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 // Focus the accept button explicitly, because the dialog onLoad handler
// focuses the first focusable element in the dialog, which is the "View // focuses the first focusable element in the dialog, which is the "View
// Certificate" button. // 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(); document.documentElement.getButton("accept").focus();
#endif
} }
function doOK() function doOK()