Emilio Cobos Álvarez 40295335a1 Bug 1923546 - Fix MockDragServiceController on macOS after bug 1922956. r=handyman
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
2024-10-10 16:50:03 +00:00
..