From e0d96163c74c80d906d503334db4e383f3c4f9e9 Mon Sep 17 00:00:00 2001 From: batu_hoang <55729155+longvatrong111@users.noreply.github.com> Date: Wed, 4 Jun 2025 14:39:31 +0800 Subject: [PATCH] Fix events filter in wait_for_user_agent_handling_complete (#37241) Fix a mistake from https://github.com/servo/servo/pull/37095 cc: @xiaochengh Signed-off-by: batu_hoang --- components/webdriver_server/actions.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/webdriver_server/actions.rs b/components/webdriver_server/actions.rs index 0afd113956f..b84cbb4c2f8 100644 --- a/components/webdriver_server/actions.rs +++ b/components/webdriver_server/actions.rs @@ -161,7 +161,7 @@ impl Handler { let count_non_null_actions_in_tick = tick_actions .iter() .filter(|(_, action)| { - !matches!(action, ActionItem::Pointer(PointerActionItem::Pointer(_))) + matches!(action, ActionItem::Pointer(PointerActionItem::Pointer(_))) }) .count();