Bug 1667497 - Listen for MozAfterPaint on windowRoot. r=owlish

Differential Revision: https://phabricator.services.mozilla.com/D93027
This commit is contained in:
Agi Sferro 2020-10-09 19:12:17 +00:00
parent 6583e56861
commit 52d04941c0

View File

@ -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 }