mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 05:09:12 +00:00
LibWeb: Implement NavigatorStorage mixin interface
Co-authored-by: Tim Flynn <trflynn89@serenityos.org>
This commit is contained in:
parent
1b84062c74
commit
e3b3041a0c
Notes:
github-actions[bot]
2024-08-16 15:23:10 +00:00
Author: https://github.com/jamierocks
Commit: e3b3041a0c
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1066
Reviewed-by: https://github.com/AtkinsSJ
Reviewed-by: https://github.com/trflynn89 ✅
12 changed files with 93 additions and 3 deletions
|
@ -15,6 +15,7 @@
|
|||
#include <LibWeb/HTML/NavigatorOnLine.h>
|
||||
#include <LibWeb/HTML/PluginArray.h>
|
||||
#include <LibWeb/HTML/UserActivation.h>
|
||||
#include <LibWeb/StorageAPI/NavigatorStorage.h>
|
||||
|
||||
namespace Web::HTML {
|
||||
|
||||
|
@ -23,7 +24,8 @@ class Navigator : public Bindings::PlatformObject
|
|||
, public NavigatorConcurrentHardwareMixin
|
||||
, public NavigatorIDMixin
|
||||
, public NavigatorLanguageMixin
|
||||
, public NavigatorOnLineMixin {
|
||||
, public NavigatorOnLineMixin
|
||||
, public StorageAPI::NavigatorStorage {
|
||||
WEB_PLATFORM_OBJECT(Navigator, Bindings::PlatformObject);
|
||||
JS_DECLARE_ALLOCATOR(Navigator);
|
||||
|
||||
|
@ -64,6 +66,9 @@ private:
|
|||
|
||||
virtual void initialize(JS::Realm&) override;
|
||||
|
||||
// ^StorageAPI::NavigatorStorage
|
||||
virtual Bindings::PlatformObject const& this_navigator_storage_object() const override { return *this; }
|
||||
|
||||
JS::GCPtr<PluginArray> m_plugin_array;
|
||||
JS::GCPtr<MimeTypeArray> m_mime_type_array;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue