class ExecuteJavaScript
Defined at line 772 of file fidling/gen/sdk/fidl/fuchsia.web/fuchsia.web/cpp/fidl/fuchsia.web/cpp/markers.h
Executes a UTF-8 encoded `script` in the [`Frame`] if the [`Frame`]'s URL has an origin
which matches entries in `origins`.
At least one `origins` entry must be specified. If a wildcard `"*"` is specified in
`origins`, then the script will be evaluated unconditionally.
Returns the result of executing `script`, as a JSON-encoded string.
Note that scripts share the same execution context as the document,
meaning that document may modify variables, classes, or objects set by
the script in arbitrary or unpredictable ways.
If an error occurred, the FrameError will be set to one of these values:
- `BUFFER_NOT_UTF8`: `script` is not UTF-8 encoded.
- `INVALID_ORIGIN`: The [`Frame`]'s current URL does not match any of the values in
`origins` or `origins` is an empty vector.
Public Members
static const bool kHasClientToServer
static const bool kHasClientToServerBody
static const bool kHasServerToClient
static const bool kHasServerToClientBody
static const bool kHasNonEmptyUserFacingResponse
static const bool kHasDomainError
static const bool kHasFrameworkError
static const uint64_t kOrdinal