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

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: Updated browser test & formatting fix. Created 6 years, 9 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/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();
}

Powered by Google App Engine
This is Rietveld 408576698