IsBookmarkedResource was only checking the parent of the resource to tell if it's in the bookmarks root hierarchy.
git-svn-id: svn://10.0.0.236/trunk@150316 18797224-902f-48f8-a5cc-f745e15eee43
- getParent: returns the (first) parent of a resource.
- getParentChain: returns a nsIArray of containers from NC:BookmarksTopRoot down to the parent of the resource.
git-svn-id: svn://10.0.0.236/trunk@150289 18797224-902f-48f8-a5cc-f745e15eee43
Featuring an expandable tree and a dropdown menu containing the last used folders.
The 'new folder' functionality has not been included, yet.
Thanks to bz for the help on nsCOMArrays.
git-svn-id: svn://10.0.0.236/trunk@150142 18797224-902f-48f8-a5cc-f745e15eee43
an additional fix is included: if no ...#BookmarksToolbarFolder arc is found, then search for an (obsolete) resource "NC:PersonalToolbarFolder" (221410).
When none of them is found, then a new btf is created (only once!).
git-svn-id: svn://10.0.0.236/trunk@147747 18797224-902f-48f8-a5cc-f745e15eee43
- remove unused functions. Note that RDF commands were already broken, so deleteBookmarkItem and insertBookmarkItem (that were not used) may come back, but in another form.
- remove the "New Bookmark Folder" and "New Search Folder"
- refactor the "html" serializer to avoid some duplicated code.
- remove the use of the profile name for the bookmarks root.
- enforce synthax "aArgument" in some random places.
git-svn-id: svn://10.0.0.236/trunk@147534 18797224-902f-48f8-a5cc-f745e15eee43
- fixing a potential crash in nsBookmarksService::GetTarget (when the RDF resource is null)
- remove unused function isChildOfContainer and GetResource in bookmarks.js though we may need later the latter.
git-svn-id: svn://10.0.0.236/trunk@147460 18797224-902f-48f8-a5cc-f745e15eee43
- fix the use of the immutable bookmarks.
- remove unused methods: GetLastCharset and AddBookmarkImmediately
- porting several small fixes mainly from Jan's work
- more prototyping for BookmarkTransaction
git-svn-id: svn://10.0.0.236/trunk@147445 18797224-902f-48f8-a5cc-f745e15eee43
bug 201381/205129: Auto-importing IE favorites with directory entries may take a very long time, CPU usage 100% (by ssu)
bug 179084: Bookmark Export uses Unix carriage returns on all platforms (by Frank Wein, mcsmurf@gmx.net)
bug 210541: Bookmarks now crash if nsIProfile impl is not present. (by ccarlen)
bug 203992: Bookmark's Notify/schedule fail to prompt user when change has occured (by varga)
git-svn-id: svn://10.0.0.236/trunk@146075 18797224-902f-48f8-a5cc-f745e15eee43
- combine nsICharsetConverterManager2 and nsICharsetConverterManager
- get rid of nsIAtom in most of the methods
- provide versions of getUnicodeDecoder/Encoder which don't do alias resolution
- change all charset types to ASCII strings
- clean up some other i18n APIs which could be simplified
- fix all consumers of all changed i18n interfaces
r=jshin, smontagu
rs=sfraser
git-svn-id: svn://10.0.0.236/trunk@143595 18797224-902f-48f8-a5cc-f745e15eee43
Bug 205378 - Meta bug for changes in bookmarks sorting code
r=jag, sr=sspitzer, a=sspitzer,asa
The CloneResource() has been back ported from Firebird, originally
implemented by Pierre Chanial.
git-svn-id: svn://10.0.0.236/trunk@142814 18797224-902f-48f8-a5cc-f745e15eee43
have MODULE=bookmarks, headers in dist/include/bookmarks. Make sure
makefiles are generated and directories are traversed in the right order.
Miscellaneous cleanup. Affects phoenix build only.
git-svn-id: svn://10.0.0.236/trunk@141161 18797224-902f-48f8-a5cc-f745e15eee43