Fix for Bug 75596 r=ddrinan,sr=blizzard, a=asa

Make the unknown issuer error dialog of SSL a little taller so
  some of the marginal platforms work and enable key press events
  so if there are still users affect by a mis-sized dialog, the users
  can at least hit return or ESC.
This commit is contained in:
javi%netscape.com 2001-06-22 02:41:06 +00:00
parent ec68a17d08
commit 0f7abc31c3
2 changed files with 12 additions and 4 deletions

View File

@ -51,6 +51,8 @@ function onLoad()
1);
setText("message1", message1);
setText("message4", message4);
//Set the focus so key press events work
document.getElementById('ok-button').focus();
}
function doOK()

View File

@ -31,7 +31,7 @@
xmlns:html="http://www.w3.org/1999/xhtml"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
debug="false"
height="380"
height="400"
width="400"
onload="onLoad();"
>
@ -39,6 +39,12 @@
<script src="pippki.js" />
<script src="newserver.js" />
<keyset id="keys">
<key id="enter-key" keycode="VK_ENTER" oncommand="doOK()" />
<key id="return-key" keycode="VK_RETURN" oncommand="doOK()" />
<key id="esc-key" keycoce="VK_ESCAPE" oncommand="doCancel()"/>
</keyset>
<box orient="vertical" style="margin: 5px;" flex="1">
<html id="message1" />
@ -71,7 +77,7 @@
<box>
<button id="ok-button" class="dialog" label="&ok.label;"
style="width: 10ex" onclick="doOK();" disabled="false"/>
style="width: 10ex" onclick="doOK();" disabled="false" primary="true"/>
<button id="cancel-button" class="dialog" label="&cancel.label;"
style="width: 10ex" onclick="doCancel();" />
<button id="help-button" class="dialog" label="&help.label;"