1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 22:17:45 +00:00

LibWeb/HTML: Port Window.navigator to IDL

This commit is contained in:
Linus Groh 2023-03-05 17:55:03 +00:00
parent c219e6d9c1
commit eb2425040b
3 changed files with 14 additions and 11 deletions

View file

@ -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