Closed Bug 1863692 Opened 2 years ago Closed 2 years ago

Window location and size are not remembered when using restore session

Categories

(Firefox :: Session Restore, defect, P1)

Desktop
All
defect

Tracking

()

VERIFIED FIXED
122 Branch
Tracking Status
firefox-esr115 --- unaffected
firefox119 --- wontfix
firefox120 --- wontfix
firefox121 --- wontfix
firefox122 --- verified

People

(Reporter: csasca, Assigned: sclements)

References

(Regression)

Details

(Keywords: nightly-community, regression, Whiteboard: [fidefe-firefox-view])

Attachments

(2 files)

Found in

  • Firefox 120.0b7

Affected versions

  • Firefox 120.0b7
  • Firefox 121.0a1

Tested platforms

  • Affected platforms: Windows 11, macOS 13.6.1, Ubuntu 22.04
  • Unaffected platforms:

Steps to reproduce

  1. Launch Firefox
  2. Access a couple websites in new windows
  3. Modify the height/width of the windows and then exit Firefox via Menu
  4. Reopen Firefox with the same profile
  5. Click the Restore Previous Session option from the Hamburger menu

Expected result

  • The previous window size and location on screen are preserved as before

Actual result

  • The window location and size are not remembered when using restore session

Regression range

  • Will see for a regression

Additional notes

  • The issue can be seen in the attachment

:csasca, if you think that's a regression, could you try to find a regression range using for example mozregression?

:sclements, since you are the author of the regressor, bug 1820660, could you take a look?

For more information, please visit BugBot documentation.

Flags: needinfo?(sclements)

Thanks for catching that. I'll try to get a fix in for 121.

Assignee: nobody → sclements
Status: NEW → ASSIGNED
Flags: needinfo?(sclements)
Priority: -- → P1
Whiteboard: [fidefe-firefox-view]

Thanks for filing the bug. I was able to reproduce this locally, and it looks like what's happening here is that whatever the first window's size is when the browser is closed, that is used to determine the size of all restored windows, not just the first one. I think its due to these window attributes we're transferring over when handling pinned tabs (and was changed in bug 1820660 to handle closedTabs as well) when a session restore is deferred on startup per here.

Duplicate of this bug: 1865700

Set release status flags based on info from the regressing bug 1820660

Pushed by sclements@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/e1a0d895f3a9 Only transfer window attributes for pinned tabs with deferred sessions r=sessionstore-reviewers,dao
Pushed by sclements@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/aa657711db7a Only transfer window attributes for pinned tabs with deferred sessions r=sessionstore-reviewers,dao
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 122 Branch
Flags: needinfo?(sclements)

The patch landed in nightly and beta is affected.
:sclements, is this bug important enough to require an uplift?

  • If yes, please nominate the patch for beta approval.
  • If no, please set status-firefox121 to wontfix.

For more information, please visit BugBot documentation.

Flags: needinfo?(sclements)
Flags: needinfo?(sclements)

The issue is fixed on Firefox 122.0a1 (2023-12-07). Tests were performed on macOS 13.6.1, Ubuntu 22.04 and Windows 11.

Status: RESOLVED → VERIFIED
Regressions: 1868526
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: