mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
WorkerId
changed to type UUID.
This commit is contained in:
parent
5c56e661ca
commit
d5475fbc9f
9 changed files with 19 additions and 18 deletions
|
@ -16,10 +16,12 @@ use crate::dom::globalscope::GlobalScope;
|
|||
use crate::dom::navigationpreloadmanager::NavigationPreloadManager;
|
||||
use crate::dom::serviceworker::ServiceWorker;
|
||||
use crate::dom::workerglobalscope::prepare_workerscope_init;
|
||||
use devtools_traits::WorkerId;
|
||||
use dom_struct::dom_struct;
|
||||
use script_traits::{ScopeThings, WorkerScriptLoadOrigin};
|
||||
use servo_url::ServoUrl;
|
||||
use std::cell::Cell;
|
||||
use uuid::Uuid;
|
||||
|
||||
#[dom_struct]
|
||||
pub struct ServiceWorkerRegistration {
|
||||
|
@ -111,7 +113,7 @@ impl ServiceWorkerRegistration {
|
|||
pipeline_id: Some(global.pipeline_id()),
|
||||
};
|
||||
|
||||
let worker_id = global.get_next_worker_id();
|
||||
let worker_id = WorkerId(Uuid::new_v4());
|
||||
let devtools_chan = global.devtools_chan().cloned();
|
||||
let init = prepare_workerscope_init(&global, None);
|
||||
ScopeThings {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue