Index: Source/modules/serviceworkers/ServiceWorkerGlobalScope.cpp |
diff --git a/Source/modules/serviceworkers/ServiceWorkerGlobalScope.cpp b/Source/modules/serviceworkers/ServiceWorkerGlobalScope.cpp |
index b0de04517c21f77d87f41ac675f24a8f69fbda9e..c1f32ff67bc18f8be442dc956bf97a142badcf8b 100644 |
--- a/Source/modules/serviceworkers/ServiceWorkerGlobalScope.cpp |
+++ b/Source/modules/serviceworkers/ServiceWorkerGlobalScope.cpp |
@@ -99,22 +99,6 @@ CacheStorage* ServiceWorkerGlobalScope::caches(ExecutionContext* context) |
return m_caches; |
} |
-ScriptPromise ServiceWorkerGlobalScope::fetch(ScriptState* scriptState, Request* request) |
-{ |
- if (!m_fetchManager) |
- return ScriptPromise::reject(scriptState, V8ThrowException::createTypeError(scriptState->isolate(), "ServiceWorkerGlobalScope is shutting down.")); |
- // "Let |r| be the associated request of the result of invoking the initial |
- // value of Request as constructor with |input| and |init| as arguments. If |
- // this throws an exception, reject |p| with it." |
- TrackExceptionState exceptionState; |
- Request* r = Request::create(this, request, exceptionState); |
- if (exceptionState.hadException()) { |
- // FIXME: We should throw the caught error. |
- return ScriptPromise::reject(scriptState, V8ThrowException::createTypeError(scriptState->isolate(), exceptionState.message())); |
- } |
- return m_fetchManager->fetch(scriptState, r->request()); |
-} |
- |
ScriptPromise ServiceWorkerGlobalScope::fetch(ScriptState* scriptState, Request* request, const Dictionary& requestInit) |
{ |
if (!m_fetchManager) |
@@ -131,22 +115,6 @@ ScriptPromise ServiceWorkerGlobalScope::fetch(ScriptState* scriptState, Request* |
return m_fetchManager->fetch(scriptState, r->request()); |
} |
-ScriptPromise ServiceWorkerGlobalScope::fetch(ScriptState* scriptState, const String& urlstring) |
-{ |
- if (!m_fetchManager) |
- return ScriptPromise::reject(scriptState, V8ThrowException::createTypeError(scriptState->isolate(), "ServiceWorkerGlobalScope is shutting down.")); |
- // "Let |r| be the associated request of the result of invoking the initial |
- // value of Request as constructor with |input| and |init| as arguments. If |
- // this throws an exception, reject |p| with it." |
- TrackExceptionState exceptionState; |
- Request* r = Request::create(this, urlstring, exceptionState); |
- if (exceptionState.hadException()) { |
- // FIXME: We should throw the caught error. |
- return ScriptPromise::reject(scriptState, V8ThrowException::createTypeError(scriptState->isolate(), exceptionState.message())); |
- } |
- return m_fetchManager->fetch(scriptState, r->request()); |
-} |
- |
ScriptPromise ServiceWorkerGlobalScope::fetch(ScriptState* scriptState, const String& urlstring, const Dictionary& requestInit) |
{ |
if (!m_fetchManager) |