--- /config.tests/xml2/xml2.cpp +++ /config.tests/xml2/xml2.cpp @@ -27,9 +27,6 @@ ****************************************************************************/ #include -#if defined(LIBXML_CATALOG_ENABLED) -#error "libxml catalog enabled" -#endif #if !defined(LIBXML_ICU_ENABLED) #error "libxml icu not enabled" #endif --- /src/3rdparty/chromium/third_party/WebKit/Source/core/xml/parser/XMLDocumentParser.cpp +++ /src/3rdparty/chromium/third_party/WebKit/Source/core/xml/parser/XMLDocumentParser.cpp @@ -538,10 +538,6 @@ static bool ShouldAllowExternalLoad(const KURL& url) { String url_string = url.GetString(); - // libxml should not be configured with catalogs enabled, so it - // should not be asking to load default catalogs. - CHECK(!IsLibxmlDefaultCatalogFile(url)); - // The most common DTD. There isn't much point in hammering www.w3c.org by // requesting this URL for every XHTML document. if (url_string.StartsWithIgnoringASCIICase("http://www.w3.org/TR/xhtml")) @@ -646,6 +642,7 @@ if (did_init) return; + xmlCatalogSetDefaults(XML_CATA_ALLOW_NONE); xmlInitParser(); xmlRegisterInputCallbacks(MatchFunc, OpenFunc, ReadFunc, CloseFunc); xmlRegisterOutputCallbacks(MatchFunc, OpenFunc, WriteFunc, CloseFunc);