Open
Bug 1126215
Opened 10 years ago
Updated 2 years ago
Browser API: Make it possible to display a statusbar when a link is hovered (href preview)
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
NEW
People
(Reporter: paul, Unassigned)
References
Details
Attachments
(1 file)
(deleted),
patch
|
fabrice
:
feedback+
|
Details | Diff | Splinter Review |
In Firefox, hovering a link shows a floating status bar. We'd like to be able to reproduce this behavior with the Browser API.
This could be done using anonymousContent.
This could be an attribute on the iframe, or maybe a method.
Reporter | ||
Updated•10 years ago
|
Blocks: browser-api, graphene
Comment 1•10 years ago
|
||
You mean the alt attribute or the title attribute right?
Reporter | ||
Comment 2•10 years ago
|
||
(In reply to Kan-Ru Chen [:kanru] from comment #1)
> You mean the alt attribute or the title attribute right?
No. The href.
Reporter | ||
Updated•10 years ago
|
Summary: Browser API: Make it possible to display a statusbar when a link is hovered → Browser API: Make it possible to display a statusbar when a link is hovered (href preview)
Comment 3•10 years ago
|
||
The info comes from http://mxr.mozilla.org/mozilla-central/source/dom/ipc/TabParent.cpp#1462
Comment 4•10 years ago
|
||
It's actually TabParent::RecvSetStatus().
Comment 5•10 years ago
|
||
Here a WIP. It covers just OOP.
Attachment #8565486 -
Flags: feedback?(fabrice)
Reporter | ||
Comment 6•10 years ago
|
||
Andrea, how would I use this from the Browser API? What will it look like?
Flags: needinfo?(amarchesini)
Comment 7•10 years ago
|
||
Paul, with this patch the parent app, controlling the mozbrowser iframe, you can do:
iframe.onstatuschanged = function(e) { ... e is a GrapheneStatusEvent:
iframe.onhidetooltip = function(e) { ... e is a GrapheneShowTooltipEvent
iframe.onshowtooltip = function(e) { ... e is a normal event.
a GrapheneStatusEvent is this:
interface GrapheneStatusEvent : Event
{
readonly attribute GrapheneStatusType type; // "script" or "link"
readonly attribute DOMString status;
};
and a GrapheneShowTooltipEvent is:
interface GrapheneShowTooltipEvent : Event
{
readonly attribute unsigned long x;
readonly attribute unsigned long y;
readonly attribute DOMString tooltip;
};
Flags: needinfo?(amarchesini)
Comment 8•9 years ago
|
||
(In reply to Paul Rouget [:paul] from comment #2)
> (In reply to Kan-Ru Chen [:kanru] from comment #1)
> > You mean the alt attribute or the title attribute right?
>
> No. The href.
The API in comment 7 looks fairly generic - does this also work, or could it work for element title attributes?
Comment 9•9 years ago
|
||
Comment on attachment 8565486 [details] [diff] [review]
graphene.patch
Review of attachment 8565486 [details] [diff] [review]:
-----------------------------------------------------------------
I think Fabrice is on vacation until the 25th. Forwarding to Paul as my best guess as to who can provide feedback.
Attachment #8565486 -
Flags: feedback?(fabrice) → feedback?(paul)
Comment 10•9 years ago
|
||
Comment on attachment 8565486 [details] [diff] [review]
graphene.patch
Review of attachment 8565486 [details] [diff] [review]:
-----------------------------------------------------------------
Trying to switch back to Fabrice since this wasn't looked into yet.
Attachment #8565486 -
Flags: feedback?(paul) → feedback?(fabrice)
Comment 11•9 years ago
|
||
Comment on attachment 8565486 [details] [diff] [review]
graphene.patch
Review of attachment 8565486 [details] [diff] [review]:
-----------------------------------------------------------------
- That should not be graphene-specific. Let's expose that to any consumer of the mozbrowser api.
- We need something that also works in-process.
Attachment #8565486 -
Flags: feedback?(fabrice) → feedback+
Assignee | ||
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•