Click or drag to resize
Sandbox Enumeration
A sandboxing flag set is a set of zero or more of the following flags, which are used to restrict the abilities that potentially untrusted resources.

Namespace: Aspose.Html
Assembly: Aspose.HTML (in Aspose.HTML.dll) Version: 20.9
Syntax
[FlagsAttribute]
public enum Sandbox
Members
  Member nameValueDescription
None0 No flag is set, every sandbox feature is accepted
Navigation1 This flag prevents content from navigating browsing contexts other than the sandboxed browsing context itself (or browsing contexts further nested inside it), auxiliary browsing contexts (which are protected by the sandboxed auxiliary navigation browsing context flag defined next), and the top-level browsing context (which is protected by the sandboxed top-level navigation browsing context flag defined below). If the sandboxed auxiliary navigation browsing context flag is not set, then in certain cases the restrictions nonetheless allow popups (new top-level browsing contexts) to be opened. These browsing contexts always have one permitted sandboxed navigator, set when the browsing context is created, which allows the browsing context that created them to actually navigate them. (Otherwise, the sandboxed navigation browsing context flag would prevent them from being navigated even if they were opened.
AuxiliaryNavigation2 This flag prevents content from creating new auxiliary browsing contexts, e.g. using the target attribute, or the window.open() method.
TopLevelNavigation4 This flag prevents content from navigating their top-level browsing context and prevents content from closing their top-level browsing context. When the sandboxed top-level navigation browsing context flag is not set, content can navigate its top-level browsing context, but other browsing contexts are still protected by the sandboxed navigation browsing context flag and possibly the sandboxed auxiliary navigation browsing context flag.
Plugins8 This flag prevents content from instantiating plugins, whether using the embed element, the object element, the applet element, or through navigation of a nested browsing context, unless those plugins can be secured.
Origin16 This flag forces content into a unique origin, thus preventing it from accessing other content from the same origin.
Forms32 This flag blocks form submission.
PointerLock64 This flag disables the Pointer Lock API.
Scripts128 This flag blocks script execution.
AutomaticFeatures256 This flag blocks features that trigger automatically, such as automatically playing a video or automatically focusing a form control.
Fullscreen512 This flag prevents content from using the requestFullscreen() method.
DocumentDomain1024 This flag prevents content from using the document.domain feature to change the effective script origin.
Images2048 This flag disables image loading.
See Also