mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-05 00:02:37 +00:00

This matches the nsMenuPopupFrame code. There are a few places where we want to fix our position, and I unified how we do this in the regressing bug. ShouldFollowAnchor() = false popups like this used to just not be repositioned directly: https://hg.mozilla.org/mozilla-central/rev/c15f0fb1c92375ea751b3916a4c25a34403f21b2#l9.274 IsNoAutoHide() popups fixed their position once: https://hg.mozilla.org/mozilla-central/rev/c15f0fb1c92375ea751b3916a4c25a34403f21b2#l9.867 I unified in the noautohide behavior but in a better place here: https://hg.mozilla.org/mozilla-central/rev/c15f0fb1c92375ea751b3916a4c25a34403f21b2#l9.1182 But this trips this Wayland code which wasn't treating AnchorType_Point popups properly. The fact that this popup doesn't follow the anchor feels wrong, but is pre-existing. Differential Revision: https://phabricator.services.mozilla.com/D173004