| Index: Source/modules/fetch/FetchManager.cpp
|
| diff --git a/Source/modules/fetch/FetchManager.cpp b/Source/modules/fetch/FetchManager.cpp
|
| index 70daa59c44b6f89c5ffd33bdba238fa409376219..dae3b015e2bdb95fa411ddac85647aead070e9aa 100644
|
| --- a/Source/modules/fetch/FetchManager.cpp
|
| +++ b/Source/modules/fetch/FetchManager.cpp
|
| @@ -50,7 +50,6 @@ public:
|
| void didFailRedirectCheck() override;
|
|
|
| void start();
|
| - void cancel();
|
| void dispose();
|
|
|
| private:
|
| @@ -257,25 +256,6 @@ void FetchManager::Loader::start()
|
| performHTTPFetch(true, false);
|
| }
|
|
|
| -void FetchManager::Loader::cancel()
|
| -{
|
| - m_finished = true;
|
| - if (m_loader) {
|
| - m_loader->cancel();
|
| - m_loader.clear();
|
| - }
|
| - if (m_resolver) {
|
| - // Note: In the current implementation this branch is never taken
|
| - // because this function can be called only through the body stream.
|
| - ScriptState* scriptState = m_resolver->scriptState();
|
| - ScriptState::Scope scope(scriptState);
|
| - m_resolver->reject(V8ThrowException::createTypeError(scriptState->isolate(), "fetch is cancelled"));
|
| - m_resolver.clear();
|
| - }
|
| -
|
| - notifyFinished();
|
| -}
|
| -
|
| void FetchManager::Loader::dispose()
|
| {
|
| // Prevent notification
|
|
|