mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
[fuchsia][scenic] Fix invalid viewRef error in pointer injection. (flutter/engine#36850)
This CL fixes the bug in pointer injector delegate where the viewRef is incorrectly cloned in the flatland platform view, causing an invalid viewRef to be passed in the Fidl request. Test: flutter-embedder-test
This commit is contained in:
parent
a978991262
commit
19b7b0eb02
@ -154,10 +154,11 @@ void FlatlandPlatformView::OnChildViewViewRef(
|
||||
fuchsia::ui::views::ViewRef view_ref) {
|
||||
FML_CHECK(child_view_info_.count(content_id) == 1);
|
||||
|
||||
focus_delegate_->OnChildViewViewRef(view_id, std::move(view_ref));
|
||||
|
||||
fuchsia::ui::views::ViewRef view_ref_clone;
|
||||
fidl::Clone(view_ref, &view_ref_clone);
|
||||
|
||||
focus_delegate_->OnChildViewViewRef(view_id, std::move(view_ref));
|
||||
|
||||
pointer_injector_delegate_->OnCreateView(view_id, std::move(view_ref_clone));
|
||||
OnChildViewConnected(content_id);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user