mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 04:39:06 +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
|
@ -8,6 +8,7 @@
|
|||
#import <HTML/PluginArray.idl>
|
||||
#import <HTML/ServiceWorkerContainer.idl>
|
||||
#import <HTML/UserActivation.idl>
|
||||
#import <MediaCapabilitiesAPI/MediaCapabilities.idl>
|
||||
#import <StorageAPI/NavigatorStorage.idl>
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/system-state.html#navigator
|
||||
|
@ -29,6 +30,9 @@ interface Navigator {
|
|||
|
||||
// https://w3c.github.io/ServiceWorker/#navigator-serviceworker
|
||||
[SecureContext, SameObject] readonly attribute ServiceWorkerContainer serviceWorker;
|
||||
|
||||
// https://w3c.github.io/media-capabilities/#dom-navigator-mediacapabilities
|
||||
[SameObject] readonly attribute MediaCapabilities mediaCapabilities;
|
||||
};
|
||||
|
||||
// NOTE: As NavigatorContentUtils, NavigatorCookies, NavigatorPlugins, and NavigatorAutomationInformation
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue