mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-26 04:22:07 +00:00 
			
		
		
		
	 73697058b0
			
		
	
	
		73697058b0
		
	
	
	
	
		
			
			Still some FIXMEs left though, as the IDL generator doesn't know what a FrozenArray is, nor how to properly create a sequence of a Platform Object.
		
			
				
	
	
		
			27 lines
		
	
	
	
		
			922 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
	
		
			922 B
		
	
	
	
		
			Text
		
	
	
	
	
	
| #import <DOM/Event.idl>
 | |
| #import <HTML/MessagePort.idl>
 | |
| 
 | |
| // FIXME: typedef (WindowProxy or MessagePort or ServiceWorker) MessageEventSource;
 | |
| typedef (WindowProxy or MessagePort) MessageEventSource;
 | |
| 
 | |
| // https://html.spec.whatwg.org/multipage/comms.html#messageevent
 | |
| [Exposed=(Window,Worker)]
 | |
| interface MessageEvent : Event {
 | |
|     constructor(DOMString type, optional MessageEventInit eventInitDict = {});
 | |
| 
 | |
|     readonly attribute any data;
 | |
|     readonly attribute USVString origin;
 | |
|     readonly attribute DOMString lastEventId;
 | |
|     readonly attribute MessageEventSource? source;
 | |
|     // FIXME: readonly attribute FrozenArray<MessagePort> ports;
 | |
|     readonly attribute any ports;
 | |
| };
 | |
| 
 | |
| dictionary MessageEventInit : EventInit {
 | |
|     any data = null;
 | |
|     USVString origin = "";
 | |
|     DOMString lastEventId = "";
 | |
|     MessageEventSource? source = null;
 | |
|     // FIXME: sequence<MessagePort> ports = [];
 | |
|     sequence<object> ports = [];
 | |
| };
 |