Bug 1890793: Assert CallArgs::newTarget is not gray. r=spidermonkey-reviewers,sfink...
[gecko.git] / dom / chrome-webidl / DebuggerNotification.webidl
blobd549eb7ae9ae51cfcdd46d79cb9f99f25eed7c93
1 /* This Source Code Form is subject to the terms of the Mozilla Public
2  * License, v. 2.0. If a copy of the MPL was not distributed with this
3  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 enum DebuggerNotificationType {
6   // DebuggerNotification
7   "setTimeout",
8   "clearTimeout",
9   "setInterval",
10   "clearInterval",
11   "requestAnimationFrame",
12   "cancelAnimationFrame",
14   // CallbackDebuggerNotification
15   "setTimeoutCallback",
16   "setIntervalCallback",
17   "requestAnimationFrameCallback",
19   // EventCallbackDebuggerNotification
20   "domEvent",
23 [ChromeOnly, Exposed=Window]
24 interface DebuggerNotification {
25   readonly attribute DebuggerNotificationType type;
27   // The global object that has triggered the notification.
28   readonly attribute object global;
31 // For DOM events, we send notifications just before, and just after the
32 // event handler has been dispatched so that listeners
33 enum CallbackDebuggerNotificationPhase {
34   "pre",
35   "post",
38 // A base notification type for notifications that are dispatched as pairs with
39 // a before and after notification.
40 [ChromeOnly, Exposed=Window]
41 interface CallbackDebuggerNotification : DebuggerNotification {
42   readonly attribute CallbackDebuggerNotificationPhase phase;
45 enum EventCallbackDebuggerNotificationType {
46   "global",
47   "node",
48   "xhr",
49   "worker",
50   "websocket",
53 // A notification that about the engine calling a DOM event handler.
54 [ChromeOnly, Exposed=Window]
55 interface EventCallbackDebuggerNotification : CallbackDebuggerNotification {
56   readonly attribute Event event;
57   readonly attribute EventCallbackDebuggerNotificationType targetType;