2015-03-04 02:51:53 +03:00
|
|
|
/* -*- 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 http://mozilla.org/MPL/2.0/. */
|
|
|
|
|
|
|
|
[Global=(WorkerDebugger), Exposed=WorkerDebugger]
|
|
|
|
interface WorkerDebuggerGlobalScope : EventTarget {
|
2016-03-18 16:04:57 +03:00
|
|
|
[Throws]
|
2015-03-04 02:51:53 +03:00
|
|
|
readonly attribute object global;
|
2015-03-20 14:15:59 +03:00
|
|
|
|
2016-03-28 20:28:14 +03:00
|
|
|
[Throws]
|
2015-03-31 13:22:40 +03:00
|
|
|
object createSandbox(DOMString name, object prototype);
|
|
|
|
|
|
|
|
[Throws]
|
|
|
|
void loadSubScript(DOMString url, optional object sandbox);
|
|
|
|
|
2015-03-27 09:17:16 +03:00
|
|
|
void enterEventLoop();
|
|
|
|
|
|
|
|
void leaveEventLoop();
|
|
|
|
|
2015-03-20 14:15:59 +03:00
|
|
|
void postMessage(DOMString message);
|
|
|
|
|
|
|
|
attribute EventHandler onmessage;
|
2015-03-26 22:09:45 +03:00
|
|
|
|
2015-03-30 14:54:38 +03:00
|
|
|
[Throws]
|
|
|
|
void setImmediate(Function handler);
|
|
|
|
|
2015-03-26 22:09:45 +03:00
|
|
|
void reportError(DOMString message);
|
2016-03-24 00:55:07 +03:00
|
|
|
|
|
|
|
[Throws]
|
|
|
|
sequence<any> retrieveConsoleEvents();
|
|
|
|
|
|
|
|
[Throws]
|
2016-03-29 17:56:10 +03:00
|
|
|
void setConsoleEventHandler(AnyCallback? handler);
|
2015-03-04 02:51:53 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
// So you can debug while you debug
|
|
|
|
partial interface WorkerDebuggerGlobalScope {
|
|
|
|
void dump(optional DOMString string);
|
|
|
|
};
|