tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

Console.webidl (2306B)


      1 /* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
      2 /* vim: set ts=2 et sw=2 tw=80: */
      3 /* This Source Code Form is subject to the terms of the Mozilla Public
      4 * License, v. 2.0. If a copy of the MPL was not distributed with this
      5 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
      6 *
      7 * For more information on this interface, please see
      8 * https://console.spec.whatwg.org/#console-namespace
      9 */
     10 
     11 [Exposed=(Window,Worker,WorkerDebugger,Worklet),
     12 ClassString="Console",
     13 ProtoObjectHack]
     14 namespace console {
     15 
     16  // NOTE: if you touch this namespace, remember to update the ConsoleInstance
     17  // interface as well! - dom/chrome-webidl/ConsoleInstance.webidl
     18 
     19  // Logging
     20  [UseCounter]
     21  undefined assert(optional boolean condition = false, any... data);
     22  [UseCounter]
     23  undefined clear();
     24  [UseCounter]
     25  undefined count(optional DOMString label = "default");
     26  [UseCounter]
     27  undefined countReset(optional DOMString label = "default");
     28  [UseCounter]
     29  undefined debug(any... data);
     30  [UseCounter]
     31  undefined error(any... data);
     32  [UseCounter]
     33  undefined info(any... data);
     34  [UseCounter]
     35  undefined log(any... data);
     36  [UseCounter]
     37  undefined table(any... data); // FIXME: The spec is still unclear about this.
     38  [UseCounter]
     39  undefined trace(any... data);
     40  [UseCounter]
     41  undefined warn(any... data);
     42  [UseCounter]
     43  undefined dir(any... data); // FIXME: This doesn't follow the spec yet.
     44  [UseCounter]
     45  undefined dirxml(any... data);
     46 
     47  // Grouping
     48  [UseCounter]
     49  undefined group(any... data);
     50  [UseCounter]
     51  undefined groupCollapsed(any... data);
     52  [UseCounter]
     53  undefined groupEnd();
     54 
     55  // Timing
     56  [UseCounter]
     57  undefined time(optional DOMString label = "default");
     58  [UseCounter]
     59  undefined timeLog(optional DOMString label = "default", any... data);
     60  [UseCounter]
     61  undefined timeEnd(optional DOMString label = "default");
     62 
     63  // Mozilla only or Webcompat methods
     64 
     65  [UseCounter]
     66  undefined _exception(any... data);
     67  [UseCounter]
     68  undefined timeStamp(optional any data);
     69 
     70  [UseCounter]
     71  undefined profile(any... data);
     72  [UseCounter]
     73  undefined profileEnd(any... data);
     74 
     75  [ChromeOnly]
     76  const boolean IS_NATIVE_CONSOLE = true;
     77 
     78  [ChromeOnly, NewObject]
     79  ConsoleInstance createInstance(optional ConsoleInstanceOptions options = {});
     80 };