mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 15:22:43 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			28 lines
		
	
	
	
		
			983 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
	
		
			983 B
		
	
	
	
		
			Text
		
	
	
	
	
	
| #import <DOM/EventTarget.idl>
 | |
| #import <DOM/EventHandler.idl>
 | |
| #import <HTML/WorkerLocation.idl>
 | |
| #import <HTML/WorkerNavigator.idl>
 | |
| 
 | |
| [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: These should all come from a WindowOrWorkerGlobalScope mixin
 | |
|     [Replaceable] readonly attribute USVString origin;
 | |
|     readonly attribute boolean isSecureContext;
 | |
|     readonly attribute boolean crossOriginIsolated;
 | |
| 
 | |
|     // base64 utility methods
 | |
|     DOMString btoa(DOMString data);
 | |
|     ByteString atob(DOMString data);
 | |
| };
 | 
