Bug 916004, set datasource after loading to see if intermittent orange of test_bug330010.xul goes away
authorNeil Deakin <neil@mozilla.com>
Fri, 27 May 2016 09:19:53 -0400
changeset 340352 4fbc77b48fd9042cf94d09ec8c8c0ed2f9ab069d
parent 340351 74724ded165f579d12fe6bacf49e08c4f27e1c87
child 340353 8c17c414e300f4d1acdd346006f9afb0ce8ec524
push id1183
push userraliiev@mozilla.com
push dateMon, 05 Sep 2016 20:01:49 +0000
treeherdermozilla-release@3148731bed45 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs916004, 330010
milestone49.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 916004, set datasource after loading to see if intermittent orange of test_bug330010.xul goes away
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"/>