mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-28 02:27:19 +02:00
LibWeb+WebDriver: Support running headless WebDriver sessions
This adds an "extension capability" for clients to indicate that a headless browser should be used for the session.
This commit is contained in:
committed by
Linus Groh
parent
e840d27d8e
commit
7edd57dc87
Notes:
sideshowbarker
2024-07-17 09:41:18 +09:00
Author: https://github.com/trflynn89 Commit: https://github.com/SerenityOS/serenity/commit/7edd57dc87 Pull-request: https://github.com/SerenityOS/serenity/pull/16145 Reviewed-by: https://github.com/linusg
@@ -54,6 +54,12 @@ constexpr UnhandledPromptBehavior unhandled_prompt_behavior_from_string(StringVi
|
||||
VERIFY_NOT_REACHED();
|
||||
}
|
||||
|
||||
struct LadybirdOptions {
|
||||
explicit LadybirdOptions(JsonObject const& capabilities);
|
||||
|
||||
bool headless { false };
|
||||
};
|
||||
|
||||
Response process_capabilities(JsonValue const& parameters);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user