On an external monitor in a maximized Firefox window, can't select a tab with the cursor at the top of the screen
Categories
(Core :: Widget: Win32, defect)
Tracking
()
| Tracking | Status | |
|---|---|---|
| relnote-firefox | --- | 147+ |
| firefox-esr140 | --- | unaffected |
| firefox143 | --- | unaffected |
| firefox144 | --- | unaffected |
| firefox145 | + | wontfix |
| firefox146 | - | wontfix |
| firefox147 | + | verified |
People
(Reporter: gstoll, Assigned: emilio)
References
(Regressed 1 open bug, Regression)
Details
(Keywords: regression)
Attachments
(2 files, 2 external files, 3 obsolete files)
I can't click tabs if I have my cursor at the top of the screen. Need to move it down by 3-4 pixels to be able to click the hit area. This happens only on external monitors, not the laptop screen. The caption buttons or new tab button are also not clickable.
mozregression points at bug 1947324.
Comment 1•1 year ago
|
||
Set release status flags based on info from the regressing bug 1947324
| Reporter | ||
Comment 2•1 year ago
|
||
On my external monitor, there's an extra 5 px of space in the titlebar that seems to be causing this. This seems to be caused by the call to put_ExtendsContentIntoTitleBar(true).
Comment 3•1 year ago
|
||
Set release status flags based on info from the regressing bug 1947324
| Reporter | ||
Comment 4•1 year ago
|
||
Using the Browser Toolbox Inspector, when the window is maximized and on my external monitor (may be an DPI thing), there is ~5 px at the top of the titlebar that Firefox isn't drawing on. (i.e. mousing over the top <html> tag doesn't highlight)
Calling SetPresenterKind(AppWindowPresenterKind_FullScreen) does not help.
Updated•1 year ago
|
Comment 6•11 months ago
|
||
So i originally posted my own bug report but its been merged here.
I decided to try that widget.windows.windowsappsdk.enabled to false, and it also fixes my issue, but the strange thing is when i view photos with windows photo viewer, i have that big white line at the top of my screen on my 2nd monitor still, so its not just a firefox issue
Im thinking this is actually a windows 11 issue?
| Reporter | ||
Comment 7•11 months ago
|
||
Removing the WS_BORDER style from our windows seems to fix this. I was going to only do this when our window is maximized, but even with an unmaximized window you can still drag/resize it, and this also seems to fix bug 1994918 so I'm going to try just turning it off everywhere and see what happens.
| Reporter | ||
Updated•11 months ago
|
| Reporter | ||
Comment 10•11 months ago
|
||
[Tracking Requested - why for this release]: Many duplicates and Reddit threads about this problem; I'd like to uplift to beta after the fix is in.
Updated•11 months ago
|
| Reporter | ||
Comment 12•11 months ago
|
||
When a window with WS_BORDER is maximized on a low-ish DPI monitor, an
"extra" border on top shows up. This breaks the workflow of moving your
mouse to the very top of the screen to hover over or select tabs.
(people have reported this with non-Firefox apps so I'm guessing this is
really an OS problem)
But the WS_BORDER style doesn't actually seem necessary for us when tabs
are being shown in the toolbar - removing it still means we can resize
our window, etc.
We do need to handle the case when tabs are not being shown in the toolbar,
so we have to toggle the WS_BORDER style when that changes. I tested on my
system in a number of different configurations and it seems to work fine.
I believe this will fix bug 1994918 and possibly some others.
Comment 14•11 months ago
|
||
firefox-beta Uplift Approval Request
- User impact if declined: Multiple users have reached out via Bugzilla, SUMO, and Reddit, complaining about this issue.
- Code covered by automated testing: no
- Fix verified in Nightly: no
- Needs manual QE test: no
- Steps to reproduce for manual QE testing:
- Risk associated with taking this patch: medium
- Explanation of risk level: Changing our window styles is a little risky. I have verified this fix with my dev build locally (on Windows 11) and on a Windows 10 VM.
- String changes made/needed: no
- Is Android affected?: no
| Reporter | ||
Comment 15•11 months ago
|
||
When a window with WS_BORDER is maximized on a low-ish DPI monitor, an
"extra" border on top shows up. This breaks the workflow of moving your
mouse to the very top of the screen to hover over or select tabs.
(people have reported this with non-Firefox apps so I'm guessing this is
really an OS problem)
But the WS_BORDER style doesn't actually seem necessary for us when tabs
are being shown in the toolbar - removing it still means we can resize
our window, etc.
We do need to handle the case when tabs are not being shown in the toolbar,
so we have to toggle the WS_BORDER style when that changes. I tested on my
system in a number of different configurations and it seems to work fine.
I believe this will fix bug 1994918 and possibly some others.
Original Revision: https://phabricator.services.mozilla.com/D272653
Updated•11 months ago
|
Comment 16•11 months ago
|
||
| Reporter | ||
Comment 17•11 months ago
|
||
When a window with WS_BORDER is maximized on a low-ish DPI monitor, an
"extra" border on top shows up. This breaks the workflow of moving your
mouse to the very top of the screen to hover over or select tabs.
(people have reported this with non-Firefox apps so I'm guessing this is
really an OS problem)
But the WS_BORDER style doesn't actually seem necessary for us when tabs
are being shown in the toolbar - removing it still means we can resize
our window, etc.
We do need to handle the case when tabs are not being shown in the toolbar,
so we have to toggle the WS_BORDER style when that changes. I tested on my
system in a number of different configurations and it seems to work fine.
I believe this will fix bug 1994918 and possibly some others.
Original Revision: https://phabricator.services.mozilla.com/D272653
Updated•11 months ago
|
Comment 18•11 months ago
|
||
firefox-beta Uplift Approval Request
- User impact if declined: Multiple users have reached out via Bugzilla, SUMO, and Reddit, complaining about this issue.
- Code covered by automated testing: no
- Fix verified in Nightly: no
- Needs manual QE test: no
- Steps to reproduce for manual QE testing:
- Risk associated with taking this patch: medium
- Explanation of risk level: Changing our window styles is a little risky. I have verified this fix with my dev build locally (on Windows 11) and on a Windows 10 VM.
- String changes made/needed: no
- Is Android affected?: no
Comment 19•11 months ago
|
||
Comment 20•11 months ago
•
|
||
Backed out for causing bc failures on browser_test_fullscreen_size.js
Comment 21•11 months ago
|
||
The bug is marked as tracked for firefox146 (beta) and tracked for firefox147 (nightly). However, the bug still has low severity.
:jstutte, could you please increase the severity for this tracked bug? If you disagree with the tracking decision, please talk with the release managers.
For more information, please visit BugBot documentation.
Comment 22•11 months ago
|
||
IIUC there is a very simple workaround, that is move down the mouse a few pixels? So I'd be inclined to not rate this S2.
| Reporter | ||
Updated•11 months ago
|
Comment 23•11 months ago
|
||
Jumping in to say this is nevertheless still very annoying and workflow breaking! I'd like to argue that this workaround isn't nearly good enough for this to not be prioritized.
Comment 24•11 months ago
•
|
||
I'd disable widget.windows.windowsappsdk.enabled for a quick fix (Because this also breaks double clicking on the sidebar with window-dragging enabled, which we desperately need for Zen, caused by the root issue of this bug) for now.
| Reporter | ||
Comment 25•11 months ago
|
||
To be clear, I'm still actively working on this; I have a fix but it seems to cause some other problems relating to fullscreen/maximized windows.
Updated•11 months ago
|
Comment 33•11 months ago
|
||
Current patch is too risky for 145, we'll try to target 146.
Comment 34•11 months ago
|
||
:gstoll, I see the patch is still in progress.
This is the last week of Beta for Fx146, so there is little time left to uplift a fix if we have one.
| Reporter | ||
Comment 35•11 months ago
|
||
I’m OOTO (although can hop on to do something if needed) but when I left :handyman was looking at this and thinking about the risk level.
Comment 36•11 months ago
|
||
Thanks, it's not a new bug in Fx146 so won't block.
It was just more a heads up that there is little time left.
Comment 37•11 months ago
|
||
Thanks Donal. We're going to hold off on the uplifts and instead target 147. We've got some wrinkles to iron out first.
Updated•11 months ago
|
Comment 38•11 months ago
|
||
Changing Fx146 to fix-optional. When we have a fix and some bake-time, we should uplift for a Fx146 dot release ride-along.
| Assignee | ||
Comment 39•11 months ago
|
||
So I could briefly reproduce this, but after an OS update I can't anymore, can somebody confirm whether they can or can't reproduce on:
Version 25H2
OS build 26200.6899
Experience Windows Feature Experience Pack 1000.26100.253.0
?
| Assignee | ||
Comment 40•11 months ago
|
||
Ok, it's back somehow. But I see what's going on.
| Assignee | ||
Comment 41•11 months ago
|
||
See the comment for reasoning. WM_NCCALCSIZE wasn't getting called, and
we rely on that to get the right client area on things like maximized
windows.
| Assignee | ||
Comment 42•11 months ago
|
||
nsIWidget already has a member for this.
Comment 43•11 months ago
|
||
(In reply to Emilio Cobos Álvarez [:emilio] from comment #40)
Ok, it's back somehow. But I see what's going on.
26200.6899 with Experience Windows Feature Experience Pack 1000.26100.253.0 are not the latest release versions of Win11 25H2, and the bug remains on 26200.7171 / 1000.26100.265.0 which are.
| Assignee | ||
Comment 44•11 months ago
|
||
Yeah, what's going on is that the app sdk is overwriting our WNDPROC and that messes with our NCCALCSIZE handling among others.
Comment 45•11 months ago
|
||
Comment 46•11 months ago
|
||
| Assignee | ||
Comment 47•11 months ago
|
||
Comment on attachment 9529537 [details]
Bug 1993474 - Ensure our WNDPROC has precedence over WinAppSDK's. r=gstoll,#win-reviewers
Beta/Release Uplift Approval Request
-
User impact if declined/Reason for urgency: See list of dupes.
-
Is this code covered by automated tests?: Yes
-
Has the fix been verified in Nightly?: No
-
Needs manual test from QE?: Yes
-
If yes, steps to reproduce: The specific configurations affected are not super clear. What worked for me was having:
-
Primary monitor with scale 150%
-
Secondary monitor with scale 100%
In such cases, putting a maximized firefox window on the second monitor always caused the issue.
- List of other uplifts needed: none
- Risk to taking this patch: Low
- Why is the change risky/not risky? (and alternatives if risky): Makes behavior more similar to pre-regression (winappsdk disabled). It'd be a one liner to back out.
- String changes made/needed: none
- Is Android affected?: No
| Assignee | ||
Updated•11 months ago
|
Comment 48•11 months ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/a29551a96851
https://hg.mozilla.org/mozilla-central/rev/96a01fda50b6
Updated•11 months ago
|
Comment 49•11 months ago
|
||
Emilio, double-checking, should both 433cc8224790 and a29551a96851 be uplifted?
| Assignee | ||
Comment 50•11 months ago
|
||
No need for the second patch. Doesn't hurt either tho.
Updated•11 months ago
|
Updated•11 months ago
|
Comment 51•11 months ago
|
||
| uplift | ||
Updated•11 months ago
|
Comment 52•11 months ago
|
||
| uplift | ||
Comment 53•11 months ago
|
||
Uplift reverted in beta for causing bug 2002986, let's try to have a better fix for RC :)
Updated•11 months ago
|
Comment 54•11 months ago
|
||
Hello,
I was able to reproduce the issue on Windows 11x64, using Nightly 145.0a1 (2025-10-09) and Firefox Release 145.0.2. The Firefox tabs and the new tab button are not clickable when the cursor is at the top of the screen.
Setting widget.windows.windowsappsdk.enabled to false fixes the issue, but it also brings up the Windows photo viewer issue, where a big white line is present at the top of the screen when on an external monitor.
Verified on Windows 11x64, using the latest Nightly 147.0a1 (2025-11-28), and the issue no longer reproduces. The tabs are now accessible even when the cursor is at the very top of the screen. Setting widget.windows.windowsappsdk.enabled to false does not change anything, and the tabs are still accessible, as expected.
We will verify this in Beta as well, once the new build becomes available, and update the corresponding flags and status accordingly.
However, the issue still reproduces for the address bar and some toolbar buttons when Vertical tabs is enabled. The sidebar button, the first two buttons after it, and the address bar are not accessible when the cursor is at the top of the screen. This is not the case for the other buttons. See attached video.
Should I log a separate bug for this specific scenario, or should I reopen this bug?
Thank you.
Comment 55•11 months ago
|
||
| Assignee | ||
Comment 56•11 months ago
|
||
Should I log a separate bug for this specific scenario, or should I reopen this bug?
No, that is unrelated to this bug. I'd file a bug about the inconsistency of the various hit targets tho.
Comment 57•11 months ago
|
||
Comment on attachment 9529537 [details]
Bug 1993474 - Ensure our WNDPROC has precedence over WinAppSDK's. r=gstoll,#win-reviewers
Adding the uplift request back since this was backed out of beta.
It's too late for Fx146 beta, but this could be changed to a release uplift request later.
Updated•11 months ago
|
Updated•11 months ago
|
Comment 59•11 months ago
|
||
Comment on attachment 9529537 [details]
Bug 1993474 - Ensure our WNDPROC has precedence over WinAppSDK's. r=gstoll,#win-reviewers
Approved for 146.0rc1
Updated•11 months ago
|
Updated•11 months ago
|
Comment 60•11 months ago
|
||
| uplift | ||
Comment 61•11 months ago
•
|
||
I'm in the beta channel and just upgraded to 146 "final" and can confirm this breaks Fitts' law for the first few buttons when in vertical tabs mode (though it also seems to work sometimes? it's very odd). Windows display scaling is set to 200%, so no weird non-integer scaling rounding error weirdness is behind this.
Comment 62•11 months ago
|
||
Verified on Windows 11x64, using the latest Nightly 147.0a1 (2025-12-01), and latest Beta 146.0 (RC1).
The issue no longer reproduces. The tabs are now accessible even when the cursor is at the very top of the screen.
| Reporter | ||
Comment 63•11 months ago
|
||
Release Note Request (optional, but appreciated)
[Why is this notable]: This bug has a lot of duplicates (and SUMO/Reddit threads)
[Affects Firefox for Android]: No
[Suggested wording]: Fixed an issue that prevented Windows users from selecting a tab when the cursor was at the top of the screen and Firefox was maximized on some kinds of monitors.
[Links (documentation, blog post, etc)]:
Comment 66•11 months ago
|
||
| uplift | ||
Comment 67•11 months ago
|
||
This is being reverted in 146.0rc2 for causing bug 2004018. It will remain in 147 as there is a potential fix in the works for the regressor.
Updated•11 months ago
|
Updated•11 months ago
|
Comment 68•11 months ago
|
||
Hello,
We have verified the fix revert in 146.0rc2, and the Firefox View button can be clicked using the topmost row of pixels in a maximized window while on a single-screen setup. However, the Firefox View button cannot be clicked when using an external monitor. (The original issue reproduces as it did before the fix.)
Thank you.
Comment 70•11 months ago
|
||
Moved to the Fx147 relnotes.
Description
•