diff --git a/dom/ipc/TabChild.cpp b/dom/ipc/TabChild.cpp index 124f739b2008..972130763461 100644 --- a/dom/ipc/TabChild.cpp +++ b/dom/ipc/TabChild.cpp @@ -1768,9 +1768,8 @@ TabChild::NotifyAPZStateChange(const ViewID& aViewId, if (aChange == layers::GeckoContentController::APZStateChange::TransformEnd) { // This is used by tests to determine when the APZ is done doing whatever // it's doing. XXX generify this as needed when writing additional tests. - DispatchMessageManagerMessage( - NS_LITERAL_STRING("APZ:TransformEnd"), - NS_LITERAL_STRING("{}")); + nsCOMPtr observerService = mozilla::services::GetObserverService(); + observerService->NotifyObservers(nullptr, "APZ:TransformEnd", nullptr); } return true; } diff --git a/gfx/layers/apz/test/mochitest/helper_basic_pan.html b/gfx/layers/apz/test/mochitest/helper_basic_pan.html index 07b46ee2e86c..631bfc64e18c 100644 --- a/gfx/layers/apz/test/mochitest/helper_basic_pan.html +++ b/gfx/layers/apz/test/mochitest/helper_basic_pan.html @@ -10,10 +10,12 @@