summaryrefslogtreecommitdiff
path: root/lib/ephy-permissions-manager.c
diff options
context:
space:
mode:
authorCharlie Turner <cturner@igalia.com>2020-06-29 15:33:39 +0100
committerCharlie Turner <cturner@igalia.com>2020-06-29 16:59:46 +0100
commitd048aafb8be90b5e8a9622aa5c2c42bd8a76d7b2 (patch)
tree696b1eaea0ac404d2b77d06cfa3123ed4de9a2e5 /lib/ephy-permissions-manager.c
parentf87996ef2cf973a091424bd72897ec0826760ff8 (diff)
downloadepiphany-d048aafb8be90b5e8a9622aa5c2c42bd8a76d7b2.tar.gz
Allow per-site autoplay policies.
Denying autoplay can break websites that use it for stylistic effects. On the other hand, it can be increadibly annoying to be spammed with videos autoplaying. By default, videos can autoplay so long as they have no audio (or the audio is muted). Alternatively, users can allow all videos to autoplay even with audio, or to deny all attempts to autoplay video. Users can make these decisions using the security pop-over on a per security-origin basis.
Diffstat (limited to 'lib/ephy-permissions-manager.c')
-rw-r--r--lib/ephy-permissions-manager.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/ephy-permissions-manager.c b/lib/ephy-permissions-manager.c
index 45395c5ff..4079c759e 100644
--- a/lib/ephy-permissions-manager.c
+++ b/lib/ephy-permissions-manager.c
@@ -167,6 +167,8 @@ permission_type_to_string (EphyPermissionType type)
return "video-device-permission";
case EPHY_PERMISSION_TYPE_SHOW_ADS:
return "advertisement-permission";
+ case EPHY_PERMISSION_TYPE_AUTOPLAY_POLICY:
+ return "autoplay-permission";
default:
g_assert_not_reached ();
}