Closed Bug 1689372 Opened 3 years ago Closed 3 years ago

Simplify History subview

Categories

(Firefox :: Menus, task, P1)

task

Tracking

()

VERIFIED FIXED
87 Branch
Tracking Status
firefox87 --- verified

People

(Reporter: mconley, Assigned: emmamalysz)

References

(Blocks 1 open bug)

Details

(Whiteboard: [proton-hamburger-menu])

Attachments

(1 file)

This is something that can ship pre-Proton, so it can happen directly on PanelUI-history here: https://searchfox.org/mozilla-central/rev/0dfbe5a699cc6c73cf8c14d1aa10ba10ef3ec8fa/browser/base/content/browser.xhtml#980-1022

The new History subview structure should be:

History  <header>
<separator>
Clear Recent History...
<separator>
Recent History <subheader>
<list of recent history>
<separator>
Recently Closed Tabs >
Recently Closed Windows >
<separator>
Manage History

What we need to do:

  1. Remove the "View History Sidebar" item
  2. Put the "Recently Closed Tabs" and "Recently Closed Windows" items below the "Recent History" list.
  3. Convert the "Show All History" into a normal toolbarbutton subview item, and place it below the "Recently Closed Windows" entry, after a separator
  4. Ensure that the "Recently Closed Tabs" submenu entry is disabled if there are not recently closed tabs. Similarly, the "Recently Closed Windows" submenu entry should be disabled if there are no recently closed windows.

One thing we need to figure out with UX is whether or not we're going to change the limit on how many Recent History to show - that list can get quite long. Do we limit the number to show, or do we make the list a fixed maximum height with a scrollbar? Or something else entirely?

Remember when updating strings to ensure that they're not re-used elsewhere - if so, double-check that the propagated change is acceptable with UX, or create a new string just for the menu.

Also remember that if you're updating a string, you still have to update the ID of it so that our localizers know to re-translate.

(Naturally, any tests that rely on the old structure or old behaviours will need to be modified as well)

Assignee: nobody → emalysz
Severity: -- → N/A
Priority: -- → P1
Status: NEW → ASSIGNED
Pushed by emalysz@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/a6d2e03d3069
simplify history panel r=mconley,fluent-reviewers,flod

Backed out for failures on browser_history_recently_closed.js

backout: https://hg.mozilla.org/integration/autoland/rev/a7d2305ae8aa4989f66f9934552555e95f6241d8

push: https://treeherder.mozilla.org/jobs?repo=autoland&revision=a6d2e03d3069e2bcbda6aa44ad090c3367b2f3d0&group_state=expanded&selectedTaskRun=aGyIh4dXRW6XPwqURY26pw.0

failure log: https://treeherder.mozilla.org/logviewer?job_id=328872501&repo=autoland&lineNumber=3451

[task 2021-02-04T18:55:08.603Z] 18:55:08 INFO - TEST-PASS | browser/components/customizableui/test/browser_history_recently_closed.js | History button appears in Panel Menu - {"_inheritedElements":{".toolbarbutton-icon":{},".toolbarbutton-menu-dropmarker":null},"initializedAttributeInheritance":true} == true -
[task 2021-02-04T18:55:08.603Z] 18:55:08 INFO - Console message: [JavaScript Warning: "browser.ui.interaction.pinned_overflow-menu - Unknown scalar."]
[task 2021-02-04T18:55:08.604Z] 18:55:08 INFO - Buffered messages finished
[task 2021-02-04T18:55:08.606Z] 18:55:08 INFO - TEST-UNEXPECTED-FAIL | browser/components/customizableui/test/browser_history_recently_closed.js | Recently closed tabs button disabled - "" == true - JS frame :: chrome://mochitests/content/browser/browser/components/customizableui/test/browser_history_recently_closed.js :: testRecentlyClosedDisabled :: line 59
[task 2021-02-04T18:55:08.606Z] 18:55:08 INFO - Stack trace:
[task 2021-02-04T18:55:08.606Z] 18:55:08 INFO - chrome://mochitests/content/browser/browser/components/customizableui/test/browser_history_recently_closed.js:testRecentlyClosedDisabled:59
[task 2021-02-04T18:55:08.607Z] 18:55:08 INFO - TEST-PASS | browser/components/customizableui/test/browser_history_recently_closed.js | Recently closed windows button disabled - "true" == true -

Flags: needinfo?(emalysz)
Flags: needinfo?(emalysz)
Pushed by emalysz@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/14a7af25b9f4
simplify history panel r=mconley,fluent-reviewers,flod
Pushed by emalysz@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/dfbbd3864b2f
simplify history panel r=mconley,fluent-reviewers,flod
Pushed by emalysz@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/400050be36f0
simplify history panel r=mconley,fluent-reviewers,flod
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 87 Branch
Flags: needinfo?(emalysz)
Regressions: 1691896
Regressions: 1691948
Regressions: 1694700
No longer regressions: 1694700
Regressions: 1705179

Verified - Fixed in latest Fx 87.0, Fx 88.0.1, Fx 89.0b10 and Nightly 90.0a1 using Windows 10, Ubuntu 20.04 and MacOS 11.

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: