| Index: Source/core/workers/SharedWorker.cpp
|
| diff --git a/Source/core/workers/SharedWorker.cpp b/Source/core/workers/SharedWorker.cpp
|
| index 331c8cd64119b76dd476f964a8437f880a7b930b..4c6506316428b2582707c5e258336a4be5e85253 100644
|
| --- a/Source/core/workers/SharedWorker.cpp
|
| +++ b/Source/core/workers/SharedWorker.cpp
|
| @@ -74,12 +74,12 @@ PassRefPtr<SharedWorker> SharedWorker::create(ExecutionContext* context, const S
|
| Document* document = toDocument(context);
|
| if (!document->securityOrigin()->canAccessSharedWorkers()) {
|
| exceptionState.throwSecurityError("Access to shared workers is denied to origin '" + document->securityOrigin()->toString() + "'.");
|
| - return 0;
|
| + return nullptr;
|
| }
|
|
|
| KURL scriptURL = worker->resolveURL(url, exceptionState);
|
| if (scriptURL.isEmpty())
|
| - return 0;
|
| + return nullptr;
|
|
|
| if (document->frame()->loader().client()->sharedWorkerRepositoryClient())
|
| document->frame()->loader().client()->sharedWorkerRepositoryClient()->connect(worker.get(), remotePort.release(), scriptURL, name, exceptionState);
|
|
|