author Edgar Chen <>
Mon, 26 Nov 2018 16:59:55 +0000
changeset 504646 d61b59d39b4adc3a322609cac931cab5257cbda9
parent 502914 e952a2b3d4ef4f909c5dc25a9521a9c582647e3d
child 524070 b0af7322659c66d6bd72958713c5737f3ce30822
permissions -rw-r--r--
Bug 1509794 - Add UseCounter telemetry for Custom Elements API; r=smaug Differential Revision:

/* 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 */

interface CustomElementRegistry {
  [CEReactions, Throws, UseCounter]
  void define(DOMString name, Function functionConstructor,
              optional ElementDefinitionOptions options);
  [ChromeOnly, Throws]
  void setElementCreationCallback(DOMString name, CustomElementCreationCallback callback);
  any get(DOMString name);
  Promise<void> whenDefined(DOMString name);
  [CEReactions] void upgrade(Node root);

dictionary ElementDefinitionOptions {
  DOMString extends;

callback CustomElementCreationCallback = void (DOMString name);