Closed Bug 1775017 Opened 3 years ago Closed 3 years ago

[x11] XULPopupElement::GetOuterScreenRect is incorrect on HiDPI screens.

Categories

(Core :: Widget: Gtk, defect)

defect

Tracking

()

RESOLVED FIXED
103 Branch
Tracking Status
firefox103 --- fixed

People

(Reporter: emilio, Assigned: emilio)

Details

Attachments

(1 file)

This is due to a GTK bug, see https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/4820, but prevents tests from working locally.

See the linked GTK MR (which also affects GTK3). This can be reproduced
when running tests like
browser/components/extensions/test/browser/browser_ext_popup_select_in_oopif.js

In an X11 session with a HiDPI screen.

Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/bee17c93a75a Don't use gdk_window_get_root_origin on popups, as those get the wrong coordinates on X11+HiDPI. r=stransky
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 103 Branch

Fixed in Gtk3-3.24.35.

Unfortunately Ubuntu 22.04 has Gtk3 3.24.33 only.

Looks like this one affects X11/GDK_WINDOW_TEMP windows only which uses override redirect. We may try to not use GDK_WINDOW_TEMP on X11 platform for popups.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: