Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(643)

Unified Diff: third_party/WebKit/Source/core/xml/XSLTProcessorLibxslt.cpp

Issue 2919653004: Use LOG() or LOG_IF() instead of IMMEDIATE_CRASH (Closed)
Patch Set: Use LOG() or LOG_IF() instead of IMMEDIATE_CRASH Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..5e93254c484fe722a755671df46f2676df51a9c2 100644
--- a/third_party/WebKit/Source/core/xml/XSLTProcessorLibxslt.cpp
+++ b/third_party/WebKit/Source/core/xml/XSLTProcessorLibxslt.cpp
@@ -344,17 +344,17 @@ 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();
+ LOG_IF(FATAL,
+ 0 != xsltSetSecurityPrefs(security_prefs, XSLT_SECPREF_WRITE_FILE,
+ xsltSecurityForbid));
+ LOG_IF(FATAL, 0 != xsltSetSecurityPrefs(security_prefs,
+ XSLT_SECPREF_CREATE_DIRECTORY,
+ xsltSecurityForbid));
+ LOG_IF(FATAL,
+ 0 != xsltSetSecurityPrefs(security_prefs, XSLT_SECPREF_WRITE_NETWORK,
+ xsltSecurityForbid));
+ LOG_IF(FATAL,
+ 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.

Powered by Google App Engine
This is Rietveld 408576698