Closed Bug 2084307 Opened 1 month ago Closed 1 month ago

When FULLSCREEN (f11) is enabled, clicking and dragging a tab to a different monitor causes the tab to expand on the original monitor screen of the intended destination.

Categories

(Firefox :: Tabbed Browser, defect)

Firefox 158
defect

Tracking

()

RESOLVED FIXED
160 Branch
Tracking Status
firefox-esr115 --- unaffected
firefox-esr153 --- unaffected
firefox158 --- wontfix
firefox159 --- wontfix
firefox160 --- fixed

People

(Reporter: leopz_clp, Assigned: spohl)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 external file)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:158.0) Gecko/20100101 Firefox/158.0

Steps to reproduce

with at least 2 monitors, left click and hold a tab while fullscreen (f11) is active, drag it to a different monitor.

Actual results

The tab you dragged expands back on the original monitor.

Expected results

It should've expanded on the second monitor.

The original behaviour can be observed by re-doing these steps while Fullscreen mode is disabled. This issue has started since the new firefox layout changes.

The Bugbug bot thinks this bug should belong to the 'Firefox::Tabbed Browser' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Tabbed Browser

hackbot, find a regressor here

Flags: needinfo?(hackbot)

Likely regressor: bug 2069666 (landed in 159 and was uplifted to 158 beta, which matches the reporter's 158).

That patch added a window.fullScreen branch to handle_dragend in browser/components/tabbrowser/content/drag-and-drop.js. When the source window is fullscreen, the branch no longer passes screenX/screenY to replaceTabsWithWindow(), so the new window "picks its own position". The OS then places it at its default spot instead of at the drop point, which on Windows means the original monitor. Bug 2069666 was fixing a macOS problem (the clamped position landed in the corner of the fullscreen window), but this branch isn't limited to macOS. browser_tab_detach_fullscreen.js asserts the no-position behaviour on every platform.

A fix probably needs to keep passing a drop position in fullscreen, at least so the window opens on the screen under the cursor (e.g. the availX/availY of that screen), or limit the no-position behaviour to macOS. I couldn't bisect or reproduce this here because it needs two monitors, so this is from reading the code.


If you'd like to provide feedback on this comment, please use the 👍 or 👎 reaction.

Flags: needinfo?(hackbot)

Thank you, looking into it!

Assignee: nobody → spohl.mozilla.bugs
Severity: -- → S3
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Pushed by spohl@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/f00882fd75b7 https://hg.mozilla.org/integration/autoland/rev/07ef7fb85fa3 Limit automatic fullscreen tab-detachment positioning to macOS. r=tabbrowser-reviewers,kcochrane
Status: ASSIGNED → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 160 Branch

I would like to clarify that my issue is on windows 11. (i don't know if mac fixes apply to windows too).

Thank you.

(In reply to leopz_clp from comment #8)

I would like to clarify that my issue is on windows 11. (i don't know if mac fixes apply to windows too).

Thank you.

Yes, the issue here was that a previous change was not limited to macOS, when it should have been. If you'd like, you could confirm that this is working as expected again in current Nightlies and confirm for us here. Thank you!

QA Whiteboard: [qa-triage-done-c161/b160] [qa-ver-needed-c161/b160]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: