pub struct CreateIsolatedWorldParams {
pub frame_id: FrameId,
pub world_name: Option<String>,
pub grant_univeral_access: Option<bool>,
pub content_security_policy: Option<String>,
}Expand description
Creates an isolated world for the given frame.
Parameters of Page.createIsolatedWorld.
Fields§
§frame_id: FrameIdId of the frame in which the isolated world should be created.
world_name: Option<String>An optional name which is reported in the Execution Context.
grant_univeral_access: Option<bool>Whether or not universal access should be granted to the isolated world. This is a powerful option, use with caution.
content_security_policy: Option<String>An optional content security policy to set for the isolated world. If omitted, any existing CSP for the world will be cleared. Note that clearing or updating the CSP does not immediately affect the active context in the same document because LocalDOMWindow caches the ContentSecurityPolicy object. The change takes effect on subsequent navigations when a new window context is created.
Trait Implementations§
Source§impl Clone for CreateIsolatedWorldParams
impl Clone for CreateIsolatedWorldParams
Source§impl Command for CreateIsolatedWorldParams
impl Command for CreateIsolatedWorldParams
Source§impl Debug for CreateIsolatedWorldParams
impl Debug for CreateIsolatedWorldParams
Source§impl Default for CreateIsolatedWorldParams
impl Default for CreateIsolatedWorldParams
Source§impl<'de> Deserialize<'de> for CreateIsolatedWorldParams
impl<'de> Deserialize<'de> for CreateIsolatedWorldParams
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for CreateIsolatedWorldParams
Auto Trait Implementations§
impl Forget for CreateIsolatedWorldParams
impl Freeze for CreateIsolatedWorldParams
impl RefUnwindSafe for CreateIsolatedWorldParams
impl Send for CreateIsolatedWorldParams
impl Sync for CreateIsolatedWorldParams
impl Unpin for CreateIsolatedWorldParams
impl UnsafeUnpin for CreateIsolatedWorldParams
impl UnwindSafe for CreateIsolatedWorldParams
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more