Index: Source/core/page/EventSource.cpp |
diff --git a/Source/core/page/EventSource.cpp b/Source/core/page/EventSource.cpp |
index 54356451a206d02b9641a33b68fc6205b07f588a..971d8e992fc5405f505a6f6918a73374b76bf198 100644 |
--- a/Source/core/page/EventSource.cpp |
+++ b/Source/core/page/EventSource.cpp |
@@ -74,13 +74,13 @@ inline EventSource::EventSource(ScriptExecutionContext* context, const KURL& url |
PassRefPtr<EventSource> EventSource::create(ScriptExecutionContext* context, const String& url, const Dictionary& eventSourceInit, ExceptionCode& ec) |
{ |
if (url.isEmpty()) { |
- ec = SYNTAX_ERR; |
+ ec = SyntaxError; |
return 0; |
} |
KURL fullURL = context->completeURL(url); |
if (!fullURL.isValid()) { |
- ec = SYNTAX_ERR; |
+ ec = SyntaxError; |
return 0; |
} |
@@ -92,7 +92,7 @@ PassRefPtr<EventSource> EventSource::create(ScriptExecutionContext* context, con |
} |
if (!shouldBypassMainWorldContentSecurityPolicy && !context->contentSecurityPolicy()->allowConnectToSource(fullURL)) { |
// FIXME: Should this be throwing an exception? |
- ec = SECURITY_ERR; |
+ ec = SecurityError; |
return 0; |
} |