author Anne van Kesteren <>
Tue, 05 Mar 2019 12:18:39 +0000
changeset 464583 8566ae4d152605453ebe6715ec4f2f8af60a95d3
parent 464141 9e076e178370e309828ca0b2a598058df83848af
child 470303 0f12aebacdd6845bed9e7f2cbf8e33dbd9b50b8b
permissions -rw-r--r--
Bug 1529726 [wpt PR 15414] - HTML: window.length and named access, a=testonly Automatic update from web-platform-tests HTML: window.length and named access For -- wpt-commits: 3a43f99a56a4c016e3f1cda41330f1a2c0e780ff wpt-pr: 15414

/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* 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 */

#include "nsISupports.idl"

webidl Document;
webidl Element;
webidl Node;

[scriptable, uuid(7c468500-541f-4fe0-98c9-92a53b63ec8d)]
interface mozIDOMLocalization : nsISupports
  unsigned long addResourceIds(in Array<AString> resourceIds, in bool aEager);
  unsigned long removeResourceIds(in Array<AString> resourceIds);
  void onChange();

  Promise formatMessages(in Array<jsval> aKeys);
  Promise formatValues(in Array<jsval> aKeys);
  Promise formatValue(in AString aId, [optional] in jsval aArgs);

  Promise translateFragment(in Node aNode);
  Promise translateElements(in Array<Element> aElements);

  void connectRoot(in Element aElement);
  void disconnectRoot(in Element aElement);

  void pauseObserving();
  void resumeObserving();

  Promise translateRoots();
  readonly attribute Promise ready;

interface mozIDOMLocalizationJSM : nsISupports
  mozIDOMLocalization getDOMLocalization();