Mirror problem of #15217
Currently the CoreResourceManager only has one swmanager_chan, which means that starting multiple ServiceWorkerManager will overwrite previous values and only the last one will work as a network mediator.
|
self.resource_manager.swmanager_chan = Some(mediator_chan) |
Instead, the CoreResourceManager should own a map of ImmutableOrigin -> Option<IpcSender<CustomResponseMediator>>
Mirror problem of #15217
Currently the
CoreResourceManageronly has oneswmanager_chan, which means that starting multipleServiceWorkerManagerwill overwrite previous values and only the last one will work as a network mediator.servo/components/net/resource_thread.rs
Line 303 in e66ab11
Instead, the
CoreResourceManagershould own a map ofImmutableOrigin->Option<IpcSender<CustomResponseMediator>>