diff --git a/dom/abort/AbortController.cpp b/dom/abort/AbortController.cpp index 837d11185b6d..a3830bff8de8 100644 --- a/dom/abort/AbortController.cpp +++ b/dom/abort/AbortController.cpp @@ -8,8 +8,10 @@ #include "AbortSignal.h" #include "js/Value.h" #include "mozilla/dom/AbortControllerBinding.h" +#include "mozilla/dom/BindingUtils.h" #include "mozilla/dom/DOMException.h" #include "mozilla/dom/WorkerPrivate.h" +#include "mozilla/HoldDropJSObjects.h" namespace mozilla::dom { diff --git a/dom/base/BodyConsumer.cpp b/dom/base/BodyConsumer.cpp index 4e02c7624ffa..6810b188b8ba 100644 --- a/dom/base/BodyConsumer.cpp +++ b/dom/base/BodyConsumer.cpp @@ -29,6 +29,7 @@ #include "nsIStreamLoader.h" #include "nsNetUtil.h" #include "nsProxyRelease.h" +#include "nsIInputStream.h" // Undefine the macro of CreateFile to avoid FileCreatorHelper#CreateFile being // replaced by FileCreatorHelper#CreateFileW. diff --git a/dom/base/BodyStream.cpp b/dom/base/BodyStream.cpp index c0f3e359551f..5844a6b31536 100644 --- a/dom/base/BodyStream.cpp +++ b/dom/base/BodyStream.cpp @@ -19,7 +19,9 @@ #include "mozilla/dom/WorkerRunnable.h" #include "mozilla/Maybe.h" #include "mozilla/ScopeExit.h" +#include "mozilla/Services.h" #include "mozilla/Unused.h" +#include "nsIObserverService.h" #include "nsProxyRelease.h" #include "nsStreamUtils.h" diff --git a/dom/base/SerializedStackHolder.cpp b/dom/base/SerializedStackHolder.cpp index 76352832a622..500737023238 100644 --- a/dom/base/SerializedStackHolder.cpp +++ b/dom/base/SerializedStackHolder.cpp @@ -8,7 +8,11 @@ #include "js/SavedFrameAPI.h" #include "mozilla/dom/WorkerPrivate.h" +#include "mozilla/dom/ScriptSettings.h" +#include "mozilla/Services.h" #include "nsJSPrincipals.h" +#include "nsIObserverService.h" +#include "xpcpublic.h" namespace mozilla::dom { diff --git a/dom/bindings/BindingUtils.cpp b/dom/bindings/BindingUtils.cpp index 46dbda52bf27..647d361490d4 100644 --- a/dom/bindings/BindingUtils.cpp +++ b/dom/bindings/BindingUtils.cpp @@ -80,6 +80,7 @@ #include "mozilla/dom/XrayExpandoClass.h" #include "mozilla/dom/WindowProxyHolder.h" #include "ipc/ErrorIPCUtils.h" +#include "ipc/IPCMessageUtilsSpecializations.h" #include "mozilla/dom/DocGroup.h" #include "nsXULElement.h" diff --git a/dom/console/Console.cpp b/dom/console/Console.cpp index 1184ccaa61fa..34353f9ac828 100644 --- a/dom/console/Console.cpp +++ b/dom/console/Console.cpp @@ -27,6 +27,7 @@ #include "mozilla/dom/WorkletGlobalScope.h" #include "mozilla/dom/WorkletImpl.h" #include "mozilla/dom/WorkletThread.h" +#include "mozilla/dom/RootedDictionary.h" #include "mozilla/BasePrincipal.h" #include "mozilla/HoldDropJSObjects.h" #include "mozilla/JSObjectHolder.h" diff --git a/dom/crypto/WebCryptoTask.cpp b/dom/crypto/WebCryptoTask.cpp index 695b09d1ee5e..a8dedb5c9c6b 100644 --- a/dom/crypto/WebCryptoTask.cpp +++ b/dom/crypto/WebCryptoTask.cpp @@ -21,6 +21,7 @@ #include "mozilla/dom/WebCryptoTask.h" #include "mozilla/dom/WorkerRef.h" #include "mozilla/dom/WorkerPrivate.h" +#include "mozilla/dom/RootedDictionary.h" // Template taken from security/nss/lib/util/templates.c // This (or SGN_EncodeDigestInfo) would ideally be exported diff --git a/dom/fetch/Request.cpp b/dom/fetch/Request.cpp index 154bd7a94cc6..b4f005f475e6 100644 --- a/dom/fetch/Request.cpp +++ b/dom/fetch/Request.cpp @@ -20,6 +20,7 @@ #include "mozilla/dom/WorkerPrivate.h" #include "mozilla/dom/WorkerRunnable.h" #include "mozilla/dom/WindowContext.h" +#include "mozilla/ipc/PBackgroundSharedTypes.h" #include "mozilla/Unused.h" #ifdef MOZ_DOM_STREAMS diff --git a/dom/indexedDB/IndexedDatabaseManager.cpp b/dom/indexedDB/IndexedDatabaseManager.cpp index 19eaa973bce7..d7885ee021e9 100644 --- a/dom/indexedDB/IndexedDatabaseManager.cpp +++ b/dom/indexedDB/IndexedDatabaseManager.cpp @@ -22,6 +22,7 @@ #include "mozilla/dom/ErrorEvent.h" #include "mozilla/dom/ErrorEventBinding.h" #include "mozilla/dom/WorkerScope.h" +#include "mozilla/dom/RootedDictionary.h" #include "mozilla/dom/quota/ResultExtensions.h" #include "mozilla/intl/LocaleCanonicalizer.h" #include "mozilla/ipc/BackgroundChild.h" diff --git a/dom/locks/LockManagerChild.cpp b/dom/locks/LockManagerChild.cpp index d31676566af1..037edf93a8dc 100644 --- a/dom/locks/LockManagerChild.cpp +++ b/dom/locks/LockManagerChild.cpp @@ -8,6 +8,7 @@ #include "LockRequestChild.h" #include "mozilla/dom/Document.h" +#include "mozilla/dom/RemoteWorkerChild.h" #include "mozilla/dom/WindowGlobalChild.h" #include "mozilla/dom/WorkerCommon.h" #include "mozilla/dom/WorkerPrivate.h" diff --git a/dom/push/PushManager.cpp b/dom/push/PushManager.cpp index 1ab9931ae5b8..a88cc2fed0cd 100644 --- a/dom/push/PushManager.cpp +++ b/dom/push/PushManager.cpp @@ -15,6 +15,7 @@ #include "mozilla/dom/PushSubscription.h" #include "mozilla/dom/PushSubscriptionOptionsBinding.h" #include "mozilla/dom/PushUtil.h" +#include "mozilla/dom/RootedDictionary.h" #include "mozilla/dom/WorkerRunnable.h" #include "mozilla/dom/WorkerScope.h" diff --git a/dom/serviceworkers/ServiceWorkerRegistration.cpp b/dom/serviceworkers/ServiceWorkerRegistration.cpp index ec24fcc697e4..57a6d875caa7 100644 --- a/dom/serviceworkers/ServiceWorkerRegistration.cpp +++ b/dom/serviceworkers/ServiceWorkerRegistration.cpp @@ -11,6 +11,7 @@ #include "mozilla/dom/Notification.h" #include "mozilla/dom/Promise.h" #include "mozilla/dom/PushManager.h" +#include "mozilla/ipc/PBackgroundSharedTypes.h" #include "mozilla/dom/ServiceWorker.h" #include "mozilla/dom/ServiceWorkerRegistrationBinding.h" #include "mozilla/dom/ServiceWorkerUtils.h" diff --git a/dom/workers/ChromeWorker.cpp b/dom/workers/ChromeWorker.cpp index 527d17315b72..dcecef55180d 100644 --- a/dom/workers/ChromeWorker.cpp +++ b/dom/workers/ChromeWorker.cpp @@ -6,6 +6,7 @@ #include "ChromeWorker.h" +#include "mozilla/dom/BindingUtils.h" #include "mozilla/dom/WorkerBinding.h" #include "nsContentUtils.h" #include "WorkerPrivate.h" diff --git a/dom/workers/MessageEventRunnable.cpp b/dom/workers/MessageEventRunnable.cpp index e36578f6c3b7..ef90565e332a 100644 --- a/dom/workers/MessageEventRunnable.cpp +++ b/dom/workers/MessageEventRunnable.cpp @@ -8,6 +8,7 @@ #include "mozilla/dom/MessageEvent.h" #include "mozilla/dom/MessageEventBinding.h" +#include "mozilla/dom/RootedDictionary.h" #include "mozilla/TimelineConsumers.h" #include "mozilla/WorkerTimelineMarker.h" #include "nsQueryObject.h" diff --git a/dom/workers/WorkerDebugger.cpp b/dom/workers/WorkerDebugger.cpp index cfb3256f761f..a7ffcd4d2e60 100644 --- a/dom/workers/WorkerDebugger.cpp +++ b/dom/workers/WorkerDebugger.cpp @@ -7,6 +7,7 @@ #include "mozilla/dom/BrowsingContext.h" #include "mozilla/dom/MessageEvent.h" #include "mozilla/dom/MessageEventBinding.h" +#include "mozilla/dom/RemoteWorkerChild.h" #include "mozilla/dom/WindowContext.h" #include "mozilla/AbstractThread.h" #include "mozilla/PerformanceUtils.h" diff --git a/dom/workers/WorkerDebuggerManager.cpp b/dom/workers/WorkerDebuggerManager.cpp index 113a3e8838c2..b8a7d4d3638d 100644 --- a/dom/workers/WorkerDebuggerManager.cpp +++ b/dom/workers/WorkerDebuggerManager.cpp @@ -10,10 +10,12 @@ #include "mozilla/dom/JSExecutionManager.h" #include "mozilla/ClearOnShutdown.h" +#include "mozilla/Services.h" #include "mozilla/StaticPtr.h" #include "WorkerDebugger.h" #include "WorkerPrivate.h" +#include "nsIObserverService.h" namespace mozilla { namespace dom { diff --git a/dom/workers/WorkerPrivate.h b/dom/workers/WorkerPrivate.h index 91f8ac9fdbba..201c52b9f959 100644 --- a/dom/workers/WorkerPrivate.h +++ b/dom/workers/WorkerPrivate.h @@ -28,7 +28,6 @@ #include "mozilla/UseCounter.h" #include "mozilla/dom/ClientSource.h" #include "mozilla/dom/FlippedOnce.h" -#include "mozilla/dom/RemoteWorkerChild.h" #include "mozilla/dom/quota/CheckedUnsafePtr.h" #include "mozilla/dom/Worker.h" #include "mozilla/dom/WorkerCommon.h" @@ -36,6 +35,7 @@ #include "mozilla/dom/WorkerStatus.h" #include "mozilla/dom/workerinternals/JSSettings.h" #include "mozilla/dom/workerinternals/Queue.h" +#include "mozilla/dom/JSExecutionManager.h" #include "mozilla/StaticPrefs_extensions.h" #include "nsContentUtils.h" #include "nsIChannel.h" @@ -46,10 +46,16 @@ class nsIThreadInternal; +namespace JS { +struct RuntimeStats; +} + namespace mozilla { class ThrottledEventQueue; namespace dom { +class RemoteWorkerChild; + // If you change this, the corresponding list in nsIWorkerDebugger.idl needs // to be updated too. And histograms enum for worker use counters uses the same // order of worker kind. Please also update dom/base/usecounters.py. @@ -1418,8 +1424,8 @@ class WorkerPrivate final // We expose some extra testing functions in that case. bool mIsInAutomation; - const RefPtr mPerformanceCounter = - MakeRefPtr(nsPrintfCString( + const RefPtr mPerformanceCounter = + MakeRefPtr(nsPrintfCString( "Worker:%s", NS_ConvertUTF16toUTF8(mWorkerName).get())); nsString mId;