mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-08 09:09:43 +00:00
WebDriver: Actually create a UUID for session_id
This commit is contained in:
parent
ed83bb75e9
commit
57f776fcb7
Notes:
github-actions[bot]
2025-01-03 21:16:49 +00:00
Author: https://github.com/F3n67u
Commit: 57f776fcb7
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3123
4 changed files with 13 additions and 19 deletions
|
@ -30,7 +30,7 @@ public:
|
|||
static ErrorOr<NonnullRefPtr<Client>> try_create(NonnullOwnPtr<Core::BufferedTCPSocket>, LaunchBrowserCallbacks, Core::EventReceiver* parent);
|
||||
virtual ~Client() override;
|
||||
|
||||
void close_session(unsigned session_id);
|
||||
void close_session(String const& session_id);
|
||||
|
||||
private:
|
||||
Client(NonnullOwnPtr<Core::BufferedTCPSocket>, LaunchBrowserCallbacks, Core::EventReceiver* parent);
|
||||
|
@ -104,8 +104,7 @@ private:
|
|||
virtual Web::WebDriver::Response take_element_screenshot(Web::WebDriver::Parameters parameters, JsonValue payload) override;
|
||||
virtual Web::WebDriver::Response print_page(Web::WebDriver::Parameters parameters, JsonValue payload) override;
|
||||
|
||||
static HashMap<unsigned, NonnullRefPtr<Session>> s_sessions;
|
||||
static Atomic<unsigned> s_next_session_id;
|
||||
static HashMap<String, NonnullRefPtr<Session>> s_sessions;
|
||||
|
||||
LaunchBrowserCallbacks m_callbacks;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue