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

Unified Diff: third_party/WebKit/Source/modules/push_messaging/PushEvent.cpp

Issue 1414553002: Fix out-of-memory crashes related to ArrayBuffer allocation Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase and applied senorblanco+haraken feedbac Created 5 years, 2 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: third_party/WebKit/Source/modules/push_messaging/PushEvent.cpp
diff --git a/third_party/WebKit/Source/modules/push_messaging/PushEvent.cpp b/third_party/WebKit/Source/modules/push_messaging/PushEvent.cpp
index ac061a8c15d90223515a1e188ac4ed39eaf7294b..784a9f0c9140286e17dbf2df9a5a27c88005e9ec 100644
--- a/third_party/WebKit/Source/modules/push_messaging/PushEvent.cpp
+++ b/third_party/WebKit/Source/modules/push_messaging/PushEvent.cpp
@@ -19,11 +19,11 @@ PushEvent::PushEvent(const AtomicString& type, PushMessageData* data, WaitUntilO
{
}
-PushEvent::PushEvent(const AtomicString& type, const PushEventInit& initializer)
+PushEvent::PushEvent(const AtomicString& type, const PushEventInit& initializer, ExceptionState& exceptionState)
: ExtendableEvent(type, initializer)
{
if (initializer.hasData())
- m_data = PushMessageData::create(initializer.data());
+ m_data = PushMessageData::create(initializer.data(), exceptionState);
}
PushEvent::~PushEvent()

Powered by Google App Engine
This is Rietveld 408576698