SerializedScriptValue fails to deserialize an Object that has prototype with properties. Try to serialize and the deserialize object with the following constructor: InjectedScript.CallFrameProxy = function(id) { this.id = id; } InjectedScript.CallFrameProxy.prototype = { _wrapScopeChain: function(callFrame) {} }
Created attachment 52853 [details] proposed fix
Created attachment 52857 [details] patch
Created attachment 52859 [details] patch Moved ++m_numSerializedProperties; after property names serialization according to vitalyr feedback.
Committing to http://svn.webkit.org/repository/webkit/trunk ... M LayoutTests/ChangeLog M LayoutTests/fast/dom/Window/window-postmessage-clone-expected.txt M LayoutTests/fast/dom/Window/window-postmessage-clone.html M WebCore/ChangeLog M WebCore/bindings/v8/SerializedScriptValue.cpp Committed r57276
(In reply to comment #4) > Committing to http://svn.webkit.org/repository/webkit/trunk ... > M LayoutTests/ChangeLog > M LayoutTests/fast/dom/Window/window-postmessage-clone-expected.txt > M LayoutTests/fast/dom/Window/window-postmessage-clone.html > M WebCore/ChangeLog > M WebCore/bindings/v8/SerializedScriptValue.cpp > Committed r57276 Thanks a lot for fixing this!