summaryrefslogtreecommitdiffstats
path: root/chrome/test/data/ssl
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/test/data/ssl')
-rw-r--r--chrome/test/data/ssl/bad_iframe.html10
-rw-r--r--chrome/test/data/ssl/google.html4
-rw-r--r--chrome/test/data/ssl/google_files/logo.gifbin0 -> 8558 bytes
-rw-r--r--chrome/test/data/ssl/page_with_dynamic_mixed_contents.html36
-rw-r--r--chrome/test/data/ssl/page_with_mixed_contents.html9
-rw-r--r--chrome/test/data/ssl/page_with_refs.html21
-rw-r--r--chrome/test/data/ssl/page_with_unsafe_contents.html30
-rw-r--r--chrome/test/data/ssl/set_foo.js1
8 files changed, 111 insertions, 0 deletions
diff --git a/chrome/test/data/ssl/bad_iframe.html b/chrome/test/data/ssl/bad_iframe.html
new file mode 100644
index 0000000..53eff7e
--- /dev/null
+++ b/chrome/test/data/ssl/bad_iframe.html
@@ -0,0 +1,10 @@
+<html>
+<script>
+ window.open('google.html', name,
+ "status = 1, height = 300, width = 300, resizable = 0" );
+</script>
+
+<H1>Evil IFrame</H1>
+This frame is loaded over insecure HTTPS.
+
+</html>
diff --git a/chrome/test/data/ssl/google.html b/chrome/test/data/ssl/google.html
new file mode 100644
index 0000000..3ef1ca1
--- /dev/null
+++ b/chrome/test/data/ssl/google.html
@@ -0,0 +1,4 @@
+<html><head><meta http-equiv="content-type" content="text/html; charset=UTF-8"><title>Google</title><style>body,td,a,p,.h{font-family:arial,sans-serif}.h{font-size:20px}.h{color:#3366cc}.q{color:#00c}.ts td{padding:0}.ts{border-collapse:collapse}#gbar{float:left;font-weight:bold;height:22px;padding-left:2px}.gbh,.gb2 div{border-top:1px solid #c9d7f1;font-size:0;height:0}.gbh{position:absolute;top:24px;width:100%}.gb2 div{margin:5px}#gbi{background:#fff;border:1px solid;border-color:#c9d7f1 #36c #36c #a2bae7;font-size:13px;top:24px;z-index:1000}#guser{padding-bottom:7px !important}#gbar,#guser{font-size:13px;padding-top:1px !important}@media all{.gb1,.gb3{height:22px;margin-right:.73em;vertical-align:top}.gb2 a{display:block;padding:.2em .5em}}#gbi,.gb2{display:none;position:absolute;width:8em}.gb2{z-index:1001}#gbar a,#gbar a:active,#gbar a:visited{color:#00c;font-weight:normal}.gb2 a,.gb3 a{text-decoration:none}#gbar .gb2 a:hover{background:#36c;color:#fff;display:block}</style><script>window.google={kEI:"BuG9R7b_PI6SoASYhdTtDQ",kEXPI:"17259,17735,17870",kHL:"en"};
+function sf(){document.f.q.focus()}
+window.rwt=function(b,d,e,g,h,f,i){var a=encodeURIComponent||escape,c=b.href.split("#");b.href="/url?sa=t"+(d?"&oi="+a(d):"")+(e?"&cad="+a(e):"")+"&ct="+a(g)+"&cd="+a(h)+"&url="+a(c[0]).replace(/\+/g,"%2B")+"&ei=BuG9R7b_PI6SoASYhdTtDQ"+(f?"&usg="+f:"")+i+(c[1]?"#"+c[1]:"");b.onmousedown="";return true};
+window.gbar={};(function(){var a=window.gbar,b,g,h;function l(c,f,e){c.display=h?"none":"block";c.left=f+"px";c.top=e+"px"}a.tg=function(c){var f=0,e=0,d,m=0,n,j=window.navExtra,k,i=document;g=g||i.getElementById("gbar").getElementsByTagName("span");(c||window.event).cancelBubble=!m;if(!b){b=i.createElement(Array.every||window.createPopup?"iframe":"DIV");b.frameBorder="0";b.scrolling="no";b.src="#";g[7].parentNode.appendChild(b).id="gbi";if(j&&g[7])for(n in j){k=i.createElement("span");k.appendChild(j[n]);g[7].parentNode.insertBefore(k,g[7]).className="gb2"}i.onclick=a.close}while(d=g[++m]){if(e){l(d.style,e+1,f+25);f+=d.firstChild.tagName=="DIV"?9:20}if(d.className=="gb3"){do e+=d.offsetLeft;while(d=d.offsetParent)}}b.style.height=f+"px";l(b.style,e,24);h=!h};a.close=function(c){h&&a.tg(c)}})();</script></head><body onload="sf();if(document.images){new Image().src='/images/nav_logo3.png'}" topmargin="3" alink="#ff0000" bgcolor="#ffffff" link="#0000cc" marginheight="3" text="#000000" vlink="#551a8b"><div id="gbar"><nobr><span class="gb1">Web</span> <span class="gb1"><a href="http://images.google.com/imghp?hl=en&amp;tab=wi">Images</a></span> <span class="gb1"><a href="http://maps.google.com/maps?hl=en&amp;tab=wl">Maps</a></span> <span class="gb1"><a href="http://news.google.com/nwshp?hl=en&amp;tab=wn">News</a></span> <span class="gb1"><a href="http://www.google.com/prdhp?hl=en&amp;tab=wf">Shopping</a></span> <span class="gb1"><a href="http://mail.google.com/mail/?hl=en&amp;tab=wm">Gmail</a></span> <span class="gb3"><a href="http://www.google.com/intl/en/options/" onclick="this.blur();gbar.tg(event);return !1"><u>more</u> <small>▼</small></a></span> <span class="gb2"><a href="http://video.google.com/?hl=en&amp;tab=wv">Video</a></span> <span class="gb2"><a href="http://groups.google.com/grphp?hl=en&amp;tab=wg">Groups</a></span> <span class="gb2"><a href="http://books.google.com/bkshp?hl=en&amp;tab=wp">Books</a></span> <span class="gb2"><a href="http://scholar.google.com/schhp?hl=en&amp;tab=ws">Scholar</a></span> <span class="gb2"><a href="http://finance.google.com/finance?hl=en&amp;tab=we">Finance</a></span> <span class="gb2"><a href="http://blogsearch.google.com/?hl=en&amp;tab=wb">Blogs</a></span> <span class="gb2"><div></div></span> <span class="gb2"><a href="http://www.youtube.com/?hl=en&amp;tab=w1">YouTube</a></span> <span class="gb2"><a href="http://www.google.com/calendar/render?hl=en&amp;tab=wc">Calendar</a></span> <span class="gb2"><a href="http://picasaweb.google.com/home?hl=en&amp;tab=wq">Photos</a></span> <span class="gb2"><a href="http://docs.google.com/?hl=en&amp;tab=wo">Documents</a></span> <span class="gb2"><a href="http://www.google.com/reader/view/?hl=en&amp;tab=wy">Reader</a></span> <span class="gb2"><div></div></span> <span class="gb2"><a href="http://www.google.com/intl/en/options/">even more »</a></span> </nobr></div><div class="gbh" style="left: 0pt;"></div><div class="gbh" style="right: 0pt;"></div><div id="guser" style="padding: 0pt 0pt 4px; font-size: 84%;" width="100%" align="right"><nobr><b>jcampan@gmail.com</b> | <a href="http://www.google.com/url?sa=p&amp;pref=ig&amp;pval=3&amp;q=http://www.google.com/ig%3Fhl%3Den%26source%3Diglk&amp;usg=AFQjCNFA18XPfgb7dKnXfKz7x7g1GDH1tg">iGoogle</a> | <a href="https://www.google.com/accounts/ManageAccount">My Account</a> | <a href="http://www.google.com/accounts/Logout?continue=http://www.google.com/">Sign out</a></nobr></div><center><br id="lgpd" clear="all"><img alt="Google" src="google_files/logo.gif" height="110" width="276"><br><br><form action="/search" name="f"><table cellpadding="0" cellspacing="0"><tbody><tr valign="top"><td width="25%">&nbsp;</td><td align="center" nowrap="nowrap"><input name="hl" value="en" type="hidden"><input maxlength="2048" name="q" size="55" title="Google Search" value=""><br><input name="btnG" value="Google Search" type="submit"><input name="btnI" value="I'm Feeling Lucky" type="submit"></td><td nowrap="nowrap" width="25%"><font size="-2">&nbsp;&nbsp;<a href="http://www.google.com/advanced_search?hl=en">Advanced Search</a><br>&nbsp;&nbsp;<a href="http://www.google.com/preferences?hl=en">Preferences</a><br>&nbsp;&nbsp;<a href="http://www.google.com/language_tools?hl=en">Language Tools</a></font></td></tr></tbody></table></form><br><br><font size="-1"><a href="http://www.google.com/intl/en/ads/">Advertising&nbsp;Programs</a> - <a href="http://www.google.com/services/">Business Solutions</a> - <a href="http://www.google.com/intl/en/about.html">About Google</a></font><p><font size="-2">©2008 Google</font></p></center></body></html> \ No newline at end of file
diff --git a/chrome/test/data/ssl/google_files/logo.gif b/chrome/test/data/ssl/google_files/logo.gif
new file mode 100644
index 0000000..afa22bc
--- /dev/null
+++ b/chrome/test/data/ssl/google_files/logo.gif
Binary files differ
diff --git a/chrome/test/data/ssl/page_with_dynamic_mixed_contents.html b/chrome/test/data/ssl/page_with_dynamic_mixed_contents.html
new file mode 100644
index 0000000..9ff73bb
--- /dev/null
+++ b/chrome/test/data/ssl/page_with_dynamic_mixed_contents.html
@@ -0,0 +1,36 @@
+<html>
+<head><title>Page with dynamic mixed contents</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 mixed contents.
+<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>
diff --git a/chrome/test/data/ssl/page_with_mixed_contents.html b/chrome/test/data/ssl/page_with_mixed_contents.html
new file mode 100644
index 0000000..2bf9bb24
--- /dev/null
+++ b/chrome/test/data/ssl/page_with_mixed_contents.html
@@ -0,0 +1,9 @@
+<html>
+<head><title>Page with mixed contents</title></head>
+<body>
+This page contains an image which is served over an http connection,
+causing mixed contents (when this page is loaded over https).<br>
+<img src="http://localhost:1337/files/ssl/google_files/logo.gif"/>
+
+</body>
+</html>
diff --git a/chrome/test/data/ssl/page_with_refs.html b/chrome/test/data/ssl/page_with_refs.html
new file mode 100644
index 0000000..3db0e5d
--- /dev/null
+++ b/chrome/test/data/ssl/page_with_refs.html
@@ -0,0 +1,21 @@
+<html>
+<head>
+<title>This page has refs</title>
+</head>
+<a href="#en">English<a><br>
+<a href="#fr">Francais<a><br>
+<a href="#jp">Japanese<a><br>
+<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
+<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
+<h2 id="en">Hello!</h2>
+<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
+<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
+<h2 id="fr">Bonjour!</h2><br><br>
+<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
+<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
+<h2 id="jp">Konnichiwa</h2><br><br>
+<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
+<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
+</html>
+
+
diff --git a/chrome/test/data/ssl/page_with_unsafe_contents.html b/chrome/test/data/ssl/page_with_unsafe_contents.html
new file mode 100644
index 0000000..907c9ca
--- /dev/null
+++ b/chrome/test/data/ssl/page_with_unsafe_contents.html
@@ -0,0 +1,30 @@
+<html>
+<head><title>Page with unsafe contents</title>
+<script>
+ var foo = null;
+
+ function IsFooSet() {
+ return foo != null;
+ }
+
+ function ImageWidth() {
+ return document.getElementById("bad_image").width;
+ }
+</script>
+<script src="https://127.0.0.1:9666/files/ssl/set_foo.js"></script>
+</head>
+
+<body>
+This page contains an image which is served over an insecure HTTPS connection...<br>
+<img id="bad_image" src="https://127.0.0.1:9666/files/ssl/google_files/logo.gif"/>
+
+<br><br>
+And an IFrame served over insecure HTTPS...<br>
+<iframe id="bad_iframe" src="https://127.0.0.1:9666/files/ssl/bad_iframe.html"/>
+
+<br><br>
+And even worse, some JavaScript served over insecure HTTPS...<br>
+
+
+</body>
+</html>
diff --git a/chrome/test/data/ssl/set_foo.js b/chrome/test/data/ssl/set_foo.js
new file mode 100644
index 0000000..2dbb5d12
--- /dev/null
+++ b/chrome/test/data/ssl/set_foo.js
@@ -0,0 +1 @@
+foo = "bar";