Gecko/Firefox support for HTML5 Notifications

落爺英雄遲暮 提交于 2019-12-02 22:32:26

To start with your second question: no, it's not a WebKit-specific feature. But although a site called ‘html5rocks’ contains a demo of this, Notifications are still not part of HTML 5. There was a discussion about them on the WHATWG mailing list this year (read the messages with subject ‘Notification API’). They are mentioned again in a later message.

So, what do we have? A description of the Notification API in Chromium. A W3C Editor's Draft of a specification, based on Chromium's API (but independent of HTML 5).

Mozilla mentioned Notifications as part of their Prism project. E.g., beginning with Prism 0.9 Notifications are a part of Prism:

The first desktop integration features made an appearance. These included popup notifications and dock badging. A special JavaScript file called webapp.js contains Prism-specific code for customizing a web app.

You can read on on the Prism Wiki:

Prism is available as an extension for Firefox 3 or as a standalone application.

And from the FAQ:

Prism is the codename for the project, and if the functionality provided by Prism becomes a product or is integrated into other products (like Firefox), then it won't necessarily continue to be called by this codename.

It seems that Web Notifications will land in FireFox (Aurora 22) as well. IE10 and even Safari6 are currently missing the party.

There's a Firefox plugin called ff-html5notifications that acts as an adapter between the Chrome Notification API and Firefox' internal notification API, which then again uses native notification systems on the respective platform (Growl, libnotify).

Note that on Linux, non-html notifications are currently only working without images with this version of the plugin.

Tab notifier adds this feature and works great.

I've also found this gs script: https://github.com/jhdxr/userscript-html-desktop-notification It seems to require scriptish to work!

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!