Closed Bug 592887 Opened 14 years ago Closed 13 years ago

Reorganize History Menu

Categories

(Firefox :: Menus, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 625322

People

(Reporter: zpao, Assigned: soapy)

Details

(Keywords: polish)

Attachments

(2 files, 4 obsolete files)

After a chat with Faaborg, we're thinking it best to shuffle some things around in the History menu.

We would like the menu to contain (as closely as possible) the same entries in the same order as the history menu off the Firefox button. We're also thinking it best to remove the "Tabs from other computers entry" from the history menu.

Bug 588482 is going to add a "Restore Last Session" entry to both menus, so I'll hold off the changes until then.
A little ascii menu based on what we talked about

History
-------
Back
Forward
Home
-------
Show All History
-------
Clear Recent History (move from tools)
-------
Restore Previous Session
Recently Closed Tabs
Recently Closed Windows
------
the
last
bunch
of
history
entries

Josh - I know you've done a bunch of menu stuff. Not sure if you'd be interested in taking this on. It's mostly just shuffling things around with some removing from browser-places.js as well.
Assignee: nobody → soapyhamhocks
Attached patch Wip patch v1 (obsolete) — Splinter Review
Wip patch, will update when 588482 lands.
(In reply to comment #2)
> Created attachment 471815 [details] [diff] [review]
> Wip patch v1
> 
> Wip patch, will update when 588482 lands.

Thanks for doing this Josh. I just landed bug 588482.

Might be good to have mconnor & faaborg weigh in here on the need (or lack thereof) for "tabs from other computers".
I think it makes the most sense in the tab overflow menu, since that is where tabs live.  History just isn't a good mapping to active tabs.
Just wanted to say my wip patch does work on the latest trunk. Can someone give me some feedback on it?
(In reply to comment #5)
> Just wanted to say my wip patch does work on the latest trunk. Can someone give
> me some feedback on it?

Looks like a good start. This doesn't remove the tabs from other computers item & doesn't do the majority of the reordering in the history menu though.
Attached patch Patch v1 (obsolete) — Splinter Review
Removed "sync-tabs-menuitem".
Attachment #471815 - Attachment is obsolete: true
Attached image Screenshot of Patch v1
(In reply to comment #8)
> Created attachment 475261 [details]
> Screenshot of Patch v1

Looks right to me, I'll just poke Alex for ui-r? Also, I think it best to remove the code that's going to enable/disable the "tabs from other computers" from browser-places.js while we're dumping the menuitem (and the code expects getElementById to succeed).

http://mxr.mozilla.org/mozilla-central/source/browser/base/content/browser-places.js#739 and the call to it a few lines down.
Attachment #475261 - Flags: ui-review?(faaborg)
Attached patch Patch v2 (obsolete) — Splinter Review
Removed some unnecessary code for "tabs from other computers" from browser-places.js.
Attachment #475259 - Attachment is obsolete: true
Attachment #475261 - Flags: ui-review?(faaborg) → ui-review+
Comment on attachment 475299 [details] [diff] [review]
Patch v2

>+                <menuitem id="sanitizeItem"
>+                          accesskey="&clearRecentHistory.accesskey;"
>+                          label="&clearRecentHistory.label;"
>+                          key="key_sanitize"
>+                          command="Tools:Sanitize"/>
>+                <menuseparator/>

Need to remove the accesskey here.

Can you add ids to the new menuseparators?
Attachment #475299 - Flags: review?(dao) → review-
Is "Tabs from other computers" still keyboard-accessible with this patch?
(In reply to comment #12)
> Is "Tabs from other computers" still keyboard-accessible with this patch?

I assume so - it's still in the alltabs-popup. But I don't know much about whether or not that's keyboard-accessible
It isn't, so this patch makes that feature inaccessible, which sucks a fair bit...
Attached patch Patch v3 (obsolete) — Splinter Review
Attachment #475299 - Attachment is obsolete: true
Attachment #476660 - Flags: feedback?(dao)
This needs to actually depend on bug 597308, and that needs to be a beta7 blocker if you want this for Firefox 4.
Depends on: 597308
(Alternatively don't remove "Tabs from other computers" here and take care of it in bug 597308.)
Component: General → Menus
QA Contact: general → menus
Attachment #476660 - Flags: feedback?(dao) → feedback-
Attached patch Patch v4Splinter Review
Attachment #476660 - Attachment is obsolete: true
Comment on attachment 478503 [details] [diff] [review]
Patch v4

>+                <menuseparator id="historyMenuNavSeperator"/>
>+                <menuseparator id="historyMenuAllHistorySeperator"/>
>+                <menuseparator id="historyMenuSanitizeSeperator"/>

The ids seem rather strange. Maybe insert an underscore after historyMenu?

>-                <menuseparator id="startHistorySeparator"/>
>-                <menuseparator id="endHistorySeparator"
>-                               class="hide-if-empty-places-result"
>-                               builder="end"/>

Is builder="end" safe to remove?

>+                <menuseparator id="historyMenuListSeparator"
>+                               class="hide-if-empty-places-result"/>

This should probably be called startHistorySeparator for backward compatibility.
(In reply to comment #20)
> >+                <menuseparator id="historyMenuNavSeperator"/>
> >+                <menuseparator id="historyMenuAllHistorySeperator"/>
> >+                <menuseparator id="historyMenuSanitizeSeperator"/>
> 
> The ids seem rather strange. Maybe insert an underscore after historyMenu?

That's the way how mostly all other menu items are designed. Would be nice when we could stay consistent at least inside one menu and don't introduce one more different style.

http://mxr.mozilla.org/mozilla-central/source/browser/base/content/browser-menubar.inc#339
The reordering was done in bug 625322, so duping to that.
Bug 631805 has been filed to move "Clear Recent History" from the Tools menu to the History menu.
Bug 631805 is about Removing "Tabs from Other Computers" from the History menu.
Status: NEW → RESOLVED
Closed: 13 years ago
No longer depends on: 597308
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: