diff options
author | Aliaksandr Kalenik <kalenik.aliaksandr@gmail.com> | 2023-03-13 16:49:07 +0300 |
---|---|---|
committer | Tim Flynn <trflynn89@pm.me> | 2023-03-16 13:17:37 -0400 |
commit | d87a207ca90725e26a3e410a80280786226fbec3 (patch) | |
tree | 02a066bb604240dcc30794ba3fa3bb331037d4ef | |
parent | e8550ed21dd108888bb32d9206f51d577fd022bc (diff) | |
download | serenity-d87a207ca90725e26a3e410a80280786226fbec3.zip |
LibWeb: Add `handle` member in BrowsingContext
`handle` is uuid that is going to be used in WebDriver to identify
browsing context.
-rw-r--r-- | Userland/Libraries/LibWeb/HTML/BrowsingContext.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/HTML/BrowsingContext.h b/Userland/Libraries/LibWeb/HTML/BrowsingContext.h index a8faa334de..bdb6fe725f 100644 --- a/Userland/Libraries/LibWeb/HTML/BrowsingContext.h +++ b/Userland/Libraries/LibWeb/HTML/BrowsingContext.h @@ -267,6 +267,8 @@ public: Optional<AK::URL> const& creator_url() const { return m_creator_url; } + String const& window_handle() const { return m_window_handle; } + private: explicit BrowsingContext(Page&, HTML::BrowsingContextContainer*); @@ -302,6 +304,9 @@ private: CSSPixelSize m_size; CSSPixelPoint m_viewport_scroll_offset; + // https://w3c.github.io/webdriver/#dfn-window-handles + String m_window_handle; + // https://html.spec.whatwg.org/multipage/browsers.html#browsing-context JS::GCPtr<HTML::WindowProxy> m_window_proxy; |