Changeset 24106 in webkit


Ignore:
Timestamp:
Jul 9, 2007 12:39:21 AM (17 years ago)
Author:
mjs
Message:

JavaScriptCore:

Reviewed by Oliver.


  • JavaScriptCore part of fix for: <rdar://problem/5295734> Repro crash closing tab/window @ maps.google.com in WTF::HashSet<KJS::RuntimeObjectImp*, WTF::PtrHash<KJS::RuntimeObjectImp*>, WTF::HashTraits<KJS::RuntimeObjectImp*> >::add + 11


WebCore:

Reviewed by Oliver.

<rdar://problem/5295734> Repro crash closing tab/window @ maps.google.com in WTF::HashSet<KJS::RuntimeObjectImp*, WTF::PtrHash<KJS::RuntimeObjectImp*>, WTF::HashTraits<KJS::RuntimeObjectImp*> >::add + 11


Automated test case is not possible. Did not bother with manual test this time.

  • bindings/js/kjs_dom.cpp: (WebCore::getRuntimeObject): Check that runtime root isn't null, as well as instance; this should cover the case where the plugin is already shut down and onunload time.
Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/ChangeLog

    r24059 r24106  
     12007-07-09  Maciej Stachowiak  <mjs@apple.com>
     2
     3        Reviewed by Oliver.
     4       
     5        - JavaScriptCore part of fix for: <rdar://problem/5295734> Repro crash closing tab/window @ maps.google.com in WTF::HashSet<KJS::RuntimeObjectImp*, WTF::PtrHash<KJS::RuntimeObjectImp*>, WTF::HashTraits<KJS::RuntimeObjectImp*> >::add + 11
     6       
     7        * JavaScriptCore.exp: Added needed export.
     8
    192007-07-06  Maciej Stachowiak  <mjs@apple.com>
    210
  • trunk/JavaScriptCore/JavaScriptCore.exp

    r23892 r24106  
    186186__ZN3KJS8Bindings23convertObjcValueToValueEPNS_9ExecStateEPvNS0_13ObjcValueTypeEPNS0_10RootObjectE
    187187__ZN3KJS8Bindings23convertValueToObjcValueEPNS_9ExecStateEPNS_7JSValueENS0_13ObjcValueTypeE
     188__ZNK3KJS8Bindings8Instance10rootObjectEv
    188189__ZN3KJS8Bindings8Instance18didExecuteFunctionEv
    189190__ZN3KJS8Bindings8Instance21setDidExecuteFunctionEPFvPNS_9ExecStateEPNS_8JSObjectEE
  • trunk/WebCore/ChangeLog

    r24105 r24106  
     12007-07-09  Maciej Stachowiak  <mjs@apple.com>
     2
     3        Reviewed by Oliver.
     4
     5        <rdar://problem/5295734> Repro crash closing tab/window @ maps.google.com in WTF::HashSet<KJS::RuntimeObjectImp*, WTF::PtrHash<KJS::RuntimeObjectImp*>, WTF::HashTraits<KJS::RuntimeObjectImp*> >::add + 11
     6       
     7        Automated test case is not possible. Did not bother with manual test this time.
     8
     9        * bindings/js/kjs_dom.cpp:
     10        (WebCore::getRuntimeObject): Check that runtime root isn't null, as well as instance;
     11        this should cover the case where the plugin is already shut down and onunload time.
     12
    1132007-07-08  Maciej Stachowiak  <mjs@apple.com>
    214
  • trunk/WebCore/bindings/js/kjs_dom.cpp

    r22048 r24106  
    104104    if (n->hasTagName(objectTag) || n->hasTagName(embedTag) || n->hasTagName(appletTag)) {
    105105        HTMLPlugInElement* plugInElement = static_cast<HTMLPlugInElement*>(n);
    106         if (plugInElement->getInstance())
     106        if (plugInElement->getInstance() && plugInElement->getInstance()->rootObject())
    107107            // The instance is owned by the PlugIn element.
    108108            return new RuntimeObjectImp(plugInElement->getInstance());
Note: See TracChangeset for help on using the changeset viewer.