diff --git a/mobile/android/actors/GeckoViewContentChild.jsm b/mobile/android/actors/GeckoViewContentChild.jsm index 122ed013086c..f12b015f40af 100644 --- a/mobile/android/actors/GeckoViewContentChild.jsm +++ b/mobile/android/actors/GeckoViewContentChild.jsm @@ -159,7 +159,7 @@ class GeckoViewContentChild extends GeckoViewActorChild { const onResize = function() { gotResize = true; if (dwu.isMozAfterPaintPending) { - contentWindow.addEventListener( + contentWindow.windowRoot.addEventListener( "MozAfterPaint", () => zoomToFocusedInput(), { capture: true, once: true }