Closed Bug 127337 Opened 23 years ago Closed 23 years ago

Restore Default for Home Page button

Categories

(SeaMonkey :: Preferences, defect, P3)

x86
Windows 2000
defect

Tracking

(Not tracked)

VERIFIED FIXED
mozilla1.0

People

(Reporter: rebron, Assigned: stdowa+bugzilla)

Details

Attachments

(2 files)

Navigator--> Homepage Pref should have a "Restore Default" button for the homepage.
Nominate with justification if you feel strongly about this for Mach V. At this point, netscape developers should not be working bugs that are non-nsbeta1+. -> Future bin for now
Target Milestone: --- → Future
Attached patch patchSplinter Review
Attached image Screenshot
Comment on attachment 82893 [details] [diff] [review] patch r=sgehani
Attachment #82893 - Flags: review+
Comment on attachment 82893 [details] [diff] [review] patch hmm.. does this really retrieve the default page? I mean, if the user has overridden it, won't nsIPrefLocalizedString retrieve the overridden verison?
Yes because getDefaultBranch always calls the default pref value, not the overridden one. "When using a Get method a default value will always be returned" http://lxr.mozilla.org/mozilla/source/modules/libpref/public/nsIPrefService.idl# 134.
Comment on attachment 82893 [details] [diff] [review] patch oh.. duh :) I forgot about getDefaultBranch! sr=alecf
Attachment #82893 - Flags: superreview+
-> me
Assignee: sgehani → walk84
C:\moz_src\mozilla\xpfe\components\prefwindow\resources\content>cvs commit -m "Bug 127337. Restore Default for Home Page button in Navigator. Patch by Stephen Walker <walk84@yahoo.com> r=samir, sr=alecf." pre f-navigator.js Checking in pref-navigator.js; /cvsroot/mozilla/xpfe/components/prefwindow/resources/content/pref-navigator.js,v <-- pref-navigator.js new revision: 1.8; previous revision: 1.7 done C:\moz_src\mozilla\xpfe\components\prefwindow\resources\content>cvs commit -m "Bug 127337. Restore Default for Home Page button in Navigator. Patch by Stephen Walker <walk84@yahoo.com> r=samir, sr=alecf." pre f-navigator.xul Checking in pref-navigator.xul; /cvsroot/mozilla/xpfe/components/prefwindow/resources/content/pref-navigator.xul,v <-- pref-navigator.xul new revision: 1.63; previous revision: 1.62 done C:\moz_src\mozilla\xpfe\components\prefwindow\resources\locale\en-US>cvs commit -m "Bug 127337. Restore Default for Home Page button in Navigator. Patch by Stephen Walker <walk84@yahoo.com> r=samir, s " pref-navigator.dtd Checking in pref-navigator.dtd; /cvsroot/mozilla/xpfe/components/prefwindow/resources/locale/en-US/pref-navigator.dtd,v <-- pref-navigator.dtd new revision: 1.21; previous revision: 1.20 done
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Priority: -- → P3
Target Milestone: Future → mozilla1.0
vrfy'd fixed with 2002.09.16.08 comm trunk builds.
Status: RESOLVED → VERIFIED
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: