Struct script::dom::windowproxy::CreatorBrowsingContextInfo
source · pub struct CreatorBrowsingContextInfo {
url: Option<ServoUrl>,
base_url: Option<ServoUrl>,
origin: Option<ImmutableOrigin>,
}
Expand description
A browsing context can have a creator browsing context, the browsing context that was responsible for its creation. If a browsing context has a parent browsing context, then that is its creator browsing context. Otherwise, if the browsing context has an opener browsing context, then that is its creator browsing context. Otherwise, the browsing context has no creator browsing context.
If a browsing context A has a creator browsing context, then the Document that was the active document of that creator browsing context at the time A was created is the creator Document.
See: https://html.spec.whatwg.org/multipage/#creating-browsing-contexts
Fields§
§url: Option<ServoUrl>
Creator document URL.
base_url: Option<ServoUrl>
Creator document base URL.
origin: Option<ImmutableOrigin>
Creator document origin.
Implementations§
source§impl CreatorBrowsingContextInfo
impl CreatorBrowsingContextInfo
pub fn from( parent: Option<&WindowProxy>, opener: Option<&WindowProxy> ) -> CreatorBrowsingContextInfo
Trait Implementations§
source§impl Debug for CreatorBrowsingContextInfo
impl Debug for CreatorBrowsingContextInfo
source§impl<'de> Deserialize<'de> for CreatorBrowsingContextInfo
impl<'de> Deserialize<'de> for CreatorBrowsingContextInfo
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
Auto Trait Implementations§
impl RefUnwindSafe for CreatorBrowsingContextInfo
impl Send for CreatorBrowsingContextInfo
impl Sync for CreatorBrowsingContextInfo
impl Unpin for CreatorBrowsingContextInfo
impl UnwindSafe for CreatorBrowsingContextInfo
Blanket Implementations§
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> MaybeBoxed<Box<T, Global>> for T
impl<T> MaybeBoxed<Box<T, Global>> for T
source§fn maybe_boxed(self) -> Box<T, Global>
fn maybe_boxed(self) -> Box<T, Global>
Convert
source§impl<T> MaybeBoxed<T> for T
impl<T> MaybeBoxed<T> for T
source§fn maybe_boxed(self) -> T
fn maybe_boxed(self) -> T
Convert