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

Unified Diff: chrome/browser/resources/security_warnings/interstitial_v2_mobile.js

Issue 952563003: Reinstate the error code to main content area + bug fixes on security / network interstitials (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adjust vertical alignment of details button, remove net error string prefix Created 5 years, 10 months 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
Index: chrome/browser/resources/security_warnings/interstitial_v2_mobile.js
diff --git a/chrome/browser/resources/security_warnings/interstitial_v2_mobile.js b/chrome/browser/resources/security_warnings/interstitial_v2_mobile.js
index af0a21d3a65dc4a90f5a3c5dce1a8cc21d82f8f8..c482d6f99625ded917a987345346d073b460ab67 100644
--- a/chrome/browser/resources/security_warnings/interstitial_v2_mobile.js
+++ b/chrome/browser/resources/security_warnings/interstitial_v2_mobile.js
@@ -15,6 +15,7 @@ function onResize() {
'(orientation: portrait), (max-width: 736px) and ' +
'(max-height: 420px) and (orientation: landscape)';
var detailsHidden = helpOuterBox.classList.contains('hidden');
+ var runnerContainer = document.querySelector('.runner-container');
// Check for change in nav status.
if (mobileNav != window.matchMedia(mediaQuery).matches) {
@@ -24,10 +25,16 @@ function onResize() {
if (mobileNav) {
mainContent.classList.toggle('hidden', !detailsHidden);
helpOuterBox.classList.toggle('hidden', detailsHidden);
+ if (runnerContainer) {
+ runnerContainer.classList.toggle('hidden', !detailsHidden);
+ }
} else if (!detailsHidden) {
// Non mobile nav with visible details.
mainContent.classList.remove('hidden');
helpOuterBox.classList.remove('hidden');
+ if (runnerContainer) {
+ runnerContainer.classList.remove('hidden');
+ }
}
}
}
« no previous file with comments | « chrome/browser/resources/security_warnings/interstitial_v2.html ('k') | chrome/renderer/resources/neterror.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698