Bug 1388132 - Enable use counter for XMLDocument.async; r=smaug,data-review=francois draft
authorAryeh Gregor <ayg@aryeh.name>
Tue, 08 Aug 2017 14:00:06 +0300
changeset 642759 a9b5dac03e03c2c851c4ccb210cf5c60955b2f08
parent 619581 52285ea5e54c73d3ed824544cef2ee3f195f05e6
child 725088 3da2de01f24e0b79074c3304b49e902de76eb7d3
push id72853
push userbmo:ayg@aryeh.name
push dateTue, 08 Aug 2017 17:57:59 +0000
reviewerssmaug
bugs1388132
milestone57.0a1
Bug 1388132 - Enable use counter for XMLDocument.async; r=smaug,data-review=francois This API is not implemented by other browsers and we want to ensure there isn't significant usage before removing it. MozReview-Commit-ID: Kb3HyJW6hGB
dom/base/UseCounters.conf
dom/webidl/XMLDocument.webidl
--- a/dom/base/UseCounters.conf
+++ b/dom/base/UseCounters.conf
@@ -35,16 +35,17 @@
 // dependencies were correct would have been rather difficult, and
 // annotating the WebIDL files does nothing for identifying CSS
 // property usage, which we would also like to track.
 
 method SVGSVGElement.getElementById
 attribute SVGSVGElement.currentScale
 property Fill
 property FillOpacity
+attribute XMLDocument.async
 
 // Push API
 method PushManager.subscribe
 method PushSubscription.unsubscribe
 
 // window.sidebar.addSearchEngine
 attribute Window.sidebar
 method External.addSearchEngine
--- a/dom/webidl/XMLDocument.webidl
+++ b/dom/webidl/XMLDocument.webidl
@@ -14,10 +14,11 @@ interface XMLDocument : Document {};
 // http://www.whatwg.org/specs/web-apps/current-work/#xmldocument
 partial interface XMLDocument {
   [Throws, NeedsCallerType]
   boolean load(DOMString url);
 };
 
 // Gecko extensions?
 partial interface XMLDocument {
+  [UseCounter]
   attribute boolean async;
 };