| Index: third_party/WebKit/Source/core/workers/SharedWorker.cpp
 | 
| diff --git a/third_party/WebKit/Source/core/workers/SharedWorker.cpp b/third_party/WebKit/Source/core/workers/SharedWorker.cpp
 | 
| index 3f089e8cbc22cd445a50267f680f91e65bcf9fa7..12da7b9b7c5113fe8f9a4e0fa3923d00254e985b 100644
 | 
| --- a/third_party/WebKit/Source/core/workers/SharedWorker.cpp
 | 
| +++ b/third_party/WebKit/Source/core/workers/SharedWorker.cpp
 | 
| @@ -71,8 +71,8 @@ SharedWorker* SharedWorker::create(ExecutionContext* context, const String& url,
 | 
|  
 | 
|      // We don't currently support nested workers, so workers can only be created from documents.
 | 
|      Document* document = toDocument(context);
 | 
| -    if (!document->securityOrigin()->canAccessSharedWorkers()) {
 | 
| -        exceptionState.throwSecurityError("Access to shared workers is denied to origin '" + document->securityOrigin()->toString() + "'.");
 | 
| +    if (!document->getSecurityOrigin()->canAccessSharedWorkers()) {
 | 
| +        exceptionState.throwSecurityError("Access to shared workers is denied to origin '" + document->getSecurityOrigin()->toString() + "'.");
 | 
|          return nullptr;
 | 
|      }
 | 
|  
 | 
| 
 |