Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1688)

Unified Diff: Source/modules/notifications/Notification.cpp

Issue 23135009: Improve IDB module's SecurityError messages. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: test Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;
}

Powered by Google App Engine
This is Rietveld 408576698