public static enum BrowserFrame.Sandbox extends java.lang.Enum<BrowserFrame.Sandbox>
Enum Constant and Description |
---|
ALLOW_DOWNLOADS_WITHOUT_USER_ACTIVATION
Allows for downloads to occur without a gesture from the user.
|
ALLOW_FORMS
Allows the resource to submit forms.
|
ALLOW_MODALS
Lets the resource open modal windows.
|
ALLOW_ORIENTATION_LOCK
Lets the resource lock the screen orientation.
|
ALLOW_POINTER_LOCK
Lets the resource use the Pointer Lock API.
|
ALLOW_POPUPS
Allows popups (such as window.open(), target="_blank", or showModalDialog()).
|
ALLOW_POPUPS_TO_ESCAPE_SANDBOX
Lets the sandboxed document open new windows without those windows inheriting the sandboxing.
|
ALLOW_PRESENTATION
Lets the resource start a presentation session.
|
ALLOW_SAME_ORIGIN
Allows the iframe content to be treated as being from the same origin.
|
ALLOW_SCRIPTS
Lets the resource run scripts.
|
ALLOW_STORAGE_ACCESS_BY_USER_ACTIVATION
Lets the resource request access to the parent's storage capabilities with the Storage Access API.
|
ALLOW_TOP_NAVIGATION
Lets the resource navigate the top-level browsing context (the one named _top).
|
ALLOW_TOP_NAVIGATION_BY_USER_ACTIVATION
Lets the resource navigate the top-level browsing context, but only if initiated by a user gesture.
|
DENY_ALL
Applies all restrictions.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getValue() |
static BrowserFrame.Sandbox |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static BrowserFrame.Sandbox[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BrowserFrame.Sandbox ALLOW_FORMS
public static final BrowserFrame.Sandbox ALLOW_MODALS
public static final BrowserFrame.Sandbox ALLOW_ORIENTATION_LOCK
public static final BrowserFrame.Sandbox ALLOW_POINTER_LOCK
public static final BrowserFrame.Sandbox ALLOW_POPUPS
public static final BrowserFrame.Sandbox ALLOW_POPUPS_TO_ESCAPE_SANDBOX
public static final BrowserFrame.Sandbox ALLOW_PRESENTATION
public static final BrowserFrame.Sandbox ALLOW_SAME_ORIGIN
public static final BrowserFrame.Sandbox ALLOW_SCRIPTS
public static final BrowserFrame.Sandbox ALLOW_STORAGE_ACCESS_BY_USER_ACTIVATION
public static final BrowserFrame.Sandbox ALLOW_TOP_NAVIGATION
public static final BrowserFrame.Sandbox ALLOW_TOP_NAVIGATION_BY_USER_ACTIVATION
public static final BrowserFrame.Sandbox ALLOW_DOWNLOADS_WITHOUT_USER_ACTIVATION
public static final BrowserFrame.Sandbox DENY_ALL
public static BrowserFrame.Sandbox[] values()
for (BrowserFrame.Sandbox c : BrowserFrame.Sandbox.values()) System.out.println(c);
public static BrowserFrame.Sandbox valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String getValue()