Bug 1111397, Part 2: Remove test_bug484111.html, r=keeler

--HG--
extra : rebase_source : 56617ea82e9028295203173d1ea5e6ccfdbf9722
This commit is contained in:
Brian Smith 2014-12-14 21:51:26 -08:00
parent a0303a33fb
commit d5f76e041e
3 changed files with 0 additions and 72 deletions

View File

@ -161,7 +161,6 @@ http://tracking.example.org:80
# Bug 483437, 484111
https://www.bank1.com:443 privileged,cert=escapeattack1
https://www.bank2.com:443 privileged,cert=escapeattack2
#
# CONNECT for redirproxy results in a 302 redirect to

View File

@ -5,5 +5,3 @@ skip-if = buildapp == 'b2g' || e10s
skip-if = toolkit == 'android'
[test_bug483440.html]
skip-if = toolkit == 'android'
[test_bug484111.html]
skip-if = toolkit == 'android'

View File

@ -1,69 +0,0 @@
<html>
<head>
<title>Test bug 484111</title>
<script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
</head>
<body onload="onWindowLoad()">
<script class="testbody" type="text/javascript">
SimpleTest.waitForExplicitFinish();
function badCertListener()
{
}
badCertListener.prototype = {
badCertCaught: false,
getInterface: function (aIID) {
return this.QueryInterface(aIID);
},
QueryInterface: function(aIID) {
if (aIID.equals(SpecialPowers.Ci.nsIBadCertListener2) ||
aIID.equals(SpecialPowers.Ci.nsIInterfaceRequestor) ||
aIID.equals(SpecialPowers.Ci.nsISupports))
return this;
throw SpecialPowers.Cr.NS_ERROR_NO_INTERFACE;
},
notifyCertProblem: function(socketInfo, sslStatus, targetHost) {
this.badCertCaught = true;
return true;
}
}
function onFrameLoad()
{
ok(false, "Attackers page failed to load");
}
function onWindowLoad()
{
var req = new XMLHttpRequest();
var certListener = new badCertListener();
certListener = SpecialPowers.wrapCallbackObject(certListener);
try
{
req.open("GET", "https://www.bank2.com/", false);
SpecialPowers.wrap(req).channel.notificationCallbacks = certListener;
req.send(null);
}
catch(ex)
{
// ignore
}
ok(certListener.badCertCaught, "We Caught the invalid certificate");
SimpleTest.finish();
}
</script>
<iframe src="https://www.bank2.com/" onload="onFrameLoad()"></iframe>
</body>
</html>