Bug 1328138 - Disable the XMLDocument.async API on trunk; r=bzbarsky
authorEhsan Akhgari <ehsan@mozilla.com>
Wed, 17 Apr 2019 19:46:05 +0000
changeset 469955 0e369b6ee8ff31b69fd546ffabfb4fc4133a8b87
parent 469954 0930049c0ca984c909d11ba2853ef6d96e43e242
child 469956 8515e58392b724460b731fe12881de75a2397c0a
push id35884
push userapavel@mozilla.com
push dateThu, 18 Apr 2019 21:35:00 +0000
treeherdermozilla-central@74dc09642c22 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbzbarsky
bugs1328138
milestone68.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 1328138 - Disable the XMLDocument.async API on trunk; r=bzbarsky Differential Revision: https://phabricator.services.mozilla.com/D27730
dom/html/test/test_bug347174_xslp.html
dom/webidl/XMLDocument.webidl
testing/web-platform/meta/dom/historical.html.ini
--- a/dom/html/test/test_bug347174_xslp.html
+++ b/dom/html/test/test_bug347174_xslp.html
@@ -53,15 +53,16 @@ function runTest() {
 function showMessage(msg) {
     window.readyStateText.push(msg);
     $("display").innerHTML = readyStateText.join("<br>");
 }
 
 SimpleTest.waitForExplicitFinish();
 
 SpecialPowers.pushPrefEnv({"set": [
+  ["dom.xmldocument.async.enabled", true],
   ["dom.xmldocument.load.enabled", true],
 ]}, runTest);
 
 </script>
 </pre>
 </body>
 </html>
--- a/dom/webidl/XMLDocument.webidl
+++ b/dom/webidl/XMLDocument.webidl
@@ -14,11 +14,11 @@ interface XMLDocument : Document {};
 // http://www.whatwg.org/specs/web-apps/current-work/#xmldocument
 partial interface XMLDocument {
   [Throws, NeedsCallerType, Pref="dom.xmldocument.load.enabled"]
   boolean load(DOMString url);
 };
 
 // Gecko extensions?
 partial interface XMLDocument {
-  [UseCounter]
+  [UseCounter, Pref="dom.xmldocument.async.enabled"]
   attribute boolean async;
 };
--- a/testing/web-platform/meta/dom/historical.html.ini
+++ b/testing/web-platform/meta/dom/historical.html.ini
@@ -6,14 +6,11 @@
   [Historical DOM features must be removed: DOMError]
     expected: FAIL
     bug: 1120178
 
   [Historical DOM features must be removed: createCDATASection]
     expected: FAIL
     bug: 660660
 
-  [Historical DOM features must be removed: async]
-    expected: FAIL
-
   [Historical DOM features must be removed: DOMRequest]
     expected: FAIL