mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 16:12:44 +00:00 
			
		
		
		
	LibWeb+WebWorker: Implement a first cut of post_message for Workers
This implementation completely ignores MessagePorts, and manually plumbs data through LocalSockets.
This commit is contained in:
		
							parent
							
								
									05ec93e276
								
							
						
					
					
						commit
						1602663b9e
					
				
					 15 changed files with 225 additions and 29 deletions
				
			
		|  | @ -52,9 +52,9 @@ Web::Page const& ConnectionFromClient::page() const | |||
|     return m_page_host->page(); | ||||
| } | ||||
| 
 | ||||
| void ConnectionFromClient::start_dedicated_worker(AK::URL const& url, String const& type, String const&, String const&, IPC::File const&) | ||||
| void ConnectionFromClient::start_dedicated_worker(AK::URL const& url, String const& type, String const&, String const&, IPC::File const& implicit_port) | ||||
| { | ||||
|     m_worker_host = make_ref_counted<DedicatedWorkerHost>(page(), url, type); | ||||
|     m_worker_host = make_ref_counted<DedicatedWorkerHost>(page(), url, type, implicit_port.take_fd()); | ||||
| 
 | ||||
|     m_worker_host->run(); | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Andrew Kaster
						Andrew Kaster