Enum Sandboxes
- Namespace
- AngleSharp.Browser
- Assembly
- AngleSharp.dll
Setting used to restrict the abilities that potentially untrusted resources have.
[Flags]
public enum Sandboxes : ushort
- Extension Methods
Fields
AutomaticFeatures = 256
This flag blocks features that trigger automatically, such as automatically playing a video or automatically focusing a form control.
This flag prevents content from creating new auxiliary browsing contexts, e.g. using the target attribute, or the window.open() method.
DocumentDomain = 1024
This flag prevents content from using the document.domain feature to change the effective script origin.
Forms = 32
This flag blocks form submission.
Fullscreen = 512
This flag prevents content from using the requestFullscreen() method.
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).
None = 0
No flag is set, everything is accepted.
Origin = 16
This flag forces content into a unique origin, thus preventing it from accessing other content from the same origin.
Plugins = 8
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.
PointerLock = 64
This flag disables the Pointer Lock API.
Presentation = 2048
This flag allows the sandboxed content to run presentational content.
Scripts = 128
This flag blocks script execution.
This flag prevents content from navigating their top-level browsing context and prevents content from closing their top-level browsing context.