mirror of
https://github.com/servo/servo
synced 2026-04-25 17:15:48 +02:00
Clean up WorkerGlobalScope webidl interface and implement all event handlers that WorkerGlobalScope and subclasses should support. Testing: Covered by existing tests, needs to update test expectations. --------- Signed-off-by: Gae24 <96017547+Gae24@users.noreply.github.com>
20 lines
827 B
Plaintext
20 lines
827 B
Plaintext
/* 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 https://mozilla.org/MPL/2.0/. */
|
|
|
|
// https://html.spec.whatwg.org/multipage/#workerglobalscope
|
|
[Abstract, Exposed=Worker]
|
|
interface WorkerGlobalScope : GlobalScope {
|
|
[BinaryName="Self_"] readonly attribute WorkerGlobalScope self;
|
|
readonly attribute WorkerLocation location;
|
|
readonly attribute WorkerNavigator navigator;
|
|
[Throws] undefined importScripts((TrustedScriptURL or USVString)... urls);
|
|
|
|
attribute OnErrorEventHandler onerror;
|
|
attribute EventHandler onlanguagechange;
|
|
attribute EventHandler onoffline;
|
|
attribute EventHandler ononline;
|
|
attribute EventHandler onrejectionhandled;
|
|
attribute EventHandler onunhandledrejection;
|
|
};
|