Closed Bug 1894575 Opened 5 months ago Closed 4 months ago

SelectTranslationsPanel glitches when resized below the bottom screen boundary

Categories

(Firefox :: Translations, defect, P3)

Desktop
All
defect

Tracking

()

VERIFIED FIXED
128 Branch
Tracking Status
firefox-esr115 --- unaffected
firefox125 --- unaffected
firefox126 --- unaffected
firefox127 --- disabled
firefox128 --- verified

People

(Reporter: nordzilla, Assigned: nordzilla)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 file)

Description

I do not believe that the XUL panels were originally designed to be dynamically resized by click-and-dragging the mouse. As such, when the SelectTranslationsPanel allows for this case, some glitchy behavior occurs once the panel is resized below the bottom edge of the screen boundary.

We should disallow this situation for the SelectTranslationsPanel.


Steps to Reproduce

  • Open a page and highlight all of the text.
  • Open the SelectTranslationsPanel via the right-click context menu, near to the lower-middle portion of the page.
  • Drag the textarea resizer down such that the bottom of the panel is dragged below the bottom of the screen.

Expected Behavior
The panel is not allowed to be resized that far, and stops before the bottom edge of the screen.

Actual behavior
The panel is dragged below the bottom of the screen, causing various glitchy behaviors that differ for each operating system.


Steps to implement

  • Calculate the max-height for the panel based on the screen boundaries, and impose a maximum height such that this case is not encountered.

Tests to implement

  • This is very hard to test in automation, as it involves clicking and dragging with the mouse.
Severity: -- → S3
Priority: -- → P3

Set release status flags based on info from the regressing bug 1890490

See Also: → 1894952
Attachment #9399695 - Attachment description: WIP: Bug 1894575 - WIP → WIP: Bug 1894575 - Ensure panel cannot be resized off screen r=#translations-reviewers!
Attachment #9399695 - Attachment description: WIP: Bug 1894575 - Ensure panel cannot be resized off screen r=#translations-reviewers! → Bug 1894575 - Ensure panel cannot be resized off screen r=#translations-reviewers!

@Erik, is this expected to make 127?

Flags: needinfo?(enordin)

This won't make the soft freeze. I'll leave the NI in case he is considering an uplift.

Sorry, I was out on PTO for the past week.

Unfortunately, due to me being gone, I did not have time to fix this before soft freeze.

There are some particular issues on Wayland (Bug 1895036) that have prevented this from landing as-is.

Flags: needinfo?(enordin)
See Also: → 1895036

Set release status flags based on info from the regressing bug 1890490

Pushed by enordin@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/e1c35df380bc Ensure panel cannot be resized off screen r=translations-reviewers,gregtatum
Status: NEW → RESOLVED
Closed: 4 months ago
Resolution: --- → FIXED
Target Milestone: --- → 128 Branch

The patch landed in nightly and beta is affected.
:nordzilla, is this bug important enough to require an uplift?

  • If yes, please nominate the patch for beta approval.
  • If no, please set status-firefox127 to wontfix.

For more information, please visit BugBot documentation.

Flags: needinfo?(enordin)

This does not need to be uplifted. The target release is now 128, and the panel is preffed off by default in 127 release build.

Flags: needinfo?(enordin)

This issue no longer occurs in Nightly v128.0a1 in Windows10, MacOS11 or Ubuntu22 (both wayland or X11 Window Protocols). Resizing the dialog to the bottom of the screen no longer shows any glitchy behavior because the resizing is blocked before the bottom of the screen or if the translated text fits inside the textbox.

Status: RESOLVED → VERIFIED
OS: Unspecified → All
Hardware: Unspecified → Desktop
See Also: → 1902254
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: