mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 03:27:34 +00:00
Browser: Propagate autoplay settings to the WebContent process
This commit is contained in:
parent
65283d6879
commit
fed2606591
6 changed files with 62 additions and 1 deletions
|
@ -131,6 +131,8 @@ Tab::Tab(BrowserWindow& window)
|
|||
else
|
||||
m_web_content_view->set_content_filters({});
|
||||
|
||||
autoplay_allowlist_changed();
|
||||
|
||||
m_web_content_view->set_proxy_mappings(g_proxies, g_proxy_mappings);
|
||||
if (!g_webdriver_content_ipc_path.is_empty())
|
||||
enable_webdriver_mode();
|
||||
|
@ -661,6 +663,14 @@ void Tab::content_filters_changed()
|
|||
m_web_content_view->set_content_filters({});
|
||||
}
|
||||
|
||||
void Tab::autoplay_allowlist_changed()
|
||||
{
|
||||
if (g_autoplay_allowed_on_all_websites)
|
||||
m_web_content_view->set_autoplay_allowed_on_all_websites();
|
||||
else
|
||||
m_web_content_view->set_autoplay_allowlist(g_autoplay_allowlist);
|
||||
}
|
||||
|
||||
void Tab::proxy_mappings_changed()
|
||||
{
|
||||
m_web_content_view->set_proxy_mappings(g_proxies, g_proxy_mappings);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue