mirror of
https://github.com/servo/servo.git
synced 2025-09-27 23:30:08 +01:00
webdriver: Raise WebView
to top when focus (#38909)
- Add a helper function `focus_and_raise_to_top` to `WebView`. - For webdriver, raise webview to top when focus, to make it consistent with user interaction. Testing: Should reduce some flaky TIMEOUT when combined with another PR later. Fixes: A small patch before the PR for #38906. --------- Signed-off-by: Euclid Ye <euclid.ye@huawei.com>
This commit is contained in:
parent
01a9b317d4
commit
8683f97fcc
6 changed files with 14 additions and 16 deletions
|
@ -2482,7 +2482,7 @@ impl Handler {
|
|||
let (sender, receiver) = ipc::channel().unwrap();
|
||||
self.send_message_to_embedder(WebDriverCommandMsg::FocusWebView(webview_id, sender))?;
|
||||
if wait_for_ipc_response(receiver)? {
|
||||
debug!("Focus new webview successfully");
|
||||
debug!("Focus new webview {webview_id} successfully");
|
||||
} else {
|
||||
debug!("Focus new webview failed, it may not exist anymore");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue