Closed Bug 1975969 Opened 6 months ago Closed 6 months ago

Consider always skipping move-to-rect if popup fits inside the toplevel window.

Categories

(Core :: Widget: Gtk, task, P3)

task

Tracking

()

RESOLVED FIXED
142 Branch
Tracking Status
firefox142 --- fixed

People

(Reporter: emilio, Assigned: emilio)

References

(Regressed 2 open bugs)

Details

Attachments

(1 file)

This technically would change behavior of e.g. the context menu if you have a partially offscreen window. This was discussed in bug 1941237 but I think it's worth doing separately, at least.

As discussed in D256254.

I'm a bit on the fence about this, because even though it makes
everything nicer and faster most of the time, it might break legit use
cases like having a window partially off-screen... But it might be fine,
and arguably extension panels are already broken that way and nobody has
complained.

Assignee: nobody → emilio
Status: NEW → ASSIGNED

Thanks for the patch Emilio! I'll give it a try on some mixed scenarios. The panels you refer are usually used for permanent popups like permission popup which is usually located under URL bar so it usually fits the toplevel window anyway.

Status: ASSIGNED → RESOLVED
Closed: 6 months ago
Resolution: --- → FIXED
Target Milestone: --- → 142 Branch
Regressions: 1976600
QA Whiteboard: [qa-triage-done-c143/b142]
Regressions: 1987162
Regressions: 1987057
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: