Closed Bug 1251981 Opened 10 years ago Closed 4 days ago

Firefox menus and panels overlap Windows Taskbar

Categories

(Firefox :: Menus, defect)

Desktop
Windows
defect

Tracking

()

RESOLVED FIXED
154 Branch
Tracking Status
firefox47 --- wontfix
firefox154 --- fixed

People

(Reporter: arni2033, Assigned: chimaifeanyi29, Mentored)

Details

Attachments

(3 files, 1 obsolete file)

>>> My Info: Win7_64, Nightly 47, 32bit, ID 20160225030209 STR_1: 1. Dock Windows Taskbar to the bottom side of the screen 2. Maximize Firefox window 3. Open the following "data:" url > data:text/html,<div><style>div{width:40px; height:40px; position:fixed; left:0px; bottom:10px; background:gray;} 4. Hover mouse over the gray rectangle. Right-click. 5. Repeat until you get context menu opened to the bottom: Move mouse pointer 10px to the up, then right-click again. STR_2: 1. Dock Windows Taskbar to the right side of the screen 2. Maximize Firefox window 3. Open the following "data:" url > data:text/html,<div><style>div{width:40px; height:40px; position:fixed; right:10px; top:10px; background:black;} 4. Hover mouse over the black rectangle. Right-click. AR: Context menu overlaps taskbar ER: Context menu shouldn't overlap taskbar, because that's default behavior on Windows.
You can set the preference 'ui.menusCanOverlapOSBar' to 0 as a workaround. But we can change the default setting here in widget/windows/nsLookAndFeel.cpp
Mentor: enndeakin
Severity: normal → S3
Assignee: nobody → chimaifeanyi29
Status: NEW → ASSIGNED

"Hi, the patch has been approved with r+ by gstoll. Could someone with commit access please trigger autoland? Thank you!

Flags: needinfo?(nikkisharpley)
Flags: needinfo?(kcochrane)

:japandi, we can potentially land this if it's even still an issue, but this is not something we marked as a good first bug.. It's touching a .cpp file which our team rarely if ever works with. We'll need to test to make sure that it's still an issue a decade later.

Flags: needinfo?(kcochrane)

Hi Kelly, I tested the reproduction steps from the bug report on Windows 11 with the latest Firefox Nightly. The context menu no longer overlaps the Windows taskbar, it stops correctly above it. Screenshot attached. The bug appears to still be present in the code (the default value is still 1) but Windows 11 may be handling it differently. Happy to test further if needed.

Flags: needinfo?(sthompson)

A reviewer in the #win-reviewer group that approved your patch can queue your patch to land if they're happy to accept it.

Flags: needinfo?(sthompson)
Flags: needinfo?(nikkisharpley)

Note that the change here afftects all popups/panels, not just context menus.

Hi Neil, thank you for the feedback. I noticed that macOS (Cocoa), GTK, UIKit, and Headless all already return 0 for MenusCanOverlapOSBar and work fine with all popup types. Should I be concerned about the impact on non-context-menu popups on Windows specifically? Happy to adjust the patch if needed.

Flags: needinfo?(enndeakin)

can you take a look into my patch and potentially land it thank you.

Status: ASSIGNED → RESOLVED
Closed: 25 days ago
Resolution: --- → WONTFIX

I need this bug to be reviewed please, I need to know the guidance so that I can move forward, please.

Flags: needinfo?(nikkisharpley)
Flags: needinfo?(gijskruitbosch+bugs)
Status: RESOLVED → REOPENED
Resolution: WONTFIX → ---

(In reply to japandi from comment #13)

I need this bug to be reviewed please, I need to know the guidance so that I can move forward, please.

Neil should review the patch.

(In reply to Neil Deakin from comment #10)

Note that the change here afftects all popups/panels, not just context menus.

Is that not what other apps do? I tried quickly with notepad yesterday, on win11 that doesn't overlap the taskbar even with the main menus.

My only reservation here is that there's a chance this is going to increase the number of situations (ie screen size / density combinations) in which the main hamburger menu scrolls, on smaller screens. Neil, can you provide feedback on the patch, consulting with UX as needed? Thank you.

Flags: needinfo?(nikkisharpley)
Flags: needinfo?(gijskruitbosch+bugs)
Flags: needinfo?(enndeakin)
Flags: needinfo?(enndeakin)

No, that seems fine. I only comment because the summary of the bug only mentions context menus.

Flags: needinfo?(enndeakin)
OS: Unspecified → Windows
Hardware: Unspecified → Desktop
Summary: Firefox context menus overlap Windows Taskbar → Firefox menus and panels overlap Windows Taskbar
Pushed by gijskruitbosch@gmail.com: https://github.com/mozilla-firefox/firefox/commit/996d3397b86a https://hg.mozilla.org/integration/autoland/rev/b7d6a645ea40 Don't allow context menus to overlap Windows taskbar by default. r=NeilDeakin,win-reviewers,gstoll
Pushed by asilaghi@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/93e33621cbfd https://hg.mozilla.org/integration/autoland/rev/937f9b82b039 Revert "Bug 1251981 - Don't allow context menus to overlap Windows taskbar by default. r=NeilDeakin,win-reviewers,gstoll" for causing multiple failures at largemenu.html

Backout for causing multiple failures at largemenu.html
push with failure
failure log
backout link

Flags: needinfo?(chimaifeanyi29)

redirecting to a more experienced engineer.

Flags: needinfo?(chimaifeanyi29) → needinfo?(gijskruitbosch+bugs)

(In reply to japandi from comment #20)

redirecting to a more experienced engineer.

This is your patch - it got backed out because it broke tests. To get it to land, you'd need to figure out why the test broke and whether that means there should be changes to your patch or whether the test needs updating (or a bit of both). The previous comments have links to more details of what broke; try looking at those, maybe running the test locally with/without your patch and seeing what behaves differently, or adding logging and debugging on try. If you have specific questions, ask for help from the mentor for this bug.

Flags: needinfo?(gijskruitbosch+bugs) → needinfo?(chimaifeanyi29)

The failing test has a manual reference to assume that Windows doesn't overlap the OS bar.

https://searchfox.org/firefox-main/source/toolkit/content/tests/chrome/window_largemenu.xhtml#446

The test may just work by removing that assumption, now that the behaviour has changed.

But you should try running the test locally to verify.

Attachment #9604343 - Attachment is obsolete: true
Attachment #9557334 - Attachment description: Bug 1251981 - Don't allow context menus to overlap Windows taskbar by default. r?NeilDeakin → Bug 1251981 - Fix window_largemenu.xhtml test to not assume Windows can overlap OS chrome. r?NeilDeakin
Attachment #9557334 - Attachment description: Bug 1251981 - Fix window_largemenu.xhtml test to not assume Windows can overlap OS chrome. r?NeilDeakin → Bug 1251981 - Don't allow context menus to overlap Windows taskbar by default, and fix window_largemenu.xhtml test to match. r?NeilDeakin

I made an update to the patch, please let me know if I am right or wrong.

Flags: needinfo?(chimaifeanyi29)
Pushed by gijskruitbosch@gmail.com: https://github.com/mozilla-firefox/firefox/commit/383b22df89b7 https://hg.mozilla.org/integration/autoland/rev/290346c649c4 Don't allow context menus to overlap Windows taskbar by default, and fix window_largemenu.xhtml test to match. r=NeilDeakin,win-reviewers,gstoll
Status: REOPENED → RESOLVED
Closed: 25 days ago4 days ago
Resolution: --- → FIXED
Target Milestone: --- → 154 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: