mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-01 13:57:32 +00:00

Bug 1922956 made it so that nsChildView::GetTopLevelWidget() properly returned the top level nsCocoaWindow. However that meant that MockDragServiceController::SendEvent started sending events through the wrong widget (because the nsChildView is the thing that has the APZ state and such). However the fix is trivial. Use GetWidgetForContent in order to determine which widget to fire the event to, restoring the previous behavior and fixing the tests. Differential Revision: https://phabricator.services.mozilla.com/D225198