Open
Bug 340029
Opened 20 years ago
Updated 3 years ago
elements styled with link-text should set status bar onmouseover
Categories
(Toolkit :: UI Widgets, enhancement, P5)
Toolkit
UI Widgets
Tracking
()
NEW
People
(Reporter: tony, Unassigned)
References
Details
Attachments
(1 file, 2 obsolete files)
|
2.90 KB,
patch
|
Details | Diff | Splinter Review |
It would be nice if labels with the link-text class set would show the link target in the status bar like HTML links.
Specifically, I want to use this on the links found in the anti-phishing warning bubble.
| Reporter | ||
Comment 1•20 years ago
|
||
This is loosely based on the code in toolbar.xml that sets status text for menuitems.
Attachment #224133 -
Flags: first-review?
Attachment #224133 -
Flags: approval-branch-1.8.1?(bryner)
| Reporter | ||
Updated•20 years ago
|
Attachment #224133 -
Flags: first-review? → first-review?(mconnor)
Comment 2•20 years ago
|
||
Nits:
* this.statusText is never set, so just use this.href.
* Why not use a statusbar property instead of hard-coding a value (since text-links are used outside of browser.xul as well)? You'll then have to make this feature opt-in, but that should be OK for chrome.
| Reporter | ||
Comment 3•20 years ago
|
||
(In reply to comment #2)
> Nits:
> * this.statusText is never set, so just use this.href.
statusText is to allow the user to have mouseover text if there's no href (e.g., an onclick event) or if you want to show something other than the href.
> * Why not use a statusbar property instead of hard-coding a value (since
> text-links are used outside of browser.xul as well)? You'll then have to make
> this feature opt-in, but that should be OK for chrome.
The statusbar is a property, it just has a default value of statusbar-display; users can still override it. Maybe it shouldn't have a default value?
Comment 4•20 years ago
|
||
(In reply to comment #3)
> statusText is to allow the user to have mouseover text if there's no href
> (e.g., an onclick event) or if you want to show something other than the href.
OK. In this case, please also add a "statustext" property (which does getAttribute/setAttribute) so that the statustext can also be set in the markup and not only from script.
> The statusbar is a property, it just has a default value of statusbar-display;
> users can still override it. Maybe it shouldn't have a default value?
IMO it shouldn't. Since you can't know that the element of ID statusbar-display indeed is the statusbar (and not something else), I'd rather go with an opt-in than an opt-out property.
| Reporter | ||
Comment 5•20 years ago
|
||
Make statusbar a property with no default value (opt-in required).
No need to add a statusText property, it's already on all XULElements: http://lxr.mozilla.org/seamonkey/source/dom/public/idl/xul/nsIDOMXULElement.idl#99
Attachment #224133 -
Attachment is obsolete: true
Attachment #225243 -
Flags: first-review?(zeniko)
Attachment #225243 -
Flags: approval-branch-1.8.1?(bryner)
Attachment #224133 -
Flags: first-review?(mconnor)
Attachment #224133 -
Flags: approval-branch-1.8.1?(bryner)
| Reporter | ||
Comment 6•20 years ago
|
||
Oops, remove dump()
Attachment #225243 -
Attachment is obsolete: true
Attachment #225244 -
Flags: first-review?(zeniko)
Attachment #225244 -
Flags: approval-branch-1.8.1?(bryner)
Attachment #225243 -
Flags: first-review?(zeniko)
Attachment #225243 -
Flags: approval-branch-1.8.1?(bryner)
Comment 7•20 years ago
|
||
Comment on attachment 225244 [details] [diff] [review]
v3: set/restore status on mouse over/out
This looks good to me (nit: drop the braces in restoreStatusText). However, I'm no reviewer.
Attachment #225244 -
Flags: first-review?(zeniko) → first-review?(mconnor)
Updated•20 years ago
|
Attachment #225244 -
Flags: approval-branch-1.8.1?(bryner)
Comment 8•19 years ago
|
||
Comment on attachment 225244 [details] [diff] [review]
v3: set/restore status on mouse over/out
Tony: Seems that mconnor isn't really available for non-critical reviewing anymore. If you're still ready to work on this, please ask either Asaf Romano or Gavin Sharp for review. Sorry for the delay...
Attachment #225244 -
Flags: first-review?(mconnor)
Comment 9•4 years ago
|
||
The bug assignee didn't login in Bugzilla in the last 7 months.
:mstriemer, could you have a look please?
For more information, please visit auto_nag documentation.
Assignee: tony → nobody
Flags: needinfo?(mstriemer)
Comment 10•4 years ago
|
||
I think at this point we'd be better off removing MozTextLink and converting to HTML anchor elements.
Looks like we have 80 instances of is="text-link" [1]. I don't know if there's anything special going on here other than we would normally use XUL in XUL documents, but that's not always the case now.
[1] https://searchfox.org/mozilla-central/search?q=is%3D%22text-link%22
Flags: needinfo?(mstriemer)
Priority: -- → P5
Comment 11•4 years ago
|
||
Looks like bug 1509393 is on file to do that work.
See Also: → replace-text-link
Updated•3 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•