mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 07:52:45 +00:00 
			
		
		
		
	 1602663b9e
			
		
	
	
		1602663b9e
		
	
	
	
	
		
			
			This implementation completely ignores MessagePorts, and manually plumbs data through LocalSockets.
		
			
				
	
	
		
			28 lines
		
	
	
	
		
			1,023 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
	
		
			1,023 B
		
	
	
	
		
			Text
		
	
	
	
	
	
| #import <DOM/EventTarget.idl>
 | |
| #import <DOM/EventHandler.idl>
 | |
| #import <HTML/WindowOrWorkerGlobalScope.idl>
 | |
| #import <HTML/WorkerLocation.idl>
 | |
| #import <HTML/WorkerNavigator.idl>
 | |
| 
 | |
| // https://html.spec.whatwg.org/multipage/workers.html#workerglobalscope
 | |
| [Exposed=Worker]
 | |
| interface WorkerGlobalScope : EventTarget {
 | |
|     readonly attribute WorkerGlobalScope self;
 | |
|     readonly attribute WorkerLocation location;
 | |
|     readonly attribute WorkerNavigator navigator;
 | |
|     undefined importScripts(USVString... urls);
 | |
| 
 | |
|     attribute OnErrorEventHandler onerror;
 | |
|     attribute EventHandler onlanguagechange;
 | |
|     attribute EventHandler onoffline;
 | |
|     attribute EventHandler ononline;
 | |
|     attribute EventHandler onrejectionhandled;
 | |
|     attribute EventHandler onunhandledrejection;
 | |
| 
 | |
|     // FIXME: This belongs on the subclasses of WorkerGlobalScope
 | |
|     undefined postMessage(any message, any transfer);
 | |
|     attribute EventHandler onmessage;
 | |
|     attribute EventHandler onmessageerror;
 | |
| };
 | |
| 
 | |
| WorkerGlobalScope includes WindowOrWorkerGlobalScope;
 |