| Index: services/ui/ws/test_utils.cc
|
| diff --git a/services/ui/ws/test_utils.cc b/services/ui/ws/test_utils.cc
|
| index 5d87a75389fd6d894288ef6ea05d9b7b8ccc88de..acfbae9c4c9fdbf8e71371c3e6a6f7eb7188df8b 100644
|
| --- a/services/ui/ws/test_utils.cc
|
| +++ b/services/ui/ws/test_utils.cc
|
| @@ -525,6 +525,8 @@ ServerWindow* WindowEventTargetingHelper::CreatePrimaryTree(
|
| const uint32_t embed_flags = 0;
|
| wm_tree->Embed(embed_window_id, std::move(client), embed_flags);
|
| ServerWindow* embed_window = wm_tree->GetWindowByClientId(embed_window_id);
|
| + embed_window->set_event_targeting_policy(
|
| + mojom::EventTargetingPolicy::DESCENDANTS_ONLY);
|
| WindowTree* tree1 = window_server()->GetTreeWithRoot(embed_window);
|
| EXPECT_NE(nullptr, tree1);
|
| EXPECT_NE(tree1, wm_tree);
|
| @@ -554,7 +556,6 @@ void WindowEventTargetingHelper::CreateSecondaryTree(
|
|
|
| child1->SetVisible(true);
|
| child1->SetBounds(window_bounds);
|
| - EnableHitTest(child1);
|
|
|
| TestWindowTreeClient* embed_client =
|
| ws_test_helper_.window_server_delegate()->last_client();
|
|
|