Bug 1388132 - Enable use counter for XMLDocument.async; r=smaug,francois draft
authorAryeh Gregor <ayg@aryeh.name>
Tue, 08 Aug 2017 14:00:06 +0300
changeset 642760 d2bb455dd4010451dc7c79dc33bc0e05653a434f
parent 619581 52285ea5e54c73d3ed824544cef2ee3f195f05e6
child 725089 987ed3d89c288a748a833257af5018260501f3ff
push id72854
push userbmo:ayg@aryeh.name
push dateTue, 08 Aug 2017 17:59:08 +0000
reviewerssmaug, francois
bugs1388132
milestone57.0a1
Bug 1388132 - Enable use counter for XMLDocument.async; r=smaug,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;
 };