06_report_processing_entity.patch (608B)
1 diff --git a/expat/lib/xmlparse.c b/expat/lib/xmlparse.c 2 --- a/expat/lib/xmlparse.c 3 +++ b/expat/lib/xmlparse.c 4 @@ -2680,6 +2680,13 @@ MOZ_XML_GetMismatchedTag(XML_Parser pars 5 } 6 /* END MOZILLA CHANGE */ 7 8 +/* BEGIN MOZILLA CHANGE (Report whether the parser is currently expanding an entity) */ 9 +XML_Bool XMLCALL 10 +MOZ_XML_ProcessingEntityValue(XML_Parser parser) { 11 + return parser->m_openInternalEntities != NULL; 12 +} 13 +/* END MOZILLA CHANGE */ 14 + 15 XML_Bool XMLCALL 16 XML_SetReparseDeferralEnabled(XML_Parser parser, XML_Bool enabled) { 17 if (parser != NULL && (enabled == XML_TRUE || enabled == XML_FALSE)) {