Ignore:
Timestamp:
May 7, 2009, 11:47:19 PM (16 years ago)
Author:
[email protected]
Message:

Fix <https://bugs.webkit.org/show_bug.cgi?id=25640>.
Bug 25640: Crash on quit in r43384 nightly build on Leopard w/ Safari 4 beta installed

Rubber-stamped by Oliver Hunt.

Roll out r43366 as it removed symbols that Safari 4 Beta uses.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/dom/XMLTokenizerLibxml2.cpp

    r43366 r43392  
    327327
    328328static int globalDescriptor = 0;
    329 
    330 static ThreadIdentifier& libxmlLoaderThread() {
    331     DEFINE_STATIC_LOCAL(ThreadIdentifier, staticLibxmlLoaderThread, ());
    332     return staticLibxmlLoaderThread;
    333 }
     329static ThreadIdentifier libxmlLoaderThread = 0;
    334330
    335331static int matchFunc(const char*)
     
    337333    // Only match loads initiated due to uses of libxml2 from within XMLTokenizer to avoid
    338334    // interfering with client applications that also use libxml2.  http://bugs.webkit.org/show_bug.cgi?id=17353
    339     return XMLTokenizerScope::currentDocLoader && currentThread() == libxmlLoaderThread();
     335    return XMLTokenizerScope::currentDocLoader && currentThread() == libxmlLoaderThread;
    340336}
    341337
     
    398394{
    399395    ASSERT(XMLTokenizerScope::currentDocLoader);
    400     ASSERT(currentThread() == libxmlLoaderThread());
     396    ASSERT(currentThread() == libxmlLoaderThread);
    401397
    402398    KURL url(KURL(), uri);
     
    467463        xmlRegisterInputCallbacks(matchFunc, openFunc, readFunc, closeFunc);
    468464        xmlRegisterOutputCallbacks(matchFunc, openFunc, writeFunc, closeFunc);
    469         libxmlLoaderThread() = currentThread();
     465        libxmlLoaderThread = currentThread();
    470466        didInit = true;
    471467    }
     
    489485        xmlRegisterInputCallbacks(matchFunc, openFunc, readFunc, closeFunc);
    490486        xmlRegisterOutputCallbacks(matchFunc, openFunc, writeFunc, closeFunc);
    491         libxmlLoaderThread() = currentThread();
     487        libxmlLoaderThread = currentThread();
    492488        didInit = true;
    493489    }
Note: See TracChangeset for help on using the changeset viewer.