mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-10 13:00:29 +03:00
LibWeb: Add handle
member in BrowsingContext
`handle` is uuid that is going to be used in WebDriver to identify browsing context.
This commit is contained in:
parent
e8550ed21d
commit
d87a207ca9
Notes:
sideshowbarker
2024-07-17 11:30:54 +09:00
Author: https://github.com/kalenikaliaksandr Commit: https://github.com/SerenityOS/serenity/commit/d87a207ca9 Pull-request: https://github.com/SerenityOS/serenity/pull/17855 Reviewed-by: https://github.com/linusg Reviewed-by: https://github.com/trflynn89 ✅
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user