2008-01-27 13:00:13 -08:00
|
|
|
<!DOCTYPE HTML>
|
|
|
|
<html>
|
|
|
|
<!--
|
|
|
|
https://bugzilla.mozilla.org/show_bug.cgi?id=326337
|
|
|
|
-->
|
|
|
|
<head>
|
|
|
|
<title>Inner file for Bug 326337</title>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<script>
|
|
|
|
|
|
|
|
document.domain = "example.com";
|
|
|
|
|
2013-03-04 01:06:15 -08:00
|
|
|
runTest();
|
2008-01-27 13:00:13 -08:00
|
|
|
|
|
|
|
var xhr;
|
|
|
|
|
2013-03-04 01:06:15 -08:00
|
|
|
function runTest() {
|
2008-01-27 13:00:13 -08:00
|
|
|
xhr = new XMLHttpRequest();
|
|
|
|
xhr.open("GET", "file_bug326337.xml", true);
|
|
|
|
xhr.onreadystatechange = function() {
|
|
|
|
if (xhr.readyState == 4) {
|
|
|
|
check(xhr.responseXML.documentElement.getAttribute("root"));
|
2013-03-04 01:06:15 -08:00
|
|
|
SpecialPowers.wrap(parent).location.hash = "#done";
|
2008-01-27 13:00:13 -08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
xhr.send(null);
|
|
|
|
}
|
|
|
|
|
|
|
|
function check(attr) {
|
|
|
|
if (attr != "yes") {
|
2013-02-10 15:05:17 -08:00
|
|
|
SpeciaPowers.wrap(parent).location.hash = "#fail";
|
2008-01-27 13:00:13 -08:00
|
|
|
throw 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
</script>
|
|
|
|
</pre>
|
|
|
|
</body>
|
|
|
|
</html>
|