Tab context menu opened from "Show All Tabs" popup menu, is shown almost blank! in certain cases. (+ code to fix!)
Categories
(Firefox :: Tabbed Browser, defect, P3)
Tracking
()
People
(Reporter: redlibrepy, Assigned: aminomancer)
References
(Blocks 1 open bug, Regression)
Details
(Keywords: good-first-bug, regression)
Attachments
(1 file)
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101 Firefox/68.0
Steps to reproduce:
In Nightly 81.0a1 : (also Firefox 78.0.2)
-
Make sure you don't move the mouse cursor to tabs-toolbar area ('mouseover' & 'focus' events must not be fired in this area)
-
In main menu (ALT + V) do: View -> "Show All Tabs". Also you can click the "List All Tabs" button (taking care of not 'touching' tabs area)
(In order to enable "Show All Tabs", you may have to open several tabs or reduce window width) -
In "Show All Tabs" popup, just open Tab-context-menu by secondary-click a line in tabs listing.
Nightly 81.0a1, Build ID 20200807213618, Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:81.0) Gecko/20100101 Firefox/81.0
Actual results:
- The Tab-context-menu appeared almost blank (no content in popup)
Technical info + code to fix ! :
Menuitems are still having [data-lazy-l10n-id] attribute and not [data-l10n-id].
Can be fixed with this:
In chrome\browser\content\browser\tabbrowser.js, you can add this: (with matching removeEventListener)
this.tabContainer.addEventListener("mouseover", tabContextFTLInserter);
+ document.getElementById("allTabsMenu-allTabsView").addEventListener( "ViewShowing", tabContextFTLInserter );
Also, you can test this manual fix in the console:
document.getElementById("allTabsMenu-allTabsView").addEventListener( "ViewShowing", event => {
if( document.querySelector("#tabContextMenu [data-lazy-l10n-id]") ){
window.gBrowser.tabContainer.dispatchEvent( new MouseEvent("mouseover") ); // See "data-lazy-l10n-id" area in tabbrowser.js
}
})
Expected results:
- The Tab-context-menu should appear with all menuitems, the same as when opening It from a tab.
Reporter | ||
Comment 1•5 years ago
|
||
I think it should be:
Component:
Tabbed Browser ▾
Reporter | ||
Updated•5 years ago
|
Indeed, thank you!
Updated•5 years ago
|
![]() |
||
Comment 3•5 years ago
|
||
I can reproduce the issue on Nightly81.0a1(20200812034418) Windows10, 79.0 and 80.0b7.
Regression window:
https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=a3695dec8b662cec2ad29f4f6ce1769875b13bb2&tochange=c4669392e7dca7573ecf25da7510f55482dbdce0
Before landing Bug 356980: No tab contextmenu is provided
After landing Bug 356980: Tab contextmenu pops up, and I can reproduce this issue.
So, this is a implementation bug.
Comment 4•5 years ago
|
||
Thanks Javier and Alice!
Updated•4 years ago
|
Updated•4 years ago
|
Updated•4 years ago
|
Updated•4 years ago
|
Assignee | ||
Updated•3 years ago
|
Comment 6•3 years ago
|
||
This good-first-bug hasn't had any activity for 2 months, it is automatically unassigned.
For more information, please visit auto_nag documentation.
Assignee | ||
Comment 7•3 years ago
|
||
Oops, sorry. I'll do this in a minute
Assignee | ||
Comment 8•3 years ago
|
||
The tab context menu is designed to not be translated until the user
interacts with the tab strip in some way. However, the tab context menu
is now shared between the tab strip and the "all tabs" panel. So, it's
possible to open the tab context menu without interacting with the tab
strip. This results in the context menu being opened before it is
translated, so the user sees an essentially blank menu. Resolve this
by adding to the all tabs panel the same handlers that presently listen
on the tab strip: translate on mouseover, contextmenu & focus events.
Updated•3 years ago
|
Comment 10•3 years ago
|
||
bugherder |
Updated•3 years ago
|
Updated•3 years ago
|
Comment 11•3 years ago
•
|
||
I managed to reproduce this on Firefox 100.0(20220428192727) on Win10 64-bits. Verified as fixed on Firefox 101.0b7(20220515185854), Nightly 102.0a1(20220515214519) on Win10 64-bits, Ubuntu 20.04 and macOS 11.
Edit: Corrected a typo.
Description
•