Index: Source/core/workers/AbstractWorker.cpp |
diff --git a/Source/core/workers/AbstractWorker.cpp b/Source/core/workers/AbstractWorker.cpp |
index fded518ada5b43da17f3c3a829e2e9d7251cf612..1d1eee0effb8735b0c4e7ef8ba558499ae1ba1bb 100644 |
--- a/Source/core/workers/AbstractWorker.cpp |
+++ b/Source/core/workers/AbstractWorker.cpp |
@@ -57,24 +57,24 @@ void AbstractWorker::contextDestroyed() |
KURL AbstractWorker::resolveURL(const String& url, ExceptionCode& ec) |
{ |
if (url.isEmpty()) { |
- ec = SYNTAX_ERR; |
+ ec = SyntaxError; |
return KURL(); |
} |
// FIXME: This should use the dynamic global scope (bug #27887) |
KURL scriptURL = scriptExecutionContext()->completeURL(url); |
if (!scriptURL.isValid()) { |
- ec = SYNTAX_ERR; |
+ ec = SyntaxError; |
return KURL(); |
} |
if (!scriptExecutionContext()->securityOrigin()->canRequest(scriptURL)) { |
- ec = SECURITY_ERR; |
+ ec = SecurityError; |
return KURL(); |
} |
if (scriptExecutionContext()->contentSecurityPolicy() && !scriptExecutionContext()->contentSecurityPolicy()->allowScriptFromSource(scriptURL)) { |
- ec = SECURITY_ERR; |
+ ec = SecurityError; |
return KURL(); |
} |