Index: Source/bindings/v8/V8Initializer.cpp |
diff --git a/Source/bindings/v8/V8Initializer.cpp b/Source/bindings/v8/V8Initializer.cpp |
index f6c0f52c631c22164af17a92bf8aa04d6a25eb5b..2e600088019301748eb9552a408d98983ca3885c 100644 |
--- a/Source/bindings/v8/V8Initializer.cpp |
+++ b/Source/bindings/v8/V8Initializer.cpp |
@@ -145,7 +145,7 @@ static bool codeGenerationCheckCallbackInMainThread(v8::Local<v8::Context> conte |
{ |
if (ExecutionContext* executionContext = toExecutionContext(context)) { |
if (ContentSecurityPolicy* policy = toDocument(executionContext)->contentSecurityPolicy()) |
- return policy->allowScriptEval(ScriptState::forContext(context)); |
+ return policy->allowEval(ScriptState::forContext(context)); |
} |
return false; |
} |