class PostMessage

Defined at line 870 of file fidling/gen/sdk/fidl/fuchsia.web/fuchsia.web/cpp/fidl/fuchsia.web/cpp/markers.h

Posts a message to the frame's onMessage handler.

`target_origin` restricts message delivery to the specified origin. If `target_origin` is

`"*"`, then the message will be sent to the document regardless of its origin.

See the

[HTML spec](https://html.spec.whatwg.org/multipage/web-messaging.html#posting-messages)

section 9.4.3 for more details on how the target origin policy is applied.

If an error occurred, the [`FrameError`] will be set to one of these values:

- `INTERNAL_ERROR`: The WebEngine failed to create a message pipe.

- `BUFFER_NOT_UTF8`: The script in `message`'s `data` property is not UTF-8 encoded.

- `INVALID_ORIGIN`: `origins` is an empty vector.

- `NO_DATA_IN_MESSAGE`: The `data` property is missing in `message`.

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