mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 16:42:44 +00:00 
			
		
		
		
	This aligns Workers and Window and MessagePorts to all use the same mechanism for transferring serialized messages across realms. It also allows transferring more message ports into a worker. Re-enable the Worker-echo test, as none of the MessagePort tests have themselves been flaky, and those are now using the same underlying implementation.
		
			
				
	
	
		
			10 lines
		
	
	
	
		
			330 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			10 lines
		
	
	
	
		
			330 B
		
	
	
	
		
			Text
		
	
	
	
	
	
| #include <AK/URL.h>
 | |
| #include <LibIPC/File.h>
 | |
| #include <LibWeb/HTML/StructuredSerialize.h>
 | |
| 
 | |
| endpoint WebWorkerServer {
 | |
| 
 | |
|     start_dedicated_worker(URL url, String type, String credentials, String name, Web::HTML::TransferDataHolder message_port) =|
 | |
| 
 | |
|     handle_file_return(i32 error, Optional<IPC::File> file, i32 request_id) =|
 | |
| }
 |