thinblog / pywebkitgtk

Automatically exported from code.google.com/p/pywebkitgtk
Other
0 stars 0 forks source link

window.webkitNotifications is not an object. #60

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
*What steps will reproduce the problem?*
1. Make app with pywebkitgtk 
2. Make html with this JavaScript code: 
window.webkitNotifications.createNotification("", "Notifier", 
"Hello").popup.show();
3. Load file with pywebkitgtk app

*What is the expected output? What do you see instead?*
I was expected a notification window, but an error was printed:

** Message: console message: file://asdf.html @47: TypeError: Result of 
expression 'window.webkitNotifications' [undefined] is not an object.

Im trying to create an app that supports desktop notifications. I know, 
pywebkitgtk don't support webkitNotifications. But, do you know any way to wrap 
these JavaScript objects? If it is posible, I could write pygtk code to show 
desktop notifications.

Original issue reported on code.google.com by NachE.NachE on 30 Jan 2011 at 4:49

GoogleCodeExporter commented 8 years ago
Any updates on this? 

I also wish to do something similar. I want to execute "notify-send" command 
each time a page sends a webkit notification. Is that possible?

Original comment by abhijeet...@gmail.com on 1 Aug 2012 at 12:10