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:
Timothy Flynn
2025-02-07 11:09:28 -05:00
committed by Tim Flynn
parent d95be7d88c
commit de34351ba8
5 changed files with 20 additions and 13 deletions

View File

@@ -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));