summaryrefslogtreecommitdiffstats
path: root/dom/fetch/Request.cpp
diff options
context:
space:
mode:
authorMoonchild <mcwerewolf@gmail.com>2018-07-05 22:22:47 +0200
committerGitHub <noreply@github.com>2018-07-05 22:22:47 +0200
commitc3fe7f59c8b6c1a23f5ae85f0697470fad560d68 (patch)
tree93fb783c7d463225be63f76102bddec19965bc93 /dom/fetch/Request.cpp
parent06ccf0f73ade5b436d2e7e00f81db7aebf7960cf (diff)
parenta80267e9e88b3dcebf7f8f1f6f10931a99ddf2ca (diff)
downloadUXP-c3fe7f59c8b6c1a23f5ae85f0697470fad560d68.tar
UXP-c3fe7f59c8b6c1a23f5ae85f0697470fad560d68.tar.gz
UXP-c3fe7f59c8b6c1a23f5ae85f0697470fad560d68.tar.lz
UXP-c3fe7f59c8b6c1a23f5ae85f0697470fad560d68.tar.xz
UXP-c3fe7f59c8b6c1a23f5ae85f0697470fad560d68.zip
Merge pull request #597 from janekptacijarabaci/dom_workers_terminate_1
Sync event loops in workers should be created only if compatible with the worker shutdown status
Diffstat (limited to 'dom/fetch/Request.cpp')
-rw-r--r--dom/fetch/Request.cpp2
1 files changed, 1 insertions, 1 deletions
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<ReferrerSameOriginChecker> checker =
new ReferrerSameOriginChecker(worker, referrerURL, rv);
- checker->Dispatch(aRv);
+ checker->Dispatch(Terminating, aRv);
if (aRv.Failed() || NS_FAILED(rv)) {
aRv.ThrowTypeError<MSG_CROSS_ORIGIN_REFERRER_URL>(referrer,
worker->GetLocationInfo().mOrigin);