mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-02 01:08:48 +00:00
LibWeb: Do not reject unknown WebDriver extension capabilities
This commit is contained in:
parent
3128d87766
commit
e0ecf3b033
Notes:
github-actions[bot]
2025-02-10 16:35:04 +00:00
Author: https://github.com/trflynn89
Commit: e0ecf3b033
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3497
1 changed files with 6 additions and 3 deletions
|
@ -174,9 +174,12 @@ static ErrorOr<JsonObject, Error> validate_capabilities(JsonValue const& capabil
|
|||
}
|
||||
|
||||
// -> 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 == "serenity:ladybird"sv) {
|
||||
deserialized = TRY(deserialize_as_ladybird_options(value));
|
||||
else if (name.contains(':')) {
|
||||
// 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.
|
||||
if (name == "serenity:ladybird"sv) {
|
||||
deserialized = TRY(deserialize_as_ladybird_options(value));
|
||||
}
|
||||
}
|
||||
|
||||
// -> The remote end is an endpoint node
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue