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

Unified Diff: chrome/test/data/ssl/page_with_dynamic_insecure_content.html

Issue 181253003: Downgrade page security if an inline has invalid certificate. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Do not set insecure content flag for favicon loading. Created 6 years, 3 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
« no previous file with comments | « chrome/browser/ssl/ssl_browser_tests.cc ('k') | content/browser/web_contents/web_contents_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/ssl/page_with_dynamic_insecure_content.html
diff --git a/chrome/test/data/ssl/page_with_dynamic_insecure_content.html b/chrome/test/data/ssl/page_with_dynamic_insecure_content.html
index 12ea46e1dbbeb51448bf9b36ba2415f56ca12721..77e7b67a7b23271bed43d0ce294130d080a3a995 100644
--- a/chrome/test/data/ssl/page_with_dynamic_insecure_content.html
+++ b/chrome/test/data/ssl/page_with_dynamic_insecure_content.html
@@ -2,9 +2,10 @@
<head><title>Page with dynamic insecure content</title>
<script>
- function loadBadImage() {
+ function loadBadImage(scheme) {
+ scheme = (typeof scheme === 'undefined') ? 'http' : scheme;
var image = document.getElementById("my_image");
- image.src = "http://REPLACE_WITH_HOST_AND_PORT/files/ssl/google_files/logo.gif";
+ image.src = scheme + "://REPLACE_WITH_HOST_AND_PORT/files/ssl/google_files/logo.gif";
checkForLoadFinished();
}
« no previous file with comments | « chrome/browser/ssl/ssl_browser_tests.cc ('k') | content/browser/web_contents/web_contents_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698