| 
									
										
										
										
											2021-10-01 18:39:03 +03:00
										 |  |  | #import <DOM/Event.idl> | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-10-07 16:45:09 -06:00
										 |  |  | // https://html.spec.whatwg.org/multipage/comms.html#messageevent | 
					
						
							| 
									
										
										
										
											2023-03-05 10:33:56 +01:00
										 |  |  | [Exposed=(Window,Worker), UseNewAKString] | 
					
						
							| 
									
										
										
										
											2021-04-24 13:54:24 +02:00
										 |  |  | interface MessageEvent : Event { | 
					
						
							| 
									
										
										
										
											2021-10-01 18:39:03 +03:00
										 |  |  |     constructor(DOMString type, optional MessageEventInit eventInitDict = {}); | 
					
						
							| 
									
										
										
										
											2021-04-24 13:54:24 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-10-01 18:21:38 +03:00
										 |  |  |     readonly attribute any data; | 
					
						
							| 
									
										
										
										
											2021-04-24 13:54:24 +02:00
										 |  |  |     readonly attribute USVString origin; | 
					
						
							| 
									
										
										
										
											2021-10-01 18:30:30 +03:00
										 |  |  |     readonly attribute DOMString lastEventId; | 
					
						
							|  |  |  |     // FIXME: readonly attribute MessageEventSource? source; | 
					
						
							|  |  |  |     // FIXME: readonly attribute FrozenArray<MessagePort> ports; | 
					
						
							| 
									
										
										
										
											2021-04-24 13:54:24 +02:00
										 |  |  | }; | 
					
						
							| 
									
										
										
										
											2021-10-01 18:39:03 +03:00
										 |  |  | 
 | 
					
						
							|  |  |  | dictionary MessageEventInit : EventInit { | 
					
						
							|  |  |  |     any data = null; | 
					
						
							|  |  |  |     USVString origin = ""; | 
					
						
							|  |  |  |     DOMString lastEventId = ""; | 
					
						
							|  |  |  |     // FIXME: MessageEventSource? source = null; | 
					
						
							|  |  |  |     // FIXME: sequence<MessagePort> ports = []; | 
					
						
							|  |  |  | }; |