Closed
Bug 256077
Opened 20 years ago
Closed 15 years ago
seamonkey could use bookmarks aggregation port from firefox
Categories
(SeaMonkey :: Bookmarks & History, defect)
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: vlad, Assigned: neil)
References
Details
(Whiteboard: [patchlove])
Attachments
(2 files)
13.02 KB,
patch
|
Details | Diff | Splinter Review | |
16.95 KB,
patch
|
jag+mozilla
:
review+
|
Details | Diff | Splinter Review |
seamonkey could probably use a port of bug 235665's firefox only bits, to take
advantage of the aggregation features. Note that for now the implementation of
nsForwardProxyDataSource lives in the firefox browser/ tree; this can eventually
be either moved in to rdf/ for sharing, or similar.
Comment 1•20 years ago
|
||
Sounds good to me.
Updated•20 years ago
|
Product: Browser → Seamonkey
Assignee | ||
Comment 3•18 years ago
|
||
I got this far, and some of it works - the builder now identifies find: URLs as containers, for instance - but it doesn't actually build their contents...
Attachment #250106 -
Flags: review?(vladimir)
Reporter | ||
Comment 4•18 years ago
|
||
Comment on attachment 250106 [details] [diff] [review]
WIP1
I don't think I'm the right person to review this any more, sorry (no time to re-acquaint myself with the code either).
Attachment #250106 -
Flags: review?(vladimir)
Assignee | ||
Updated•18 years ago
|
Attachment #250106 -
Flags: review?(enndeakin)
Comment 5•18 years ago
|
||
Comment on attachment 250106 [details] [diff] [review]
WIP1
>+nsBookmarksInferDataSource::GetTargets(nsIRDFResource *aSource, nsIRDFResource *aProperty, PRBool
aTruthValue, nsISimpleEnumerator **aResult)
...
>+ nsCOMPtr<nsIRDFResource> proxy = GetProxyResource(aSource);
>+ if (proxy) {
>+ rv = mInner->GetTargets(proxy, aProperty, aTruthValue, getter_AddRefs(innerEnumerator));
This should be proxyEnumerator I think.
>+NS_IMETHODIMP
>+nsBookmarksInferDataSource::ArcLabelsOut(nsIRDFResource *aSource, nsISimpleEnumerator **aResult)
...
>+ rv = mInner->ArcLabelsOut(proxy, getter_AddRefs(innerEnumerator));
Same here
Is this change something that can't just be built into the bookmarks datasource?
Assignee | ||
Comment 6•18 years ago
|
||
(In reply to comment #5)
>This should be proxyEnumerator I think.
Doh! Trying...
>Is this change something that can't just be built into the bookmarks datasource?
I thought long and hard about that, and managed to convince myself that it wouldn't composite properly. But if this works then I'll try that too.
Assignee | ||
Comment 7•18 years ago
|
||
(In reply to comment #5)
>Is this change something that can't just be built into the bookmarks datasource?
I remember now.
The idea is that when the builder asks for the target(s), you need to check both the target(s) of the builder's resource and those of the bookmarked url. The bookmarks service can't do this check because it doesn't have access to the composite datasource that the builder is using.
Assignee | ||
Comment 8•18 years ago
|
||
(In reply to comment #5)
>This should be proxyEnumerator I think.
OK, so this almost works, but unfortunately the trunk tree builder won't permit duplicate paths to the same resource any more, so saved search bookmarks only "finds" bookmarks that aren't already showing in the tree (and those bookmarks won't then be found in their real parent container...)
Does the template builder have the same "problem", or is there a workaround?
Comment 9•18 years ago
|
||
Assuming you meant the same resource appearing in different parts of the hierarchy, the content builder supports this, but the tree builder does not. I wasn't aware that the old one did very well at it either.
Assignee | ||
Comment 10•18 years ago
|
||
SmartFind queries work in the bookmarks manager on the branch :-)
If you don't have an old enough profile to have some, you can create some new SmartFind queries by searching bookmarks and clicking Save as Bookmark.
You can also create a bookmark to a filesystem folder and it will expand in the navigator window (but not in the bookmarks manager).
Changes from the trunk patch are:
1) proxyResource variable fixes
2) module registration moved around
3) ftp: excluded (done by httpindex, which we don't aggregate)
4) internetsearch: spelled correctly
5) browser changes included
Attachment #250756 -
Flags: superreview?(cbiesinger)
Attachment #250756 -
Flags: review?(jag)
Comment 11•18 years ago
|
||
Comment on attachment 250756 [details] [diff] [review]
Branch patch
>Index: components/bookmarks/src/nsBookmarksService.h
>===================================================================
>+class nsBookmarksInferDataSource : public nsIRDFInferDataSource
>+{
...
>+private:
...
>+ nsCOMPtr<nsIRDFDataSource> mRDFService;
It doesn't look like you're using mRDFService anywhere.
r=jag
Attachment #250756 -
Flags: review?(jag) → review+
Updated•18 years ago
|
Attachment #250106 -
Flags: review?(enndeakin)
Comment 12•16 years ago
|
||
Comment on attachment 250756 [details] [diff] [review]
Branch patch
clearly I'm not going to get to this. also
"branch patch" sounds like it may be outdated now...
Attachment #250756 -
Flags: superreview?(cbiesinger)
Updated•16 years ago
|
Assignee: nobody → neil
Status: NEW → ASSIGNED
Whiteboard: [patchlove]
![]() |
||
Comment 13•15 years ago
|
||
Neil, this is still assigned to you, but it looks outdated. Isn't it going to be fixed by bug 498596, which moves us to places bookmarks, anyhow?
Assignee | ||
Comment 14•15 years ago
|
||
I don't know whether Places supports the feature, but given that this is a feature that got broken way back when in the Mozilla era, and attachment 250756 [details] [diff] [review] barely gets SeaMonkey 1.1 up to parity with Firefox 2, and Enn broke SeaMonkey 2.0 again anyway, there's not really much more that can be done here.
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•