[wayland] Parent extension popup disappears when activating drop down
Categories
(Core :: Widget: Gtk, defect)
Tracking
()
Tracking | Status | |
---|---|---|
firefox-esr60 | --- | unaffected |
firefox-esr68 | --- | unaffected |
firefox69 | --- | unaffected |
firefox70 | --- | fixed |
firefox71 | --- | fixed |
People
(Reporter: luis.pabon, Assigned: jhorak, NeedInfo)
References
(Blocks 1 open bug, Regression)
Details
(Keywords: regression)
Attachments
(5 files)
User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:70.0) Gecko/20100101 Firefox/70.0
Steps to reproduce:
- Install bitwarden extension https://addons.mozilla.org/en-GB/firefox/addon/bitwarden-password-manager/
- Click on the top bar button
- Click "Add login" or the + button at the top right
- Click on the "Type" drop down at the top
Actual results:
The parent popup containing the drop down disappears while leaving the drop down contents floating
Expected results:
Parent popup remains so that adding a new thing can continue.
Reporter | ||
Comment 1•5 years ago
|
||
Reporter | ||
Comment 2•5 years ago
|
||
Reporter | ||
Comment 3•5 years ago
|
||
Reporter | ||
Comment 4•5 years ago
|
||
Ubuntu 19.04
Firefox 70.0~b7+build1-0ubuntu0.19.04.1 (Mozilla's PPA)
Sway 1.2
wlroots 0.7.0
Comment 5•5 years ago
|
||
Bugbug thinks this bug should belong to this component, but please revert this change in case of error.
Updated•5 years ago
|
Assignee | ||
Comment 6•5 years ago
|
||
Under Wayland it is possible to add only one popup window
to a parent window. If we try to attach another popup to the window,
the GTK refuses to do that. This can happen when the previous popup
has not yet been hidden while the new popup is showing (in some cases
the nsWindow::Show(false) for the previous popup is not called before
nsWindow::Show(true) for the new one).
We deal with it by hiding wayland popups which are no longer in the
XULPopupManager (PM) before showing a new one. We only do that for
the main menu popups or context (sub)menus. We cannot use PM to check
for the panel popup content like Folder dropdown in Edit Bookmark panel
or WebRTC microphone/video source dropdown. In that case we simply use
the last shown popup as a transient for the new one or the toplevel window.
Assignee | ||
Updated•5 years ago
|
Pushed by dvarga@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/30310d7d693a
Rewrite popup hiding on wayland; r=stransky
Comment 8•5 years ago
|
||
Backed out changeset 30310d7d693a (Bug 1582679) for mochitest assertions at nsWindow.cpp:3766.
Backout: https://hg.mozilla.org/integration/autoland/rev/b277d1fdc9fb692fd84938d7d6a87f4e8eaf5acc
Push that started the failures: https://treeherder.mozilla.org/#/jobs?repo=autoland&resultStatus=pending%2Crunning%2Csuccess%2Ctestfailed%2Cbusted%2Cexception&revision=30310d7d693ae90f3154982ed13c5ae88096c169&selectedJob=269300140
Failure log: https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=269300140&repo=autoland&lineNumber=2167
Assignee | ||
Updated•5 years ago
|
Pushed by btara@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/29d3b1f1b744
Rewrite popup hiding on wayland; r=stransky
Comment 10•5 years ago
|
||
bugherder |
Comment 13•5 years ago
|
||
As per Bug 1583035 this was a regression caused by Bug 1567434.
Comment 14•5 years ago
|
||
Comment on attachment 9097364 [details]
Bug 1582679 - Rewrite popup hiding on wayland; r=stransky
Beta/Release Uplift Approval Request
- User impact if declined: This patch fixes popup management on wayland by a generic way so app popups should work as expected.
Without this patch some popups are broken (extensions, panels, etc..) - Is this code covered by automated tests?: No
- Has the fix been verified in Nightly?: No
- Needs manual test from QE?: No
- If yes, steps to reproduce:
- List of other uplifts needed: None
- Risk to taking this patch: Low
- Why is the change risky/not risky? (and alternatives if risky): Wayland/Linux only.
- String changes made/needed: none
Reporter | ||
Comment 15•5 years ago
|
||
Superb
Comment on attachment 9097364 [details]
Bug 1582679 - Rewrite popup hiding on wayland; r=stransky
Big change but should only affect Wayland users; OK by me.
This should be in beta 13 next week.
Comment 17•5 years ago
|
||
bugherder uplift |
Reporter | ||
Comment 18•5 years ago
|
||
I'll be sure to test and report back any issues as soon as I get the b13 update. Anything specific to look out for that could possibly be broken by this change?
Comment 19•5 years ago
|
||
(In reply to luis.pabon from comment #18)
I'll be sure to test and report back any issues as soon as I get the b13 update. Anything specific to look out for that could possibly be broken by this change?
All popup menus (history, bookmarks, panels etc.) should work as expected under Wayland. Also tooltips and so.
Reporter | ||
Comment 20•5 years ago
|
||
So far so good, the original issue is definitely fixed and after a few hours of usage I haven't noticed any funny business.
Reporter | ||
Comment 21•5 years ago
|
||
Ah, just found one, extension menues don't seem to open when they're behind the overflow (?) if FF window size is small.
Comment 22•5 years ago
|
||
(In reply to luis.pabon from comment #21)
Ah, just found one, extension menues don't seem to open when they're behind the overflow (?) if FF window size is small.
Thanks for testing! If you have a testcase please file a new bug for it. Thanks!
Reporter | ||
Comment 23•5 years ago
|
||
Ah, looks like someone already beat me to it:
https://bugzilla.mozilla.org/show_bug.cgi?id=1585918
Updated•3 years ago
|
Comment 24•2 years ago
|
||
Hello, sorry for necroing this bug, but I'm getting this exact same thing after switching to the wayland version of firefox for screen sharing purposes. I couldn't find a newer bug with these exact same symptoms, so I apologise if perhaps I should have filed a new bug rather than commenting here.
I am using Firefox 104.0.1 64 bit for NixOS and I'm using Sway. The repro steps are identical to that in the original report with bitwarden and any other extension with drop down menus or extra things that pop up (which is surprisingly a large amount of extensions for me). With bitwarden I can pop out the extension, but that's not the case for all of them. I thought this was only minor at first but it's heavily impacting my experience which is why I'm surprised that it's not been picked up on already.
If there's any additional information I can provide please let me know so I can contribute further, as right now I'm not sure what's relevant to the issue.
Comment 25•2 years ago
|
||
Typo - that's meant to be version 105.0.1 - not 104. My mistake.
Comment 26•2 years ago
|
||
(In reply to Ashe from comment #25)
Typo - that's meant to be version 105.0.1 - not 104. My mistake.
Please test latest nightly and report new bug if you see it.
Thanks.
Reporter | ||
Comment 27•2 years ago
|
||
Unfortunately yes.
Firefox snap:
latest/edge: 109.0a1 2022-11-18 (2112) 193MB
Reporter | ||
Comment 28•2 years ago
|
||
Happens the same on bitwarden. No screen recording of that for obvious reasons.
Comment 29•2 years ago
|
||
The Nightly snap builds are slightly delayed, try testing the non-snap version or wait 24 hours, sudo snap refresh
and try again.
Reporter | ||
Comment 30•2 years ago
|
||
Will do, cheers. Has there been a fix for this going in the last 24h?
Comment 31•2 years ago
|
||
Please test with mutter:
https://fedoraproject.org/wiki/How_to_debug_Firefox_problems#Testing_different_Wayland_compositor
Thanks.
Reporter | ||
Comment 32•2 years ago
|
||
Apologies it took me a few days to do. I have tested it with mutter and the issue does not occur. It still however happens on Sway and on wayfire.
Versions:
- Mutter 43.0-1ubuntu4
- Sway 1.7
- Wayfire 0.7.4-2
- Firefox 109.0a1 2022-11-23 (snap edge channel)
Comment 33•2 years ago
|
||
Please file that at Sway bug tracker.
Thanks.
Description
•