| Index: third_party/WebKit/Source/core/xml/XSLTProcessorLibxslt.cpp
|
| diff --git a/third_party/WebKit/Source/core/xml/XSLTProcessorLibxslt.cpp b/third_party/WebKit/Source/core/xml/XSLTProcessorLibxslt.cpp
|
| index d60272e9478945193c15df6c49322c8a7fad15a5..b610c5288e972de7c88531e06f9bc42915cf3208 100644
|
| --- a/third_party/WebKit/Source/core/xml/XSLTProcessorLibxslt.cpp
|
| +++ b/third_party/WebKit/Source/core/xml/XSLTProcessorLibxslt.cpp
|
| @@ -344,17 +344,14 @@ bool XSLTProcessor::TransformToString(Node* source_node,
|
|
|
| xsltSecurityPrefsPtr security_prefs = xsltNewSecurityPrefs();
|
| // Read permissions are checked by docLoaderFunc.
|
| - if (0 != xsltSetSecurityPrefs(security_prefs, XSLT_SECPREF_WRITE_FILE,
|
| - xsltSecurityForbid))
|
| - IMMEDIATE_CRASH();
|
| - if (0 != xsltSetSecurityPrefs(security_prefs, XSLT_SECPREF_CREATE_DIRECTORY,
|
| - xsltSecurityForbid))
|
| - IMMEDIATE_CRASH();
|
| - if (0 != xsltSetSecurityPrefs(security_prefs, XSLT_SECPREF_WRITE_NETWORK,
|
| - xsltSecurityForbid))
|
| - IMMEDIATE_CRASH();
|
| - if (0 != xsltSetCtxtSecurityPrefs(security_prefs, transform_context))
|
| - IMMEDIATE_CRASH();
|
| + CHECK_EQ(0, xsltSetSecurityPrefs(security_prefs, XSLT_SECPREF_WRITE_FILE,
|
| + xsltSecurityForbid));
|
| + CHECK_EQ(0,
|
| + xsltSetSecurityPrefs(security_prefs, XSLT_SECPREF_CREATE_DIRECTORY,
|
| + xsltSecurityForbid));
|
| + CHECK_EQ(0, xsltSetSecurityPrefs(security_prefs, XSLT_SECPREF_WRITE_NETWORK,
|
| + xsltSecurityForbid));
|
| + CHECK_EQ(0, xsltSetCtxtSecurityPrefs(security_prefs, transform_context));
|
|
|
| // <http://bugs.webkit.org/show_bug.cgi?id=16077>: XSLT processor
|
| // <xsl:sort> algorithm only compares by code point.
|
|
|