Closed
Bug 527846
Opened 16 years ago
Closed 15 years ago
Implement a web notifications API
Categories
(Core :: DOM: Core & HTML, enhancement)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
DUPLICATE
of bug 573588
People
(Reporter: sephr, Unassigned)
References
()
Details
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/532.4 (KHTML, like Gecko) Chrome/4.0.237.0 Safari/532.4
Build Identifier:
nsIAlertsService's showAlertNotification method could be very useful for web content. For example, Gmail could use it to notify the user of new emails and clicking on the notification could open the email in Gmail (and possibly focus the tab?). It could be accessible via window.showNotification (akin to Prism's platform.showNotification). Some possible changes to make it easier to use for web content could be defaulting the icon to the page's favicon and the name to location.hostname.
The method is already being exposed to web content running in Prism via platform.showNotification (though it doesn't take the same arguments).
Reproducible: Always
| Reporter | ||
Comment 2•16 years ago
|
||
No spec. Also, if we expose this functionality to web content, it shouldn't be as limited as Prism's platform.showNotification, which doesn't allow adding event listeners. As stated in the example, it should be possible to listen for click events.
Comment 3•16 years ago
|
||
A Notifications API was considered for the the HTML5 spec at some point and there was a lot of discussion on the WHATWG list. The closest thing to a spec I can find is http://sites.google.com/a/chromium.org/dev/developers/design-documents/desktop-notifications/api-specification but I don't know how much consensus that got.
| Reporter | ||
Comment 4•16 years ago
|
||
Changing the bug to be in general about implementing some kind of web notifications API.
Summary: Expose nsIAlertsService to web content → Implement a web notifications API
Comment 5•16 years ago
|
||
There is now also an editor's draft
http://dev.w3.org/2006/webapi/WebNotifications/publish/
but that has still lots of open issues.
Web Notifications are now being shipped as a feature of Google Chrome 4.0+. Also, considering there now is a spec, the title of this bug should probably be "Implement the web notifications API".
Comment 7•16 years ago
|
||
There is no spec. There is a draft spec, which in its current form has
many problems and API isn't very good. This has been discussed @ webapp mailing list.
Comment 8•16 years ago
|
||
This is similar to bug 293412, but both bugs have interesting comments, so not duping for now.
Depends on: 293412
Version: unspecified → Trunk
Check:
http://www.chromium.org/developers/design-documents/desktop-notifications/api-specification
http://0xfe.blogspot.com/2010/04/desktop-notifications-with-webkit.html
As a web developer of social applications I find this extremely useful for people using the site. They could be informed when they get a PM in their inbox, something happens to the topics/blogs/people they are following, someone wants to chat with them, ... The possibilities are endless. This should be implemented ASAP.
Comment 10•15 years ago
|
||
working on this API here in bug 573588.
Status: UNCONFIRMED → RESOLVED
Closed: 15 years ago
Resolution: --- → DUPLICATE
| Assignee | ||
Updated•7 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•