Open Bug 1717957 Opened 3 years ago Updated 1 year ago

[sway] Browser sometimes freezes until focus is lost

Categories

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

Firefox 91
defect

Tracking

()

UNCONFIRMED

People

(Reporter: sm, Unassigned)

References

(Blocks 1 open bug)

Details

(Whiteboard: QA-not-actionable)

Attachments

(2 files)

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

Steps to reproduce:

  • Open Firefox Nightly with MOZ_ENABLE_WAYLAND=1
  • Press Alt-H to pop open the Help menu drop-down

Also occurs sometimes when browsing the web; trying to open one of the hidden top menu drop-downs is the only way I could get it to reproduce 100% of the time.

Actual results:

The entire browser UI freezes, and will only update if browser window loses focus.

Expected results:

The browser UI should not freeze.

Attached video The bug in action

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

Component: Untriaged → Widget: Gtk
Product: Firefox → Core
Priority: -- → P3

Hello! I have tried to install sway on my wayland machine but unfortunately it is difficult to install it. At the moment we do not have the right environment to test this issue.

Thank you and have a nice day!

Whiteboard: QA-not-actionable

I have found that the bug only occurs for me if the output is scaled. swaymsg output OUTPUT_NAME scale 2, then launch Nightly with MOZ_ENABLE_WAYLAND=1 and try to open the Help menu with Alt-H to trigger the bug.

I am also experiencing this issue. Sometimes the UI stops being updated until I focus away from it. If more than one firefox window is open, it can happen to only one of them while the others are fine.

I am able to reproduce this problem consistently by trying to open a submenu in a menu. For instance, right clicking on a tab > close multiple tabs.

Flags: needinfo?(luis.pabon)

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

Please try latest nightly:
https://fedoraproject.org/wiki/How_to_debug_Firefox_problems?rd=Bug_info_Firefox#Testing_Mozilla_binaries
Thanks.

The freezing seems to be gone in the 20210804093931+h69d1fe6262a0 nightly, however the menus still don't pop up. If you try to open Help with Alt-H, or right click on a page, the menu doesn't appear. Maybe that's tracked under a separate bug?

Flags: needinfo?(sm)

I can confirm the same problem, menus do not show up on displays with a scale that's not exactly 1 on nightly 92.0a1 (2021-08-04)

Context menus, hamburger & extension popups have this issue. The UI freeze seems gone though.

Flags: needinfo?(luis.pabon)

Actually I spoke too soon. In addition to the context menu & extension popups, nightly 92.0a1 (2021-08-04) still shows the problem on this ticket (the paused compositor thing).

Also, extension popups won't open on any displays regardless of scale. Context & firefox menus do not open on displays with scale > 1 as mentioned earlier.

Looks like Sway issue to me especially when you can reproduce it with scale > 1 only.

Blocks: wayland-sway
No longer blocks: wayland-popup

This seems to have been fixed for me in Nightly for a couple weeks. Is anyone else still seeing this?

Status: UNCONFIRMED → RESOLVED
Closed: 2 years ago
Resolution: --- → WORKSFORME
Status: RESOLVED → UNCONFIRMED
Resolution: WORKSFORME → ---

I had to reopen this as the bug is back in Nightly as of the last day or two (2022-10-20). It looks the same as in the video, except this time it happens on any scale (when I first filed it did not trigger at 1x scale).

I messed around a bit and I was able to reproduce it most consistently through tooltips. I mouse over an image (or something else) that I know has a title attribute and should therefore produce a tooltip on hover, but none appears. After a few hovers, the browser enters this odd state where it will freeze until focus is lost. I have to restart the browser to fix this.

I reported this here anew as well: https://bugzilla.mozilla.org/show_bug.cgi?id=1796608

I also have this bug in my system , running sway/Arch

https://www.reddit.com/r/firefox/comments/13fqi30/comment/jjwvwtb/?context=3
ive posted a video here, happens every once in a while.

Weird thing is that it occurs selectively on a firefox window only, not all instances of that profile at once. Say if I have 2 windows of firefox open from same profile , and issue is occurring in one window, it can fixed by closing that window and reopen using ctrl+shift+n

someone suggested a solution , which was to close and open sidebar again , and it worked.
i am using horizontal tabs using sideberry extension with a custom css , and its always opened. I also have userChrome css on

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

Attachment

General

Created:
Updated:
Size: