Closed Bug 1922777 Opened 1 year ago Closed 4 months ago

Sidebar would not remember last used panel

Categories

(Firefox :: Sidebar, defect, P1)

Firefox 128
Desktop
Windows 11
defect

Tracking

()

VERIFIED FIXED
142 Branch
Tracking Status
firefox-esr115 --- unaffected
firefox-esr128 --- wontfix
firefox-esr140 --- verified
firefox131 --- wontfix
firefox132 --- wontfix
firefox133 --- wontfix
firefox138 --- wontfix
firefox139 --- wontfix
firefox140 --- wontfix
firefox141 + verified
firefox142 --- verified

People

(Reporter: alice0775, Assigned: sfoster)

References

(Regression)

Details

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

Attachments

(5 files)

Steps to reproduce:

  1. Open Firefox with new profile
  2. Put Sidebars toolbutton on Nav bar from Customize toolbar
  3. Click the Sidebars toolbutton
  4. Change sidebar panel from sidebar header to History from Bookmarks.
  5. Close the Sidebar
    --- So, last used sidebar is History
  6. Close the browser
  7. Re-open the browser with the same profile of step 1
  8. Click the Sidebars toolbutton

Actual results:
Sidebar opens Bookmarks panel

Expected results:
Sidebar should open last used panel. In this case History panel

Regression window:
https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=26e8012d5da938871783505e3753b681ab8cb186&tochange=e86e777fced482506de767727a313be25003c673

:nsharpley, since you are the author of the regressor, bug 1885894, could you take a look? Also, could you set the severity field?

For more information, please visit BugBot documentation.

Flags: needinfo?(nsharpley)

I think this is a dupe of bug 1908019, right?

Flags: needinfo?(alice0775)

