mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Add creation url and Secure Contexts
This commit is contained in:
parent
20ef49e035
commit
0e1479cc84
25 changed files with 207 additions and 9 deletions
|
@ -71,10 +71,12 @@ impl WorkletGlobalScope {
|
|||
init.scheduler_chan.clone(),
|
||||
init.resource_threads.clone(),
|
||||
MutableOrigin::new(ImmutableOrigin::new_opaque()),
|
||||
None,
|
||||
Default::default(),
|
||||
init.is_headless,
|
||||
init.user_agent.clone(),
|
||||
init.gpu_id_hub.clone(),
|
||||
init.inherited_secure_context,
|
||||
),
|
||||
base_url,
|
||||
to_script_thread_sender: init.to_script_thread_sender.clone(),
|
||||
|
@ -166,6 +168,8 @@ pub struct WorkletGlobalScopeInit {
|
|||
pub user_agent: Cow<'static, str>,
|
||||
/// Identity manager for WebGPU resources
|
||||
pub gpu_id_hub: Arc<Mutex<Identities>>,
|
||||
/// Is considered secure
|
||||
pub inherited_secure_context: Option<bool>,
|
||||
}
|
||||
|
||||
/// <https://drafts.css-houdini.org/worklets/#worklet-global-scope-type>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue