Bug 1233171 Cancel channel when ScriptLoader is aborted during service worker script load. r=khuey

This commit is contained in:
Ben Kelly 2015-12-17 10:11:26 -05:00
parent bbb8c0c99f
commit 1d9e5fddae

View File

@ -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;
}