mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 10:48:11 +00:00
LibWeb/HTML: Make Window::m{location,navigator} lazily allocated
This now matches the other window-owned objects, which already do this: m_crypto, m_performance, m_screen.
This commit is contained in:
parent
22552382ff
commit
4da68384e6
4 changed files with 22 additions and 14 deletions
|
@ -139,7 +139,7 @@ public:
|
|||
JS::NonnullGCPtr<DOM::Document const> document() const;
|
||||
String name() const;
|
||||
void set_name(String const&);
|
||||
JS::NonnullGCPtr<Location> location() const;
|
||||
WebIDL::ExceptionOr<JS::NonnullGCPtr<Location>> location();
|
||||
JS::NonnullGCPtr<History> history() const;
|
||||
void focus();
|
||||
|
||||
|
@ -150,7 +150,7 @@ public:
|
|||
JS::GCPtr<DOM::Element const> frame_element() const;
|
||||
WebIDL::ExceptionOr<JS::GCPtr<HTML::WindowProxy>> open(Optional<String> const& url, Optional<String> const& target, Optional<String> const& features);
|
||||
|
||||
JS::NonnullGCPtr<Navigator> navigator() const;
|
||||
WebIDL::ExceptionOr<JS::NonnullGCPtr<Navigator>> navigator();
|
||||
|
||||
void alert(String const& message = {});
|
||||
bool confirm(Optional<String> const& message);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue