Closed Bug 370105 Opened 17 years ago Closed 17 years ago

Remove ViewConfigurator and "system-area" cruft

Categories

(Firefox :: Bookmarks & History, defect, P2)

defect

Tracking

()

RESOLVED FIXED
Firefox 3 alpha4

People

(Reporter: asaf, Assigned: asaf)

References

Details

Attachments

(1 file, 1 obsolete file)

Unify commands and DND enabled-state for "special" folders in places views.

With the complex ViewConfigurator/peerDropIndex/_selectionOverlapsSystemArea concept in place, the enabled state of DND and various commands for "special" folders selection differs between places views.

For example, the properties dialog for the bookmarks toolbar folder can be opened from the context menu for its empty area, but not from the context menu of the the toolbar folder in the left pane of the organizer.

I will also use this bug to cleanup some obsolete code in the ViewConfigurator object.
Attached patch wip (obsolete) — Splinter Review
(In reply to comment #1)
> Created an attachment (id=254770) [details]
> wip
> 

>-    "folder=1":
>+    "folder=1&group=3&excludeItems=1&excludeQueries=1":

Then,
"place:folder=1&FOO=1&BAR=1" and
"place:folder=1&BAR=1&FOO=1"
are different places-URIs? gh.
Thus "wip", my plan is to remove ViewConfig(urator).
Aha. It sounds wonderful. Sorry for spamming.

BTW, my RFE is making it possible to create a new "special" folder by extesion
authors rather than hard scripting. 

e.g. 
When someone wants to create a "OS Native Bookmark Folder", such as IE
Favorites sync folder, then do you think the folder should be *special* as
well as the toolbar folder, on user's DND?
You should be able to use remote containers for that sort of container.
s/of container/of query.
> You should be able to use remote containers for that sort of query.

I doubt it.

Well, remote containers are designed for that sort of thing afaict. It probably doesn't work right yet, file bugs? This doesn't really belong here.
The point is it's special when the user is dragging an object, right? I don't
mind remote containers fail to work. Someone might happen to want to set his/her
remote container as *special*. Maybe it's not a remote container.

This will introduce some regression in the left pane of the organizer, I will address those after this patch is landed.
Attachment #254770 - Attachment is obsolete: true
Attachment #259355 - Flags: review?(sspitzer)
Comment on attachment 259355 [details] [diff] [review]
remove systemarea and viewconfigurator concepts

r=sspitzer

dietrich wrote over irc:

+// XXXmano: we should most/all of these constants to PlacesUtils

"s/should most/should move/"

asaf, since you have list of minor regressions that you know will result of this landing, can you log a spin off bug with them?
Attachment #259355 - Flags: review?(sspitzer) → review+
s/dietrich wrote over irc:/asaf wrote over irc:
Depends on: 374986
Filed bug 374986.
No longer depends on: 374986
Priority: -- → P2
Summary: Unify commands and DND enabled-state for "special" folders in places views → Remove ViewConfigurator and "system-area" cruft
Target Milestone: Firefox 3 → Firefox 3 alpha4
mozilla/browser/components/places/content/controller.js 1.137
mozilla/browser/components/places/content/menu.xml 1.67
mozilla/browser/components/places/content/toolbar.xml 1.77
mozilla/browser/components/places/content/tree.xml 1.58
mozilla/browser/components/places/content/utils.js 1.22
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Depends on: 374986
Resolution: --- → FIXED
Blocks: 374284
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

Created:
Updated:
Size: