diff options
Diffstat (limited to 'chrome/test/data/ssl/page_with_dynamic_insecure_content.html')
-rw-r--r-- | chrome/test/data/ssl/page_with_dynamic_insecure_content.html | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/chrome/test/data/ssl/page_with_dynamic_insecure_content.html b/chrome/test/data/ssl/page_with_dynamic_insecure_content.html new file mode 100644 index 0000000..110b073 --- /dev/null +++ b/chrome/test/data/ssl/page_with_dynamic_insecure_content.html @@ -0,0 +1,36 @@ +<html> +<head><title>Page with dynamic insecure content</title> + +<script> + function loadBadImage() { + var image = document.getElementById("my_image"); + image.src = "http://localhost:1337/files/ssl/google_files/logo.gif"; + checkForLoadFinished(); + } + + function checkForLoadFinished() { + var image = document.getElementById("my_image"); + if (image.complete) { + document.getElementById("status_text").innerHTML = "Bad image loaded"; + window.domAutomationController.send(true); + } else { + setTimeout("checkForLoadFinished()", 500); + } + } +</script> + +</head> +<body> + +This page has some java-script that loads some insecure content. +<br><br> +You can also press the button below to load the image. +<br> +<input type=button value="Load image" onclick="loadBadImage();"></input> + +<div id="status_text">Contents is OK</div> +<img id="my_image" src=""/> + + +</body> +</html> |