Changeset 77979 in webkit


Ignore:
Timestamp:
Feb 8, 2011 3:09:49 PM (13 years ago)
Author:
msaboff@apple.com
Message:

2011-02-08 Michael Saboff <msaboff@apple.com>

JSC::Bindings m_rootObject->isValid() assert fails when running layout tests
https://bugs.webkit.org/show_bug.cgi?id=53716

Changed ASSERT to be an if for the case where the RuntimeObject was
GC'ed before RootObject::invalidate is called. In that case there is
no need to remove the RuntimeObject from the RootObject. The isValid()
call will be false in this case, but the RuntimeObject has already
been removed from the RootObject. Added similar defensive code
in RootObject::removeRuntimeObject().

  • bridge/jsc/BridgeJSC.cpp: (JSC::Bindings::Instance::willDestroyRuntimeObject):
  • bridge/runtime_root.cpp: (JSC::Bindings::RootObject::removeRuntimeObject):

2011-02-08 Michael Saboff <msaboff@apple.com>

Reviewed by Darin Adler.

JSC::Bindings m_rootObject->isValid() assert fails when running layout tests
https://bugs.webkit.org/show_bug.cgi?id=53716

Re-enabled tests that are fixed with the corresponding change in
WebCore.

  • platform/gtk/Skipped:
Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r77973 r77979  
     12011-02-08  Michael Saboff  <msaboff@apple.com>
     2
     3        Reviewed by Darin Adler.
     4
     5        JSC::Bindings m_rootObject->isValid() assert fails when running layout tests
     6        https://bugs.webkit.org/show_bug.cgi?id=53716
     7
     8        Re-enabled tests that are fixed with the corresponding change in
     9        WebCore.
     10
     11        * platform/gtk/Skipped:
     12
    1132011-02-08  Xiaomei Ji  <xji@chromium.org>
    214
  • trunk/LayoutTests/platform/gtk/Skipped

    r77971 r77979  
    46434643http/tests/websocket/tests/cross-origin.html
    46444644
    4645 # These tests fail ASSERT(m_rootObject->isValid()); on the GTK+ debug bots.
    4646 # It should be unskipped when https://bugs.webkit.org/show_bug.cgi?id=53716 is fixed.
    4647 fast/frames/set-parent-src-synchronously.html
    4648 fast/frames/sandboxed-iframe-storage.html
     4645# GTK+ DRT should support enabling and disabling the icon database
     4646http/tests/inspector/resource-har-conversion.html
  • trunk/Source/WebCore/ChangeLog

    r77970 r77979  
     12011-02-08  Michael Saboff  <msaboff@apple.com>
     2
     3        JSC::Bindings m_rootObject->isValid() assert fails when running layout tests
     4        https://bugs.webkit.org/show_bug.cgi?id=53716
     5
     6        Changed ASSERT to be an if for the case where the RuntimeObject was
     7        GC'ed before RootObject::invalidate is called.  In that case there is
     8        no need to remove the RuntimeObject from the RootObject.  The isValid()
     9        call will be false in this case, but the RuntimeObject has already
     10        been removed from the RootObject.  Added similar defensive code
     11        in RootObject::removeRuntimeObject().
     12
     13        * bridge/jsc/BridgeJSC.cpp:
     14        (JSC::Bindings::Instance::willDestroyRuntimeObject):
     15        * bridge/runtime_root.cpp:
     16        (JSC::Bindings::RootObject::removeRuntimeObject):
     17
    1182011-02-08  Beth Dakin  <bdakin@apple.com>
    219
  • trunk/Source/WebCore/bridge/jsc/BridgeJSC.cpp

    r71426 r77979  
    107107{
    108108    ASSERT(m_rootObject);
    109     ASSERT(m_rootObject->isValid());
    110109    m_rootObject->removeRuntimeObject(object);
    111110    m_runtimeObject.clear(object);
  • trunk/Source/WebCore/bridge/runtime_root.cpp

    r77159 r77979  
    186186void RootObject::removeRuntimeObject(RuntimeObject* object)
    187187{
    188     ASSERT(m_isValid);
     188    if (!m_isValid)
     189        return;
     190
    189191    ASSERT(m_runtimeObjects.uncheckedGet(object));
    190192
Note: See TracChangeset for help on using the changeset viewer.