diff options
author | Timothy Flynn <trflynn89@pm.me> | 2023-04-17 13:21:19 -0400 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2023-04-18 16:30:02 +0200 |
commit | 7966fc4780d3e5e40b397098d4214d37a2d0b01f (patch) | |
tree | 0711d3e3ad805fcb0a1af74dabcf0be82cf6300d /Userland/Services/WebContent/WebContentServer.ipc | |
parent | 6131e621d643caffe3837560eeca31712a3a2a47 (diff) | |
download | serenity-7966fc4780d3e5e40b397098d4214d37a2d0b01f.zip |
LibWeb+LibWebView+WebContent: Add APIs to manage an autoplay allowlist
The spec defines a Permissions Policy to control some browser behaviors
on a per-origin basis. Management of these permissions live in their own
spec: https://w3c.github.io/webappsec-permissions-policy/
This implements a somewhat ad-hoc Permissions Policy for autoplaying
media elements. We will need to implement the entire policy spec for
this to be more general.
Diffstat (limited to 'Userland/Services/WebContent/WebContentServer.ipc')
-rw-r--r-- | Userland/Services/WebContent/WebContentServer.ipc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Userland/Services/WebContent/WebContentServer.ipc b/Userland/Services/WebContent/WebContentServer.ipc index a6b534b973..31db29d292 100644 --- a/Userland/Services/WebContent/WebContentServer.ipc +++ b/Userland/Services/WebContent/WebContentServer.ipc @@ -55,6 +55,8 @@ endpoint WebContentServer select_all() =| set_content_filters(Vector<DeprecatedString> filters) =| + set_autoplay_allowed_on_all_websites() =| + set_autoplay_allowlist(Vector<String> allowlist) =| set_proxy_mappings(Vector<DeprecatedString> proxies, HashMap<DeprecatedString,size_t> mappings) =| set_preferred_color_scheme(Web::CSS::PreferredColorScheme color_scheme) =| set_has_focus(bool has_focus) =| |