Changeset 57276 in webkit
- Timestamp:
- Apr 8, 2010 7:28:32 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r57274 r57276 1 2010-04-08 Yury Semikhatsky <yurys@chromium.org> 2 3 Reviewed by Pavel Feldman. 4 5 Test that object with ptototype can be sent as message. 6 7 https://bugs.webkit.org/show_bug.cgi?id=37263 8 9 * fast/dom/Window/window-postmessage-clone-expected.txt: 10 * fast/dom/Window/window-postmessage-clone.html: 11 1 12 2010-04-08 Kent Tamura <tkent@chromium.org> 2 13 -
trunk/LayoutTests/fast/dom/Window/window-postmessage-clone-expected.txt
r54646 r57276 16 16 PASS: eventData is null of type object 17 17 PASS: eventData is 2009-02-13T23:31:30.000Z of type object 18 PASS: eventData is [object Object] of type object 18 19 PASS: eventData is [object Array](default toString threw RangeError: Maximum call stack size exceeded.) of type object 19 20 PASS: eventData is [object File] of type object -
trunk/LayoutTests/fast/dom/Window/window-postmessage-clone.html
r54646 r57276 93 93 window.addEventListener('message', onmessage, false); 94 94 95 function ConstructorWithPrototype(s) { 96 this.field = s; 97 } 98 99 ConstructorWithPrototype.prototype = { 100 protoProperty: 2010 101 }; 102 95 103 function tryPostMessage(message, shouldThrow, expected) { 96 104 try { … … 122 130 tryPostMessage('(function(){})', false, 'null'); 123 131 tryPostMessage('new Date(1234567890000)'); 132 tryPostMessage('new ConstructorWithPrototype("foo")', false, '({field:"foo"})'); 124 133 cyclicObject={}; 125 134 cyclicObject.self = cyclicObject; -
trunk/WebCore/ChangeLog
r57275 r57276 1 2010-04-08 Yury Semikhatsky <yurys@chromium.org> 2 3 Reviewed by Pavel Feldman. 4 5 Correctly save number of properties when object being serialized 6 have properties in its prorotype. 7 8 https://bugs.webkit.org/show_bug.cgi?id=37263 9 10 * bindings/v8/SerializedScriptValue.cpp: 11 (WebCore::ZigZag::Serializer::AbstractObjectState::AbstractObjectState): 12 (WebCore::ZigZag::Serializer::AbstractObjectState::advance): 13 1 14 2010-04-08 Jeremy Orlow <jorlow@chromium.org> 2 15 -
trunk/WebCore/bindings/v8/SerializedScriptValue.cpp
r57207 r57276 385 385 , m_propertyNames(object->GetPropertyNames()) 386 386 , m_index(-1) 387 , m_numSerializedProperties(0) 387 388 , m_nameDone(false) 388 389 { … … 410 411 m_nameDone = false; 411 412 m_propertyName.Clear(); 413 ++m_numSerializedProperties; 412 414 if (StateBase* newState = serializer.doSerialize(value, this)) 413 415 return newState; 414 416 } 415 return objectDone(m_ index, serializer);417 return objectDone(m_numSerializedProperties, serializer); 416 418 } 417 419 … … 423 425 v8::Local<v8::Value> m_propertyName; 424 426 unsigned m_index; 427 unsigned m_numSerializedProperties; 425 428 bool m_nameDone; 426 429 };
Note: See TracChangeset
for help on using the changeset viewer.