Closed Bug 1863409 Opened 1 year ago Closed 1 year ago

[Wayland] "Open Nightly in Troubleshoot Mode" dialog (aka safe mode) isn't tall enough for its content

Categories

(Core :: Widget: Gtk, defect, P2)

defect

Tracking

()

RESOLVED FIXED
122 Branch
Tracking Status
firefox-esr115 --- wontfix
firefox119 --- wontfix
firefox120 --- wontfix
firefox121 --- wontfix
firefox122 --- fixed

People

(Reporter: dholbert, Assigned: stransky)

References

(Blocks 1 open bug)

Details

(Keywords: regression, regressionwindow-wanted)

Attachments

(4 files)

Attached image image.png

My STR just now:

  1. Start Firefox and do something that hangs the parent process. (I don't have concrete linkable STR for this)
  2. Force-quit Firefox by e.g. clicking the "X", waiting for the OS force-quit prompt, and clicking through to force-quit.
  3. Repeat steps 1 and 2.
  4. Start Firefox again.

ACTUAL RESULTS:
The Safe Mode aka Troubleshoot Mode prompt that appears isn't tall enough for its content. The button is clipped.

EXPECTED RESULTS:
The prompt should be tall enough for its content.

Product: Toolkit → Firefox
Severity: -- → S4

It looks like this is Wayland-specific. Sort-of.

Starting with a Firefox profile where I've crashed a few times such that I trigger this prompt...

Summary: "Open Nightly in Troubleshoot Mode" dialog (aka safe mode) isn't tall enough for its content → [Wayland] "Open Nightly in Troubleshoot Mode" dialog (aka safe mode) isn't tall enough for its content

Does this reproduce for you at all on macOS or Windows? If not, I wonder if this should move to Widget: GTK...

Flags: needinfo?(dholbert)

I haven't been able to summon this dialog on macOS yet (repeating the same steps that get me to it on Linux), so I'm not entirely sure. But yeah, given that the behavior here is somewhat wayland-specific, Widget:GTK makes sense.

Component: General → Widget: Gtk
Flags: needinfo?(dholbert)
Product: Firefox → Core

It's Wayland related - I've seen this bug for long time.

Blocks: wayland
Priority: -- → P3
Flags: needinfo?(stransky)

This bug has been marked as a regression. Setting status flag for Nightly to affected.

Looks like the dialog is somehow missconfigured:

[Parent 511171: Main Thread]: D/Widget [7f52491d8f00]: nsWindow::Resize 400.000000 125.000000
[Parent 511171: Main Thread]: D/Widget [7f52491d8f00]: nsWindow::ResizeInt w:800 h:250
[Parent 511171: Main Thread]: D/Widget [7f52491d8f00]:   ConstrainSize: w:800 h;250
[Parent 511171: Main Thread]: D/Widget [7f52491d8f00]:   resized 0 aSize [800, 250] mLastSizeRequest [800, 250] mBounds [800, 250]
[Parent 511171: Main Thread]: D/Widget [7f52491d8f00]:   not moved or resized, quit
[Parent 511171: Main Thread]: D/Widget moz_container_wayland_map_event [7f52491d8f00]
[Parent 511171: Main Thread]: D/Widget moz_container_wayland_surface_set_scale_locked scale 2
[Parent 511171: Main Thread]: D/Widget [7f52491d8f00]: nsWindow::OnWindowStateEvent for 7f5249def460 changed 0x81 new_window_state 0x80
[Parent 511171: Main Thread]: D/Widget [7f52491d8f00]:  early return because no interesting bits changed
[Parent 511171: Main Thread]: D/Widget [7f52491d8f00]: nsWindow::OnWindowStateEvent for 7f52492b1b10 changed 0x81 new_window_state 0x80
[Parent 511171: Main Thread]: D/Widget [7f52491d8f00]: nsWindow::SetHasMappedToplevel(1)
[Parent 511171: Main Thread]: D/Widget [7f52491d8f00]:  quick return because IS_MOZ_CONTAINER(aWidget) is true
[Parent 511171: Main Thread]: D/Widget [7f52491d8f00]: configure event 0,0 -> 400 x 214 direct mGdkWindow scale 2 (scaled size 800 x 428)
[Parent 511171: Main Thread]: D/Widget [7f52491d8f00]: nsWindow::CheckForRollup() aAlwaysRollup 1
[Parent 511171: Main Thread]: D/Widget [7f52491d8f00]: nsWindow::OnWindowStateEvent for 7f5249def460 changed 0x80 new_window_state 0x0
[Parent 511171: Main Thread]: D/Widget [7f52491d8f00]:  early return because no interesting bits changed
[Parent 511171: Main Thread]: D/Widget [7f52491d8f00]: nsWindow::OnWindowStateEvent for 7f52492b1b10 changed 0x80 new_window_state 0x0
[Parent 511171: Main Thread]: D/Widget [7f52491d8f00]: nsWindow::SetHasMappedToplevel(1)
[Parent 511171: Main Thread]: D/Widget [7f52491d8f00]:  quick return because IS_MOZ_CONTAINER(aWidget) is true
[Parent 511171: Main Thread]: D/Widget moz_container_wayland_size_allocate [7f52491d8f00] 26,60 -> 348 x 125
[Parent 511171: Main Thread]: D/Widget moz_container_wayland_move [7f52491d8f00] 26,60
[Parent 511171: Main Thread]: D/Widget [7f52491d8f00]: nsWindow::OnSizeAllocate 26,60 -> 348 x 125
[Parent 511171: Main Thread]: D/Widget [7f52491d8f00]: nsWindow::DispatchResized() size [696, 250]
[Parent 511171: Main Thread]: D/Widget KeymapWrapper::SetFocusIn() surface 7f524d8275e0 ID 46 serial 59837
[Parent 511171: Main Thread]: D/Widget [7f52491d8f00]: configure event 0,0 -> 400 x 214 direct mGdkWindow scale 2 (scaled size 800 x 428)
[Parent 511171: Main Thread]: D/Widget [7f52491d8f00]: GetScreenBounds 52,120 -> 696 x 250, unscaled 26,60 -> 348 x 125
QA Whiteboard: [qa-regression-triage]

The difference here is in window width. X11 has window size 400 x 125 while Wayland 348 x 125 so Wayland formats the text to four lines.
Looks like Wayland window is sized with decorations.

Right now we count CSD decoration size borders only for CSD windows with system titlebar on
which is incorrect as such windows also have CSD borders.

Assignee: nobody → stransky
Status: NEW → ASSIGNED
Flags: needinfo?(stransky)
Pushed by stransky@redhat.com: https://hg.mozilla.org/integration/autoland/rev/782387a23b7b [Linux] Count CSD decoration size borders for CSD windows with system titlebar off r=emilio
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 121 Branch
Regressions: 1865255
Regressions: 1865259

Please revert this one due to regressions.
Thanks.

Flags: needinfo?(ctuns)
Status: RESOLVED → REOPENED
Flags: needinfo?(ctuns) → needinfo?(stransky)
Resolution: FIXED → ---
Target Milestone: 121 Branch → ---
Attachment #9363901 - Attachment description: Bug 1863409 [Linux] Count CSD decoration size borders for CSD windows with system titlebar off r?emilio → Bug 1863409 [Wayland] Count CSD decoration size borders for CSD windows with system titlebar off r?emilio
Pushed by stransky@redhat.com: https://hg.mozilla.org/integration/autoland/rev/6847dbc7a82b [Wayland] Count CSD decoration size borders for CSD windows with system titlebar off r=emilio https://hg.mozilla.org/integration/autoland/rev/64014991c79c [Linux] Don't add CSD borders to undecorated windows r=emilio
Flags: needinfo?(stransky)
Status: REOPENED → RESOLVED
Closed: 1 year ago1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 122 Branch

Since nightly and release are affected, beta will likely be affected too.
For more information, please visit BugBot documentation.

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

Attachment

General

Created:
Updated:
Size: