-
oliver@apple.com authored
https://bugs.webkit.org/show_bug.cgi?id=22878 Reviewed by Gavin Barraclough. Implement object cloning semantics for postMessage. Currently only a partial implementation of the spec -- cloning of File, FileList, ImageData, and RegExp were left out as they would have significantly increased patch size. Cloning requires multiple tree walks so we use a templated tree walk function, allowing us to share a single implementation for serialization, deserialization, and eventual destruction of the serialized object tree. Test: fast/dom/Window/window-postmessage-clone.html git-svn-id: http://svn.webkit.org/repository/webkit/trunk@49214 268f45cc-cd09-0410-ab3c-d52691b4dbfc
0ef2c5b4