Bug 1519577 Update test_bug467123 to not rely on button.xml r=smaug

Differential Revision: https://phabricator.services.mozilla.com/D31936

--HG--
extra : rebase_source : 22c8c44804d044de46c7594c969cd3d14696b76b
This commit is contained in:
Andrew Swan 2019-05-02 13:56:15 -07:00
parent 57f573a6ff
commit a2113dc0fe
4 changed files with 18 additions and 2 deletions

View File

@ -4,6 +4,7 @@ support-files =
blockNoPlugins.xml
blockPluginHard.xml
bug418986-1.js
clonedoc/**
cpows_child.js
cpows_parent.xul
file_bug549682.xul

View File

@ -0,0 +1 @@
content clonedoc content/

View File

@ -0,0 +1,4 @@
<?xml version='1.0' encoding='UTF-8'?>
<something>
<somethinglese/>
</something>

View File

@ -17,10 +17,20 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=467123
<!-- test code goes here -->
<script type="application/javascript"><![CDATA[
/** Test for Bug 467123 **/
let url = Cc["@mozilla.org/network/io-service;1"]
.getService(Ci.nsIIOService)
.newURI(document.location.href);
let file = Cc["@mozilla.org/chrome/chrome-registry;1"]
.getService(Ci.nsIChromeRegistry)
.convertChromeURL(url)
.QueryInterface(Ci.nsIFileURL)
.file.parent;
file.append("clonedoc");
Components.manager.addBootstrappedManifestLocation(file);
var xhr = new XMLHttpRequest();
xhr.open("GET", "chrome://global/content/bindings/button.xml", false);
xhr.open("GET", "chrome://clonedoc/content/doc.xml", false);
xhr.send();
ok(xhr.responseXML, "We should have response document!");
var e = null;