mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 04:09:13 +00:00
LibWeb+WebDriver: Convert WebDriver session flags to an enumeration
Rather than a list of strings, this will be easier to deal with as a bitwise enumeration.
This commit is contained in:
parent
d95be7d88c
commit
de34351ba8
Notes:
github-actions[bot]
2025-02-10 16:35:17 +00:00
Author: https://github.com/trflynn89
Commit: de34351ba8
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3497
5 changed files with 20 additions and 13 deletions
|
@ -54,7 +54,7 @@ Web::WebDriver::Response Client::new_session(Web::WebDriver::Parameters, JsonVal
|
|||
// commands may be forwarded to this associated session on subsequent commands.
|
||||
|
||||
// 3. Let flags be a set containing "http".
|
||||
static constexpr Array flags { "http"sv };
|
||||
static constexpr auto flags = Web::WebDriver::SessionFlags::Http;
|
||||
|
||||
// 4. Let capabilities be the result of trying to process capabilities with parameters and flags.
|
||||
auto capabilities = TRY(Web::WebDriver::process_capabilities(payload, flags));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue