| Index: Source/modules/notifications/Notification.cpp
|
| diff --git a/Source/modules/notifications/Notification.cpp b/Source/modules/notifications/Notification.cpp
|
| index 742e6b7517f5fa90285c79f957aa4a0cadbea9ca..09ea9418ebdd3917838071b272b3e1b31adf1618 100644
|
| --- a/Source/modules/notifications/Notification.cpp
|
| +++ b/Source/modules/notifications/Notification.cpp
|
| @@ -36,6 +36,7 @@
|
| #include "modules/notifications/Notification.h"
|
|
|
| #include "bindings/v8/Dictionary.h"
|
| +#include "bindings/v8/ExceptionMessages.h"
|
| #include "bindings/v8/ExceptionState.h"
|
| #include "core/dom/Document.h"
|
| #include "core/dom/ErrorEvent.h"
|
| @@ -70,7 +71,7 @@ Notification::Notification(const String& title, const String& body, const String
|
| {
|
| ScriptWrappable::init(this);
|
| if (m_notificationCenter->checkPermission() != NotificationClient::PermissionAllowed) {
|
| - es.throwDOMException(SecurityError);
|
| + es.throwSecurityError("Failed to create Notification: permission denied.");
|
| return;
|
| }
|
|
|
|
|