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

Unified Diff: third_party/WebKit/Source/modules/serviceworkers/ServiceWorker.cpp

Issue 2414333003: WebMessaging: Send transferable ArrayBuffers by copy-and-neuter semantics (Closed)
Patch Set: fix tests Created 4 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/serviceworkers/ServiceWorker.cpp
diff --git a/third_party/WebKit/Source/modules/serviceworkers/ServiceWorker.cpp b/third_party/WebKit/Source/modules/serviceworkers/ServiceWorker.cpp
index f867bbc0ac141b140a81f16f9c64010b8cd31d70..b87e365b62e0b4752dc432ddba552489c79131a9 100644
--- a/third_party/WebKit/Source/modules/serviceworkers/ServiceWorker.cpp
+++ b/third_party/WebKit/Source/modules/serviceworkers/ServiceWorker.cpp
@@ -34,7 +34,6 @@
#include "core/dom/ExceptionCode.h"
#include "core/dom/MessagePort.h"
#include "core/events/Event.h"
-#include "core/inspector/ConsoleMessage.h"
#include "modules/EventTargetModules.h"
#include "modules/serviceworkers/ServiceWorkerContainerClient.h"
#include "public/platform/WebMessagePortChannel.h"
@@ -73,12 +72,6 @@ void ServiceWorker::postMessage(ExecutionContext* context,
return;
}
- if (message->containsTransferableArrayBuffer())
- context->addConsoleMessage(ConsoleMessage::create(
- JSMessageSource, WarningMessageLevel,
- "ServiceWorker cannot send an ArrayBuffer as a transferable object "
- "yet. See http://crbug.com/511119"));
-
WebString messageString = message->toWireString();
std::unique_ptr<WebMessagePortChannelArray> webChannels =
MessagePort::toWebMessagePortChannelArray(std::move(channels));

Powered by Google App Engine
This is Rietveld 408576698