mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
allow for a service worker manager per origin
This commit is contained in:
parent
9972aee81f
commit
db217d5575
11 changed files with 405 additions and 245 deletions
|
@ -5,8 +5,6 @@
|
|||
use crate::dom::bindings::codegen::RegisterBindings;
|
||||
use crate::dom::bindings::proxyhandler;
|
||||
use crate::script_runtime::JSEngineSetup;
|
||||
use crate::serviceworker_manager::ServiceWorkerManager;
|
||||
use script_traits::SWManagerSenders;
|
||||
|
||||
#[cfg(target_os = "linux")]
|
||||
#[allow(unsafe_code)]
|
||||
|
@ -51,11 +49,6 @@ fn perform_platform_specific_initialization() {
|
|||
#[cfg(not(target_os = "linux"))]
|
||||
fn perform_platform_specific_initialization() {}
|
||||
|
||||
pub fn init_service_workers(sw_senders: SWManagerSenders) {
|
||||
// Spawn the service worker manager passing the constellation sender
|
||||
ServiceWorkerManager::spawn_manager(sw_senders);
|
||||
}
|
||||
|
||||
#[allow(unsafe_code)]
|
||||
pub fn init() -> JSEngineSetup {
|
||||
unsafe {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue