From a80267e9e88b3dcebf7f8f1f6f10931a99ddf2ca Mon Sep 17 00:00:00 2001 From: janekptacijarabaci Date: Thu, 5 Jul 2018 13:04:44 +0200 Subject: Bug 604026 - Sync event loops in workers should be created only if compatible with the worker shutdown status --- dom/fetch/Request.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dom/fetch') diff --git a/dom/fetch/Request.cpp b/dom/fetch/Request.cpp index c119a503e..d3836cda1 100644 --- a/dom/fetch/Request.cpp +++ b/dom/fetch/Request.cpp @@ -403,7 +403,7 @@ Request::Constructor(const GlobalObject& aGlobal, // this work in a single sync loop. RefPtr checker = new ReferrerSameOriginChecker(worker, referrerURL, rv); - checker->Dispatch(aRv); + checker->Dispatch(Terminating, aRv); if (aRv.Failed() || NS_FAILED(rv)) { aRv.ThrowTypeError(referrer, worker->GetLocationInfo().mOrigin); -- cgit v1.2.3