mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 13:07:46 +00:00
LibWeb/HTML: Port Window.navigator to IDL
This commit is contained in:
parent
c219e6d9c1
commit
eb2425040b
3 changed files with 14 additions and 11 deletions
|
@ -140,6 +140,8 @@ public:
|
|||
Vector<JS::NonnullGCPtr<MimeType>> pdf_viewer_mime_type_objects();
|
||||
|
||||
// JS API functions
|
||||
JS::NonnullGCPtr<Navigator> navigator() const;
|
||||
|
||||
void alert(String const& message = {});
|
||||
bool confirm(Optional<String> const& message);
|
||||
Optional<String> prompt(Optional<String> const& message, Optional<String> const& default_);
|
||||
|
@ -288,8 +290,6 @@ private:
|
|||
|
||||
JS_DECLARE_NATIVE_FUNCTION(crypto_getter);
|
||||
|
||||
JS_DECLARE_NATIVE_FUNCTION(navigator_getter);
|
||||
|
||||
HTML::Location* m_location { nullptr };
|
||||
|
||||
// [[CrossOriginPropertyDescriptorMap]], https://html.spec.whatwg.org/multipage/browsers.html#crossoriginpropertydescriptormap
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue