From 1d9e5fddae6e898b025c86ac33ea0e3d220f0620 Mon Sep 17 00:00:00 2001 From: Ben Kelly Date: Thu, 17 Dec 2015 10:11:26 -0500 Subject: [PATCH] Bug 1233171 Cancel channel when ScriptLoader is aborted during service worker script load. r=khuey --- dom/workers/ScriptLoader.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/dom/workers/ScriptLoader.cpp b/dom/workers/ScriptLoader.cpp index 5efef6f3d9cd..ba7e17cc0b19 100644 --- a/dom/workers/ScriptLoader.cpp +++ b/dom/workers/ScriptLoader.cpp @@ -629,6 +629,7 @@ private: // If one load info cancels or hits an error, it can race with the start // callback coming from another load info. if (mCanceledMainThread || !mCacheCreator) { + aRequest->Cancel(NS_ERROR_FAILURE); return NS_ERROR_FAILURE; }