Re: HTML5 Notifications

Neil <[email protected]> Wed, 27 Aug 2014 20:18:37 +0100
Newsgroups gmane.comp.mozilla.devel.xpfe
Message-ID <[email protected]>
Rodolfo Stangherlin wrote:

>I'm starting to develop a simple HTML5 app to run inside XULrunner and trying to use the HTML5 notification API.
>
>Running inside Firefox, it asks for permission and works well. But if I create an XUL app with a <browser> tag pointing to the URL, it is not working (not show the Notification and not asking for permissions).
>  
>
Assuming that notifications have not been disabled, you have to 
explicitly allow them in your nsIContentPermissionPrompt implementation. 
(The one provided with Firefox uses the permission service to track 
whether the user has previously allowed permission and prompts if not.)

-- 
Warning: May contain traces of nuts.