Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2463)

Unified Diff: chrome/browser/resources/ssl_error.html

Issue 8919007: Allow bypassing of certificate issues even in pinned domains. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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">
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698