Source code

Revision control

Copy as Markdown

Other Tools

Test Info: Warnings

<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="chrome://global/skin"?>
<?xml-stylesheet type="text/css" href="chrome://mochikit/content/tests/SimpleTest/test.css"?>
<!--
-->
<window title="Mozilla Bug 289714"
<!-- test results are displayed in the html:body -->
target="_blank">Mozilla Bug 289714</a>
</body>
<!-- test code goes here -->
<script type="application/javascript"><![CDATA[
/** Test for Bug 289714 **/
SimpleTest.waitForExplicitFinish();
let xhr = new XMLHttpRequest();
xhr.responseType = "document";
xhr.open("GET", "data:text/xml,<xml");
ok(xhr.channel !== undefined, "System XHRs should be privileged");
xhr.onload = () => {
ok(xhr.responseXML !== null, "System XHRs should yield <parsererrors>");
SimpleTest.finish();
};
xhr.send();
]]></script>
</window>