Bug 916004 - Set datasource after loading to see if intermittent orange of test_bug330010.xul goes away. a=test-only
authorNeil Deakin <neil@mozilla.com>
Fri, 27 May 2016 09:19:53 -0400
changeset 333158 931ee07d307ed35df9e1775d459f0c7d38991b9f
parent 333157 e5a71ecae4b453008c9191d874b4f76f3e3ac092
child 333159 e3d15342ba84ae49b8f8b0350a9d92bcc3c38b5f
push id6048
push userkmoir@mozilla.com
push dateMon, 06 Jun 2016 19:02:08 +0000
treeherdermozilla-beta@46d72a56c57d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstest-only
bugs916004, 330010
milestone48.0a2
Bug 916004 - Set datasource after loading to see if intermittent orange of test_bug330010.xul goes away. a=test-only
dom/xul/templates/tests/chrome/test_bug330010.xul
--- a/dom/xul/templates/tests/chrome/test_bug330010.xul
+++ b/dom/xul/templates/tests/chrome/test_bug330010.xul
@@ -13,28 +13,31 @@ SimpleTest.waitForExplicitFinish();
 function boom()
 {
   const RDF = Components.classes["@mozilla.org/rdf/rdf-service;1"].
                          getService(Components.interfaces.nsIRDFService);
   var src = window.location.href.replace(/test_bug330010.xul/, "file_bug330010.rdf");
 
   var ds = RDF.GetDataSourceBlocking(src);
 
+  var s = document.getElementById("s");
+  s.setAttribute("datasources", "file_bug330010.rdf");
+
   var x = document.createElementNS("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul", "hbox");
-  var generatedShape = document.getElementById("s").childNodes[3];
+  var generatedShape = s.childNodes[3];
   generatedShape.appendChild(x);
   document.documentElement.removeChild(document.getElementById("s"));
   ok(true, "Didn't crash");
   SimpleTest.finish();
 }
 
 ]]>
 </script>
 
-  <html:div datasources="file_bug330010.rdf" ref="urn:root" flex="1" id="s">
+  <html:div datasources="rdf:null" ref="urn:root" flex="1" id="s">
     <template>
       <rule>
         <conditions>
           <content uri="?root"/>
           <triple subject="?root"
                   predicate="urn:croczilla:xulsvg1:shapes"
                   object="?shapes"/>
           <member container="?shapes" child="?shape" id="m"/>