Index: Source/core/workers/SharedWorker.cpp |
diff --git a/Source/core/workers/SharedWorker.cpp b/Source/core/workers/SharedWorker.cpp |
index 6ccf3e4fd91d1738c5e255c28ddff6537d13d1af..484cbe8c844ebd763b7f558ac49613e36bc4825e 100644 |
--- a/Source/core/workers/SharedWorker.cpp |
+++ b/Source/core/workers/SharedWorker.cpp |
@@ -69,7 +69,7 @@ PassRefPtr<SharedWorker> SharedWorker::create(ScriptExecutionContext* context, c |
ASSERT_WITH_SECURITY_IMPLICATION(context->isDocument()); |
Document* document = toDocument(context); |
if (!document->securityOrigin()->canAccessSharedWorkers()) { |
- es.throwDOMException(SecurityError, "Failed to create 'SharedWorker': access to shared workers is denied to origin '" + document->securityOrigin()->toString() + "'."); |
+ es.throwSecurityError("Failed to create 'SharedWorker': access to shared workers is denied to origin '" + document->securityOrigin()->toString() + "'."); |
return 0; |
} |