diff options
author | Timothy Flynn <trflynn89@pm.me> | 2023-02-02 07:08:28 -0500 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2023-02-02 12:21:44 +0000 |
commit | 792258afe8b7ab0343f8b53c826ccd1b6fb60998 (patch) | |
tree | 5350234fddc541729fefbaf1836c984c8acb58bc /Userland/Libraries | |
parent | 9347db6f91bfb92a6ae306f1099bce616f00101c (diff) | |
download | serenity-792258afe8b7ab0343f8b53c826ccd1b6fb60998.zip |
LibWeb: Restore handling of the serenity:ladybird/headless capability
This was refactored a bit incorrectly in d8fde14.
Diffstat (limited to 'Userland/Libraries')
-rw-r--r-- | Userland/Libraries/LibWeb/WebDriver/Capabilities.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/WebDriver/Capabilities.cpp b/Userland/Libraries/LibWeb/WebDriver/Capabilities.cpp index e5e96c42ba..a1440565e8 100644 --- a/Userland/Libraries/LibWeb/WebDriver/Capabilities.cpp +++ b/Userland/Libraries/LibWeb/WebDriver/Capabilities.cpp @@ -52,7 +52,7 @@ static Response deserialize_as_ladybird_options(JsonValue value) auto const& object = value.as_object(); - if (auto headless = object.get_bool("headless"sv); headless.has_value()) + if (auto headless = object.get("headless"sv); headless.has_value() && !headless->is_bool()) return Error::from_code(ErrorCode::InvalidArgument, "Extension capability serenity:ladybird/headless must be a boolean"sv); return value; |