Bug 1509794 - Add UseCounter telemetry for Custom Elements API; r=smaug
authorEdgar Chen <echen@mozilla.com>
Mon, 26 Nov 2018 16:59:55 +0000
changeset 504646 d61b59d39b4adc3a322609cac931cab5257cbda9
parent 504645 009f60526bb42f964bbefd9feb3213f5651c0ae1
child 504647 cb9dec83210d452c015b5608a3ea76c72ebbe777
push id10290
push userffxbld-merge
push dateMon, 03 Dec 2018 16:23:23 +0000
treeherdermozilla-beta@700bed2445e6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssmaug
bugs1509794
milestone65.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 1509794 - Add UseCounter telemetry for Custom Elements API; r=smaug Differential Revision: https://phabricator.services.mozilla.com/D12886
dom/base/UseCounters.conf
dom/webidl/CustomElementRegistry.webidl
--- a/dom/base/UseCounters.conf
+++ b/dom/base/UseCounters.conf
@@ -127,8 +127,11 @@ method console.timeStamp
 method console.profile
 method console.profileEnd
 
 // document.open information
 custom DocumentOpen calls document.open in a way that creates a new Window object
 custom DocumentOpenReplace calls document.open in a way that creates a new Window object and replaces the old history entry.
 
 custom FilteredCrossOriginIFrame cross-origin <iframe> within a CSS/SVG filter
+
+// Custom Elements
+method CustomElementRegistry.define
--- a/dom/webidl/CustomElementRegistry.webidl
+++ b/dom/webidl/CustomElementRegistry.webidl
@@ -1,15 +1,15 @@
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this file,
  * You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 // https://html.spec.whatwg.org/#dom-window-customelements
 interface CustomElementRegistry {
-  [CEReactions, Throws]
+  [CEReactions, Throws, UseCounter]
   void define(DOMString name, Function functionConstructor,
               optional ElementDefinitionOptions options);
   [ChromeOnly, Throws]
   void setElementCreationCallback(DOMString name, CustomElementCreationCallback callback);
   any get(DOMString name);
   [Throws]
   Promise<void> whenDefined(DOMString name);
   [CEReactions] void upgrade(Node root);