Skip to content
  • eric@webkit.org's avatar
    2009-11-23 Simon Hausmann <simon.hausmann@nokia.com> · 7a83cbfa
    eric@webkit.org authored
            Reviewed by Kenneth Rohde Christiansen.
    
            [Qt] Wrong runtime instance objects of wrapped QObjects may be used if
            the wrapped object died before the gc removed the instance.
    
            https://bugs.webkit.org/show_bug.cgi?id=31681
    
            Before using a cached instance, verify that its wrapped QObject is
            still alive.
    
            * bridge/qt/qt_instance.cpp:
            (JSC::Bindings::QtInstance::getQtInstance):
            * bridge/qt/qt_instance.h:
            (JSC::Bindings::QtInstance::hashKey):
    2009-11-23  Simon Hausmann  <simon.hausmann@nokia.com>
    
            Reviewed by Kenneth Rohde Christiansen.
    
            [Qt] Wrong runtime instance objects of wrapped QObjects may be used if
            the wrapped object died before the gc removed the instance.
    
            https://bugs.webkit.org/show_bug.cgi?id=31681
    
            Added a unit-test to verify that wrapping a QObject with the
            same identity as a previously but now dead object works.
    
            * tests/qwebframe/tst_qwebframe.cpp:
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@51306 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    7a83cbfa