(In reply to :Gijs (he/him) from comment #2)

I think this is a dupe of bug 1908019, right?

I do not think this is duplication.
Because, It reproduced with newly created profile and I am not using "Clear Recent History" and any related settings.

Flags: needinfo?(alice0775)

Not a duplication, but I think a bug 1908019 patch would solve it. I've picked that up from :sclements, so in progress.

Flags: needinfo?(nsharpley)
Severity: -- → S3
Priority: -- → P3
Whiteboard: [fidefe-sidebar]
See Also: → 1922730
See Also: 1922730

Was this fixed by bug 1908019?

Depends on: 1908019

(In reply to Mathew Hodson from comment #5)

Was this fixed by bug 1908019?

I can still reproduce this on Nightly134.0a1(20241029155057) Windows11.

(In reply to Mathew Hodson from comment #5)

Was this fixed by bug 1908019?

No, that bug was for a different issue altogether.

Status: NEW → RESOLVED
Closed: 11 months ago
Duplicate of bug: 1921536
Resolution: --- → DUPLICATE

Not duplicate. Because of sidebar.revamp is false (default) in this bug.

Status: RESOLVED → REOPENED
No longer duplicate of bug: 1921536
Resolution: DUPLICATE → ---

(In reply to Alice0775 White from comment #9)

Not duplicate. Because of sidebar.revamp is false (default) in this bug.

It's being treated as a duplicate because of how sidebar state properties are now stored - which is entirely in session restore - so it doesn't matter practically whether a user is using the new or old sidebar the fix is the same (and since it is caused by the work in bug 1892033, which the duped bug was also regressed by).

Status: REOPENED → RESOLVED
Closed: 11 months ago9 months ago
Duplicate of bug: 1921536
Resolution: --- → DUPLICATE

This is not fixed yet. I can reproduce the issue on Nightlt140.0a1 139.0b7 138.0.2 as well as esr128.10.

Status: RESOLVED → REOPENED
No longer duplicate of bug: 1921536
Resolution: DUPLICATE → ---

Can you give some context on why this was reopened please?

Flags: needinfo?(alice0775)

(In reply to Sarah Clements [:sclements] from comment #12)

Can you give some context on why this was reopened please?

Bug 1921536 did not fix the issue from STR of comment#0.
I can still reproduce the issue on Nightlt140.0a1 139.0b7 138.0.2 as well as esr128.10.

Thanks

Flags: needinfo?(alice0775)
Duplicate of this bug: 1969785
Duplicate of this bug: 1970325

Starting from version 127, the panel is broken
Last working version 126.0.1
Firefox 126.0.1 https://youtu.be/3q8It2O97pQ
Firefox 139.0.1+ https://youtu.be/-30dTH3VVqk

Any news on the fix? It's starting to get annoying.

Duplicate of this bug: 1971381

(In reply to Alexey71 from comment #18)

Any news on the fix? It's starting to get annoying.

Not as yet. Have you considered enabling the new sidebar via the Firefox settings ("Show sidebar")? If that doesn't work for you, can you share more on why?

(In reply to :Gijs (he/him) from comment #20)

(In reply to Alexey71 from comment #18)

Any news on the fix? It's starting to get annoying.

Not as yet. Have you considered enabling the new sidebar via the Firefox settings ("Show sidebar")? If that doesn't work for you, can you share more on why?

The new side panel also does not remember the last state. It also does not remember the sorting selection. After restarting, you have to select everything again. I need quick access with one click to the complete history sorted by last visit. Everything was fine until Firefox version 127 ((

(In reply to Alexey71 from comment #21)

(In reply to :Gijs (he/him) from comment #20)

(In reply to Alexey71 from comment #18)

Any news on the fix? It's starting to get annoying.

Not as yet. Have you considered enabling the new sidebar via the Firefox settings ("Show sidebar")? If that doesn't work for you, can you share more on why?

The new side panel also does not remember the last state. It also does not remember the sorting selection. After restarting, you have to select everything again. I need quick access with one click to the complete history sorted by last visit. Everything was fine until Firefox version 127 ((

Thanks for flagging this - we've captured this separately in bug 1972168.

I'm not able to reproduce this. And I've tried going back to 138 with mozregression and still no luck. Here's what I'm doing:

  • Create a new profile, enable "Open previous windows and tabs"
  • Open the (legacy, not revamp) history sidebar (ctrl + H)
  • Quit the browser

At this point I can confirm that the window data saved in sessionstore.jsonlz4 has an entry for sidebar like { "command": "viewHistorySidebar" }. When I restart the browser, the sidebar re-opens with the history panel as expected. Then, I use mozregression with this profile:

./mach mozregression --find-fix --bad 138 --profile '/path/to/saved/history-sidebar-profile' --profile-persistence=clone-first

The browser opens and the sidebar is already open with the history panel. And I'm unable to find a version where this is not the case - so I guess I'm missing a step or condition? If the sidebar state was simply not being saved, we'd expect the sidebar to just be closed, not open at the bookmarks panel.

If this still reproduces for you with a clean profile, can you attach the sessionstore.jsonlz4 that is saved after you quit the browser? (this has tab urls and history etc in it, so please only share this from clean profile where you've just enabled session restore and opened the history sidebar). Anything else I'm missing?

Flags: needinfo?(alice0775)

Your STR is unrelated to this bug.

Before Quit the browser, you should close the sidebar.
Then relaunch browser and open sidebar from the legacy sidebar toolbar button.

I can still reproduce the issue with STR of comment#0 on Nightly141.0a1 Windows11.

Flags: needinfo?(alice0775)

@Sam Foster

Can you reproduce the issue like this?:
https://youtu.be/8urykue_fow

Flags: needinfo?(sfoster)

sessionstore.jsonlz4 from version 126.0.1, where it works fine

sessionstore.jsonlz4 from version 127.0. Starting with this version, there is a bug.

Ok thanks both of you. This looks to have been intentional, there's even a comment explaining that we'll choose not to remember last-used sidebars when the panel is closed. I'm looking through notes from that bug and I don't see where this requirement came from - I'll need to confirm which is the behavior we want.

Flags: needinfo?(sfoster)
Assignee: nobody → sfoster

[Tracking Requested - why for this release]: Regression from 128. This turned out to be a trivial fix.

@Sam Foster

What do you mean?

The bug is marked as tracked for firefox141 (nightly). However, the bug still has low priority and has low severity.

:pluk, could you please increase the priority and increase the severity for this tracked bug? Given that it is a regression and we know the cause, we could also simply backout the regressor. If you disagree with the tracking decision, please talk with the release managers.

For more information, please visit BugBot documentation.

Flags: needinfo?(pluk)
Flags: needinfo?(pluk)
Priority: P3 → P1

I plan to land this after the merge and consider an uplift at that point.

Pushed by sfoster@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/0653f923d96b https://hg.mozilla.org/integration/autoland/rev/7392c3a13f8c Retain the last-used sidebar view/command id even when the panel is closed. r=sidebar-reviewers,nsharpley
Status: REOPENED → RESOLVED
Closed: 9 months ago4 months ago
Resolution: --- → FIXED
Target Milestone: --- → 142 Branch

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

For more information, please visit BugBot documentation.

Flags: needinfo?(sfoster)
Attachment #9497737 - Flags: approval-mozilla-beta?

firefox-beta Uplift Approval Request

(In reply to BugBot [:suhaib / :marco/ :calixte] from comment #39)

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

I think this would be low-risk to uplift.

Flags: needinfo?(sfoster)
Attachment #9497737 - Flags: approval-mozilla-beta? → approval-mozilla-beta+

Do we want this on ESR140 also?

Flags: needinfo?(sfoster)
Depends on: 1921536

(In reply to Ryan VanderMeulen [:RyanVM] from comment #44)

Do we want this on ESR140 also?

If possible, yes I don't think it would hurt. Do I need a new patch for that, or can I just ask lando uplift attachment 9497737 [details]?

Flags: needinfo?(sfoster)

The patch appears to cherry-pick cleanly, so a Lando request should suffice.

Attachment #9499886 - Flags: approval-mozilla-esr140?

firefox-esr140 Uplift Approval Request

Attachment #9499886 - Flags: approval-mozilla-esr140? → approval-mozilla-esr140+
QA Whiteboard: [qa-triage-done-c142/b141] [qa-ver-needed-c142/b141]
Flags: qe-verify+

I was able to reproduce the issue on Win11x64 using Firefox build 133.0a1(20241004205955).
Verified as fixed on Win11x64 using Firefox builds 140.1.0esr / 141.0 / 142.0a1.

QA Whiteboard: [qa-triage-done-c142/b141] [qa-ver-needed-c142/b141] → [qa-triage-done-c142/b141] [qa-ver-done-c142/b141]
Flags: qe-verify+
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: