[][src]Enum csp::SandboxAllow

pub enum SandboxAllow {
    DownloadsWithoutUserActivation,
    Forms,
    Modals,
    OrientationLock,
    PointerLock,
    Popups,
    PopupsToEscapeSandbox,
    Presentation,
    SameOrigin,
    Scripts,
    StorageAccessByUserActivation,
    TopNavigation,
    TopNavigationByUserActivation,
}

Optionally used for the Sandbox directive. Not uing it but using the sandbox directive disallows everything that you could allow with the optional values.

Variants

DownloadsWithoutUserActivation

Allows for downloads to occur without a gesture from the user.

Forms

Allows the embedded browsing context to submit forms. If this keyword is not used, this operation is not allowed.

Modals

Allows the embedded browsing context to open modal windows.

OrientationLock

Allows the embedded browsing context to disable the ability to lock the screen orientation.

PointerLock

Allows the embedded browsing context to use the Pointer Lock API.

Popups

Allows popups (like from window.open, target="_blank", showModalDialog). If this keyword is not used, that functionality will silently fail.

PopupsToEscapeSandbox

Allows a sandboxed document to open new windows without forcing the sandboxing flags upon them. This will allow, for example, a third-party advertisement to be safely sandboxed without forcing the same restrictions upon a landing page.

Presentation

Allows embedders to have control over whether an iframe can start a presentation session.

SameOrigin

Allows the content to be treated as being from its normal origin. If this keyword is not used, the embedded content is treated as being from a unique origin.

Scripts

Allows the embedded browsing context to run scripts (but not create pop-up windows). If this keyword is not used, this operation is not allowed.

StorageAccessByUserActivation

Lets the resource request access to the parent's storage capabilities with the Storage Access API.

TopNavigation

Allows the embedded browsing context to navigate (load) content to the top-level browsing context. If this keyword is not used, this operation is not allowed.

TopNavigationByUserActivation

Lets the resource navigate the top-level browsing context, but only if initiated by a user gesture.

Trait Implementations

impl Clone for SandboxAllow[src]

impl Debug for SandboxAllow[src]

impl Display for SandboxAllow[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.