Closed Bug 145815 Opened 22 years ago Closed 22 years ago

Implement Search (button that loads search.netscape.com)

Categories

(Camino Graveyard :: General, defect)

PowerPC
macOS
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: winnie, Assigned: sfraser_bugs)

References

Details

Attachments

(1 file, 3 obsolete files)

Implement Search ( button that loads search.netscape.com).
Blocks: 145820
QA Contact: petersen → winnie
Summary: Implement Search ( button that loads search.netscape.com) → Implement Search ( button that loads search.netscape.com)
I presume this will be user-settable to other search engines as is the case in
Mozilla...
Summary: Implement Search ( button that loads search.netscape.com) → Implement Search (button that loads search.netscape.com)
Should probably respect the System Preferences search page, as Chimera already
respects the home page from there?
->beard
Assignee: bnesse → beard
This has been implemented, although right now the button can only take you to
dmoz.org. Also, I saw in the CVS notes that Beard didn't have an icon for this
so he used the magnifying glass from the finder. We already have a Chimera-style
magnifying glass in the file download window's toolbar that we could use for
this. Since that window is going to be replaced, we don't have to worry about
using the same icon for two different things.

This could now be changed to an RFE to have the search button be customizable. I
noticed that there is an unimplemented drop down menu to change search engines
in the personal pref pane, but I would think we could just use the search page
from system prefs?
Taking this back so I can find it more easily. :)
Attached patch Proposed patch (obsolete) — Splinter Review
Patch to replace search image and connect the button to the users Internet
Config setting for search page.

Mike, Patrick, can one of you review this and check it in if it's ok? Thanks.
Really take it back...
Assignee: beard → bnesse
Attached patch Revised patch (obsolete) — Splinter Review
Revised patch according to branding requirements. Mike, can you r= and land?
Attachment #88034 - Attachment is obsolete: true
no, we should be reading this from a localized string that any commercial build
can replace. no netscape branding is allowed in the mozilla tree.
Attached patch Yet another attempt (obsolete) — Splinter Review
Here is a totally new approach. This allows us to force the search preference
by setting a preference in all.js

pref("search.default_engine","http://search.netscape.com/");

If this preference does not exist, we use the setting in InternetConfig.

Mike, it's in your court again. :)
Attachment #89308 - Attachment is obsolete: true
cc'ing sfraser for review, since pink has probably gone home
In most places in the code, instead of:

+    nsCOMPtr<nsIPrefService>
prefs(do_GetService("@mozilla.org/preferences-service;1"));
+    if (prefs) {
+        nsCOMPtr<nsIPrefBranch> dirBranch;
+        prefs->GetBranch("", getter_AddRefs(dirBranch));


we just do

nsCOMPtr<nsIPrefBranch> prefs = do_GetService("@mozilla.org/preferences-service;1");

Why not here?
Attached patch Patch v4Splinter Review
Version reflecting sfraser's comments.
Attachment #89600 - Attachment is obsolete: true
Comment on attachment 89630 [details] [diff] [review]
Patch v4

r=sfraser
Attachment #89630 - Flags: review+
Simon, do you have checkin privileges for chimera? If so, can you land this?
Otherwise, Chris, who else can land this?
I do, and I can.
Assignee: bnesse → sfraser
Checked in for bnesse.
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
verified with 07-02 build on OS 10.1.5.  clicking on the search button takes me
to the search.netscape.com page.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: