From a0889edfabc7e231af01f6044f0d2d6c684c1493 Mon Sep 17 00:00:00 2001 From: "ager@google.com" Date: Fri, 7 Nov 2008 19:29:29 +0000 Subject: Keep MessagePort wrappers alive for the life-time of the corresponding MessageChannel. I create the MessagePort wrappers when a MessageChannel is constructed and put references to them in internal fields in the MessageChannel. This is a fix for http://code.google.com/p/chromium/issues/detail?id=4195 Review URL: http://codereview.chromium.org/9508 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5006 0039d316-1c4b-4281-b951-d872f2087c98 --- webkit/port/bindings/v8/v8_custom.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'webkit/port/bindings/v8/v8_custom.h') diff --git a/webkit/port/bindings/v8/v8_custom.h b/webkit/port/bindings/v8/v8_custom.h index 6ce3239..d3bee4c 100644 --- a/webkit/port/bindings/v8/v8_custom.h +++ b/webkit/port/bindings/v8/v8_custom.h @@ -54,6 +54,13 @@ class V8Custom { static const int kXMLHttpRequestInternalFieldCount = kDefaultWrapperInternalFieldCount + 1; + static const int kMessageChannelPort1Index = + kDefaultWrapperInternalFieldCount + 0; + static const int kMessageChannelPort2Index = + kDefaultWrapperInternalFieldCount + 1; + static const int kMessageChannelInternalFieldCount = + kDefaultWrapperInternalFieldCount + 2; + static const int kMessagePortRequestCacheIndex = kDefaultWrapperInternalFieldCount + 0; static const int kMessagePortInternalFieldCount = -- cgit v1.1