Closed Bug 391125 Opened 17 years ago Closed 15 years ago

cannot hide open in tabs and friends menuitem(s) from bookmark containers

Categories

(Firefox :: Bookmarks & History, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
Firefox 3.6a1

People

(Reporter: logan+mozilla-bmo, Assigned: mak)

References

Details

Attachments

(1 file, 3 obsolete files)

Attached patch patch v1 (obsolete) — Splinter Review
The .openintabs-menuitem and .openintabs-menuseparator classes on the elements related to Open All in Tabs bookmark menuitems were never carried over from the old bookmarks stuff. I rather liked being able to hide these..

a userChrome.js alternative (should this go unfixed) would be to kill the onpopupshowing attribute from #bookmarksMenuPopup or override the BookmarksEventHandler.onPopupShowing function.
Attached patch patch v1.0 (obsolete) — Splinter Review
could make sense for themes
Assignee: nobody → mak77
Attachment #275461 - Attachment is obsolete: true
Status: NEW → ASSIGNED
Attachment #387634 - Flags: review?(dao)
Attachment #387634 - Flags: review?(dao) → review-
Comment on attachment 387634 [details] [diff] [review]
patch v1.0

> openintabs-menuseparator
> openlivemarksite-menuitem
> openintabs-menuitem

This seems like an odd setup, because the separator is named as if it separated only the "open all in tabs" menu item from the other items, although it separates the "open site" menu item as well.

Also, use .className instead of .setAttribute?
(In reply to comment #2)
> (From update of attachment 387634 [details] [diff] [review])
> > openintabs-menuseparator
> > openlivemarksite-menuitem
> > openintabs-menuitem
> 
> This seems like an odd setup, because the separator is named as if it separated
> only the "open all in tabs" menu item from the other items, although it
> separates the "open site" menu item as well.

While this is true, it's only to underline those names come from previous FX versions, so it could be wise to maintain them for compatibility with themes.
The separator includes also open site for livemarks, while it's separating only open in tabs for most common folders... btw, if we want to discard old naming could be containerOptions-menuseparator maybe.
Attached patch patch v1.1 (obsolete) — Splinter Review
fixed comments
Attachment #387634 - Attachment is obsolete: true
Attachment #391556 - Flags: review?(dao)
Summary: cannot hide open in tabs menuitem(s) from bookmarks (213787) → cannot hide open in tabs and friends menuitem(s) from bookmark containers
Comment on attachment 391556 [details] [diff] [review]
patch v1.1

>+      target._endOptSeparator.className = "containeroptions-menuseparator";

What's a "container option"? :(
Maybe bookmark-items-separator?
it's not separating items, would be even worst imo. it's separating items from actions available for that container... containeractions-menuseparator?
> it's not separating items, would be even worst imo. it's separating items from [...]

Well, it doesn't separate items from each other, but it does separate items from /something/, whatever that something is.

It took me a while to figure out why you chose "container"... It seems to be very places-specific terminology that's used mostly internally. It doesn't make a lot of sense as a generic class name, I think.
container is a generic enough term: an array is a container, a box is a container, a folder is a container, a bag is a container... not really Places specific, just this is separating items from action applicable to what contains them. i see you point, but i'm not sure i can find a better term, maybe bookmarks-actions-separator? but this can be applied also to queries reporting only history entries not bookmarked...

i don't like bookmark-items-separator because you can have other separators between items, as many as you will, and they won't obey this class, so it's confusing having a class that does not apply to what you expect.
By "generic" I meant a class name that can be clearly understood without specific knowledge about places. Without looking at places code, "container" can mean anything as you point out, so it's not particularly clear what it means in this case.

"actions" isn't great either, but I guess it's the best option so far. I'd be content with bookmarks-actions-menuseparator.
Attached patch patch v1.2Splinter Review
Attachment #391556 - Attachment is obsolete: true
Attachment #391840 - Flags: review?(dao)
Attachment #391556 - Flags: review?(dao)
Attachment #391840 - Flags: review?(dao) → review+
http://hg.mozilla.org/mozilla-central/rev/3b33f5df449e
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 3.6a1
Bug 451915 - move Firefox/Places bugs to Firefox/Bookmarks and History. Remove all bugspam from this move by filtering for the string "places-to-b-and-h".

In Thunderbird 3.0b, you do that as follows:
Tools | Message Filters
Make sure the correct account is selected. Click "New"
Conditions: Body   contains   places-to-b-and-h
Change the action to "Delete Message".
Select "Manually Run" from the dropdown at the top.
Click OK.

Select the filter in the list, make sure "Inbox" is selected at the bottom, and click "Run Now". This should delete all the bugspam. You can then delete the filter.

Gerv
Component: Places → Bookmarks & History
QA Contact: places → bookmarks
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: