LibWeb: Implement requestFullscreen algorithm

The required functionality to exit fullscreen will be in a followup
commit.
This commit is contained in:
Simon Farre
2025-03-31 19:38:15 +02:00
committed by Luke Wilde
parent 44e0735d9b
commit bc17805b2b
Notes: github-actions[bot] 2026-02-23 18:46:42 +00:00
16 changed files with 345 additions and 9 deletions

View File

@@ -43,6 +43,9 @@ public:
virtual void visit_edges(Cell::Visitor&) override;
void set_iframe_fullscreen_flag(bool iframe_fullscreen_flag) { m_iframe_fullscreen_flag = iframe_fullscreen_flag; }
bool iframe_fullscreen_flag() const { return m_iframe_fullscreen_flag; }
private:
HTMLIFrameElement(DOM::Document&, DOM::QualifiedName);
@@ -68,6 +71,9 @@ private:
// https://html.spec.whatwg.org/multipage/iframe-embed-object.html#current-navigation-was-lazy-loaded
bool m_current_navigation_was_lazy_loaded { false };
// https://fullscreen.spec.whatwg.org/#iframe-fullscreen-flag
bool m_iframe_fullscreen_flag { false };
// https://html.spec.whatwg.org/multipage/iframe-embed-object.html#iframe-pending-resource-timing-start-time
Optional<HighResolutionTime::DOMHighResTimeStamp> m_pending_resource_start_time = {};