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/.
7 * For more information on this interface, please see
8 * https://console.spec.whatwg.org/#console-namespace
11 [Exposed=(Window,Worker,WorkerDebugger,Worklet),
12 ClassString="Console",
16 // NOTE: if you touch this namespace, remember to update the ConsoleInstance
17 // interface as well! - dom/chrome-webidl/ConsoleInstance.webidl
21 undefined assert(optional boolean condition = false, any... data);
25 undefined count(optional DOMString label = "default");
27 undefined countReset(optional DOMString label = "default");
29 undefined debug(any... data);
31 undefined error(any... data);
33 undefined info(any... data);
35 undefined log(any... data);
37 undefined table(any... data); // FIXME: The spec is still unclear about this.
39 undefined trace(any... data);
41 undefined warn(any... data);
43 undefined dir(any... data); // FIXME: This doesn't follow the spec yet.
45 undefined dirxml(any... data);
49 undefined group(any... data);
51 undefined groupCollapsed(any... data);
57 undefined time(optional DOMString label = "default");
59 undefined timeLog(optional DOMString label = "default", any... data);
61 undefined timeEnd(optional DOMString label = "default");
63 // Mozilla only or Webcompat methods
66 undefined _exception(any... data);
68 undefined timeStamp(optional any data);
71 undefined profile(any... data);
73 undefined profileEnd(any... data);
76 const boolean IS_NATIVE_CONSOLE = true;
78 [ChromeOnly, NewObject]
79 ConsoleInstance createInstance(optional ConsoleInstanceOptions options = {});