Index: ios/web/web_state/ui/web_view_js_utils.h |
diff --git a/ios/web/web_state/ui/web_view_js_utils.h b/ios/web/web_state/ui/web_view_js_utils.h |
index 39c5d8e6ad646a548dda39c55fc68f73250cc1dd..a165ccb22c64b630632c8b86f64faae3d4ba9a00 100644 |
--- a/ios/web/web_state/ui/web_view_js_utils.h |
+++ b/ios/web/web_state/ui/web_view_js_utils.h |
@@ -27,7 +27,9 @@ extern int const kMaximumParsingRecursionDepth; |
// The type of errors that can occur while evaluating JS. |
enum JSEvaluationErrorCode { |
// No web view present to evaluate JS. |
- JS_EVALUATION_ERROR_CODE_NO_WEB_VIEW = 1, |
+ JS_EVALUATION_ERROR_CODE_NO_WEB_VIEW = -1000, |
+ // JS evaluation is not allowed for security reasons. |
+ JS_EVALUATION_ERROR_CODE_REJECTED = -1001, |
}; |
// Converts result of WKWebView script evaluation to base::Value. |