mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1111397, Part 2: Remove test_bug484111.html, r=keeler
--HG-- extra : rebase_source : 56617ea82e9028295203173d1ea5e6ccfdbf9722
This commit is contained in:
parent
5fdc768a51
commit
202319530d
@ -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
|
||||
|
@ -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'
|
||||
|
@ -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>
|
Loading…
Reference in New Issue
Block a user