google chrome - No permissions for notifications -


the problem when run extension securityerror dom 18 when trying make notification.

so how manifest file looks like:

{  "name": "no",  "manifest_version": 2,  "version": "1",  "content_scripts": [   {    "js": ["js.js"]   }  ],   "permissions": [  "notifications", "tabs"  ],  "web_accessible_resources": [  "48.png"  ] } 

this notification:

var notification = webkitnotifications.createnotification(     '/favicon.ico',     'item added cart!',  // notification title     'item ............ has been added cart.'  //       notification body text ); 

the notifications permission not propagate content script.

add event page extension, , send message open notification event page.


Comments

Popular posts from this blog

javascript - DIV "hiding" when changing dropdown value -

Does Firefox offer AppleScript support to get URL of windows? -

android - How to install packaged app on Firefox for mobile? -