Closed
Bug 321219
Opened 19 years ago
Closed 19 years ago
Separate places backend into toolkit
Categories
(Firefox :: Bookmarks & History, defect, P4)
Firefox
Bookmarks & History
Tracking
()
RESOLVED
FIXED
Firefox 2 beta1
People
(Reporter: benjamin, Assigned: benjamin)
References
Details
Attachments
(2 files, 1 obsolete file)
3.64 KB,
text/plain
|
Details | |
25.45 KB,
patch
|
bugs
:
review+
|
Details | Diff | Splinter Review |
per email, since we're getting rid of the mork history backend from the toolkit, we should replace it: the plan is to split the places backend into toolkit/ and keep the FE in browser/: this meansthat the toolkit will include all of the globalhistory/annotations/favicons backend inherent in places.
Comment 1•19 years ago
|
||
I'm getting more and more suspicious of putting anything into toolkit that isn't part of xre. What's the reason for doing this?
Assignee | ||
Comment 2•19 years ago
|
||
Ben, I don't know what your definition of "XRE" is, but the goal of this was to include the places backend in XULRunner so that other apps would have a replacement default implementation of a history backend.
Comment 3•19 years ago
|
||
I wonder how hard would it be to throw together a braindead simple implementation of the frozen history interface. I think that'd be preferable for other apps, rather than forcing them to carry this weight. It also makes the code location etc and module-ness of this component for fx somewhat cleaner.
Assignee | ||
Comment 4•19 years ago
|
||
I don't think that would be preferable; I understand that there are some XULRunner consumers who don't care about a history impl at all, but in terms of the power provided by places (even as a mostly-nonfrozen API) I think it would be a good addition. And there is a pretty clear delineation of the FF frontend of places and the backend providers.
Comment 5•19 years ago
|
||
Let me rephrase - I don't want the application specific functionality provided by nsNavHistory* to be located in toolkit. I think this is the wrong breakdown. I don't want to get into a speculation as to what other apps may or may not want - all we promise is nsIGlobalHistory*... the content of toolkit/ should converge on a smaller set of APIs and functionality that we promise to support. I don't think we can make that claim of this new history system.
Annotations, Favicon service etc are another story.
Assignee | ||
Comment 6•19 years ago
|
||
On the contrary, the toolkit/ should not be only those things that we "promise" to support, but those things that are useful to other applications.
If we're not going to move all of places into toolkit/, then I'm going to need to file bugs to move the feed-soup-parsing code into toolkit; and we still want to solve the "give toolkit-based apps the ability to sharing a common history store", which lands us back in providing a common implementation.
Basically, I'm saying that the places backend should not be considered app-specific functionality.
Sure, like all new functionality places is going to go through API churn and we're not pretending that its stable yet... that doesn't mean that it's not valuable or that it's somehow magically specific to Firefox.
Comment 7•19 years ago
|
||
We should have this figured out by b1.
Target Milestone: Firefox 2 → Firefox 2 beta1
Updated•19 years ago
|
Priority: -- → P2
Updated•19 years ago
|
Priority: P2 → P4
Assignee | ||
Comment 8•19 years ago
|
||
Because this is branch and trunk we can't do cvscopies, but this is the list of files that will be moved.
Assignee | ||
Updated•19 years ago
|
Attachment #216745 -
Flags: review? → review?(bugs)
Assignee | ||
Comment 9•19 years ago
|
||
Attachment #216747 -
Flags: review?(bugs)
Assignee | ||
Comment 10•19 years ago
|
||
Needed morkreader
Attachment #216747 -
Attachment is obsolete: true
Attachment #216760 -
Flags: review?(bugs)
Attachment #216747 -
Flags: review?(bugs)
Comment 11•19 years ago
|
||
I'm still not sold on this. I need to think about it a little bit. Will get back to you.
Comment 12•19 years ago
|
||
Things that need to be agreed upon before we can check in a patch like this:
- contributors to mozilla/browser can make changes to this code whenever they need to, regardless of the schedule of any other project
- we are free to change any non-frozen api in this code whenever and however we like, including in "non-API-change user-interface feature driven" releases
As a general principle, we as contributors to mozilla/browser are allowed to invoke these rules whenever someone might suggest the contrary. ;-)
Assignee | ||
Comment 13•19 years ago
|
||
I think we are agreed that Firefox is the designing force behind the places implementation and the places owner/peers should have ownership over its development. If you're looking for a special carte-blanche for this code, could you explain what exactly you mean?
What are "non-API-change user-interface feature driven" releases? If you're talking about something like FF4 off the 1.9 branch, these interfaces wouldn't be under different rules than any others, as far as I can tell (i.e. they wouldn't be allowed to change, just as no interfaces are allowed to change in ff2). This is a requirement driven by the needs of extension authors, not general-purpose re-use.
Comment 14•19 years ago
|
||
Comment on attachment 216760 [details] [diff] [review]
Patch to apply, rev. 1.1
r=ben@mozilla.org
Apologies for the extreme delay.
Attachment #216760 -
Flags: review?(bugs) → review+
Assignee | ||
Comment 15•19 years ago
|
||
Comment on attachment 216745 [details]
Files to move
CVS copies have been performed using the new client-side tool.
Attachment #216745 -
Flags: review?(bugs)
Assignee | ||
Comment 16•19 years ago
|
||
Fixed on trunk. Yay!
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Comment 17•19 years ago
|
||
metrics no longer compiles with these changes...
Assignee | ||
Comment 18•19 years ago
|
||
bz, you mean --enable-extension=default,metrics? What is the error?
Comment 19•19 years ago
|
||
yes, --enable-extensions=default,metrics.
../../../../mozilla/extensions/metrics/src/nsProfileCollector.cpp:453: error: `
NS_NAVBOOKMARKSSERVICE_CONTRACTID' undeclared (first use this function)
and similar for other contracts. I suspect it just needs to require toolkitcomps and include nsToolkitCompsCID.h.
Comment 20•15 years ago
|
||
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.
Description
•