mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 04:17:34 +00:00
LibWeb: Add the 'is popup' BrowsingContext property
This will also be used by the window.open algorithm steps.
This commit is contained in:
parent
efe94d9040
commit
b27f855107
1 changed files with 5 additions and 0 deletions
|
@ -241,6 +241,8 @@ public:
|
||||||
VisibilityState system_visibility_state() const;
|
VisibilityState system_visibility_state() const;
|
||||||
void set_system_visibility_state(VisibilityState);
|
void set_system_visibility_state(VisibilityState);
|
||||||
|
|
||||||
|
void set_is_popup(bool is_popup) { m_is_popup = is_popup; }
|
||||||
|
|
||||||
// https://html.spec.whatwg.org/multipage/window-object.html#a-browsing-context-is-discarded
|
// https://html.spec.whatwg.org/multipage/window-object.html#a-browsing-context-is-discarded
|
||||||
void discard();
|
void discard();
|
||||||
bool has_been_discarded() const { return m_has_been_discarded; }
|
bool has_been_discarded() const { return m_has_been_discarded; }
|
||||||
|
@ -298,6 +300,9 @@ private:
|
||||||
// https://html.spec.whatwg.org/multipage/browsers.html#tlbc-group
|
// https://html.spec.whatwg.org/multipage/browsers.html#tlbc-group
|
||||||
JS::GCPtr<BrowsingContextGroup> m_group;
|
JS::GCPtr<BrowsingContextGroup> m_group;
|
||||||
|
|
||||||
|
// https://html.spec.whatwg.org/multipage/browsers.html#is-popup
|
||||||
|
bool m_is_popup { false };
|
||||||
|
|
||||||
// https://html.spec.whatwg.org/multipage/interaction.html#system-visibility-state
|
// https://html.spec.whatwg.org/multipage/interaction.html#system-visibility-state
|
||||||
VisibilityState m_system_visibility_state { VisibilityState::Hidden };
|
VisibilityState m_system_visibility_state { VisibilityState::Hidden };
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue