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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/custom/V8WindowCustom.cpp

Issue 2741793003: Accurate transfer of SerializedScriptValue allocation costs. (Closed)
Patch Set: sanity check diff adjustments Created 3 years, 9 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/bindings/core/v8/custom/V8WindowCustom.cpp
diff --git a/third_party/WebKit/Source/bindings/core/v8/custom/V8WindowCustom.cpp b/third_party/WebKit/Source/bindings/core/v8/custom/V8WindowCustom.cpp
index ed8330b9afa2e06f0994c9db8bec9ea4161ab45c..915102948d8251d2f6a80673b9c5daf47e590ea2 100644
--- a/third_party/WebKit/Source/bindings/core/v8/custom/V8WindowCustom.cpp
+++ b/third_party/WebKit/Source/bindings/core/v8/custom/V8WindowCustom.cpp
@@ -284,9 +284,9 @@ void V8Window::postMessageMethodCustom(
if (exceptionState.hadException())
return;
+ message->unregisterMemoryAllocatedWithCurrentScriptContext();
window->postMessage(message.get(), transferables.messagePorts, targetOrigin,
source, exceptionState);
- message->unregisterMemoryAllocatedByCurrentScriptContext();
}
void V8Window::openMethodCustom(

Powered by Google App Engine
This is Rietveld 408576698