diff options
author | Matt A. Tobin <email@mattatobin.com> | 2020-04-19 12:38:46 -0400 |
---|---|---|
committer | Matt A. Tobin <email@mattatobin.com> | 2020-04-19 12:38:46 -0400 |
commit | df2beb06efca65425d5f358306fa9323782b9a56 (patch) | |
tree | 499e50430403db4f79a2701c97974185714e4d6b /dom/fetch/Request.cpp | |
parent | baa390fabfaab1c817c94f0b5952b95e2a727146 (diff) | |
parent | 1169a05684be2c9975dcae72810daead396f36f6 (diff) | |
download | UXP-df2beb06efca65425d5f358306fa9323782b9a56.tar UXP-df2beb06efca65425d5f358306fa9323782b9a56.tar.gz UXP-df2beb06efca65425d5f358306fa9323782b9a56.tar.lz UXP-df2beb06efca65425d5f358306fa9323782b9a56.tar.xz UXP-df2beb06efca65425d5f358306fa9323782b9a56.zip |
Merge branch 'master' of https://github.com/MoonchildProductions/UXP
Diffstat (limited to 'dom/fetch/Request.cpp')
-rw-r--r-- | dom/fetch/Request.cpp | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/dom/fetch/Request.cpp b/dom/fetch/Request.cpp index 7ca5b43c4..6a7885b1a 100644 --- a/dom/fetch/Request.cpp +++ b/dom/fetch/Request.cpp @@ -7,6 +7,7 @@ #include "Request.h" #include "nsIURI.h" +#include "nsNetUtil.h" #include "nsPIDOMWindow.h" #include "mozilla/ErrorResult.h" @@ -15,14 +16,18 @@ #include "mozilla/dom/FetchUtil.h" #include "mozilla/dom/Promise.h" #include "mozilla/dom/URL.h" -#include "mozilla/dom/WorkerPrivate.h" #include "mozilla/Unused.h" #include "WorkerPrivate.h" +#include "WorkerRunnable.h" +#include "WorkerScope.h" +#include "Workers.h" namespace mozilla { namespace dom { +using namespace workers; + NS_IMPL_CYCLE_COLLECTING_ADDREF(Request) NS_IMPL_CYCLE_COLLECTING_RELEASE(Request) NS_IMPL_CYCLE_COLLECTION_WRAPPERCACHE(Request, mOwner, mHeaders) @@ -237,14 +242,14 @@ GetRequestURLFromWorker(const GlobalObject& aGlobal, const nsAString& aInput, } } -class ReferrerSameOriginChecker final : public workers::WorkerMainThreadRunnable +class ReferrerSameOriginChecker final : public WorkerMainThreadRunnable { public: ReferrerSameOriginChecker(workers::WorkerPrivate* aWorkerPrivate, const nsAString& aReferrerURL, nsresult& aResult) - : workers::WorkerMainThreadRunnable(aWorkerPrivate, - NS_LITERAL_CSTRING("Fetch :: Referrer same origin check")), + : WorkerMainThreadRunnable(aWorkerPrivate, + NS_LITERAL_CSTRING("Fetch :: Referrer same origin check")), mReferrerURL(aReferrerURL), mResult(aResult) { |