Closed Bug 1730079 Opened 4 years ago Closed 4 years ago

Closing extension popups is crashing the browser [@ nsMenuPopupFrame::IsDirectionRTL]

Categories

(Core :: Widget: Gtk, defect)

Firefox 94
Desktop
Linux
defect

Tracking

()

VERIFIED FIXED
94 Branch
Tracking Status
firefox-esr78 --- unaffected
firefox-esr91 --- unaffected
firefox92 --- unaffected
firefox93 --- unaffected
firefox94 blocking verified

People

(Reporter: me, Assigned: stransky)

References

(Blocks 1 open bug, Regression)

Details

(Keywords: regression)

Crash Data

Attachments

(1 file)

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:94.0) Gecko/20100101 Firefox/94.0

Steps to reproduce:

  1. Open an extension popup (from a toolbar button), such as for uBlock Origin or Bitwarden.
  2. Close it.

Actual results:

Crash. Here are four reports from exercising it:

I discovered this shortly after updating from a 2021-09-02 build to 2021-09-10.

Given the subject area here (popups and gtk3), it’s important to note that I’ve been using a custom build of gtk3, tracking gtk!3898, because of https://github.com/swaywm/sway/issues/6426. That is the version of gtk3 in use in the first, second and fourth of those crash reports. But for the third, I switched back to Arch Linux’s stock gtk3 package, and the crash still happened, so I don’t believe it’s related to that after all, however suspicious the combined circumstances are. Other possibly relevant things: Arch Linux, Sway, output scale 1.5.

Expected results:

No crash.

One more crash report: https://crash-stats.mozilla.org/report/index/6c4d0e41-9b78-44f6-940e-4ec050210910, changed output scale to 1 and it still happened (which is what I expected, from the nature of the crash signature), so it’s probably not related to scaling either.

I should also clarify that this only happens for extension popups, not the Application Menu or the tools overflow menu. (I find this unsurprising on reading the crash trace.)

Let me know if you’d like me to crash it in any more interesting ways! 😀

I'm also seeing this. Nightly, Arch Linux, GNOME, scale 2.

Status: UNCONFIRMED → NEW
Crash Signature: [@ nsMenuPopupFrame::IsDirectionRTL ]
Component: Untriaged → Widget: Gtk
Ever confirmed: true
OS: Unspecified → Linux
Product: Firefox → Core
Hardware: Unspecified → Desktop

Can reproduce this in Fedora 34, GNOME Wayland Session

Corresponding report - https://crash-stats.mozilla.org/report/index/a485d1d7-167e-4de2-b91b-90c2f0210910

Last good revision: a3f6c7094ec4c85bc0973ebfa64e674c288d6a33
First bad revision: 457c297c9bf274a9463bc8fa30ee73a024ad516f
Pushlog: https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=a3f6c7094ec4c85bc0973ebfa64e674c288d6a33&tochange=457c297c9bf274a9463bc8fa30ee73a024ad516f

Regressed by bug 1718867.

Regressed by: 1718867
Has Regression Range: --- → yes

Interesting, we have a popup without popup frame :) I'll look at it, thanks.

Assignee: nobody → stransky
Status: NEW → ASSIGNED

Workaround: closing the pop-up windows with the Escape key doesn't trigger the crash.

Attachment #9240458 - Attachment description: Bug 1730079 [Wayland] Fallback to nsIFrame::GetWritingMode() when nsMenuPopupFrame is missing, r?emilio → Bug 1730079 [Wayland] Get popup text direction by nsWindow::IsPopupDirectionRTL(), r?emilio
Pushed by stransky@redhat.com: https://hg.mozilla.org/integration/autoland/rev/38bd8f0b3351 [Wayland] Get popup text direction by nsWindow::IsPopupDirectionRTL(), r=emilio

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

Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 94 Branch

Hi Chris, are you still seeing this issue with latest Beta 94? I'm unable to reproduce the crash, unfortunately. I don't have Arch Linux or GNOME installed, so I've tried only on Ubuntu 18.04 x64, but the extension work as expected on my end. Could you please verify this?

Flags: needinfo?(me)
Status: RESOLVED → VERIFIED

Thank you!

Flags: qe-verify+
Flags: needinfo?(me)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: