Closed Bug 2026258 Opened 7 months ago Closed 6 months ago

[Wayland] Right Click and Menu Popups not Rendering

Categories

(Core :: Widget: Gtk, defect)

Firefox 151
defect

Tracking

()

RESOLVED FIXED
152 Branch
Tracking Status
firefox-esr115 --- unaffected
firefox-esr140 --- unaffected
firefox150 --- wontfix
firefox151 --- fixed
firefox152 --- fixed

People

(Reporter: alanhdu, Assigned: stransky)

References

(Regression)

Details

(Keywords: regression)

Attachments

(4 files, 2 external files)

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

Steps to reproduce:

When I use Firefox for an extended amount of time, eventually (e.g. after 30 or so minutes), right click no longer works (no menu is rendered). If I click on a menu (e.g. the Hamburger menu to get to options), nothing gets rendered.

If I pkill firefox and restart, everything works fine for a while. I have not figured out if there is a specific trigger here or if it is time based (it seems to be a bit stochastic but generally happens somewhere within 10-30 minutes of browsing, which is quite frustrating to debug).

This only started happening within the last week or two, and so is probably a pretty recent regression.

I am on Firefox Nightly on Ubuntu.

Actual results:

Nothing gets rendered.

Expected results:

Right click continues to work and menu pop-ups get rendered.

The Bugbug bot thinks this bug should belong to the 'Core::Widget: Gtk' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Widget: Gtk
Product: Firefox → Core

Ah -- I think I've figured the trigger out. This happens when I plug in a monitor to my HDMI port (or unplug it) of my laptop. Something about that action must be going wrong with Firefox / Wayland somehow.

This sounds similar to Bug 2026096

Flags: needinfo?(stransky)
See Also: → 2026096

Please attach your about:support page.
Please test latest nightly:
https://fedoraproject.org/wiki/How_to_debug_Firefox_problems#Testing_Mozilla_Nightly_binaries
Thanks.

Flags: needinfo?(stransky) → needinfo?(alanhdu)
Severity: -- → S3
Attached file vainfo.txt —
Attached file gfxlog.txt —

I attached the about:support page above as https://bugzilla.mozilla.org/attachment.cgi?id=9558091 -- do you need more information there? I also attached the vainfo.txt and gfxlog.txt from the wiki page.

I went ahead and used the mozregression tool to bisect (neat -- didn't know that existed), which spit out:

 5:59.85 INFO: No more integration revisions, bisection finished.
 5:59.85 INFO: Last good revision: 7a73b5603e29f48cf00cb3e0a1e5f9824785c181
 5:59.85 INFO: First bad revision: b1809ccf86123539ee63bc332d6cf1ac9f0d5dea
 5:59.85 INFO: Pushlog:
https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=7a73b5603e29f48cf00cb3e0a1e5f9824785c181&tochange=b1809ccf86123539ee63bc332d6cf1ac9f0d5dea

Hope that helps!

Flags: needinfo?(alanhdu)
Keywords: regression
Regressed by: 2018866
See Also: 2026096 →
Summary: Right Click and Menu Popups not Rendering → [Wayland] Right Click and Menu Popups not Rendering

Please run Firefox on terminal with MOZ_LOG="WidgetScreen:5,Widget:5,WidgetPopup:5" env variables, reproduce the issue and attach the log here.
Thanks.

Flags: needinfo?(alanhdu)

Added the result of MOZ_LOG="WidgetScreen:5,Widget:5,WidgetPopup:5" firefox-nightly here!

Flags: needinfo?(alanhdu)
Flags: needinfo?(stransky)

Thanks a lot! I'd need more info from the log, can you try to run with:

WAYLAND_DEBUG=1 MOZ_LOG="WidgetScreen:5,Widget:5,WidgetPopup:5"

env variables, reproduce the issue and attach the log here?
Thanks.

Flags: needinfo?(stransky) → needinfo?(alanhdu)

(In reply to Martin Stránský [:stransky] (ni? me) from comment #10)

Thanks a lot! I'd need more info from the log, can you try to run with:

WAYLAND_DEBUG=1 MOZ_LOG="WidgetScreen:5,Widget:5,WidgetPopup:5"

env variables, reproduce the issue and attach the log here?
Thanks.

Please run with:

WAYLAND_DEBUG=1 MOZ_LOG="WidgetScreen:5,WidgetWayland:5"

Thanks.

Assignee: nobody → stransky
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Pushed by stransky@redhat.com: https://github.com/mozilla-firefox/firefox/commit/cf094fd8726a https://hg.mozilla.org/integration/autoland/rev/4c169b2a7263 [Wayland] Fall back to wl_output monitor size if we're missing Gtk workarea to calc fractional scale r=emilio
Status: ASSIGNED → RESOLVED
Closed: 6 months ago
Resolution: --- → FIXED
Target Milestone: --- → 152 Branch
Flags: needinfo?(alanhdu)

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

For more information, please visit BugBot documentation.

Flags: needinfo?(stransky)
Flags: needinfo?(stransky)
See Also: → 2036296
See Also: → 2032822

firefox-beta Uplift Approval Request

  • User impact if declined/Reason for urgency: Missing popups when monitor is turned off/on (sleep etc.)
  • Code covered by automated testing?: no
  • Fix verified in Nightly?: no
  • Needs manual QE testing?: no
  • Steps to reproduce for manual QE testing:
  • Risk associated with taking this patch: low
  • Explanation of risk level: Add fallback to get monitor size from Wayland instead of Gtk - it's still better than nothing.
  • String changes made/needed?: none
  • Is Android affected?: no
Attachment #9582760 - Flags: approval-mozilla-beta?
Attachment #9582760 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
Duplicate of this bug: 2032822
See Also: → 2036975
Duplicate of this bug: 2038866
Duplicate of this bug: 2036975
Duplicate of this bug: 2036296
Duplicate of this bug: 2036697
Duplicate of this bug: 2039179
Duplicate of this bug: 2025243
Blocks: 2014419
See Also: 2036296, 2032822, 2036975 →
Duplicate of this bug: 2030229
Duplicate of this bug: 2036316
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: