зеркало из https://github.com/mozilla/pjs.git
Bug 110464, don't load external entities for standalone documents (minor perf optimization). Patch from henris@clinet.fi. r=heikki, sr=jst.
This commit is contained in:
Родитель
af95e4dcc5
Коммит
e8d3315332
|
@ -813,6 +813,7 @@ nsExpatDriver::WillBuildModel(const CParserContext& aParserContext,
|
|||
XML_SetCdataSectionHandler(mExpatParser, Driver_HandleStartCdataSection,
|
||||
Driver_HandleEndCdataSection);
|
||||
|
||||
XML_SetParamEntityParsing(mExpatParser, XML_PARAM_ENTITY_PARSING_UNLESS_STANDALONE);
|
||||
XML_SetDoctypeDeclHandler(mExpatParser, Driver_HandleStartDoctypeDecl, Driver_HandleEndDoctypeDecl);
|
||||
|
||||
// Set up the user data.
|
||||
|
|
|
@ -813,6 +813,7 @@ nsExpatDriver::WillBuildModel(const CParserContext& aParserContext,
|
|||
XML_SetCdataSectionHandler(mExpatParser, Driver_HandleStartCdataSection,
|
||||
Driver_HandleEndCdataSection);
|
||||
|
||||
XML_SetParamEntityParsing(mExpatParser, XML_PARAM_ENTITY_PARSING_UNLESS_STANDALONE);
|
||||
XML_SetDoctypeDeclHandler(mExpatParser, Driver_HandleStartDoctypeDecl, Driver_HandleEndDoctypeDecl);
|
||||
|
||||
// Set up the user data.
|
||||
|
|
Загрузка…
Ссылка в новой задаче