diff options
author | agl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-14 18:53:38 +0000 |
---|---|---|
committer | agl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-14 18:53:38 +0000 |
commit | 10bf405c4b22020ae4205e41e741b1eadc1a4e9b (patch) | |
tree | 8dccbc6970d12d992f16cd8d2e400e25101d765a | |
parent | 846c3eceac6eb556f77218c50ab16244ebbb9146 (diff) | |
download | chromium_src-10bf405c4b22020ae4205e41e741b1eadc1a4e9b.zip chromium_src-10bf405c4b22020ae4205e41e741b1eadc1a4e9b.tar.gz chromium_src-10bf405c4b22020ae4205e41e741b1eadc1a4e9b.tar.bz2 |
Allow bypassing of certificate issues even in pinned domains.
At least we got rid of the button!
BUG=105582
TEST=Go to https://latest.foo.appspot.com and get an interstitial with no "Proceed" button. Type "proceed" in the page and expect it to continue to load.
Review URL: http://codereview.chromium.org/8919007
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114464 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | chrome/browser/resources/ssl_error.html | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/chrome/browser/resources/ssl_error.html b/chrome/browser/resources/ssl_error.html index 6326156..e0afc0f 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 "proceed" into the page. + var keyPressState = 0; + function keyPressHandler(e) { + var sequence = "proceed"; + 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"> |