mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 13:49:16 +00:00
LibWeb: Implement Navigator.mediaCapabilities
This is enough to stop Crunchyroll showing an unsupported browser modal :^)
This commit is contained in:
parent
4c5a176354
commit
f08946bcd2
Notes:
github-actions[bot]
2024-09-05 13:53:31 +00:00
Author: https://github.com/jamierocks
Commit: f08946bcd2
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1283
Reviewed-by: https://github.com/tcl3 ✅
3 changed files with 19 additions and 0 deletions
|
@ -15,6 +15,7 @@
|
|||
#include <LibWeb/HTML/NavigatorOnLine.h>
|
||||
#include <LibWeb/HTML/PluginArray.h>
|
||||
#include <LibWeb/HTML/UserActivation.h>
|
||||
#include <LibWeb/MediaCapabilitiesAPI/MediaCapabilities.h>
|
||||
#include <LibWeb/StorageAPI/NavigatorStorage.h>
|
||||
|
||||
namespace Web::HTML {
|
||||
|
@ -56,6 +57,8 @@ public:
|
|||
|
||||
JS::NonnullGCPtr<ServiceWorkerContainer> service_worker();
|
||||
|
||||
JS::NonnullGCPtr<MediaCapabilitiesAPI::MediaCapabilities> media_capabilities();
|
||||
|
||||
static WebIDL::Long max_touch_points();
|
||||
|
||||
virtual ~Navigator() override;
|
||||
|
@ -82,6 +85,9 @@ private:
|
|||
|
||||
// https://w3c.github.io/ServiceWorker/#navigator-serviceworker
|
||||
JS::GCPtr<ServiceWorkerContainer> m_service_worker_container;
|
||||
|
||||
// https://w3c.github.io/media-capabilities/#dom-navigator-mediacapabilities
|
||||
JS::GCPtr<MediaCapabilitiesAPI::MediaCapabilities> m_media_capabilities;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue