diff options
author | Jonathan Kingston <jonathan@jooped.co.uk> | 2020-11-24 02:06:08 +0000 |
---|---|---|
committer | Jonathan Kingston <jonathan@jooped.co.uk> | 2020-11-25 18:30:50 +0000 |
commit | 0e1479cc847333c81a37d11f0f65f0304972ba3c (patch) | |
tree | c2f505ce162f481639d9115f19ba96421c552253 /components/script/dom/window.rs | |
parent | 20ef49e035596136ce43b47a66b27c8b5c25967b (diff) | |
download | servo-0e1479cc847333c81a37d11f0f65f0304972ba3c.tar.gz servo-0e1479cc847333c81a37d11f0f65f0304972ba3c.zip |
Add creation url and Secure Contexts
Diffstat (limited to 'components/script/dom/window.rs')
-rw-r--r-- | components/script/dom/window.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/components/script/dom/window.rs b/components/script/dom/window.rs index 09497c0798a..70734efb9bb 100644 --- a/components/script/dom/window.rs +++ b/components/script/dom/window.rs @@ -1381,6 +1381,10 @@ impl WindowMethods for Window { } rval.get() } + + fn IsSecureContext(&self) -> bool { + self.upcast::<GlobalScope>().is_secure_context() + } } impl Window { @@ -2357,6 +2361,7 @@ impl Window { parent_info: Option<PipelineId>, window_size: WindowSizeData, origin: MutableOrigin, + creator_url: ServoUrl, navigation_start: u64, navigation_start_precise: u64, webgl_chan: Option<WebGLChan>, @@ -2376,6 +2381,7 @@ impl Window { player_context: WindowGLContext, event_loop_waker: Option<Box<dyn EventLoopWaker>>, gpu_id_hub: Arc<ParkMutex<Identities>>, + inherited_secure_context: Option<bool>, ) -> DomRoot<Self> { let layout_rpc: Box<dyn LayoutRPC + Send> = { let (rpc_send, rpc_recv) = unbounded(); @@ -2396,10 +2402,12 @@ impl Window { scheduler_chan, resource_threads, origin, + Some(creator_url), microtask_queue, is_headless, user_agent, gpu_id_hub, + inherited_secure_context, ), script_chan, task_manager, |