Gecko/Firefox support for HTML5 Notifications

2019-03-12 07:48发布

I'm wondering if there is any build-in support for the HTML5 Notification feature in Gecko browsers so far? Maybe some hidden developer thingy ?

I'm aware of WebKits window.webkitNotifications which works great, so, is there a Firefox implementation ?

Update

After searching and reading some W3C HTML5 specs, I'm maybe a little bit off here. I can't find any Notification feature anywhere there. Am I facing wrong facts here? Is that just a "very own webkit implementation"?

5条回答
我欲成王,谁敢阻挡
2楼-- · 2019-03-12 08:27

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.

查看更多
淡お忘
3楼-- · 2019-03-12 08:34

Tab notifier adds this feature and works great.

查看更多
冷血范
4楼-- · 2019-03-12 08:36

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.

查看更多
\"骚年 ilove
5楼-- · 2019-03-12 08:42

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

查看更多
姐就是有狂的资本
6楼-- · 2019-03-12 08:46

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

查看更多
登录 后发表回答