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)
Tracking
(Not tracked)
VERIFIED
FIXED
mozilla1.1alpha
People
(Reporter: svassall, Assigned: yuanyi21)
References
Details
(Whiteboard: [adt3])
Attachments
(1 file, 3 obsolete files)
2.02 KB,
patch
|
yuanyi21
:
review+
bzbarsky
:
superreview+
|
Details | Diff | Splinter Review |
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.
Comment 1•25 years ago
|
||
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
Comment 2•25 years ago
|
||
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
Comment 3•25 years ago
|
||
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
Updated•25 years ago
|
Status: NEW → ASSIGNED
Target Milestone: --- → M17
Comment 4•25 years ago
|
||
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?
Comment 5•25 years ago
|
||
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
Comment 6•25 years ago
|
||
That's right, I'm an idiot -- the tooltip won't change, but neither will the
homepage.
Comment 7•25 years ago
|
||
Actually - I think it only reads the pref when you click the button, so that
might not be true. I'll look.
Comment 8•25 years ago
|
||
I don't think this belongs in xpapps, but updating qa...
QA Contact: jrgm → sairuh
Comment 9•25 years ago
|
||
claudius, d'you know who owns this? chris or radha...?
QA Contact: sairuh → claudius
Comment 10•25 years ago
|
||
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 :-).
Comment 11•25 years ago
|
||
erm...why are we still trying to figure out who owns this when it's assigned to
me? I'm not good enough ;) ?
Comment 12•25 years ago
|
||
need scriptable pref change callbacks before this can be fixed.
Comment 13•25 years ago
|
||
Do we have a bug on that?
Comment 14•24 years ago
|
||
the fix for this is in bug 44239
Comment 15•24 years ago
|
||
Fix checked in.
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Comment 16•24 years ago
|
||
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
Updated•24 years ago
|
Status: REOPENED → ASSIGNED
Priority: P3 → P4
Comment 17•24 years ago
|
||
other things to worry about right now.
Assignee: blakeross → ben
Status: ASSIGNED → NEW
QA Contact: claudius → sairuh
Updated•24 years ago
|
QA Contact: sairuh → claudius
Updated•23 years ago
|
Status: NEW → ASSIGNED
Target Milestone: mozilla1.0 → mozilla1.1
Comment 18•23 years ago
|
||
*** Bug 132025 has been marked as a duplicate of this bug. ***
Comment 19•23 years ago
|
||
*** Bug 137990 has been marked as a duplicate of this bug. ***
Comment 20•23 years ago
|
||
*** Bug 154100 has been marked as a duplicate of this bug. ***
Comment 21•23 years ago
|
||
Nav triage team: nsbeta1+/adt3
Assignee | ||
Comment 22•22 years ago
|
||
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.
Assignee | ||
Comment 23•22 years ago
|
||
Sorry, my previous patch is wrong
Attachment #95366 -
Attachment is obsolete: true
Comment 24•22 years ago
|
||
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?
Assignee | ||
Comment 25•22 years ago
|
||
nsIPref::RegisterCallback is [noscript], so it can not be used in js code.
Comment 26•22 years ago
|
||
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
Assignee | ||
Comment 27•22 years ago
|
||
okay, then the thing becomes quite easy :)
cbiesinger, could you r= my fix?
Attachment #95369 -
Attachment is obsolete: true
Comment 28•22 years ago
|
||
Comment on attachment 95673 [details] [diff] [review]
pref callbak in navigator.js
looks good and works fine,
r=biesi
Attachment #95673 -
Flags: review+
![]() |
||
Comment 29•22 years ago
|
||
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...
Assignee | ||
Comment 30•22 years ago
|
||
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 31•22 years ago
|
||
Comment on attachment 97287 [details] [diff] [review]
use setTooltipText to set the tooltip
sr=bzbarsky
Attachment #97287 -
Flags: superreview+
Assignee | ||
Comment 32•22 years ago
|
||
Comment on attachment 97287 [details] [diff] [review]
use setTooltipText to set the tooltip
Carrying out biesi's r=
Attachment #97287 -
Flags: review+
Assignee | ||
Comment 34•22 years ago
|
||
checked in!
Status: NEW → RESOLVED
Closed: 24 years ago → 22 years ago
Resolution: --- → FIXED
Comment 36•22 years ago
|
||
*** Bug 152250 has been marked as a duplicate of this bug. ***
Updated•20 years ago
|
Product: Core → Mozilla Application Suite
You need to log in
before you can comment on or make changes to this bug.
Description
•