| 
									
										
										
										
											2022-02-15 22:40:51 +03:30
										 |  |  | #import <DOM/EventTarget.idl> | 
					
						
							| 
									
										
										
										
											2022-03-30 23:35:42 +03:00
										 |  |  | #import <DOM/EventHandler.idl> | 
					
						
							| 
									
										
										
										
											2022-02-15 22:40:51 +03:30
										 |  |  | #import <HTML/WorkerLocation.idl> | 
					
						
							|  |  |  | #import <HTML/WorkerNavigator.idl> | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-02-06 19:12:57 -07:00
										 |  |  | [Exposed=Worker] | 
					
						
							|  |  |  | interface WorkerGlobalScope : EventTarget { | 
					
						
							|  |  |  |     readonly attribute WorkerGlobalScope self; | 
					
						
							|  |  |  |     readonly attribute WorkerLocation location; | 
					
						
							|  |  |  |     readonly attribute WorkerNavigator navigator; | 
					
						
							|  |  |  |     undefined importScripts(USVString... urls); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     // FIXME: Should be an OnErrorEventHandler | 
					
						
							|  |  |  |     attribute EventHandler 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); | 
					
						
							|  |  |  | }; |