| Index: third_party/WebKit/Source/modules/serviceworkers/NavigatorServiceWorker.cpp
|
| diff --git a/third_party/WebKit/Source/modules/serviceworkers/NavigatorServiceWorker.cpp b/third_party/WebKit/Source/modules/serviceworkers/NavigatorServiceWorker.cpp
|
| index b47a8652bab7238b03bf66639f634b1ad922c7c0..19c24001af095b98347f753987327e33cb245f2c 100644
|
| --- a/third_party/WebKit/Source/modules/serviceworkers/NavigatorServiceWorker.cpp
|
| +++ b/third_party/WebKit/Source/modules/serviceworkers/NavigatorServiceWorker.cpp
|
| @@ -60,6 +60,8 @@ ServiceWorkerContainer* NavigatorServiceWorker::serviceWorker(LocalFrame* frame,
|
| if (frame && !frame->securityContext()->getSecurityOrigin()->canAccessServiceWorkers()) {
|
| if (frame->securityContext()->isSandboxed(SandboxOrigin))
|
| exceptionState.throwSecurityError("Service worker is disabled because the context is sandboxed and lacks the 'allow-same-origin' flag.");
|
| + else if (frame->securityContext()->getSecurityOrigin()->hasSuborigin())
|
| + exceptionState.throwSecurityError("Service worker is disabled because the context is in a suborigin.");
|
| else
|
| exceptionState.throwSecurityError("Access to service workers is denied in this document origin.");
|
| return nullptr;
|
|
|