Source/WebCore: REGRESSION (r113233): fast/canvas/webgl/array-message-passing.html...
authordslomov@google.com <dslomov@google.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 12 Apr 2012 19:16:49 +0000 (19:16 +0000)
committerdslomov@google.com <dslomov@google.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 12 Apr 2012 19:16:49 +0000 (19:16 +0000)
https://bugs.webkit.org/show_bug.cgi?id=83427.
Due to incorrect merge by me when landing r113233, call to find got replaces with call to add in
checking for duplicates in ObjectPool when serializing.

Reviewed by Dean Jackson.

Covered by existing tests.

* bindings/js/SerializedScriptValue.cpp:
(WebCore::CloneSerializer::checkForDuplicate):

LayoutTests: REGRESSION (r113233): fast/canvas/webgl/array-message-passing.html crashing on Lion and Snow Leopard bots.
https://bugs.webkit.org/show_bug.cgi?id=83427.
Bug fixed, unskipping tests.

Reviewed by Dean Jackson.

* platform/mac/Skipped:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@114013 268f45cc-cd09-0410-ab3c-d52691b4dbfc

LayoutTests/ChangeLog
LayoutTests/platform/mac/Skipped
Source/WebCore/ChangeLog
Source/WebCore/bindings/js/SerializedScriptValue.cpp

index d2243d7..1b6cb44 100644 (file)
@@ -1,3 +1,13 @@
+2012-04-12  Dmitry Lomov  <dslomov@google.com>
+
+        REGRESSION (r113233): fast/canvas/webgl/array-message-passing.html crashing on Lion and Snow Leopard bots.
+        https://bugs.webkit.org/show_bug.cgi?id=83427.
+        Bug fixed, unskipping tests.
+
+        Reviewed by Dean Jackson.
+
+        * platform/mac/Skipped:
+
 2012-04-12  David Barton  <dbarton@mathscribe.com>
 
         Don't modify shared style objects in RenderMathMLRoot.cpp
index 5a2110d..9050ac3 100644 (file)
@@ -789,9 +789,6 @@ inspector/styles/override-screen-size.html
 # https://bugs.webkit.org/show_bug.cgi?id=83239
 fast/animation/request-animation-frame-during-modal.html
 
-# https://bugs.webkit.org/show_bug.cgi?id=83427
-fast/canvas/webgl/array-message-passing.html
-
 # https://bugs.webkit.org/show_bug.cgi?id=77754
 # https://bugs.webkit.org/show_bug.cgi?id=83489
 # window.resizeTo() does not seem to work as expected in Mac DRT. The outerWidth changes after a resizeTo()
index 56b2e69..b8ee9d0 100644 (file)
@@ -1,3 +1,17 @@
+2012-04-12  Dmitry Lomov  <dslomov@google.com>
+
+        REGRESSION (r113233): fast/canvas/webgl/array-message-passing.html crashing on Lion and Snow Leopard bots.
+        https://bugs.webkit.org/show_bug.cgi?id=83427.
+        Due to incorrect merge by me when landing r113233, call to find got replaces with call to add in 
+        checking for duplicates in ObjectPool when serializing.
+
+        Reviewed by Dean Jackson.
+
+        Covered by existing tests.
+
+        * bindings/js/SerializedScriptValue.cpp:
+        (WebCore::CloneSerializer::checkForDuplicate):
+
 2012-04-12  David Barton  <dbarton@mathscribe.com>
 
         Don't modify shared style objects in RenderMathMLRoot.cpp
index 316408b..5d2d51d 100644 (file)
@@ -392,13 +392,13 @@ private:
     bool checkForDuplicate(JSObject* object)
     {
         // Record object for graph reconstruction
-        ObjectPool::AddResult addResult = m_objectPool.add(object, m_objectPool.size());
+        ObjectPool::const_iterator found = m_objectPool.find(object);
 
         // Handle duplicate references
-        if (!addResult.isNewEntry) {
+        if (found != m_objectPool.end()) {
             write(ObjectReferenceTag);
-            ASSERT(static_cast<int32_t>(addResult.iterator->second) < m_objectPool.size());
-            writeObjectIndex(addResult.iterator->second);
+            ASSERT(static_cast<int32_t>(found->second) < m_objectPool.size());
+            writeObjectIndex(found->second);
             return true;
         }