diff --git a/dom/filesystem/FileSystemTaskBase.cpp b/dom/filesystem/FileSystemTaskBase.cpp index e7636695dba5..b4bf4b5f0d28 100644 --- a/dom/filesystem/FileSystemTaskBase.cpp +++ b/dom/filesystem/FileSystemTaskBase.cpp @@ -84,7 +84,8 @@ class ErrorRunnable final : public CancelableRunnable { public: explicit ErrorRunnable(FileSystemTaskChildBase* aTask) - : mTask(aTask) + : CancelableRunnable("ErrorRunnable") + , mTask(aTask) { MOZ_ASSERT(aTask); } diff --git a/dom/filesystem/FileSystemTaskBase.h b/dom/filesystem/FileSystemTaskBase.h index 0435587711f8..3f9a82fe8bf9 100644 --- a/dom/filesystem/FileSystemTaskBase.h +++ b/dom/filesystem/FileSystemTaskBase.h @@ -187,6 +187,10 @@ private: class FileSystemTaskParentBase : public Runnable { public: + FileSystemTaskParentBase() + : Runnable("FileSystemTaskParentBase") + {} + /* * Start the task. This must be called from the PBackground thread only. */ diff --git a/dom/filesystem/GetFilesHelper.cpp b/dom/filesystem/GetFilesHelper.cpp index 9ae7a7bdc98c..0270d8d41c4f 100644 --- a/dom/filesystem/GetFilesHelper.cpp +++ b/dom/filesystem/GetFilesHelper.cpp @@ -20,6 +20,10 @@ namespace { class ReleaseRunnable final : public Runnable { public: + ReleaseRunnable() + : Runnable("ReleaseRunnable") + {} + static void MaybeReleaseOnMainThread(nsTArray>& aPromises, nsTArray>& aCallbacks, @@ -130,7 +134,8 @@ GetFilesHelper::Create(nsIGlobalObject* aGlobal, } GetFilesHelper::GetFilesHelper(nsIGlobalObject* aGlobal, bool aRecursiveFlag) - : GetFilesHelperBase(aRecursiveFlag) + : Runnable("GetFilesHelper") + , GetFilesHelperBase(aRecursiveFlag) , mGlobal(aGlobal) , mListingCompleted(false) , mErrorResult(NS_OK) diff --git a/dom/filesystem/compat/CallbackRunnables.cpp b/dom/filesystem/compat/CallbackRunnables.cpp index a4932f026866..e9cdfe81c5fd 100644 --- a/dom/filesystem/compat/CallbackRunnables.cpp +++ b/dom/filesystem/compat/CallbackRunnables.cpp @@ -26,7 +26,8 @@ namespace dom { EntryCallbackRunnable::EntryCallbackRunnable(FileSystemEntryCallback* aCallback, FileSystemEntry* aEntry) - : mCallback(aCallback) + : Runnable("EntryCallbackRunnable") + , mCallback(aCallback) , mEntry(aEntry) { MOZ_ASSERT(aCallback); @@ -43,7 +44,8 @@ EntryCallbackRunnable::Run() ErrorCallbackRunnable::ErrorCallbackRunnable(nsIGlobalObject* aGlobalObject, ErrorCallback* aCallback, nsresult aError) - : mGlobal(aGlobalObject) + : Runnable("ErrorCallbackRunnable") + , mGlobal(aGlobalObject) , mCallback(aCallback) , mError(aError) { @@ -61,7 +63,8 @@ ErrorCallbackRunnable::Run() } EmptyEntriesCallbackRunnable::EmptyEntriesCallbackRunnable(FileSystemEntriesCallback* aCallback) - : mCallback(aCallback) + : Runnable("EmptyEntriesCallbackRunnable") + , mCallback(aCallback) { MOZ_ASSERT(aCallback); } diff --git a/dom/filesystem/compat/FileSystemFileEntry.cpp b/dom/filesystem/compat/FileSystemFileEntry.cpp index 6302df06d2b8..1cdb7d92b97c 100644 --- a/dom/filesystem/compat/FileSystemFileEntry.cpp +++ b/dom/filesystem/compat/FileSystemFileEntry.cpp @@ -20,7 +20,8 @@ class FileCallbackRunnable final : public Runnable public: FileCallbackRunnable(FileCallback* aCallback, ErrorCallback* aErrorCallback, File* aFile) - : mCallback(aCallback) + : Runnable("FileCallbackRunnable") + , mCallback(aCallback) , mErrorCallback(aErrorCallback) , mFile(aFile) { diff --git a/dom/filesystem/compat/FileSystemRootDirectoryReader.cpp b/dom/filesystem/compat/FileSystemRootDirectoryReader.cpp index 5b4a417527de..6fe5952199af 100644 --- a/dom/filesystem/compat/FileSystemRootDirectoryReader.cpp +++ b/dom/filesystem/compat/FileSystemRootDirectoryReader.cpp @@ -18,7 +18,8 @@ class EntriesCallbackRunnable final : public Runnable public: EntriesCallbackRunnable(FileSystemEntriesCallback* aCallback, const Sequence>& aEntries) - : mCallback(aCallback) + : Runnable("EntriesCallbackRunnable") + , mCallback(aCallback) , mEntries(aEntries) { MOZ_ASSERT(aCallback);