Closed Bug 43714 Opened 25 years ago Closed 22 years ago

Tooltip for the 'Home' button not updated when setting page via prefs

Categories

(SeaMonkey :: UI Design, defect, P4)

x86
Windows 2000
defect

Tracking

(Not tracked)

VERIFIED FIXED
mozilla1.1alpha

People

(Reporter: svassall, Assigned: yuanyi21)

References

Details

(Whiteboard: [adt3])

Attachments

(1 file, 3 obsolete files)

Build ID: 2000062320 If you change the startup page using the preferences the tooltip for the home button still says http://www.mozilla.org/. Clicking on the button takes you to the new homepage.
confirming using 2000062320 nightly on w2k. if you change the url for the home button & don't restart, the tooltip still displays the prior home button url. but if you change the home button url & then restart mozilla the correct tooltip shows up
Status: UNCONFIRMED → NEW
Ever confirmed: true
throwing to UI:Feedback, ben should know where to send this to.
Assignee: asa → bdonohoe
Component: Browser-General → User Interface: Design Feedback
QA Contact: doronr → mpt
the tooltip only seems to be updated when starting a new instance of the browser, or when setting a new homepage via dragging onto the home button. looks like we just need to update the tooltip upon pressing OK in the prefs, also. right, ben? reassigning to me
Assignee: bdonohoe → BlakeR1234
Component: User Interface: Design Feedback → XP Toolkit/Widgets
QA Contact: mpt → jrgm
Summary: Tooltip for the 'Home' button seems hardcoded → Tooltip for the 'Home' button not updated when setting page via prefs
Status: NEW → ASSIGNED
Target Milestone: --- → M17
Ben, I was just thinking...if someone changes their homepage via prefs.js while the browsers running, afaik, the tooltip won't update. This is a pretty minor deal, and the only way I can think of to fix it is to recheck what the tooltip should be every time the mouse passes over the home button...should we just not worry about this somewhat obscure case?
Aren't prefs held in memory while Mozilla is running? So if someone changes their prefs.js manually (e.g. with a text editor) during run-time, it doesn't have any effect -- the prefs in memory aren't changed, and the prefs.js is overwritten whenever either (a) prefs are changed in the prefs dialog, or (b) Mozilla is quit. Having said that, there's probably an API somewhere for setting prefs -- the tooltip should update whenever that API is called, rather than just in the case of the `Ok' button in the prefs dialog.
Component: XP Toolkit/Widgets → XP Apps: GUI Features
That's right, I'm an idiot -- the tooltip won't change, but neither will the homepage.
Actually - I think it only reads the pref when you click the button, so that might not be true. I'll look.
I don't think this belongs in xpapps, but updating qa...
QA Contact: jrgm → sairuh
claudius, d'you know who owns this? chris or radha...?
QA Contact: sairuh → claudius
without knowing where the fix would come from (ie where in the code) I have know idea who would/could/should own this. Regardless, all of the likely candidates receive email on this bug, so I'm sure someone will step up :-).
erm...why are we still trying to figure out who owns this when it's assigned to me? I'm not good enough ;) ?
need scriptable pref change callbacks before this can be fixed.
Do we have a bug on that?
the fix for this is in bug 44239
Fix checked in.
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
turns out my fix didn't fix this, as I thought it did/would. But I recall shaver saying pref callbacks in JS work now. so I'll talk to him about it...
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Target Milestone: M17 → mozilla1.0
Status: REOPENED → ASSIGNED
Priority: P3 → P4
other things to worry about right now.
Assignee: blakeross → ben
Status: ASSIGNED → NEW
QA Contact: claudius → sairuh
QA Contact: sairuh → claudius
Status: NEW → ASSIGNED
Target Milestone: mozilla1.0 → mozilla1.1
*** Bug 132025 has been marked as a duplicate of this bug. ***
*** Bug 137990 has been marked as a duplicate of this bug. ***
*** Bug 154100 has been marked as a duplicate of this bug. ***
Keywords: nsbeta1
Nav triage team: nsbeta1+/adt3
Keywords: nsbeta1nsbeta1+
Whiteboard: [adt3]
I'm not sure whether the nsXULDocument is the best place to handle this change, but at least, it can change the tooltiptext in *every* browser window without an enumerating.
Sorry, my previous patch is wrong
Attachment #95366 - Attachment is obsolete: true
this is, imho, a completely wrong approach for this bug... XULDocument should not be used for such things... why not register the callback in the Startup function (or equivalent) of navigator.js?
nsIPref::RegisterCallback is [noscript], so it can not be used in js code.
err, you should not use nsIPref anyway. use nsIPrefService / nsIPrefBranch. the new way for adding a pref observer is scriptable: http://lxr.mozilla.org/seamonkey/source/modules/libpref/public/nsIPrefBranchInternal.idl
Attached patch pref callbak in navigator.js (obsolete) — Splinter Review
okay, then the thing becomes quite easy :) cbiesinger, could you r= my fix?
Attachment #95369 - Attachment is obsolete: true
Comment on attachment 95673 [details] [diff] [review] pref callbak in navigator.js looks good and works fine, r=biesi
Attachment #95673 - Flags: review+
Comment on attachment 95673 [details] [diff] [review] pref callbak in navigator.js So... it looks like setTooltipText (in globalOverlay.js) is no longer used after this patch. Could you check that there are no more users of it anywhere and remove it if so? Or you could keep using it...
chekced in lxr, no other code uses setTooltipText. But I prefer to keep it here for future use.
Attachment #95673 - Attachment is obsolete: true
Comment on attachment 97287 [details] [diff] [review] use setTooltipText to set the tooltip sr=bzbarsky
Attachment #97287 - Flags: superreview+
Comment on attachment 97287 [details] [diff] [review] use setTooltipText to set the tooltip Carrying out biesi's r=
Attachment #97287 - Flags: review+
taking...
Assignee: ben → kyle.yuan
Status: ASSIGNED → NEW
checked in!
Status: NEW → RESOLVED
Closed: 24 years ago22 years ago
Resolution: --- → FIXED
verified using 2002083008 on Win XP.
Status: RESOLVED → VERIFIED
*** Bug 152250 has been marked as a duplicate of this bug. ***
Product: Core → Mozilla Application Suite
Component: XP Apps: GUI Features → UI Design
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: