Chromium Code Reviews| Index: chrome/browser/resources/ssl_error.html |
| diff --git a/chrome/browser/resources/ssl_error.html b/chrome/browser/resources/ssl_error.html |
| index 6326156bcdb0b15271918b4cadcc25de8651a35d..daf87cecda3e661cd67c8e5a05af6329ffcb3e67 100644 |
| --- a/chrome/browser/resources/ssl_error.html |
| +++ b/chrome/browser/resources/ssl_error.html |
| @@ -92,11 +92,27 @@ input { |
| $("twisty_closed").style.display = "inline"; |
| } |
| } |
| + |
| + // This allows errors to be skippped by typing "skip" into the page. |
| + var keyPressState = 0; |
| + function keyPressHandler(e) { |
| + var sequence = "skip"; |
|
wtc
2011/12/12 21:52:44
Ideally the magic sequence should be "proceed" to
agl
2011/12/12 22:10:56
Done.
|
| + if (sequence.charCodeAt(keyPressState) == e.keyCode) { |
| + keyPressState++; |
| + if (keyPressState == sequence.length) { |
| + sendCommand(1); |
| + keyPressState = 0; |
| + } |
| + } else { |
| + keyPressState = 0; |
| + } |
| + } |
| </script> |
| </head> |
| <body oncontextmenu="return false;"> |
| <script> |
| document.addEventListener('DOMContentLoaded', setDirectionSensitiveImages); |
| +document.addEventListener('keypress', keyPressHandler); |
| </script> |
| <div class="background"><img src="ssl_roadblock_background.png" width="100%" height="100%" alt="background" onmousedown="return false;"></div> |
| <table width="100%" cellspacing="0" cellpadding="0"> |