1
0
mirror of https://github.com/roytam1/UXP.git synced 2026-05-27 11:51:17 +00:00
Files
UXP/parser/expat/06_report_processing_entity.patch
T

18 lines
583 B
Diff

diff --git a/lib/xmlparse.c b/lib/xmlparse.c
--- a/lib/xmlparse.c
+++ b/lib/xmlparse.c
@@ -2680,6 +2680,13 @@ MOZ_XML_GetMismatchedTag(XML_Parser pars
}
/* END MOZILLA CHANGE */
+/* BEGIN MOZILLA CHANGE (Report whether the parser is currently expanding an entity) */
+XML_Bool XMLCALL
+MOZ_XML_ProcessingEntityValue(XML_Parser parser) {
+ return parser->m_openInternalEntities != NULL;
+}
+/* END MOZILLA CHANGE */
+
XML_Bool XMLCALL
XML_SetReparseDeferralEnabled(XML_Parser parser, XML_Bool enabled) {
if (parser != NULL && (enabled == XML_TRUE || enabled == XML_FALSE)) {