| Index: Source/modules/notifications/Notification.cpp
|
| diff --git a/Source/modules/notifications/Notification.cpp b/Source/modules/notifications/Notification.cpp
|
| index 8463e91a3fa2707f276623d6b708327aa7ee1ede..f650debda77393f801860487c6a5b3a32d5bd0eb 100644
|
| --- a/Source/modules/notifications/Notification.cpp
|
| +++ b/Source/modules/notifications/Notification.cpp
|
| @@ -58,7 +58,7 @@ Notification::Notification()
|
| }
|
|
|
| #if ENABLE(LEGACY_NOTIFICATIONS)
|
| -Notification::Notification(const String& title, const String& body, const String& iconURI, ExecutionContext* context, ExceptionState& es, PassRefPtr<NotificationCenter> provider)
|
| +Notification::Notification(const String& title, const String& body, const String& iconURI, ExecutionContext* context, ExceptionState& exceptionState, PassRefPtr<NotificationCenter> provider)
|
| : ActiveDOMObject(context)
|
| , m_title(title)
|
| , m_body(body)
|
| @@ -69,13 +69,13 @@ Notification::Notification(const String& title, const String& body, const String
|
|
|
| ScriptWrappable::init(this);
|
| if (provider->checkPermission() != NotificationClient::PermissionAllowed) {
|
| - es.throwSecurityError(ExceptionMessages::failedToExecute("createNotification", "NotificationCenter", "Notification permission has not been granted."));
|
| + exceptionState.throwSecurityError(ExceptionMessages::failedToExecute("createNotification", "NotificationCenter", "Notification permission has not been granted."));
|
| return;
|
| }
|
|
|
| m_icon = iconURI.isEmpty() ? KURL() : executionContext()->completeURL(iconURI);
|
| if (!m_icon.isEmpty() && !m_icon.isValid()) {
|
| - es.throwDOMException(SyntaxError, ExceptionMessages::failedToExecute("createNotification", "NotificationCenter", "'" + iconURI + "' is not a valid icon URL."));
|
| + exceptionState.throwDOMException(SyntaxError, ExceptionMessages::failedToExecute("createNotification", "NotificationCenter", "'" + iconURI + "' is not a valid icon URL."));
|
| return;
|
| }
|
| }
|
| @@ -100,9 +100,9 @@ Notification::~Notification()
|
| }
|
|
|
| #if ENABLE(LEGACY_NOTIFICATIONS)
|
| -PassRefPtr<Notification> Notification::create(const String& title, const String& body, const String& iconURI, ExecutionContext* context, ExceptionState& es, PassRefPtr<NotificationCenter> provider)
|
| +PassRefPtr<Notification> Notification::create(const String& title, const String& body, const String& iconURI, ExecutionContext* context, ExceptionState& exceptionState, PassRefPtr<NotificationCenter> provider)
|
| {
|
| - RefPtr<Notification> notification(adoptRef(new Notification(title, body, iconURI, context, es, provider)));
|
| + RefPtr<Notification> notification(adoptRef(new Notification(title, body, iconURI, context, exceptionState, provider)));
|
| notification->suspendIfNeeded();
|
| return notification.release();
|
| }
|
|
|