| Index: Source/modules/serviceworkers/ServiceWorkerClients.cpp
|
| diff --git a/Source/modules/serviceworkers/ServiceWorkerClients.cpp b/Source/modules/serviceworkers/ServiceWorkerClients.cpp
|
| index cb15214cdb0457344b218ce07a643314c783f57a..5f4118b3f5da0b89bdad9050f0405bfd33f66f4f 100644
|
| --- a/Source/modules/serviceworkers/ServiceWorkerClients.cpp
|
| +++ b/Source/modules/serviceworkers/ServiceWorkerClients.cpp
|
| @@ -128,8 +128,8 @@ ScriptPromise ServiceWorkerClients::openWindow(ScriptState* scriptState, const S
|
| return promise;
|
| }
|
|
|
| - if (!context->securityOrigin()->canRequest(parsedUrl)) {
|
| - resolver->reject(DOMException::create(SecurityError, "'" + parsedUrl.elidedString() + "' is not same-origin with the Worker."));
|
| + if (!context->securityOrigin()->canDisplay(parsedUrl)) {
|
| + resolver->reject(DOMException::create(SecurityError, "'" + parsedUrl.elidedString() + "' cannot be opened."));
|
| return promise;
|
| }
|
|
|
|
|