Gecko / Firefox支持HTML5通知 [英] Gecko/Firefox support for HTML5 Notifications
问题描述
我想知道到目前为止Gecko浏览器中是否有对 HTML5 Notification 功能的内置支持?也许是一些隐藏的开发人员?
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 ?
我知道WebKits window.webkitNotifications
哪个很好用,所以,是有Firefox实现吗?
I'm aware of WebKits window.webkitNotifications
which works great, so, is there a Firefox implementation ?
更新
搜索并阅读一些W3C HTML5后规格,我可能有点偏离这里。
我在那里找不到任何通知功能。我在这里面对错误的事实吗?这只是一个非常自己的webkit实现吗?
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"?
推荐答案
从第二个问题开始:不,它不是WebKit-具体功能。但是,虽然名为html5rocks的网站包含演示,但通知仍然不属于HTML 5 .WHATWG 邮件中有关于它们的讨论列表今年(阅读主题'通知API'的消息)。在稍后的消息中再次提及它们。
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.
那么,我们有什么? Chromium中 Notification API 的说明。 W3C 编辑的规范草案,基于Chromium的API(但独立于HTML 5)。
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将通知作为其棱镜项目。例如,从Prism 0.9开始, Prism的一部分:
Mozilla mentioned Notifications as part of their Prism project. E.g., beginning with Prism 0.9 Notifications are a part of Prism:
第一个桌面集成功能
出现了。这些包括
弹出通知和码头徽章。一个名为
webapp.js的
特殊JavaScript文件包含用于自定义Web应用程序的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.
您可以继续阅读 Prism Wiki :
Prism可作为
Firefox 3的扩展或作为独立的
应用程序提供。
Prism is available as an extension for Firefox 3 or as a standalone application.
来自常见问题解答:
Prism是该项目的代号,
以及
Prism提供的功能是否为产品或
集成到其他产品(如
Firefox),然后它不一定是
继续被这个
代号调用。
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.
这篇关于Gecko / Firefox支持HTML5通知的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!