mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-12 04:22:28 +00:00
WebContent+WebDriver: Update the current BC when switching windows
We had only implemented this step in the WebDriver process, but we need to update the remote WebContent process as well.
This commit is contained in:
parent
4a6d0e0f90
commit
5fc51b2ff9
Notes:
github-actions[bot]
2024-09-14 23:57:32 +00:00
Author: https://github.com/trflynn89
Commit: 5fc51b2ff9
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1403
Reviewed-by: https://github.com/tcl3 ✅
4 changed files with 23 additions and 4 deletions
|
@ -148,7 +148,7 @@ Web::WebDriver::Response Session::switch_to_window(StringView handle)
|
|||
|
||||
// 5. Update any implementation-specific state that would result from the user selecting the current
|
||||
// browsing context for interaction, without altering OS-level focus.
|
||||
TRY(web_content_connection().switch_to_window());
|
||||
TRY(web_content_connection().switch_to_window(m_current_window_handle));
|
||||
|
||||
// 6. Return success with data null.
|
||||
return JsonValue {};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue