mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-26 11:20:03 +00:00
LibWeb: Do not reject unknown WebDriver extension capabilities
This commit is contained in:
@@ -174,9 +174,12 @@ static ErrorOr<JsonObject, Error> validate_capabilities(JsonValue const& capabil
|
|||||||
}
|
}
|
||||||
|
|
||||||
// -> name is the key of an extension capability
|
// -> name is the key of an extension capability
|
||||||
// If name is known to the implementation, let deserialized be the result of trying to deserialize value in an implementation-specific way. Otherwise, let deserialized be set to value.
|
else if (name.contains(':')) {
|
||||||
else if (name == "serenity:ladybird"sv) {
|
// If name is known to the implementation, let deserialized be the result of trying to deserialize value in
|
||||||
deserialized = TRY(deserialize_as_ladybird_options(value));
|
// an implementation-specific way. Otherwise, let deserialized be set to value.
|
||||||
|
if (name == "serenity:ladybird"sv) {
|
||||||
|
deserialized = TRY(deserialize_as_ladybird_options(value));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// -> The remote end is an endpoint node
|
// -> The remote end is an endpoint node
|
||||||
|
|||||||
Reference in New Issue
Block a user