| Index: Source/modules/serviceworkers/ServiceWorkerContainer.cpp
|
| diff --git a/Source/modules/serviceworkers/ServiceWorkerContainer.cpp b/Source/modules/serviceworkers/ServiceWorkerContainer.cpp
|
| index 7967890dffcb968ba03c2ea8007ecbc647ba5452..4ff54d1bd11d1b975e50308788614944896fb173 100644
|
| --- a/Source/modules/serviceworkers/ServiceWorkerContainer.cpp
|
| +++ b/Source/modules/serviceworkers/ServiceWorkerContainer.cpp
|
| @@ -135,11 +135,6 @@
|
| return promise;
|
| }
|
|
|
| - if (!patternURL.string().startsWith(scriptURL.baseAsString())) {
|
| - resolver->reject(DOMException::create(SecurityError, "The scope must be under the directory of the script URL."));
|
| - return promise;
|
| - }
|
| -
|
| m_provider->registerServiceWorker(patternURL, scriptURL, new CallbackPromiseAdapter<ServiceWorkerRegistration, ServiceWorkerError>(resolver));
|
|
|
| return promise;
|
|
|