mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-02 22:30:31 +00:00
LibWebView+WebContent+UI: Migrate to the new autoplay settings
This removes the old autoplay allowlist file in favor of the new site setting. We still support the command-line flag to enable autoplay globally, as this is needed for WPT.
This commit is contained in:
parent
223b04f087
commit
ed265b568d
Notes:
github-actions[bot]
2025-03-30 15:20:08 +00:00
Author: https://github.com/trflynn89
Commit: ed265b568d
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4146
Reviewed-by: https://github.com/tcl3 ✅
20 changed files with 17 additions and 137 deletions
|
@ -28,11 +28,12 @@
|
|||
#include <LibWebView/DOMNodeProperties.h>
|
||||
#include <LibWebView/Forward.h>
|
||||
#include <LibWebView/PageInfo.h>
|
||||
#include <LibWebView/Settings.h>
|
||||
#include <LibWebView/WebContentClient.h>
|
||||
|
||||
namespace WebView {
|
||||
|
||||
class ViewImplementation {
|
||||
class ViewImplementation : public SettingsObserver {
|
||||
public:
|
||||
virtual ~ViewImplementation();
|
||||
|
||||
|
@ -83,8 +84,6 @@ public:
|
|||
|
||||
void set_enable_do_not_track(bool);
|
||||
|
||||
void set_enable_autoplay(bool);
|
||||
|
||||
ByteString selected_text();
|
||||
Optional<String> selected_text_with_whitespace_collapsed();
|
||||
void select_all();
|
||||
|
@ -265,6 +264,8 @@ protected:
|
|||
};
|
||||
void handle_web_content_process_crash(LoadErrorPage = LoadErrorPage::Yes);
|
||||
|
||||
virtual void autoplay_settings_changed() override;
|
||||
|
||||
struct SharedBitmap {
|
||||
i32 id { -1 };
|
||||
Web::DevicePixelSize last_painted_size;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue