Closed Bug 200136 Opened 22 years ago Closed 14 years ago

smartfind bookmarks broken since landing of bug 196756 (find is not a registered protocol)

Categories

(SeaMonkey :: Bookmarks & History, defect)

x86
All
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: pretzalz, Unassigned)

References

Details

(Keywords: regression, useless-UI, Whiteboard: haspatch)

Attachments

(1 file, 4 obsolete files)

smartfind bookmarks are bookmarks which have a url of the form "find:datasource=rdf:bookmarks&match=http://home.netscape.com/NC-rdf#Name&method=contains&text=Mozilla". Examples can be found in the default bookmarks under Mozilla Project -> Technology Demonstration -> SmartFind queries. They are supposed to behave like folders containing all the bookmarks matching the search parameters encoded in the url[ie the above url encodes 'bookmarks which contain "Mozilla" in the Name']. They now do absolutely nothing. They now appear to be normal bookmarks, but when you click on them you get an error "find is not a registered protocol". The old behavior/functionality should be restored. They have been my primary method for organizing my bookmarks for the last year and a half. I am observing the broken functionality on a gtk[1.2]/gcc-3.2 linux cvs build from this morning. I first noticed it yesterday, but I can only assume that the bookmark rewrite landing a week ago is not a coincidence.
nominating
Assignee: ben → varga
Keywords: nsbeta1
Nav triage team: nsbeta1-
Keywords: nsbeta1nsbeta1-
Depends on: 201019
OS: Linux → All
Priority: -- → P3
Target Milestone: --- → mozilla1.5alpha
bug 200483 and bug 205539 are unconfirmed duplicates of this bug
*** Bug 200483 has been marked as a duplicate of this bug. ***
*** Bug 205539 has been marked as a duplicate of this bug. ***
Why a regression bug is targeted for Mozilla 1.5 alpha? As Mozilla 1.4 will replace 1.0.x series as the stable codebase, this bug should be corrected for 1.41 timeframe. We have at least an hint about the origin of the bug : bug 196756 fix landing.
Attach a patch and get reviews before they ship 1.4 nsbeta- means that the NSCP developer can't work on this for 1.4
If the underlying bug doesn't get fixed, one should perhaps remove the "save query in bookmarks" feature from bookmarks search to prevent people from reporting "my saved query does not work". At least for a longstanding release like 1.4, this should be considered an option.
yes, the "save query in bookmarks" should be temporary removed
Attached patch patch (obsolete) — Splinter Review
Attachment #123879 - Flags: superreview?(jaggernaut)
Attachment #123879 - Flags: review?(chanial)
are you sure the dialog box will close? |document.getElementById("saveQuery").checked| in findBookmarks.js will trigger an error and |find()| will not return true In either cases, I think you should comment the related part in findBookmarks.js and also the tech demo that uses find: in the default bookmarks.html.
Good catch, sorry for being rash. Do we really want to remove/comment out it in the default bookmarks file also? I know that it looks silly when they don't expand as they should, but if we remove them in the default profile, they won't be available anymore with a profile based on the default profile.
I have no strong opinion on that, both have pros and cons. over to Jag, the module owner to decide.
Jag, do you think that the smartfing queries should be removed temporary from the default bookmarks file?
Attachment #123879 - Attachment is obsolete: true
Attachment #123879 - Flags: superreview?(jaggernaut)
Attachment #123879 - Flags: review?(chanial)
Will the workaround of hiding the save-as-query feature be achieved for 1.4? It seems that there is still no decision on this or rather the removal from default bookmarks from the module owner. Concerning the proposed patch: how about setting the hidden-attribute on the checkbox instead of removing it? That way one does not need to worry about the further flow of control as long as the hidden checkbox value is "false".
Target Milestone: mozilla1.5alpha → mozilla1.5beta
*** Bug 211325 has been marked as a duplicate of this bug. ***
Summary: smartfind bookmarks broken since landing of bug 196756 → smartfind bookmarks broken since landing of bug 196756 (find is not a registered protocol)
Probably too late for 1.5, but this is a patch hiding the checkbox in the search bookmarks dialog. It will prevent users from creating broken smartfind queries.
Comment on attachment 131452 [details] [diff] [review] hide the checkbox creating smartfind queries Requesting r= from Jan Varga. Who should I ask for sr=? (This is my first patch...)
Attachment #131452 - Flags: review?(varga)
Blocks: 218324
Attachment #131452 - Flags: review?(varga) → review+
Whiteboard: haspatch. Noting blockage of publicize.
Blocks: 48663
Whiteboard: haspatch
Attachment #131452 - Flags: superreview?(dbaron)
Comment on attachment 131452 [details] [diff] [review] hide the checkbox creating smartfind queries I'm not a big fan of this approach -- if a feature doesn't work anymore, it should either be removed or fixed -- we shouldn't ship extra code that doesn't do anything. How hard is it to fix the real problem? Do people use the feature?
Attachment #131452 - Flags: superreview?(dbaron) → superreview-
*** Bug 221530 has been marked as a duplicate of this bug. ***
Product: Browser → Seamonkey
Keywords: useless-UI
*** Bug 285834 has been marked as a duplicate of this bug. ***
Attached patch Proposed Patch (obsolete) — Splinter Review
Can somebody try this patch?
(In reply to comment #23) > Can somebody try this patch? I've tried it with the supplied string in comment 0 with no luck, still not a registered protocol...
Attached patch Updated Patch (obsolete) — Splinter Review
I created the patch from Mozilla 1.7.7 on OS/2 source and it works for me from Bookmarks Manager window. To make it work from the Navigator window also, we need to add the below line to navigator.xul --------- <script type="application/x-javascript" src="chrome://communicator/content/bookmarks/findBookmark.js"/> --------- I am giving the updated patch here.
I tried patch given in Comment # 25. It is working for me. This updated patch may be tried now.
Works like a charm in Bookmarks Manager, but it doesn't in Navigator window for me: maybe I did something wrong? (trunk build, linux)
(In reply to comment #27) > Works like a charm in Bookmarks Manager, but it doesn't in Navigator window for > me: maybe I did something wrong? (trunk build, linux) Do you see any javascript error? FYI, I verified it on Windows Nightly build "Gecko/20050518" and found no issues.
My fault. It works also in Navigator. Please request r/sr=? and get this in! :)
Hello Jan, Could you review the patch provided for this problem?
(In reply to comment #30) > Hello Jan, > Could you review the patch provided for this problem? Please use r/sr ? flag in the Edit Attachment page to ask for r/sr: many peers don't even read bugzilla mails, and this will allow for better visibility... Ask neil.parkwaycc for sr.
Attached patch Working Patch (obsolete) — Splinter Review
Attachment #182674 - Attachment is obsolete: true
Attachment #182764 - Attachment is obsolete: true
Attachment #184306 - Flags: superreview?(neil.parkwaycc.co.uk)
Attachment #184306 - Flags: review?(jan)
As I recall in the dim and distant past before the bookmarks service was rewritten, these queries actually worked like dynamic bookmark folders. Porting patch(es) for bug 235665 should hopefully restore this properly.
(In reply to comment #33) > As I recall in the dim and distant past before the bookmarks service was > rewritten, these queries actually worked like dynamic bookmark folders. > Porting patch(es) for bug 235665 should hopefully restore this properly. Exactly, it's already fixed in Firefox. Rupesh, do you valunteer to port the patch https://bugzilla.mozilla.org/attachment.cgi?id=156399 to seamonkey?
Attachment #184306 - Flags: review?(Jan.Varga) → review-
KaiRo, Neil: Isn't this whole bug (and more specifically the approach from comments 32-34, including the sr request) obsolete now we're moving to Places-based bookmarks? I'd guess that RDF query URLs won't work there anyway and this bug is pretty specific to that. If someone would want to have "query bookmarks" with Places, that should IMHO go to its own set of bugs (adding support to the Toolkit back-end plus FF/SM front-ends).
The bug itself is valid, the patch probably not any more. Saved bookmarks queries will work with the places implementation, so I'm marking this depending on that other one.
Assignee: Jan.Varga → nobody
Severity: major → normal
Depends on: SMPlacesBMarks
Priority: P3 → --
QA Contact: chrispetersen → bookmarks
Target Milestone: mozilla1.5beta → ---
Attachment #184306 - Attachment is obsolete: true
Attachment #184306 - Flags: superreview?(neil)
I'm marking this fixed by bug 498596 as it makes saved searches work (even if in the new places way) in current nightlies, SeaMonkey 2.1 Alpha 3 and later.
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: