Check notification permissions in the show() method
authorjochen@chromium.org <jochen@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 27 Jan 2013 10:58:30 +0000 (10:58 +0000)
committerjochen@chromium.org <jochen@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 27 Jan 2013 10:58:30 +0000 (10:58 +0000)
commit483283245c28214891a61f82a7619c1f009fd86e
tree42cd51188d82b0680d51d25c147d3013db39356a
parentdcfc998eae3bfc303a4b35e885473f0a6e3f4c9b
Check notification permissions in the show() method
https://bugs.webkit.org/show_bug.cgi?id=108009

Reviewed by Adam Barth.

Source/WebCore:

Tests: fast/notifications/notifications-constructor-with-permission.html
       fast/notifications/notifications-constructor-without-permission.html

* Modules/notifications/Notification.cpp:
(WebCore::Notification::show):
(WebCore::Notification::taskTimerFired):

LayoutTests:

* fast/notifications/notifications-constructor-with-permission-expected.txt: Added.
* fast/notifications/notifications-constructor-with-permission.html: Added.
* fast/notifications/notifications-constructor-without-permission-expected.txt: Added.
* fast/notifications/notifications-constructor-without-permission.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@140927 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/notifications/notifications-constructor-with-permission-expected.txt [new file with mode: 0644]
LayoutTests/fast/notifications/notifications-constructor-with-permission.html [new file with mode: 0644]
LayoutTests/fast/notifications/notifications-constructor-without-permission-expected.txt [new file with mode: 0644]
LayoutTests/fast/notifications/notifications-constructor-without-permission.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/Modules/notifications/Notification.cpp