From 0866ff0211d7308ced7fe47716c74b6a7ee9e304 Mon Sep 17 00:00:00 2001 From: Bevis Tseng Date: Tue, 13 Jun 2017 18:10:13 +0800 Subject: [PATCH 001/106] Bug 1372453 - Part 1: Support to name the callers of ProxyReleaseEvent. r=froydnj MozReview-Commit-ID: 8rmwqzPrzM7 --- xpcom/threads/nsProxyRelease.cpp | 5 +- xpcom/threads/nsProxyRelease.h | 80 +++++++++++++++++++++++--------- xpcom/threads/nsThreadUtils.h | 9 ++-- 3 files changed, 67 insertions(+), 27 deletions(-) diff --git a/xpcom/threads/nsProxyRelease.cpp b/xpcom/threads/nsProxyRelease.cpp index 1a8150cc6fee..b4d8ac2458d0 100644 --- a/xpcom/threads/nsProxyRelease.cpp +++ b/xpcom/threads/nsProxyRelease.cpp @@ -10,11 +10,12 @@ namespace detail { /* static */ void -ProxyReleaseChooser::ProxyReleaseISupports(nsIEventTarget* aTarget, +ProxyReleaseChooser::ProxyReleaseISupports(const char* aName, + nsIEventTarget* aTarget, nsISupports* aDoomed, bool aAlwaysProxy) { - ::detail::ProxyRelease(aTarget, dont_AddRef(aDoomed), + ::detail::ProxyRelease(aName, aTarget, dont_AddRef(aDoomed), aAlwaysProxy); } diff --git a/xpcom/threads/nsProxyRelease.h b/xpcom/threads/nsProxyRelease.h index eb831daf0460..ec1d7b192cba 100644 --- a/xpcom/threads/nsProxyRelease.h +++ b/xpcom/threads/nsProxyRelease.h @@ -12,6 +12,7 @@ #include "nsCOMPtr.h" #include "nsAutoPtr.h" #include "MainThreadUtils.h" +#include "nsPrintfCString.h" #include "nsThreadUtils.h" #include "mozilla/Likely.h" #include "mozilla/Move.h" @@ -29,8 +30,8 @@ template class ProxyReleaseEvent : public mozilla::Runnable { public: - explicit ProxyReleaseEvent(already_AddRefed aDoomed) - : Runnable("ProxyReleaseEvent"), mDoomed(aDoomed.take()) {} + ProxyReleaseEvent(const char* aName, already_AddRefed aDoomed) + : Runnable(aName), mDoomed(aDoomed.take()) {} NS_IMETHOD Run() override { @@ -38,13 +39,28 @@ public: return NS_OK; } + NS_IMETHOD GetName(nsACString& aName) override + { +#ifdef RELEASE_OR_BETA + aName.Truncate(); +#else + if (mName) { + aName.Append(nsPrintfCString("ProxyReleaseEvent for %s", mName)); + } else { + aName.AssignLiteral("ProxyReleaseEvent"); + } +#endif + return NS_OK; + } + private: T* MOZ_OWNING_REF mDoomed; }; template void -ProxyRelease(nsIEventTarget* aTarget, already_AddRefed aDoomed, bool aAlwaysProxy) +ProxyRelease(const char* aName, nsIEventTarget* aTarget, + already_AddRefed aDoomed, bool aAlwaysProxy) { // Auto-managing release of the pointer. RefPtr doomed = aDoomed; @@ -62,7 +78,7 @@ ProxyRelease(nsIEventTarget* aTarget, already_AddRefed aDoomed, bool aAlwaysP } } - nsCOMPtr ev = new ProxyReleaseEvent(doomed.forget()); + nsCOMPtr ev = new ProxyReleaseEvent(aName, doomed.forget()); rv = aTarget->Dispatch(ev, NS_DISPATCH_NORMAL); if (NS_FAILED(rv)) { @@ -76,11 +92,12 @@ template struct ProxyReleaseChooser { template - static void ProxyRelease(nsIEventTarget* aTarget, + static void ProxyRelease(const char* aName, + nsIEventTarget* aTarget, already_AddRefed aDoomed, bool aAlwaysProxy) { - ::detail::ProxyRelease(aTarget, mozilla::Move(aDoomed), aAlwaysProxy); + ::detail::ProxyRelease(aName, aTarget, mozilla::Move(aDoomed), aAlwaysProxy); } }; @@ -90,14 +107,16 @@ struct ProxyReleaseChooser // We need an intermediate step for handling classes with ambiguous // inheritance to nsISupports. template - static void ProxyRelease(nsIEventTarget* aTarget, + static void ProxyRelease(const char* aName, + nsIEventTarget* aTarget, already_AddRefed aDoomed, bool aAlwaysProxy) { - ProxyReleaseISupports(aTarget, ToSupports(aDoomed.take()), aAlwaysProxy); + ProxyReleaseISupports(aName, aTarget, ToSupports(aDoomed.take()), aAlwaysProxy); } - static void ProxyReleaseISupports(nsIEventTarget* aTarget, + static void ProxyReleaseISupports(const char* aName, + nsIEventTarget* aTarget, nsISupports* aDoomed, bool aAlwaysProxy); }; @@ -119,11 +138,11 @@ struct ProxyReleaseChooser */ template inline NS_HIDDEN_(void) -NS_ProxyRelease(nsIEventTarget* aTarget, already_AddRefed aDoomed, - bool aAlwaysProxy = false) +NS_ProxyRelease(const char* aName, nsIEventTarget* aTarget, + already_AddRefed aDoomed, bool aAlwaysProxy = false) { ::detail::ProxyReleaseChooser::value> - ::ProxyRelease(aTarget, mozilla::Move(aDoomed), aAlwaysProxy); + ::ProxyRelease(aName, aTarget, mozilla::Move(aDoomed), aAlwaysProxy); } /** @@ -139,7 +158,8 @@ NS_ProxyRelease(nsIEventTarget* aTarget, already_AddRefed aDoomed, */ template inline NS_HIDDEN_(void) -NS_ReleaseOnMainThread(already_AddRefed aDoomed, +NS_ReleaseOnMainThread(const char* aName, + already_AddRefed aDoomed, bool aAlwaysProxy = false) { // NS_ProxyRelease treats a null event target as "the current thread". So a @@ -156,7 +176,7 @@ NS_ReleaseOnMainThread(already_AddRefed aDoomed, } } - NS_ProxyRelease(mainThread, mozilla::Move(aDoomed), aAlwaysProxy); + NS_ProxyRelease(aName, mainThread, mozilla::Move(aDoomed), aAlwaysProxy); } /** @@ -182,7 +202,8 @@ NS_ReleaseOnMainThreadSystemGroup(already_AddRefed aDoomed, } } - NS_ProxyRelease(systemGroupEventTarget, mozilla::Move(aDoomed), aAlwaysProxy); + NS_ProxyRelease("NS_ReleaseOnMainThreadSystemGroup", systemGroupEventTarget, + mozilla::Move(aDoomed), aAlwaysProxy); } /** @@ -232,22 +253,29 @@ public: // off-main-thread. But some consumers need to use the same pointer for // multiple classes, some of which are main-thread-only and some of which // aren't. So we allow them to explicitly disable this strict checking. - explicit nsMainThreadPtrHolder(T* aPtr, bool aStrict = true, - nsIEventTarget* aMainThreadEventTarget = nullptr) + nsMainThreadPtrHolder(const char* aName, T* aPtr, bool aStrict = true, + nsIEventTarget* aMainThreadEventTarget = nullptr) : mRawPtr(nullptr) , mStrict(aStrict) , mMainThreadEventTarget(aMainThreadEventTarget) +#ifndef RELEASE_OR_BETA + , mName(aName) +#endif { // We can only AddRef our pointer on the main thread, which means that the // holder must be constructed on the main thread. MOZ_ASSERT(!mStrict || NS_IsMainThread()); NS_IF_ADDREF(mRawPtr = aPtr); } - explicit nsMainThreadPtrHolder(already_AddRefed aPtr, bool aString = true, - nsIEventTarget* aMainThreadEventTarget = nullptr) + nsMainThreadPtrHolder(const char* aName, already_AddRefed aPtr, + bool aStrict = true, + nsIEventTarget* aMainThreadEventTarget = nullptr) : mRawPtr(aPtr.take()) - , mStrict(aString) + , mStrict(aStrict) , mMainThreadEventTarget(aMainThreadEventTarget) +#ifndef RELEASE_OR_BETA + , mName(aName) +#endif { // Since we don't need to AddRef the pointer, this constructor is safe to // call on any thread. @@ -264,7 +292,13 @@ private: mMainThreadEventTarget = do_GetMainThread(); } MOZ_ASSERT(mMainThreadEventTarget); - NS_ProxyRelease(mMainThreadEventTarget, dont_AddRef(mRawPtr)); + NS_ProxyRelease( +#ifdef RELEASE_OR_BETA + nullptr, +#else + mName, +#endif + mMainThreadEventTarget, dont_AddRef(mRawPtr)); } } @@ -299,6 +333,10 @@ private: nsCOMPtr mMainThreadEventTarget; +#ifndef RELEASE_OR_BETA + const char* mName = nullptr; +#endif + // Copy constructor and operator= not implemented. Once constructed, the // holder is immutable. T& operator=(nsMainThreadPtrHolder& aOther); diff --git a/xpcom/threads/nsThreadUtils.h b/xpcom/threads/nsThreadUtils.h index e183be0e9e82..e6a3be969792 100644 --- a/xpcom/threads/nsThreadUtils.h +++ b/xpcom/threads/nsThreadUtils.h @@ -392,14 +392,15 @@ public: protected: virtual ~Runnable() {} -private: - Runnable(const Runnable&) = delete; - Runnable& operator=(const Runnable&) = delete; - Runnable& operator=(const Runnable&&) = delete; #ifndef RELEASE_OR_BETA const char* mName = nullptr; #endif + +private: + Runnable(const Runnable&) = delete; + Runnable& operator=(const Runnable&) = delete; + Runnable& operator=(const Runnable&&) = delete; }; // This class is designed to be subclassed. From e6dc9e02bcc79206df9de2c12613ab92a68649c1 Mon Sep 17 00:00:00 2001 From: Bevis Tseng Date: Wed, 14 Jun 2017 09:27:17 +0800 Subject: [PATCH 002/106] Bug 1372453 - Part 2: Name the caller of ProxyReleaseEvent. r=billm MozReview-Commit-ID: LYhSWnZkq0i --- dom/base/DocGroup.cpp | 2 +- dom/base/WebSocket.cpp | 4 ++-- dom/base/nsDOMDataChannel.cpp | 4 ++-- dom/cache/Context.cpp | 3 ++- dom/cache/ManagerId.cpp | 3 ++- dom/console/Console.cpp | 6 +++-- dom/crypto/WebCryptoTask.cpp | 4 +++- dom/fetch/Fetch.cpp | 7 ++++-- dom/file/MutableBlobStorage.cpp | 24 ++++++++++++++----- dom/filesystem/FileSystemRequestParent.cpp | 3 ++- dom/filesystem/FileSystemTaskBase.cpp | 8 +++++-- dom/filesystem/GetFilesHelper.cpp | 3 ++- dom/media/MediaSegment.h | 3 ++- dom/media/MediaStreamGraph.cpp | 4 +++- dom/media/mediasource/TrackBuffersManager.cpp | 4 +++- .../recognition/SpeechStreamListener.cpp | 3 ++- dom/notification/Notification.cpp | 3 ++- dom/script/ScriptLoader.cpp | 6 +++-- dom/u2f/U2F.cpp | 6 +++-- dom/workers/ServiceWorkerJob.cpp | 3 ++- dom/workers/ServiceWorkerPrivate.cpp | 18 +++++++++----- dom/workers/ServiceWorkerRegistrationInfo.cpp | 3 ++- dom/workers/ServiceWorkerUpdateJob.cpp | 6 +++-- dom/workers/WorkerPrivate.cpp | 3 ++- .../spellcheck/src/mozPersonalDictionary.cpp | 8 +++++-- image/ImageURL.h | 2 +- image/decoders/icon/mac/nsIconChannelCocoa.mm | 3 ++- image/decoders/icon/win/nsIconChannel.cpp | 3 ++- ipc/mscom/MainThreadHandoff.cpp | 3 ++- ipc/mscom/WeakRef.cpp | 3 ++- js/xpconnect/loader/ScriptPreloader.cpp | 2 +- layout/style/URLExtraData.cpp | 6 ++--- layout/style/nsCSSValue.cpp | 6 ++--- layout/style/nsStyleStruct.cpp | 11 ++++++--- .../src/mediapipeline/MediaPipeline.cpp | 3 ++- .../peerconnection/PeerConnectionMedia.cpp | 4 +++- .../WebrtcGlobalInformation.cpp | 6 +++-- modules/libjar/nsJARChannel.cpp | 2 +- netwerk/base/Dashboard.cpp | 21 ++++++++++------ netwerk/base/TLSServerSocket.cpp | 6 +++-- netwerk/base/nsBaseChannel.cpp | 3 ++- netwerk/base/nsProtocolProxyService.cpp | 15 ++++++++---- netwerk/base/nsRequestObserverProxy.cpp | 6 +++-- netwerk/base/nsServerSocket.cpp | 6 +++-- netwerk/base/nsStreamListenerTee.cpp | 3 ++- netwerk/base/nsTransportUtils.cpp | 3 ++- netwerk/base/nsUDPSocket.cpp | 6 +++-- netwerk/cache/nsCacheService.cpp | 3 ++- netwerk/cache2/AppCacheStorage.cpp | 2 +- netwerk/cache2/CacheEntry.cpp | 2 +- netwerk/cache2/CacheIndex.h | 3 ++- netwerk/cache2/CacheStorageService.cpp | 9 ++++--- netwerk/cache2/CacheStorageService.h | 8 +++---- netwerk/cache2/OldWrappers.cpp | 3 ++- netwerk/dns/DNSListenerProxy.h | 3 ++- netwerk/protocol/file/nsFileChannel.cpp | 3 ++- netwerk/protocol/gio/nsGIOProtocolHandler.cpp | 3 ++- netwerk/protocol/http/HttpChannelParent.cpp | 3 ++- .../http/nsHttpActivityDistributor.cpp | 4 ++-- netwerk/protocol/http/nsHttpConnection.cpp | 6 +++-- netwerk/protocol/http/nsHttpHandler.cpp | 12 ++++++---- .../websocket/BaseWebSocketChannel.cpp | 8 +++++-- .../protocol/websocket/WebSocketChannel.cpp | 18 +++++++------- .../protocol/wyciwyg/WyciwygChannelChild.cpp | 3 ++- netwerk/protocol/wyciwyg/nsWyciwygChannel.cpp | 3 ++- netwerk/sctp/datachannel/DataChannel.cpp | 6 +++-- netwerk/wifi/nsWifiMonitor.cpp | 4 +++- security/apps/AppSignatureVerification.cpp | 6 +++-- security/manager/ssl/LocalCertService.cpp | 6 +++-- security/manager/ssl/PSMRunnable.h | 3 ++- security/manager/ssl/nsNSSCallbacks.cpp | 2 +- security/manager/ssl/nsNSSCertificateDB.cpp | 3 ++- .../component/IdentityCryptoService.cpp | 12 ++++++---- storage/StorageBaseStatementInternal.cpp | 7 ++++-- storage/mozStorageAsyncStatement.cpp | 6 +++-- storage/mozStorageAsyncStatementJSHelper.cpp | 3 ++- storage/mozStorageConnection.cpp | 15 ++++++++---- storage/mozStorageService.cpp | 12 ++++++---- storage/mozStorageStatementData.h | 4 ++-- storage/mozStorageStatementJSHelper.cpp | 6 +++-- .../filewatcher/NativeFileWatcherWin.cpp | 18 +++++++++----- .../osfile/NativeOSFileInternals.cpp | 14 ++++++----- toolkit/components/places/FaviconHelpers.cpp | 15 ++++++++---- toolkit/components/places/Helpers.h | 7 +++--- toolkit/components/places/History.cpp | 18 +++++++++----- toolkit/components/places/Shutdown.cpp | 13 ++++++---- toolkit/components/telemetry/Telemetry.cpp | 3 ++- .../nsUrlClassifierDBService.cpp | 6 +++-- .../url-classifier/nsUrlClassifierProxies.h | 9 ++++--- xpcom/base/nsConsoleService.cpp | 3 ++- xpcom/base/nsInterfaceRequestorAgg.cpp | 6 +++-- 91 files changed, 370 insertions(+), 197 deletions(-) diff --git a/dom/base/DocGroup.cpp b/dom/base/DocGroup.cpp index fa4270977331..97415086933c 100644 --- a/dom/base/DocGroup.cpp +++ b/dom/base/DocGroup.cpp @@ -49,7 +49,7 @@ DocGroup::~DocGroup() MOZ_ASSERT(mDocuments.IsEmpty()); if (!NS_IsMainThread()) { nsIEventTarget* target = EventTargetFor(TaskCategory::Other); - NS_ProxyRelease(target, mReactionsStack.forget()); + NS_ProxyRelease("DocGroup::mReactionsStack", target, mReactionsStack.forget()); } mTabGroup->mDocGroups.RemoveEntry(mKey); diff --git a/dom/base/WebSocket.cpp b/dom/base/WebSocket.cpp index d900b50b4285..b7f2235a17bc 100644 --- a/dom/base/WebSocket.cpp +++ b/dom/base/WebSocket.cpp @@ -639,8 +639,8 @@ WebSocketImpl::Disconnect() // until the end of the method. RefPtr kungfuDeathGrip = this; - NS_ReleaseOnMainThread(mChannel.forget()); - NS_ReleaseOnMainThread(mService.forget()); + NS_ReleaseOnMainThread("WebSocketImpl::mChannel", mChannel.forget()); + NS_ReleaseOnMainThread("WebSocketImpl::mService", mService.forget()); mWebSocket->DontKeepAliveAnyMore(); mWebSocket->mImpl = nullptr; diff --git a/dom/base/nsDOMDataChannel.cpp b/dom/base/nsDOMDataChannel.cpp index dac3e0448b60..72c13077bfbb 100644 --- a/dom/base/nsDOMDataChannel.cpp +++ b/dom/base/nsDOMDataChannel.cpp @@ -578,7 +578,7 @@ nsDOMDataChannel::UpdateMustKeepAlive() if (mSelfRef && !shouldKeepAlive) { // release our self-reference (safely) by putting it in an event (always) - NS_ReleaseOnMainThread(mSelfRef.forget(), true); + NS_ReleaseOnMainThread("nsDOMDataChannel::mSelfRef", mSelfRef.forget(), true); } else if (!mSelfRef && shouldKeepAlive) { mSelfRef = this; } @@ -591,7 +591,7 @@ nsDOMDataChannel::DontKeepAliveAnyMore() if (mSelfRef) { // Since we're on MainThread, force an eventloop trip to avoid deleting ourselves. - NS_ReleaseOnMainThread(mSelfRef.forget(), true); + NS_ReleaseOnMainThread("nsDOMDataChannel::mSelfRef", mSelfRef.forget(), true); } mCheckMustKeepAlive = false; diff --git a/dom/cache/Context.cpp b/dom/cache/Context.cpp index 24c34da362a7..66f56a8bcfe3 100644 --- a/dom/cache/Context.cpp +++ b/dom/cache/Context.cpp @@ -777,7 +777,8 @@ Context::ThreadsafeHandle::~ThreadsafeHandle() // Dispatch is guaranteed to succeed here because we block shutdown until // all Contexts have been destroyed. - NS_ProxyRelease(mOwningEventTarget, mStrongRef.forget()); + NS_ProxyRelease( + "Context::ThreadsafeHandle::mStrongRef", mOwningEventTarget, mStrongRef.forget()); } void diff --git a/dom/cache/ManagerId.cpp b/dom/cache/ManagerId.cpp index 6f82e57f0de7..296bccc2fd99 100644 --- a/dom/cache/ManagerId.cpp +++ b/dom/cache/ManagerId.cpp @@ -65,7 +65,8 @@ ManagerId::~ManagerId() // The PBackground worker thread shouldn't be running after the main thread // is stopped. So main thread is guaranteed to exist here. - NS_ReleaseOnMainThread(mPrincipal.forget()); + NS_ReleaseOnMainThread( + "ManagerId::mPrincipal", mPrincipal.forget()); } } // namespace cache diff --git a/dom/console/Console.cpp b/dom/console/Console.cpp index fea8a94febfb..a0217328413a 100644 --- a/dom/console/Console.cpp +++ b/dom/console/Console.cpp @@ -886,8 +886,10 @@ Console::Shutdown() } } - NS_ReleaseOnMainThread(mStorage.forget()); - NS_ReleaseOnMainThread(mSandbox.forget()); + NS_ReleaseOnMainThread( + "Console::mStorage", mStorage.forget()); + NS_ReleaseOnMainThread( + "Console::mSandbox", mSandbox.forget()); mTimerRegistry.Clear(); mCounterRegistry.Clear(); diff --git a/dom/crypto/WebCryptoTask.cpp b/dom/crypto/WebCryptoTask.cpp index 639bead05052..08e02d043b8e 100644 --- a/dom/crypto/WebCryptoTask.cpp +++ b/dom/crypto/WebCryptoTask.cpp @@ -3745,7 +3745,9 @@ WebCryptoTask::~WebCryptoTask() } if (mWorkerHolder) { - NS_ProxyRelease(mOriginalEventTarget, mWorkerHolder.forget()); + NS_ProxyRelease( + "WebCryptoTask::mWorkerHolder", + mOriginalEventTarget, mWorkerHolder.forget()); } } diff --git a/dom/fetch/Fetch.cpp b/dom/fetch/Fetch.cpp index e59b46ea1f50..08f64e95f83c 100644 --- a/dom/fetch/Fetch.cpp +++ b/dom/fetch/Fetch.cpp @@ -124,7 +124,9 @@ public: private: ~FetchSignalProxy() { - NS_ProxyRelease(mMainThreadEventTarget, mSignalMainThread.forget()); + NS_ProxyRelease( + "FetchSignalProxy::mSignalMainThread", + mMainThreadEventTarget, mSignalMainThread.forget()); } }; @@ -1304,7 +1306,8 @@ FetchBody::BeginConsumeBodyMainThread() // Now that everything succeeded, we can assign the pump to a pointer that // stays alive for the lifetime of the FetchBody. mConsumeBodyPump = - new nsMainThreadPtrHolder(pump, mMainThreadEventTarget); + new nsMainThreadPtrHolder( + "FetchBody::mConsumeBodyPump", pump, mMainThreadEventTarget); // It is ok for retargeting to fail and reads to happen on the main thread. autoReject.DontFail(); diff --git a/dom/file/MutableBlobStorage.cpp b/dom/file/MutableBlobStorage.cpp index 8aa5381d8f4e..fb5f0f51c742 100644 --- a/dom/file/MutableBlobStorage.cpp +++ b/dom/file/MutableBlobStorage.cpp @@ -59,8 +59,12 @@ private: MOZ_ASSERT(mBlobStorage); // If something when wrong, we still have to release these objects in the // correct thread. - NS_ProxyRelease(mBlobStorage->EventTarget(), mCallback.forget()); - NS_ProxyRelease(mBlobStorage->EventTarget(), mBlob.forget()); + NS_ProxyRelease( + "BlobCreationDoneRunnable::mCallback", + mBlobStorage->EventTarget(), mCallback.forget()); + NS_ProxyRelease( + "BlobCreationDoneRunnable::mBlob", + mBlobStorage->EventTarget(), mBlob.forget()); } RefPtr mBlobStorage; @@ -300,8 +304,12 @@ private: MOZ_ASSERT(mBlobStorage); // If something when wrong, we still have to release data in the correct // thread. - NS_ProxyRelease(mBlobStorage->EventTarget(), mParent.forget()); - NS_ProxyRelease(mBlobStorage->EventTarget(), mCallback.forget()); + NS_ProxyRelease( + "CreateBlobRunnable::mParent", + mBlobStorage->EventTarget(), mParent.forget()); + NS_ProxyRelease( + "CreateBlobRunnable::mCallback", + mBlobStorage->EventTarget(), mCallback.forget()); } RefPtr mBlobStorage; @@ -346,8 +354,12 @@ private: MOZ_ASSERT(mBlobStorage); // If something when wrong, we still have to release data in the correct // thread. - NS_ProxyRelease(mBlobStorage->EventTarget(), mParent.forget()); - NS_ProxyRelease(mBlobStorage->EventTarget(), mCallback.forget()); + NS_ProxyRelease( + "LastRunnable::mParent", + mBlobStorage->EventTarget(), mParent.forget()); + NS_ProxyRelease( + "LastRunnable::mCallback", + mBlobStorage->EventTarget(), mCallback.forget()); } RefPtr mBlobStorage; diff --git a/dom/filesystem/FileSystemRequestParent.cpp b/dom/filesystem/FileSystemRequestParent.cpp index 47c01dec8f31..a7ff9ba39baf 100644 --- a/dom/filesystem/FileSystemRequestParent.cpp +++ b/dom/filesystem/FileSystemRequestParent.cpp @@ -131,7 +131,8 @@ public: private: ~CheckPermissionRunnable() { - NS_ProxyRelease(mBackgroundEventTarget, mActor.forget()); + NS_ProxyRelease( + "CheckPermissionRunnable::mActor", mBackgroundEventTarget, mActor.forget()); } RefPtr mContentParent; diff --git a/dom/filesystem/FileSystemTaskBase.cpp b/dom/filesystem/FileSystemTaskBase.cpp index 3fece6c39b68..4b28529d7518 100644 --- a/dom/filesystem/FileSystemTaskBase.cpp +++ b/dom/filesystem/FileSystemTaskBase.cpp @@ -251,8 +251,12 @@ FileSystemTaskParentBase::~FileSystemTaskParentBase() { // This task can be released on different threads because we dispatch it (as // runnable) to main-thread, I/O and then back to the PBackground thread. - NS_ProxyRelease(mBackgroundEventTarget, mFileSystem.forget()); - NS_ProxyRelease(mBackgroundEventTarget, mRequestParent.forget()); + NS_ProxyRelease( + "FileSystemTaskParentBase::mFileSystem", + mBackgroundEventTarget, mFileSystem.forget()); + NS_ProxyRelease( + "FileSystemTaskParentBase::mRequestParent", + mBackgroundEventTarget, mRequestParent.forget()); } void diff --git a/dom/filesystem/GetFilesHelper.cpp b/dom/filesystem/GetFilesHelper.cpp index 80462834cd5a..f2e0d5333c9b 100644 --- a/dom/filesystem/GetFilesHelper.cpp +++ b/dom/filesystem/GetFilesHelper.cpp @@ -621,7 +621,8 @@ GetFilesHelperParent::GetFilesHelperParent(const nsID& aUUID, GetFilesHelperParent::~GetFilesHelperParent() { - NS_ReleaseOnMainThread(mContentParent.forget()); + NS_ReleaseOnMainThread( + "GetFilesHelperParent::mContentParent", mContentParent.forget()); } /* static */ already_AddRefed diff --git a/dom/media/MediaSegment.h b/dom/media/MediaSegment.h index a2504d222c3c..3478435532cc 100644 --- a/dom/media/MediaSegment.h +++ b/dom/media/MediaSegment.h @@ -67,7 +67,8 @@ typedef nsMainThreadPtrHandle PrincipalHandle; inline PrincipalHandle MakePrincipalHandle(nsIPrincipal* aPrincipal) { RefPtr> holder = - new nsMainThreadPtrHolder(aPrincipal); + new nsMainThreadPtrHolder( + "MakePrincipalHandle::nsIPrincipal", aPrincipal); return PrincipalHandle(holder); } diff --git a/dom/media/MediaStreamGraph.cpp b/dom/media/MediaStreamGraph.cpp index a6a15e0da0b3..93939231628e 100644 --- a/dom/media/MediaStreamGraph.cpp +++ b/dom/media/MediaStreamGraph.cpp @@ -1784,7 +1784,9 @@ MediaStreamGraphImpl::RunInStableState(bool aSourceIsMSG) // It's not safe to Shutdown() a thread from StableState, and // releasing this may shutdown a SystemClockDriver thread. // Proxy the release to outside of StableState. - NS_ReleaseOnMainThread(driver.forget(), true); // always proxy + NS_ReleaseOnMainThread( + "MediaStreamGraphImpl::CurrentDriver", driver.forget(), + true); // always proxy } } diff --git a/dom/media/mediasource/TrackBuffersManager.cpp b/dom/media/mediasource/TrackBuffersManager.cpp index 6c8801b87b29..ee258a37aab3 100644 --- a/dom/media/mediasource/TrackBuffersManager.cpp +++ b/dom/media/mediasource/TrackBuffersManager.cpp @@ -97,7 +97,9 @@ TrackBuffersManager::TrackBuffersManager(MediaSourceDecoder* aParentDecoder, , mParser(ContainerParser::CreateForMIMEType(aType)) , mProcessedInput(0) , mTaskQueue(aParentDecoder->GetDemuxer()->GetTaskQueue()) - , mParentDecoder(new nsMainThreadPtrHolder(aParentDecoder, false /* strict */)) + , mParentDecoder( + new nsMainThreadPtrHolder( + "TrackBuffersManager::mParentDecoder", aParentDecoder, false /* strict */)) , mAbstractMainThread(aParentDecoder->AbstractMainThread()) , mEnded(false) , mVideoEvictionThreshold(Preferences::GetUint("media.mediasource.eviction_threshold.video", diff --git a/dom/media/webspeech/recognition/SpeechStreamListener.cpp b/dom/media/webspeech/recognition/SpeechStreamListener.cpp index bf37f02018cd..f5c06ea556e8 100644 --- a/dom/media/webspeech/recognition/SpeechStreamListener.cpp +++ b/dom/media/webspeech/recognition/SpeechStreamListener.cpp @@ -19,7 +19,8 @@ SpeechStreamListener::SpeechStreamListener(SpeechRecognition* aRecognition) SpeechStreamListener::~SpeechStreamListener() { - NS_ReleaseOnMainThread(mRecognition.forget()); + NS_ReleaseOnMainThread( + "SpeechStreamListener::mRecognition", mRecognition.forget()); } void diff --git a/dom/notification/Notification.cpp b/dom/notification/Notification.cpp index 8e4b8cd9e703..2c5b73b74a9e 100644 --- a/dom/notification/Notification.cpp +++ b/dom/notification/Notification.cpp @@ -1479,7 +1479,8 @@ WorkerNotificationObserver::Observe(nsISupports* aSubject, const char* aTopic, // Instead of bothering with adding features and other worker lifecycle // management, we simply hold strongrefs to the window and document. nsMainThreadPtrHandle windowHandle( - new nsMainThreadPtrHolder(window)); + new nsMainThreadPtrHolder( + "WorkerNotificationObserver::Observe::nsPIDOMWindowInner", window)); r = new NotificationClickWorkerRunnable(notification, windowHandle); } else if (!strcmp("alertfinished", aTopic)) { diff --git a/dom/script/ScriptLoader.cpp b/dom/script/ScriptLoader.cpp index 1993607f32e9..f3ff678d6db0 100644 --- a/dom/script/ScriptLoader.cpp +++ b/dom/script/ScriptLoader.cpp @@ -1500,8 +1500,10 @@ ScriptLoader::ProcessOffThreadRequest(ScriptLoadRequest* aRequest) NotifyOffThreadScriptLoadCompletedRunnable::~NotifyOffThreadScriptLoadCompletedRunnable() { if (MOZ_UNLIKELY(mRequest || mLoader) && !NS_IsMainThread()) { - NS_ReleaseOnMainThread(mRequest.forget()); - NS_ReleaseOnMainThread(mLoader.forget()); + NS_ReleaseOnMainThread( + "NotifyOffThreadScriptLoadCompletedRunnable::mRequest", mRequest.forget()); + NS_ReleaseOnMainThread( + "NotifyOffThreadScriptLoadCompletedRunnable::mLoader", mLoader.forget()); } } diff --git a/dom/u2f/U2F.cpp b/dom/u2f/U2F.cpp index 366063bc39cb..0d1aaaaba88f 100644 --- a/dom/u2f/U2F.cpp +++ b/dom/u2f/U2F.cpp @@ -534,7 +534,8 @@ U2FRegisterRunnable::U2FRegisterRunnable(const nsAString& aOrigin, , mAuthenticators(aAuthenticators) // U2FRegisterCallback does not support threadsafe refcounting, and must be // used and destroyed on main. - , mCallback(new nsMainThreadPtrHolder(aCallback)) + , mCallback(new nsMainThreadPtrHolder( + "U2FRegisterRunnable::mCallback", aCallback)) { MOZ_ASSERT(NS_IsMainThread()); @@ -768,7 +769,8 @@ U2FSignRunnable::U2FSignRunnable(const nsAString& aOrigin, , mAuthenticators(aAuthenticators) // U2FSignCallback does not support threadsafe refcounting, and must be used // and destroyed on main. - , mCallback(new nsMainThreadPtrHolder(aCallback)) + , mCallback(new nsMainThreadPtrHolder( + "U2FSignRunnable::mCallback", aCallback)) { MOZ_ASSERT(NS_IsMainThread()); diff --git a/dom/workers/ServiceWorkerJob.cpp b/dom/workers/ServiceWorkerJob.cpp index 1128eb07088a..9f4526d00aa8 100644 --- a/dom/workers/ServiceWorkerJob.cpp +++ b/dom/workers/ServiceWorkerJob.cpp @@ -232,7 +232,8 @@ ServiceWorkerJob::Finish(ErrorResult& aRv) // Async release this object to ensure that our caller methods complete // as well. - NS_ReleaseOnMainThread(kungFuDeathGrip.forget(), true /* always proxy */); + NS_ReleaseOnMainThread("ServiceWorkerJob", + kungFuDeathGrip.forget(), true /* always proxy */); } void diff --git a/dom/workers/ServiceWorkerPrivate.cpp b/dom/workers/ServiceWorkerPrivate.cpp index a99f44722db4..d52f2a598e33 100644 --- a/dom/workers/ServiceWorkerPrivate.cpp +++ b/dom/workers/ServiceWorkerPrivate.cpp @@ -123,8 +123,10 @@ public: KeepAliveToken* aKeepAliveToken, LifeCycleEventCallback* aScriptEvaluationCallback) : WorkerRunnable(aWorkerPrivate) - , mServiceWorkerPrivate(new nsMainThreadPtrHolder(aServiceWorkerPrivate)) - , mKeepAliveToken(new nsMainThreadPtrHolder(aKeepAliveToken)) + , mServiceWorkerPrivate(new nsMainThreadPtrHolder( + "CheckScriptEvaluationWithCallback::mServiceWorkerPrivate", aServiceWorkerPrivate)) + , mKeepAliveToken(new nsMainThreadPtrHolder( + "CheckScriptEvaluationWithCallback::mKeepAliveToken", aKeepAliveToken)) , mScriptEvaluationCallback(aScriptEvaluationCallback) #ifdef DEBUG , mDone(false) @@ -422,7 +424,8 @@ public: MOZ_ASSERT(aKeepAliveToken); mKeepAliveToken = - new nsMainThreadPtrHolder(aKeepAliveToken); + new nsMainThreadPtrHolder( + "ExtendableEventWorkerRunnable::mKeepAliveToken", aKeepAliveToken); } nsresult @@ -997,7 +1000,8 @@ ServiceWorkerPrivate::SendPushEvent(const nsAString& aMessageId, RefPtr token = CreateEventKeepAliveToken(); nsMainThreadPtrHandle regInfo( - new nsMainThreadPtrHolder(aRegistration, false)); + new nsMainThreadPtrHolder( + "ServiceWorkerRegistrationInfo", aRegistration, false)); RefPtr r = new SendPushEventRunnable(mWorkerPrivate, token, @@ -1685,10 +1689,12 @@ ServiceWorkerPrivate::SendFetchEvent(nsIInterceptedChannel* aChannel, } nsMainThreadPtrHandle handle( - new nsMainThreadPtrHolder(aChannel, false)); + new nsMainThreadPtrHolder( + "nsIInterceptedChannel", aChannel, false)); nsMainThreadPtrHandle regInfo( - new nsMainThreadPtrHolder(registration, false)); + new nsMainThreadPtrHolder( + "ServiceWorkerRegistrationInfo", registration, false)); RefPtr token = CreateEventKeepAliveToken(); diff --git a/dom/workers/ServiceWorkerRegistrationInfo.cpp b/dom/workers/ServiceWorkerRegistrationInfo.cpp index a1c2ffb6ec34..57a41c3f075b 100644 --- a/dom/workers/ServiceWorkerRegistrationInfo.cpp +++ b/dom/workers/ServiceWorkerRegistrationInfo.cpp @@ -276,7 +276,8 @@ ServiceWorkerRegistrationInfo::Activate() false /* success */); nsMainThreadPtrHandle handle( - new nsMainThreadPtrHolder(this)); + new nsMainThreadPtrHolder( + "ServiceWorkerRegistrationInfo", this)); RefPtr callback = new ContinueActivateRunnable(handle); ServiceWorkerPrivate* workerPrivate = mActiveWorker->WorkerPrivate(); diff --git a/dom/workers/ServiceWorkerUpdateJob.cpp b/dom/workers/ServiceWorkerUpdateJob.cpp index aae6be4ec801..7f56d9d0518c 100644 --- a/dom/workers/ServiceWorkerUpdateJob.cpp +++ b/dom/workers/ServiceWorkerUpdateJob.cpp @@ -444,7 +444,8 @@ ServiceWorkerUpdateJob::ComparisonResult(nsresult aStatus, mRegistration->SetEvaluating(sw); nsMainThreadPtrHandle handle( - new nsMainThreadPtrHolder(this)); + new nsMainThreadPtrHolder( + "ServiceWorkerUpdateJob", this)); RefPtr callback = new ContinueUpdateRunnable(handle); ServiceWorkerPrivate* workerPrivate = sw->WorkerPrivate(); @@ -519,7 +520,8 @@ ServiceWorkerUpdateJob::Install(ServiceWorkerManager* aSWM) (this, &ServiceWorkerUpdateJob::ContinueAfterInstallEvent, false); nsMainThreadPtrHandle handle( - new nsMainThreadPtrHolder(this)); + new nsMainThreadPtrHolder( + "ServiceWorkerUpdateJob", this)); RefPtr callback = new ContinueInstallRunnable(handle); // Send the install event to the worker thread diff --git a/dom/workers/WorkerPrivate.cpp b/dom/workers/WorkerPrivate.cpp index 748990834c52..e50a456c9785 100644 --- a/dom/workers/WorkerPrivate.cpp +++ b/dom/workers/WorkerPrivate.cpp @@ -4154,7 +4154,8 @@ WorkerDebugger::~WorkerDebugger() if (!NS_IsMainThread()) { for (size_t index = 0; index < mListeners.Length(); ++index) { - NS_ReleaseOnMainThread(mListeners[index].forget()); + NS_ReleaseOnMainThread( + "WorkerDebugger::mListeners", mListeners[index].forget()); } } } diff --git a/extensions/spellcheck/src/mozPersonalDictionary.cpp b/extensions/spellcheck/src/mozPersonalDictionary.cpp index 7f084e85098d..19a0af4b0ab1 100644 --- a/extensions/spellcheck/src/mozPersonalDictionary.cpp +++ b/extensions/spellcheck/src/mozPersonalDictionary.cpp @@ -62,7 +62,9 @@ public: mDict->SyncLoad(); // Release the dictionary on the main thread - NS_ReleaseOnMainThread(mDict.forget().downcast()); + NS_ReleaseOnMainThread( + "mozPersonalDictionaryLoader::mDict", + mDict.forget().downcast()); return NS_OK; } @@ -133,7 +135,9 @@ public: } // Release the dictionary on the main thread. - NS_ReleaseOnMainThread(mDict.forget().downcast()); + NS_ReleaseOnMainThread( + "mozPersonalDictionarySave::mDict", + mDict.forget().downcast()); return NS_OK; } diff --git a/image/ImageURL.h b/image/ImageURL.h index 61d67227ad2b..691abce8c86d 100644 --- a/image/ImageURL.h +++ b/image/ImageURL.h @@ -34,7 +34,7 @@ class ImageURL { public: explicit ImageURL(nsIURI* aURI, nsresult& aRv) - : mURI(new nsMainThreadPtrHolder(aURI)) + : mURI(new nsMainThreadPtrHolder("ImageURL::mURI", aURI)) { MOZ_ASSERT(NS_IsMainThread(), "Cannot use nsIURI off main thread!"); diff --git a/image/decoders/icon/mac/nsIconChannelCocoa.mm b/image/decoders/icon/mac/nsIconChannelCocoa.mm index 23c671907ff0..229dddd78ae8 100644 --- a/image/decoders/icon/mac/nsIconChannelCocoa.mm +++ b/image/decoders/icon/mac/nsIconChannelCocoa.mm @@ -39,7 +39,8 @@ nsIconChannel::nsIconChannel() nsIconChannel::~nsIconChannel() { if (mLoadInfo) { - NS_ReleaseOnMainThread(mLoadInfo.forget()); + NS_ReleaseOnMainThread( + "nsIconChannel::mLoadInfo", mLoadInfo.forget()); } } diff --git a/image/decoders/icon/win/nsIconChannel.cpp b/image/decoders/icon/win/nsIconChannel.cpp index 16579a464efc..5b1c684b3269 100644 --- a/image/decoders/icon/win/nsIconChannel.cpp +++ b/image/decoders/icon/win/nsIconChannel.cpp @@ -72,7 +72,8 @@ nsIconChannel::nsIconChannel() nsIconChannel::~nsIconChannel() { if (mLoadInfo) { - NS_ReleaseOnMainThread(mLoadInfo.forget()); + NS_ReleaseOnMainThread( + "nsIconChannel::mLoadInfo", mLoadInfo.forget()); } } diff --git a/ipc/mscom/MainThreadHandoff.cpp b/ipc/mscom/MainThreadHandoff.cpp index b045bec68692..dad9161bd62d 100644 --- a/ipc/mscom/MainThreadHandoff.cpp +++ b/ipc/mscom/MainThreadHandoff.cpp @@ -221,7 +221,8 @@ MainThreadHandoff::Release() // main thread right now, so we send a reference to ourselves to the main // thread to be re-released there. RefPtr self = this; - NS_ReleaseOnMainThread(self.forget()); + NS_ReleaseOnMainThread( + "MainThreadHandoff", self.forget()); } } return newRefCnt; diff --git a/ipc/mscom/WeakRef.cpp b/ipc/mscom/WeakRef.cpp index 003fe7eee11d..0aa04de4920d 100644 --- a/ipc/mscom/WeakRef.cpp +++ b/ipc/mscom/WeakRef.cpp @@ -168,7 +168,8 @@ WeakReferenceSupport::Release() // main thread right now, so we send a reference to ourselves to the main // thread to be re-released there. RefPtr self = this; - NS_ReleaseOnMainThread(self.forget()); + NS_ReleaseOnMainThread( + "WeakReferenceSupport", self.forget()); } } return newRefCnt; diff --git a/js/xpconnect/loader/ScriptPreloader.cpp b/js/xpconnect/loader/ScriptPreloader.cpp index b7e18818bb5c..3152a2335756 100644 --- a/js/xpconnect/loader/ScriptPreloader.cpp +++ b/js/xpconnect/loader/ScriptPreloader.cpp @@ -650,7 +650,7 @@ ScriptPreloader::Run() Unused << NS_WARN_IF(result.isErr()); mSaveComplete = true; - NS_ReleaseOnMainThread(mSaveThread.forget()); + NS_ReleaseOnMainThread("ScriptPreloader::mSaveThread", mSaveThread.forget()); mal.NotifyAll(); return NS_OK; diff --git a/layout/style/URLExtraData.cpp b/layout/style/URLExtraData.cpp index 89911394523d..1565ec81387c 100644 --- a/layout/style/URLExtraData.cpp +++ b/layout/style/URLExtraData.cpp @@ -32,9 +32,9 @@ URLExtraData::ReleaseDummy() URLExtraData::~URLExtraData() { if (!NS_IsMainThread()) { - NS_ReleaseOnMainThread(mBaseURI.forget()); - NS_ReleaseOnMainThread(mReferrer.forget()); - NS_ReleaseOnMainThread(mPrincipal.forget()); + NS_ReleaseOnMainThread("URLExtraData::mBaseURI", mBaseURI.forget()); + NS_ReleaseOnMainThread("URLExtraData::mReferrer", mReferrer.forget()); + NS_ReleaseOnMainThread("URLExtraData::mPrincipal", mPrincipal.forget()); } } diff --git a/layout/style/nsCSSValue.cpp b/layout/style/nsCSSValue.cpp index bcc9f275d7fe..b97fcc788ad2 100644 --- a/layout/style/nsCSSValue.cpp +++ b/layout/style/nsCSSValue.cpp @@ -2871,7 +2871,7 @@ css::URLValueData::GetURI() const NS_NewURI(getter_AddRefs(newURI), NS_ConvertUTF16toUTF8(mString), nullptr, mExtraData->BaseURI()); - mURI = new PtrHolder(newURI.forget()); + mURI = new PtrHolder("URLValueData::mURI", newURI.forget()); mURIResolved = true; } @@ -3008,7 +3008,7 @@ URLValue::URLValue(const nsAString& aString, nsIURI* aBaseURI, nsIURI* aReferrer URLValue::URLValue(nsIURI* aURI, const nsAString& aString, nsIURI* aBaseURI, nsIURI* aReferrer, nsIPrincipal* aOriginPrincipal) - : URLValueData(do_AddRef(new PtrHolder(aURI)), + : URLValueData(do_AddRef(new PtrHolder("URLValueData::mURI", aURI)), aString, do_AddRef(new URLExtraData(aBaseURI, aReferrer, aOriginPrincipal))) @@ -3031,7 +3031,7 @@ css::URLValue::SizeOfIncludingThis(mozilla::MallocSizeOf aMallocSizeOf) const css::ImageValue::ImageValue(nsIURI* aURI, const nsAString& aString, already_AddRefed aExtraData, nsIDocument* aDocument) - : URLValueData(do_AddRef(new PtrHolder(aURI)), + : URLValueData(do_AddRef(new PtrHolder("URLValueData::mURI", aURI)), aString, Move(aExtraData)) { Initialize(aDocument); diff --git a/layout/style/nsStyleStruct.cpp b/layout/style/nsStyleStruct.cpp index 3b7e8b476c05..47b8fad406a7 100644 --- a/layout/style/nsStyleStruct.cpp +++ b/layout/style/nsStyleStruct.cpp @@ -3465,7 +3465,9 @@ nsStyleDisplay::~nsStyleDisplay() #else false; #endif - NS_ReleaseOnMainThread(mSpecifiedTransform.forget(), alwaysProxy); + NS_ReleaseOnMainThread( + "nsStyleDisplay::mSpecifiedTransform", + mSpecifiedTransform.forget(), alwaysProxy); } MOZ_COUNT_DTOR(nsStyleDisplay); @@ -3769,7 +3771,8 @@ nsStyleContentData::~nsStyleContentData() MOZ_COUNT_DTOR(nsStyleContentData); if (mType == eStyleContentType_Image) { - NS_ReleaseOnMainThread(dont_AddRef(mContent.mImage)); + NS_ReleaseOnMainThread( + "nsStyleContentData::mContent.mImage", dont_AddRef(mContent.mImage)); mContent.mImage = nullptr; } else if (mType == eStyleContentType_Counter || mType == eStyleContentType_Counters) { @@ -4360,7 +4363,9 @@ nsStyleUIReset::~nsStyleUIReset() #else false; #endif - NS_ReleaseOnMainThread(mSpecifiedWindowTransform.forget(), alwaysProxy); + NS_ReleaseOnMainThread( + "nsStyleUIReset::mSpecifiedWindowTransform", + mSpecifiedWindowTransform.forget(), alwaysProxy); } } diff --git a/media/webrtc/signaling/src/mediapipeline/MediaPipeline.cpp b/media/webrtc/signaling/src/mediapipeline/MediaPipeline.cpp index 65c100280460..f1f98273aa65 100644 --- a/media/webrtc/signaling/src/mediapipeline/MediaPipeline.cpp +++ b/media/webrtc/signaling/src/mediapipeline/MediaPipeline.cpp @@ -545,7 +545,8 @@ protected: // Conduits must be released on MainThread, and we might have the last reference // We don't need to worry about runnables still trying to access the conduit, since // the runnables hold a ref to AudioProxyThread. - NS_ReleaseOnMainThread(mConduit.forget()); + NS_ReleaseOnMainThread( + "AudioProxyThread::mConduit", mConduit.forget()); MOZ_COUNT_DTOR(AudioProxyThread); } diff --git a/media/webrtc/signaling/src/peerconnection/PeerConnectionMedia.cpp b/media/webrtc/signaling/src/peerconnection/PeerConnectionMedia.cpp index 4a478c547bcb..3bc1837d733b 100644 --- a/media/webrtc/signaling/src/peerconnection/PeerConnectionMedia.cpp +++ b/media/webrtc/signaling/src/peerconnection/PeerConnectionMedia.cpp @@ -1457,7 +1457,9 @@ void PeerConnectionMedia::RemoveTransportFlow(int aIndex, bool aRtcp) { int index_inner = GetTransportFlowIndex(aIndex, aRtcp); - NS_ProxyRelease(GetSTSThread(), mTransportFlows[index_inner].forget()); + NS_ProxyRelease( + "PeerConnectionMedia::mTransportFlows", + GetSTSThread(), mTransportFlows[index_inner].forget()); } void diff --git a/media/webrtc/signaling/src/peerconnection/WebrtcGlobalInformation.cpp b/media/webrtc/signaling/src/peerconnection/WebrtcGlobalInformation.cpp index c8d038e8d195..1de88b8ee80a 100644 --- a/media/webrtc/signaling/src/peerconnection/WebrtcGlobalInformation.cpp +++ b/media/webrtc/signaling/src/peerconnection/WebrtcGlobalInformation.cpp @@ -482,7 +482,8 @@ WebrtcGlobalInformation::GetAllStats( // CallbackObject does not support threadsafe refcounting, and must be // used and destroyed on main. StatsRequestCallback callbackHandle( - new nsMainThreadPtrHolder(&aStatsCallback)); + new nsMainThreadPtrHolder( + "WebrtcGlobalStatisticsCallback", &aStatsCallback)); nsString filter; if (pcIdFilter.WasPassed()) { @@ -624,7 +625,8 @@ WebrtcGlobalInformation::GetLogging( // CallbackObject does not support threadsafe refcounting, and must be // destroyed on main. LogRequestCallback callbackHandle( - new nsMainThreadPtrHolder(&aLoggingCallback)); + new nsMainThreadPtrHolder( + "WebrtcGlobalLoggingCallback", &aLoggingCallback)); nsAutoCString pattern; CopyUTF16toUTF8(aPattern, pattern); diff --git a/modules/libjar/nsJARChannel.cpp b/modules/libjar/nsJARChannel.cpp index 24d6e012c44f..924a89d55266 100644 --- a/modules/libjar/nsJARChannel.cpp +++ b/modules/libjar/nsJARChannel.cpp @@ -209,7 +209,7 @@ nsJARChannel::nsJARChannel() nsJARChannel::~nsJARChannel() { - NS_ReleaseOnMainThread(mLoadInfo.forget()); + NS_ReleaseOnMainThread("nsJARChannel::mLoadInfo", mLoadInfo.forget()); // release owning reference to the jar handler nsJARProtocolHandler *handler = gJarHandler; diff --git a/netwerk/base/Dashboard.cpp b/netwerk/base/Dashboard.cpp index 1b24d11536ab..63273be92ba0 100644 --- a/netwerk/base/Dashboard.cpp +++ b/netwerk/base/Dashboard.cpp @@ -373,7 +373,8 @@ Dashboard::RequestSockets(NetDashboardCallback *aCallback) { RefPtr socketData = new SocketData(); socketData->mCallback = - new nsMainThreadPtrHolder(aCallback, true); + new nsMainThreadPtrHolder( + "NetDashboardCallback", aCallback, true); socketData->mEventTarget = GetCurrentThreadEventTarget(); gSocketTransportService->Dispatch(NewRunnableMethod> (this, &Dashboard::GetSocketsDispatch, socketData), @@ -442,7 +443,8 @@ Dashboard::RequestHttpConnections(NetDashboardCallback *aCallback) { RefPtr httpData = new HttpData(); httpData->mCallback = - new nsMainThreadPtrHolder(aCallback, true); + new nsMainThreadPtrHolder( + "NetDashboardCallback", aCallback, true); httpData->mEventTarget = GetCurrentThreadEventTarget(); gSocketTransportService->Dispatch(NewRunnableMethod> @@ -618,7 +620,8 @@ Dashboard::RequestWebsocketConnections(NetDashboardCallback *aCallback) { RefPtr wsRequest = new WebSocketRequest(); wsRequest->mCallback = - new nsMainThreadPtrHolder(aCallback, true); + new nsMainThreadPtrHolder( + "NetDashboardCallback", aCallback, true); wsRequest->mEventTarget = GetCurrentThreadEventTarget(); wsRequest->mEventTarget->Dispatch(NewRunnableMethod> @@ -669,7 +672,8 @@ Dashboard::RequestDNSInfo(NetDashboardCallback *aCallback) { RefPtr dnsData = new DnsData(); dnsData->mCallback = - new nsMainThreadPtrHolder(aCallback, true); + new nsMainThreadPtrHolder( + "NetDashboardCallback", aCallback, true); nsresult rv; dnsData->mData.Clear(); @@ -769,7 +773,8 @@ Dashboard::RequestDNSLookup(const nsACString &aHost, RefPtr helper = new LookupHelper(); helper->mCallback = - new nsMainThreadPtrHolder(aCallback, true); + new nsMainThreadPtrHolder( + "NetDashboardCallback", aCallback, true); helper->mEventTarget = GetCurrentThreadEventTarget(); OriginAttributes attrs; rv = mDnsService->AsyncResolveNative(aHost, 0, helper.get(), @@ -784,7 +789,8 @@ Dashboard::RequestRcwnStats(NetDashboardCallback *aCallback) RefPtr rcwnData = new RcwnData(); rcwnData->mEventTarget = GetCurrentThreadEventTarget(); rcwnData->mCallback = - new nsMainThreadPtrHolder(aCallback, true); + new nsMainThreadPtrHolder( + "NetDashboardCallback", aCallback, true); return rcwnData->mEventTarget->Dispatch( NewRunnableMethod>(this, &Dashboard::GetRcwnData, rcwnData), @@ -861,7 +867,8 @@ Dashboard::RequestConnection(const nsACString& aHost, uint32_t aPort, connectionData->mTimeout = aTimeout; connectionData->mCallback = - new nsMainThreadPtrHolder(aCallback, true); + new nsMainThreadPtrHolder( + "NetDashboardCallback", aCallback, true); connectionData->mEventTarget = GetCurrentThreadEventTarget(); rv = TestNewConnection(connectionData); diff --git a/netwerk/base/TLSServerSocket.cpp b/netwerk/base/TLSServerSocket.cpp index 65a9a6dd02fb..40dcec75418c 100644 --- a/netwerk/base/TLSServerSocket.cpp +++ b/netwerk/base/TLSServerSocket.cpp @@ -276,7 +276,8 @@ class TLSServerSecurityObserverProxy final : public nsITLSServerSecurityObserver public: explicit TLSServerSecurityObserverProxy(nsITLSServerSecurityObserver* aListener) - : mListener(new nsMainThreadPtrHolder(aListener)) + : mListener(new nsMainThreadPtrHolder( + "TLSServerSecurityObserverProxy::mListener", aListener)) { } NS_DECL_THREADSAFE_ISUPPORTS @@ -355,7 +356,8 @@ TLSServerConnectionInfo::~TLSServerConnectionInfo() } if (observer) { - NS_ReleaseOnMainThread(observer.forget()); + NS_ReleaseOnMainThread( + "TLSServerConnectionInfo::mSecurityObserver", observer.forget()); } } diff --git a/netwerk/base/nsBaseChannel.cpp b/netwerk/base/nsBaseChannel.cpp index 21b23033cf48..094ef07c458a 100644 --- a/netwerk/base/nsBaseChannel.cpp +++ b/netwerk/base/nsBaseChannel.cpp @@ -69,7 +69,8 @@ nsBaseChannel::nsBaseChannel() nsBaseChannel::~nsBaseChannel() { - NS_ReleaseOnMainThread(mLoadInfo.forget()); + NS_ReleaseOnMainThread( + "nsBaseChannel::mLoadInfo", mLoadInfo.forget()); } nsresult diff --git a/netwerk/base/nsProtocolProxyService.cpp b/netwerk/base/nsProtocolProxyService.cpp index d387e57fcb25..a15166f64419 100644 --- a/netwerk/base/nsProtocolProxyService.cpp +++ b/netwerk/base/nsProtocolProxyService.cpp @@ -129,19 +129,23 @@ private: // callbacks called normally they will all be null and this is a nop if (mChannel) { - NS_ReleaseOnMainThread(mChannel.forget()); + NS_ReleaseOnMainThread( + "nsAsyncResolveRequest::mChannel", mChannel.forget()); } if (mCallback) { - NS_ReleaseOnMainThread(mCallback.forget()); + NS_ReleaseOnMainThread( + "nsAsyncResolveRequest::mCallback", mCallback.forget()); } if (mProxyInfo) { - NS_ReleaseOnMainThread(mProxyInfo.forget()); + NS_ReleaseOnMainThread( + "nsAsyncResolveRequest::mProxyInfo", mProxyInfo.forget()); } if (mXPComPPS) { - NS_ReleaseOnMainThread(mXPComPPS.forget()); + NS_ReleaseOnMainThread( + "nsAsyncResolveRequest::mXPComPPS", mXPComPPS.forget()); } } } @@ -362,7 +366,8 @@ private: ~AsyncGetPACURIRequest() { MOZ_ASSERT(NS_IsMainThread() == mIsMainThreadOnly); - NS_ReleaseOnMainThread(mServiceHolder.forget()); + NS_ReleaseOnMainThread( + "AsyncGetPACURIRequest::mServiceHolder", mServiceHolder.forget()); } bool mIsMainThreadOnly; diff --git a/netwerk/base/nsRequestObserverProxy.cpp b/netwerk/base/nsRequestObserverProxy.cpp index 95ffc4bded6a..9e95b356ba65 100644 --- a/netwerk/base/nsRequestObserverProxy.cpp +++ b/netwerk/base/nsRequestObserverProxy.cpp @@ -176,8 +176,10 @@ NS_IMETHODIMP nsRequestObserverProxy::Init(nsIRequestObserver *observer, nsISupports *context) { NS_ENSURE_ARG_POINTER(observer); - mObserver = new nsMainThreadPtrHolder(observer); - mContext = new nsMainThreadPtrHolder(context); + mObserver = new nsMainThreadPtrHolder( + "nsRequestObserverProxy::mObserver", observer); + mContext = new nsMainThreadPtrHolder( + "nsRequestObserverProxy::mContext", context); return NS_OK; } diff --git a/netwerk/base/nsServerSocket.cpp b/netwerk/base/nsServerSocket.cpp index cfd5457d3ac4..3c9e12621c77 100644 --- a/netwerk/base/nsServerSocket.cpp +++ b/netwerk/base/nsServerSocket.cpp @@ -236,7 +236,8 @@ nsServerSocket::OnSocketDetached(PRFileDesc *fd) // XXX we need to proxy the release to the listener's target thread to work // around bug 337492. if (listener) { - NS_ProxyRelease(mListenerTarget, listener.forget()); + NS_ProxyRelease( + "nsServerSocket::mListener", mListenerTarget, listener.forget()); } } } @@ -422,7 +423,8 @@ class ServerSocketListenerProxy final : public nsIServerSocketListener public: explicit ServerSocketListenerProxy(nsIServerSocketListener* aListener) - : mListener(new nsMainThreadPtrHolder(aListener)) + : mListener(new nsMainThreadPtrHolder( + "ServerSocketListenerProxy::mListener", aListener)) , mTarget(GetCurrentThreadEventTarget()) { } diff --git a/netwerk/base/nsStreamListenerTee.cpp b/netwerk/base/nsStreamListenerTee.cpp index d88370b2bf86..1a8cc472de04 100644 --- a/netwerk/base/nsStreamListenerTee.cpp +++ b/netwerk/base/nsStreamListenerTee.cpp @@ -42,7 +42,8 @@ nsStreamListenerTee::OnStopRequest(nsIRequest *request, // release sink on the same thread where the data was written (bug 716293) if (mEventTarget) { - NS_ProxyRelease(mEventTarget, mSink.forget()); + NS_ProxyRelease( + "nsStreamListenerTee::mSink", mEventTarget, mSink.forget()); } else { mSink = nullptr; diff --git a/netwerk/base/nsTransportUtils.cpp b/netwerk/base/nsTransportUtils.cpp index 0f096a661755..eda2333eeb9d 100644 --- a/netwerk/base/nsTransportUtils.cpp +++ b/netwerk/base/nsTransportUtils.cpp @@ -37,7 +37,8 @@ private: { // our reference to mSink could be the last, so be sure to release // it on the target thread. otherwise, we could get into trouble. - NS_ProxyRelease(mTarget, dont_AddRef(mSink)); + NS_ProxyRelease( + "nsTransportEventSinkProxy::mSink", mTarget, dont_AddRef(mSink)); } public: diff --git a/netwerk/base/nsUDPSocket.cpp b/netwerk/base/nsUDPSocket.cpp index 1c6e7d73189d..4de0dbce7564 100644 --- a/netwerk/base/nsUDPSocket.cpp +++ b/netwerk/base/nsUDPSocket.cpp @@ -531,7 +531,8 @@ nsUDPSocket::OnSocketDetached(PRFileDesc *fd) if (listener) { listener->OnStopListening(this, mCondition); - NS_ProxyRelease(mListenerTarget, listener.forget()); + NS_ProxyRelease( + "nsUDPSocket::mListener", mListenerTarget, listener.forget()); } } } @@ -846,7 +847,8 @@ class SocketListenerProxy final : public nsIUDPSocketListener public: explicit SocketListenerProxy(nsIUDPSocketListener* aListener) - : mListener(new nsMainThreadPtrHolder(aListener)) + : mListener(new nsMainThreadPtrHolder( + "SocketListenerProxy::mListener", aListener)) , mTarget(GetCurrentThreadEventTarget()) { } diff --git a/netwerk/cache/nsCacheService.cpp b/netwerk/cache/nsCacheService.cpp index ceadfa8b268c..4e251d4de56d 100644 --- a/netwerk/cache/nsCacheService.cpp +++ b/netwerk/cache/nsCacheService.cpp @@ -2695,7 +2695,8 @@ nsCacheService::ReleaseObject_Locked(nsISupports * obj, if (!target || (NS_SUCCEEDED(target->IsOnCurrentThread(&isCur)) && isCur)) { gService->mDoomedObjects.AppendElement(obj); } else { - NS_ProxyRelease(target, dont_AddRef(obj)); + NS_ProxyRelease( + "nsCacheService::ReleaseObject_Locked::obj", target, dont_AddRef(obj)); } } diff --git a/netwerk/cache2/AppCacheStorage.cpp b/netwerk/cache2/AppCacheStorage.cpp index 7a045175f626..71123d273cd3 100644 --- a/netwerk/cache2/AppCacheStorage.cpp +++ b/netwerk/cache2/AppCacheStorage.cpp @@ -32,7 +32,7 @@ AppCacheStorage::AppCacheStorage(nsILoadContextInfo* aInfo, AppCacheStorage::~AppCacheStorage() { - ProxyReleaseMainThread(mAppCache); + ProxyReleaseMainThread("AppCacheStorage::mAppCache", mAppCache); } NS_IMETHODIMP AppCacheStorage::AsyncOpenURI(nsIURI *aURI, diff --git a/netwerk/cache2/CacheEntry.cpp b/netwerk/cache2/CacheEntry.cpp index 3cda27afe3f2..fcfce09de099 100644 --- a/netwerk/cache2/CacheEntry.cpp +++ b/netwerk/cache2/CacheEntry.cpp @@ -134,7 +134,7 @@ CacheEntry::Callback::Callback(CacheEntry::Callback const &aThat) CacheEntry::Callback::~Callback() { - ProxyRelease(mCallback, mTarget); + ProxyRelease("CacheEntry::Callback::mCallback", mCallback, mTarget); mEntry->ReleaseHandleRef(); MOZ_COUNT_DTOR(CacheEntry::Callback); diff --git a/netwerk/cache2/CacheIndex.h b/netwerk/cache2/CacheIndex.h index 427f28894190..bfd43efd1190 100644 --- a/netwerk/cache2/CacheIndex.h +++ b/netwerk/cache2/CacheIndex.h @@ -1209,7 +1209,8 @@ private: : mObserver(aWeakObserver) { } virtual ~DiskConsumptionObserver() { if (mObserver && !NS_IsMainThread()) { - NS_ReleaseOnMainThread(mObserver.forget()); + NS_ReleaseOnMainThread( + "DiskConsumptionObserver::mObserver", mObserver.forget()); } } diff --git a/netwerk/cache2/CacheStorageService.cpp b/netwerk/cache2/CacheStorageService.cpp index dc053d470aea..bbc68f04562a 100644 --- a/netwerk/cache2/CacheStorageService.cpp +++ b/netwerk/cache2/CacheStorageService.cpp @@ -210,7 +210,8 @@ protected: virtual ~WalkCacheRunnable() { if (mCallback) { - ProxyReleaseMainThread(mCallback); + ProxyReleaseMainThread( + "WalkCacheRunnable::mCallback", mCallback); } } @@ -321,7 +322,8 @@ private: virtual ~WalkMemoryCacheRunnable() { if (mCallback) - ProxyReleaseMainThread(mCallback); + ProxyReleaseMainThread( + "WalkMemoryCacheRunnable::mCallback", mCallback); } virtual void OnEntryInfo(const nsACString & aURISpec, const nsACString & aIdEnhance, @@ -1706,7 +1708,8 @@ private: CacheEntryDoomByKeyCallback::~CacheEntryDoomByKeyCallback() { if (mCallback) - ProxyReleaseMainThread(mCallback); + ProxyReleaseMainThread( + "CacheEntryDoomByKeyCallback::mCallback", mCallback); } NS_IMETHODIMP CacheEntryDoomByKeyCallback::OnFileDoomed(CacheFileHandle *aHandle, diff --git a/netwerk/cache2/CacheStorageService.h b/netwerk/cache2/CacheStorageService.h index 7debc7ed7936..5f3d60cc24eb 100644 --- a/netwerk/cache2/CacheStorageService.h +++ b/netwerk/cache2/CacheStorageService.h @@ -400,15 +400,15 @@ private: }; template -void ProxyRelease(nsCOMPtr &object, nsIEventTarget* target) +void ProxyRelease(const char* aName, nsCOMPtr &object, nsIEventTarget* target) { - NS_ProxyRelease(target, object.forget()); + NS_ProxyRelease(aName, target, object.forget()); } template -void ProxyReleaseMainThread(nsCOMPtr &object) +void ProxyReleaseMainThread(const char* aName, nsCOMPtr &object) { - ProxyRelease(object, GetMainThreadEventTarget()); + ProxyRelease(aName, object, GetMainThreadEventTarget()); } } // namespace net diff --git a/netwerk/cache2/OldWrappers.cpp b/netwerk/cache2/OldWrappers.cpp index 543e42bbb756..e33c23cc45ad 100644 --- a/netwerk/cache2/OldWrappers.cpp +++ b/netwerk/cache2/OldWrappers.cpp @@ -677,7 +677,8 @@ _OldCacheLoad::_OldCacheLoad(nsCSubstring const& aScheme, _OldCacheLoad::~_OldCacheLoad() { - ProxyReleaseMainThread(mAppCache); + ProxyReleaseMainThread( + "_OldCacheLoad::mAppCache", mAppCache); } nsresult _OldCacheLoad::Start() diff --git a/netwerk/dns/DNSListenerProxy.h b/netwerk/dns/DNSListenerProxy.h index 1d832fae4aef..d187b20fc7ad 100644 --- a/netwerk/dns/DNSListenerProxy.h +++ b/netwerk/dns/DNSListenerProxy.h @@ -28,7 +28,8 @@ public: // sometimes it's a threadsafe object like nsSOCKSSocketInfo. Use a main- // thread pointer holder, but disable strict enforcement of thread invariants. // The AddRef implementation of XPCWrappedJS will assert if we go wrong here. - : mListener(new nsMainThreadPtrHolder(aListener, false)) + : mListener(new nsMainThreadPtrHolder( + "DNSListenerProxy::mListener", aListener, false)) , mTargetThread(aTargetThread) { } diff --git a/netwerk/protocol/file/nsFileChannel.cpp b/netwerk/protocol/file/nsFileChannel.cpp index 82f593ac1bc6..695aecde8e1d 100644 --- a/netwerk/protocol/file/nsFileChannel.cpp +++ b/netwerk/protocol/file/nsFileChannel.cpp @@ -129,7 +129,8 @@ nsFileCopyEvent::DoCopy() // Release the callback on the target thread to avoid destroying stuff on // the wrong thread. - NS_ProxyRelease(mCallbackTarget, mCallback.forget()); + NS_ProxyRelease( + "nsFileCopyEvent::mCallback", mCallbackTarget, mCallback.forget()); } } diff --git a/netwerk/protocol/gio/nsGIOProtocolHandler.cpp b/netwerk/protocol/gio/nsGIOProtocolHandler.cpp index eae6e1da0fe5..d94fda4ca643 100644 --- a/netwerk/protocol/gio/nsGIOProtocolHandler.cpp +++ b/netwerk/protocol/gio/nsGIOProtocolHandler.cpp @@ -614,7 +614,8 @@ nsGIOInputStream::Close() } if (mChannel) { - NS_ReleaseOnMainThread(dont_AddRef(mChannel)); + NS_ReleaseOnMainThread( + "nsGIOInputStream::mChannel", dont_AddRef(mChannel)); mChannel = nullptr; } diff --git a/netwerk/protocol/http/HttpChannelParent.cpp b/netwerk/protocol/http/HttpChannelParent.cpp index 559769ab3aec..c12e71ed047e 100644 --- a/netwerk/protocol/http/HttpChannelParent.cpp +++ b/netwerk/protocol/http/HttpChannelParent.cpp @@ -608,7 +608,8 @@ HttpChannelParent::DoAsyncOpen( const URIParams& aURI, nsCOMPtr iir = static_cast(this); nsMainThreadPtrHandle handle = nsMainThreadPtrHandle( - new nsMainThreadPtrHolder(iir)); + new nsMainThreadPtrHolder( + "nsIInterfaceRequestor", iir)); UniquePtr closure(new UploadStreamClosure(handle)); // Accumulate the stream contents as the child sends it. We will continue with diff --git a/netwerk/protocol/http/nsHttpActivityDistributor.cpp b/netwerk/protocol/http/nsHttpActivityDistributor.cpp index 04af418abfcc..42388f3a27a2 100644 --- a/netwerk/protocol/http/nsHttpActivityDistributor.cpp +++ b/netwerk/protocol/http/nsHttpActivityDistributor.cpp @@ -115,7 +115,7 @@ nsHttpActivityDistributor::AddObserver(nsIHttpActivityObserver *aObserver) { MutexAutoLock lock(mLock); - ObserverHandle observer(new ObserverHolder(aObserver)); + ObserverHandle observer(new ObserverHolder("nsIHttpActivityObserver", aObserver)); if (!mObservers.AppendElement(observer)) return NS_ERROR_OUT_OF_MEMORY; @@ -127,7 +127,7 @@ nsHttpActivityDistributor::RemoveObserver(nsIHttpActivityObserver *aObserver) { MutexAutoLock lock(mLock); - ObserverHandle observer(new ObserverHolder(aObserver)); + ObserverHandle observer(new ObserverHolder("nsIHttpActivityObserver", aObserver)); if (!mObservers.RemoveElement(observer)) return NS_ERROR_FAILURE; diff --git a/netwerk/protocol/http/nsHttpConnection.cpp b/netwerk/protocol/http/nsHttpConnection.cpp index b3edb978383e..e77fcd612167 100644 --- a/netwerk/protocol/http/nsHttpConnection.cpp +++ b/netwerk/protocol/http/nsHttpConnection.cpp @@ -153,7 +153,8 @@ nsHttpConnection::Init(nsHttpConnectionInfo *info, mSocketOut = outstream; // See explanation for non-strictness of this operation in SetSecurityCallbacks. - mCallbacks = new nsMainThreadPtrHolder(callbacks, false); + mCallbacks = new nsMainThreadPtrHolder( + "nsHttpConnection::mCallbacks", callbacks, false); mSocketTransport->SetEventSink(this, nullptr); mSocketTransport->SetSecurityCallbacks(this); @@ -1368,7 +1369,8 @@ nsHttpConnection::SetSecurityCallbacks(nsIInterfaceRequestor* aCallbacks) // callbacks, we requires that the call happen on the main thread, but // for C++-implemented callbacks we don't care. Use a pointer holder with // strict checking disabled. - mCallbacks = new nsMainThreadPtrHolder(aCallbacks, false); + mCallbacks = new nsMainThreadPtrHolder( + "nsHttpConnection::mCallbacks", aCallbacks, false); } nsresult diff --git a/netwerk/protocol/http/nsHttpHandler.cpp b/netwerk/protocol/http/nsHttpHandler.cpp index 588c29677aec..107a47706cc4 100644 --- a/netwerk/protocol/http/nsHttpHandler.cpp +++ b/netwerk/protocol/http/nsHttpHandler.cpp @@ -388,7 +388,8 @@ nsHttpHandler::Init() NS_WARNING("unable to continue without io service"); return rv; } - mIOService = new nsMainThreadPtrHolder(service); + mIOService = new nsMainThreadPtrHolder( + "nsHttpHandler::mIOService", service); if (IsNeckoChild()) NeckoChild::InitNeckoChild(); @@ -686,7 +687,8 @@ nsHttpHandler::GetStreamConverterService(nsIStreamConverterService **result) do_GetService(NS_STREAMCONVERTERSERVICE_CONTRACTID, &rv); if (NS_FAILED(rv)) return rv; - mStreamConvSvc = new nsMainThreadPtrHolder(service); + mStreamConvSvc = new nsMainThreadPtrHolder( + "nsHttpHandler::mStreamConvSvc", service); } *result = mStreamConvSvc; NS_ADDREF(*result); @@ -698,7 +700,8 @@ nsHttpHandler::GetSSService() { if (!mSSService) { nsCOMPtr service = do_GetService(NS_SSSERVICE_CONTRACTID); - mSSService = new nsMainThreadPtrHolder(service); + mSSService = new nsMainThreadPtrHolder( + "nsHttpHandler::mSSService", service); } return mSSService; } @@ -708,7 +711,8 @@ nsHttpHandler::GetCookieService() { if (!mCookieService) { nsCOMPtr service = do_GetService(NS_COOKIESERVICE_CONTRACTID); - mCookieService = new nsMainThreadPtrHolder(service); + mCookieService = new nsMainThreadPtrHolder( + "nsHttpHandler::mCookieService", service); } return mCookieService; } diff --git a/netwerk/protocol/websocket/BaseWebSocketChannel.cpp b/netwerk/protocol/websocket/BaseWebSocketChannel.cpp index bf3dbf9f7dca..5933def0e026 100644 --- a/netwerk/protocol/websocket/BaseWebSocketChannel.cpp +++ b/netwerk/protocol/websocket/BaseWebSocketChannel.cpp @@ -373,8 +373,12 @@ BaseWebSocketChannel::ListenerAndContextContainer::~ListenerAndContextContainer( { MOZ_ASSERT(mListener); - NS_ReleaseOnMainThread(mListener.forget()); - NS_ReleaseOnMainThread(mContext.forget()); + NS_ReleaseOnMainThread( + "BaseWebSocketChannel::ListenerAndContextContainer::mListener", + mListener.forget()); + NS_ReleaseOnMainThread( + "BaseWebSocketChannel::ListenerAndContextContainer::mContext", + mContext.forget()); } } // namespace net diff --git a/netwerk/protocol/websocket/WebSocketChannel.cpp b/netwerk/protocol/websocket/WebSocketChannel.cpp index 2890a8064e9e..5f6043225a53 100644 --- a/netwerk/protocol/websocket/WebSocketChannel.cpp +++ b/netwerk/protocol/websocket/WebSocketChannel.cpp @@ -1231,14 +1231,14 @@ WebSocketChannel::~WebSocketChannel() while ((mCurrentOut = (OutboundMessage *) mOutgoingMessages.PopFront())) delete mCurrentOut; - NS_ReleaseOnMainThread(mURI.forget()); - NS_ReleaseOnMainThread(mOriginalURI.forget()); + NS_ReleaseOnMainThread("WebSocketChannel::mURI", mURI.forget()); + NS_ReleaseOnMainThread("WebSocketChannel::mOriginalURI", mOriginalURI.forget()); mListenerMT = nullptr; - NS_ReleaseOnMainThread(mLoadGroup.forget()); - NS_ReleaseOnMainThread(mLoadInfo.forget()); - NS_ReleaseOnMainThread(mService.forget()); + NS_ReleaseOnMainThread("WebSocketChannel::mLoadGroup", mLoadGroup.forget()); + NS_ReleaseOnMainThread("WebSocketChannel::mLoadInfo", mLoadInfo.forget()); + NS_ReleaseOnMainThread("WebSocketChannel::mService", mService.forget()); } NS_IMETHODIMP @@ -2366,10 +2366,10 @@ WebSocketChannel::StopSession(nsresult reason) if (!mOpenedHttpChannel) { // The HTTP channel information will never be used in this case - NS_ReleaseOnMainThread(mChannel.forget()); - NS_ReleaseOnMainThread(mHttpChannel.forget()); - NS_ReleaseOnMainThread(mLoadGroup.forget()); - NS_ReleaseOnMainThread(mCallbacks.forget()); + NS_ReleaseOnMainThread("WebSocketChannel::mChannel", mChannel.forget()); + NS_ReleaseOnMainThread("WebSocketChannel::mHttpChannel", mHttpChannel.forget()); + NS_ReleaseOnMainThread("WebSocketChannel::mLoadGroup", mLoadGroup.forget()); + NS_ReleaseOnMainThread("WebSocketChannel::mCallbacks", mCallbacks.forget()); } if (mCloseTimer) { diff --git a/netwerk/protocol/wyciwyg/WyciwygChannelChild.cpp b/netwerk/protocol/wyciwyg/WyciwygChannelChild.cpp index 63d89c5a5d79..e67148592769 100644 --- a/netwerk/protocol/wyciwyg/WyciwygChannelChild.cpp +++ b/netwerk/protocol/wyciwyg/WyciwygChannelChild.cpp @@ -66,7 +66,8 @@ WyciwygChannelChild::~WyciwygChannelChild() { LOG(("Destroying WyciwygChannelChild @%p\n", this)); if (mLoadInfo) { - NS_ReleaseOnMainThread(mLoadInfo.forget()); + NS_ReleaseOnMainThread( + "WyciwygChannelChild::mLoadInfo", mLoadInfo.forget()); } } diff --git a/netwerk/protocol/wyciwyg/nsWyciwygChannel.cpp b/netwerk/protocol/wyciwyg/nsWyciwygChannel.cpp index 2a671e339c11..7ec3d376f77a 100644 --- a/netwerk/protocol/wyciwyg/nsWyciwygChannel.cpp +++ b/netwerk/protocol/wyciwyg/nsWyciwygChannel.cpp @@ -47,7 +47,8 @@ nsWyciwygChannel::nsWyciwygChannel() nsWyciwygChannel::~nsWyciwygChannel() { if (mLoadInfo) { - NS_ReleaseOnMainThread(mLoadInfo.forget(), false); + NS_ReleaseOnMainThread( + "nsWyciwygChannel::mLoadInfo", mLoadInfo.forget(), false); } } diff --git a/netwerk/sctp/datachannel/DataChannel.cpp b/netwerk/sctp/datachannel/DataChannel.cpp index cbff4745a3c3..efd20a14bcc8 100644 --- a/netwerk/sctp/datachannel/DataChannel.cpp +++ b/netwerk/sctp/datachannel/DataChannel.cpp @@ -235,7 +235,8 @@ DataChannelConnection::~DataChannelConnection() ASSERT_WEBRTC(NS_IsMainThread()); if (mTransportFlow) { ASSERT_WEBRTC(mSTS); - NS_ProxyRelease(mSTS, mTransportFlow.forget()); + NS_ProxyRelease( + "DataChannelConnection::mTransportFlow", mSTS, mTransportFlow.forget()); } if (mInternalIOThread) { @@ -2410,7 +2411,8 @@ DataChannelConnection::ReadBlob(already_AddRefed aThis, // Bug 966602: Doesn't return an error to the caller via onerror. // We must release DataChannelConnection on MainThread to avoid issues (bug 876167) // aThis is now owned by the runnable; release it there - NS_ReleaseOnMainThread(runnable.forget()); + NS_ReleaseOnMainThread( + "DataChannelBlobSendRunnable", runnable.forget()); return; } aBlob->Close(); diff --git a/netwerk/wifi/nsWifiMonitor.cpp b/netwerk/wifi/nsWifiMonitor.cpp index 3581c3360530..1d838e93fcca 100644 --- a/netwerk/wifi/nsWifiMonitor.cpp +++ b/netwerk/wifi/nsWifiMonitor.cpp @@ -91,7 +91,9 @@ NS_IMETHODIMP nsWifiMonitor::StartWatching(nsIWifiListener *aListener) } - mListeners.AppendElement(nsWifiListener(new nsMainThreadPtrHolder(aListener))); + mListeners.AppendElement( + nsWifiListener(new nsMainThreadPtrHolder( + "nsIWifiListener", aListener))); // tell ourselves that we have a new watcher. mon.Notify(); diff --git a/security/apps/AppSignatureVerification.cpp b/security/apps/AppSignatureVerification.cpp index bf0ad98b9c63..6121b1576d38 100644 --- a/security/apps/AppSignatureVerification.cpp +++ b/security/apps/AppSignatureVerification.cpp @@ -900,7 +900,8 @@ public: nsIOpenSignedAppFileCallback* aCallback) : mTrustedRoot(aTrustedRoot) , mJarFile(aJarFile) - , mCallback(new nsMainThreadPtrHolder(aCallback)) + , mCallback(new nsMainThreadPtrHolder( + "OpenSignedAppFileTask::mCallback", aCallback)) { } @@ -1402,7 +1403,8 @@ public: nsIVerifySignedDirectoryCallback* aCallback) : mTrustedRoot(aTrustedRoot) , mDirectory(aUnpackedJar) - , mCallback(new nsMainThreadPtrHolder(aCallback)) + , mCallback(new nsMainThreadPtrHolder( + "VerifySignedDirectoryTask::mCallback", aCallback)) { } diff --git a/security/manager/ssl/LocalCertService.cpp b/security/manager/ssl/LocalCertService.cpp index f643f798ef9f..5831ee93daca 100644 --- a/security/manager/ssl/LocalCertService.cpp +++ b/security/manager/ssl/LocalCertService.cpp @@ -97,7 +97,8 @@ public: LocalCertGetTask(const nsACString& aNickname, nsILocalCertGetCallback* aCallback) : LocalCertTask(aNickname) - , mCallback(new nsMainThreadPtrHolder(aCallback)) + , mCallback(new nsMainThreadPtrHolder( + "LocalCertGetTask::mCallback", aCallback)) , mCert(nullptr) { } @@ -354,7 +355,8 @@ public: LocalCertRemoveTask(const nsACString& aNickname, nsILocalCertCallback* aCallback) : LocalCertTask(aNickname) - , mCallback(new nsMainThreadPtrHolder(aCallback)) + , mCallback(new nsMainThreadPtrHolder( + "LocalCertRemoveTask::mCallback", aCallback)) { } diff --git a/security/manager/ssl/PSMRunnable.h b/security/manager/ssl/PSMRunnable.h index b43bc62c6b4e..87dada184f18 100644 --- a/security/manager/ssl/PSMRunnable.h +++ b/security/manager/ssl/PSMRunnable.h @@ -32,7 +32,8 @@ class NotifyObserverRunnable : public Runnable public: NotifyObserverRunnable(nsIObserver * observer, const char * topicStringLiteral) - : mObserver(new nsMainThreadPtrHolder(observer)), + : mObserver(new nsMainThreadPtrHolder( + "psm::NotifyObserverRunnable::mObserver", observer)), mTopic(topicStringLiteral) { } NS_DECL_NSIRUNNABLE diff --git a/security/manager/ssl/nsNSSCallbacks.cpp b/security/manager/ssl/nsNSSCallbacks.cpp index c8aa70763467..18f1b2ef0a78 100644 --- a/security/manager/ssl/nsNSSCallbacks.cpp +++ b/security/manager/ssl/nsNSSCallbacks.cpp @@ -565,7 +565,7 @@ nsHTTPListener::~nsHTTPListener() } if (mLoader) { - NS_ReleaseOnMainThread(mLoader.forget()); + NS_ReleaseOnMainThread("nsHTTPListener::mLoader", mLoader.forget()); } } diff --git a/security/manager/ssl/nsNSSCertificateDB.cpp b/security/manager/ssl/nsNSSCertificateDB.cpp index 7cad3589ab0a..5e563ee18f8b 100644 --- a/security/manager/ssl/nsNSSCertificateDB.cpp +++ b/security/manager/ssl/nsNSSCertificateDB.cpp @@ -1492,7 +1492,8 @@ public: , mFlags(aFlags) , mHostname(aHostname) , mTime(aTime) - , mCallback(new nsMainThreadPtrHolder(aCallback)) + , mCallback(new nsMainThreadPtrHolder( + "nsICertVerificationCallback", aCallback)) , mPRErrorCode(SEC_ERROR_LIBRARY_FAILURE) , mVerifiedCertList(nullptr) , mHasEVPolicy(false) diff --git a/services/crypto/component/IdentityCryptoService.cpp b/services/crypto/component/IdentityCryptoService.cpp index 113f6bc09648..a4871dfe5079 100644 --- a/services/crypto/component/IdentityCryptoService.cpp +++ b/services/crypto/component/IdentityCryptoService.cpp @@ -328,7 +328,8 @@ KeyGenRunnable::KeyGenRunnable(KeyType keyType, nsIIdentityKeyGenCallback * callback, nsIEventTarget* operationThread) : mKeyType(keyType) - , mCallback(new nsMainThreadPtrHolder(callback)) + , mCallback(new nsMainThreadPtrHolder( + "KeyGenRunnable::mCallback", callback)) , mRv(NS_ERROR_NOT_INITIALIZED) , mThread(operationThread) { @@ -351,8 +352,8 @@ GenerateKeyPair(PK11SlotInfo * slot, return mozilla::psm::GetXPCOMFromNSSError(PR_GetError()); } if (!*publicKey) { - SECKEY_DestroyPrivateKey(*privateKey); - *privateKey = nullptr; + SECKEY_DestroyPrivateKey(*privateKey); + *privateKey = nullptr; MOZ_CRASH("PK11_GnerateKeyPair returned private key without public key"); } @@ -468,7 +469,7 @@ KeyGenRunnable::Run() if (NS_SUCCEEDED(mRv)) { MOZ_ASSERT(privk); MOZ_ASSERT(pubk); - // mKeyPair will take over ownership of privk and pubk + // mKeyPair will take over ownership of privk and pubk mKeyPair = new KeyPair(privk, pubk, mThread); } } @@ -487,7 +488,8 @@ SignRunnable::SignRunnable(const nsACString & aText, nsIIdentitySignCallback * aCallback) : mTextToSign(aText) , mPrivateKey(SECKEY_CopyPrivateKey(privateKey)) - , mCallback(new nsMainThreadPtrHolder(aCallback)) + , mCallback(new nsMainThreadPtrHolder( + "SignRunnable::mCallback", aCallback)) , mRv(NS_ERROR_NOT_INITIALIZED) { } diff --git a/storage/StorageBaseStatementInternal.cpp b/storage/StorageBaseStatementInternal.cpp index d6545fcb4d26..2b49932335b6 100644 --- a/storage/StorageBaseStatementInternal.cpp +++ b/storage/StorageBaseStatementInternal.cpp @@ -50,7 +50,8 @@ public: } nsCOMPtr targetThread(mConnection->threadOpenedOn); - NS_ProxyRelease(targetThread, mStatement.forget()); + NS_ProxyRelease( + "AsyncStatementFinalizer::mStatement", targetThread, mStatement.forget()); return NS_OK; } private: @@ -94,7 +95,9 @@ public: mAsyncStatement = nullptr; nsCOMPtr target(mConnection->threadOpenedOn); - (void)::NS_ProxyRelease(target, mConnection.forget()); + (void)::NS_ProxyRelease( + "LastDitchSqliteStatementFinalizer::mConnection", + target, mConnection.forget()); return NS_OK; } private: diff --git a/storage/mozStorageAsyncStatement.cpp b/storage/mozStorageAsyncStatement.cpp index 04402929e285..9524e42ae0fc 100644 --- a/storage/mozStorageAsyncStatement.cpp +++ b/storage/mozStorageAsyncStatement.cpp @@ -221,7 +221,9 @@ AsyncStatement::~AsyncStatement() // NS_ProxyRelase only magic forgets for us if mDBConnection is an // nsCOMPtr. Which it is not; it's an nsRefPtr. nsCOMPtr targetThread(mDBConnection->threadOpenedOn); - NS_ProxyRelease(targetThread, mDBConnection.forget()); + NS_ProxyRelease( + "AsyncStatement::mDBConnection", + targetThread, mDBConnection.forget()); } } @@ -375,7 +377,7 @@ AsyncStatement::GetState(int32_t *_state) //// mozIStorageBindingParams BOILERPLATE_BIND_PROXIES( - AsyncStatement, + AsyncStatement, if (mFinalized) return NS_ERROR_UNEXPECTED; ) diff --git a/storage/mozStorageAsyncStatementJSHelper.cpp b/storage/mozStorageAsyncStatementJSHelper.cpp index 4c51070f2e82..cc99fcc2a1c4 100644 --- a/storage/mozStorageAsyncStatementJSHelper.cpp +++ b/storage/mozStorageAsyncStatementJSHelper.cpp @@ -61,7 +61,8 @@ AsyncStatementJSHelper::getParams(AsyncStatement *aStatement, RefPtr paramsHolder = new AsyncStatementParamsHolder(holder); aStatement->mStatementParamsHolder = - new nsMainThreadPtrHolder(paramsHolder); + new nsMainThreadPtrHolder( + "AsyncStatement::mStatementParamsHolder", paramsHolder); } JS::Rooted obj(aCtx); diff --git a/storage/mozStorageConnection.cpp b/storage/mozStorageConnection.cpp index d89963376b68..26480d445f39 100644 --- a/storage/mozStorageConnection.cpp +++ b/storage/mozStorageConnection.cpp @@ -416,8 +416,10 @@ public: } ~AsyncCloseConnection() override { - NS_ReleaseOnMainThread(mConnection.forget()); - NS_ReleaseOnMainThread(mCallbackEvent.forget()); + NS_ReleaseOnMainThread( + "AsyncCloseConnection::mConnection", mConnection.forget()); + NS_ReleaseOnMainThread( + "AsyncCloseConnection::mCallbackEvent", mCallbackEvent.forget()); } private: RefPtr mConnection; @@ -480,13 +482,16 @@ private: MOZ_ASSERT(NS_SUCCEEDED(rv)); // Handle ambiguous nsISupports inheritance. - NS_ProxyRelease(thread, mConnection.forget()); - NS_ProxyRelease(thread, mClone.forget()); + NS_ProxyRelease( + "AsyncInitializeClone::mConnection", thread, mConnection.forget()); + NS_ProxyRelease( + "AsyncInitializeClone::mClone", thread, mClone.forget()); // Generally, the callback will be released by CallbackComplete. // However, if for some reason Run() is not executed, we still // need to ensure that it is released here. - NS_ProxyRelease(thread, mCallback.forget()); + NS_ProxyRelease( + "AsyncInitializeClone::mCallback", thread, mCallback.forget()); } RefPtr mConnection; diff --git a/storage/mozStorageService.cpp b/storage/mozStorageService.cpp index 69478a2a227f..4fd9dac4424b 100644 --- a/storage/mozStorageService.cpp +++ b/storage/mozStorageService.cpp @@ -320,7 +320,8 @@ Service::unregisterConnection(Connection *aConnection) // Ensure the connection is released on its opening thread. Note, we // must use .forget().take() so that we can manually cast to an // unambiguous nsISupports type. - NS_ProxyRelease(thread, mConnections[i].forget()); + NS_ProxyRelease( + "storage::Service::mConnections", thread, mConnections[i].forget()); mConnections.RemoveElementAt(i); return; @@ -707,13 +708,16 @@ private: ~AsyncInitDatabase() { - NS_ReleaseOnMainThread(mStorageFile.forget()); - NS_ReleaseOnMainThread(mConnection.forget()); + NS_ReleaseOnMainThread( + "AsyncInitDatabase::mStorageFile", mStorageFile.forget()); + NS_ReleaseOnMainThread( + "AsyncInitDatabase::mConnection", mConnection.forget()); // Generally, the callback will be released by CallbackComplete. // However, if for some reason Run() is not executed, we still // need to ensure that it is released here. - NS_ReleaseOnMainThread(mCallback.forget()); + NS_ReleaseOnMainThread( + "AsyncInitDatabase::mCallback", mCallback.forget()); } RefPtr mConnection; diff --git a/storage/mozStorageStatementData.h b/storage/mozStorageStatementData.h index 8baaf2fa73ac..e6d7a7068289 100644 --- a/storage/mozStorageStatementData.h +++ b/storage/mozStorageStatementData.h @@ -52,12 +52,12 @@ public: // We need to ensure that mParamsArray is released on the main thread, // as the binding arguments may be XPConnect values, which are safe // to release only on the main thread. - NS_ReleaseOnMainThread(mParamsArray.forget()); + NS_ReleaseOnMainThread("StatementData::mParamsArray", mParamsArray.forget()); } /** * Return the sqlite statement, fetching it from the storage statement. In - * the case of AsyncStatements this may actually create the statement + * the case of AsyncStatements this may actually create the statement */ inline int getSqliteStatement(sqlite3_stmt **_stmt) { diff --git a/storage/mozStorageStatementJSHelper.cpp b/storage/mozStorageStatementJSHelper.cpp index d6199c6cfaec..b05a324dce71 100644 --- a/storage/mozStorageStatementJSHelper.cpp +++ b/storage/mozStorageStatementJSHelper.cpp @@ -113,7 +113,8 @@ StatementJSHelper::getRow(Statement *aStatement, NS_ENSURE_SUCCESS(rv, rv); RefPtr rowHolder = new StatementRowHolder(holder); aStatement->mStatementRowHolder = - new nsMainThreadPtrHolder(rowHolder); + new nsMainThreadPtrHolder( + "Statement::mStatementRowHolder", rowHolder); } JS::Rooted obj(aCtx); @@ -159,7 +160,8 @@ StatementJSHelper::getParams(Statement *aStatement, RefPtr paramsHolder = new StatementParamsHolder(holder); aStatement->mStatementParamsHolder = - new nsMainThreadPtrHolder(paramsHolder); + new nsMainThreadPtrHolder( + "Statement::mStatementParamsHolder", paramsHolder); } JS::Rooted obj(aCtx); diff --git a/toolkit/components/filewatcher/NativeFileWatcherWin.cpp b/toolkit/components/filewatcher/NativeFileWatcherWin.cpp index 8e2ed8a7278e..96be46eaef5c 100644 --- a/toolkit/components/filewatcher/NativeFileWatcherWin.cpp +++ b/toolkit/components/filewatcher/NativeFileWatcherWin.cpp @@ -1301,13 +1301,16 @@ NativeFileWatcherService::AddPath(const nsAString& aPathToWatch, } nsMainThreadPtrHandle changeCallbackHandle( - new nsMainThreadPtrHolder(aOnChange)); + new nsMainThreadPtrHolder( + "nsINativeFileWatcherCallback", aOnChange)); nsMainThreadPtrHandle errorCallbackHandle( - new nsMainThreadPtrHolder(aOnError)); + new nsMainThreadPtrHolder( + "nsINativeFileWatcherErrorCallback", aOnError)); nsMainThreadPtrHandle successCallbackHandle( - new nsMainThreadPtrHolder(aOnSuccess)); + new nsMainThreadPtrHolder( + "nsINativeFileWatcherSuccessCallback", aOnSuccess)); // Wrap the path and the callbacks in order to pass them using NewRunnableMethod. UniquePtr wrappedCallbacks( @@ -1371,13 +1374,16 @@ NativeFileWatcherService::RemovePath(const nsAString& aPathToRemove, } nsMainThreadPtrHandle changeCallbackHandle( - new nsMainThreadPtrHolder(aOnChange)); + new nsMainThreadPtrHolder( + "nsINativeFileWatcherCallback", aOnChange)); nsMainThreadPtrHandle errorCallbackHandle( - new nsMainThreadPtrHolder(aOnError)); + new nsMainThreadPtrHolder( + "nsINativeFileWatcherErrorCallback", aOnError)); nsMainThreadPtrHandle successCallbackHandle( - new nsMainThreadPtrHolder(aOnSuccess)); + new nsMainThreadPtrHolder( + "nsINativeFileWatcherSuccessCallback", aOnSuccess)); // Wrap the path and the callbacks in order to pass them using NewRunnableMethod. UniquePtr wrappedCallbacks( diff --git a/toolkit/components/osfile/NativeOSFileInternals.cpp b/toolkit/components/osfile/NativeOSFileInternals.cpp index 442166c0357a..c671cfeae309 100644 --- a/toolkit/components/osfile/NativeOSFileInternals.cpp +++ b/toolkit/components/osfile/NativeOSFileInternals.cpp @@ -528,7 +528,7 @@ public: // Last ditch attempt to release on the main thread - some of // the members of event are not thread-safe, so letting the // pointer go out of scope would cause a crash. - NS_ReleaseOnMainThread(event.forget()); + NS_ReleaseOnMainThread("AbstractDoEvent::ErrorEvent", event.forget()); } } @@ -545,7 +545,7 @@ public: // Last ditch attempt to release on the main thread - some of // the members of event are not thread-safe, so letting the // pointer go out of scope would cause a crash. - NS_ReleaseOnMainThread(event.forget()); + NS_ReleaseOnMainThread("AbstractDoEvent::SuccessEvent", event.forget()); } } @@ -746,7 +746,7 @@ public: if (!mResult) { return; } - NS_ReleaseOnMainThread(mResult.forget()); + NS_ReleaseOnMainThread("DoReadToTypedArrayEvent::mResult", mResult.forget()); } protected: @@ -783,7 +783,7 @@ public: if (!mResult) { return; } - NS_ReleaseOnMainThread(mResult.forget()); + NS_ReleaseOnMainThread("DoReadToStringEvent::mResult", mResult.forget()); } protected: @@ -890,10 +890,12 @@ NativeOSFileInternalsService::Read(const nsAString& aPath, // Prepare the off main thread event and dispatch it nsCOMPtr onSuccess(aOnSuccess); nsMainThreadPtrHandle onSuccessHandle( - new nsMainThreadPtrHolder(onSuccess)); + new nsMainThreadPtrHolder( + "nsINativeOSFileSuccessCallback", onSuccess)); nsCOMPtr onError(aOnError); nsMainThreadPtrHandle onErrorHandle( - new nsMainThreadPtrHolder(onError)); + new nsMainThreadPtrHolder( + "nsINativeOSFileErrorCallback", onError)); RefPtr event; if (encoding.IsEmpty()) { diff --git a/toolkit/components/places/FaviconHelpers.cpp b/toolkit/components/places/FaviconHelpers.cpp index 106e91fc9b99..b34267fd88eb 100644 --- a/toolkit/components/places/FaviconHelpers.cpp +++ b/toolkit/components/places/FaviconHelpers.cpp @@ -504,11 +504,13 @@ AsyncFetchAndSetIconForPage::AsyncFetchAndSetIconForPage( , bool aFaviconLoadPrivate , nsIFaviconDataCallback* aCallback , nsIPrincipal* aLoadingPrincipal -) : mCallback(new nsMainThreadPtrHolder(aCallback)) +) : mCallback(new nsMainThreadPtrHolder( + "AsyncFetchAndSetIconForPage::mCallback", aCallback)) , mIcon(aIcon) , mPage(aPage) , mFaviconLoadPrivate(aFaviconLoadPrivate) - , mLoadingPrincipal(new nsMainThreadPtrHolder(aLoadingPrincipal)) + , mLoadingPrincipal(new nsMainThreadPtrHolder( + "AsyncFetchAndSetIconForPage::mLoadingPrincipal", aLoadingPrincipal)) , mCanceled(false) { MOZ_ASSERT(NS_IsMainThread()); @@ -937,7 +939,8 @@ AsyncGetFaviconURLForPage::AsyncGetFaviconURLForPage( , uint16_t aPreferredWidth , nsIFaviconDataCallback* aCallback ) : mPreferredWidth(aPreferredWidth == 0 ? UINT16_MAX : aPreferredWidth) - , mCallback(new nsMainThreadPtrHolder(aCallback)) + , mCallback(new nsMainThreadPtrHolder( + "AsyncGetFaviconURLForPage::mCallback", aCallback)) { MOZ_ASSERT(NS_IsMainThread()); mPageSpec.Assign(aPageSpec); @@ -976,7 +979,8 @@ AsyncGetFaviconDataForPage::AsyncGetFaviconDataForPage( , uint16_t aPreferredWidth , nsIFaviconDataCallback* aCallback ) : mPreferredWidth(aPreferredWidth == 0 ? UINT16_MAX : aPreferredWidth) - , mCallback(new nsMainThreadPtrHolder(aCallback)) + , mCallback(new nsMainThreadPtrHolder( + "AsyncGetFaviconDataForPage::mCallback", aCallback)) { MOZ_ASSERT(NS_IsMainThread()); mPageSpec.Assign(aPageSpec); @@ -1383,7 +1387,8 @@ AsyncCopyFavicons::AsyncCopyFavicons( , nsIFaviconDataCallback* aCallback ) : mFromPage(aFromPage) , mToPage(aToPage) - , mCallback(new nsMainThreadPtrHolder(aCallback)) + , mCallback(new nsMainThreadPtrHolder( + "AsyncCopyFavicons::mCallback", aCallback)) { MOZ_ASSERT(NS_IsMainThread()); } diff --git a/toolkit/components/places/Helpers.h b/toolkit/components/places/Helpers.h index a8a1f35537ac..854105f94004 100644 --- a/toolkit/components/places/Helpers.h +++ b/toolkit/components/places/Helpers.h @@ -97,11 +97,11 @@ public: * This extracts the hostname from the URI and reverses it in the * form that we use (always ending with a "."). So * "http://microsoft.com/" becomes "moc.tfosorcim." - * + * * The idea behind this is that we can create an index over the items in * the reversed host name column, and then query for as much or as little * of the host name as we feel like. - * + * * For example, the query "host >= 'gro.allizom.' AND host < 'gro.allizom/' * Matches all host names ending in '.mozilla.org', including * 'developer.mozilla.org' and just 'mozilla.org' (since we define all @@ -205,7 +205,8 @@ public: { mStatementCache.FinalizeStatements(); // Release the owner back on the calling thread. - NS_ProxyRelease(mCallingThread, mOwner.forget()); + NS_ProxyRelease("FinalizeStatementCacheProxy::mOwner", + mCallingThread, mOwner.forget()); return NS_OK; } diff --git a/toolkit/components/places/History.cpp b/toolkit/components/places/History.cpp index 48ff289f9f82..3410e75e89e0 100644 --- a/toolkit/components/places/History.cpp +++ b/toolkit/components/places/History.cpp @@ -494,7 +494,8 @@ public: } nsMainThreadPtrHandle - callback(new nsMainThreadPtrHolder(aCallback)); + callback(new nsMainThreadPtrHolder( + "mozIVisitedStatusCallback", aCallback)); nsNavHistory* navHistory = nsNavHistory::GetHistoryService(); NS_ENSURE_STATE(navHistory); @@ -860,7 +861,8 @@ CanAddURI(nsIURI* aURI, VisitData place(aURI); place.guid = aGUID; nsMainThreadPtrHandle - callback(new nsMainThreadPtrHolder(aCallback)); + callback(new nsMainThreadPtrHolder( + "mozIVisitInfoCallback", aCallback)); nsCOMPtr event = new NotifyPlaceInfoCallback(callback, place, true, NS_ERROR_INVALID_ARG); (void)NS_DispatchToMainThread(event); @@ -921,7 +923,8 @@ public: } nsMainThreadPtrHandle - callback(new nsMainThreadPtrHolder(aCallback)); + callback(new nsMainThreadPtrHolder( + "mozIVisitInfoCallback", aCallback)); bool ignoreErrors = false, ignoreResults = false; if (aCallback) { // We ignore errors from either of these methods in case old JS consumers @@ -1881,7 +1884,8 @@ StoreAndNotifyEmbedVisit(VisitData& aPlace, if (!!aCallback) { nsMainThreadPtrHandle - callback(new nsMainThreadPtrHolder(aCallback)); + callback(new nsMainThreadPtrHolder( + "mozIVisitInfoCallback", aCallback)); bool ignoreResults = false; Unused << aCallback->GetIgnoreResults(&ignoreResults); if (!ignoreResults) { @@ -2705,7 +2709,8 @@ History::AddDownload(nsIURI* aSource, nsIURI* aReferrer, nsMainThreadPtrHandle callback; if (aDestination) { - callback = new nsMainThreadPtrHolder(new SetDownloadAnnotations(aDestination)); + callback = new nsMainThreadPtrHolder( + "mozIVisitInfoCallback", new SetDownloadAnnotations(aDestination)); } rv = InsertVisitedURIs::Start(dbConn, placeArray, callback); @@ -2886,7 +2891,8 @@ History::UpdatePlaces(JS::Handle aPlaceInfos, NS_ENSURE_STATE(dbConn); nsMainThreadPtrHandle - callback(new nsMainThreadPtrHolder(aCallback)); + callback(new nsMainThreadPtrHolder( + "mozIVisitInfoCallback", aCallback)); // It is possible that all of the visits we were passed were dissallowed by // CanAddURI, which isn't an error. If we have no visits to add, however, diff --git a/toolkit/components/places/Shutdown.cpp b/toolkit/components/places/Shutdown.cpp index 3fc97ef75ce8..7719452ad2a3 100644 --- a/toolkit/components/places/Shutdown.cpp +++ b/toolkit/components/places/Shutdown.cpp @@ -97,7 +97,8 @@ ClientsShutdownBlocker::ClientsShutdownBlocker() if (asyncShutdown) { nsCOMPtr barrier; MOZ_ALWAYS_SUCCEEDS(asyncShutdown->MakeBarrier(mName, getter_AddRefs(barrier))); - mBarrier = new nsMainThreadPtrHolder(barrier); + mBarrier = new nsMainThreadPtrHolder( + "ClientsShutdownBlocker::mBarrier", barrier); } } @@ -116,7 +117,8 @@ NS_IMETHODIMP ClientsShutdownBlocker::BlockShutdown(nsIAsyncShutdownClient* aParentClient) { MOZ_ASSERT(NS_IsMainThread()); - mParentClient = new nsMainThreadPtrHolder(aParentClient); + mParentClient = new nsMainThreadPtrHolder( + "ClientsShutdownBlocker::mParentClient", aParentClient); mState = RECEIVED_BLOCK_SHUTDOWN; if (NS_WARN_IF(!mBarrier)) { @@ -168,7 +170,8 @@ NS_IMETHODIMP ConnectionShutdownBlocker::BlockShutdown(nsIAsyncShutdownClient* aParentClient) { MOZ_ASSERT(NS_IsMainThread()); - mParentClient = new nsMainThreadPtrHolder(aParentClient); + mParentClient = new nsMainThreadPtrHolder( + "ConnectionShutdownBlocker::mParentClient", aParentClient); mState = RECEIVED_BLOCK_SHUTDOWN; // Annotate that Database shutdown started. sIsStarted = true; @@ -209,8 +212,8 @@ ConnectionShutdownBlocker::Complete(nsresult, nsISupports*) MOZ_ASSERT(os); if (os) { MOZ_ALWAYS_SUCCEEDS(os->NotifyObservers(nullptr, - TOPIC_PLACES_CONNECTION_CLOSED, - nullptr)); + TOPIC_PLACES_CONNECTION_CLOSED, + nullptr)); } mState = NOTIFIED_OBSERVERS_PLACES_CONNECTION_CLOSED; diff --git a/toolkit/components/telemetry/Telemetry.cpp b/toolkit/components/telemetry/Telemetry.cpp index 17dee027c900..0694633f0263 100644 --- a/toolkit/components/telemetry/Telemetry.cpp +++ b/toolkit/components/telemetry/Telemetry.cpp @@ -1211,7 +1211,8 @@ TelemetryImpl::GetLoadedModules(JSContext *cx, nsISupports** aPromise) return NS_OK; } - nsMainThreadPtrHandle mainThreadPromise(new nsMainThreadPtrHolder(promise)); + nsMainThreadPtrHandle mainThreadPromise( + new nsMainThreadPtrHolder("Promise", promise)); nsCOMPtr runnable = new GetLoadedModulesRunnable(mainThreadPromise); promise.forget(aPromise); diff --git a/toolkit/components/url-classifier/nsUrlClassifierDBService.cpp b/toolkit/components/url-classifier/nsUrlClassifierDBService.cpp index 1a8c4d34aacb..aad5fcbcb469 100644 --- a/toolkit/components/url-classifier/nsUrlClassifierDBService.cpp +++ b/toolkit/components/url-classifier/nsUrlClassifierDBService.cpp @@ -1052,7 +1052,8 @@ NS_IMPL_ISUPPORTS(nsUrlClassifierLookupCallback, nsUrlClassifierLookupCallback::~nsUrlClassifierLookupCallback() { if (mCallback) { - NS_ReleaseOnMainThread(mCallback.forget()); + NS_ReleaseOnMainThread( + "nsUrlClassifierLookupCallback::mCallback", mCallback.forget()); } } @@ -1826,7 +1827,8 @@ nsUrlClassifierDBService::AsyncClassifyLocalWithTables(nsIURI *aURI, // Since aCallback will be passed around threads... nsMainThreadPtrHandle callback( - new nsMainThreadPtrHolder(aCallback)); + new nsMainThreadPtrHolder( + "nsIURIClassifierCallback", aCallback)); nsCOMPtr r = NS_NewRunnableFunction([worker, key, tables, callback, startTime] () -> void { diff --git a/toolkit/components/url-classifier/nsUrlClassifierProxies.h b/toolkit/components/url-classifier/nsUrlClassifierProxies.h index 0558180dd472..cad88316657c 100644 --- a/toolkit/components/url-classifier/nsUrlClassifierProxies.h +++ b/toolkit/components/url-classifier/nsUrlClassifierProxies.h @@ -210,7 +210,8 @@ class UrlClassifierLookupCallbackProxy final : { public: explicit UrlClassifierLookupCallbackProxy(nsIUrlClassifierLookupCallback* aTarget) - : mTarget(new nsMainThreadPtrHolder(aTarget)) + : mTarget(new nsMainThreadPtrHolder( + "UrlClassifierLookupCallbackProxy::mTarget", aTarget)) { } NS_DECL_THREADSAFE_ISUPPORTS @@ -242,7 +243,8 @@ class UrlClassifierCallbackProxy final : public nsIUrlClassifierCallback { public: explicit UrlClassifierCallbackProxy(nsIUrlClassifierCallback* aTarget) - : mTarget(new nsMainThreadPtrHolder(aTarget)) + : mTarget(new nsMainThreadPtrHolder( + "UrlClassifierCallbackProxy::mTarget", aTarget)) { } NS_DECL_THREADSAFE_ISUPPORTS @@ -275,7 +277,8 @@ class UrlClassifierUpdateObserverProxy final : { public: explicit UrlClassifierUpdateObserverProxy(nsIUrlClassifierUpdateObserver* aTarget) - : mTarget(new nsMainThreadPtrHolder(aTarget)) + : mTarget(new nsMainThreadPtrHolder( + "UrlClassifierUpdateObserverProxy::mTarget", aTarget)) { } NS_DECL_THREADSAFE_ISUPPORTS diff --git a/xpcom/base/nsConsoleService.cpp b/xpcom/base/nsConsoleService.cpp index 47f6498c544b..2283f2c9facc 100644 --- a/xpcom/base/nsConsoleService.cpp +++ b/xpcom/base/nsConsoleService.cpp @@ -320,7 +320,8 @@ nsConsoleService::LogMessageWithMode(nsIConsoleMessage* aMessage, // Release |retiredMessage| on the main thread in case it is an instance of // a mainthread-only class like nsScriptErrorWithStack and we're off the // main thread. - NS_ReleaseOnMainThread(retiredMessage.forget()); + NS_ReleaseOnMainThread( + "nsConsoleService::retiredMessage", retiredMessage.forget()); } if (r) { diff --git a/xpcom/base/nsInterfaceRequestorAgg.cpp b/xpcom/base/nsInterfaceRequestorAgg.cpp index d444a609e9b9..b765720db4f6 100644 --- a/xpcom/base/nsInterfaceRequestorAgg.cpp +++ b/xpcom/base/nsInterfaceRequestorAgg.cpp @@ -54,8 +54,10 @@ nsInterfaceRequestorAgg::GetInterface(const nsIID& aIID, void** aResult) nsInterfaceRequestorAgg::~nsInterfaceRequestorAgg() { - NS_ProxyRelease(mConsumerTarget, mFirst.forget()); - NS_ProxyRelease(mConsumerTarget, mSecond.forget()); + NS_ProxyRelease( + "nsInterfaceRequestorAgg::mFirst", mConsumerTarget, mFirst.forget()); + NS_ProxyRelease( + "nsInterfaceRequestorAgg::mSecond", mConsumerTarget, mSecond.forget()); } nsresult From 0dc804e305beb0c98c9ad8567d1c15e8cda48c38 Mon Sep 17 00:00:00 2001 From: Bill McCloskey Date: Thu, 15 Jun 2017 16:26:25 -0700 Subject: [PATCH 003/106] Bug 1372405 - Change SchedulerGroup::GetName so it doesn't delegate to mozilla::Runnable (r=froydnj) Delegating to mozilla::Runnable caused us to return the wrong value once SchedulerGroup started passing a non-empty name to the Runnable constructor. MozReview-Commit-ID: 2zMlpiMnHwv --- xpcom/threads/SchedulerGroup.cpp | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/xpcom/threads/SchedulerGroup.cpp b/xpcom/threads/SchedulerGroup.cpp index fdf64b146299..81e14d05bf7c 100644 --- a/xpcom/threads/SchedulerGroup.cpp +++ b/xpcom/threads/SchedulerGroup.cpp @@ -339,17 +339,15 @@ SchedulerGroup::Runnable::Runnable(already_AddRefed&& aRunnable, NS_IMETHODIMP SchedulerGroup::Runnable::GetName(nsACString& aName) { - mozilla::Runnable::GetName(aName); - if (aName.IsEmpty()) { - // Try to get a name from the underlying runnable. - nsCOMPtr named = do_QueryInterface(mRunnable); - if (named) { - named->GetName(aName); - } - if (aName.IsEmpty()) { - aName.AssignLiteral("anonymous"); - } + // Try to get a name from the underlying runnable. + nsCOMPtr named = do_QueryInterface(mRunnable); + if (named) { + named->GetName(aName); } + if (aName.IsEmpty()) { + aName.AssignLiteral("anonymous"); + } + aName.AppendASCII("(labeled)"); return NS_OK; } From f69608368b24f09aab8f29d4574dff75879c3dc7 Mon Sep 17 00:00:00 2001 From: Bill McCloskey Date: Mon, 12 Jun 2017 12:34:10 -0700 Subject: [PATCH 004/106] Bug 1372405 - Provide names for all runnables in the tree (r=froydnj) MozReview-Commit-ID: DKR6ROiHRS7 --- accessible/generic/Accessible.cpp | 9 +- accessible/generic/DocAccessible.cpp | 9 +- accessible/ipc/win/HandlerProvider.cpp | 9 +- accessible/windows/msaa/AccessibleWrap.cpp | 3 +- accessible/xpcom/xpcAccessibilityService.cpp | 8 +- docshell/base/nsDocShell.cpp | 43 ++- docshell/base/nsDocShell.h | 6 +- docshell/base/nsDocShellTreeOwner.cpp | 8 +- docshell/shistory/nsSHEntryShared.cpp | 3 +- dom/animation/Animation.cpp | 4 +- dom/asmjscache/AsmJSCache.cpp | 11 +- dom/audiochannel/AudioChannelService.cpp | 36 +- dom/base/CustomElementRegistry.cpp | 5 +- dom/base/CustomElementRegistry.h | 7 +- dom/base/DOMRequest.cpp | 16 +- dom/base/Element.cpp | 16 +- dom/base/EventSource.cpp | 39 +- dom/base/ImageEncoder.cpp | 6 +- dom/base/PostMessageEvent.cpp | 18 +- dom/base/ScreenOrientation.cpp | 12 +- dom/base/Selection.h | 12 +- dom/base/WebSocket.cpp | 12 +- dom/base/nsContentSink.cpp | 5 +- dom/base/nsContentUtils.cpp | 14 +- dom/base/nsDOMMutationObserver.cpp | 1 + dom/base/nsDOMWindowUtils.cpp | 107 ++++-- .../nsDocElementCreatedNotificationRunner.h | 3 +- dom/base/nsDocument.cpp | 75 +++- dom/base/nsFocusManager.cpp | 31 +- dom/base/nsFrameLoader.cpp | 14 +- dom/base/nsFrameMessageManager.cpp | 1 + dom/base/nsGlobalWindow.cpp | 85 +++-- dom/base/nsIGlobalObject.cpp | 1 + dom/base/nsInProcessTabChildGlobal.cpp | 12 +- dom/base/nsJSEnvironment.cpp | 12 +- dom/base/nsJSEnvironment.h | 3 +- dom/base/nsObjectLoadingContent.cpp | 6 +- dom/base/nsReferencedElement.h | 8 +- dom/base/nsTextNode.cpp | 3 +- dom/cache/Context.cpp | 13 +- dom/cache/Manager.cpp | 8 +- dom/cache/PrincipalVerifier.cpp | 3 +- dom/cache/ReadStream.cpp | 6 +- dom/canvas/CanvasRenderingContext2D.cpp | 5 +- dom/canvas/ImageBitmap.cpp | 18 +- dom/canvas/WebGLContext.cpp | 7 +- dom/canvas/WebGLQuery.cpp | 15 +- dom/events/AsyncEventDispatcher.cpp | 3 +- dom/events/AsyncEventDispatcher.h | 18 +- dom/events/DataTransferItem.cpp | 7 +- dom/events/EventStateManager.cpp | 9 +- dom/events/TextComposition.cpp | 13 +- dom/events/TextComposition.h | 4 +- dom/events/WheelHandlingHelper.cpp | 7 +- dom/fetch/Fetch.cpp | 9 +- dom/fetch/FetchDriver.cpp | 3 +- dom/file/MutableBlobStorage.cpp | 30 +- dom/file/ipc/IPCBlobInputStream.cpp | 3 +- dom/file/ipc/IPCBlobInputStreamChild.cpp | 15 +- dom/file/ipc/IPCBlobInputStreamThread.cpp | 5 +- dom/filehandle/ActorsParent.cpp | 12 +- dom/filesystem/FileSystemRequestParent.cpp | 3 +- dom/filesystem/FileSystemTaskBase.cpp | 10 +- dom/filesystem/GetFilesHelper.cpp | 1 + dom/flyweb/HttpServer.cpp | 35 +- dom/gamepad/cocoa/CocoaGamepad.cpp | 2 +- dom/gamepad/ipc/GamepadEventChannelChild.cpp | 21 +- dom/gamepad/ipc/GamepadEventChannelParent.cpp | 13 +- dom/gamepad/windows/WindowsGamepad.cpp | 8 +- dom/geolocation/nsGeolocation.cpp | 13 +- dom/html/HTMLCanvasElement.cpp | 35 +- dom/html/HTMLFormElement.h | 3 +- dom/html/HTMLImageElement.cpp | 27 +- dom/html/HTMLInputElement.cpp | 4 +- dom/html/HTMLLinkElement.cpp | 3 +- dom/html/HTMLMediaElement.cpp | 147 ++++---- dom/html/HTMLObjectElement.cpp | 7 +- dom/html/HTMLSharedObjectElement.cpp | 3 +- dom/html/HTMLStyleElement.cpp | 3 +- dom/html/HTMLTrackElement.cpp | 15 +- dom/html/ImageDocument.cpp | 8 +- dom/html/TextTrackManager.cpp | 41 ++- dom/html/nsGenericHTMLElement.cpp | 6 +- dom/html/nsHTMLDocument.cpp | 11 +- dom/html/nsTextEditorState.cpp | 16 +- dom/indexedDB/ActorsParent.cpp | 52 ++- dom/indexedDB/FileInfo.cpp | 3 +- dom/indexedDB/IDBDatabase.cpp | 6 +- dom/indexedDB/ScriptErrorHelper.cpp | 6 +- dom/ipc/ContentBridgeChild.cpp | 5 +- dom/ipc/ContentBridgeParent.cpp | 8 +- dom/ipc/ContentChild.cpp | 10 +- dom/ipc/ContentParent.cpp | 37 +- dom/ipc/FilePickerParent.cpp | 7 +- dom/ipc/PreallocatedProcessManager.cpp | 9 +- dom/ipc/ProcessHangMonitor.cpp | 75 ++-- dom/ipc/TabParent.cpp | 9 +- dom/jsurl/nsJSProtocolHandler.cpp | 3 +- dom/media/Benchmark.cpp | 14 +- dom/media/CanvasCaptureMediaStream.cpp | 6 +- dom/media/CubebUtils.cpp | 3 +- dom/media/DOMMediaStream.cpp | 52 ++- dom/media/EncodedBufferCache.cpp | 4 +- dom/media/FileBlockCache.cpp | 56 +-- dom/media/GraphDriver.cpp | 26 +- dom/media/Latency.cpp | 28 +- dom/media/MediaDecoder.cpp | 60 ++-- dom/media/MediaDecoderReader.cpp | 11 +- dom/media/MediaDecoderReaderWrapper.cpp | 11 +- dom/media/MediaDecoderStateMachine.cpp | 45 ++- dom/media/MediaDecoderStateMachine.h | 20 +- dom/media/MediaEventSource.h | 8 +- dom/media/MediaFormatReader.cpp | 34 +- dom/media/MediaManager.cpp | 97 +++-- dom/media/MediaManager.h | 10 +- dom/media/MediaRecorder.cpp | 33 +- dom/media/MediaResource.cpp | 9 +- dom/media/MediaStreamGraph.cpp | 7 +- dom/media/MediaStreamTrack.cpp | 6 +- dom/media/MediaTimer.cpp | 11 +- dom/media/TextTrack.cpp | 10 +- dom/media/TextTrackList.cpp | 3 +- dom/media/VideoUtils.cpp | 4 +- dom/media/VideoUtils.h | 13 +- dom/media/android/AndroidMediaPluginHost.cpp | 2 +- .../android/AndroidMediaResourceServer.cpp | 11 +- dom/media/eme/mediadrm/MediaDrmCDMProxy.cpp | 21 +- dom/media/eme/mediadrm/MediaDrmCDMProxy.h | 3 +- dom/media/gmp/ChromiumCDMParent.cpp | 35 +- dom/media/gmp/ChromiumCDMProxy.cpp | 57 +-- dom/media/gmp/GMPCDMCallbackProxy.cpp | 132 +++---- dom/media/gmp/GMPCDMProxy.cpp | 35 +- dom/media/gmp/GMPCDMProxy.h | 3 +- dom/media/gmp/GMPContentParent.cpp | 7 +- dom/media/gmp/GMPCrashHelper.cpp | 8 +- dom/media/gmp/GMPDecryptorChild.cpp | 10 +- dom/media/gmp/GMPParent.cpp | 4 +- dom/media/gmp/GMPPlatform.cpp | 9 +- dom/media/gmp/GMPProcessParent.cpp | 3 +- dom/media/gmp/GMPServiceChild.cpp | 5 +- dom/media/gmp/GMPServiceParent.cpp | 64 ++-- dom/media/gmp/GMPServiceParent.h | 9 +- dom/media/gmp/GMPTimerParent.cpp | 10 +- dom/media/gmp/GMPVideoDecoderChild.cpp | 4 +- dom/media/gmp/GMPVideoDecoderParent.cpp | 15 +- dom/media/gmp/GMPVideoEncoderChild.cpp | 4 +- dom/media/gtest/GMPTestMonitor.h | 3 +- dom/media/gtest/TestGMPCrossOrigin.cpp | 146 +++++--- dom/media/gtest/TestGMPRemoveAndDelete.cpp | 41 ++- dom/media/gtest/TestMP4Demuxer.cpp | 3 +- dom/media/hls/HLSDemuxer.cpp | 4 +- dom/media/imagecapture/CaptureTask.cpp | 5 +- dom/media/ipc/RemoteVideoDecoder.cpp | 35 +- dom/media/ipc/VideoDecoderChild.cpp | 35 +- dom/media/ipc/VideoDecoderManagerChild.cpp | 48 ++- dom/media/ipc/VideoDecoderManagerParent.cpp | 34 +- dom/media/mediasink/DecodedStream.cpp | 24 +- dom/media/mediasource/AsyncEventRunner.h | 3 +- dom/media/mediasource/AutoTaskQueue.h | 3 +- dom/media/mediasource/MediaSourceDemuxer.cpp | 45 +-- dom/media/mediasource/TrackBuffersManager.cpp | 49 ++- dom/media/ogg/OggDemuxer.cpp | 22 +- dom/media/platforms/PDMFactory.cpp | 2 +- .../platforms/android/RemoteDataDecoder.cpp | 12 +- dom/media/platforms/omx/OmxDataDecoder.cpp | 17 +- .../platforms/wmf/WMFAudioMFTManager.cpp | 3 +- .../platforms/wmf/WMFMediaDataDecoder.cpp | 4 +- .../platforms/wmf/WMFVideoMFTManager.cpp | 9 +- .../wrappers/MediaDataDecoderProxy.cpp | 1 + dom/media/systemservices/CamerasChild.cpp | 109 ++++-- dom/media/systemservices/CamerasParent.cpp | 31 +- .../MediaSystemResourceManager.cpp | 27 +- dom/media/systemservices/MediaTaskUtils.h | 7 +- dom/media/systemservices/MediaUtils.h | 7 +- dom/media/webaudio/AnalyserNode.cpp | 6 +- dom/media/webaudio/AudioBufferSourceNode.cpp | 5 +- dom/media/webaudio/AudioDestinationNode.cpp | 15 +- dom/media/webaudio/AudioNode.cpp | 5 +- dom/media/webaudio/ConstantSourceNode.cpp | 5 +- dom/media/webaudio/DynamicsCompressorNode.cpp | 3 +- dom/media/webaudio/MediaBufferDecoder.cpp | 28 +- dom/media/webaudio/OscillatorNode.cpp | 5 +- dom/media/webaudio/PlayingRefChangeHandler.h | 3 +- dom/media/webaudio/ScriptProcessorNode.cpp | 3 +- dom/media/webaudio/WebAudioUtils.cpp | 5 +- .../webaudio/blink/HRTFDatabaseLoader.cpp | 14 +- dom/media/webaudio/blink/ReverbConvolver.cpp | 6 +- dom/media/webrtc/MediaEngineTabVideoSource.h | 20 +- .../webspeech/recognition/SpeechRecognition.h | 16 +- .../cocoa/OSXSpeechSynthesizerService.mm | 6 +- dom/media/webspeech/synth/nsSpeechTask.cpp | 12 +- .../webspeech/synth/pico/nsPicoService.cpp | 5 +- .../synth/speechd/SpeechDispatcherService.cpp | 30 +- .../synth/test/nsFakeSynthServices.cpp | 26 +- dom/messagechannel/MessagePort.cpp | 3 +- dom/network/UDPSocket.cpp | 4 +- dom/notification/DesktopNotification.cpp | 3 +- dom/performance/Performance.cpp | 3 +- dom/plugins/base/nsNPAPIPluginInstance.cpp | 9 +- dom/plugins/ipc/ChildAsyncCall.cpp | 6 +- dom/plugins/ipc/PluginInstanceChild.cpp | 17 +- dom/plugins/ipc/PluginProcessParent.cpp | 5 +- dom/plugins/ipc/PluginProcessParent.h | 7 +- dom/presentation/PresentationAvailability.cpp | 9 +- dom/presentation/PresentationCallbacks.cpp | 11 +- dom/presentation/PresentationConnection.cpp | 9 +- .../PresentationDeviceManager.cpp | 4 +- dom/presentation/PresentationReceiver.cpp | 7 +- dom/presentation/PresentationRequest.cpp | 12 +- dom/presentation/PresentationService.cpp | 13 +- dom/presentation/PresentationSessionInfo.cpp | 24 +- .../PresentationTCPSessionTransport.cpp | 27 +- .../ipc/PresentationIPCService.cpp | 14 +- .../provider/MulticastDNSDeviceProvider.cpp | 6 +- dom/promise/PromiseDebugging.cpp | 2 + dom/push/PushManager.cpp | 6 +- dom/push/PushSubscription.cpp | 6 +- dom/quota/ActorsParent.cpp | 37 +- dom/quota/QuotaManagerService.cpp | 3 +- dom/script/ScriptLoader.cpp | 21 +- dom/security/nsCSPContext.cpp | 3 +- dom/security/nsMixedContentBlocker.cpp | 9 +- dom/smil/nsSMILTimedElement.cpp | 6 +- dom/storage/LocalStorageCache.cpp | 8 +- dom/storage/StorageDBThread.cpp | 6 +- dom/storage/StorageIPC.cpp | 33 +- dom/svg/SVGFEImageElement.cpp | 4 +- dom/svg/SVGImageElement.cpp | 4 +- dom/svg/SVGStyleElement.cpp | 3 +- dom/system/nsDeviceSensors.cpp | 8 +- dom/u2f/U2F.cpp | 24 +- dom/url/URLMainThread.cpp | 4 +- dom/url/URLWorker.cpp | 3 +- dom/webauthn/U2FSoftTokenManager.cpp | 2 + .../WebBrowserPersistDocumentParent.cpp | 8 +- .../WebBrowserPersistResourcesParent.cpp | 11 +- .../WebBrowserPersistSerializeParent.cpp | 17 +- dom/webbrowserpersist/nsWebBrowserPersist.cpp | 20 +- dom/workers/RuntimeService.cpp | 5 +- dom/workers/ScriptLoader.cpp | 3 +- dom/workers/ServiceWorkerClient.cpp | 4 +- dom/workers/ServiceWorkerClients.cpp | 23 +- dom/workers/ServiceWorkerEvents.cpp | 16 +- dom/workers/ServiceWorkerInfo.cpp | 3 +- dom/workers/ServiceWorkerManager.cpp | 66 ++-- dom/workers/ServiceWorkerManagerParent.cpp | 9 +- dom/workers/ServiceWorkerManagerService.cpp | 19 +- dom/workers/ServiceWorkerPrivate.cpp | 38 +- dom/workers/ServiceWorkerPrivate.h | 2 + dom/workers/ServiceWorkerRegistrar.cpp | 14 +- dom/workers/ServiceWorkerRegistration.cpp | 20 +- dom/workers/ServiceWorkerRegistrationInfo.cpp | 28 +- dom/workers/ServiceWorkerUpdateJob.cpp | 9 +- dom/workers/ServiceWorkerWindowClient.cpp | 9 +- dom/workers/WorkerDebuggerManager.cpp | 8 +- dom/workers/WorkerPrivate.cpp | 33 +- dom/workers/WorkerRunnable.cpp | 16 +- dom/workers/WorkerScope.cpp | 6 +- dom/xbl/nsBindingManager.cpp | 8 +- dom/xhr/XMLHttpRequestMainThread.cpp | 14 +- dom/xhr/XMLHttpRequestWorker.cpp | 13 +- .../XMLStylesheetProcessingInstruction.cpp | 3 +- dom/xml/nsXMLContentSink.cpp | 6 +- dom/xml/nsXMLPrettyPrinter.cpp | 4 +- dom/xslt/xslt/txMozillaXSLTProcessor.cpp | 3 +- dom/xul/XULDocument.cpp | 18 +- dom/xul/nsXULElement.cpp | 69 ++-- dom/xul/templates/nsXULTemplateBuilder.cpp | 20 +- editor/composer/nsEditingSession.cpp | 10 +- editor/composer/nsEditorSpellCheck.cpp | 5 +- editor/libeditor/EditorBase.cpp | 3 +- editor/libeditor/HTMLEditRules.cpp | 4 +- editor/libeditor/HTMLEditor.cpp | 12 +- extensions/auth/nsHttpNegotiateAuth.cpp | 40 +-- .../spellcheck/src/mozPersonalDictionary.cpp | 15 +- gfx/ipc/GPUChild.cpp | 3 +- gfx/ipc/GPUParent.cpp | 7 +- gfx/ipc/VsyncBridgeChild.cpp | 15 +- gfx/ipc/VsyncBridgeParent.cpp | 9 +- gfx/ipc/VsyncIOThreadHolder.cpp | 3 +- gfx/layers/AsyncCanvasRenderer.cpp | 6 +- gfx/layers/ImageContainer.h | 14 +- gfx/layers/LayerScope.cpp | 7 +- gfx/layers/apz/src/APZCTreeManager.cpp | 25 +- gfx/layers/apz/src/AndroidAPZ.cpp | 3 +- .../apz/src/AndroidDynamicToolbarAnimator.cpp | 41 ++- gfx/layers/apz/src/AsyncPanZoomController.cpp | 48 ++- gfx/layers/apz/src/GenericFlingAnimation.h | 25 +- gfx/layers/apz/src/GestureEventListener.cpp | 15 +- gfx/layers/apz/src/InputQueue.cpp | 10 +- gfx/layers/apz/src/Overscroll.h | 5 +- gfx/layers/apz/util/ActiveElementManager.cpp | 8 +- .../apz/util/CheckerboardReportService.cpp | 7 +- .../apz/util/ChromeProcessController.cpp | 76 ++-- gfx/layers/basic/BasicCompositor.cpp | 6 +- gfx/layers/client/CompositableClient.cpp | 4 +- gfx/layers/client/TextureClient.cpp | 8 +- gfx/layers/client/TextureClient.h | 6 +- gfx/layers/client/TextureClientPool.cpp | 16 +- gfx/layers/d3d11/DeviceAttachmentsD3D11.cpp | 3 +- gfx/layers/ipc/APZCTreeManagerParent.cpp | 49 +-- gfx/layers/ipc/CompositorBridgeChild.cpp | 1 + gfx/layers/ipc/CompositorBridgeParent.cpp | 68 +++- gfx/layers/ipc/CompositorManagerParent.cpp | 1 + gfx/layers/ipc/CompositorVsyncScheduler.cpp | 14 +- .../CrossProcessCompositorBridgeParent.cpp | 5 +- gfx/layers/ipc/ImageBridgeChild.cpp | 6 +- gfx/layers/ipc/ImageBridgeParent.cpp | 15 +- gfx/layers/ipc/RemoteContentController.cpp | 68 ++-- gfx/layers/ipc/ShadowLayers.cpp | 7 +- ...SafeRefcountingWithMainThreadDestruction.h | 6 +- .../ipc/UiCompositorControllerChild.cpp | 20 +- .../ipc/UiCompositorControllerParent.cpp | 20 +- gfx/src/gfxCrashReporterUtils.cpp | 4 +- gfx/thebes/DeviceManagerDx.cpp | 3 +- gfx/thebes/SoftwareVsyncSource.cpp | 17 +- gfx/thebes/gfxFcPlatformFontList.cpp | 10 +- gfx/thebes/gfxFont.cpp | 10 +- gfx/thebes/gfxFontInfoLoader.cpp | 30 +- gfx/thebes/gfxPlatform.cpp | 23 +- gfx/thebes/gfxPlatformGtk.cpp | 11 +- gfx/thebes/gfxWindowsPlatform.cpp | 6 +- gfx/vr/gfxVROculus.cpp | 15 +- gfx/vr/gfxVROpenVR.cpp | 9 +- gfx/vr/ipc/VRManagerChild.cpp | 20 +- gfx/vr/ipc/VRManagerParent.cpp | 15 +- gfx/webrender_bindings/RenderThread.cpp | 27 +- image/DecodePool.cpp | 3 +- image/Image.cpp | 13 +- image/ProgressTracker.cpp | 3 +- image/RasterImage.cpp | 3 +- image/test/gtest/TestDecodeToSurface.cpp | 3 +- ipc/chromium/src/base/message_loop.h | 1 + ipc/chromium/src/base/object_watcher.cc | 2 + ipc/chromium/src/base/task.h | 36 +- ipc/chromium/src/base/thread.cc | 1 + ipc/chromium/src/base/timer.h | 7 +- .../common/process_watcher_posix_sigchld.cc | 4 +- .../src/chrome/common/process_watcher_win.cc | 2 +- ipc/glue/BackgroundImpl.cpp | 12 +- ipc/glue/BackgroundParentImpl.cpp | 6 +- ipc/glue/CrashReporterHost.cpp | 8 +- ipc/glue/GeckoChildProcessHost.cpp | 33 +- ipc/glue/IPCStreamDestination.cpp | 9 +- ipc/glue/MessageChannel.cpp | 36 +- ipc/glue/MessageLink.cpp | 29 +- ipc/glue/MessagePump.cpp | 3 +- ipc/glue/TaskFactory.h | 11 +- ipc/ipdl/test/cxx/TestCancel.cpp | 6 +- ipc/ipdl/test/cxx/TestDemon.cpp | 10 +- ipc/ipdl/test/cxx/TestEndpointBridgeMain.cpp | 4 +- ipc/ipdl/test/cxx/TestEndpointOpens.cpp | 8 +- ipc/ipdl/test/cxx/TestHangs.cpp | 4 +- ipc/ipdl/test/cxx/TestInterruptRaces.cpp | 16 +- .../test/cxx/TestInterruptShutdownRace.cpp | 7 +- ipc/ipdl/test/cxx/TestNestedLoops.cpp | 6 +- ipc/ipdl/test/cxx/TestUrgentHangs.cpp | 18 +- ipc/mscom/DispatchForwarder.cpp | 4 +- ipc/mscom/EnsureMTA.cpp | 3 +- ipc/mscom/EnsureMTA.h | 5 +- ipc/mscom/Interceptor.cpp | 2 +- ipc/mscom/InterceptorLog.cpp | 11 +- ipc/mscom/MainThreadHandoff.cpp | 5 +- ipc/mscom/MainThreadInvoker.h | 5 +- ipc/mscom/Ptr.h | 3 +- js/xpconnect/loader/ChromeScriptLoader.cpp | 14 +- js/xpconnect/loader/ScriptPreloader.cpp | 10 +- js/xpconnect/loader/mozJSSubScriptLoader.cpp | 8 +- js/xpconnect/src/XPCComponents.cpp | 6 +- js/xpconnect/src/XPCJSRuntime.cpp | 10 +- layout/base/AccessibleCaretEventHub.cpp | 16 +- layout/base/PresShell.cpp | 13 +- layout/base/ZoomConstraintsClient.cpp | 4 +- layout/base/nsLayoutUtils.cpp | 23 +- layout/base/nsPresContext.cpp | 24 +- layout/base/nsRefreshDriver.cpp | 38 +- layout/forms/nsComboboxControlFrame.cpp | 15 +- layout/forms/nsComboboxControlFrame.h | 6 +- layout/forms/nsDateTimeControlFrame.cpp | 4 +- layout/forms/nsDateTimeControlFrame.h | 3 +- layout/forms/nsFileControlFrame.h | 3 +- layout/forms/nsNumberControlFrame.cpp | 5 +- layout/forms/nsNumberControlFrame.h | 3 +- layout/forms/nsTextControlFrame.h | 14 +- layout/generic/nsGfxScrollFrame.cpp | 17 +- layout/generic/nsGfxScrollFrame.h | 12 +- layout/generic/nsPluginFrame.h | 9 +- layout/generic/nsSubDocumentFrame.cpp | 15 +- layout/generic/nsVideoFrame.cpp | 5 +- layout/ipc/VsyncParent.cpp | 3 +- layout/printing/nsPrintEngine.cpp | 6 +- layout/style/FontFaceSet.cpp | 4 +- layout/style/nsFontFaceLoader.cpp | 10 +- layout/style/nsStyleStruct.cpp | 4 +- layout/svg/SVGTextFrame.h | 6 +- layout/tables/nsTableFrame.cpp | 7 +- layout/xul/nsImageBoxFrame.cpp | 8 +- layout/xul/nsListBoxBodyFrame.h | 8 +- layout/xul/nsMenuBarFrame.cpp | 11 +- layout/xul/nsMenuFrame.cpp | 11 +- layout/xul/nsMenuPopupFrame.h | 6 +- layout/xul/nsProgressMeterFrame.cpp | 14 +- layout/xul/nsSliderFrame.cpp | 15 +- layout/xul/nsXULPopupManager.h | 50 +-- layout/xul/tree/nsTreeBodyFrame.cpp | 6 +- layout/xul/tree/nsTreeBodyFrame.h | 6 +- media/mtransport/nr_socket_prsock.cpp | 2 +- media/mtransport/runnable_utils.h | 2 + media/mtransport/test/TestSyncRunnable.cpp | 2 +- .../test/sockettransportservice_unittest.cpp | 4 +- .../src/media-conduit/WebrtcGmpVideoCodec.h | 1 + .../WebrtcMediaCodecVP8VideoCodec.cpp | 3 +- .../src/mediapipeline/MediaPipeline.cpp | 1 + .../src/mediapipeline/MediaPipeline.h | 1 + modules/libjar/nsJARChannel.cpp | 3 +- modules/libpref/Preferences.cpp | 11 +- netwerk/base/BackgroundFileSaver.cpp | 21 +- netwerk/base/Dashboard.cpp | 48 ++- netwerk/base/NetworkActivityMonitor.cpp | 3 +- netwerk/base/Predictor.cpp | 14 +- netwerk/base/TLSServerSocket.cpp | 10 +- netwerk/base/Tickler.cpp | 6 +- netwerk/base/nsAsyncStreamCopier.cpp | 10 +- netwerk/base/nsBaseChannel.cpp | 7 +- netwerk/base/nsBaseChannel.h | 4 +- netwerk/base/nsIOService.cpp | 13 +- netwerk/base/nsInputStreamPump.cpp | 4 +- netwerk/base/nsPACMan.cpp | 37 +- netwerk/base/nsPreloadedStream.cpp | 20 +- netwerk/base/nsRequestObserverProxy.cpp | 5 +- netwerk/base/nsServerSocket.cpp | 26 +- netwerk/base/nsSocketTransport2.cpp | 32 +- netwerk/base/nsSocketTransportService2.cpp | 42 ++- netwerk/base/nsStreamTransportService.cpp | 23 +- netwerk/base/nsUDPSocket.cpp | 43 ++- netwerk/cache/nsCacheEntryDescriptor.cpp | 1 + netwerk/cache/nsCacheService.cpp | 199 ++++++----- netwerk/cache/nsCacheService.h | 21 +- netwerk/cache/nsCacheUtils.cpp | 10 +- netwerk/cache/nsDeleteDir.cpp | 12 +- netwerk/cache/nsDiskCacheDevice.cpp | 34 +- netwerk/cache/nsDiskCacheDeviceSQL.cpp | 12 +- netwerk/cache/nsDiskCacheMap.cpp | 10 +- netwerk/cache2/CacheEntry.cpp | 12 +- netwerk/cache2/CacheEntry.h | 6 +- netwerk/cache2/CacheFile.cpp | 12 +- netwerk/cache2/CacheFileChunk.cpp | 10 +- netwerk/cache2/CacheFileContextEvictor.cpp | 4 +- netwerk/cache2/CacheFileIOManager.cpp | 156 +++++--- netwerk/cache2/CacheIndex.cpp | 30 +- netwerk/cache2/CacheIndex.h | 7 +- netwerk/cache2/CacheObserver.cpp | 12 +- netwerk/cache2/CacheStorageService.cpp | 37 +- netwerk/cache2/CacheStorageService.h | 13 +- netwerk/cache2/OldWrappers.cpp | 10 +- netwerk/dns/DNSRequestChild.cpp | 11 +- .../mdns/libmdns/MDNSResponderOperator.cpp | 17 +- .../dns/mdns/libmdns/MDNSResponderReply.cpp | 12 +- netwerk/dns/nsDNSService2.cpp | 7 +- netwerk/ipc/ChannelEventQueue.cpp | 3 +- netwerk/protocol/about/nsAboutCache.cpp | 5 +- netwerk/protocol/file/nsFileChannel.cpp | 12 +- netwerk/protocol/ftp/FTPChannelParent.cpp | 9 +- netwerk/protocol/ftp/nsFTPChannel.cpp | 18 +- .../protocol/ftp/nsFtpConnectionThread.cpp | 9 +- netwerk/protocol/ftp/nsFtpProtocolHandler.cpp | 10 +- netwerk/protocol/gio/nsGIOProtocolHandler.cpp | 6 +- netwerk/protocol/http/AlternateServices.cpp | 24 +- netwerk/protocol/http/Http2Push.cpp | 15 +- netwerk/protocol/http/Http2Session.cpp | 11 +- .../http/HttpBackgroundChannelChild.cpp | 55 ++- .../http/HttpBackgroundChannelParent.cpp | 98 +++-- netwerk/protocol/http/HttpBaseChannel.cpp | 5 +- netwerk/protocol/http/HttpBaseChannel.h | 3 +- netwerk/protocol/http/HttpChannelChild.cpp | 57 +-- netwerk/protocol/http/HttpChannelParent.cpp | 12 +- .../http/HttpChannelParentListener.cpp | 3 +- .../http/nsHttpActivityDistributor.cpp | 31 +- netwerk/protocol/http/nsHttpChannel.cpp | 15 +- netwerk/protocol/http/nsHttpConnection.cpp | 80 +++-- netwerk/protocol/http/nsHttpConnectionMgr.cpp | 25 +- netwerk/protocol/http/nsHttpHandler.cpp | 9 +- netwerk/protocol/http/nsHttpTransaction.cpp | 16 +- netwerk/protocol/http/nsHttpTransaction.h | 6 +- .../protocol/websocket/WebSocketChannel.cpp | 40 ++- .../websocket/WebSocketChannelChild.cpp | 25 +- .../websocket/WebSocketEventService.cpp | 6 +- netwerk/protocol/wyciwyg/nsWyciwygChannel.cpp | 6 +- netwerk/sctp/datachannel/DataChannel.cpp | 24 +- netwerk/sctp/datachannel/DataChannel.h | 60 ++-- netwerk/socket/nsNamedPipeIOLayer.cpp | 4 +- netwerk/socket/nsNamedPipeService.cpp | 3 +- .../system/linux/nsNotifyAddrListener_Linux.h | 7 +- netwerk/system/win32/nsNotifyAddrListener.h | 6 +- parser/html/nsHtml5StreamParser.cpp | 12 +- parser/html/nsHtml5TreeOpExecutor.cpp | 6 +- parser/htmlparser/nsParser.cpp | 3 +- security/manager/ssl/CryptoTask.h | 5 +- security/manager/ssl/DataStorage.cpp | 25 +- security/manager/ssl/PSMContentListener.cpp | 4 +- security/manager/ssl/PSMRunnable.cpp | 3 +- security/manager/ssl/PSMRunnable.h | 8 +- .../manager/ssl/SSLServerCertVerification.cpp | 32 +- security/manager/ssl/nsNSSCallbacks.cpp | 4 +- security/manager/ssl/nsNSSComponent.cpp | 11 +- security/manager/ssl/nsNSSIOLayer.cpp | 3 +- security/manager/ssl/nsNSSModule.cpp | 8 +- .../linux/reporter/SandboxReporter.cpp | 5 +- .../component/IdentityCryptoService.cpp | 14 +- storage/StorageBaseStatementInternal.cpp | 18 +- storage/mozStorageConnection.cpp | 22 +- storage/mozStoragePrivateHelpers.cpp | 5 +- storage/mozStorageService.cpp | 12 +- storage/test/gtest/storage_test_harness.h | 7 +- .../test_service_init_background_thread.cpp | 1 + storage/test/gtest/test_unlock_notify.cpp | 7 +- .../filewatcher/NativeFileWatcherWin.cpp | 18 +- .../osfile/NativeOSFileInternals.cpp | 29 +- toolkit/components/places/FaviconHelpers.cpp | 65 ++-- toolkit/components/places/Helpers.cpp | 3 +- toolkit/components/places/Helpers.h | 10 +- toolkit/components/places/History.cpp | 100 +++--- toolkit/components/places/nsNavHistory.cpp | 11 +- .../tests/gtest/places_test_harness_tail.h | 1 + .../satchel/nsFormFillController.cpp | 7 +- toolkit/components/startup/nsAppStartup.cpp | 6 +- toolkit/components/telemetry/Telemetry.cpp | 25 +- .../components/telemetry/TelemetryCommon.cpp | 5 +- .../telemetry/tests/gtest/TestScalars.cpp | 8 +- .../components/url-classifier/Classifier.cpp | 34 +- .../nsUrlClassifierDBService.cpp | 60 ++-- .../url-classifier/nsUrlClassifierProxies.cpp | 24 +- .../url-classifier/nsUrlClassifierProxies.h | 97 +++-- .../url-classifier/tests/gtest/Common.cpp | 14 +- toolkit/crashreporter/InjectCrashReporter.cpp | 3 +- toolkit/crashreporter/nsExceptionHandler.cpp | 3 +- .../test/gtest/TestCrashThreadAnnotation.cpp | 32 +- toolkit/xre/ProfileReset.h | 12 +- toolkit/xre/nsEmbedFunctions.cpp | 8 +- toolkit/xre/nsNativeAppSupportUnix.cpp | 5 +- toolkit/xre/nsUpdateDriver.cpp | 26 +- tools/profiler/core/platform.cpp | 19 +- .../gecko/ChildProfilerController.cpp | 14 +- tools/profiler/gecko/ThreadResponsiveness.cpp | 3 +- tools/profiler/tests/gtest/GeckoProfiler.cpp | 77 ++-- uriloader/prefetch/nsOfflineCacheUpdate.cpp | 6 +- view/nsView.cpp | 6 +- widget/VsyncDispatcher.cpp | 14 +- widget/android/AndroidBridge.cpp | 2 +- widget/android/AndroidJNIWrapper.cpp | 1 + widget/android/AndroidUiThread.cpp | 6 +- widget/android/EventDispatcher.cpp | 2 +- widget/android/fennec/ThumbnailHelper.h | 2 +- widget/android/jni/Natives.h | 2 +- widget/android/nsAppShell.cpp | 1 + widget/android/nsScreenManagerAndroid.cpp | 2 + widget/android/nsWindow.cpp | 5 +- widget/cocoa/nsChildView.mm | 2 +- widget/gtk/nsDeviceContextSpecG.cpp | 10 +- widget/gtk/nsWindow.cpp | 7 +- widget/nsBaseFilePicker.cpp | 9 +- widget/nsBaseWidget.cpp | 62 ++-- widget/nsIdleService.cpp | 38 +- widget/windows/AudioSession.cpp | 3 +- widget/windows/LSPAnnotator.cpp | 4 +- widget/windows/WidgetTraceEvent.cpp | 2 +- widget/windows/nsColorPicker.cpp | 3 +- widget/windows/nsSound.cpp | 5 +- widget/windows/nsWindow.cpp | 3 +- widget/windows/nsWindowGfx.cpp | 2 +- xpcom/base/CycleCollectedJSContext.cpp | 7 +- xpcom/base/nsConsoleService.cpp | 7 +- xpcom/base/nsCycleCollector.cpp | 4 +- xpcom/base/nsDumpUtils.cpp | 3 +- xpcom/base/nsDumpUtils.h | 3 +- xpcom/base/nsMemoryInfoDumper.cpp | 9 +- xpcom/base/nsMemoryReporterManager.cpp | 19 +- xpcom/base/nsMessageLoop.cpp | 3 +- xpcom/base/nsStatusReporterManager.cpp | 1 + xpcom/ds/nsHashPropertyBag.cpp | 3 +- xpcom/ds/nsObserverService.cpp | 5 +- xpcom/io/nsInputStreamTee.cpp | 7 +- xpcom/io/nsLocalFileWin.cpp | 4 +- xpcom/tests/gtest/TestMozPromise.cpp | 11 +- xpcom/tests/gtest/TestRWLock.cpp | 3 +- .../tests/gtest/TestRacingServiceManager.cpp | 6 +- xpcom/tests/gtest/TestStateWatching.cpp | 11 +- xpcom/tests/gtest/TestTaskQueue.cpp | 53 +-- xpcom/tests/gtest/TestThreadPool.cpp | 14 +- xpcom/tests/gtest/TestThreadPoolListener.cpp | 2 +- xpcom/tests/gtest/TestThreadUtils.cpp | 337 ++++++++++++------ xpcom/tests/gtest/TestTimers.cpp | 23 +- xpcom/threads/AbstractThread.cpp | 11 +- xpcom/threads/BackgroundHangMonitor.cpp | 3 +- xpcom/threads/LazyIdleThread.cpp | 18 +- xpcom/threads/MozPromise.h | 24 +- xpcom/threads/SchedulerGroup.cpp | 5 +- xpcom/threads/SharedThreadPool.cpp | 3 +- xpcom/threads/StateMirroring.h | 33 +- xpcom/threads/StateWatching.h | 5 +- xpcom/threads/SyncRunnable.h | 6 +- xpcom/threads/TaskDispatcher.h | 6 +- xpcom/threads/TaskQueue.h | 3 +- xpcom/threads/ThrottledEventQueue.cpp | 3 +- xpcom/threads/TimerThread.cpp | 6 +- xpcom/threads/nsMemoryPressure.cpp | 2 +- xpcom/threads/nsProcessCommon.cpp | 3 +- xpcom/threads/nsThread.cpp | 9 +- xpcom/threads/nsThreadUtils.cpp | 7 +- xpcom/threads/nsThreadUtils.h | 83 +++-- xpfe/appshell/nsAppShellService.cpp | 7 +- xpfe/appshell/nsContentTreeOwner.cpp | 3 +- .../directory/nsDirectoryViewer.cpp | 34 +- 613 files changed, 6338 insertions(+), 3568 deletions(-) diff --git a/accessible/generic/Accessible.cpp b/accessible/generic/Accessible.cpp index 690d1608cec7..f08318ed180c 100644 --- a/accessible/generic/Accessible.cpp +++ b/accessible/generic/Accessible.cpp @@ -1799,8 +1799,13 @@ Accessible::DoCommand(nsIContent *aContent, uint32_t aActionIndex) class Runnable final : public mozilla::Runnable { public: - Runnable(Accessible* aAcc, nsIContent* aContent, uint32_t aIdx) : - mAcc(aAcc), mContent(aContent), mIdx(aIdx) { } + Runnable(Accessible* aAcc, nsIContent* aContent, uint32_t aIdx) + : mozilla::Runnable("Runnable") + , mAcc(aAcc) + , mContent(aContent) + , mIdx(aIdx) + { + } NS_IMETHOD Run() override { diff --git a/accessible/generic/DocAccessible.cpp b/accessible/generic/DocAccessible.cpp index ecba61c41549..0c21507711dd 100644 --- a/accessible/generic/DocAccessible.cpp +++ b/accessible/generic/DocAccessible.cpp @@ -649,9 +649,12 @@ DocAccessible::ScrollPositionDidChange(nscoord aX, nscoord aY) mScrollWatchTimer = do_CreateInstance("@mozilla.org/timer;1"); if (mScrollWatchTimer) { NS_ADDREF_THIS(); // Kung fu death grip - mScrollWatchTimer->InitWithFuncCallback(ScrollTimerCallback, this, - kScrollPosCheckWait, - nsITimer::TYPE_REPEATING_SLACK); + mScrollWatchTimer->InitWithNamedFuncCallback( + ScrollTimerCallback, + this, + kScrollPosCheckWait, + nsITimer::TYPE_REPEATING_SLACK, + "a11y::DocAccessible::ScrollPositionDidChange"); } } mScrollPositionChangedTicks = 1; diff --git a/accessible/ipc/win/HandlerProvider.cpp b/accessible/ipc/win/HandlerProvider.cpp index 0c76d5bba1b8..f359feff3b8c 100644 --- a/accessible/ipc/win/HandlerProvider.cpp +++ b/accessible/ipc/win/HandlerProvider.cpp @@ -95,7 +95,8 @@ HandlerProvider::GetAndSerializePayload(const MutexAutoLock&) IA2Payload payload{}; - if (!mscom::InvokeOnMainThread(this, &HandlerProvider::BuildIA2Data, + if (!mscom::InvokeOnMainThread("HandlerProvider::BuildIA2Data", + this, &HandlerProvider::BuildIA2Data, &payload.mData) || !payload.mData.mUniqueId) { return; @@ -236,7 +237,8 @@ HandlerProvider::put_HandlerControl(long aPid, IHandlerControl* aCtrl) auto ptrProxy = mscom::ToProxyUniquePtr(aCtrl); - if (!mscom::InvokeOnMainThread(this, + if (!mscom::InvokeOnMainThread("HandlerProvider::SetHandlerControlOnMainThread", + this, &HandlerProvider::SetHandlerControlOnMainThread, static_cast(aPid), Move(ptrProxy))) { return E_FAIL; @@ -250,7 +252,8 @@ HandlerProvider::Refresh(IA2Data* aOutData) { MOZ_ASSERT(mscom::IsCurrentThreadMTA()); - if (!mscom::InvokeOnMainThread(this, &HandlerProvider::BuildIA2Data, + if (!mscom::InvokeOnMainThread("HandlerProvider::BuildIA2Data", + this, &HandlerProvider::BuildIA2Data, aOutData)) { return E_FAIL; } diff --git a/accessible/windows/msaa/AccessibleWrap.cpp b/accessible/windows/msaa/AccessibleWrap.cpp index 00bbcc38de10..e3e09bb59b56 100644 --- a/accessible/windows/msaa/AccessibleWrap.cpp +++ b/accessible/windows/msaa/AccessibleWrap.cpp @@ -841,7 +841,8 @@ AccessibleWrap::accSelect( // is happening, so we dispatch TakeFocus from the main thread to // guarantee that we are outside any IPC. nsCOMPtr runnable = - mozilla::NewRunnableMethod(this, &Accessible::TakeFocus); + mozilla::NewRunnableMethod("Accessible::TakeFocus", + this, &Accessible::TakeFocus); NS_DispatchToMainThread(runnable, NS_DISPATCH_NORMAL); return S_OK; } diff --git a/accessible/xpcom/xpcAccessibilityService.cpp b/accessible/xpcom/xpcAccessibilityService.cpp index 97c0d0e72124..49c5e1082501 100644 --- a/accessible/xpcom/xpcAccessibilityService.cpp +++ b/accessible/xpcom/xpcAccessibilityService.cpp @@ -79,8 +79,12 @@ xpcAccessibilityService::Release(void) if (count == 1 && !mShutdownTimer) { mShutdownTimer = do_CreateInstance(NS_TIMER_CONTRACTID); if (mShutdownTimer) { - mShutdownTimer->InitWithFuncCallback(ShutdownCallback, this, 100, - nsITimer::TYPE_ONE_SHOT); + mShutdownTimer->InitWithNamedFuncCallback( + ShutdownCallback, + this, + 100, + nsITimer::TYPE_ONE_SHOT, + "xpcAccessibilityService::Release"); } } diff --git a/docshell/base/nsDocShell.cpp b/docshell/base/nsDocShell.cpp index 66d2b61c7266..8658916a670a 100644 --- a/docshell/base/nsDocShell.cpp +++ b/docshell/base/nsDocShell.cpp @@ -454,9 +454,12 @@ nsPingListener::StartTimeout(DocGroup* aDocGroup) timer->SetTarget(aDocGroup->EventTargetFor(TaskCategory::Network)); if (timer) { - nsresult rv = timer->InitWithFuncCallback(OnPingTimeout, mLoadGroup, - PING_TIMEOUT, - nsITimer::TYPE_ONE_SHOT); + nsresult rv = + timer->InitWithNamedFuncCallback(OnPingTimeout, + mLoadGroup, + PING_TIMEOUT, + nsITimer::TYPE_ONE_SHOT, + "nsPingListener::StartTimeout"); if (NS_SUCCEEDED(rv)) { mTimer = timer; return NS_OK; @@ -1767,10 +1770,12 @@ nsDocShell::DispatchToTabGroup(const char* aName, NS_IMETHODIMP nsDocShell::DispatchLocationChangeEvent() { - return DispatchToTabGroup("nsDocShell::FireDummyOnLocationChange", - TaskCategory::Other, - NewRunnableMethod(this, - &nsDocShell::FireDummyOnLocationChange)); + return DispatchToTabGroup( + "nsDocShell::FireDummyOnLocationChange", + TaskCategory::Other, + NewRunnableMethod("nsDocShell::FireDummyOnLocationChange", + this, + &nsDocShell::FireDummyOnLocationChange)); } bool @@ -9643,13 +9648,20 @@ public: bool aLoadReplace, nsIURI* aReferrer, uint32_t aReferrerPolicy, nsIPrincipal* aTriggeringPrincipal, - nsIPrincipal* aPrincipalToInherit, uint32_t aFlags, - const char* aTypeHint, nsIInputStream* aPostData, - nsIInputStream* aHeadersData, uint32_t aLoadType, - nsISHEntry* aSHEntry, bool aFirstParty, - const nsAString& aSrcdoc, nsIDocShell* aSourceDocShell, - nsIURI* aBaseURI, bool aCheckForPrerender) - : mSrcdoc(aSrcdoc) + nsIPrincipal* aPrincipalToInherit, + uint32_t aFlags, + const char* aTypeHint, + nsIInputStream* aPostData, + nsIInputStream* aHeadersData, + uint32_t aLoadType, + nsISHEntry* aSHEntry, + bool aFirstParty, + const nsAString& aSrcdoc, + nsIDocShell* aSourceDocShell, + nsIURI* aBaseURI, + bool aCheckForPrerender) + : mozilla::Runnable("InternalLoadEvent") + , mSrcdoc(aSrcdoc) , mDocShell(aDocShell) , mURI(aURI) , mOriginalURI(aOriginalURI) @@ -14039,7 +14051,8 @@ OnLinkClickEvent::OnLinkClickEvent(nsDocShell* aHandler, bool aNoOpenerImplied, bool aIsTrusted, nsIPrincipal* aTriggeringPrincipal) - : mHandler(aHandler) + : mozilla::Runnable("OnLinkClickEvent") + , mHandler(aHandler) , mURI(aURI) , mTargetSpec(aTargetSpec) , mFileName(aFileName) diff --git a/docshell/base/nsDocShell.h b/docshell/base/nsDocShell.h index 83c74efabe21..a48c0b9ce878 100644 --- a/docshell/base/nsDocShell.h +++ b/docshell/base/nsDocShell.h @@ -777,7 +777,11 @@ public: { public: NS_DECL_NSIRUNNABLE - explicit RestorePresentationEvent(nsDocShell* aDs) : mDocShell(aDs) {} + explicit RestorePresentationEvent(nsDocShell* aDs) + : mozilla::Runnable("nsDocShell::RestorePresentationEvent") + , mDocShell(aDs) + { + } void Revoke() { mDocShell = nullptr; } private: RefPtr mDocShell; diff --git a/docshell/base/nsDocShellTreeOwner.cpp b/docshell/base/nsDocShellTreeOwner.cpp index 5be73d5d34f2..4871e2df7af8 100644 --- a/docshell/base/nsDocShellTreeOwner.cpp +++ b/docshell/base/nsDocShellTreeOwner.cpp @@ -1260,10 +1260,12 @@ ChromeTooltipListener::MouseMove(nsIDOMEvent* aMouseEvent) } } if (mPossibleTooltipNode) { - nsresult rv = mTooltipTimer->InitWithFuncCallback( - sTooltipCallback, this, + nsresult rv = mTooltipTimer->InitWithNamedFuncCallback( + sTooltipCallback, + this, LookAndFeel::GetInt(LookAndFeel::eIntID_TooltipDelay, 500), - nsITimer::TYPE_ONE_SHOT); + nsITimer::TYPE_ONE_SHOT, + "ChromeTooltipListener::MouseMove"); if (NS_FAILED(rv)) { mPossibleTooltipNode = nullptr; } diff --git a/docshell/shistory/nsSHEntryShared.cpp b/docshell/shistory/nsSHEntryShared.cpp index 8625fe88efee..a469c8687667 100644 --- a/docshell/shistory/nsSHEntryShared.cpp +++ b/docshell/shistory/nsSHEntryShared.cpp @@ -185,7 +185,8 @@ class DestroyViewerEvent : public mozilla::Runnable { public: DestroyViewerEvent(nsIContentViewer* aViewer, nsIDocument* aDocument) - : mViewer(aViewer) + : mozilla::Runnable("DestroyViewerEvent") + , mViewer(aViewer) , mDocument(aDocument) { } diff --git a/dom/animation/Animation.cpp b/dom/animation/Animation.cpp index 846f21697f0c..60cd91de9e94 100644 --- a/dom/animation/Animation.cpp +++ b/dom/animation/Animation.cpp @@ -1453,7 +1453,9 @@ Animation::DoFinishNotification(SyncNotifyFlag aSyncNotifyFlag) DoFinishNotificationImmediately(); } else if (!mFinishNotificationTask.IsPending()) { RefPtr> runnable = - NewRunnableMethod(this, &Animation::DoFinishNotificationImmediately); + NewRunnableMethod("dom::Animation::DoFinishNotificationImmediately", + this, + &Animation::DoFinishNotificationImmediately); context->DispatchToMicroTask(do_AddRef(runnable)); mFinishNotificationTask = runnable.forget(); } diff --git a/dom/asmjscache/AsmJSCache.cpp b/dom/asmjscache/AsmJSCache.cpp index fa5a684e42ae..24cf08ad69d2 100644 --- a/dom/asmjscache/AsmJSCache.cpp +++ b/dom/asmjscache/AsmJSCache.cpp @@ -242,11 +242,12 @@ class FileDescriptorHolder : public Runnable { public: FileDescriptorHolder() - : mQuotaObject(nullptr), - mFileSize(INT64_MIN), - mFileDesc(nullptr), - mFileMap(nullptr), - mMappedMemory(nullptr) + : Runnable("dom::asmjscache::FileDescriptorHolder") + , mQuotaObject(nullptr) + , mFileSize(INT64_MIN) + , mFileDesc(nullptr) + , mFileMap(nullptr) + , mMappedMemory(nullptr) { } ~FileDescriptorHolder() override diff --git a/dom/audiochannel/AudioChannelService.cpp b/dom/audiochannel/AudioChannelService.cpp index a31934f5c0d9..4bf894c9dd6d 100644 --- a/dom/audiochannel/AudioChannelService.cpp +++ b/dom/audiochannel/AudioChannelService.cpp @@ -85,9 +85,11 @@ private: class AudioPlaybackRunnable final : public Runnable { public: - AudioPlaybackRunnable(nsPIDOMWindowOuter* aWindow, bool aActive, + AudioPlaybackRunnable(nsPIDOMWindowOuter* aWindow, + bool aActive, AudioChannelService::AudibleChangedReasons aReason) - : mWindow(aWindow) + : mozilla::Runnable("AudioPlaybackRunnable") + , mWindow(aWindow) , mActive(aActive) , mReason(aReason) {} @@ -874,7 +876,9 @@ AudioChannelService::AudioChannelWindow::NotifyMediaBlockStop(nsPIDOMWindowOuter mShouldSendBlockStopEvent = false; // Can't use raw pointer for lamba variable capturing, use smart ptr. nsCOMPtr window = aWindow; - NS_DispatchToCurrentThread(NS_NewRunnableFunction([window] () -> void { + NS_DispatchToCurrentThread(NS_NewRunnableFunction( + "dom::AudioChannelService::AudioChannelWindow::NotifyMediaBlockStop", + [window]() -> void { nsCOMPtr observerService = services::GetObserverService(); if (NS_WARN_IF(!observerService)) { @@ -884,8 +888,7 @@ AudioChannelService::AudioChannelWindow::NotifyMediaBlockStop(nsPIDOMWindowOuter observerService->NotifyObservers(ToSupports(window), "audio-playback", u"blockStop"); - }) - ); + })); } void @@ -1049,18 +1052,19 @@ AudioChannelService::AudioChannelWindow::MaybeNotifyMediaBlockStart(AudioChannel if (!mShouldSendBlockStopEvent) { mShouldSendBlockStopEvent = true; - NS_DispatchToCurrentThread(NS_NewRunnableFunction([window] () -> void { - nsCOMPtr observerService = - services::GetObserverService(); - if (NS_WARN_IF(!observerService)) { - return; - } + NS_DispatchToCurrentThread(NS_NewRunnableFunction( + "dom::AudioChannelService::AudioChannelWindow::" + "MaybeNotifyMediaBlockStart", + [window]() -> void { + nsCOMPtr observerService = + services::GetObserverService(); + if (NS_WARN_IF(!observerService)) { + return; + } - observerService->NotifyObservers(ToSupports(window), - "audio-playback", - u"blockStart"); - }) - ); + observerService->NotifyObservers( + ToSupports(window), "audio-playback", u"blockStart"); + })); } } diff --git a/dom/base/CustomElementRegistry.cpp b/dom/base/CustomElementRegistry.cpp index c6eff39f12a1..18bc269ce48f 100644 --- a/dom/base/CustomElementRegistry.cpp +++ b/dom/base/CustomElementRegistry.cpp @@ -454,8 +454,9 @@ CustomElementRegistry::EnqueueLifecycleCallback(nsIDocument::ElementCallbackType // should be invoked prior to returning control back to script. // Create a script runner to process the top of the processing // stack as soon as it is safe to run script. - nsCOMPtr runnable = - NS_NewRunnableFunction(&CustomElementRegistry::ProcessTopElementQueue); + nsCOMPtr runnable = NS_NewRunnableFunction( + "dom::CustomElementRegistry::EnqueueLifecycleCallback", + &CustomElementRegistry::ProcessTopElementQueue); nsContentUtils::AddScriptRunner(runnable); } } diff --git a/dom/base/CustomElementRegistry.h b/dom/base/CustomElementRegistry.h index 1faf0af488bf..6faf5c6463b8 100644 --- a/dom/base/CustomElementRegistry.h +++ b/dom/base/CustomElementRegistry.h @@ -243,8 +243,11 @@ private: private: class ProcessBackupQueueRunnable : public mozilla::Runnable { public: - explicit ProcessBackupQueueRunnable(CustomElementReactionsStack* aReactionStack) - : mReactionStack(aReactionStack) + explicit ProcessBackupQueueRunnable( + CustomElementReactionsStack* aReactionStack) + : Runnable( + "dom::CustomElementReactionsStack::ProcessBackupQueueRunnable") + , mReactionStack(aReactionStack) { MOZ_ASSERT(!mReactionStack->mIsBackupQueueProcessing, "mIsBackupQueueProcessing should be initially false"); diff --git a/dom/base/DOMRequest.cpp b/dom/base/DOMRequest.cpp index ce6cd1dcdeaa..d6eee12adb34 100644 --- a/dom/base/DOMRequest.cpp +++ b/dom/base/DOMRequest.cpp @@ -299,10 +299,10 @@ DOMRequestService::FireDetailedError(nsIDOMDOMRequest* aRequest, class FireSuccessAsyncTask : public mozilla::Runnable { - FireSuccessAsyncTask(DOMRequest* aRequest, - const JS::Value& aResult) : - mReq(aRequest), - mResult(RootingCx(), aResult) + FireSuccessAsyncTask(DOMRequest* aRequest, const JS::Value& aResult) + : mozilla::Runnable("FireSuccessAsyncTask") + , mReq(aRequest) + , mResult(RootingCx(), aResult) { } @@ -336,10 +336,10 @@ private: class FireErrorAsyncTask : public mozilla::Runnable { public: - FireErrorAsyncTask(DOMRequest* aRequest, - const nsAString& aError) : - mReq(aRequest), - mError(aError) + FireErrorAsyncTask(DOMRequest* aRequest, const nsAString& aError) + : mozilla::Runnable("FireErrorAsyncTask") + , mReq(aRequest) + , mError(aError) { } diff --git a/dom/base/Element.cpp b/dom/base/Element.cpp index 3c6b7a365575..33acbcb191c1 100644 --- a/dom/base/Element.cpp +++ b/dom/base/Element.cpp @@ -613,7 +613,9 @@ Element::WrapObject(JSContext *aCx, JS::Handle aGivenProto) binding->ExecuteAttachedHandler(); } else { nsContentUtils::AddScriptRunner( - NewRunnableMethod(binding, &nsXBLBinding::ExecuteAttachedHandler)); + NewRunnableMethod("nsXBLBinding::ExecuteAttachedHandler", + binding, + &nsXBLBinding::ExecuteAttachedHandler)); } } } @@ -1788,10 +1790,14 @@ Element::BindToTree(nsIDocument* aDocument, nsIContent* aParent, return NS_OK; } -RemoveFromBindingManagerRunnable::RemoveFromBindingManagerRunnable(nsBindingManager* aManager, - nsIContent* aContent, - nsIDocument* aDoc): - mManager(aManager), mContent(aContent), mDoc(aDoc) +RemoveFromBindingManagerRunnable::RemoveFromBindingManagerRunnable( + nsBindingManager* aManager, + nsIContent* aContent, + nsIDocument* aDoc) + : mozilla::Runnable("dom::RemoveFromBindingManagerRunnable") + , mManager(aManager) + , mContent(aContent) + , mDoc(aDoc) {} RemoveFromBindingManagerRunnable::~RemoveFromBindingManagerRunnable() {} diff --git a/dom/base/EventSource.cpp b/dom/base/EventSource.cpp index 518f048cf1cf..3911b71ba7bd 100644 --- a/dom/base/EventSource.cpp +++ b/dom/base/EventSource.cpp @@ -391,7 +391,9 @@ EventSourceImpl::Close() // Asynchronously call CloseInternal to prevent EventSourceImpl from being // synchronously destoryed while dispatching DOM event. DebugOnly rv = - Dispatch(NewRunnableMethod(this, &EventSourceImpl::CloseInternal), + Dispatch(NewRunnableMethod("dom::EventSourceImpl::CloseInternal", + this, + &EventSourceImpl::CloseInternal), NS_DISPATCH_NORMAL); MOZ_ASSERT(NS_SUCCEEDED(rv)); } @@ -683,7 +685,9 @@ EventSourceImpl::OnStartRequest(nsIRequest* aRequest, nsISupports* aCtxt) } } } - rv = Dispatch(NewRunnableMethod(this, &EventSourceImpl::AnnounceConnection), + rv = Dispatch(NewRunnableMethod("dom::EventSourceImpl::AnnounceConnection", + this, + &EventSourceImpl::AnnounceConnection), NS_DISPATCH_NORMAL); NS_ENSURE_SUCCESS(rv, rv); mStatus = PARSE_STATE_BEGIN_OF_STREAM; @@ -752,7 +756,8 @@ class DataAvailableRunnable final : public Runnable DataAvailableRunnable(EventSourceImpl* aEventSourceImpl, UniquePtr aData, uint32_t aLength) - : mEventSourceImpl(aEventSourceImpl) + : Runnable("dom::DataAvailableRunnable") + , mEventSourceImpl(aEventSourceImpl) , mData(Move(aData)) , mLength(aLength) { @@ -840,9 +845,10 @@ EventSourceImpl::OnStopRequest(nsIRequest* aRequest, nsresult rv = CheckHealthOfRequestCallback(aRequest); NS_ENSURE_SUCCESS(rv, rv); - rv = Dispatch( - NewRunnableMethod(this, &EventSourceImpl::ReestablishConnection), - NS_DISPATCH_NORMAL); + rv = Dispatch(NewRunnableMethod("dom::EventSourceImpl::ReestablishConnection", + this, + &EventSourceImpl::ReestablishConnection), + NS_DISPATCH_NORMAL); NS_ENSURE_SUCCESS(rv, rv); return NS_OK; @@ -1245,9 +1251,12 @@ EventSourceImpl::SetReconnectionTimeout() NS_ENSURE_STATE(mTimer); } - nsresult rv = mTimer->InitWithFuncCallback(TimerCallback, this, - mReconnectionTime, - nsITimer::TYPE_ONE_SHOT); + nsresult rv = mTimer->InitWithNamedFuncCallback( + TimerCallback, + this, + mReconnectionTime, + nsITimer::TYPE_ONE_SHOT, + "dom::EventSourceImpl::SetReconnectionTimeout"); NS_ENSURE_SUCCESS(rv, rv); return NS_OK; @@ -1341,7 +1350,9 @@ EventSourceImpl::DispatchFailConnection() if (NS_FAILED(rv)) { NS_WARNING("Failed to print to the console error"); } - rv = Dispatch(NewRunnableMethod(this, &EventSourceImpl::FailConnection), + rv = Dispatch(NewRunnableMethod("dom::EventSourceImpl::FailConnection", + this, + &EventSourceImpl::FailConnection), NS_DISPATCH_NORMAL); MOZ_ASSERT(NS_SUCCEEDED(rv)); } @@ -1407,7 +1418,9 @@ EventSourceImpl::Thaw() nsresult rv; if (!mGoingToDispatchAllMessages && mMessagesToDispatch.GetSize() > 0) { nsCOMPtr event = - NewRunnableMethod(this, &EventSourceImpl::DispatchAllMessageEvents); + NewRunnableMethod("dom::EventSourceImpl::DispatchAllMessageEvents", + this, + &EventSourceImpl::DispatchAllMessageEvents); NS_ENSURE_STATE(event); mGoingToDispatchAllMessages = true; @@ -1468,7 +1481,9 @@ EventSourceImpl::DispatchCurrentMessageEvent() if (!mGoingToDispatchAllMessages) { nsCOMPtr event = - NewRunnableMethod(this, &EventSourceImpl::DispatchAllMessageEvents); + NewRunnableMethod("dom::EventSourceImpl::DispatchAllMessageEvents", + this, + &EventSourceImpl::DispatchAllMessageEvents); NS_ENSURE_STATE(event); mGoingToDispatchAllMessages = true; diff --git a/dom/base/ImageEncoder.cpp b/dom/base/ImageEncoder.cpp index 8bed53cf7453..b263222ee751 100644 --- a/dom/base/ImageEncoder.cpp +++ b/dom/base/ImageEncoder.cpp @@ -552,9 +552,9 @@ ImageEncoder::EnsureThreadPool() sThreadPool = threadPool; if (!NS_IsMainThread()) { - NS_DispatchToMainThread(NS_NewRunnableFunction([]() -> void { - RegisterEncoderThreadPoolTerminatorObserver(); - })); + NS_DispatchToMainThread(NS_NewRunnableFunction( + "dom::ImageEncoder::EnsureThreadPool", + []() -> void { RegisterEncoderThreadPoolTerminatorObserver(); })); } else { RegisterEncoderThreadPoolTerminatorObserver(); } diff --git a/dom/base/PostMessageEvent.cpp b/dom/base/PostMessageEvent.cpp index 3d562859a14e..06b2b55e0e2e 100644 --- a/dom/base/PostMessageEvent.cpp +++ b/dom/base/PostMessageEvent.cpp @@ -35,14 +35,16 @@ PostMessageEvent::PostMessageEvent(nsGlobalWindow* aSource, nsIPrincipal* aProvidedPrincipal, nsIDocument* aSourceDocument, bool aTrustedCaller) -: StructuredCloneHolder(CloningSupported, TransferringSupported, - StructuredCloneScope::SameProcessSameThread), - mSource(aSource), - mCallerOrigin(aCallerOrigin), - mTargetWindow(aTargetWindow), - mProvidedPrincipal(aProvidedPrincipal), - mSourceDocument(aSourceDocument), - mTrustedCaller(aTrustedCaller) + : Runnable("dom::PostMessageEvent") + , StructuredCloneHolder(CloningSupported, + TransferringSupported, + StructuredCloneScope::SameProcessSameThread) + , mSource(aSource) + , mCallerOrigin(aCallerOrigin) + , mTargetWindow(aTargetWindow) + , mProvidedPrincipal(aProvidedPrincipal) + , mSourceDocument(aSourceDocument) + , mTrustedCaller(aTrustedCaller) { } diff --git a/dom/base/ScreenOrientation.cpp b/dom/base/ScreenOrientation.cpp index 644e5145dbaf..6d7d652120ac 100644 --- a/dom/base/ScreenOrientation.cpp +++ b/dom/base/ScreenOrientation.cpp @@ -553,8 +553,10 @@ ScreenOrientation::Notify(const hal::ScreenConfiguration& aConfiguration) doc->SetOrientationPendingPromise(nullptr); } - nsCOMPtr runnable = NewRunnableMethod(this, - &ScreenOrientation::DispatchChangeEvent); + nsCOMPtr runnable = + NewRunnableMethod("dom::ScreenOrientation::DispatchChangeEvent", + this, + &ScreenOrientation::DispatchChangeEvent); rv = NS_DispatchToMainThread(runnable); NS_WARNING_ASSERTION(NS_SUCCEEDED(rv), "NS_DispatchToMainThread failed"); } @@ -640,8 +642,10 @@ ScreenOrientation::VisibleEventListener::HandleEvent(nsIDOMEvent* aEvent) doc->SetOrientationPendingPromise(nullptr); } - nsCOMPtr runnable = NewRunnableMethod(orientation, - &ScreenOrientation::DispatchChangeEvent); + nsCOMPtr runnable = + NewRunnableMethod("dom::ScreenOrientation::DispatchChangeEvent", + orientation, + &ScreenOrientation::DispatchChangeEvent); rv = NS_DispatchToMainThread(runnable); if (NS_WARN_IF(rv.Failed())) { return rv.StealNSResult(); diff --git a/dom/base/Selection.h b/dom/base/Selection.h index da9a573d4daa..980b3939a1cd 100644 --- a/dom/base/Selection.h +++ b/dom/base/Selection.h @@ -323,11 +323,13 @@ private: nsIPresShell::ScrollAxis aVertical, nsIPresShell::ScrollAxis aHorizontal, int32_t aFlags) - : mSelection(aSelection), - mRegion(aRegion), - mVerticalScroll(aVertical), - mHorizontalScroll(aHorizontal), - mFlags(aFlags) { + : Runnable("dom::Selection::ScrollSelectionIntoViewEvent") + , mSelection(aSelection) + , mRegion(aRegion) + , mVerticalScroll(aVertical) + , mHorizontalScroll(aHorizontal) + , mFlags(aFlags) + { NS_ASSERTION(aSelection, "null parameter"); } void Revoke() { mSelection = nullptr; } diff --git a/dom/base/WebSocket.cpp b/dom/base/WebSocket.cpp index b7f2235a17bc..f98b09c2f5d2 100644 --- a/dom/base/WebSocket.cpp +++ b/dom/base/WebSocket.cpp @@ -268,7 +268,8 @@ class CallDispatchConnectionCloseEvents final : public CancelableRunnable { public: explicit CallDispatchConnectionCloseEvents(WebSocketImpl* aWebSocketImpl) - : mWebSocketImpl(aWebSocketImpl) + : CancelableRunnable("dom::CallDispatchConnectionCloseEvents") + , mWebSocketImpl(aWebSocketImpl) { aWebSocketImpl->AssertIsOnTargetThread(); } @@ -404,9 +405,11 @@ namespace { class CancelWebSocketRunnable final : public Runnable { public: - CancelWebSocketRunnable(nsIWebSocketChannel* aChannel, uint16_t aReasonCode, + CancelWebSocketRunnable(nsIWebSocketChannel* aChannel, + uint16_t aReasonCode, const nsACString& aReasonString) - : mChannel(aChannel) + : Runnable("dom::CancelWebSocketRunnable") + , mChannel(aChannel) , mReasonCode(aReasonCode) , mReasonString(aReasonString) {} @@ -458,7 +461,8 @@ public: CloseConnectionRunnable(WebSocketImpl* aImpl, uint16_t aReasonCode, const nsACString& aReasonString) - : mImpl(aImpl) + : Runnable("dom::CloseConnectionRunnable") + , mImpl(aImpl) , mReasonCode(aReasonCode) , mReasonString(aReasonString) {} diff --git a/dom/base/nsContentSink.cpp b/dom/base/nsContentSink.cpp index b98d89bfc9ce..c0d9fcc7df7c 100644 --- a/dom/base/nsContentSink.cpp +++ b/dom/base/nsContentSink.cpp @@ -285,8 +285,9 @@ nsContentSink::ProcessHTTPHeaders(nsIChannel* aChannel) "Already dispatched an event?"); mProcessLinkHeaderEvent = - NewNonOwningRunnableMethod(this, - &nsContentSink::DoProcessLinkHeader); + NewNonOwningRunnableMethod("nsContentSink::DoProcessLinkHeader", + this, + &nsContentSink::DoProcessLinkHeader); rv = NS_DispatchToCurrentThread(mProcessLinkHeaderEvent.get()); if (NS_FAILED(rv)) { mProcessLinkHeaderEvent.Forget(); diff --git a/dom/base/nsContentUtils.cpp b/dom/base/nsContentUtils.cpp index 2be1c33166cc..82eef49bb7c4 100644 --- a/dom/base/nsContentUtils.cpp +++ b/dom/base/nsContentUtils.cpp @@ -5267,12 +5267,16 @@ nsContentUtils::IsInSameAnonymousTree(const nsINode* aNode, class AnonymousContentDestroyer : public Runnable { public: - explicit AnonymousContentDestroyer(nsCOMPtr* aContent) { + explicit AnonymousContentDestroyer(nsCOMPtr* aContent) + : mozilla::Runnable("AnonymousContentDestroyer") + { mContent.swap(*aContent); mParent = mContent->GetParent(); mDoc = mContent->OwnerDoc(); } - explicit AnonymousContentDestroyer(nsCOMPtr* aElement) { + explicit AnonymousContentDestroyer(nsCOMPtr* aElement) + : mozilla::Runnable("AnonymousContentDestroyer") + { mContent = aElement->forget(); mParent = mContent->GetParent(); mDoc = mContent->OwnerDoc(); @@ -10466,9 +10470,9 @@ nsContentUtils::UserInteractionObserver::Init() // started yet. It will have started by the time we have the chance to spin // the event loop. RefPtr self = this; - NS_DispatchToMainThread(NS_NewRunnableFunction([=] () { - HangMonitor::RegisterAnnotator(*self); - })); + NS_DispatchToMainThread( + NS_NewRunnableFunction("nsContentUtils::UserInteractionObserver::Init", + [=]() { HangMonitor::RegisterAnnotator(*self); })); } void diff --git a/dom/base/nsDOMMutationObserver.cpp b/dom/base/nsDOMMutationObserver.cpp index cd6894821139..2798d2eeee8c 100644 --- a/dom/base/nsDOMMutationObserver.cpp +++ b/dom/base/nsDOMMutationObserver.cpp @@ -867,6 +867,7 @@ nsDOMMutationObserver::HandleMutation() class AsyncMutationHandler : public mozilla::Runnable { public: + AsyncMutationHandler() : mozilla::Runnable("AsyncMutationHandler") {} NS_IMETHOD Run() override { nsDOMMutationObserver::HandleMutations(); diff --git a/dom/base/nsDOMWindowUtils.cpp b/dom/base/nsDOMWindowUtils.cpp index df58093bcf21..7465ed8c0800 100644 --- a/dom/base/nsDOMWindowUtils.cpp +++ b/dom/base/nsDOMWindowUtils.cpp @@ -1109,10 +1109,21 @@ nsDOMWindowUtils::SendNativeKeyEvent(int32_t aNativeKeyboardLayout, if (!widget) return NS_ERROR_FAILURE; - NS_DispatchToMainThread(NewRunnableMethod - - (widget, &nsIWidget::SynthesizeNativeKeyEvent, aNativeKeyboardLayout, - aNativeKeyCode, aModifiers, aCharacters, aUnmodifiedCharacters, aObserver)); + NS_DispatchToMainThread( + NewRunnableMethod("nsIWidget::SynthesizeNativeKeyEvent", + widget, + &nsIWidget::SynthesizeNativeKeyEvent, + aNativeKeyboardLayout, + aNativeKeyCode, + aModifiers, + aCharacters, + aUnmodifiedCharacters, + aObserver)); return NS_OK; } @@ -1129,11 +1140,15 @@ nsDOMWindowUtils::SendNativeMouseEvent(int32_t aScreenX, if (!widget) return NS_ERROR_FAILURE; - NS_DispatchToMainThread(NewRunnableMethod - - (widget, &nsIWidget::SynthesizeNativeMouseEvent, - LayoutDeviceIntPoint(aScreenX, aScreenY), aNativeMessage, aModifierFlags, - aObserver)); + NS_DispatchToMainThread( + NewRunnableMethod( + "nsIWidget::SynthesizeNativeMouseEvent", + widget, + &nsIWidget::SynthesizeNativeMouseEvent, + LayoutDeviceIntPoint(aScreenX, aScreenY), + aNativeMessage, + aModifierFlags, + aObserver)); return NS_OK; } @@ -1148,10 +1163,12 @@ nsDOMWindowUtils::SendNativeMouseMove(int32_t aScreenX, if (!widget) return NS_ERROR_FAILURE; - NS_DispatchToMainThread(NewRunnableMethod - - (widget, &nsIWidget::SynthesizeNativeMouseMove, - LayoutDeviceIntPoint(aScreenX, aScreenY), aObserver)); + NS_DispatchToMainThread(NewRunnableMethod( + "nsIWidget::SynthesizeNativeMouseMove", + widget, + &nsIWidget::SynthesizeNativeMouseMove, + LayoutDeviceIntPoint(aScreenX, aScreenY), + aObserver)); return NS_OK; } @@ -1173,11 +1190,25 @@ nsDOMWindowUtils::SendNativeMouseScrollEvent(int32_t aScreenX, return NS_ERROR_FAILURE; } - NS_DispatchToMainThread(NewRunnableMethod - - (widget, &nsIWidget::SynthesizeNativeMouseScrollEvent, - LayoutDeviceIntPoint(aScreenX, aScreenY), aNativeMessage, aDeltaX, aDeltaY, - aDeltaZ, aModifierFlags, aAdditionalFlags, aObserver)); + NS_DispatchToMainThread(NewRunnableMethod( + "nsIWidget::SynthesizeNativeMouseScrollEvent", + widget, + &nsIWidget::SynthesizeNativeMouseScrollEvent, + LayoutDeviceIntPoint(aScreenX, aScreenY), + aNativeMessage, + aDeltaX, + aDeltaY, + aDeltaZ, + aModifierFlags, + aAdditionalFlags, + aObserver)); return NS_OK; } @@ -1199,12 +1230,21 @@ nsDOMWindowUtils::SendNativeTouchPoint(uint32_t aPointerId, return NS_ERROR_INVALID_ARG; } - NS_DispatchToMainThread(NewRunnableMethod - - (widget, &nsIWidget::SynthesizeNativeTouchPoint, aPointerId, - (nsIWidget::TouchPointerState)aTouchState, - LayoutDeviceIntPoint(aScreenX, aScreenY), - aPressure, aOrientation, aObserver)); + NS_DispatchToMainThread( + NewRunnableMethod("nsIWidget::SynthesizeNativeTouchPoint", + widget, + &nsIWidget::SynthesizeNativeTouchPoint, + aPointerId, + (nsIWidget::TouchPointerState)aTouchState, + LayoutDeviceIntPoint(aScreenX, aScreenY), + aPressure, + aOrientation, + aObserver)); return NS_OK; } @@ -1219,10 +1259,14 @@ nsDOMWindowUtils::SendNativeTouchTap(int32_t aScreenX, return NS_ERROR_FAILURE; } - NS_DispatchToMainThread(NewRunnableMethod - - (widget, &nsIWidget::SynthesizeNativeTouchTap, - LayoutDeviceIntPoint(aScreenX, aScreenY), aLongTap, aObserver)); + NS_DispatchToMainThread( + NewRunnableMethod( + "nsIWidget::SynthesizeNativeTouchTap", + widget, + &nsIWidget::SynthesizeNativeTouchTap, + LayoutDeviceIntPoint(aScreenX, aScreenY), + aLongTap, + aObserver)); return NS_OK; } @@ -1234,8 +1278,11 @@ nsDOMWindowUtils::ClearNativeTouchSequence(nsIObserver* aObserver) return NS_ERROR_FAILURE; } - NS_DispatchToMainThread(NewRunnableMethod - (widget, &nsIWidget::ClearNativeTouchSequence, aObserver)); + NS_DispatchToMainThread( + NewRunnableMethod("nsIWidget::ClearNativeTouchSequence", + widget, + &nsIWidget::ClearNativeTouchSequence, + aObserver)); return NS_OK; } diff --git a/dom/base/nsDocElementCreatedNotificationRunner.h b/dom/base/nsDocElementCreatedNotificationRunner.h index 1e53c3dd0ba7..5568a37bbdaf 100644 --- a/dom/base/nsDocElementCreatedNotificationRunner.h +++ b/dom/base/nsDocElementCreatedNotificationRunner.h @@ -18,7 +18,8 @@ class nsDocElementCreatedNotificationRunner : public mozilla::Runnable { public: explicit nsDocElementCreatedNotificationRunner(nsIDocument* aDoc) - : mDoc(aDoc) + : mozilla::Runnable("nsDocElementCreatedNotificationRunner") + , mDoc(aDoc) { } diff --git a/dom/base/nsDocument.cpp b/dom/base/nsDocument.cpp index 27d713985d6d..0cabfc15fcdb 100644 --- a/dom/base/nsDocument.cpp +++ b/dom/base/nsDocument.cpp @@ -4430,8 +4430,10 @@ nsDocument::SetStyleSheetApplicableState(StyleSheet* aSheet, if (!mSSApplicableStateNotificationPending) { MOZ_RELEASE_ASSERT(NS_IsMainThread()); - nsCOMPtr notification = NewRunnableMethod(this, - &nsDocument::NotifyStyleSheetApplicableStateChanged); + nsCOMPtr notification = + NewRunnableMethod("nsDocument::NotifyStyleSheetApplicableStateChanged", + this, + &nsDocument::NotifyStyleSheetApplicableStateChanged); mSSApplicableStateNotificationPending = NS_SUCCEEDED( Dispatch("nsDocument::NotifyStyleSheetApplicableStateChanged", @@ -5046,7 +5048,9 @@ nsDocument::MaybeEndOutermostXBLUpdate() } else if (!mInDestructor) { if (!mMaybeEndOutermostXBLUpdateRunner) { mMaybeEndOutermostXBLUpdateRunner = - NewRunnableMethod(this, &nsDocument::MaybeEndOutermostXBLUpdate); + NewRunnableMethod("nsDocument::MaybeEndOutermostXBLUpdate", + this, + &nsDocument::MaybeEndOutermostXBLUpdate); } nsContentUtils::AddScriptRunner(mMaybeEndOutermostXBLUpdateRunner); } @@ -5377,7 +5381,9 @@ nsDocument::UnblockDOMContentLoaded() if (!mSynchronousDOMContentLoaded) { MOZ_RELEASE_ASSERT(NS_IsMainThread()); nsCOMPtr ev = - NewRunnableMethod(this, &nsDocument::DispatchContentLoadedEvents); + NewRunnableMethod("nsDocument::DispatchContentLoadedEvents", + this, + &nsDocument::DispatchContentLoadedEvents); Dispatch("nsDocument::DispatchContentLoadedEvents", TaskCategory::Other, ev.forget()); } else { DispatchContentLoadedEvents(); @@ -7015,7 +7021,9 @@ nsDocument::NotifyPossibleTitleChange(bool aBoundTitleElement) MOZ_RELEASE_ASSERT(NS_IsMainThread()); RefPtr> event = - NewNonOwningRunnableMethod(this, &nsDocument::DoNotifyPossibleTitleChange); + NewNonOwningRunnableMethod("nsDocument::DoNotifyPossibleTitleChange", + this, + &nsDocument::DoNotifyPossibleTitleChange); nsresult rv = Dispatch("nsDocument::DoNotifyPossibleTitleChange", TaskCategory::Other, do_AddRef(event)); if (NS_SUCCEEDED(rv)) { @@ -7165,7 +7173,9 @@ nsDocument::InitializeFrameLoader(nsFrameLoader* aLoader) mInitializableFrameLoaders.AppendElement(aLoader); if (!mFrameLoaderRunner) { mFrameLoaderRunner = - NewRunnableMethod(this, &nsDocument::MaybeInitializeFinalizeFrameLoaders); + NewRunnableMethod("nsDocument::MaybeInitializeFinalizeFrameLoaders", + this, + &nsDocument::MaybeInitializeFinalizeFrameLoaders); NS_ENSURE_TRUE(mFrameLoaderRunner, NS_ERROR_OUT_OF_MEMORY); nsContentUtils::AddScriptRunner(mFrameLoaderRunner); } @@ -7183,7 +7193,9 @@ nsDocument::FinalizeFrameLoader(nsFrameLoader* aLoader, nsIRunnable* aFinalizer) mFrameLoaderFinalizers.AppendElement(aFinalizer); if (!mFrameLoaderRunner) { mFrameLoaderRunner = - NewRunnableMethod(this, &nsDocument::MaybeInitializeFinalizeFrameLoaders); + NewRunnableMethod("nsDocument::MaybeInitializeFinalizeFrameLoaders", + this, + &nsDocument::MaybeInitializeFinalizeFrameLoaders); NS_ENSURE_TRUE(mFrameLoaderRunner, NS_ERROR_OUT_OF_MEMORY); nsContentUtils::AddScriptRunner(mFrameLoaderRunner); } @@ -7207,7 +7219,9 @@ nsDocument::MaybeInitializeFinalizeFrameLoaders() (mInitializableFrameLoaders.Length() || mFrameLoaderFinalizers.Length())) { mFrameLoaderRunner = - NewRunnableMethod(this, &nsDocument::MaybeInitializeFinalizeFrameLoaders); + NewRunnableMethod("nsDocument::MaybeInitializeFinalizeFrameLoaders", + this, + &nsDocument::MaybeInitializeFinalizeFrameLoaders); nsContentUtils::AddScriptRunner(mFrameLoaderRunner); } return; @@ -8784,8 +8798,8 @@ nsDocument::BlockOnload() // block onload only when there are no script blockers. ++mAsyncOnloadBlockCount; if (mAsyncOnloadBlockCount == 1) { - nsContentUtils::AddScriptRunner( - NewRunnableMethod(this, &nsDocument::AsyncBlockOnload)); + nsContentUtils::AddScriptRunner(NewRunnableMethod( + "nsDocument::AsyncBlockOnload", this, &nsDocument::AsyncBlockOnload)); } return; } @@ -8842,7 +8856,11 @@ nsDocument::UnblockOnload(bool aFireSync) class nsUnblockOnloadEvent : public Runnable { public: - explicit nsUnblockOnloadEvent(nsDocument* aDoc) : mDoc(aDoc) {} + explicit nsUnblockOnloadEvent(nsDocument* aDoc) + : mozilla::Runnable("nsUnblockOnloadEvent") + , mDoc(aDoc) + { + } NS_IMETHOD Run() override { mDoc->DoUnblockOnload(); return NS_OK; @@ -9724,6 +9742,7 @@ class nsDelayedEventDispatcher : public Runnable { public: explicit nsDelayedEventDispatcher(nsTArray>& aDocuments) + : mozilla::Runnable("nsDelayedEventDispatcher") { mDocuments.SwapElements(aDocuments); } @@ -9970,7 +9989,9 @@ nsIDocument::RegisterPendingLinkUpdate(Link* aLink) if (!mHasLinksToUpdateRunnable) { nsCOMPtr event = - NewRunnableMethod(this, &nsIDocument::FlushPendingLinkUpdatesFromRunnable); + NewRunnableMethod("nsIDocument::FlushPendingLinkUpdatesFromRunnable", + this, + &nsIDocument::FlushPendingLinkUpdatesFromRunnable); // Do this work in a second in the worst case. nsresult rv = NS_IdleDispatchToCurrentThread(event.forget(), 1000); @@ -10892,7 +10913,10 @@ class nsCallExitFullscreen : public Runnable { public: explicit nsCallExitFullscreen(nsIDocument* aDoc) - : mDoc(aDoc) {} + : mozilla::Runnable("nsCallExitFullscreen") + , mDoc(aDoc) + { + } NS_IMETHOD Run() override final { @@ -10972,7 +10996,10 @@ class ExitFullscreenScriptRunnable : public Runnable { public: explicit ExitFullscreenScriptRunnable(nsCOMArray&& aDocuments) - : mDocuments(Move(aDocuments)) { } + : mozilla::Runnable("ExitFullscreenScriptRunnable") + , mDocuments(Move(aDocuments)) + { + } NS_IMETHOD Run() override { @@ -11166,7 +11193,10 @@ class nsCallRequestFullScreen : public Runnable { public: explicit nsCallRequestFullScreen(UniquePtr&& aRequest) - : mRequest(Move(aRequest)) { } + : mozilla::Runnable("nsCallRequestFullScreen") + , mRequest(Move(aRequest)) + { + } NS_IMETHOD Run() override { @@ -11896,7 +11926,8 @@ class PointerLockRequest final : public Runnable { public: PointerLockRequest(Element* aElement, bool aUserInputOrChromeCaller) - : mElement(do_GetWeakReference(aElement)) + : mozilla::Runnable("PointerLockRequest") + , mElement(do_GetWeakReference(aElement)) , mDocument(do_GetWeakReference(aElement->OwnerDoc())) , mUserInputOrChromeCaller(aUserInputOrChromeCaller) {} @@ -12247,7 +12278,9 @@ nsDocument::GetVisibilityState() const nsDocument::PostVisibilityUpdateEvent() { nsCOMPtr event = - NewRunnableMethod(this, &nsDocument::UpdateVisibilityState); + NewRunnableMethod("nsDocument::UpdateVisibilityState", + this, + &nsDocument::UpdateVisibilityState); Dispatch("nsDocument::UpdateVisibilityState", TaskCategory::Other, event.forget()); } @@ -12787,7 +12820,9 @@ nsDocument::ScheduleIntersectionObserverNotification() } MOZ_RELEASE_ASSERT(NS_IsMainThread()); nsCOMPtr notification = - NewRunnableMethod(this, &nsDocument::NotifyIntersectionObservers); + NewRunnableMethod("nsDocument::NotifyIntersectionObservers", + this, + &nsDocument::NotifyIntersectionObservers); Dispatch("nsDocument::IntersectionObserverNotification", TaskCategory::Other, notification.forget()); } @@ -13077,7 +13112,9 @@ nsIDocument::RebuildUserFontSet() if (!mPostedFlushUserFontSet) { MOZ_RELEASE_ASSERT(NS_IsMainThread()); nsCOMPtr ev = - NewRunnableMethod(this, &nsIDocument::HandleRebuildUserFontSet); + NewRunnableMethod("nsIDocument::HandleRebuildUserFontSet", + this, + &nsIDocument::HandleRebuildUserFontSet); if (NS_SUCCEEDED(Dispatch("nsIDocument::HandleRebuildUserFontSet", TaskCategory::Other, ev.forget()))) { mPostedFlushUserFontSet = true; diff --git a/dom/base/nsFocusManager.cpp b/dom/base/nsFocusManager.cpp index 210b77a2ffa2..2d0839b9d1a3 100644 --- a/dom/base/nsFocusManager.cpp +++ b/dom/base/nsFocusManager.cpp @@ -2021,10 +2021,14 @@ nsFocusManager::Focus(nsPIDOMWindowOuter* aWindow, class FocusBlurEvent : public Runnable { public: - FocusBlurEvent(nsISupports* aTarget, EventMessage aEventMessage, - nsPresContext* aContext, bool aWindowRaised, - bool aIsRefocus, EventTarget* aRelatedTarget) - : mTarget(aTarget) + FocusBlurEvent(nsISupports* aTarget, + EventMessage aEventMessage, + nsPresContext* aContext, + bool aWindowRaised, + bool aIsRefocus, + EventTarget* aRelatedTarget) + : mozilla::Runnable("FocusBlurEvent") + , mTarget(aTarget) , mContext(aContext) , mEventMessage(aEventMessage) , mWindowRaised(aWindowRaised) @@ -2055,12 +2059,14 @@ public: class FocusInOutEvent : public Runnable { public: - FocusInOutEvent(nsISupports* aTarget, EventMessage aEventMessage, - nsPresContext* aContext, - nsPIDOMWindowOuter* aOriginalFocusedWindow, - nsIContent* aOriginalFocusedContent, - EventTarget* aRelatedTarget) - : mTarget(aTarget) + FocusInOutEvent(nsISupports* aTarget, + EventMessage aEventMessage, + nsPresContext* aContext, + nsPIDOMWindowOuter* aOriginalFocusedWindow, + nsIContent* aOriginalFocusedContent, + EventTarget* aRelatedTarget) + : mozilla::Runnable("FocusInOutEvent") + , mTarget(aTarget) , mContext(aContext) , mEventMessage(aEventMessage) , mOriginalFocusedWindow(aOriginalFocusedWindow) @@ -2264,8 +2270,8 @@ nsFocusManager::RaiseWindow(nsPIDOMWindowOuter* aWindow) nsCOMPtr active(mActiveWindow); nsCOMPtr window(aWindow); RefPtr self(this); - NS_DispatchToCurrentThread( - NS_NewRunnableFunction([self, active, window] () -> void { + NS_DispatchToCurrentThread(NS_NewRunnableFunction( + "nsFocusManager::RaiseWindow", [self, active, window]() -> void { if (active) { self->WindowLowered(active); } @@ -3623,6 +3629,7 @@ class PointerUnlocker : public Runnable { public: PointerUnlocker() + : mozilla::Runnable("PointerUnlocker") { MOZ_ASSERT(!PointerUnlocker::sActiveUnlocker); PointerUnlocker::sActiveUnlocker = this; diff --git a/dom/base/nsFrameLoader.cpp b/dom/base/nsFrameLoader.cpp index 9857ba3a50fc..eca46e193bd7 100644 --- a/dom/base/nsFrameLoader.cpp +++ b/dom/base/nsFrameLoader.cpp @@ -1985,7 +1985,11 @@ class nsFrameLoaderDestroyRunnable : public Runnable public: explicit nsFrameLoaderDestroyRunnable(nsFrameLoader* aFrameLoader) - : mFrameLoader(aFrameLoader), mPhase(eDestroyDocShell) {} + : mozilla::Runnable("nsFrameLoaderDestroyRunnable") + , mFrameLoader(aFrameLoader) + , mPhase(eDestroyDocShell) + { + } NS_IMETHOD Run() override; }; @@ -2070,9 +2074,10 @@ nsFrameLoader::StartDestroy() nsCOMPtr groupedSHistory; GetGroupedSHistory(getter_AddRefs(groupedSHistory)); if (groupedSHistory) { - NS_DispatchToCurrentThread(NS_NewRunnableFunction([groupedSHistory] () { - groupedSHistory->CloseInactiveFrameLoaderOwners(); - })); + NS_DispatchToCurrentThread(NS_NewRunnableFunction( + "nsFrameLoader::StartDestroy", [groupedSHistory]() { + groupedSHistory->CloseInactiveFrameLoaderOwners(); + })); } } @@ -3167,6 +3172,7 @@ public: JS::Handle aCpows, nsFrameLoader* aFrameLoader) : nsSameProcessAsyncMessageBase(aRootingCx, aCpows) + , mozilla::Runnable("nsAsyncMessageToChild") , mFrameLoader(aFrameLoader) { } diff --git a/dom/base/nsFrameMessageManager.cpp b/dom/base/nsFrameMessageManager.cpp index 45c769d8e9f7..a7bc4ee8c7b7 100644 --- a/dom/base/nsFrameMessageManager.cpp +++ b/dom/base/nsFrameMessageManager.cpp @@ -1743,6 +1743,7 @@ public: nsAsyncMessageToSameProcessChild(JS::RootingContext* aRootingCx, JS::Handle aCpows) : nsSameProcessAsyncMessageBase(aRootingCx, aCpows) + , mozilla::Runnable("nsAsyncMessageToSameProcessChild") { } NS_IMETHOD Run() override { diff --git a/dom/base/nsGlobalWindow.cpp b/dom/base/nsGlobalWindow.cpp index c0abaad8f052..43a2ec4864e5 100644 --- a/dom/base/nsGlobalWindow.cpp +++ b/dom/base/nsGlobalWindow.cpp @@ -3036,8 +3036,8 @@ nsGlobalWindow::SetNewDocument(nsIDocument* aDocument, happens, setting status isn't a big requirement, so don't. (Doesn't happen under normal circumstances, but bug 49615 describes a case.) */ - nsContentUtils::AddScriptRunner( - NewRunnableMethod(this, &nsGlobalWindow::ClearStatus)); + nsContentUtils::AddScriptRunner(NewRunnableMethod( + "nsGlobalWindow::ClearStatus", this, &nsGlobalWindow::ClearStatus)); // Sometimes, WouldReuseInnerWindow() returns true even if there's no inner // window (see bug 776497). Be safe. @@ -3347,7 +3347,8 @@ nsGlobalWindow::SetNewDocument(nsIDocument* aDocument, // up with the outer. See bug 969156. if (createdInnerWindow) { nsContentUtils::AddScriptRunner( - NewRunnableMethod(newInnerWindow, + NewRunnableMethod("nsGlobalWindow::FireOnNewGlobalObject", + newInnerWindow, &nsGlobalWindow::FireOnNewGlobalObject)); } @@ -3361,7 +3362,9 @@ nsGlobalWindow::SetNewDocument(nsIDocument* aDocument, nsContentUtils::IsSystemPrincipal(mDoc->NodePrincipal())) { newInnerWindow->mHasNotifiedGlobalCreated = true; nsContentUtils::AddScriptRunner( - NewRunnableMethod(this, &nsGlobalWindow::DispatchDOMWindowCreated)); + NewRunnableMethod("nsGlobalWindow::DispatchDOMWindowCreated", + this, + &nsGlobalWindow::DispatchDOMWindowCreated)); } } @@ -6872,10 +6875,13 @@ class FullscreenTransitionTask : public Runnable { public: FullscreenTransitionTask(const FullscreenTransitionDuration& aDuration, - nsGlobalWindow* aWindow, bool aFullscreen, - nsIWidget* aWidget, nsIScreen* aScreen, + nsGlobalWindow* aWindow, + bool aFullscreen, + nsIWidget* aWidget, + nsIScreen* aScreen, nsISupports* aTransitionData) - : mWindow(aWindow) + : mozilla::Runnable("FullscreenTransitionTask") + , mWindow(aWindow) , mWidget(aWidget) , mScreen(aScreen) , mTransitionData(aTransitionData) @@ -9211,8 +9217,9 @@ class nsCloseEvent : public Runnable { RefPtr mWindow; bool mIndirect; - nsCloseEvent(nsGlobalWindow *aWindow, bool aIndirect) - : mWindow(aWindow) + nsCloseEvent(nsGlobalWindow* aWindow, bool aIndirect) + : mozilla::Runnable("nsCloseEvent") + , mWindow(aWindow) , mIndirect(aIndirect) {} @@ -9641,11 +9648,11 @@ struct BrowserCompartmentMatcher : public js::CompartmentFilter { class WindowDestroyedEvent final : public Runnable { public: - WindowDestroyedEvent(nsIDOMWindow* aWindow, uint64_t aID, - const char* aTopic) : - mID(aID), - mPhase(Phase::Destroying), - mTopic(aTopic) + WindowDestroyedEvent(nsIDOMWindow* aWindow, uint64_t aID, const char* aTopic) + : mozilla::Runnable("WindowDestroyedEvent") + , mID(aID) + , mPhase(Phase::Destroying) + , mTopic(aTopic) { mWindow = do_GetWeakReference(aWindow); } @@ -10135,7 +10142,12 @@ public: ChildCommandDispatcher(nsGlobalWindow* aWindow, nsITabChild* aTabChild, const nsAString& aAction) - : mWindow(aWindow), mTabChild(aTabChild), mAction(aAction) {} + : mozilla::Runnable("ChildCommandDispatcher") + , mWindow(aWindow) + , mTabChild(aTabChild) + , mAction(aAction) + { + } NS_IMETHOD Run() override { @@ -10164,7 +10176,11 @@ class CommandDispatcher : public Runnable public: CommandDispatcher(nsIDOMXULCommandDispatcher* aDispatcher, const nsAString& aAction) - : mDispatcher(aDispatcher), mAction(aAction) {} + : mozilla::Runnable("CommandDispatcher") + , mDispatcher(aDispatcher) + , mAction(aAction) + { + } NS_IMETHOD Run() override { @@ -10956,10 +10972,11 @@ nsGlobalWindow::PageHidden() class HashchangeCallback : public Runnable { public: - HashchangeCallback(const nsAString &aOldURL, - const nsAString &aNewURL, + HashchangeCallback(const nsAString& aOldURL, + const nsAString& aNewURL, nsGlobalWindow* aWindow) - : mWindow(aWindow) + : mozilla::Runnable("HashchangeCallback") + , mWindow(aWindow) { MOZ_ASSERT(mWindow); MOZ_ASSERT(mWindow->IsInnerWindow()); @@ -11572,8 +11589,11 @@ public: uint32_t aTimeInS, bool aCallOnidle, nsGlobalWindow* aIdleWindow) - : mIdleObserver(aIdleObserver), mTimeInS(aTimeInS), mIdleWindow(aIdleWindow), - mCallOnidle(aCallOnidle) + : mozilla::Runnable("NotifyIdleObserverRunnable") + , mIdleObserver(aIdleObserver) + , mTimeInS(aTimeInS) + , mIdleWindow(aIdleWindow) + , mCallOnidle(aCallOnidle) { } NS_IMETHOD Run() override @@ -11681,10 +11701,12 @@ nsGlobalWindow::ScheduleNextIdleObserverCallback() } mIdleTimer->Cancel(); - rv = mIdleTimer->InitWithFuncCallback(IdleObserverTimerCallback, - this, - callbackTimeMS, - nsITimer::TYPE_ONE_SHOT); + rv = mIdleTimer->InitWithNamedFuncCallback( + IdleObserverTimerCallback, + this, + callbackTimeMS, + nsITimer::TYPE_ONE_SHOT, + "nsGlobalWindow::ScheduleNextIdleObserverCallback"); NS_ENSURE_SUCCESS(rv, rv); return NS_OK; @@ -11726,10 +11748,12 @@ nsGlobalWindow::ScheduleActiveTimerCallback() mIdleTimer->Cancel(); uint32_t fuzzFactorInMS = GetFuzzTimeMS(); - nsresult rv = mIdleTimer->InitWithFuncCallback(IdleActiveTimerCallback, - this, - fuzzFactorInMS, - nsITimer::TYPE_ONE_SHOT); + nsresult rv = mIdleTimer->InitWithNamedFuncCallback( + IdleActiveTimerCallback, + this, + fuzzFactorInMS, + nsITimer::TYPE_ONE_SHOT, + "nsGlobalWindow::ScheduleActiveTimerCallback"); NS_ENSURE_SUCCESS(rv, rv); return NS_OK; } @@ -12818,7 +12842,8 @@ public: ~AutoUnblockScriptClosing() { void (nsGlobalWindow::*run)() = &nsGlobalWindow::UnblockScriptedClosing; - nsCOMPtr caller = NewRunnableMethod(mWin, run); + nsCOMPtr caller = NewRunnableMethod( + "AutoUnblockScriptClosing::~AutoUnblockScriptClosing", mWin, run); mWin->Dispatch("nsGlobalWindow::UnblockScriptedClosing", TaskCategory::Other, caller.forget()); } diff --git a/dom/base/nsIGlobalObject.cpp b/dom/base/nsIGlobalObject.cpp index 6479c947b370..c3b5a51b922f 100644 --- a/dom/base/nsIGlobalObject.cpp +++ b/dom/base/nsIGlobalObject.cpp @@ -43,6 +43,7 @@ class UnlinkHostObjectURIsRunnable final : public mozilla::Runnable { public: explicit UnlinkHostObjectURIsRunnable(nsTArray& aURIs) + : mozilla::Runnable("UnlinkHostObjectURIsRunnable") { mURIs.SwapElements(aURIs); } diff --git a/dom/base/nsInProcessTabChildGlobal.cpp b/dom/base/nsInProcessTabChildGlobal.cpp index 2a0aeaf7b566..ad80392b05cc 100644 --- a/dom/base/nsInProcessTabChildGlobal.cpp +++ b/dom/base/nsInProcessTabChildGlobal.cpp @@ -309,9 +309,15 @@ nsInProcessTabChildGlobal::InitTabChildGlobal() class nsAsyncScriptLoad : public Runnable { public: - nsAsyncScriptLoad(nsInProcessTabChildGlobal* aTabChild, const nsAString& aURL, - bool aRunInGlobalScope) - : mTabChild(aTabChild), mURL(aURL), mRunInGlobalScope(aRunInGlobalScope) {} + nsAsyncScriptLoad(nsInProcessTabChildGlobal* aTabChild, + const nsAString& aURL, + bool aRunInGlobalScope) + : mozilla::Runnable("nsAsyncScriptLoad") + , mTabChild(aTabChild) + , mURL(aURL) + , mRunInGlobalScope(aRunInGlobalScope) + { + } NS_IMETHOD Run() override { diff --git a/dom/base/nsJSEnvironment.cpp b/dom/base/nsJSEnvironment.cpp index b0054378c687..c342a8116cf5 100644 --- a/dom/base/nsJSEnvironment.cpp +++ b/dom/base/nsJSEnvironment.cpp @@ -614,7 +614,8 @@ public: JS::RootingContext* aRootingCx, xpc::ErrorReport* aReport, JS::Handle aError) - : mWindow(aWindow) + : mozilla::Runnable("ScriptErrorEvent") + , mWindow(aWindow) , mReport(aReport) , mError(aRootingCx, aError) {} @@ -2398,7 +2399,11 @@ class NotifyGCEndRunnable : public Runnable nsString mMessage; public: - explicit NotifyGCEndRunnable(const nsString& aMessage) : mMessage(aMessage) {} + explicit NotifyGCEndRunnable(const nsString& aMessage) + : mozilla::Runnable("NotifyGCEndRunnable") + , mMessage(aMessage) + { + } NS_DECL_NSIRUNNABLE }; @@ -2723,7 +2728,8 @@ class AsyncTaskRunnable final : public Runnable public: explicit AsyncTaskRunnable(JS::AsyncTask* aTask) - : mTask(aTask) + : mozilla::Runnable("AsyncTaskRunnable") + , mTask(aTask) { MOZ_ASSERT(mTask); } diff --git a/dom/base/nsJSEnvironment.h b/dom/base/nsJSEnvironment.h index 65f09b3b8d94..4fa39a1977c3 100644 --- a/dom/base/nsJSEnvironment.h +++ b/dom/base/nsJSEnvironment.h @@ -179,7 +179,8 @@ class AsyncErrorReporter final : public mozilla::Runnable public: // aWindow may be null if this error report is not associated with a window explicit AsyncErrorReporter(xpc::ErrorReport* aReport) - : mReport(aReport) + : Runnable("dom::AsyncErrorReporter") + , mReport(aReport) {} NS_IMETHOD Run() override diff --git a/dom/base/nsObjectLoadingContent.cpp b/dom/base/nsObjectLoadingContent.cpp index 2c839a291353..79185173e085 100644 --- a/dom/base/nsObjectLoadingContent.cpp +++ b/dom/base/nsObjectLoadingContent.cpp @@ -279,7 +279,8 @@ public: } nsSimplePluginEvent(nsIDocument* aTarget, const nsAString& aEvent) - : mTarget(aTarget) + : mozilla::Runnable("nsSimplePluginEvent") + , mTarget(aTarget) , mDocument(aTarget) , mEvent(aEvent) { @@ -289,7 +290,8 @@ public: nsSimplePluginEvent(nsIContent* aTarget, nsIDocument* aDocument, const nsAString& aEvent) - : mTarget(aTarget) + : mozilla::Runnable("nsSimplePluginEvent") + , mTarget(aTarget) , mDocument(aDocument) , mEvent(aEvent) { diff --git a/dom/base/nsReferencedElement.h b/dom/base/nsReferencedElement.h index 730a19610058..9380d78da2c3 100644 --- a/dom/base/nsReferencedElement.h +++ b/dom/base/nsReferencedElement.h @@ -129,8 +129,12 @@ private: { public: ChangeNotification(nsReferencedElement* aTarget, - Element* aFrom, Element* aTo) - : Notification(aTarget), mFrom(aFrom), mTo(aTo) + Element* aFrom, + Element* aTo) + : mozilla::Runnable("nsReferencedElement::ChangeNotification") + , Notification(aTarget) + , mFrom(aFrom) + , mTo(aTo) {} NS_DECL_ISUPPORTS_INHERITED diff --git a/dom/base/nsTextNode.cpp b/dom/base/nsTextNode.cpp index 25c2d3525678..7bf2cfa2510d 100644 --- a/dom/base/nsTextNode.cpp +++ b/dom/base/nsTextNode.cpp @@ -273,7 +273,8 @@ nsAttributeTextNode::AttributeChanged(nsIDocument* aDocument, // that if we get unbound while the event is up that's ok -- we'll just // have no grandparent when it fires, and will do nothing. void (nsAttributeTextNode::*update)() = &nsAttributeTextNode::UpdateText; - nsContentUtils::AddScriptRunner(NewRunnableMethod(this, update)); + nsContentUtils::AddScriptRunner( + NewRunnableMethod("nsAttributeTextNode::AttributeChanged", this, update)); } } diff --git a/dom/cache/Context.cpp b/dom/cache/Context.cpp index 66f56a8bcfe3..ea49046f0c67 100644 --- a/dom/cache/Context.cpp +++ b/dom/cache/Context.cpp @@ -736,8 +736,10 @@ Context::ThreadsafeHandle::AllowToClose() // Dispatch is guaranteed to succeed here because we block shutdown until // all Contexts have been destroyed. - nsCOMPtr runnable = - NewRunnableMethod(this, &ThreadsafeHandle::AllowToCloseOnOwningThread); + nsCOMPtr runnable = NewRunnableMethod( + "dom::cache::Context::ThreadsafeHandle::AllowToCloseOnOwningThread", + this, + &ThreadsafeHandle::AllowToCloseOnOwningThread); MOZ_ALWAYS_SUCCEEDS( mOwningEventTarget->Dispatch(runnable.forget(), nsIThread::DISPATCH_NORMAL)); } @@ -752,8 +754,11 @@ Context::ThreadsafeHandle::InvalidateAndAllowToClose() // Dispatch is guaranteed to succeed here because we block shutdown until // all Contexts have been destroyed. - nsCOMPtr runnable = - NewRunnableMethod(this, &ThreadsafeHandle::InvalidateAndAllowToCloseOnOwningThread); + nsCOMPtr runnable = NewRunnableMethod( + "dom::cache::Context::ThreadsafeHandle::" + "InvalidateAndAllowToCloseOnOwningThread", + this, + &ThreadsafeHandle::InvalidateAndAllowToCloseOnOwningThread); MOZ_ALWAYS_SUCCEEDS( mOwningEventTarget->Dispatch(runnable.forget(), nsIThread::DISPATCH_NORMAL)); } diff --git a/dom/cache/Manager.cpp b/dom/cache/Manager.cpp index 357a8f0820e1..b06abb073686 100644 --- a/dom/cache/Manager.cpp +++ b/dom/cache/Manager.cpp @@ -912,7 +912,10 @@ private: // here since we are guaranteed the Action will survive until // CompleteOnInitiatingThread is called. nsCOMPtr runnable = NewNonOwningRunnableMethod( - this, &CachePutAllAction::OnAsyncCopyComplete, aRv); + "dom::cache::Manager::CachePutAllAction::OnAsyncCopyComplete", + this, + &CachePutAllAction::OnAsyncCopyComplete, + aRv); MOZ_ALWAYS_SUCCEEDS( mTarget->Dispatch(runnable.forget(), nsIThread::DISPATCH_NORMAL)); } @@ -1766,7 +1769,8 @@ Manager::~Manager() // Don't spin the event loop in the destructor waiting for the thread to // shutdown. Defer this to the main thread, instead. - MOZ_ALWAYS_SUCCEEDS(NS_DispatchToMainThread(NewRunnableMethod(ioThread, &nsIThread::Shutdown))); + MOZ_ALWAYS_SUCCEEDS(NS_DispatchToMainThread(NewRunnableMethod("nsIThread::Shutdown", + ioThread, &nsIThread::Shutdown))); } void diff --git a/dom/cache/PrincipalVerifier.cpp b/dom/cache/PrincipalVerifier.cpp index c92db4e788c2..be27134d2f43 100644 --- a/dom/cache/PrincipalVerifier.cpp +++ b/dom/cache/PrincipalVerifier.cpp @@ -65,7 +65,8 @@ PrincipalVerifier::RemoveListener(Listener* aListener) PrincipalVerifier::PrincipalVerifier(Listener* aListener, PBackgroundParent* aActor, const PrincipalInfo& aPrincipalInfo) - : mActor(BackgroundParent::GetContentParent(aActor)) + : Runnable("dom::cache::PrincipalVerifier") + , mActor(BackgroundParent::GetContentParent(aActor)) , mPrincipalInfo(aPrincipalInfo) , mInitiatingEventTarget(GetCurrentThreadSerialEventTarget()) , mResult(NS_OK) diff --git a/dom/cache/ReadStream.cpp b/dom/cache/ReadStream.cpp index 70e41b31eddf..e78377e953d6 100644 --- a/dom/cache/ReadStream.cpp +++ b/dom/cache/ReadStream.cpp @@ -132,7 +132,8 @@ class ReadStream::Inner::NoteClosedRunnable final : public CancelableRunnable { public: explicit NoteClosedRunnable(ReadStream::Inner* aStream) - : mStream(aStream) + : CancelableRunnable("dom::cache::ReadStream::Inner::NoteClosedRunnable") + , mStream(aStream) { } NS_IMETHOD Run() override @@ -167,7 +168,8 @@ class ReadStream::Inner::ForgetRunnable final : public CancelableRunnable { public: explicit ForgetRunnable(ReadStream::Inner* aStream) - : mStream(aStream) + : CancelableRunnable("dom::cache::ReadStream::Inner::ForgetRunnable") + , mStream(aStream) { } NS_IMETHOD Run() override diff --git a/dom/canvas/CanvasRenderingContext2D.cpp b/dom/canvas/CanvasRenderingContext2D.cpp index a1fff6e21ecf..55b3b6e8ab62 100644 --- a/dom/canvas/CanvasRenderingContext2D.cpp +++ b/dom/canvas/CanvasRenderingContext2D.cpp @@ -1576,8 +1576,9 @@ CanvasRenderingContext2D::ScheduleStableStateCallback() mHasPendingStableStateCallback = true; nsContentUtils::RunInStableState( - NewRunnableMethod(this, &CanvasRenderingContext2D::OnStableState) - ); + NewRunnableMethod("dom::CanvasRenderingContext2D::OnStableState", + this, + &CanvasRenderingContext2D::OnStableState)); } void diff --git a/dom/canvas/ImageBitmap.cpp b/dom/canvas/ImageBitmap.cpp index f6d5d86cf698..9af236548061 100644 --- a/dom/canvas/ImageBitmap.cpp +++ b/dom/canvas/ImageBitmap.cpp @@ -1076,7 +1076,8 @@ class FulfillImageBitmapPromiseTask final : public Runnable, { public: FulfillImageBitmapPromiseTask(Promise* aPromise, ImageBitmap* aImageBitmap) - : FulfillImageBitmapPromise(aPromise, aImageBitmap) + : Runnable("dom::FulfillImageBitmapPromiseTask") + , FulfillImageBitmapPromise(aPromise, aImageBitmap) { } @@ -1278,7 +1279,8 @@ public: nsIGlobalObject* aGlobal, Blob& aBlob, const Maybe& aCropRect) - :CreateImageBitmapFromBlob(aPromise, aGlobal, aBlob, aCropRect) + : Runnable("dom::CreateImageBitmapFromBlobTask") + , CreateImageBitmapFromBlob(aPromise, aGlobal, aBlob, aCropRect) { } @@ -1732,12 +1734,18 @@ class MapDataIntoBufferSourceTask final : public Runnable, { public: MapDataIntoBufferSourceTask(JSContext* aCx, - Promise *aPromise, - ImageBitmap *aImageBitmap, + Promise* aPromise, + ImageBitmap* aImageBitmap, const T& aBuffer, int32_t aOffset, ImageBitmapFormat aFormat) - : MapDataIntoBufferSource(aCx, aPromise, aImageBitmap, aBuffer, aOffset, aFormat) + : Runnable("dom::MapDataIntoBufferSourceTask") + , MapDataIntoBufferSource(aCx, + aPromise, + aImageBitmap, + aBuffer, + aOffset, + aFormat) { } diff --git a/dom/canvas/WebGLContext.cpp b/dom/canvas/WebGLContext.cpp index d8f998f7ebf4..cf1a8ff55816 100644 --- a/dom/canvas/WebGLContext.cpp +++ b/dom/canvas/WebGLContext.cpp @@ -1737,9 +1737,10 @@ class UpdateContextLossStatusTask : public CancelableRunnable RefPtr mWebGL; public: - explicit UpdateContextLossStatusTask(WebGLContext* webgl) - : mWebGL(webgl) - { + explicit UpdateContextLossStatusTask(WebGLContext* webgl) + : CancelableRunnable("UpdateContextLossStatusTask") + , mWebGL(webgl) + { } NS_IMETHOD Run() override { diff --git a/dom/canvas/WebGLQuery.cpp b/dom/canvas/WebGLQuery.cpp index c7cdaddfe2fe..f6cc7d54aac2 100644 --- a/dom/canvas/WebGLQuery.cpp +++ b/dom/canvas/WebGLQuery.cpp @@ -18,13 +18,16 @@ class AvailableRunnable final : public Runnable const RefPtr mQuery; public: - explicit AvailableRunnable(WebGLQuery* query) - : mQuery(query) - { } + explicit AvailableRunnable(WebGLQuery* query) + : Runnable("AvailableRunnable") + , mQuery(query) + { + } - NS_IMETHOD Run() override { - mQuery->mCanBeAvailable = true; - return NS_OK; + NS_IMETHOD Run() override + { + mQuery->mCanBeAvailable = true; + return NS_OK; } }; diff --git a/dom/events/AsyncEventDispatcher.cpp b/dom/events/AsyncEventDispatcher.cpp index 1455edc55d9c..050c2cf49c15 100644 --- a/dom/events/AsyncEventDispatcher.cpp +++ b/dom/events/AsyncEventDispatcher.cpp @@ -22,7 +22,8 @@ using namespace dom; AsyncEventDispatcher::AsyncEventDispatcher(EventTarget* aTarget, WidgetEvent& aEvent) - : mTarget(aTarget) + : CancelableRunnable("AsyncEventDispatcher") + , mTarget(aTarget) { MOZ_ASSERT(mTarget); RefPtr event = diff --git a/dom/events/AsyncEventDispatcher.h b/dom/events/AsyncEventDispatcher.h index ea17be9977dd..a2109203e60c 100644 --- a/dom/events/AsyncEventDispatcher.h +++ b/dom/events/AsyncEventDispatcher.h @@ -34,25 +34,31 @@ public: * the event is dispatched to it, otherwise the dispatch path starts * at the first chrome ancestor of that target. */ - AsyncEventDispatcher(nsINode* aTarget, const nsAString& aEventType, - bool aBubbles, bool aOnlyChromeDispatch) - : mTarget(aTarget) + AsyncEventDispatcher(nsINode* aTarget, + const nsAString& aEventType, + bool aBubbles, + bool aOnlyChromeDispatch) + : CancelableRunnable("AsyncEventDispatcher") + , mTarget(aTarget) , mEventType(aEventType) , mBubbles(aBubbles) , mOnlyChromeDispatch(aOnlyChromeDispatch) { } - AsyncEventDispatcher(dom::EventTarget* aTarget, const nsAString& aEventType, + AsyncEventDispatcher(dom::EventTarget* aTarget, + const nsAString& aEventType, bool aBubbles) - : mTarget(aTarget) + : CancelableRunnable("AsyncEventDispatcher") + , mTarget(aTarget) , mEventType(aEventType) , mBubbles(aBubbles) { } AsyncEventDispatcher(dom::EventTarget* aTarget, nsIDOMEvent* aEvent) - : mTarget(aTarget) + : CancelableRunnable("AsyncEventDispatcher") + , mTarget(aTarget) , mEvent(aEvent) { } diff --git a/dom/events/DataTransferItem.cpp b/dom/events/DataTransferItem.cpp index 2bb8ed8ae150..36addf0d02fd 100644 --- a/dom/events/DataTransferItem.cpp +++ b/dom/events/DataTransferItem.cpp @@ -446,9 +446,10 @@ DataTransferItem::GetAsString(FunctionStringCallback* aCallback, class GASRunnable final : public Runnable { public: - GASRunnable(FunctionStringCallback* aCallback, - const nsAString& aStringData) - : mCallback(aCallback), mStringData(aStringData) + GASRunnable(FunctionStringCallback* aCallback, const nsAString& aStringData) + : mozilla::Runnable("GASRunnable") + , mCallback(aCallback) + , mStringData(aStringData) {} NS_IMETHOD Run() override diff --git a/dom/events/EventStateManager.cpp b/dom/events/EventStateManager.cpp index 9cddab077663..c3add0a51c4e 100644 --- a/dom/events/EventStateManager.cpp +++ b/dom/events/EventStateManager.cpp @@ -1412,9 +1412,12 @@ EventStateManager::CreateClickHoldTimer(nsPresContext* inPresContext, int32_t clickHoldDelay = Preferences::GetInt("ui.click_hold_context_menus.delay", 500); mClickHoldTimer->SetTarget(SystemGroup::EventTargetFor(TaskCategory::Other)); - mClickHoldTimer->InitWithFuncCallback(sClickHoldCallback, this, - clickHoldDelay, - nsITimer::TYPE_ONE_SHOT); + mClickHoldTimer->InitWithNamedFuncCallback( + sClickHoldCallback, + this, + clickHoldDelay, + nsITimer::TYPE_ONE_SHOT, + "EventStateManager::CreateClickHoldTimer"); } } // CreateClickHoldTimer diff --git a/dom/events/TextComposition.cpp b/dom/events/TextComposition.cpp index 425737606ff9..f17f2dc27a01 100644 --- a/dom/events/TextComposition.cpp +++ b/dom/events/TextComposition.cpp @@ -712,12 +712,13 @@ TextComposition::HasEditor() const ******************************************************************************/ TextComposition::CompositionEventDispatcher::CompositionEventDispatcher( - TextComposition* aComposition, - nsINode* aEventTarget, - EventMessage aEventMessage, - const nsAString& aData, - bool aIsSynthesizedEvent) - : mTextComposition(aComposition) + TextComposition* aComposition, + nsINode* aEventTarget, + EventMessage aEventMessage, + const nsAString& aData, + bool aIsSynthesizedEvent) + : Runnable("TextComposition::CompositionEventDispatcher") + , mTextComposition(aComposition) , mEventTarget(aEventTarget) , mData(aData) , mEventMessage(aEventMessage) diff --git a/dom/events/TextComposition.h b/dom/events/TextComposition.h index 1925a1c47d3d..4ca3fd0b35bd 100644 --- a/dom/events/TextComposition.h +++ b/dom/events/TextComposition.h @@ -433,7 +433,9 @@ private: EventMessage mEventMessage; bool mIsSynthesizedEvent; - CompositionEventDispatcher() : mIsSynthesizedEvent(false) {}; + CompositionEventDispatcher() + : Runnable("TextComposition::CompositionEventDispatcher") + , mIsSynthesizedEvent(false){}; }; /** diff --git a/dom/events/WheelHandlingHelper.cpp b/dom/events/WheelHandlingHelper.cpp index 301c1803f4c2..4f773009295d 100644 --- a/dom/events/WheelHandlingHelper.cpp +++ b/dom/events/WheelHandlingHelper.cpp @@ -332,8 +332,11 @@ WheelTransaction::SetTimeout() } sTimer->Cancel(); DebugOnly rv = - sTimer->InitWithFuncCallback(OnTimeout, nullptr, GetTimeoutTime(), - nsITimer::TYPE_ONE_SHOT); + sTimer->InitWithNamedFuncCallback(OnTimeout, + nullptr, + GetTimeoutTime(), + nsITimer::TYPE_ONE_SHOT, + "WheelTransaction::SetTimeout"); NS_WARNING_ASSERTION(NS_SUCCEEDED(rv), "nsITimer::InitWithFuncCallback failed"); } diff --git a/dom/fetch/Fetch.cpp b/dom/fetch/Fetch.cpp index 08f64e95f83c..f35a65623c41 100644 --- a/dom/fetch/Fetch.cpp +++ b/dom/fetch/Fetch.cpp @@ -73,7 +73,8 @@ class FetchSignalProxy final : public FetchSignal::Follower public: explicit FetchSignalProxyRunnable(FetchSignalProxy* aProxy) - : mProxy(aProxy) + : Runnable("dom::FetchSignalProxy::FetchSignalProxyRunnable") + , mProxy(aProxy) {} NS_IMETHOD @@ -262,7 +263,8 @@ class MainThreadFetchRunnable : public Runnable public: MainThreadFetchRunnable(WorkerFetchResolver* aResolver, InternalRequest* aRequest) - : mResolver(aResolver) + : Runnable("dom::MainThreadFetchRunnable") + , mResolver(aResolver) , mRequest(aRequest) { MOZ_ASSERT(mResolver); @@ -1049,7 +1051,8 @@ class BeginConsumeBodyRunnable final : public Runnable FetchBody* mFetchBody; public: explicit BeginConsumeBodyRunnable(FetchBody* aBody) - : mFetchBody(aBody) + : Runnable("dom::BeginConsumeBodyRunnable") + , mFetchBody(aBody) { } NS_IMETHOD diff --git a/dom/fetch/FetchDriver.cpp b/dom/fetch/FetchDriver.cpp index 4fccb249d093..8963f76ddc21 100644 --- a/dom/fetch/FetchDriver.cpp +++ b/dom/fetch/FetchDriver.cpp @@ -643,7 +643,8 @@ class DataAvailableRunnable final : public Runnable public: explicit DataAvailableRunnable(FetchDriverObserver* aObserver) - : mObserver(aObserver) + : Runnable("dom::DataAvailableRunnable") + , mObserver(aObserver) { MOZ_ASSERT(aObserver); } diff --git a/dom/file/MutableBlobStorage.cpp b/dom/file/MutableBlobStorage.cpp index fb5f0f51c742..ee1e2db9a4ba 100644 --- a/dom/file/MutableBlobStorage.cpp +++ b/dom/file/MutableBlobStorage.cpp @@ -31,7 +31,8 @@ public: MutableBlobStorageCallback* aCallback, Blob* aBlob, nsresult aRv) - : mBlobStorage(aBlobStorage) + : Runnable("dom::BlobCreationDoneRunnable") + , mBlobStorage(aBlobStorage) , mCallback(aCallback) , mBlob(aBlob) , mRv(aRv) @@ -79,7 +80,8 @@ class FileCreatedRunnable final : public Runnable { public: FileCreatedRunnable(MutableBlobStorage* aBlobStorage, PRFileDesc* aFD) - : mBlobStorage(aBlobStorage) + : Runnable("dom::FileCreatedRunnable") + , mBlobStorage(aBlobStorage) , mFD(aFD) { MOZ_ASSERT(aBlobStorage); @@ -114,7 +116,8 @@ class CreateTemporaryFileRunnable final : public Runnable { public: explicit CreateTemporaryFileRunnable(MutableBlobStorage* aBlobStorage) - : mBlobStorage(aBlobStorage) + : Runnable("dom::CreateTemporaryFileRunnable") + , mBlobStorage(aBlobStorage) { MOZ_ASSERT(NS_IsMainThread()); MOZ_ASSERT(XRE_IsParentProcess()); @@ -148,7 +151,8 @@ class ErrorPropagationRunnable final : public Runnable { public: ErrorPropagationRunnable(MutableBlobStorage* aBlobStorage, nsresult aRv) - : mBlobStorage(aBlobStorage) + : Runnable("dom::ErrorPropagationRunnable") + , mBlobStorage(aBlobStorage) , mRv(aRv) {} @@ -217,9 +221,12 @@ public: } private: - WriteRunnable(MutableBlobStorage* aBlobStorage, PRFileDesc* aFD, - void* aData, uint32_t aLength) - : mBlobStorage(aBlobStorage) + WriteRunnable(MutableBlobStorage* aBlobStorage, + PRFileDesc* aFD, + void* aData, + uint32_t aLength) + : Runnable("dom::WriteRunnable") + , mBlobStorage(aBlobStorage) , mFD(aFD) , mData(aData) , mLength(aLength) @@ -247,7 +254,8 @@ class CloseFileRunnable final : public Runnable { public: explicit CloseFileRunnable(PRFileDesc* aFD) - : mFD(aFD) + : Runnable("dom::CloseFileRunnable") + , mFD(aFD) {} NS_IMETHOD @@ -279,7 +287,8 @@ public: already_AddRefed aParent, const nsACString& aContentType, already_AddRefed aCallback) - : mBlobStorage(aBlobStorage) + : Runnable("dom::CreateBlobRunnable") + , mBlobStorage(aBlobStorage) , mParent(aParent) , mContentType(aContentType) , mCallback(aCallback) @@ -327,7 +336,8 @@ public: nsISupports* aParent, const nsACString& aContentType, MutableBlobStorageCallback* aCallback) - : mBlobStorage(aBlobStorage) + : Runnable("dom::LastRunnable") + , mBlobStorage(aBlobStorage) , mParent(aParent) , mContentType(aContentType) , mCallback(aCallback) diff --git a/dom/file/ipc/IPCBlobInputStream.cpp b/dom/file/ipc/IPCBlobInputStream.cpp index 2bd24d1c53f5..b0afe07bfb61 100644 --- a/dom/file/ipc/IPCBlobInputStream.cpp +++ b/dom/file/ipc/IPCBlobInputStream.cpp @@ -46,7 +46,8 @@ public: private: CallbackRunnable(nsIInputStreamCallback* aCallback, IPCBlobInputStream* aStream) - : mCallback(aCallback) + : CancelableRunnable("dom::CallbackRunnable") + , mCallback(aCallback) , mStream(aStream) { MOZ_ASSERT(mCallback); diff --git a/dom/file/ipc/IPCBlobInputStreamChild.cpp b/dom/file/ipc/IPCBlobInputStreamChild.cpp index 4d107d2f0e58..06098a0b37ce 100644 --- a/dom/file/ipc/IPCBlobInputStreamChild.cpp +++ b/dom/file/ipc/IPCBlobInputStreamChild.cpp @@ -25,7 +25,8 @@ class ShutdownRunnable final : public CancelableRunnable { public: explicit ShutdownRunnable(IPCBlobInputStreamChild* aActor) - : mActor(aActor) + : CancelableRunnable("dom::ShutdownRunnable") + , mActor(aActor) {} NS_IMETHOD @@ -45,7 +46,8 @@ class StreamNeededRunnable final : public CancelableRunnable { public: explicit StreamNeededRunnable(IPCBlobInputStreamChild* aActor) - : mActor(aActor) + : CancelableRunnable("dom::StreamNeededRunnable") + , mActor(aActor) {} NS_IMETHOD @@ -70,7 +72,8 @@ class StreamReadyRunnable final : public CancelableRunnable public: StreamReadyRunnable(IPCBlobInputStream* aDestinationStream, nsIInputStream* aCreatedStream) - : mDestinationStream(aDestinationStream) + : CancelableRunnable("dom::StreamReadyRunnable") + , mDestinationStream(aDestinationStream) , mCreatedStream(aCreatedStream) { MOZ_ASSERT(mDestinationStream); @@ -102,8 +105,10 @@ public: class ReleaseWorkerHolderRunnable final : public CancelableRunnable { public: - explicit ReleaseWorkerHolderRunnable(UniquePtr&& aWorkerHolder) - : mWorkerHolder(Move(aWorkerHolder)) + explicit ReleaseWorkerHolderRunnable( + UniquePtr&& aWorkerHolder) + : CancelableRunnable("dom::ReleaseWorkerHolderRunnable") + , mWorkerHolder(Move(aWorkerHolder)) {} NS_IMETHOD diff --git a/dom/file/ipc/IPCBlobInputStreamThread.cpp b/dom/file/ipc/IPCBlobInputStreamThread.cpp index 29090da92ef1..6c40453a6f61 100644 --- a/dom/file/ipc/IPCBlobInputStreamThread.cpp +++ b/dom/file/ipc/IPCBlobInputStreamThread.cpp @@ -27,6 +27,8 @@ bool gShutdownHasStarted = false; class ThreadInitializeRunnable final : public Runnable { public: + ThreadInitializeRunnable() : Runnable("dom::ThreadInitializeRunnable") {} + NS_IMETHOD Run() override { @@ -44,7 +46,8 @@ public: NS_DECL_ISUPPORTS_INHERITED explicit MigrateActorRunnable(IPCBlobInputStreamChild* aActor) - : mActor(aActor) + : Runnable("dom::MigrateActorRunnable") + , mActor(aActor) { MOZ_ASSERT(mActor); } diff --git a/dom/filehandle/ActorsParent.cpp b/dom/filehandle/ActorsParent.cpp index 9895aeef38f9..3fbff0611c0f 100644 --- a/dom/filehandle/ActorsParent.cpp +++ b/dom/filehandle/ActorsParent.cpp @@ -588,7 +588,8 @@ public: ProgressRunnable(CopyFileHandleOp* aCopyFileHandleOp, uint64_t aProgress, uint64_t aProgressMax) - : mCopyFileHandleOp(aCopyFileHandleOp) + : Runnable("dom::CopyFileHandleOp::ProgressRunnable") + , mCopyFileHandleOp(aCopyFileHandleOp) , mProgress(aProgress) , mProgressMax(aProgressMax) { } @@ -1081,10 +1082,11 @@ FileHandleThreadPool::MaybeFireCallback(StoragesCompleteCallback* aCallback) return true; } -FileHandleThreadPool:: -FileHandleQueue::FileHandleQueue(FileHandleThreadPool* aFileHandleThreadPool, - FileHandle* aFileHandle) - : mOwningFileHandleThreadPool(aFileHandleThreadPool) +FileHandleThreadPool::FileHandleQueue::FileHandleQueue( + FileHandleThreadPool* aFileHandleThreadPool, + FileHandle* aFileHandle) + : Runnable("dom::FileHandleThreadPool::FileHandleQueue") + , mOwningFileHandleThreadPool(aFileHandleThreadPool) , mFileHandle(aFileHandle) , mShouldFinish(false) { diff --git a/dom/filesystem/FileSystemRequestParent.cpp b/dom/filesystem/FileSystemRequestParent.cpp index a7ff9ba39baf..4f234a03fd9f 100644 --- a/dom/filesystem/FileSystemRequestParent.cpp +++ b/dom/filesystem/FileSystemRequestParent.cpp @@ -82,7 +82,8 @@ public: FileSystemRequestParent* aActor, FileSystemTaskParentBase* aTask, const nsAString& aPath) - : mContentParent(aParent) + : Runnable("dom::CheckPermissionRunnable") + , mContentParent(aParent) , mActor(aActor) , mTask(aTask) , mPath(aPath) diff --git a/dom/filesystem/FileSystemTaskBase.cpp b/dom/filesystem/FileSystemTaskBase.cpp index 4b28529d7518..307e8648993c 100644 --- a/dom/filesystem/FileSystemTaskBase.cpp +++ b/dom/filesystem/FileSystemTaskBase.cpp @@ -231,10 +231,12 @@ FileSystemTaskChildBase::SetError(const nsresult& aErrorValue) * FileSystemTaskParentBase class */ -FileSystemTaskParentBase::FileSystemTaskParentBase(FileSystemBase* aFileSystem, - const FileSystemParams& aParam, - FileSystemRequestParent* aParent) - : mErrorValue(NS_OK) +FileSystemTaskParentBase::FileSystemTaskParentBase( + FileSystemBase* aFileSystem, + const FileSystemParams& aParam, + FileSystemRequestParent* aParent) + : Runnable("dom::FileSystemTaskParentBase") + , mErrorValue(NS_OK) , mFileSystem(aFileSystem) , mRequestParent(aParent) , mBackgroundEventTarget(GetCurrentThreadEventTarget()) diff --git a/dom/filesystem/GetFilesHelper.cpp b/dom/filesystem/GetFilesHelper.cpp index f2e0d5333c9b..7d77e241d2b6 100644 --- a/dom/filesystem/GetFilesHelper.cpp +++ b/dom/filesystem/GetFilesHelper.cpp @@ -61,6 +61,7 @@ private: nsTArray>& aCallbacks, Sequence>& aFiles, already_AddRefed aGlobal) + : Runnable("dom::ReleaseRunnable") { mPromises.SwapElements(aPromises); mCallbacks.SwapElements(aCallbacks); diff --git a/dom/flyweb/HttpServer.cpp b/dom/flyweb/HttpServer.cpp index 83ad916294ea..776d5b0ca43e 100644 --- a/dom/flyweb/HttpServer.cpp +++ b/dom/flyweb/HttpServer.cpp @@ -89,10 +89,9 @@ void HttpServer::NotifyStarted(nsresult aStatus) { RefPtr listener = mListener; - nsCOMPtr event = NS_NewRunnableFunction([listener, aStatus] () - { - listener->OnServerStarted(aStatus); - }); + nsCOMPtr event = NS_NewRunnableFunction( + "dom::HttpServer::NotifyStarted", + [listener, aStatus]() { listener->OnServerStarted(aStatus); }); NS_DispatchToCurrentThread(event); } @@ -288,12 +287,12 @@ HttpServer::TransportProvider::MaybeNotify() { if (mTransport && mListener) { RefPtr self = this; - nsCOMPtr event = NS_NewRunnableFunction([self, this] () - { - DebugOnly rv = mListener->OnTransportAvailable(mTransport, - mInput, mOutput); - MOZ_ASSERT(NS_SUCCEEDED(rv)); - }); + nsCOMPtr event = NS_NewRunnableFunction( + "dom::HttpServer::TransportProvider::MaybeNotify", [self, this]() { + DebugOnly rv = + mListener->OnTransportAvailable(mTransport, mInput, mOutput); + MOZ_ASSERT(NS_SUCCEEDED(rv)); + }); NS_DispatchToCurrentThread(event); } } @@ -633,11 +632,9 @@ HttpServer::Connection::ConsumeLine(const char* aBuffer, RefPtr listener = mServer->mListener; RefPtr request = mPendingWebSocketRequest; - nsCOMPtr event = - NS_NewRunnableFunction([listener, request] () - { - listener->OnWebSocket(request); - }); + nsCOMPtr event = NS_NewRunnableFunction( + "dom::HttpServer::Connection::ConsumeLine", + [listener, request]() { listener->OnWebSocket(request); }); NS_DispatchToCurrentThread(event); return NS_OK; @@ -702,11 +699,9 @@ HttpServer::Connection::ConsumeLine(const char* aBuffer, RefPtr listener = mServer->mListener; RefPtr request = mPendingReq.forget(); - nsCOMPtr event = - NS_NewRunnableFunction([listener, request] () - { - listener->OnRequest(request); - }); + nsCOMPtr event = NS_NewRunnableFunction( + "dom::HttpServer::Connection::ConsumeLine", + [listener, request]() { listener->OnRequest(request); }); NS_DispatchToCurrentThread(event); mPendingReqVersion = 0; diff --git a/dom/gamepad/cocoa/CocoaGamepad.cpp b/dom/gamepad/cocoa/CocoaGamepad.cpp index 9520ef454e84..76208303f811 100644 --- a/dom/gamepad/cocoa/CocoaGamepad.cpp +++ b/dom/gamepad/cocoa/CocoaGamepad.cpp @@ -235,7 +235,7 @@ class DarwinGamepadServiceStartupRunnable final : public Runnable DarwinGamepadService MOZ_NON_OWNING_REF *mService; public: explicit DarwinGamepadServiceStartupRunnable(DarwinGamepadService *service) - : mService(service) {} + : Runnable("DarwinGamepadServiceStartupRunnable"), mService(service) {} NS_IMETHOD Run() override { MOZ_ASSERT(mService); diff --git a/dom/gamepad/ipc/GamepadEventChannelChild.cpp b/dom/gamepad/ipc/GamepadEventChannelChild.cpp index a7e4e4ddc87c..efeb11505794 100644 --- a/dom/gamepad/ipc/GamepadEventChannelChild.cpp +++ b/dom/gamepad/ipc/GamepadEventChannelChild.cpp @@ -12,15 +12,18 @@ namespace { class GamepadUpdateRunnable final : public Runnable { public: - explicit GamepadUpdateRunnable(const GamepadChangeEvent& aGamepadEvent) - : mEvent(aGamepadEvent) {} - NS_IMETHOD Run() override - { - RefPtr svc(GamepadManager::GetService()); - if (svc) { - svc->Update(mEvent); - } - return NS_OK; + explicit GamepadUpdateRunnable(const GamepadChangeEvent& aGamepadEvent) + : Runnable("dom::GamepadUpdateRunnable") + , mEvent(aGamepadEvent) + { + } + NS_IMETHOD Run() override + { + RefPtr svc(GamepadManager::GetService()); + if (svc) { + svc->Update(mEvent); + } + return NS_OK; } protected: GamepadChangeEvent mEvent; diff --git a/dom/gamepad/ipc/GamepadEventChannelParent.cpp b/dom/gamepad/ipc/GamepadEventChannelParent.cpp index 9af3b8a3707b..c50ed7e68437 100644 --- a/dom/gamepad/ipc/GamepadEventChannelParent.cpp +++ b/dom/gamepad/ipc/GamepadEventChannelParent.cpp @@ -20,12 +20,13 @@ class SendGamepadUpdateRunnable final : public Runnable RefPtr mParent; GamepadChangeEvent mEvent; public: - SendGamepadUpdateRunnable(GamepadEventChannelParent* aParent, - GamepadChangeEvent aEvent) - : mEvent(aEvent) - { - MOZ_ASSERT(aParent); - mParent = aParent; + SendGamepadUpdateRunnable(GamepadEventChannelParent* aParent, + GamepadChangeEvent aEvent) + : Runnable("dom::SendGamepadUpdateRunnable") + , mEvent(aEvent) + { + MOZ_ASSERT(aParent); + mParent = aParent; } NS_IMETHOD Run() override { diff --git a/dom/gamepad/windows/WindowsGamepad.cpp b/dom/gamepad/windows/WindowsGamepad.cpp index 6a8b595e248b..bfe712b962c8 100644 --- a/dom/gamepad/windows/WindowsGamepad.cpp +++ b/dom/gamepad/windows/WindowsGamepad.cpp @@ -1002,7 +1002,9 @@ GamepadWindowProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) class StartWindowsGamepadServiceRunnable final : public Runnable { public: - StartWindowsGamepadServiceRunnable() {} + StartWindowsGamepadServiceRunnable() + : Runnable("StartWindowsGamepadServiceRunnable") + {} NS_IMETHOD Run() override { @@ -1040,7 +1042,9 @@ private: class StopWindowsGamepadServiceRunnable final : public Runnable { public: - StopWindowsGamepadServiceRunnable() {} + StopWindowsGamepadServiceRunnable() + : Runnable("StopWindowsGamepadServiceRunnable") + {} NS_IMETHOD Run() override { diff --git a/dom/geolocation/nsGeolocation.cpp b/dom/geolocation/nsGeolocation.cpp index 2440015b51bd..50b3dd9620ff 100644 --- a/dom/geolocation/nsGeolocation.cpp +++ b/dom/geolocation/nsGeolocation.cpp @@ -147,7 +147,8 @@ class RequestPromptEvent : public Runnable { public: RequestPromptEvent(nsGeolocationRequest* aRequest, nsWeakPtr aWindow) - : mRequest(aRequest) + : mozilla::Runnable("RequestPromptEvent") + , mRequest(aRequest) , mWindow(aWindow) { } @@ -168,8 +169,9 @@ class RequestAllowEvent : public Runnable { public: RequestAllowEvent(int allow, nsGeolocationRequest* request) - : mAllow(allow), - mRequest(request) + : mozilla::Runnable("RequestAllowEvent") + , mAllow(allow) + , mRequest(request) { } @@ -192,8 +194,9 @@ class RequestSendLocationEvent : public Runnable public: RequestSendLocationEvent(nsIDOMGeoPosition* aPosition, nsGeolocationRequest* aRequest) - : mPosition(aPosition), - mRequest(aRequest) + : mozilla::Runnable("RequestSendLocationEvent") + , mPosition(aPosition) + , mRequest(aRequest) { } diff --git a/dom/html/HTMLCanvasElement.cpp b/dom/html/HTMLCanvasElement.cpp index 5daf4b67935e..d1f6f491ff65 100644 --- a/dom/html/HTMLCanvasElement.cpp +++ b/dom/html/HTMLCanvasElement.cpp @@ -241,8 +241,10 @@ HTMLCanvasPrintState::Done() if (mCanvas) { mCanvas->InvalidateCanvas(); } - RefPtr > doneEvent = - NewRunnableMethod(this, &HTMLCanvasPrintState::NotifyDone); + RefPtr> doneEvent = + NewRunnableMethod("dom::HTMLCanvasPrintState::NotifyDone", + this, + &HTMLCanvasPrintState::NotifyDone); if (NS_SUCCEEDED(NS_DispatchToCurrentThread(doneEvent))) { mPendingNotify = true; } @@ -521,8 +523,10 @@ HTMLCanvasElement::DispatchPrintCallback(nsITimerCallback* aCallback) } mPrintState = new HTMLCanvasPrintState(this, mCurrentContext, aCallback); - RefPtr > renderEvent = - NewRunnableMethod(this, &HTMLCanvasElement::CallPrintCallback); + RefPtr> renderEvent = + NewRunnableMethod("dom::HTMLCanvasElement::CallPrintCallback", + this, + &HTMLCanvasElement::CallPrintCallback); return OwnerDoc()->Dispatch("HTMLCanvasElement::CallPrintCallback", TaskCategory::Other, renderEvent.forget()); @@ -844,13 +848,16 @@ HTMLCanvasElement::ToBlob(JSContext* aCx, // According to spec, blob should return null if either its horizontal // dimension or its vertical dimension is zero. See link below. // https://html.spec.whatwg.org/multipage/scripting.html#dom-canvas-toblob - OwnerDoc()->Dispatch("FireNullBlobEvent", - TaskCategory::Other, - NewRunnableMethod( - &aCallback, - static_cast(&BlobCallback::Call), - nullptr, nullptr)); + OwnerDoc()->Dispatch( + "FireNullBlobEvent", + TaskCategory::Other, + NewRunnableMethod( + "dom::HTMLCanvasElement::ToBlob", + &aCallback, + static_cast( + &BlobCallback::Call), + nullptr, + nullptr)); return; } @@ -1353,7 +1360,8 @@ HTMLCanvasElement::OnVisibilityChange() { public: explicit Runnable(AsyncCanvasRenderer* aRenderer) - : mRenderer(aRenderer) + : mozilla::CancelableRunnable("Runnable") + , mRenderer(aRenderer) {} NS_IMETHOD Run() override @@ -1395,7 +1403,8 @@ HTMLCanvasElement::OnMemoryPressure() { public: explicit Runnable(AsyncCanvasRenderer* aRenderer) - : mRenderer(aRenderer) + : mozilla::CancelableRunnable("Runnable") + , mRenderer(aRenderer) {} NS_IMETHOD Run() override diff --git a/dom/html/HTMLFormElement.h b/dom/html/HTMLFormElement.h index 284d3a6925b7..74a993be7c19 100644 --- a/dom/html/HTMLFormElement.h +++ b/dom/html/HTMLFormElement.h @@ -426,7 +426,8 @@ protected: class RemoveElementRunnable : public Runnable { public: explicit RemoveElementRunnable(HTMLFormElement* aForm) - : mForm(aForm) + : Runnable("dom::HTMLFormElement::RemoveElementRunnable") + , mForm(aForm) {} NS_IMETHOD Run() override { diff --git a/dom/html/HTMLImageElement.cpp b/dom/html/HTMLImageElement.cpp index de50d2250008..13151bdc303c 100644 --- a/dom/html/HTMLImageElement.cpp +++ b/dom/html/HTMLImageElement.cpp @@ -79,9 +79,11 @@ namespace dom { class ImageLoadTask : public Runnable { public: - ImageLoadTask(HTMLImageElement *aElement, bool aAlwaysLoad, + ImageLoadTask(HTMLImageElement* aElement, + bool aAlwaysLoad, bool aUseUrgentStartForChannel) - : mElement(aElement) + : Runnable("dom::ImageLoadTask") + , mElement(aElement) , mAlwaysLoad(aAlwaysLoad) , mUseUrgentStartForChannel(aUseUrgentStartForChannel) { @@ -676,7 +678,10 @@ HTMLImageElement::BindToTree(nsIDocument* aDocument, nsIContent* aParent, if (LoadingEnabled() && OwnerDoc()->IsCurrentActiveDocument()) { nsContentUtils::AddScriptRunner( - NewRunnableMethod(this, &HTMLImageElement::MaybeLoadImage, false)); + NewRunnableMethod("dom::HTMLImageElement::MaybeLoadImage", + this, + &HTMLImageElement::MaybeLoadImage, + false)); } } @@ -769,9 +774,14 @@ HTMLImageElement::NodeInfoChanged(nsIDocument* aOldDoc) // Bug 1076583 - We still behave synchronously in the non-responsive case nsContentUtils::AddScriptRunner( (InResponsiveMode()) - ? NewRunnableMethod(this, &HTMLImageElement::QueueImageLoadTask, true) - : NewRunnableMethod(this, &HTMLImageElement::MaybeLoadImage, true) - ); + ? NewRunnableMethod("dom::HTMLImageElement::QueueImageLoadTask", + this, + &HTMLImageElement::QueueImageLoadTask, + true) + : NewRunnableMethod("dom::HTMLImageElement::MaybeLoadImage", + this, + &HTMLImageElement::MaybeLoadImage, + true)); } } @@ -894,7 +904,10 @@ HTMLImageElement::CopyInnerTo(Element* aDest, bool aPreallocateChildren) mUseUrgentStartForChannel = EventStateManager::IsHandlingUserInput(); nsContentUtils::AddScriptRunner( - NewRunnableMethod(dest, &HTMLImageElement::MaybeLoadImage, false)); + NewRunnableMethod("dom::HTMLImageElement::MaybeLoadImage", + dest, + &HTMLImageElement::MaybeLoadImage, + false)); } } diff --git a/dom/html/HTMLInputElement.cpp b/dom/html/HTMLInputElement.cpp index ee4f8d4ce89a..50f79e45284e 100644 --- a/dom/html/HTMLInputElement.cpp +++ b/dom/html/HTMLInputElement.cpp @@ -4876,7 +4876,9 @@ HTMLInputElement::BindToTree(nsIDocument* aDocument, nsIContent* aParent, ClearBrokenState(); RemoveStatesSilently(NS_EVENT_STATE_BROKEN); nsContentUtils::AddScriptRunner( - NewRunnableMethod(this, &HTMLInputElement::MaybeLoadImage)); + NewRunnableMethod("dom::HTMLInputElement::MaybeLoadImage", + this, + &HTMLInputElement::MaybeLoadImage)); } } diff --git a/dom/html/HTMLLinkElement.cpp b/dom/html/HTMLLinkElement.cpp index a28d5f57c172..feba468c9196 100644 --- a/dom/html/HTMLLinkElement.cpp +++ b/dom/html/HTMLLinkElement.cpp @@ -171,7 +171,8 @@ HTMLLinkElement::BindToTree(nsIDocument* aDocument, nsIContent* aParent, } void (HTMLLinkElement::*update)() = &HTMLLinkElement::UpdateStyleSheetInternal; - nsContentUtils::AddScriptRunner(NewRunnableMethod(this, update)); + nsContentUtils::AddScriptRunner( + NewRunnableMethod("dom::HTMLLinkElement::BindToTree", this, update)); CreateAndDispatchEvent(aDocument, NS_LITERAL_STRING("DOMLinkAdded")); diff --git a/dom/html/HTMLMediaElement.cpp b/dom/html/HTMLMediaElement.cpp index 3544bc57a8da..16da96903dde 100644 --- a/dom/html/HTMLMediaElement.cpp +++ b/dom/html/HTMLMediaElement.cpp @@ -232,10 +232,12 @@ RejectPromises(const nsTArray>& aPromises, nsresult aError) class nsMediaEvent : public Runnable { public: - - explicit nsMediaEvent(HTMLMediaElement* aElement) : - mElement(aElement), - mLoadID(mElement->GetCurrentLoadID()) {} + explicit nsMediaEvent(HTMLMediaElement* aElement) + : Runnable("dom::nsMediaEvent") + , mElement(aElement) + , mLoadID(mElement->GetCurrentLoadID()) + { + } ~nsMediaEvent() {} NS_IMETHOD Run() = 0; @@ -405,9 +407,11 @@ public: for (VideoSegment::ConstChunkIterator c(video); !c.IsEnded(); c.Next()) { if (c->mFrame.GetIntrinsicSize() != gfx::IntSize(0,0)) { mInitialSizeFound = true; - nsCOMPtr event = - NewRunnableMethod(this, &StreamSizeListener::ReceivedSize, - c->mFrame.GetIntrinsicSize()); + nsCOMPtr event = NewRunnableMethod( + "dom::HTMLMediaElement::StreamSizeListener::ReceivedSize", + this, + &StreamSizeListener::ReceivedSize, + c->mFrame.GetIntrinsicSize()); // This is fine to dispatch straight to main thread (instead of via // ...AfterStreamUpdate()) since it reflects state of the element, // not the stream. Events reflecting stream or track state should be @@ -970,24 +974,26 @@ private: } uint64_t windowID = mAudioChannelAgent->WindowID(); - NS_DispatchToMainThread(NS_NewRunnableFunction([windowID]() -> void { - nsCOMPtr observerService = - services::GetObserverService(); - if (NS_WARN_IF(!observerService)) { - return; - } + NS_DispatchToMainThread(NS_NewRunnableFunction( + "dom::HTMLMediaElement::AudioChannelAgentCallback::" + "MaybeNotifyMediaResumed", + [windowID]() -> void { + nsCOMPtr observerService = + services::GetObserverService(); + if (NS_WARN_IF(!observerService)) { + return; + } - nsCOMPtr wrapper = - do_CreateInstance(NS_SUPPORTS_PRUINT64_CONTRACTID); - if (NS_WARN_IF(!wrapper)) { - return; - } + nsCOMPtr wrapper = + do_CreateInstance(NS_SUPPORTS_PRUINT64_CONTRACTID); + if (NS_WARN_IF(!wrapper)) { + return; + } - wrapper->SetData(windowID); - observerService->NotifyObservers(wrapper, - "media-playback-resumed", - u"active"); - })); + wrapper->SetData(windowID); + observerService->NotifyObservers( + wrapper, "media-playback-resumed", u"active"); + })); } bool @@ -4090,8 +4096,12 @@ HTMLMediaElement::WakeLockBoolWrapper::UpdateWakeLock() int timeout = Preferences::GetInt("media.wakelock_timeout", 2000); mTimer = do_CreateInstance("@mozilla.org/timer;1"); if (mTimer) { - mTimer->InitWithFuncCallback(TimerCallback, this, timeout, - nsITimer::TYPE_ONE_SHOT); + mTimer->InitWithNamedFuncCallback( + TimerCallback, + this, + timeout, + nsITimer::TYPE_ONE_SHOT, + "dom::HTMLMediaElement::WakeLockBoolWrapper::UpdateWakeLock"); } } } @@ -4531,11 +4541,12 @@ void HTMLMediaElement::UnbindFromTree(bool aDeep, NotifyDecoderActivityChanges(); RefPtr self(this); - nsCOMPtr task = NS_NewRunnableFunction([self] () { - if (self->mUnboundFromTree) { - self->Pause(); - } - }); + nsCOMPtr task = + NS_NewRunnableFunction("dom::HTMLMediaElement::UnbindFromTree", [self]() { + if (self->mUnboundFromTree) { + self->Pause(); + } + }); RunInStableState(task); } @@ -4844,9 +4855,15 @@ public: { nsCOMPtr event; if (aBlocked == BLOCKED) { - event = NewRunnableMethod(this, &StreamListener::DoNotifyBlocked); + event = NewRunnableMethod( + "dom::HTMLMediaElement::StreamListener::DoNotifyBlocked", + this, + &StreamListener::DoNotifyBlocked); } else { - event = NewRunnableMethod(this, &StreamListener::DoNotifyUnblocked); + event = NewRunnableMethod( + "dom::HTMLMediaElement::StreamListener::DoNotifyUnblocked", + this, + &StreamListener::DoNotifyUnblocked); } aGraph->DispatchToMainThreadAfterStreamStateUpdate(mAbstractMainThread, event.forget()); @@ -4856,7 +4873,10 @@ public: MutexAutoLock lock(mMutex); aGraph->DispatchToMainThreadAfterStreamStateUpdate( mAbstractMainThread, - NewRunnableMethod(this, &StreamListener::DoNotifyHaveCurrentData)); + NewRunnableMethod( + "dom::HTMLMediaElement::StreamListener::DoNotifyHaveCurrentData", + this, + &StreamListener::DoNotifyHaveCurrentData)); } virtual void NotifyOutput(MediaStreamGraph* aGraph, GraphTime aCurrentTime) override @@ -4867,7 +4887,9 @@ public: mPendingNotifyOutput = true; aGraph->DispatchToMainThreadAfterStreamStateUpdate( mAbstractMainThread, - NewRunnableMethod(this, &StreamListener::DoNotifyOutput)); + NewRunnableMethod("dom::HTMLMediaElement::StreamListener::DoNotifyOutput", + this, + &StreamListener::DoNotifyOutput)); } private: @@ -6296,7 +6318,9 @@ void HTMLMediaElement::AddRemoveSelfReference() // Dispatch Release asynchronously so that we don't destroy this object // inside a call stack of method calls on this object nsCOMPtr event = - NewRunnableMethod(this, &HTMLMediaElement::DoRemoveSelfReference); + NewRunnableMethod("dom::HTMLMediaElement::DoRemoveSelfReference", + this, + &HTMLMediaElement::DoRemoveSelfReference); NS_DispatchToMainThread(event); } } @@ -7493,9 +7517,9 @@ HTMLMediaElement::AsyncResolveSeekDOMPromiseIfExists() MOZ_ASSERT(NS_IsMainThread()); if (mSeekDOMPromise) { RefPtr promise = mSeekDOMPromise.forget(); - nsCOMPtr r = NS_NewRunnableFunction([=] () { - promise->MaybeResolveWithUndefined(); - }); + nsCOMPtr r = NS_NewRunnableFunction( + "dom::HTMLMediaElement::AsyncResolveSeekDOMPromiseIfExists", + [=]() { promise->MaybeResolveWithUndefined(); }); mAbstractMainThread->Dispatch(r.forget()); mSeekDOMPromise = nullptr; } @@ -7507,9 +7531,9 @@ HTMLMediaElement::AsyncRejectSeekDOMPromiseIfExists() MOZ_ASSERT(NS_IsMainThread()); if (mSeekDOMPromise) { RefPtr promise = mSeekDOMPromise.forget(); - nsCOMPtr r = NS_NewRunnableFunction([=] () { - promise->MaybeReject(NS_ERROR_DOM_ABORT_ERR); - }); + nsCOMPtr r = NS_NewRunnableFunction( + "dom::HTMLMediaElement::AsyncRejectSeekDOMPromiseIfExists", + [=]() { promise->MaybeReject(NS_ERROR_DOM_ABORT_ERR); }); mAbstractMainThread->Dispatch(r.forget()); mSeekDOMPromise = nullptr; } @@ -7527,29 +7551,32 @@ HTMLMediaElement::ReportCanPlayTelemetry() } thread->Dispatch( - NS_NewRunnableFunction([thread]() { + NS_NewRunnableFunction( + "dom::HTMLMediaElement::ReportCanPlayTelemetry", + [thread]() { #if XP_WIN - // Windows Media Foundation requires MSCOM to be inited. - HRESULT hr = CoInitializeEx(0, COINIT_MULTITHREADED); - MOZ_ASSERT(hr == S_OK); + // Windows Media Foundation requires MSCOM to be inited. + HRESULT hr = CoInitializeEx(0, COINIT_MULTITHREADED); + MOZ_ASSERT(hr == S_OK); #endif - bool aac = MP4Decoder::IsSupportedType( - MediaContainerType(MEDIAMIMETYPE("audio/mp4")), nullptr); - bool h264 = MP4Decoder::IsSupportedType( - MediaContainerType(MEDIAMIMETYPE("video/mp4")), nullptr); + bool aac = MP4Decoder::IsSupportedType( + MediaContainerType(MEDIAMIMETYPE("audio/mp4")), nullptr); + bool h264 = MP4Decoder::IsSupportedType( + MediaContainerType(MEDIAMIMETYPE("video/mp4")), nullptr); #if XP_WIN - CoUninitialize(); + CoUninitialize(); #endif - AbstractThread::MainThread()->Dispatch( - NS_NewRunnableFunction([thread, aac, h264]() { - LOG(LogLevel::Debug, ("MediaTelemetry aac=%d h264=%d", aac, h264)); - Telemetry::Accumulate( - Telemetry::HistogramID::VIDEO_CAN_CREATE_AAC_DECODER, aac); - Telemetry::Accumulate( - Telemetry::HistogramID::VIDEO_CAN_CREATE_H264_DECODER, h264); - thread->AsyncShutdown(); - })); - }), + AbstractThread::MainThread()->Dispatch(NS_NewRunnableFunction( + "dom::HTMLMediaElement::ReportCanPlayTelemetry", + [thread, aac, h264]() { + LOG(LogLevel::Debug, ("MediaTelemetry aac=%d h264=%d", aac, h264)); + Telemetry::Accumulate( + Telemetry::HistogramID::VIDEO_CAN_CREATE_AAC_DECODER, aac); + Telemetry::Accumulate( + Telemetry::HistogramID::VIDEO_CAN_CREATE_H264_DECODER, h264); + thread->AsyncShutdown(); + })); + }), NS_DISPATCH_NORMAL); } diff --git a/dom/html/HTMLObjectElement.cpp b/dom/html/HTMLObjectElement.cpp index b06133d9b5b4..100f022ce9ce 100644 --- a/dom/html/HTMLObjectElement.cpp +++ b/dom/html/HTMLObjectElement.cpp @@ -131,7 +131,9 @@ class PluginFocusSetter : public Runnable { public: PluginFocusSetter(nsIWidget* aWidget, Element* aElement) - : mWidget(aWidget), mElement(aElement) + : Runnable("PluginFocusSetter") + , mWidget(aWidget) + , mElement(aElement) { } @@ -269,7 +271,8 @@ HTMLObjectElement::BindToTree(nsIDocument *aDocument, // If we already have all the children, start the load. if (mIsDoneAddingChildren && !pluginDoc) { void (HTMLObjectElement::*start)() = &HTMLObjectElement::StartObjectLoad; - nsContentUtils::AddScriptRunner(NewRunnableMethod(this, start)); + nsContentUtils::AddScriptRunner( + NewRunnableMethod("dom::HTMLObjectElement::BindToTree", this, start)); } return NS_OK; diff --git a/dom/html/HTMLSharedObjectElement.cpp b/dom/html/HTMLSharedObjectElement.cpp index 4897ee516393..1f02624f1679 100644 --- a/dom/html/HTMLSharedObjectElement.cpp +++ b/dom/html/HTMLSharedObjectElement.cpp @@ -139,7 +139,8 @@ HTMLSharedObjectElement::BindToTree(nsIDocument *aDocument, if (mIsDoneAddingChildren && !pluginDoc) { void (HTMLSharedObjectElement::*start)() = &HTMLSharedObjectElement::StartObjectLoad; - nsContentUtils::AddScriptRunner(NewRunnableMethod(this, start)); + nsContentUtils::AddScriptRunner(NewRunnableMethod( + "dom::HTMLSharedObjectElement::BindToTree", this, start)); } return NS_OK; diff --git a/dom/html/HTMLStyleElement.cpp b/dom/html/HTMLStyleElement.cpp index 743f4addb96e..908bf95895ff 100644 --- a/dom/html/HTMLStyleElement.cpp +++ b/dom/html/HTMLStyleElement.cpp @@ -146,7 +146,8 @@ HTMLStyleElement::BindToTree(nsIDocument* aDocument, nsIContent* aParent, NS_ENSURE_SUCCESS(rv, rv); void (HTMLStyleElement::*update)() = &HTMLStyleElement::UpdateStyleSheetInternal; - nsContentUtils::AddScriptRunner(NewRunnableMethod(this, update)); + nsContentUtils::AddScriptRunner( + NewRunnableMethod("dom::HTMLStyleElement::BindToTree", this, update)); return rv; } diff --git a/dom/html/HTMLTrackElement.cpp b/dom/html/HTMLTrackElement.cpp index 09b86398fef1..30fb5038fe30 100644 --- a/dom/html/HTMLTrackElement.cpp +++ b/dom/html/HTMLTrackElement.cpp @@ -265,7 +265,10 @@ void HTMLTrackElement::DispatchLoadResource() { if (!mLoadResourceDispatched) { - RefPtr r = NewRunnableMethod(this, &HTMLTrackElement::LoadResource); + RefPtr r = + NewRunnableMethod("dom::HTMLTrackElement::LoadResource", + this, + &HTMLTrackElement::LoadResource); nsContentUtils::RunInStableState(r.forget()); mLoadResourceDispatched = true; } @@ -437,11 +440,11 @@ HTMLTrackElement::DispatchTrackRunnable(const nsString& aEventName) if (!doc) { return; } - nsCOMPtr runnable = - NewRunnableMethod - (this, - &HTMLTrackElement::DispatchTrustedEvent, - aEventName); + nsCOMPtr runnable = NewRunnableMethod( + "dom::HTMLTrackElement::DispatchTrustedEvent", + this, + &HTMLTrackElement::DispatchTrustedEvent, + aEventName); doc->Dispatch("HTMLTrackElement::DispatchTrackRunnable", TaskCategory::Other, runnable.forget()); } diff --git a/dom/html/ImageDocument.cpp b/dom/html/ImageDocument.cpp index 4b7008e57583..4d3d3b841f82 100644 --- a/dom/html/ImageDocument.cpp +++ b/dom/html/ImageDocument.cpp @@ -493,7 +493,9 @@ ImageDocument::Notify(imgIRequest* aRequest, int32_t aType, const nsIntRect* aDa // come during painting and this will trigger invalidation. if (aType == imgINotificationObserver::HAS_TRANSPARENCY) { nsCOMPtr runnable = - NewRunnableMethod(this, &ImageDocument::OnHasTransparency); + NewRunnableMethod("dom::ImageDocument::OnHasTransparency", + this, + &ImageDocument::OnHasTransparency); nsContentUtils::AddScriptRunner(runnable); } @@ -566,7 +568,9 @@ ImageDocument::OnSizeAvailable(imgIRequest* aRequest, imgIContainer* aImage) } nsCOMPtr runnable = - NewRunnableMethod(this, &ImageDocument::DefaultCheckOverflowing); + NewRunnableMethod("dom::ImageDocument::DefaultCheckOverflowing", + this, + &ImageDocument::DefaultCheckOverflowing); nsContentUtils::AddScriptRunner(runnable); UpdateTitleAndCharset(); diff --git a/dom/html/TextTrackManager.cpp b/dom/html/TextTrackManager.cpp index 4d3ccf365217..37009773e0da 100644 --- a/dom/html/TextTrackManager.cpp +++ b/dom/html/TextTrackManager.cpp @@ -170,8 +170,10 @@ TextTrackManager::AddTextTrack(TextTrackKind aKind, const nsAString& aLabel, ReportTelemetryForTrack(track); if (aTextTrackSource == TextTrackSource::Track) { - RefPtr task = - NewRunnableMethod(this, &TextTrackManager::HonorUserPreferencesForTrackSelection); + RefPtr task = NewRunnableMethod( + "dom::TextTrackManager::HonorUserPreferencesForTrackSelection", + this, + &TextTrackManager::HonorUserPreferencesForTrackSelection); nsContentUtils::RunInStableState(task.forget()); } @@ -190,8 +192,10 @@ TextTrackManager::AddTextTrack(TextTrack* aTextTrack) ReportTelemetryForTrack(aTextTrack); if (aTextTrack->GetTextTrackSource() == TextTrackSource::Track) { - RefPtr task = - NewRunnableMethod(this, &TextTrackManager::HonorUserPreferencesForTrackSelection); + RefPtr task = NewRunnableMethod( + "dom::TextTrackManager::HonorUserPreferencesForTrackSelection", + this, + &TextTrackManager::HonorUserPreferencesForTrackSelection); nsContentUtils::RunInStableState(task.forget()); } } @@ -483,12 +487,15 @@ class SimpleTextTrackEvent : public Runnable { public: friend class CompareSimpleTextTrackEvents; - SimpleTextTrackEvent(const nsAString& aEventName, double aTime, - TextTrack* aTrack, TextTrackCue* aCue) - : mName(aEventName), - mTime(aTime), - mTrack(aTrack), - mCue(aCue) + SimpleTextTrackEvent(const nsAString& aEventName, + double aTime, + TextTrack* aTrack, + TextTrackCue* aCue) + : Runnable("dom::SimpleTextTrackEvent") + , mName(aEventName) + , mTime(aTime) + , mTrack(aTrack) + , mCue(aCue) {} NS_IMETHOD Run() { @@ -624,8 +631,11 @@ TextTrackManager::DispatchUpdateCueDisplay() nsPIDOMWindowInner* win = mMediaElement->OwnerDoc()->GetInnerWindow(); if (win) { nsGlobalWindow::Cast(win)->Dispatch( - "TextTrackManager::UpdateCueDisplay", TaskCategory::Other, - NewRunnableMethod(this, &TextTrackManager::UpdateCueDisplay)); + "TextTrackManager::UpdateCueDisplay", + TaskCategory::Other, + NewRunnableMethod("dom::TextTrackManager::UpdateCueDisplay", + this, + &TextTrackManager::UpdateCueDisplay)); mUpdateCueDisplayDispatched = true; } } @@ -644,8 +654,11 @@ TextTrackManager::DispatchTimeMarchesOn() nsPIDOMWindowInner* win = mMediaElement->OwnerDoc()->GetInnerWindow(); if (win) { nsGlobalWindow::Cast(win)->Dispatch( - "TextTrackManager::TimeMarchesOn", TaskCategory::Other, - NewRunnableMethod(this, &TextTrackManager::TimeMarchesOn)); + "TextTrackManager::TimeMarchesOn", + TaskCategory::Other, + NewRunnableMethod("dom::TextTrackManager::TimeMarchesOn", + this, + &TextTrackManager::TimeMarchesOn)); mTimeMarchesOnDispatched = true; } } diff --git a/dom/html/nsGenericHTMLElement.cpp b/dom/html/nsGenericHTMLElement.cpp index e4a10840c718..bc23b0e637dd 100644 --- a/dom/html/nsGenericHTMLElement.cpp +++ b/dom/html/nsGenericHTMLElement.cpp @@ -120,7 +120,11 @@ using namespace mozilla::dom; class nsAutoFocusEvent : public Runnable { public: - explicit nsAutoFocusEvent(nsGenericHTMLFormElement* aElement) : mElement(aElement) {} + explicit nsAutoFocusEvent(nsGenericHTMLFormElement* aElement) + : mozilla::Runnable("nsAutoFocusEvent") + , mElement(aElement) + { + } NS_IMETHOD Run() override { nsFocusManager* fm = nsFocusManager::GetFocusManager(); diff --git a/dom/html/nsHTMLDocument.cpp b/dom/html/nsHTMLDocument.cpp index 66e8eb6cc9b4..ac69848f9d12 100644 --- a/dom/html/nsHTMLDocument.cpp +++ b/dom/html/nsHTMLDocument.cpp @@ -2505,7 +2505,9 @@ nsHTMLDocument::MaybeEditingStateChanged() EditingStateChanged(); } else if (!mInDestructor) { nsContentUtils::AddScriptRunner( - NewRunnableMethod(this, &nsHTMLDocument::MaybeEditingStateChanged)); + NewRunnableMethod("nsHTMLDocument::MaybeEditingStateChanged", + this, + &nsHTMLDocument::MaybeEditingStateChanged)); } } } @@ -2536,9 +2538,10 @@ nsHTMLDocument::SetMayStartLayout(bool aMayStartLayout) class DeferredContentEditableCountChangeEvent : public Runnable { public: - DeferredContentEditableCountChangeEvent(nsHTMLDocument *aDoc, - nsIContent *aElement) - : mDoc(aDoc) + DeferredContentEditableCountChangeEvent(nsHTMLDocument* aDoc, + nsIContent* aElement) + : mozilla::Runnable("DeferredContentEditableCountChangeEvent") + , mDoc(aDoc) , mElement(aElement) { } diff --git a/dom/html/nsTextEditorState.cpp b/dom/html/nsTextEditorState.cpp index bdf7c560b752..58a7fcbd9894 100644 --- a/dom/html/nsTextEditorState.cpp +++ b/dom/html/nsTextEditorState.cpp @@ -86,9 +86,10 @@ private: class RestoreSelectionState : public Runnable { public: - RestoreSelectionState(nsTextEditorState *aState, nsTextControlFrame *aFrame) - : mFrame(aFrame), - mTextEditorState(aState) + RestoreSelectionState(nsTextEditorState* aState, nsTextControlFrame* aFrame) + : mozilla::Runnable("RestoreSelectionState") + , mFrame(aFrame) + , mTextEditorState(aState) { } @@ -1249,10 +1250,11 @@ nsTextEditorState::GetSelectionController() const // Helper class, used below in BindToFrame(). class PrepareEditorEvent : public Runnable { public: - PrepareEditorEvent(nsTextEditorState &aState, - nsIContent *aOwnerContent, - const nsAString &aCurrentValue) - : mState(&aState) + PrepareEditorEvent(nsTextEditorState& aState, + nsIContent* aOwnerContent, + const nsAString& aCurrentValue) + : mozilla::Runnable("PrepareEditorEvent") + , mState(&aState) , mOwnerContent(aOwnerContent) , mCurrentValue(aCurrentValue) { diff --git a/dom/indexedDB/ActorsParent.cpp b/dom/indexedDB/ActorsParent.cpp index 8e9522e92b10..1c34898becee 100644 --- a/dom/indexedDB/ActorsParent.cpp +++ b/dom/indexedDB/ActorsParent.cpp @@ -5994,7 +5994,8 @@ public: protected: DatabaseOperationBase(const nsID& aBackgroundChildLoggingId, uint64_t aLoggingSerialNumber) - : mOwningEventTarget(GetCurrentThreadEventTarget()) + : Runnable("dom::indexedDB::DatabaseOperationBase") + , mOwningEventTarget(GetCurrentThreadEventTarget()) , mBackgroundChildLoggingId(aBackgroundChildLoggingId) , mLoggingSerialNumber(aLoggingSerialNumber) , mResultCode(NS_OK) @@ -6350,7 +6351,8 @@ class WaitForTransactionsHelper final public: WaitForTransactionsHelper(const nsCString& aDatabaseId, nsIRunnable* aCallback) - : mDatabaseId(aDatabaseId) + : Runnable("dom::indexedDB::WaitForTransactionsHelper") + , mDatabaseId(aDatabaseId) , mCallback(aCallback) , mState(State::Initial) { @@ -8999,7 +9001,8 @@ public: const nsACString& aOrigin, const nsAString& aDatabaseName, int64_t aFileId) - : mPersistenceType(aPersistenceType) + : Runnable("dom::indexedDB::GetFileReferencesHelper") + , mPersistenceType(aPersistenceType) , mOrigin(aOrigin) , mDatabaseName(aDatabaseName) , mFileId(aFileId) @@ -9027,6 +9030,9 @@ private: class FlushPendingFileDeletionsRunnable final : public Runnable { +public: + FlushPendingFileDeletionsRunnable() : Runnable("FlushPendingFileDeletionsRunnable") {} + private: ~FlushPendingFileDeletionsRunnable() override = default; @@ -9365,7 +9371,8 @@ class Maintenance final public: explicit Maintenance(QuotaClient* aQuotaClient) - : mQuotaClient(aQuotaClient) + : Runnable("dom::indexedDB::Maintenance") + , mQuotaClient(aQuotaClient) , mStartTime(PR_Now()) , mResultCode(NS_OK) , mAborted(false) @@ -9581,7 +9588,8 @@ public: const nsCString& aGroup, const nsCString& aOrigin, const nsString& aDatabasePath) - : mMaintenance(aMaintenance) + : Runnable("dom::indexedDB::DatabaseMaintenance") + , mMaintenance(aMaintenance) , mGroup(aGroup) , mOrigin(aOrigin) , mDatabasePath(aDatabasePath) @@ -12631,7 +12639,7 @@ ConnectionPool::ShutdownThread(ThreadInfo& aThreadInfo) NS_DISPATCH_NORMAL)); MOZ_ALWAYS_SUCCEEDS(NS_DispatchToMainThread( - NewRunnableMethod(thread, &nsIThread::Shutdown))); + NewRunnableMethod("nsIThread::Shutdown", thread, &nsIThread::Shutdown))); mTotalThreadCount--; } @@ -12739,7 +12747,7 @@ ConnectionPool::ScheduleTransaction(TransactionInfo* aTransactionInfo, // We need a thread right now so force all idle processing to stop by // posting a dummy runnable to each thread that might be doing idle // maintenance. - nsCOMPtr runnable = new Runnable(); + nsCOMPtr runnable = new Runnable("IndexedDBDummyRunnable"); for (uint32_t index = mDatabasesPerformingIdleMaintenance.Length(); index > 0; @@ -13183,7 +13191,8 @@ ConnectionPool::CloseDatabaseWhenIdleInternal(const nsACString& aDatabaseId) ConnectionPool:: ConnectionRunnable::ConnectionRunnable(DatabaseInfo* aDatabaseInfo) - : mDatabaseInfo(aDatabaseInfo) + : Runnable("dom::indexedDB::ConnectionPool::ConnectionRunnable") + , mDatabaseInfo(aDatabaseInfo) , mOwningEventTarget(GetCurrentThreadEventTarget()) { AssertIsOnBackgroundThread(); @@ -13345,11 +13354,12 @@ DatabasesCompleteCallback::~DatabasesCompleteCallback() MOZ_COUNT_DTOR(ConnectionPool::DatabasesCompleteCallback); } -ConnectionPool:: -FinishCallbackWrapper::FinishCallbackWrapper(ConnectionPool* aConnectionPool, - uint64_t aTransactionId, - FinishCallback* aCallback) - : mConnectionPool(aConnectionPool) +ConnectionPool::FinishCallbackWrapper::FinishCallbackWrapper( + ConnectionPool* aConnectionPool, + uint64_t aTransactionId, + FinishCallback* aCallback) + : Runnable("dom::indexedDB::ConnectionPool::FinishCallbackWrapper") + , mConnectionPool(aConnectionPool) , mCallback(aCallback) , mOwningEventTarget(GetCurrentThreadEventTarget()) , mTransactionId(aTransactionId) @@ -13412,9 +13422,9 @@ FinishCallbackWrapper::Run() uint32_t ConnectionPool::ThreadRunnable::sNextSerialNumber = 0; -ConnectionPool:: -ThreadRunnable::ThreadRunnable() - : mSerialNumber(++sNextSerialNumber) +ConnectionPool::ThreadRunnable::ThreadRunnable() + : Runnable("dom::indexedDB::ConnectionPool::ThreadRunnable") + , mSerialNumber(++sNextSerialNumber) , mFirstRun(true) , mContinueRunning(true) { @@ -14477,7 +14487,9 @@ Database::MaybeCloseConnection() IsClosed() && mDirectoryLock) { nsCOMPtr callback = - NewRunnableMethod(this, &Database::ConnectionClosedCallback); + NewRunnableMethod("dom::indexedDB::Database::ConnectionClosedCallback", + this, + &Database::ConnectionClosedCallback); RefPtr helper = new WaitForTransactionsHelper(Id(), callback); @@ -22679,8 +22691,10 @@ OpenDatabaseOp::SendResults() // Make sure to release the database on this thread. mDatabase = nullptr; } else if (mDirectoryLock) { - nsCOMPtr callback = - NewRunnableMethod(this, &OpenDatabaseOp::ConnectionClosedCallback); + nsCOMPtr callback = NewRunnableMethod( + "dom::indexedDB::OpenDatabaseOp::ConnectionClosedCallback", + this, + &OpenDatabaseOp::ConnectionClosedCallback); RefPtr helper = new WaitForTransactionsHelper(mDatabaseId, callback); diff --git a/dom/indexedDB/FileInfo.cpp b/dom/indexedDB/FileInfo.cpp index 471007273a1e..f4f515c20ae6 100644 --- a/dom/indexedDB/FileInfo.cpp +++ b/dom/indexedDB/FileInfo.cpp @@ -60,7 +60,8 @@ public: DoCleanup(FileManager* aFileManager, int64_t aFileId); CleanupFileRunnable(FileManager* aFileManager, int64_t aFileId) - : mFileManager(aFileManager) + : Runnable("dom::indexedDB::CleanupFileRunnable") + , mFileManager(aFileManager) , mFileId(aFileId) { MOZ_ASSERT(aFileManager); diff --git a/dom/indexedDB/IDBDatabase.cpp b/dom/indexedDB/IDBDatabase.cpp index 02f40b477847..19936161e685 100644 --- a/dom/indexedDB/IDBDatabase.cpp +++ b/dom/indexedDB/IDBDatabase.cpp @@ -73,9 +73,9 @@ class CancelableRunnableWrapper final nsCOMPtr mRunnable; public: - explicit - CancelableRunnableWrapper(nsIRunnable* aRunnable) - : mRunnable(aRunnable) + explicit CancelableRunnableWrapper(nsIRunnable* aRunnable) + : CancelableRunnable("dom::CancelableRunnableWrapper") + , mRunnable(aRunnable) { MOZ_ASSERT(aRunnable); } diff --git a/dom/indexedDB/ScriptErrorHelper.cpp b/dom/indexedDB/ScriptErrorHelper.cpp index 7a4740641753..b643154e9591 100644 --- a/dom/indexedDB/ScriptErrorHelper.cpp +++ b/dom/indexedDB/ScriptErrorHelper.cpp @@ -36,7 +36,8 @@ public: uint32_t aSeverityFlag, bool aIsChrome, uint64_t aInnerWindowID) - : mMessage(aMessage) + : mozilla::Runnable("ScriptErrorRunnable") + , mMessage(aMessage) , mFilename(aFilename) , mLineNumber(aLineNumber) , mColumnNumber(aColumnNumber) @@ -55,7 +56,8 @@ public: uint32_t aSeverityFlag, bool aIsChrome, uint64_t aInnerWindowID) - : mMessageName(aMessageName) + : mozilla::Runnable("ScriptErrorRunnable") + , mMessageName(aMessageName) , mFilename(aFilename) , mLineNumber(aLineNumber) , mColumnNumber(aColumnNumber) diff --git a/dom/ipc/ContentBridgeChild.cpp b/dom/ipc/ContentBridgeChild.cpp index 4f875a2deed9..740f8f04e881 100644 --- a/dom/ipc/ContentBridgeChild.cpp +++ b/dom/ipc/ContentBridgeChild.cpp @@ -32,7 +32,10 @@ ContentBridgeChild::~ContentBridgeChild() void ContentBridgeChild::ActorDestroy(ActorDestroyReason aWhy) { - MessageLoop::current()->PostTask(NewRunnableMethod(this, &ContentBridgeChild::DeferredDestroy)); + MessageLoop::current()->PostTask( + NewRunnableMethod("dom::ContentBridgeChild::DeferredDestroy", + this, + &ContentBridgeChild::DeferredDestroy)); } /*static*/ void diff --git a/dom/ipc/ContentBridgeParent.cpp b/dom/ipc/ContentBridgeParent.cpp index 3f8ee5ca8216..4cbc78f51545 100644 --- a/dom/ipc/ContentBridgeParent.cpp +++ b/dom/ipc/ContentBridgeParent.cpp @@ -36,7 +36,10 @@ ContentBridgeParent::ActorDestroy(ActorDestroyReason aWhy) if (os) { os->RemoveObserver(this, "content-child-shutdown"); } - MessageLoop::current()->PostTask(NewRunnableMethod(this, &ContentBridgeParent::DeferredDestroy)); + MessageLoop::current()->PostTask( + NewRunnableMethod("dom::ContentBridgeParent::DeferredDestroy", + this, + &ContentBridgeParent::DeferredDestroy)); } /*static*/ ContentBridgeParent* @@ -173,7 +176,8 @@ ContentBridgeParent::NotifyTabDestroyed() { int32_t numLiveTabs = ManagedPBrowserParent().Count(); if (numLiveTabs == 1) { - MessageLoop::current()->PostTask(NewRunnableMethod(this, &ContentBridgeParent::Close)); + MessageLoop::current()->PostTask(NewRunnableMethod( + "dom::ContentBridgeParent::Close", this, &ContentBridgeParent::Close)); } } diff --git a/dom/ipc/ContentChild.cpp b/dom/ipc/ContentChild.cpp index 247b3c21960b..16fed34a73aa 100644 --- a/dom/ipc/ContentChild.cpp +++ b/dom/ipc/ContentChild.cpp @@ -2776,10 +2776,12 @@ ContentChild::StartForceKillTimer() if (timeoutSecs > 0) { mForceKillTimer = do_CreateInstance("@mozilla.org/timer;1"); MOZ_ASSERT(mForceKillTimer); - mForceKillTimer->InitWithFuncCallback(ContentChild::ForceKillTimerCallback, + mForceKillTimer->InitWithNamedFuncCallback( + ContentChild::ForceKillTimerCallback, this, timeoutSecs * 1000, - nsITimer::TYPE_ONE_SHOT); + nsITimer::TYPE_ONE_SHOT, + "dom::ContentChild::StartForceKillTimer"); } } @@ -2809,7 +2811,9 @@ ContentChild::RecvShutdown() // time (100ms) in the hopes that the event loop will have finished by // then. MessageLoop::current()->PostDelayedTask( - NewRunnableMethod(this, &ContentChild::RecvShutdown), 100); + NewRunnableMethod( + "dom::ContentChild::RecvShutdown", this, &ContentChild::RecvShutdown), + 100); return IPC_OK(); } } diff --git a/dom/ipc/ContentParent.cpp b/dom/ipc/ContentParent.cpp index 329a5055d0fc..323793b86280 100644 --- a/dom/ipc/ContentParent.cpp +++ b/dom/ipc/ContentParent.cpp @@ -1711,7 +1711,11 @@ DelayedDeleteSubprocess(GeckoChildProcessHost* aSubprocess) // system. struct DelayedDeleteContentParentTask : public Runnable { - explicit DelayedDeleteContentParentTask(ContentParent* aObj) : mObj(aObj) { } + explicit DelayedDeleteContentParentTask(ContentParent* aObj) + : Runnable("dom::DelayedDeleteContentParentTask") + , mObj(aObj) + { + } // No-op NS_IMETHOD Run() override { return NS_OK; } @@ -1843,10 +1847,11 @@ ContentParent::ActorDestroy(ActorDestroyReason why) // Destroy any processes created by this ContentParent for(uint32_t i = 0; i < childIDArray.Length(); i++) { ContentParent* cp = cpm->GetContentProcessById(childIDArray[i]); - MessageLoop::current()->PostTask(NewRunnableMethod - (cp, - &ContentParent::ShutDownProcess, - SEND_SHUTDOWN_MESSAGE)); + MessageLoop::current()->PostTask( + NewRunnableMethod("dom::ContentParent::ShutDownProcess", + cp, + &ContentParent::ShutDownProcess, + SEND_SHUTDOWN_MESSAGE)); } cpm->RemoveContentProcess(this->ChildID()); @@ -1972,10 +1977,12 @@ ContentParent::StartForceKillTimer() if (timeoutSecs > 0) { mForceKillTimer = do_CreateInstance("@mozilla.org/timer;1"); MOZ_ASSERT(mForceKillTimer); - mForceKillTimer->InitWithFuncCallback(ContentParent::ForceKillTimerCallback, - this, - timeoutSecs * 1000, - nsITimer::TYPE_ONE_SHOT); + mForceKillTimer->InitWithNamedFuncCallback( + ContentParent::ForceKillTimerCallback, + this, + timeoutSecs * 1000, + nsITimer::TYPE_ONE_SHOT, + "dom::ContentParent::StartForceKillTimer"); } } @@ -2004,10 +2011,11 @@ ContentParent::NotifyTabDestroyed(const TabId& aTabId, if (tabIds.Length() == 1 && !ShouldKeepProcessAlive() && !TryToRecycle()) { // In the case of normal shutdown, send a shutdown message to child to // allow it to perform shutdown tasks. - MessageLoop::current()->PostTask(NewRunnableMethod - (this, - &ContentParent::ShutDownProcess, - SEND_SHUTDOWN_MESSAGE)); + MessageLoop::current()->PostTask( + NewRunnableMethod("dom::ContentParent::ShutDownProcess", + this, + &ContentParent::ShutDownProcess, + SEND_SHUTDOWN_MESSAGE)); } } @@ -4094,7 +4102,8 @@ class AnonymousTemporaryFileRequestor final : public Runnable { public: AnonymousTemporaryFileRequestor(ContentParent* aCP, const uint64_t& aID) - : mCP(aCP) + : Runnable("dom::AnonymousTemporaryFileRequestor") + , mCP(aCP) , mID(aID) , mRv(NS_OK) , mPRFD(nullptr) diff --git a/dom/ipc/FilePickerParent.cpp b/dom/ipc/FilePickerParent.cpp index ad1ff208be08..9448a1afd2dd 100644 --- a/dom/ipc/FilePickerParent.cpp +++ b/dom/ipc/FilePickerParent.cpp @@ -49,11 +49,12 @@ FilePickerParent::~FilePickerParent() // 2. The stream transport thread stat()s the file in Run() and then dispatches // the same runnable on the main thread. // 3. The main thread sends the results over IPC. -FilePickerParent::IORunnable::IORunnable(FilePickerParent *aFPParent, +FilePickerParent::IORunnable::IORunnable(FilePickerParent* aFPParent, nsTArray>& aFiles, bool aIsDirectory) - : mFilePickerParent(aFPParent) - , mIsDirectory(aIsDirectory) + : mozilla::Runnable("dom::FilePickerParent::IORunnable") + , mFilePickerParent(aFPParent) + , mIsDirectory(aIsDirectory) { mFiles.SwapElements(aFiles); MOZ_ASSERT_IF(aIsDirectory, mFiles.Length() == 1); diff --git a/dom/ipc/PreallocatedProcessManager.cpp b/dom/ipc/PreallocatedProcessManager.cpp index 39ba78d0b982..77fc8beb8269 100644 --- a/dom/ipc/PreallocatedProcessManager.cpp +++ b/dom/ipc/PreallocatedProcessManager.cpp @@ -206,7 +206,9 @@ PreallocatedProcessManagerImpl::AllocateAfterDelay() // message loop in practice never goes idle, that didn't work out well. // Let's just launch the process after the delay. NS_DelayedDispatchToCurrentThread( - NewRunnableMethod(this, &PreallocatedProcessManagerImpl::AllocateNow), + NewRunnableMethod("PreallocatedProcessManagerImpl::AllocateNow", + this, + &PreallocatedProcessManagerImpl::AllocateNow), Preferences::GetUint("dom.ipc.processPrelaunch.delayMs", DEFAULT_ALLOCATE_DELAY)); } @@ -218,7 +220,10 @@ PreallocatedProcessManagerImpl::AllocateOnIdle() return; } - NS_IdleDispatchToCurrentThread(NewRunnableMethod(this, &PreallocatedProcessManagerImpl::AllocateNow)); + NS_IdleDispatchToCurrentThread( + NewRunnableMethod("PreallocatedProcessManagerImpl::AllocateNow", + this, + &PreallocatedProcessManagerImpl::AllocateNow)); } void diff --git a/dom/ipc/ProcessHangMonitor.cpp b/dom/ipc/ProcessHangMonitor.cpp index 91f605cb8b0e..2f8fcfe2d256 100644 --- a/dom/ipc/ProcessHangMonitor.cpp +++ b/dom/ipc/ProcessHangMonitor.cpp @@ -369,7 +369,9 @@ HangMonitorChild::ActorDestroy(ActorDestroyReason aWhy) // We use a task here to ensure that IPDL is finished with this // HangMonitorChild before it gets deleted on the main thread. - Dispatch(NewNonOwningRunnableMethod(this, &HangMonitorChild::ShutdownOnThread)); + Dispatch(NewNonOwningRunnableMethod("HangMonitorChild::ShutdownOnThread", + this, + &HangMonitorChild::ShutdownOnThread)); } mozilla::ipc::IPCResult @@ -480,10 +482,12 @@ HangMonitorChild::NotifySlowScript(nsITabChild* aTabChild, } nsAutoCString filename(aFileName); - Dispatch(NewNonOwningRunnableMethod - (this, - &HangMonitorChild::NotifySlowScriptAsync, - id, filename)); + Dispatch(NewNonOwningRunnableMethod( + "HangMonitorChild::NotifySlowScriptAsync", + this, + &HangMonitorChild::NotifySlowScriptAsync, + id, + filename)); return SlowScriptAction::Continue; } @@ -511,9 +515,11 @@ HangMonitorChild::NotifyPluginHang(uint32_t aPluginId) mSentReport = true; // bounce to background thread - Dispatch(NewNonOwningRunnableMethod(this, - &HangMonitorChild::NotifyPluginHangAsync, - aPluginId)); + Dispatch(NewNonOwningRunnableMethod( + "HangMonitorChild::NotifyPluginHangAsync", + this, + &HangMonitorChild::NotifyPluginHangAsync, + aPluginId)); } void @@ -535,7 +541,9 @@ HangMonitorChild::ClearHang() if (mSentReport) { // bounce to background thread - Dispatch(NewNonOwningRunnableMethod(this, &HangMonitorChild::ClearHangAsync)); + Dispatch(NewNonOwningRunnableMethod("HangMonitorChild::ClearHangAsync", + this, + &HangMonitorChild::ClearHangAsync)); MonitorAutoLock lock(mMonitor); mSentReport = false; @@ -603,7 +611,8 @@ HangMonitorParent::Shutdown() mProcess = nullptr; } - Dispatch(NewNonOwningRunnableMethod(this, + Dispatch(NewNonOwningRunnableMethod("HangMonitorParent::ShutdownOnThread", + this, &HangMonitorParent::ShutdownOnThread)); while (!mShutdownDone) { @@ -634,8 +643,12 @@ HangMonitorParent::ForcePaint(dom::TabParent* aTab, uint64_t aLayerObserverEpoch MOZ_RELEASE_ASSERT(NS_IsMainThread()); if (sShouldForcePaint) { TabId id = aTab->GetTabId(); - Dispatch(NewNonOwningRunnableMethod - (this, &HangMonitorParent::ForcePaintOnThread, id, aLayerObserverEpoch)); + Dispatch(NewNonOwningRunnableMethod( + "HangMonitorParent::ForcePaintOnThread", + this, + &HangMonitorParent::ForcePaintOnThread, + id, + aLayerObserverEpoch)); } } @@ -944,8 +957,10 @@ HangMonitoredProcess::TerminateScript() return NS_ERROR_UNEXPECTED; } - ProcessHangMonitor::Get()->Dispatch(NewNonOwningRunnableMethod(mActor, - &HangMonitorParent::TerminateScript)); + ProcessHangMonitor::Get()->Dispatch( + NewNonOwningRunnableMethod("HangMonitorParent::TerminateScript", + mActor, + &HangMonitorParent::TerminateScript)); return NS_OK; } @@ -961,8 +976,10 @@ HangMonitoredProcess::BeginStartingDebugger() return NS_ERROR_UNEXPECTED; } - ProcessHangMonitor::Get()->Dispatch(NewNonOwningRunnableMethod(mActor, - &HangMonitorParent::BeginStartingDebugger)); + ProcessHangMonitor::Get()->Dispatch( + NewNonOwningRunnableMethod("HangMonitorParent::BeginStartingDebugger", + mActor, + &HangMonitorParent::BeginStartingDebugger)); return NS_OK; } @@ -978,8 +995,10 @@ HangMonitoredProcess::EndStartingDebugger() return NS_ERROR_UNEXPECTED; } - ProcessHangMonitor::Get()->Dispatch(NewNonOwningRunnableMethod(mActor, - &HangMonitorParent::EndStartingDebugger)); + ProcessHangMonitor::Get()->Dispatch( + NewNonOwningRunnableMethod("HangMonitorParent::EndStartingDebugger", + mActor, + &HangMonitorParent::EndStartingDebugger)); return NS_OK; } @@ -1159,10 +1178,12 @@ CreateHangMonitorParent(ContentParent* aContentParent, auto* process = new HangMonitoredProcess(parent, aContentParent); parent->SetProcess(process); - monitor->Dispatch(NewNonOwningRunnableMethod - &&>(parent, - &HangMonitorParent::Bind, - Move(aEndpoint))); + monitor->Dispatch( + NewNonOwningRunnableMethod&&>( + "HangMonitorParent::Bind", + parent, + &HangMonitorParent::Bind, + Move(aEndpoint))); return parent; } @@ -1178,10 +1199,12 @@ mozilla::CreateHangMonitorChild(Endpoint&& aEndpoint) ProcessHangMonitor* monitor = ProcessHangMonitor::GetOrCreate(); auto* child = new HangMonitorChild(monitor); - monitor->Dispatch(NewNonOwningRunnableMethod - &&>(child, - &HangMonitorChild::Bind, - Move(aEndpoint))); + monitor->Dispatch( + NewNonOwningRunnableMethod&&>( + "HangMonitorChild::Bind", + child, + &HangMonitorChild::Bind, + Move(aEndpoint))); } void diff --git a/dom/ipc/TabParent.cpp b/dom/ipc/TabParent.cpp index 093075f06f90..8870ef7f46cc 100644 --- a/dom/ipc/TabParent.cpp +++ b/dom/ipc/TabParent.cpp @@ -2781,8 +2781,13 @@ class LayerTreeUpdateRunnable final bool mActive; public: - explicit LayerTreeUpdateRunnable(uint64_t aLayersId, uint64_t aEpoch, bool aActive) - : mLayersId(aLayersId), mEpoch(aEpoch), mActive(aActive) + explicit LayerTreeUpdateRunnable(uint64_t aLayersId, + uint64_t aEpoch, + bool aActive) + : Runnable("dom::LayerTreeUpdateRunnable") + , mLayersId(aLayersId) + , mEpoch(aEpoch) + , mActive(aActive) { MOZ_ASSERT(!NS_IsMainThread()); } diff --git a/dom/jsurl/nsJSProtocolHandler.cpp b/dom/jsurl/nsJSProtocolHandler.cpp index beb8f30e6a1c..845fc2b8a158 100644 --- a/dom/jsurl/nsJSProtocolHandler.cpp +++ b/dom/jsurl/nsJSProtocolHandler.cpp @@ -663,7 +663,8 @@ nsJSChannel::AsyncOpen(nsIStreamListener *aListener, nsISupports *aContext) name = "nsJSChannel::NotifyListener"; } - nsresult rv = NS_DispatchToCurrentThread(mozilla::NewRunnableMethod(name, this, method)); + nsresult rv = NS_DispatchToCurrentThread( + mozilla::NewRunnableMethod(name, this, method)); if (NS_FAILED(rv)) { loadGroup->RemoveRequest(this, nullptr, rv); diff --git a/dom/media/Benchmark.cpp b/dom/media/Benchmark.cpp index 7a1782766584..2846a74470bb 100644 --- a/dom/media/Benchmark.cpp +++ b/dom/media/Benchmark.cpp @@ -111,8 +111,8 @@ Benchmark::Run() RefPtr p = mPromise.Ensure(__func__); RefPtr self = this; - mPlaybackState.Dispatch( - NS_NewRunnableFunction([self]() { self->mPlaybackState.DemuxSamples(); })); + mPlaybackState.Dispatch(NS_NewRunnableFunction( + "Benchmark::Run", [self]() { self->mPlaybackState.DemuxSamples(); })); return p; } @@ -196,7 +196,8 @@ BenchmarkPlayback::DemuxNextSample() && mSamples.Length() == (size_t)ref->mParameters.mStopAtFrame.ref()) { InitDecoder(Move(*mTrackDemuxer->GetInfo())); } else { - Dispatch(NS_NewRunnableFunction([this, ref]() { DemuxNextSample(); })); + Dispatch(NS_NewRunnableFunction("BenchmarkPlayback::DemuxNextSample", + [this, ref]() { DemuxNextSample(); })); } }, [this, ref](const MediaResult& aError) { @@ -291,9 +292,10 @@ BenchmarkPlayback::Output(const MediaDataDecoder::DecodedData& aResults) || mDrained)) { uint32_t decodeFps = frames / elapsedTime.ToSeconds(); MainThreadShutdown(); - ref->Dispatch(NS_NewRunnableFunction([ref, decodeFps]() { - ref->ReturnResult(decodeFps); - })); + ref->Dispatch( + NS_NewRunnableFunction("BenchmarkPlayback::Output", [ref, decodeFps]() { + ref->ReturnResult(decodeFps); + })); } } diff --git a/dom/media/CanvasCaptureMediaStream.cpp b/dom/media/CanvasCaptureMediaStream.cpp index c30f2f3f4351..2f24540d0a46 100644 --- a/dom/media/CanvasCaptureMediaStream.cpp +++ b/dom/media/CanvasCaptureMediaStream.cpp @@ -142,7 +142,11 @@ public: if (!mTimer) { return; } - mTimer->InitWithFuncCallback(&TimerTick, this, int(1000 / mFPS), nsITimer::TYPE_REPEATING_SLACK); + mTimer->InitWithNamedFuncCallback(&TimerTick, + this, + int(1000 / mFPS), + nsITimer::TYPE_REPEATING_SLACK, + "dom::TimerDriver::TimerDriver"); } static void TimerTick(nsITimer* aTimer, void* aClosure) diff --git a/dom/media/CubebUtils.cpp b/dom/media/CubebUtils.cpp index 29f8a870dad3..a885274cd325 100644 --- a/dom/media/CubebUtils.cpp +++ b/dom/media/CubebUtils.cpp @@ -421,7 +421,8 @@ void InitLibrary() Preferences::RegisterCallbackAndCall(PrefChanged, PREF_CUBEB_BACKEND); Preferences::RegisterCallbackAndCall(PrefChanged, PREF_CUBEB_LOG_LEVEL); #ifndef MOZ_WIDGET_ANDROID - NS_DispatchToMainThread(NS_NewRunnableFunction(&InitBrandName)); + NS_DispatchToMainThread( + NS_NewRunnableFunction("CubebUtils::InitLibrary", &InitBrandName)); #endif } diff --git a/dom/media/DOMMediaStream.cpp b/dom/media/DOMMediaStream.cpp index 0ad0e9aa4d6a..9afd2ec409ac 100644 --- a/dom/media/DOMMediaStream.cpp +++ b/dom/media/DOMMediaStream.cpp @@ -185,7 +185,10 @@ public: RefPtr newTrack = mStream->CreateDOMTrack(aTrackID, aType, source); NS_DispatchToMainThread(NewRunnableMethod>( - mStream, &DOMMediaStream::AddTrackInternal, newTrack)); + "DOMMediaStream::AddTrackInternal", + mStream, + &DOMMediaStream::AddTrackInternal, + newTrack)); } void DoNotifyTrackEnded(MediaStream* aInputStream, TrackID aInputTrackID, @@ -203,8 +206,10 @@ public: if (track) { LOG(LogLevel::Debug, ("DOMMediaStream %p MediaStreamTrack %p ended at the source. Marking it ended.", mStream, track.get())); - NS_DispatchToMainThread(NewRunnableMethod( - track, &MediaStreamTrack::OverrideEnded)); + NS_DispatchToMainThread( + NewRunnableMethod("dom::MediaStreamTrack::OverrideEnded", + track, + &MediaStreamTrack::OverrideEnded)); } } @@ -217,15 +222,27 @@ public: if (aTrackEvents & TrackEventCommand::TRACK_EVENT_CREATED) { aGraph->DispatchToMainThreadAfterStreamStateUpdate( mAbstractMainThread, - NewRunnableMethod, TrackID>( - this, &OwnedStreamListener::DoNotifyTrackCreated, - aID, aQueuedMedia.GetType(), aInputStream, aInputTrackID)); + NewRunnableMethod, + TrackID>( + "DOMMediaStream::OwnedStreamListener::DoNotifyTrackCreated", + this, + &OwnedStreamListener::DoNotifyTrackCreated, + aID, + aQueuedMedia.GetType(), + aInputStream, + aInputTrackID)); } else if (aTrackEvents & TrackEventCommand::TRACK_EVENT_ENDED) { aGraph->DispatchToMainThreadAfterStreamStateUpdate( mAbstractMainThread, NewRunnableMethod, TrackID, TrackID>( - this, &OwnedStreamListener::DoNotifyTrackEnded, - aInputStream, aInputTrackID, aID)); + "DOMMediaStream::OwnedStreamListener::DoNotifyTrackEnded", + this, + &OwnedStreamListener::DoNotifyTrackEnded, + aInputStream, + aInputTrackID, + aID)); } } @@ -266,7 +283,9 @@ public: // dispatch. We have to do the same to notify of created tracks to stay // in sync. (Or NotifyTracksCreated is called before tracks are added). NS_DispatchToMainThread( - NewRunnableMethod(mStream, &DOMMediaStream::NotifyTracksCreated)); + NewRunnableMethod("DOMMediaStream::NotifyTracksCreated", + mStream, + &DOMMediaStream::NotifyTracksCreated)); } void DoNotifyFinished() @@ -277,8 +296,9 @@ public: return; } - NS_DispatchToMainThread(NewRunnableMethod( - mStream, &DOMMediaStream::NotifyFinished)); + NS_DispatchToMainThread(NewRunnableMethod("DOMMediaStream::NotifyFinished", + mStream, + &DOMMediaStream::NotifyFinished)); } // The methods below are called on the MediaStreamGraph thread. @@ -287,7 +307,10 @@ public: { aGraph->DispatchToMainThreadAfterStreamStateUpdate( mAbstractMainThread, - NewRunnableMethod(this, &PlaybackStreamListener::DoNotifyFinishedTrackCreation)); + NewRunnableMethod( + "DOMMediaStream::PlaybackStreamListener::DoNotifyFinishedTrackCreation", + this, + &PlaybackStreamListener::DoNotifyFinishedTrackCreation)); } @@ -297,7 +320,10 @@ public: if (event == MediaStreamGraphEvent::EVENT_FINISHED) { aGraph->DispatchToMainThreadAfterStreamStateUpdate( mAbstractMainThread, - NewRunnableMethod(this, &PlaybackStreamListener::DoNotifyFinished)); + NewRunnableMethod( + "DOMMediaStream::PlaybackStreamListener::DoNotifyFinished", + this, + &PlaybackStreamListener::DoNotifyFinished)); } } diff --git a/dom/media/EncodedBufferCache.cpp b/dom/media/EncodedBufferCache.cpp index 31fb99dd8283..0e3c3ed46f00 100644 --- a/dom/media/EncodedBufferCache.cpp +++ b/dom/media/EncodedBufferCache.cpp @@ -50,7 +50,9 @@ EncodedBufferCache::AppendBuffer(nsTArray & aBuf) Monitor monitor("EncodeBufferCache::AppendBuffer"); RefPtr cc = dom::ContentChild::GetSingleton(); nsCOMPtr runnable = - NewRunnableMethod(cc, + NewRunnableMethod( + "dom::ContentChild::AsyncOpenAnonymousTemporaryFile", + cc, &dom::ContentChild::AsyncOpenAnonymousTemporaryFile, [&](PRFileDesc* aFile) { rv = aFile ? NS_OK : NS_ERROR_FAILURE; diff --git a/dom/media/FileBlockCache.cpp b/dom/media/FileBlockCache.cpp index a0d044703c08..cfeedefb7319 100644 --- a/dom/media/FileBlockCache.cpp +++ b/dom/media/FileBlockCache.cpp @@ -95,15 +95,18 @@ FileBlockCache::Init() if (XRE_IsParentProcess()) { RefPtr self = this; - rv = mThread->Dispatch(NS_NewRunnableFunction([self] { - PRFileDesc* fd = nullptr; - nsresult rv = NS_OpenAnonymousTemporaryFile(&fd); - if (NS_SUCCEEDED(rv)) { - self->SetCacheFile(fd); - } else { - self->Close(); - } - }), NS_DISPATCH_NORMAL); + rv = mThread->Dispatch( + NS_NewRunnableFunction("FileBlockCache::Init", + [self] { + PRFileDesc* fd = nullptr; + nsresult rv = NS_OpenAnonymousTemporaryFile(&fd); + if (NS_SUCCEEDED(rv)) { + self->SetCacheFile(fd); + } else { + self->Close(); + } + }), + NS_DISPATCH_NORMAL); } else { // We must request a temporary file descriptor from the parent process. RefPtr self = this; @@ -157,19 +160,28 @@ FileBlockCache::Close() // Let the thread close the FD, and then trigger its own shutdown. // Note that mThread is now empty, so no other task will be posted there. // Also mThread and mFD are empty and therefore can be reused immediately. - nsresult rv = thread->Dispatch(NS_NewRunnableFunction([thread, fd] { - if (fd) { - CloseFD(fd); - } - // We must shut down the thread in another runnable. This is called - // while we're shutting down the media cache, and nsIThread::Shutdown() - // can cause events to run before it completes, which could end up - // opening more streams, while the media cache is shutting down and - // releasing memory etc! - nsCOMPtr event = new ShutdownThreadEvent(thread); - SystemGroup::Dispatch( - "ShutdownThreadEvent", TaskCategory::Other, event.forget()); - }), NS_DISPATCH_NORMAL); + nsresult rv = thread->Dispatch( + NS_NewRunnableFunction("FileBlockCache::Close", + [thread, fd] { + if (fd) { + CloseFD(fd); + } + // We must shut down the thread in another + // runnable. This is called + // while we're shutting down the media cache, and + // nsIThread::Shutdown() + // can cause events to run before it completes, + // which could end up + // opening more streams, while the media cache is + // shutting down and + // releasing memory etc! + nsCOMPtr event = + new ShutdownThreadEvent(thread); + SystemGroup::Dispatch("ShutdownThreadEvent", + TaskCategory::Other, + event.forget()); + }), + NS_DISPATCH_NORMAL); NS_ENSURE_SUCCESS_VOID(rv); } diff --git a/dom/media/GraphDriver.cpp b/dom/media/GraphDriver.cpp index ee39c442fa56..a19bc1fbec2c 100644 --- a/dom/media/GraphDriver.cpp +++ b/dom/media/GraphDriver.cpp @@ -141,8 +141,10 @@ ThreadedDriver::ThreadedDriver(MediaStreamGraphImpl* aGraphImpl) class MediaStreamGraphShutdownThreadRunnable : public Runnable { public: - explicit MediaStreamGraphShutdownThreadRunnable(already_AddRefed aThread) - : mThread(aThread) + explicit MediaStreamGraphShutdownThreadRunnable( + already_AddRefed aThread) + : Runnable("MediaStreamGraphShutdownThreadRunnable") + , mThread(aThread) { } NS_IMETHOD Run() override @@ -173,7 +175,8 @@ ThreadedDriver::~ThreadedDriver() class MediaStreamGraphInitThreadRunnable : public Runnable { public: explicit MediaStreamGraphInitThreadRunnable(ThreadedDriver* aDriver) - : mDriver(aDriver) + : Runnable("MediaStreamGraphInitThreadRunnable") + , mDriver(aDriver) { } NS_IMETHOD Run() override @@ -467,10 +470,12 @@ OfflineClockDriver::WakeUp() MOZ_ASSERT(false, "An offline graph should not have to wake up."); } -AsyncCubebTask::AsyncCubebTask(AudioCallbackDriver* aDriver, AsyncCubebOperation aOperation) - : mDriver(aDriver), - mOperation(aOperation), - mShutdownGrip(aDriver->GraphImpl()) +AsyncCubebTask::AsyncCubebTask(AudioCallbackDriver* aDriver, + AsyncCubebOperation aOperation) + : Runnable("AsyncCubebTask") + , mDriver(aDriver) + , mOperation(aOperation) + , mShutdownGrip(aDriver->GraphImpl()) { NS_WARNING_ASSERTION(mDriver->mAudioStream || aOperation == INIT, "No audio stream!"); @@ -492,9 +497,10 @@ AsyncCubebTask::EnsureThread() // since we don't know the order that the shutdown-threads observers // will run. ClearOnShutdown guarantees it runs first. if (!NS_IsMainThread()) { - NS_DispatchToMainThread(NS_NewRunnableFunction([]() -> void { - ClearOnShutdown(&sThreadPool, ShutdownPhase::ShutdownThreads); - })); + NS_DispatchToMainThread( + NS_NewRunnableFunction("AsyncCubebTask::EnsureThread", []() -> void { + ClearOnShutdown(&sThreadPool, ShutdownPhase::ShutdownThreads); + })); } else { ClearOnShutdown(&sThreadPool, ShutdownPhase::ShutdownThreads); } diff --git a/dom/media/Latency.cpp b/dom/media/Latency.cpp index c42c3178aac0..cdc3af87c47e 100644 --- a/dom/media/Latency.cpp +++ b/dom/media/Latency.cpp @@ -47,18 +47,24 @@ GetLatencyLog() class LogEvent : public Runnable { public: - LogEvent(AsyncLatencyLogger::LatencyLogIndex aIndex, uint64_t aID, int64_t aValue, - TimeStamp aTimeStamp) : - mIndex(aIndex), - mID(aID), - mValue(aValue), - mTimeStamp(aTimeStamp) + LogEvent(AsyncLatencyLogger::LatencyLogIndex aIndex, + uint64_t aID, + int64_t aValue, + TimeStamp aTimeStamp) + : mozilla::Runnable("LogEvent") + , mIndex(aIndex) + , mID(aID) + , mValue(aValue) + , mTimeStamp(aTimeStamp) {} - LogEvent(AsyncLatencyLogger::LatencyLogIndex aIndex, uint64_t aID, int64_t aValue) : - mIndex(aIndex), - mID(aID), - mValue(aValue), - mTimeStamp(TimeStamp()) + LogEvent(AsyncLatencyLogger::LatencyLogIndex aIndex, + uint64_t aID, + int64_t aValue) + : mozilla::Runnable("LogEvent") + , mIndex(aIndex) + , mID(aID) + , mValue(aValue) + , mTimeStamp(TimeStamp()) {} ~LogEvent() {} diff --git a/dom/media/MediaDecoder.cpp b/dom/media/MediaDecoder.cpp index 2bd9fc6855e6..5000df764101 100644 --- a/dom/media/MediaDecoder.cpp +++ b/dom/media/MediaDecoder.cpp @@ -214,30 +214,36 @@ MediaDecoder::ResourceCallback::NotifyDataArrived() // calls to MediaDecoder::NotifyDataArrived() which will update the buffer // ranges of the reader. mTimerArmed = true; - mTimer->InitWithFuncCallback( - TimerCallback, this, sDelay, nsITimer::TYPE_ONE_SHOT); + mTimer->InitWithNamedFuncCallback( + TimerCallback, + this, + sDelay, + nsITimer::TYPE_ONE_SHOT, + "MediaDecoder::ResourceCallback::NotifyDataArrived"); } void MediaDecoder::ResourceCallback::NotifyDataEnded(nsresult aStatus) { RefPtr self = this; - nsCOMPtr r = NS_NewRunnableFunction([=] () { - if (!self->mDecoder) { - return; - } - self->mDecoder->NotifyDownloadEnded(aStatus); - if (NS_SUCCEEDED(aStatus)) { - MediaDecoderOwner* owner = self->GetMediaOwner(); - MOZ_ASSERT(owner); - owner->DownloadSuspended(); + nsCOMPtr r = NS_NewRunnableFunction( + "MediaDecoder::ResourceCallback::NotifyDataEnded", [=]() { + if (!self->mDecoder) { + return; + } + self->mDecoder->NotifyDownloadEnded(aStatus); + if (NS_SUCCEEDED(aStatus)) { + MediaDecoderOwner* owner = self->GetMediaOwner(); + MOZ_ASSERT(owner); + owner->DownloadSuspended(); - // NotifySuspendedStatusChanged will tell the element that download - // has been suspended "by the cache", which is true since we never - // download anything. The element can then transition to HAVE_ENOUGH_DATA. - self->mDecoder->NotifySuspendedStatusChanged(); - } - }); + // NotifySuspendedStatusChanged will tell the element that download + // has been suspended "by the cache", which is true since we never + // download anything. The element can then transition to + // HAVE_ENOUGH_DATA. + self->mDecoder->NotifySuspendedStatusChanged(); + } + }); mAbstractMainThread->Dispatch(r.forget()); } @@ -264,11 +270,12 @@ MediaDecoder::ResourceCallback::NotifyBytesConsumed(int64_t aBytes, int64_t aOffset) { RefPtr self = this; - nsCOMPtr r = NS_NewRunnableFunction([=] () { - if (self->mDecoder) { - self->mDecoder->NotifyBytesConsumed(aBytes, aOffset); - } - }); + nsCOMPtr r = NS_NewRunnableFunction( + "MediaDecoder::ResourceCallback::NotifyBytesConsumed", [=]() { + if (self->mDecoder) { + self->mDecoder->NotifyBytesConsumed(aBytes, aOffset); + } + }); mAbstractMainThread->Dispatch(r.forget()); } @@ -471,10 +478,11 @@ MediaDecoder::Shutdown() // Ensure we always unregister asynchronously in order not to disrupt // the hashtable iterating in MediaShutdownManager::Shutdown(). RefPtr self = this; - nsCOMPtr r = NS_NewRunnableFunction([self] () { - self->mVideoFrameContainer = nullptr; - MediaShutdownManager::Instance().Unregister(self); - }); + nsCOMPtr r = + NS_NewRunnableFunction("MediaDecoder::Shutdown", [self]() { + self->mVideoFrameContainer = nullptr; + MediaShutdownManager::Instance().Unregister(self); + }); mAbstractMainThread->Dispatch(r.forget()); } diff --git a/dom/media/MediaDecoderReader.cpp b/dom/media/MediaDecoderReader.cpp index d192ab5df2f3..b9133f8d367f 100644 --- a/dom/media/MediaDecoderReader.cpp +++ b/dom/media/MediaDecoderReader.cpp @@ -92,7 +92,10 @@ MediaDecoderReader::Init() mTaskQueue, this, &MediaDecoderReader::NotifyDataArrived); } // Dispatch initialization that needs to happen on that task queue. - mTaskQueue->Dispatch(NewRunnableMethod(this, &MediaDecoderReader::InitializationTask)); + mTaskQueue->Dispatch( + NewRunnableMethod("MediaDecoderReader::InitializationTask", + this, + &MediaDecoderReader::InitializationTask)); return InitInternal(); } @@ -244,7 +247,8 @@ class ReRequestVideoWithSkipTask : public Runnable public: ReRequestVideoWithSkipTask(MediaDecoderReader* aReader, const media::TimeUnit& aTimeThreshold) - : mReader(aReader) + : Runnable("ReRequestVideoWithSkipTask") + , mReader(aReader) , mTimeThreshold(aTimeThreshold) { } @@ -270,7 +274,8 @@ class ReRequestAudioTask : public Runnable { public: explicit ReRequestAudioTask(MediaDecoderReader* aReader) - : mReader(aReader) + : Runnable("ReRequestAudioTask") + , mReader(aReader) { } diff --git a/dom/media/MediaDecoderReaderWrapper.cpp b/dom/media/MediaDecoderReaderWrapper.cpp index 48a136707807..7e4b776dfa64 100644 --- a/dom/media/MediaDecoderReaderWrapper.cpp +++ b/dom/media/MediaDecoderReaderWrapper.cpp @@ -111,7 +111,9 @@ MediaDecoderReaderWrapper::ReleaseResources() { MOZ_ASSERT(mOwnerThread->IsCurrentThreadIn()); nsCOMPtr r = - NewRunnableMethod(mReader, &MediaDecoderReader::ReleaseResources); + NewRunnableMethod("MediaDecoderReader::ReleaseResources", + mReader, + &MediaDecoderReader::ReleaseResources); mReader->OwnerThread()->Dispatch(r.forget()); } @@ -120,7 +122,8 @@ MediaDecoderReaderWrapper::ResetDecode(TrackSet aTracks) { MOZ_ASSERT(mOwnerThread->IsCurrentThreadIn()); nsCOMPtr r = - NewRunnableMethod(mReader, + NewRunnableMethod("MediaDecoderReader::ResetDecode", + mReader, &MediaDecoderReader::ResetDecode, aTracks); mReader->OwnerThread()->Dispatch(r.forget()); @@ -161,7 +164,9 @@ MediaDecoderReaderWrapper::SetVideoBlankDecode(bool aIsBlankDecode) { MOZ_ASSERT(mOwnerThread->IsCurrentThreadIn()); nsCOMPtr r = - NewRunnableMethod(mReader, &MediaDecoderReader::SetVideoNullDecode, + NewRunnableMethod("MediaDecoderReader::SetVideoNullDecode", + mReader, + &MediaDecoderReader::SetVideoNullDecode, aIsBlankDecode); mReader->OwnerThread()->Dispatch(r.forget()); } diff --git a/dom/media/MediaDecoderStateMachine.cpp b/dom/media/MediaDecoderStateMachine.cpp index 9292301a9692..0185f3a9d4b7 100644 --- a/dom/media/MediaDecoderStateMachine.cpp +++ b/dom/media/MediaDecoderStateMachine.cpp @@ -1663,7 +1663,9 @@ private: { public: explicit AysncNextFrameSeekTask(NextFrameSeekingState* aStateObject) - : mStateObj(aStateObject) + : Runnable("MediaDecoderStateMachine::NextFrameSeekingState::" + "AysncNextFrameSeekTask") + , mStateObj(aStateObject) { } @@ -2893,7 +2895,10 @@ nsresult MediaDecoderStateMachine::Init(MediaDecoder* aDecoder) // Dispatch initialization that needs to happen on that task queue. nsCOMPtr r = NewRunnableMethod>( - this, &MediaDecoderStateMachine::InitializationTask, aDecoder); + "MediaDecoderStateMachine::InitializationTask", + this, + &MediaDecoderStateMachine::InitializationTask, + aDecoder); mTaskQueue->DispatchStateChange(r.forget()); mAudioQueueListener = AudioQueue().PopEvent().Connect( @@ -3100,10 +3105,11 @@ void MediaDecoderStateMachine::PlayStateChanged() void MediaDecoderStateMachine::SetVideoDecodeMode(VideoDecodeMode aMode) { - nsCOMPtr r = - NewRunnableMethod(this, - &MediaDecoderStateMachine::SetVideoDecodeModeInternal, - aMode); + nsCOMPtr r = NewRunnableMethod( + "MediaDecoderStateMachine::SetVideoDecodeModeInternal", + this, + &MediaDecoderStateMachine::SetVideoDecodeModeInternal, + aMode); OwnerThread()->DispatchStateChange(r.forget()); } @@ -3652,7 +3658,9 @@ MediaDecoderStateMachine::ScheduleStateMachine() mDispatchedStateMachine = true; OwnerThread()->Dispatch( - NewRunnableMethod(this, &MediaDecoderStateMachine::RunStateMachine)); + NewRunnableMethod("MediaDecoderStateMachine::RunStateMachine", + this, + &MediaDecoderStateMachine::RunStateMachine)); } void @@ -3887,9 +3895,12 @@ MediaDecoderStateMachine::RequestDebugInfo() using PromiseType = MediaDecoder::DebugInfoPromise; RefPtr p = new PromiseType::Private(__func__); RefPtr self = this; - OwnerThread()->Dispatch(NS_NewRunnableFunction([self, p] () { - p->Resolve(self->GetDebugInfo(), __func__); - }), AbstractThread::AssertDispatchSuccess, AbstractThread::TailDispatch); + OwnerThread()->Dispatch( + NS_NewRunnableFunction( + "MediaDecoderStateMachine::RequestDebugInfo", + [self, p]() { p->Resolve(self->GetDebugInfo(), __func__); }), + AbstractThread::AssertDispatchSuccess, + AbstractThread::TailDispatch); return p.forget(); } @@ -3899,8 +3910,11 @@ void MediaDecoderStateMachine::AddOutputStream(ProcessedMediaStream* aStream, MOZ_ASSERT(NS_IsMainThread()); LOG("AddOutputStream aStream=%p!", aStream); mOutputStreamManager->Add(aStream, aFinishWhenEnded); - nsCOMPtr r = NewRunnableMethod( - this, &MediaDecoderStateMachine::SetAudioCaptured, true); + nsCOMPtr r = + NewRunnableMethod("MediaDecoderStateMachine::SetAudioCaptured", + this, + &MediaDecoderStateMachine::SetAudioCaptured, + true); OwnerThread()->Dispatch(r.forget()); } @@ -3910,8 +3924,11 @@ void MediaDecoderStateMachine::RemoveOutputStream(MediaStream* aStream) LOG("RemoveOutputStream=%p!", aStream); mOutputStreamManager->Remove(aStream); if (mOutputStreamManager->IsEmpty()) { - nsCOMPtr r = NewRunnableMethod( - this, &MediaDecoderStateMachine::SetAudioCaptured, false); + nsCOMPtr r = + NewRunnableMethod("MediaDecoderStateMachine::SetAudioCaptured", + this, + &MediaDecoderStateMachine::SetAudioCaptured, + false); OwnerThread()->Dispatch(r.forget()); } } diff --git a/dom/media/MediaDecoderStateMachine.h b/dom/media/MediaDecoderStateMachine.h index 17fdc126ba96..d911f57f16db 100644 --- a/dom/media/MediaDecoderStateMachine.h +++ b/dom/media/MediaDecoderStateMachine.h @@ -184,8 +184,11 @@ public: void DispatchSetPlaybackRate(double aPlaybackRate) { - OwnerThread()->DispatchStateChange(NewRunnableMethod( - this, &MediaDecoderStateMachine::SetPlaybackRate, aPlaybackRate)); + OwnerThread()->DispatchStateChange( + NewRunnableMethod("MediaDecoderStateMachine::SetPlaybackRate", + this, + &MediaDecoderStateMachine::SetPlaybackRate, + aPlaybackRate)); } RefPtr BeginShutdown(); @@ -194,11 +197,14 @@ public: void DispatchSetFragmentEndTime(const media::TimeUnit& aEndTime) { RefPtr self = this; - nsCOMPtr r = NS_NewRunnableFunction([self, aEndTime] () { - // A negative number means we don't have a fragment end time at all. - self->mFragmentEndTime = aEndTime >= media::TimeUnit::Zero() - ? aEndTime : media::TimeUnit::Invalid(); - }); + nsCOMPtr r = NS_NewRunnableFunction( + "MediaDecoderStateMachine::DispatchSetFragmentEndTime", + [self, aEndTime]() { + // A negative number means we don't have a fragment end time at all. + self->mFragmentEndTime = aEndTime >= media::TimeUnit::Zero() + ? aEndTime + : media::TimeUnit::Invalid(); + }); OwnerThread()->Dispatch(r.forget()); } diff --git a/dom/media/MediaEventSource.h b/dom/media/MediaEventSource.h index ee59ed689cc8..1c34a415597c 100644 --- a/dom/media/MediaEventSource.h +++ b/dom/media/MediaEventSource.h @@ -135,9 +135,13 @@ public: { if (CanTakeArgs()) { DispatchTask(NewRunnableMethod::Type&&...>( - this, &Listener::ApplyWithArgs, Forward(aEvents)...)); + "detail::Listener::ApplyWithArgs", + this, + &Listener::ApplyWithArgs, + Forward(aEvents)...)); } else { - DispatchTask(NewRunnableMethod(this, &Listener::ApplyWithNoArgs)); + DispatchTask(NewRunnableMethod( + "detail::Listener::ApplyWithNoArgs", this, &Listener::ApplyWithNoArgs)); } } diff --git a/dom/media/MediaFormatReader.cpp b/dom/media/MediaFormatReader.cpp index 4d2d81bcc8ed..00dc94f0400e 100644 --- a/dom/media/MediaFormatReader.cpp +++ b/dom/media/MediaFormatReader.cpp @@ -120,10 +120,9 @@ GlobalAllocPolicy::GlobalAllocPolicy() SystemGroup::Dispatch( "GlobalAllocPolicy::ClearOnShutdown", TaskCategory::Other, - NS_NewRunnableFunction([this] () { + NS_NewRunnableFunction("GlobalAllocPolicy::GlobalAllocPolicy", [this]() { ClearOnShutdown(this, ShutdownPhase::ShutdownThreads); - }) - ); + })); } GlobalAllocPolicy::~GlobalAllocPolicy() @@ -926,9 +925,9 @@ public: void Reset() override { RefPtr self = this; - mTaskQueue->Dispatch(NS_NewRunnableFunction([self]() { - self->mTrackDemuxer->Reset(); - })); + mTaskQueue->Dispatch( + NS_NewRunnableFunction("MediaFormatReader::DemuxerProxy::Wrapper::Reset", + [self]() { self->mTrackDemuxer->Reset(); })); } nsresult GetNextRandomAccessPoint(TimeUnit* aTime) override @@ -986,6 +985,7 @@ private: { RefPtr trackDemuxer = mTrackDemuxer.forget(); mTaskQueue->Dispatch(NS_NewRunnableFunction( + "MediaFormatReader::DemuxerProxy::Wrapper::~Wrapper", [trackDemuxer]() { trackDemuxer->BreakCycles(); })); } @@ -1268,7 +1268,8 @@ public: DispatchKeyNeededEvent(AbstractMediaDecoder* aDecoder, nsTArray& aInitData, const nsString& aInitDataType) - : mDecoder(aDecoder) + : Runnable("DispatchKeyNeededEvent") + , mDecoder(aDecoder) , mInitData(aInitData) , mInitDataType(aInitDataType) { @@ -1295,10 +1296,11 @@ MediaFormatReader::SetCDMProxy(CDMProxy* aProxy) { RefPtr proxy = aProxy; RefPtr self = this; - nsCOMPtr r = NS_NewRunnableFunction([=] () { - MOZ_ASSERT(self->OnTaskQueue()); - self->mCDMProxy = proxy; - }); + nsCOMPtr r = + NS_NewRunnableFunction("MediaFormatReader::SetCDMProxy", [=]() { + MOZ_ASSERT(self->OnTaskQueue()); + self->mCDMProxy = proxy; + }); OwnerThread()->Dispatch(r.forget()); } @@ -1467,7 +1469,7 @@ MediaFormatReader::OnDemuxerInitDone(const MediaResult& aResult) if (aResult != NS_OK && mDecoder) { RefPtr decoder = mDecoder; mDecoder->AbstractMainThread()->Dispatch(NS_NewRunnableFunction( - [decoder, aResult] () { + "MediaFormatReader::OnDemuxerInitDone", [decoder, aResult]() { if (decoder->GetOwner()) { decoder->GetOwner()->DecodeWarning(aResult); } @@ -1854,8 +1856,8 @@ MediaFormatReader::ScheduleUpdate(TrackType aTrack) } LOGV("SchedulingUpdate(%s)", TrackTypeToStr(aTrack)); decoder.mUpdateScheduled = true; - RefPtr task( - NewRunnableMethod(this, &MediaFormatReader::Update, aTrack)); + RefPtr task(NewRunnableMethod( + "MediaFormatReader::Update", this, &MediaFormatReader::Update, aTrack)); OwnerThread()->Dispatch(task.forget()); } @@ -2709,8 +2711,8 @@ MediaFormatReader::ScheduleSeek() return; } mSeekScheduled = true; - OwnerThread()->Dispatch( - NewRunnableMethod(this, &MediaFormatReader::AttemptSeek)); + OwnerThread()->Dispatch(NewRunnableMethod( + "MediaFormatReader::AttemptSeek", this, &MediaFormatReader::AttemptSeek)); } void diff --git a/dom/media/MediaManager.cpp b/dom/media/MediaManager.cpp index 697f44e4765d..45362ace508d 100644 --- a/dom/media/MediaManager.cpp +++ b/dom/media/MediaManager.cpp @@ -651,12 +651,12 @@ template class ErrorCallbackRunnable : public Runnable { public: - ErrorCallbackRunnable( - nsCOMPtr&& aOnSuccess, - nsCOMPtr&& aOnFailure, - MediaMgrError& aError, - uint64_t aWindowID) - : mError(&aError) + ErrorCallbackRunnable(nsCOMPtr&& aOnSuccess, + nsCOMPtr&& aOnFailure, + MediaMgrError& aError, + uint64_t aWindowID) + : Runnable("ErrorCallbackRunnable") + , mError(&aError) , mWindowID(aWindowID) , mManager(MediaManager::GetInstance()) { @@ -991,7 +991,8 @@ public: AudioDevice* aAudioDevice, VideoDevice* aVideoDevice, PeerIdentity* aPeerIdentity) - : mConstraints(aConstraints) + : Runnable("GetUserMediaStreamRunnable") + , mConstraints(aConstraints) , mAudioDevice(aAudioDevice) , mVideoDevice(aVideoDevice) , mWindowID(aWindowID) @@ -1290,7 +1291,8 @@ public: callback.forget(), self->mWindowID, self->mOnFailure.forget()))); - NS_DispatchToMainThread(NS_NewRunnableFunction([]() -> void { + NS_DispatchToMainThread(NS_NewRunnableFunction("MediaManager::SendPendingGUMRequest", + []() -> void { RefPtr manager = MediaManager::GetInstance(); manager->SendPendingGUMRequest(); })); @@ -1447,12 +1449,15 @@ public: const MediaStreamConstraints& aConstraints, already_AddRefed aOnSuccess, already_AddRefed aOnFailure, - uint64_t aWindowID, GetUserMediaWindowListener *aWindowListener, - SourceListener *aSourceListener, MediaEnginePrefs &aPrefs, + uint64_t aWindowID, + GetUserMediaWindowListener* aWindowListener, + SourceListener* aSourceListener, + MediaEnginePrefs& aPrefs, const ipc::PrincipalInfo& aPrincipalInfo, bool aIsChrome, MediaManager::SourceSet* aSourceSet) - : mConstraints(aConstraints) + : Runnable("GetUserMediaTask") + , mConstraints(aConstraints) , mOnSuccess(aOnSuccess) , mOnFailure(aOnFailure) , mWindowID(aWindowID) @@ -1483,7 +1488,10 @@ public: NS_DispatchToMainThread(errorRunnable.forget()); // Do after ErrorCallbackRunnable Run()s, as it checks active window list NS_DispatchToMainThread(NewRunnableMethod>( - mWindowListener, &GetUserMediaWindowListener::Remove, mSourceListener)); + "GetUserMediaWindowListener::Remove", + mWindowListener, + &GetUserMediaWindowListener::Remove, + mSourceListener)); } NS_IMETHOD @@ -1542,7 +1550,8 @@ public: Fail(NS_LITERAL_STRING("NotReadableError"), NS_ConvertUTF8toUTF16(errorMsg)); } - NS_DispatchToMainThread(NS_NewRunnableFunction([]() -> void { + NS_DispatchToMainThread(NS_NewRunnableFunction("MediaManager::SendPendingGUMRequest", + []() -> void { RefPtr manager = MediaManager::GetInstance(); manager->SendPendingGUMRequest(); })); @@ -1659,8 +1668,9 @@ class GetUserMediaRunnableWrapper : public Runnable { public: // This object must take ownership of task - GetUserMediaRunnableWrapper(GetUserMediaTask* task) : - mTask(task) { + GetUserMediaRunnableWrapper(GetUserMediaTask* task) + : Runnable("GetUserMediaRunnableWrapper") + , mTask(task) { } ~GetUserMediaRunnableWrapper() { @@ -2974,10 +2984,13 @@ MediaManager::Shutdown() class ShutdownTask : public Runnable { public: - ShutdownTask(MediaManager* aManager, - already_AddRefed aReply) - : mManager(aManager) - , mReply(aReply) {} + ShutdownTask(MediaManager* aManager, already_AddRefed aReply) + : mozilla::Runnable("ShutdownTask") + , mManager(aManager) + , mReply(aReply) + { + } + private: NS_IMETHOD Run() override @@ -3711,7 +3724,9 @@ SourceListener::NotifyEvent(MediaStreamGraph* aGraph, NotifyFinished(); return; } - target->Dispatch(NewRunnableMethod(this, &SourceListener::NotifyFinished), + target->Dispatch(NewRunnableMethod("SourceListener::NotifyFinished", + this, + &SourceListener::NotifyFinished), NS_DISPATCH_NORMAL); break; case MediaStreamGraphEvent::EVENT_REMOVED: @@ -3723,7 +3738,9 @@ SourceListener::NotifyEvent(MediaStreamGraph* aGraph, NotifyRemoved(); return; } - target->Dispatch(NewRunnableMethod(this, &SourceListener::NotifyRemoved), + target->Dispatch(NewRunnableMethod("SourceListener::NotifyRemoved", + this, + &SourceListener::NotifyRemoved), NS_DISPATCH_NORMAL); break; case MediaStreamGraphEvent::EVENT_HAS_DIRECT_LISTENERS: @@ -3972,7 +3989,9 @@ GetUserMediaWindowListener::NotifySourceTrackStopped() } nsCOMPtr runnable = - NewRunnableMethod(this, &GetUserMediaWindowListener::NotifyChromeOfTrackStops); + NewRunnableMethod("GetUserMediaWindowListener::NotifyChromeOfTrackStops", + this, + &GetUserMediaWindowListener::NotifyChromeOfTrackStops); nsContentUtils::RunInStableState(runnable.forget()); mChromeNotificationTaskPosted = true; } @@ -3988,21 +4007,29 @@ GetUserMediaWindowListener::NotifyChromeOfTrackStops() } GetUserMediaNotificationEvent::GetUserMediaNotificationEvent( - GetUserMediaStatus aStatus, - uint64_t aWindowID) -: mStatus(aStatus), mWindowID(aWindowID) {} + GetUserMediaStatus aStatus, + uint64_t aWindowID) + : Runnable("GetUserMediaNotificationEvent") + , mStatus(aStatus) + , mWindowID(aWindowID) +{ +} GetUserMediaNotificationEvent::GetUserMediaNotificationEvent( - GetUserMediaStatus aStatus, - already_AddRefed aStream, - already_AddRefed>> aOnTracksAvailableCallback, - uint64_t aWindowID, - already_AddRefed aError) -: mStream(aStream), - mOnTracksAvailableCallback(aOnTracksAvailableCallback), - mStatus(aStatus), - mWindowID(aWindowID), - mOnFailure(aError) {} + GetUserMediaStatus aStatus, + already_AddRefed aStream, + already_AddRefed>> + aOnTracksAvailableCallback, + uint64_t aWindowID, + already_AddRefed aError) + : Runnable("GetUserMediaNotificationEvent") + , mStream(aStream) + , mOnTracksAvailableCallback(aOnTracksAvailableCallback) + , mStatus(aStatus) + , mWindowID(aWindowID) + , mOnFailure(aError) +{ +} GetUserMediaNotificationEvent::~GetUserMediaNotificationEvent() { } diff --git a/dom/media/MediaManager.h b/dom/media/MediaManager.h index d02490830ba3..4136130c05c0 100644 --- a/dom/media/MediaManager.h +++ b/dom/media/MediaManager.h @@ -168,9 +168,13 @@ class ReleaseMediaOperationResource : public Runnable public: ReleaseMediaOperationResource( already_AddRefed aStream, - already_AddRefed>> aOnTracksAvailableCallback): - mStream(aStream), - mOnTracksAvailableCallback(aOnTracksAvailableCallback) {} + already_AddRefed>> + aOnTracksAvailableCallback) + : Runnable("ReleaseMediaOperationResource") + , mStream(aStream) + , mOnTracksAvailableCallback(aOnTracksAvailableCallback) + { + } NS_IMETHOD Run() override {return NS_OK;} private: RefPtr mStream; diff --git a/dom/media/MediaRecorder.cpp b/dom/media/MediaRecorder.cpp index ea8c93309b19..06e3191962b1 100644 --- a/dom/media/MediaRecorder.cpp +++ b/dom/media/MediaRecorder.cpp @@ -177,7 +177,8 @@ class MediaRecorder::Session: public nsIObserver, { public: explicit PushBlobRunnable(Session* aSession) - : mSession(aSession) + : Runnable("dom::MediaRecorder::Session::PushBlobRunnable") + , mSession(aSession) { } NS_IMETHOD Run() override @@ -207,7 +208,8 @@ class MediaRecorder::Session: public nsIObserver, { public: explicit EncoderErrorNotifierRunnable(Session* aSession) - : mSession(aSession) + : Runnable("dom::MediaRecorder::Session::EncoderErrorNotifierRunnable") + , mSession(aSession) { } NS_IMETHOD Run() override @@ -234,8 +236,9 @@ class MediaRecorder::Session: public nsIObserver, class DispatchStartEventRunnable : public Runnable { public: - DispatchStartEventRunnable(Session* aSession, const nsAString & aEventName) - : mSession(aSession) + DispatchStartEventRunnable(Session* aSession, const nsAString& aEventName) + : Runnable("dom::MediaRecorder::Session::DispatchStartEventRunnable") + , mSession(aSession) , mEventName(aEventName) { } @@ -264,7 +267,10 @@ class MediaRecorder::Session: public nsIObserver, { public: explicit ExtractRunnable(Session* aSession) - : mSession(aSession) {} + : Runnable("dom::MediaRecorder::Session::ExtractRunnable") + , mSession(aSession) + { + } ~ExtractRunnable() {} @@ -364,10 +370,16 @@ class MediaRecorder::Session: public nsIObserver, { public: explicit DestroyRunnable(Session* aSession) - : mSession(aSession) {} + : Runnable("dom::MediaRecorder::Session::DestroyRunnable") + , mSession(aSession) + { + } explicit DestroyRunnable(already_AddRefed aSession) - : mSession(aSession) {} + : Runnable("dom::MediaRecorder::Session::DestroyRunnable") + , mSession(aSession) + { + } NS_IMETHOD Run() override { @@ -800,8 +812,11 @@ private: new DispatchStartEventRunnable(this, NS_LITERAL_STRING("start"))); if (NS_FAILED(rv)) { - NS_DispatchToMainThread(NewRunnableMethod(mRecorder, - &MediaRecorder::NotifyError, rv)); + NS_DispatchToMainThread( + NewRunnableMethod("dom::MediaRecorder::NotifyError", + mRecorder, + &MediaRecorder::NotifyError, + rv)); } if (NS_FAILED(NS_DispatchToMainThread(new EncoderErrorNotifierRunnable(this)))) { MOZ_ASSERT(false, "NS_DispatchToMainThread EncoderErrorNotifierRunnable failed"); diff --git a/dom/media/MediaResource.cpp b/dom/media/MediaResource.cpp index 045c43bba86a..316b850dfca6 100644 --- a/dom/media/MediaResource.cpp +++ b/dom/media/MediaResource.cpp @@ -67,10 +67,11 @@ MediaResource::Destroy() delete this; return; } - nsresult rv = - SystemGroup::Dispatch("MediaResource::Destroy", - TaskCategory::Other, - NewNonOwningRunnableMethod(this, &MediaResource::Destroy)); + nsresult rv = SystemGroup::Dispatch( + "MediaResource::Destroy", + TaskCategory::Other, + NewNonOwningRunnableMethod( + "MediaResource::Destroy", this, &MediaResource::Destroy)); MOZ_ALWAYS_SUCCEEDS(rv); } diff --git a/dom/media/MediaStreamGraph.cpp b/dom/media/MediaStreamGraph.cpp index 93939231628e..ba4719b58cb6 100644 --- a/dom/media/MediaStreamGraph.cpp +++ b/dom/media/MediaStreamGraph.cpp @@ -3638,9 +3638,10 @@ MediaStreamGraphImpl::CollectSizesForMemoryReport( { public: explicit FinishCollectRunnable( - already_AddRefed aHandleReport, - already_AddRefed aHandlerData) - : mHandleReport(aHandleReport) + already_AddRefed aHandleReport, + already_AddRefed aHandlerData) + : mozilla::Runnable("FinishCollectRunnable") + , mHandleReport(aHandleReport) , mHandlerData(aHandlerData) {} diff --git a/dom/media/MediaStreamTrack.cpp b/dom/media/MediaStreamTrack.cpp index 853f9159adce..1ec6df7a4ba5 100644 --- a/dom/media/MediaStreamTrack.cpp +++ b/dom/media/MediaStreamTrack.cpp @@ -111,7 +111,11 @@ public: aGraph->DispatchToMainThreadAfterStreamStateUpdate( mAbstractMainThread, NewRunnableMethod>( - this, &PrincipalHandleListener::DoNotifyPrincipalHandleChanged, aNewPrincipalHandle)); + "dom::MediaStreamTrack::PrincipalHandleListener::" + "DoNotifyPrincipalHandleChanged", + this, + &PrincipalHandleListener::DoNotifyPrincipalHandleChanged, + aNewPrincipalHandle)); } protected: diff --git a/dom/media/MediaTimer.cpp b/dom/media/MediaTimer.cpp index 4baab3114328..61b37c28eaaa 100644 --- a/dom/media/MediaTimer.cpp +++ b/dom/media/MediaTimer.cpp @@ -42,8 +42,10 @@ MediaTimer::DispatchDestroy() // Destroy(), which may run completely before the stack if Dispatch() begins // to unwind. nsCOMPtr thread = mThread; - nsresult rv = thread->Dispatch(NewNonOwningRunnableMethod(this, &MediaTimer::Destroy), - NS_DISPATCH_NORMAL); + nsresult rv = + thread->Dispatch(NewNonOwningRunnableMethod( + "MediaTimer::Destroy", this, &MediaTimer::Destroy), + NS_DISPATCH_NORMAL); MOZ_DIAGNOSTIC_ASSERT(NS_SUCCEEDED(rv)); (void) rv; } @@ -97,8 +99,9 @@ MediaTimer::ScheduleUpdate() } mUpdateScheduled = true; - nsresult rv = mThread->Dispatch(NewRunnableMethod(this, &MediaTimer::Update), - NS_DISPATCH_NORMAL); + nsresult rv = mThread->Dispatch( + NewRunnableMethod("MediaTimer::Update", this, &MediaTimer::Update), + NS_DISPATCH_NORMAL); MOZ_DIAGNOSTIC_ASSERT(NS_SUCCEEDED(rv)); (void) rv; } diff --git a/dom/media/TextTrack.cpp b/dom/media/TextTrack.cpp index 19c38a2597d9..7d0951eac463 100644 --- a/dom/media/TextTrack.cpp +++ b/dom/media/TextTrack.cpp @@ -337,11 +337,11 @@ TextTrack::DispatchAsyncTrustedEvent(const nsString& aEventName) } RefPtr self = this; nsGlobalWindow::Cast(win)->Dispatch( - "TextTrack::DispatchAsyncTrustedEvent", TaskCategory::Other, - NS_NewRunnableFunction([self, aEventName]() { - self->DispatchTrustedEvent(aEventName); - }) - ); + "TextTrack::DispatchAsyncTrustedEvent", + TaskCategory::Other, + NS_NewRunnableFunction( + "dom::TextTrack::DispatchAsyncTrustedEvent", + [self, aEventName]() { self->DispatchTrustedEvent(aEventName); })); } bool diff --git a/dom/media/TextTrackList.cpp b/dom/media/TextTrackList.cpp index 47daa6ca77de..abe6e5599d91 100644 --- a/dom/media/TextTrackList.cpp +++ b/dom/media/TextTrackList.cpp @@ -141,7 +141,8 @@ class TrackEventRunner : public Runnable { public: TrackEventRunner(TextTrackList* aList, nsIDOMEvent* aEvent) - : mList(aList) + : Runnable("dom::TrackEventRunner") + , mList(aList) , mEvent(aEvent) {} diff --git a/dom/media/VideoUtils.cpp b/dom/media/VideoUtils.cpp index 9b9e6f8b39fe..73eb65d3d04d 100644 --- a/dom/media/VideoUtils.cpp +++ b/dom/media/VideoUtils.cpp @@ -396,8 +396,8 @@ LogToBrowserConsole(const nsAString& aMsg) { if (!NS_IsMainThread()) { nsString msg(aMsg); - nsCOMPtr task = - NS_NewRunnableFunction([msg]() { LogToBrowserConsole(msg); }); + nsCOMPtr task = NS_NewRunnableFunction( + "LogToBrowserConsole", [msg]() { LogToBrowserConsole(msg); }); SystemGroup::Dispatch("LogToBrowserConsole", TaskCategory::Other, task.forget()); return; } diff --git a/dom/media/VideoUtils.h b/dom/media/VideoUtils.h index 2aeba950aaaf..4f7b88b93122 100644 --- a/dom/media/VideoUtils.h +++ b/dom/media/VideoUtils.h @@ -92,7 +92,11 @@ private: class ShutdownThreadEvent : public Runnable { public: - explicit ShutdownThreadEvent(nsIThread* aThread) : mThread(aThread) {} + explicit ShutdownThreadEvent(nsIThread* aThread) + : Runnable("ShutdownThreadEvent") + , mThread(aThread) + { + } ~ShutdownThreadEvent() {} NS_IMETHOD Run() override { mThread->Shutdown(); @@ -267,8 +271,11 @@ RefPtr InvokeUntil(Work aWork, Condition aCondition) { } else if (aLocalCondition()) { aPromise->Resolve(true, __func__); } else { - nsCOMPtr r = - NS_NewRunnableFunction([aPromise, aLocalWork, aLocalCondition] () { Iteration(aPromise, aLocalWork, aLocalCondition); }); + nsCOMPtr r = NS_NewRunnableFunction( + "InvokeUntil::Helper::Iteration", + [aPromise, aLocalWork, aLocalCondition]() { + Iteration(aPromise, aLocalWork, aLocalCondition); + }); AbstractThread::GetCurrent()->Dispatch(r.forget()); } } diff --git a/dom/media/android/AndroidMediaPluginHost.cpp b/dom/media/android/AndroidMediaPluginHost.cpp index c7088ce32661..9d8842daba54 100644 --- a/dom/media/android/AndroidMediaPluginHost.cpp +++ b/dom/media/android/AndroidMediaPluginHost.cpp @@ -46,7 +46,7 @@ static char* GetResource(Decoder *aDecoder) class GetIntPrefEvent : public Runnable { public: GetIntPrefEvent(const char* aPref, int32_t* aResult) - : mPref(aPref), mResult(aResult) {} + : Runnable("GetIntPrefEvent"), mPref(aPref), mResult(aResult) {} NS_IMETHOD Run() override { return Preferences::GetInt(mPref, mResult); } diff --git a/dom/media/android/AndroidMediaResourceServer.cpp b/dom/media/android/AndroidMediaResourceServer.cpp index 37681b26cc70..8fe7ba5e36e6 100644 --- a/dom/media/android/AndroidMediaResourceServer.cpp +++ b/dom/media/android/AndroidMediaResourceServer.cpp @@ -124,7 +124,11 @@ private: public: ServeResourceEvent(nsIInputStream* aInput, nsIOutputStream* aOutput, AndroidMediaResourceServer* aServer) - : mInput(aInput), mOutput(aOutput), mServer(aServer) {} + : Runnable("ServeResourceEvent") + , mInput(aInput) + , mOutput(aOutput) + , mServer(aServer) + {} // This method runs on the thread and exits when it has completed the // HTTP request. @@ -388,8 +392,9 @@ ResourceSocketListener::OnStopListening(nsIServerSocket* aServ, nsresult aStatus return NS_OK; } -AndroidMediaResourceServer::AndroidMediaResourceServer() : - mMutex("AndroidMediaResourceServer") +AndroidMediaResourceServer::AndroidMediaResourceServer() + : Runnable("AndroidMediaResourceServer") + , mMutex("AndroidMediaResourceServer") { } diff --git a/dom/media/eme/mediadrm/MediaDrmCDMProxy.cpp b/dom/media/eme/mediadrm/MediaDrmCDMProxy.cpp index c042219d5c08..c9b73809d65c 100644 --- a/dom/media/eme/mediadrm/MediaDrmCDMProxy.cpp +++ b/dom/media/eme/mediadrm/MediaDrmCDMProxy.cpp @@ -69,7 +69,8 @@ MediaDrmCDMProxy::Init(PromiseId aPromiseId, } mCDM = mozilla::MakeUnique(mKeySystem); - nsCOMPtr task(NewRunnableMethod(this, + nsCOMPtr task(NewRunnableMethod("MediaDrmCDMProxy::md_Init", + this, &MediaDrmCDMProxy::md_Init, aPromiseId)); mOwnerThread->Dispatch(task, NS_DISPATCH_NORMAL); @@ -93,7 +94,8 @@ MediaDrmCDMProxy::CreateSession(uint32_t aCreateSessionToken, data->mInitData = Move(aInitData); nsCOMPtr task( - NewRunnableMethod&&>(this, + NewRunnableMethod&&>("MediaDrmCDMProxy::md_CreateSession", + this, &MediaDrmCDMProxy::md_CreateSession, Move(data))); mOwnerThread->Dispatch(task, NS_DISPATCH_NORMAL); @@ -133,7 +135,8 @@ MediaDrmCDMProxy::UpdateSession(const nsAString& aSessionId, data->mResponse = Move(aResponse); nsCOMPtr task( - NewRunnableMethod&&>(this, + NewRunnableMethod&&>("MediaDrmCDMProxy::md_UpdateSession", + this, &MediaDrmCDMProxy::md_UpdateSession, Move(data))); mOwnerThread->Dispatch(task, NS_DISPATCH_NORMAL); @@ -152,7 +155,8 @@ MediaDrmCDMProxy::CloseSession(const nsAString& aSessionId, data->mSessionId = NS_ConvertUTF16toUTF8(aSessionId); nsCOMPtr task( - NewRunnableMethod&&>(this, + NewRunnableMethod&&>("MediaDrmCDMProxy::md_CloseSession", + this, &MediaDrmCDMProxy::md_CloseSession, Move(data))); mOwnerThread->Dispatch(task, NS_DISPATCH_NORMAL); @@ -173,7 +177,8 @@ MediaDrmCDMProxy::Shutdown() MOZ_ASSERT(NS_IsMainThread()); MOZ_ASSERT(mOwnerThread); nsCOMPtr task( - NewRunnableMethod(this, &MediaDrmCDMProxy::md_Shutdown)); + NewRunnableMethod("MediaDrmCDMProxy::md_Shutdown", + this, &MediaDrmCDMProxy::md_Shutdown)); mOwnerThread->Dispatch(task, NS_DISPATCH_NORMAL); mOwnerThread->Shutdown(); @@ -326,7 +331,8 @@ MediaDrmCDMProxy::ResolvePromise(PromiseId aId) } } else { nsCOMPtr task; - task = NewRunnableMethod(this, + task = NewRunnableMethod("MediaDrmCDMProxy::ResolvePromise", + this, &MediaDrmCDMProxy::ResolvePromise, aId); mMainThread->Dispatch(task.forget(), NS_DISPATCH_NORMAL); @@ -408,7 +414,8 @@ MediaDrmCDMProxy::md_Init(uint32_t aPromiseId) mCallback.reset(new MediaDrmCDMCallbackProxy(this)); mCDM->Init(mCallback.get()); nsCOMPtr task( - NewRunnableMethod(this, + NewRunnableMethod("MediaDrmCDMProxy::OnCDMCreated", + this, &MediaDrmCDMProxy::OnCDMCreated, aPromiseId)); mMainThread->Dispatch(task.forget(), NS_DISPATCH_NORMAL); diff --git a/dom/media/eme/mediadrm/MediaDrmCDMProxy.h b/dom/media/eme/mediadrm/MediaDrmCDMProxy.h index 2989f63165bc..23be97cc396f 100644 --- a/dom/media/eme/mediadrm/MediaDrmCDMProxy.h +++ b/dom/media/eme/mediadrm/MediaDrmCDMProxy.h @@ -151,7 +151,8 @@ private: PromiseId aId, nsresult aCode, const nsCString& aReason) - : mProxy(aProxy) + : Runnable("RejectPromiseTask") + , mProxy(aProxy) , mId(aId) , mCode(aCode) , mReason(aReason) diff --git a/dom/media/gmp/ChromiumCDMParent.cpp b/dom/media/gmp/ChromiumCDMParent.cpp index 57cbc9c80e44..92ccdf5278fe 100644 --- a/dom/media/gmp/ChromiumCDMParent.cpp +++ b/dom/media/gmp/ChromiumCDMParent.cpp @@ -287,7 +287,8 @@ ChromiumCDMParent::RecvOnResolveNewSessionPromise(const uint32_t& aPromiseId, } RefPtr task = - NewRunnableMethod(mProxy, + NewRunnableMethod("ChromiumCDMProxy::OnSetSessionId", + mProxy, &ChromiumCDMProxy::OnSetSessionId, token.value(), NS_ConvertUTF8toUTF16(aSessionId)); @@ -312,6 +313,7 @@ ChromiumCDMParent::RecvResolveLoadSessionPromise(const uint32_t& aPromiseId, } NS_DispatchToMainThread(NewRunnableMethod( + "ChromiumCDMProxy::OnResolveLoadSessionPromise", mProxy, &ChromiumCDMProxy::OnResolveLoadSessionPromise, aPromiseId, @@ -329,8 +331,11 @@ ChromiumCDMParent::ResolvePromise(uint32_t aPromiseId) if (!mProxy || mIsShutdown) { return; } - NS_DispatchToMainThread(NewRunnableMethod( - mProxy, &ChromiumCDMProxy::ResolvePromise, aPromiseId)); + NS_DispatchToMainThread( + NewRunnableMethod("ChromiumCDMProxy::ResolvePromise", + mProxy, + &ChromiumCDMProxy::ResolvePromise, + aPromiseId)); } ipc::IPCResult @@ -380,6 +385,7 @@ ChromiumCDMParent::RejectPromise(uint32_t aPromiseId, return; } NS_DispatchToMainThread(NewRunnableMethod( + "ChromiumCDMProxy::RejectPromise", mProxy, &ChromiumCDMProxy::RejectPromise, aPromiseId, @@ -428,9 +434,10 @@ ChromiumCDMParent::RecvOnSessionMessage(const nsCString& aSessionId, dom::MediaKeyMessageType messageType = ToDOMMessageType(aMessageType); nsTArray msg(Move(aMessage)); NS_DispatchToMainThread( - NS_NewRunnableFunction([proxy, sid, messageType, msg]() mutable { - proxy->OnSessionMessage(sid, messageType, msg); - })); + NS_NewRunnableFunction("gmp::ChromiumCDMParent::RecvOnSessionMessage", + [proxy, sid, messageType, msg]() mutable { + proxy->OnSessionMessage(sid, messageType, msg); + })); return IPC_OK(); } @@ -479,7 +486,8 @@ ChromiumCDMParent::RecvOnSessionKeysChange( } if (keyStatusesChange) { NS_DispatchToMainThread( - NewRunnableMethod(mProxy, + NewRunnableMethod("ChromiumCDMProxy::OnKeyStatusesChange", + mProxy, &ChromiumCDMProxy::OnKeyStatusesChange, NS_ConvertUTF8toUTF16(aSessionId))); } @@ -497,6 +505,7 @@ ChromiumCDMParent::RecvOnExpirationChange(const nsCString& aSessionId, return IPC_OK(); } NS_DispatchToMainThread(NewRunnableMethod( + "ChromiumCDMProxy::OnExpirationChange", mProxy, &ChromiumCDMProxy::OnExpirationChange, NS_ConvertUTF8toUTF16(aSessionId), @@ -512,7 +521,8 @@ ChromiumCDMParent::RecvOnSessionClosed(const nsCString& aSessionId) return IPC_OK(); } NS_DispatchToMainThread( - NewRunnableMethod(mProxy, + NewRunnableMethod("ChromiumCDMProxy::OnSessionClosed", + mProxy, &ChromiumCDMProxy::OnSessionClosed, NS_ConvertUTF8toUTF16(aSessionId))); return IPC_OK(); @@ -530,6 +540,7 @@ ChromiumCDMParent::RecvOnLegacySessionError(const nsCString& aSessionId, } NS_DispatchToMainThread( NewRunnableMethod( + "ChromiumCDMProxy::OnSessionError", mProxy, &ChromiumCDMProxy::OnSessionError, NS_ConvertUTF8toUTF16(aSessionId), @@ -894,8 +905,8 @@ ChromiumCDMParent::ActorDestroy(ActorDestroyReason aWhy) } bool abnormalShutdown = (aWhy == AbnormalShutdown); if (abnormalShutdown && proxy) { - RefPtr task = - NewRunnableMethod(proxy, &ChromiumCDMProxy::Terminated); + RefPtr task = NewRunnableMethod( + "ChromiumCDMProxy::Terminated", proxy, &ChromiumCDMProxy::Terminated); NS_DispatchToMainThread(task); } MaybeDisconnect(abnormalShutdown); @@ -1126,8 +1137,8 @@ ChromiumCDMParent::Shutdown() // collection, and that will not shut down cleanly as the GMP thread will be // shutdown by then. if (mProxy) { - RefPtr task = - NewRunnableMethod(mProxy, &ChromiumCDMProxy::Shutdown); + RefPtr task = NewRunnableMethod( + "ChromiumCDMProxy::Shutdown", mProxy, &ChromiumCDMProxy::Shutdown); NS_DispatchToMainThread(task.forget()); } diff --git a/dom/media/gmp/ChromiumCDMProxy.cpp b/dom/media/gmp/ChromiumCDMProxy.cpp index 8b78e82b5b6c..7fa79a5120d8 100644 --- a/dom/media/gmp/ChromiumCDMProxy.cpp +++ b/dom/media/gmp/ChromiumCDMProxy.cpp @@ -74,6 +74,7 @@ ChromiumCDMProxy::Init(PromiseId aPromiseId, RefPtr self(this); nsCString keySystem = NS_ConvertUTF16toUTF8(mKeySystem); RefPtr task(NS_NewRunnableFunction( + "ChromiumCDMProxy::Init", [self, nodeId, helper, aPromiseId, thread, keySystem]() -> void { MOZ_ASSERT(self->IsOnOwnerThread()); @@ -125,9 +126,12 @@ ChromiumCDMProxy::OnCDMCreated(uint32_t aPromiseId) this); if (!NS_IsMainThread()) { - mMainThread->Dispatch(NewRunnableMethod( - this, &ChromiumCDMProxy::OnCDMCreated, aPromiseId), - NS_DISPATCH_NORMAL); + mMainThread->Dispatch( + NewRunnableMethod("ChromiumCDMProxy::OnCDMCreated", + this, + &ChromiumCDMProxy::OnCDMCreated, + aPromiseId), + NS_DISPATCH_NORMAL); return; } MOZ_ASSERT(NS_IsMainThread()); @@ -209,18 +213,19 @@ ChromiumCDMProxy::CreateSession(uint32_t aCreateSessionToken, return; } - mGMPThread->Dispatch( - NewRunnableMethod>(cdm, - &gmp::ChromiumCDMParent::CreateSession, - aCreateSessionToken, - sessionType, - initDataType, - aPromiseId, - Move(aInitData))); + mGMPThread->Dispatch(NewRunnableMethod>( + "gmp::ChromiumCDMParent::CreateSession", + cdm, + &gmp::ChromiumCDMParent::CreateSession, + aCreateSessionToken, + sessionType, + initDataType, + aPromiseId, + Move(aInitData))); } void @@ -239,6 +244,7 @@ ChromiumCDMProxy::LoadSession(PromiseId aPromiseId, } mGMPThread->Dispatch(NewRunnableMethod( + "gmp::ChromiumCDMParent::LoadSession", cdm, &gmp::ChromiumCDMParent::LoadSession, aPromiseId, @@ -264,6 +270,7 @@ ChromiumCDMProxy::SetServerCertificate(PromiseId aPromiseId, } mGMPThread->Dispatch(NewRunnableMethod>( + "gmp::ChromiumCDMParent::SetServerCertificate", cdm, &gmp::ChromiumCDMParent::SetServerCertificate, aPromiseId, @@ -290,6 +297,7 @@ ChromiumCDMProxy::UpdateSession(const nsAString& aSessionId, } mGMPThread->Dispatch( NewRunnableMethod>( + "gmp::ChromiumCDMParent::UpdateSession", cdm, &gmp::ChromiumCDMParent::UpdateSession, NS_ConvertUTF16toUTF8(aSessionId), @@ -314,6 +322,7 @@ ChromiumCDMProxy::CloseSession(const nsAString& aSessionId, return; } mGMPThread->Dispatch(NewRunnableMethod( + "gmp::ChromiumCDMParent::CloseSession", cdm, &gmp::ChromiumCDMParent::CloseSession, NS_ConvertUTF16toUTF8(aSessionId), @@ -337,6 +346,7 @@ ChromiumCDMProxy::RemoveSession(const nsAString& aSessionId, return; } mGMPThread->Dispatch(NewRunnableMethod( + "gmp::ChromiumCDMParent::RemoveSession", cdm, &gmp::ChromiumCDMParent::RemoveSession, NS_ConvertUTF16toUTF8(aSessionId), @@ -358,8 +368,8 @@ ChromiumCDMProxy::Shutdown() // We need to keep this proxy alive until the parent has finished its // Shutdown (as it may still try to use the proxy until then). RefPtr self(this); - nsCOMPtr task = - NS_NewRunnableFunction([self, cdm]() { cdm->Shutdown(); }); + nsCOMPtr task = NS_NewRunnableFunction( + "ChromiumCDMProxy::Shutdown", [self, cdm]() { cdm->Shutdown(); }); mGMPThread->Dispatch(task.forget()); } } @@ -372,7 +382,12 @@ ChromiumCDMProxy::RejectPromise(PromiseId aId, if (!NS_IsMainThread()) { nsCOMPtr task; task = NewRunnableMethod( - this, &ChromiumCDMProxy::RejectPromise, aId, aCode, aReason); + "ChromiumCDMProxy::RejectPromise", + this, + &ChromiumCDMProxy::RejectPromise, + aId, + aCode, + aReason); NS_DispatchToMainThread(task); return; } @@ -390,8 +405,10 @@ ChromiumCDMProxy::ResolvePromise(PromiseId aId) { if (!NS_IsMainThread()) { nsCOMPtr task; - task = NewRunnableMethod( - this, &ChromiumCDMProxy::ResolvePromise, aId); + task = NewRunnableMethod("ChromiumCDMProxy::ResolvePromise", + this, + &ChromiumCDMProxy::ResolvePromise, + aId); NS_DispatchToMainThread(task); return; } diff --git a/dom/media/gmp/GMPCDMCallbackProxy.cpp b/dom/media/gmp/GMPCDMCallbackProxy.cpp index 10f4770d6066..12d27e6a65db 100644 --- a/dom/media/gmp/GMPCDMCallbackProxy.cpp +++ b/dom/media/gmp/GMPCDMCallbackProxy.cpp @@ -30,12 +30,9 @@ GMPCDMCallbackProxy::SetDecryptorId(uint32_t aId) RefPtr proxy = mProxy; mMainThread->Dispatch( - NS_NewRunnableFunction([proxy, aId] () - { - proxy->OnSetDecryptorId(aId); - }), - NS_DISPATCH_NORMAL - ); + NS_NewRunnableFunction("GMPCDMCallbackProxy::SetDecryptorId", + [proxy, aId]() { proxy->OnSetDecryptorId(aId); }), + NS_DISPATCH_NORMAL); } void @@ -47,14 +44,10 @@ GMPCDMCallbackProxy::SetSessionId(uint32_t aToken, RefPtr proxy = mProxy; auto sid = NS_ConvertUTF8toUTF16(aSessionId); mMainThread->Dispatch( - NS_NewRunnableFunction([proxy, - aToken, - sid] () - { - proxy->OnSetSessionId(aToken, sid); - }), - NS_DISPATCH_NORMAL - ); + NS_NewRunnableFunction( + "GMPCDMCallbackProxy::SetSessionId", + [proxy, aToken, sid]() { proxy->OnSetSessionId(aToken, sid); }), + NS_DISPATCH_NORMAL); } void @@ -65,12 +58,12 @@ GMPCDMCallbackProxy::ResolveLoadSessionPromise(uint32_t aPromiseId, RefPtr proxy = mProxy; mMainThread->Dispatch( - NS_NewRunnableFunction([proxy, aPromiseId, aSuccess] () - { - proxy->OnResolveLoadSessionPromise(aPromiseId, aSuccess); - }), - NS_DISPATCH_NORMAL - ); + NS_NewRunnableFunction("GMPCDMCallbackProxy::ResolveLoadSessionPromise", + [proxy, aPromiseId, aSuccess]() { + proxy->OnResolveLoadSessionPromise(aPromiseId, + aSuccess); + }), + NS_DISPATCH_NORMAL); } void @@ -91,15 +84,12 @@ GMPCDMCallbackProxy::RejectPromise(uint32_t aPromiseId, RefPtr proxy = mProxy; mMainThread->Dispatch( - NS_NewRunnableFunction([proxy, - aPromiseId, - aException, - aMessage] () - { - proxy->OnRejectPromise(aPromiseId, aException, aMessage); - }), - NS_DISPATCH_NORMAL - ); + NS_NewRunnableFunction("GMPCDMCallbackProxy::RejectPromise", + [proxy, aPromiseId, aException, aMessage]() { + proxy->OnRejectPromise( + aPromiseId, aException, aMessage); + }), + NS_DISPATCH_NORMAL); } void @@ -113,15 +103,11 @@ GMPCDMCallbackProxy::SessionMessage(const nsCString& aSessionId, auto sid = NS_ConvertUTF8toUTF16(aSessionId); nsTArray msg(aMessage); mMainThread->Dispatch( - NS_NewRunnableFunction([proxy, - sid, - aMessageType, - msg] () mutable - { - proxy->OnSessionMessage(sid, aMessageType, msg); - }), - NS_DISPATCH_NORMAL - ); + NS_NewRunnableFunction("GMPCDMCallbackProxy::SessionMessage", + [proxy, sid, aMessageType, msg]() mutable { + proxy->OnSessionMessage(sid, aMessageType, msg); + }), + NS_DISPATCH_NORMAL); } void @@ -133,14 +119,11 @@ GMPCDMCallbackProxy::ExpirationChange(const nsCString& aSessionId, RefPtr proxy = mProxy; auto sid = NS_ConvertUTF8toUTF16(aSessionId); mMainThread->Dispatch( - NS_NewRunnableFunction([proxy, - sid, - aExpiryTime] () - { - proxy->OnExpirationChange(sid, aExpiryTime); - }), - NS_DISPATCH_NORMAL - ); + NS_NewRunnableFunction("GMPCDMCallbackProxy::ExpirationChange", + [proxy, sid, aExpiryTime]() { + proxy->OnExpirationChange(sid, aExpiryTime); + }), + NS_DISPATCH_NORMAL); } void @@ -157,22 +140,17 @@ GMPCDMCallbackProxy::SessionClosed(const nsCString& aSessionId) if (keyStatusesChange) { RefPtr proxy = mProxy; mMainThread->Dispatch( - NS_NewRunnableFunction([proxy, sid] () - { - proxy->OnKeyStatusesChange(sid); - }), - NS_DISPATCH_NORMAL - ); + NS_NewRunnableFunction( + "GMPCDMCallbackProxy::SessionClosed", + [proxy, sid]() { proxy->OnKeyStatusesChange(sid); }), + NS_DISPATCH_NORMAL); } RefPtr proxy = mProxy; mMainThread->Dispatch( - NS_NewRunnableFunction([proxy, sid] () - { - proxy->OnSessionClosed(sid); - }), - NS_DISPATCH_NORMAL - ); + NS_NewRunnableFunction("GMPCDMCallbackProxy::SessionClosed", + [proxy, sid]() { proxy->OnSessionClosed(sid); }), + NS_DISPATCH_NORMAL); } void @@ -187,19 +165,12 @@ GMPCDMCallbackProxy::SessionError(const nsCString& aSessionId, auto sid = NS_ConvertUTF8toUTF16(aSessionId); auto msg = NS_ConvertUTF8toUTF16(aMessage); mMainThread->Dispatch( - NS_NewRunnableFunction([proxy, - sid, - aException, - aSystemCode, - msg] () - { - proxy->OnSessionError(sid, - aException, - aSystemCode, - msg); - }), - NS_DISPATCH_NORMAL - ); + NS_NewRunnableFunction("GMPCDMCallbackProxy::SessionError", + [proxy, sid, aException, aSystemCode, msg]() { + proxy->OnSessionError( + sid, aException, aSystemCode, msg); + }), + NS_DISPATCH_NORMAL); } void @@ -228,12 +199,10 @@ GMPCDMCallbackProxy::BatchedKeyStatusChangedInternal(const nsCString& aSessionId RefPtr proxy = mProxy; auto sid = NS_ConvertUTF8toUTF16(aSessionId); mMainThread->Dispatch( - NS_NewRunnableFunction([proxy, sid] () - { - proxy->OnKeyStatusesChange(sid); - }), - NS_DISPATCH_NORMAL - ); + NS_NewRunnableFunction( + "GMPCDMCallbackProxy::BatchedKeyStatusChangedInternal", + [proxy, sid]() { proxy->OnKeyStatusesChange(sid); }), + NS_DISPATCH_NORMAL); } } @@ -254,12 +223,9 @@ GMPCDMCallbackProxy::Terminated() RefPtr proxy = mProxy; mMainThread->Dispatch( - NS_NewRunnableFunction([proxy] () - { - proxy->Terminated(); - }), - NS_DISPATCH_NORMAL - ); + NS_NewRunnableFunction("GMPCDMCallbackProxy::Terminated", + [proxy]() { proxy->Terminated(); }), + NS_DISPATCH_NORMAL); } } // namespace mozilla diff --git a/dom/media/gmp/GMPCDMProxy.cpp b/dom/media/gmp/GMPCDMProxy.cpp index 63ca56b302b4..78074ddb95bd 100644 --- a/dom/media/gmp/GMPCDMProxy.cpp +++ b/dom/media/gmp/GMPCDMProxy.cpp @@ -92,7 +92,8 @@ GMPCDMProxy::Init(PromiseId aPromiseId, data->mGMPName = aGMPName; data->mCrashHelper = mCrashHelper; nsCOMPtr task( - NewRunnableMethod&&>(this, + NewRunnableMethod&&>("GMPCDMProxy::gmp_Init", + this, &GMPCDMProxy::gmp_Init, Move(data))); mOwnerThread->EventTarget()->Dispatch(task.forget(), NS_DISPATCH_NORMAL); @@ -139,7 +140,8 @@ void GMPCDMProxy::OnSetDecryptorId(uint32_t aId) MOZ_ASSERT(mCreatePromiseId); mDecryptorId = aId; nsCOMPtr task( - NewRunnableMethod(this, + NewRunnableMethod("GMPCDMProxy::OnCDMCreated", + this, &GMPCDMProxy::OnCDMCreated, mCreatePromiseId)); mMainThread->Dispatch(task.forget(), NS_DISPATCH_NORMAL); @@ -294,7 +296,8 @@ GMPCDMProxy::CreateSession(uint32_t aCreateSessionToken, data->mInitData = Move(aInitData); nsCOMPtr task( - NewRunnableMethod&&>(this, + NewRunnableMethod&&>("GMPCDMProxy::gmp_CreateSession", + this, &GMPCDMProxy::gmp_CreateSession, Move(data))); mOwnerThread->EventTarget()->Dispatch(task.forget(), NS_DISPATCH_NORMAL); @@ -337,7 +340,8 @@ GMPCDMProxy::LoadSession(PromiseId aPromiseId, data->mPromiseId = aPromiseId; data->mSessionId = NS_ConvertUTF16toUTF8(aSessionId); nsCOMPtr task( - NewRunnableMethod&&>(this, + NewRunnableMethod&&>("GMPCDMProxy::gmp_LoadSession", + this, &GMPCDMProxy::gmp_LoadSession, Move(data))); mOwnerThread->EventTarget()->Dispatch(task.forget(), NS_DISPATCH_NORMAL); @@ -367,7 +371,8 @@ GMPCDMProxy::SetServerCertificate(PromiseId aPromiseId, data->mPromiseId = aPromiseId; data->mCert = Move(aCert); nsCOMPtr task( - NewRunnableMethod&&>(this, + NewRunnableMethod&&>("GMPCDMProxy::gmp_SetServerCertificate", + this, &GMPCDMProxy::gmp_SetServerCertificate, Move(data))); mOwnerThread->EventTarget()->Dispatch(task.forget(), NS_DISPATCH_NORMAL); @@ -399,7 +404,8 @@ GMPCDMProxy::UpdateSession(const nsAString& aSessionId, data->mSessionId = NS_ConvertUTF16toUTF8(aSessionId); data->mResponse = Move(aResponse); nsCOMPtr task( - NewRunnableMethod&&>(this, + NewRunnableMethod&&>("GMPCDMProxy::gmp_UpdateSession", + this, &GMPCDMProxy::gmp_UpdateSession, Move(data))); mOwnerThread->EventTarget()->Dispatch(task.forget(), NS_DISPATCH_NORMAL); @@ -430,7 +436,8 @@ GMPCDMProxy::CloseSession(const nsAString& aSessionId, data->mPromiseId = aPromiseId; data->mSessionId = NS_ConvertUTF16toUTF8(aSessionId); nsCOMPtr task( - NewRunnableMethod&&>(this, + NewRunnableMethod&&>("GMPCDMProxy::gmp_CloseSession", + this, &GMPCDMProxy::gmp_CloseSession, Move(data))); mOwnerThread->EventTarget()->Dispatch(task.forget(), NS_DISPATCH_NORMAL); @@ -459,7 +466,8 @@ GMPCDMProxy::RemoveSession(const nsAString& aSessionId, data->mPromiseId = aPromiseId; data->mSessionId = NS_ConvertUTF16toUTF8(aSessionId); nsCOMPtr task( - NewRunnableMethod&&>(this, + NewRunnableMethod&&>("GMPCDMProxy::gmp_RemoveSession", + this, &GMPCDMProxy::gmp_RemoveSession, Move(data))); mOwnerThread->EventTarget()->Dispatch(task.forget(), NS_DISPATCH_NORMAL); @@ -483,7 +491,8 @@ GMPCDMProxy::Shutdown() MOZ_ASSERT(NS_IsMainThread()); mKeys.Clear(); // Note: This may end up being the last owning reference to the GMPCDMProxy. - nsCOMPtr task(NewRunnableMethod(this, &GMPCDMProxy::gmp_Shutdown)); + nsCOMPtr task(NewRunnableMethod( + "GMPCDMProxy::gmp_Shutdown", this, &GMPCDMProxy::gmp_Shutdown)); if (mOwnerThread) { mOwnerThread->EventTarget()->Dispatch(task.forget(), NS_DISPATCH_NORMAL); } @@ -535,9 +544,8 @@ GMPCDMProxy::ResolvePromise(PromiseId aId) } } else { nsCOMPtr task; - task = NewRunnableMethod(this, - &GMPCDMProxy::ResolvePromise, - aId); + task = NewRunnableMethod( + "GMPCDMProxy::ResolvePromise", this, &GMPCDMProxy::ResolvePromise, aId); mMainThread->Dispatch(task.forget(), NS_DISPATCH_NORMAL); } } @@ -684,7 +692,8 @@ GMPCDMProxy::Decrypt(MediaRawData* aSample) RefPtr promise(job->Ensure()); nsCOMPtr task( - NewRunnableMethod>(this, &GMPCDMProxy::gmp_Decrypt, job)); + NewRunnableMethod>("GMPCDMProxy::gmp_Decrypt", + this, &GMPCDMProxy::gmp_Decrypt, job)); mOwnerThread->EventTarget()->Dispatch(task.forget(), NS_DISPATCH_NORMAL); return promise; } diff --git a/dom/media/gmp/GMPCDMProxy.h b/dom/media/gmp/GMPCDMProxy.h index a1ec05960395..3a5a2e559739 100644 --- a/dom/media/gmp/GMPCDMProxy.h +++ b/dom/media/gmp/GMPCDMProxy.h @@ -191,7 +191,8 @@ private: PromiseId aId, nsresult aCode, const nsCString& aReason) - : mProxy(aProxy) + : Runnable("GMPCDMProxy::RejectPromiseTask") + , mProxy(aProxy) , mId(aId) , mCode(aCode) , mReason(aReason) diff --git a/dom/media/gmp/GMPContentParent.cpp b/dom/media/gmp/GMPContentParent.cpp index 8ae313eb9956..2c5da871714b 100644 --- a/dom/media/gmp/GMPContentParent.cpp +++ b/dom/media/gmp/GMPContentParent.cpp @@ -50,7 +50,8 @@ class ReleaseGMPContentParent : public Runnable { public: explicit ReleaseGMPContentParent(GMPContentParent* aToRelease) - : mToRelease(aToRelease) + : Runnable("gmp::ReleaseGMPContentParent") + , mToRelease(aToRelease) { } @@ -145,8 +146,8 @@ GMPContentParent::CloseIfUnused() GeckoMediaPluginServiceChild::GetSingleton()); gmp->RemoveGMPContentParent(toClose); } - NS_DispatchToCurrentThread(NewRunnableMethod(toClose, - &GMPContentParent::Close)); + NS_DispatchToCurrentThread(NewRunnableMethod( + "gmp::GMPContentParent::Close", toClose, &GMPContentParent::Close)); } } diff --git a/dom/media/gmp/GMPCrashHelper.cpp b/dom/media/gmp/GMPCrashHelper.cpp index f46c4e833719..74fa5bfde324 100644 --- a/dom/media/gmp/GMPCrashHelper.cpp +++ b/dom/media/gmp/GMPCrashHelper.cpp @@ -19,9 +19,11 @@ GMPCrashHelper::Destroy() delete this; } else { // Don't addref, as then we'd end up releasing after the detele runs! - SystemGroup::Dispatch( - "GMPCrashHelper::Destroy", TaskCategory::Other, - NewNonOwningRunnableMethod(this, &GMPCrashHelper::Destroy)); + SystemGroup::Dispatch("GMPCrashHelper::Destroy", + TaskCategory::Other, + NewNonOwningRunnableMethod("GMPCrashHelper::Destroy", + this, + &GMPCrashHelper::Destroy)); } } diff --git a/dom/media/gmp/GMPDecryptorChild.cpp b/dom/media/gmp/GMPDecryptorChild.cpp index 2cc46de05b48..532457694b6b 100644 --- a/dom/media/gmp/GMPDecryptorChild.cpp +++ b/dom/media/gmp/GMPDecryptorChild.cpp @@ -196,10 +196,12 @@ GMPDecryptorChild::Decrypted(GMPBuffer* aBuffer, GMPErr aResult) if (!ON_GMP_THREAD()) { // We should run this whole method on the GMP thread since the buffer needs // to be deleted after the SendDecrypted call. - mPlugin->GMPMessageLoop()->PostTask(NewRunnableMethod - (this, - &GMPDecryptorChild::Decrypted, - aBuffer, aResult)); + mPlugin->GMPMessageLoop()->PostTask( + NewRunnableMethod("gmp::GMPDecryptorChild::Decrypted", + this, + &GMPDecryptorChild::Decrypted, + aBuffer, + aResult)); return; } diff --git a/dom/media/gmp/GMPParent.cpp b/dom/media/gmp/GMPParent.cpp index 1d7fe33676f9..fdd070ce46ca 100644 --- a/dom/media/gmp/GMPParent.cpp +++ b/dom/media/gmp/GMPParent.cpp @@ -334,6 +334,7 @@ GMPParent::ChildTerminated() LOGD("%s::%s: GMPEventTarget() returned nullptr.", __CLASS__, __FUNCTION__); } else { gmpEventTarget->Dispatch(NewRunnableMethod>( + "gmp::GeckoMediaPluginServiceParent::PluginTerminated", mService, &GeckoMediaPluginServiceParent::PluginTerminated, self), @@ -352,7 +353,8 @@ GMPParent::DeleteProcess() mState = GMPStateClosing; Close(); } - mProcess->Delete(NewRunnableMethod(this, &GMPParent::ChildTerminated)); + mProcess->Delete(NewRunnableMethod( + "gmp::GMPParent::ChildTerminated", this, &GMPParent::ChildTerminated)); LOGD("%s: Shut down process", __FUNCTION__); mProcess = nullptr; mState = GMPStateNotLoaded; diff --git a/dom/media/gmp/GMPPlatform.cpp b/dom/media/gmp/GMPPlatform.cpp index 9e8b02cb7cec..269f16c68e7a 100644 --- a/dom/media/gmp/GMPPlatform.cpp +++ b/dom/media/gmp/GMPPlatform.cpp @@ -77,7 +77,8 @@ public: // main thread tries to do a sync call back to the calling thread. MOZ_ASSERT(!IsOnChildMainThread()); - mMessageLoop->PostTask(NewRunnableMethod(this, &GMPSyncRunnable::Run)); + mMessageLoop->PostTask(NewRunnableMethod( + "gmp::GMPSyncRunnable::Run", this, &GMPSyncRunnable::Run)); MonitorAutoLock lock(mMonitor); while (!mDone) { lock.Wait(); @@ -140,7 +141,8 @@ RunOnMainThread(GMPTask* aTask) } RefPtr r = new GMPRunnable(aTask); - sMainLoop->PostTask(NewRunnableMethod(r, &GMPRunnable::Run)); + sMainLoop->PostTask( + NewRunnableMethod("gmp::GMPRunnable::Run", r, &GMPRunnable::Run)); return GMPNoErr; } @@ -274,7 +276,8 @@ GMPThreadImpl::Post(GMPTask* aTask) } RefPtr r = new GMPRunnable(aTask); - mThread.message_loop()->PostTask(NewRunnableMethod(r.get(), &GMPRunnable::Run)); + mThread.message_loop()->PostTask( + NewRunnableMethod("gmp::GMPRunnable::Run", r.get(), &GMPRunnable::Run)); } void diff --git a/dom/media/gmp/GMPProcessParent.cpp b/dom/media/gmp/GMPProcessParent.cpp index 8c6cd7a0d323..aad88b3ab145 100644 --- a/dom/media/gmp/GMPProcessParent.cpp +++ b/dom/media/gmp/GMPProcessParent.cpp @@ -85,7 +85,8 @@ void GMPProcessParent::Delete(nsCOMPtr aCallback) { mDeletedCallback = aCallback; - XRE_GetIOMessageLoop()->PostTask(NewNonOwningRunnableMethod(this, &GMPProcessParent::DoDelete)); + XRE_GetIOMessageLoop()->PostTask(NewNonOwningRunnableMethod( + "gmp::GMPProcessParent::DoDelete", this, &GMPProcessParent::DoDelete)); } void diff --git a/dom/media/gmp/GMPServiceChild.cpp b/dom/media/gmp/GMPServiceChild.cpp index 8fec2d90c3a5..02f0c097f06d 100644 --- a/dom/media/gmp/GMPServiceChild.cpp +++ b/dom/media/gmp/GMPServiceChild.cpp @@ -490,8 +490,9 @@ class OpenPGMPServiceChild : public mozilla::Runnable public: OpenPGMPServiceChild(UniquePtr&& aGMPServiceChild, ipc::Endpoint&& aEndpoint) - : mGMPServiceChild(Move(aGMPServiceChild)), - mEndpoint(Move(aEndpoint)) + : Runnable("gmp::OpenPGMPServiceChild") + , mGMPServiceChild(Move(aGMPServiceChild)) + , mEndpoint(Move(aEndpoint)) { } diff --git a/dom/media/gmp/GMPServiceParent.cpp b/dom/media/gmp/GMPServiceParent.cpp index 31fcb158070c..2b66e2622eb1 100644 --- a/dom/media/gmp/GMPServiceParent.cpp +++ b/dom/media/gmp/GMPServiceParent.cpp @@ -141,8 +141,10 @@ GeckoMediaPluginServiceParent::Init() int32_t expected = Preferences::GetInt("media.gmp.storage.version.expected", 0); if (version != expected) { Preferences::SetInt("media.gmp.storage.version.observed", expected); - return GMPDispatch(NewRunnableMethod( - this, &GeckoMediaPluginServiceParent::ClearStorage)); + return GMPDispatch( + NewRunnableMethod("gmp::GeckoMediaPluginServiceParent::ClearStorage", + this, + &GeckoMediaPluginServiceParent::ClearStorage)); } return NS_OK; } @@ -298,7 +300,8 @@ GeckoMediaPluginServiceParent::Observe(nsISupports* aSubject, LOGD(("%s::%s Starting to unload plugins, waiting for sync shutdown..." , __CLASS__, __FUNCTION__)); gmpThread->Dispatch( - NewRunnableMethod(this, + NewRunnableMethod("gmp::GeckoMediaPluginServiceParent::UnloadPlugins", + this, &GeckoMediaPluginServiceParent::UnloadPlugins), NS_DISPATCH_NORMAL); @@ -323,8 +326,10 @@ GeckoMediaPluginServiceParent::Observe(nsISupports* aSubject, } else if (!strcmp("browser:purge-session-history", aTopic)) { // Clear everything! if (!aSomeData || nsDependentString(aSomeData).IsEmpty()) { - return GMPDispatch(NewRunnableMethod( - this, &GeckoMediaPluginServiceParent::ClearStorage)); + return GMPDispatch( + NewRunnableMethod("gmp::GeckoMediaPluginServiceParent::ClearStorage", + this, + &GeckoMediaPluginServiceParent::ClearStorage)); } // Clear nodeIds/records modified after |t|. @@ -334,8 +339,10 @@ GeckoMediaPluginServiceParent::Observe(nsISupports* aSubject, return rv; } return GMPDispatch(NewRunnableMethod( - this, &GeckoMediaPluginServiceParent::ClearRecentHistoryOnGMPThread, - t)); + "gmp::GeckoMediaPluginServiceParent::ClearRecentHistoryOnGMPThread", + this, + &GeckoMediaPluginServiceParent::ClearRecentHistoryOnGMPThread, + t)); } return NS_OK; @@ -727,7 +734,7 @@ GeckoMediaPluginServiceParent::EnsurePluginsOnDiskScanned() // cause an event to be dispatched to which scans for plugins. We // dispatch a sync event to the GMP thread here in order to wait until // after the GMP thread has scanned any paths in MOZ_GMP_PATH. - nsresult rv = GMPDispatch(new mozilla::Runnable(), NS_DISPATCH_SYNC); + nsresult rv = GMPDispatch(new mozilla::Runnable("GMPDummyRunnable"), NS_DISPATCH_SYNC); NS_ENSURE_SUCCESS(rv, rv); MOZ_ASSERT(mScannedPluginOnDisk, "Should have scanned MOZ_GMP_PATH by now"); } @@ -1597,9 +1604,13 @@ GeckoMediaPluginServiceParent::ForgetThisSiteNative(const nsAString& aSite, { MOZ_ASSERT(NS_IsMainThread()); - return GMPDispatch(NewRunnableMethod( - this, &GeckoMediaPluginServiceParent::ForgetThisSiteOnGMPThread, - NS_ConvertUTF16toUTF8(aSite), aPattern)); + return GMPDispatch( + NewRunnableMethod( + "gmp::GeckoMediaPluginServiceParent::ForgetThisSiteOnGMPThread", + this, + &GeckoMediaPluginServiceParent::ForgetThisSiteOnGMPThread, + NS_ConvertUTF16toUTF8(aSite), + aPattern)); } static bool IsNodeIdValid(GMPParent* aParent) { @@ -1827,7 +1838,8 @@ class DeleteGMPServiceParent : public mozilla::Runnable { public: explicit DeleteGMPServiceParent(GMPServiceParent* aToDelete) - : mToDelete(aToDelete) + : Runnable("gmp::DeleteGMPServiceParent") + , mToDelete(aToDelete) { } @@ -1861,11 +1873,12 @@ GMPServiceParent::ActorDestroy(ActorDestroyReason aWhy) // Make sure the IPC channel is closed before destroying mToDelete. MonitorAutoLock lock(monitor); - RefPtr task = - NewNonOwningRunnableMethod(this, - &GMPServiceParent::CloseTransport, - &monitor, - &completed); + RefPtr task = NewNonOwningRunnableMethod( + "gmp::GMPServiceParent::CloseTransport", + this, + &GMPServiceParent::CloseTransport, + &monitor, + &completed); XRE_GetIOMessageLoop()->PostTask(Move(task.forget())); while (!completed) { @@ -1876,12 +1889,12 @@ GMPServiceParent::ActorDestroy(ActorDestroyReason aWhy) // GMPServiceParent until the current calling context is finished with // the object. GMPServiceParent* self = this; - NS_DispatchToCurrentThread(NS_NewRunnableFunction([self]() { - // The GMPServiceParent must be destroyed on the main thread. - NS_DispatchToMainThread(NS_NewRunnableFunction([self]() { - delete self; + NS_DispatchToCurrentThread( + NS_NewRunnableFunction("gmp::GMPServiceParent::ActorDestroy", [self]() { + // The GMPServiceParent must be destroyed on the main thread. + NS_DispatchToMainThread(NS_NewRunnableFunction( + "gmp::GMPServiceParent::ActorDestroy", [self]() { delete self; })); })); - })); } class OpenPGMPServiceParent : public mozilla::Runnable @@ -1890,9 +1903,10 @@ public: OpenPGMPServiceParent(GMPServiceParent* aGMPServiceParent, ipc::Endpoint&& aEndpoint, bool* aResult) - : mGMPServiceParent(aGMPServiceParent), - mEndpoint(Move(aEndpoint)), - mResult(aResult) + : Runnable("gmp::OpenPGMPServiceParent") + , mGMPServiceParent(aGMPServiceParent) + , mEndpoint(Move(aEndpoint)) + , mResult(aResult) { } diff --git a/dom/media/gmp/GMPServiceParent.h b/dom/media/gmp/GMPServiceParent.h index 86a0a8d5cf16..846683cf65e6 100644 --- a/dom/media/gmp/GMPServiceParent.h +++ b/dom/media/gmp/GMPServiceParent.h @@ -145,9 +145,12 @@ private: REMOVE_AND_DELETE_FROM_DISK, }; - PathRunnable(GeckoMediaPluginServiceParent* aService, const nsAString& aPath, - EOperation aOperation, bool aDefer = false) - : mService(aService) + PathRunnable(GeckoMediaPluginServiceParent* aService, + const nsAString& aPath, + EOperation aOperation, + bool aDefer = false) + : Runnable("gmp::GeckoMediaPluginServiceParent::PathRunnable") + , mService(aService) , mPath(aPath) , mOperation(aOperation) , mDefer(aDefer) diff --git a/dom/media/gmp/GMPTimerParent.cpp b/dom/media/gmp/GMPTimerParent.cpp index 3a0c9c52a816..f8cc29315ce1 100644 --- a/dom/media/gmp/GMPTimerParent.cpp +++ b/dom/media/gmp/GMPTimerParent.cpp @@ -54,10 +54,12 @@ GMPTimerParent::RecvSetTimer(const uint32_t& aTimerId, NS_ENSURE_SUCCESS(rv, IPC_OK()); ctx->mParent = this; - rv = ctx->mTimer->InitWithFuncCallback(&GMPTimerParent::GMPTimerExpired, - ctx, - aTimeoutMs, - nsITimer::TYPE_ONE_SHOT); + rv = + ctx->mTimer->InitWithNamedFuncCallback(&GMPTimerParent::GMPTimerExpired, + ctx, + aTimeoutMs, + nsITimer::TYPE_ONE_SHOT, + "gmp::GMPTimerParent::RecvSetTimer"); NS_ENSURE_SUCCESS(rv, IPC_OK()); mTimers.PutEntry(ctx.forget()); diff --git a/dom/media/gmp/GMPVideoDecoderChild.cpp b/dom/media/gmp/GMPVideoDecoderChild.cpp index 6c6cd9dc08f0..001aa3091e54 100644 --- a/dom/media/gmp/GMPVideoDecoderChild.cpp +++ b/dom/media/gmp/GMPVideoDecoderChild.cpp @@ -228,7 +228,9 @@ GMPVideoDecoderChild::Alloc(size_t aSize, if (mPendingDecodeComplete && mNeedShmemIntrCount == 0) { mPendingDecodeComplete = false; mPlugin->GMPMessageLoop()->PostTask( - NewRunnableMethod(this, &GMPVideoDecoderChild::RecvDecodingComplete)); + NewRunnableMethod("gmp::GMPVideoDecoderChild::RecvDecodingComplete", + this, + &GMPVideoDecoderChild::RecvDecodingComplete)); } #else #ifdef GMP_SAFE_SHMEM diff --git a/dom/media/gmp/GMPVideoDecoderParent.cpp b/dom/media/gmp/GMPVideoDecoderParent.cpp index 872c4a8975c6..27c565bfa406 100644 --- a/dom/media/gmp/GMPVideoDecoderParent.cpp +++ b/dom/media/gmp/GMPVideoDecoderParent.cpp @@ -202,12 +202,15 @@ GMPVideoDecoderParent::Reset() mIsAwaitingResetComplete = true; RefPtr self(this); - nsCOMPtr task = NS_NewRunnableFunction([self]() -> void - { - LOGD(("GMPVideoDecoderParent[%p]::ResetCompleteTimeout() timed out waiting for ResetComplete", self.get())); - self->mResetCompleteTimeout = nullptr; - LogToBrowserConsole(NS_LITERAL_STRING("GMPVideoDecoderParent timed out waiting for ResetComplete()")); - }); + nsCOMPtr task = NS_NewRunnableFunction( + "gmp::GMPVideoDecoderParent::Reset", [self]() -> void { + LOGD(("GMPVideoDecoderParent[%p]::ResetCompleteTimeout() timed out " + "waiting for ResetComplete", + self.get())); + self->mResetCompleteTimeout = nullptr; + LogToBrowserConsole(NS_LITERAL_STRING( + "GMPVideoDecoderParent timed out waiting for ResetComplete()")); + }); CancelResetCompleteTimeout(); nsCOMPtr target = mPlugin->GMPEventTarget(); mResetCompleteTimeout = SimpleTimer::Create(task, 5000, target); diff --git a/dom/media/gmp/GMPVideoEncoderChild.cpp b/dom/media/gmp/GMPVideoEncoderChild.cpp index e46769e7f32f..2ad82a6d9ef3 100644 --- a/dom/media/gmp/GMPVideoEncoderChild.cpp +++ b/dom/media/gmp/GMPVideoEncoderChild.cpp @@ -209,7 +209,9 @@ GMPVideoEncoderChild::Alloc(size_t aSize, if (mPendingEncodeComplete && mNeedShmemIntrCount == 0) { mPendingEncodeComplete = false; mPlugin->GMPMessageLoop()->PostTask( - NewRunnableMethod(this, &GMPVideoEncoderChild::RecvEncodingComplete)); + NewRunnableMethod("gmp::GMPVideoEncoderChild::RecvEncodingComplete", + this, + &GMPVideoEncoderChild::RecvEncodingComplete)); } #else #ifdef GMP_SAFE_SHMEM diff --git a/dom/media/gtest/GMPTestMonitor.h b/dom/media/gtest/GMPTestMonitor.h index 6b736e06a5e3..2c5f89e6784e 100644 --- a/dom/media/gtest/GMPTestMonitor.h +++ b/dom/media/gtest/GMPTestMonitor.h @@ -37,7 +37,8 @@ public: mozilla::SystemGroup::Dispatch( "GMPTestMonitor::SetFinished", mozilla::TaskCategory::Other, - mozilla::NewNonOwningRunnableMethod(this, &GMPTestMonitor::MarkFinished)); + mozilla::NewNonOwningRunnableMethod( + "GMPTestMonitor::MarkFinished", this, &GMPTestMonitor::MarkFinished)); } private: diff --git a/dom/media/gtest/TestGMPCrossOrigin.cpp b/dom/media/gtest/TestGMPCrossOrigin.cpp index ca8be7924155..87517531b29e 100644 --- a/dom/media/gtest/TestGMPCrossOrigin.cpp +++ b/dom/media/gtest/TestGMPCrossOrigin.cpp @@ -355,7 +355,8 @@ NS_IMPL_ISUPPORTS(GMPShutdownObserver, nsIRunnable, nsIObserver) class NotifyObserversTask : public Runnable { public: explicit NotifyObserversTask(const char* aTopic) - : mTopic(aTopic) + : mozilla::Runnable("NotifyObserversTask") + , mTopic(aTopic) {} NS_IMETHOD Run() override { MOZ_ASSERT(NS_IsMainThread()); @@ -532,7 +533,8 @@ class GMPStorageTest : public GMPDecryptorProxyCallback void DoTest(void (GMPStorageTest::*aTestMethod)()) { EnsureNSSInitializedChromeOrContent(); nsCOMPtr thread(GetGMPThread()); - ClearGMPStorage(NewRunnableMethod(this, aTestMethod), thread); + ClearGMPStorage( + NewRunnableMethod("GMPStorageTest::DoTest", this, aTestMethod), thread); AwaitFinished(); } @@ -585,8 +587,12 @@ class GMPStorageTest : public GMPDecryptorProxyCallback EXPECT_TRUE(!PBnodeId2.Equals(nodeId2)); nsCOMPtr thread(GetGMPThread()); - ClearGMPStorage(NewRunnableMethod( - this, &GMPStorageTest::TestGetNodeId_Continuation, nodeId1), thread); + ClearGMPStorage( + NewRunnableMethod("GMPStorageTest::TestGetNodeId_Continuation", + this, + &GMPStorageTest::TestGetNodeId_Continuation, + nodeId1), + thread); } void TestGetNodeId_Continuation(nsCString aNodeId1) { @@ -646,8 +652,9 @@ class GMPStorageTest : public GMPDecryptorProxyCallback { public: Updates(GMPStorageTest* aRunner, nsTArray&& aUpdates) - : mRunner(aRunner), - mUpdates(Move(aUpdates)) + : mozilla::Runnable("GMPStorageTest::Updates") + , mRunner(aRunner) + , mUpdates(Move(aUpdates)) { } @@ -707,7 +714,9 @@ class GMPStorageTest : public GMPDecryptorProxyCallback // It sends us a "test-storage complete" message when its passed, or // some other message if its tests fail. Expect(NS_LITERAL_CSTRING("test-storage complete"), - NewRunnableMethod(this, &GMPStorageTest::SetFinished)); + NewRunnableMethod("GMPStorageTest::SetFinished", + this, + &GMPStorageTest::SetFinished)); CreateDecryptor(NS_LITERAL_STRING("http://example1.com"), NS_LITERAL_STRING("http://example2.com"), @@ -726,8 +735,10 @@ class GMPStorageTest : public GMPDecryptorProxyCallback EXPECT_TRUE(IsGMPStorageIsEmpty()); // Generate storage data for some site. - nsCOMPtr r = NewRunnableMethod( - this, &GMPStorageTest::TestForgetThisSite_AnotherSite); + nsCOMPtr r = + NewRunnableMethod("GMPStorageTest::TestForgetThisSite_AnotherSite", + this, + &GMPStorageTest::TestForgetThisSite_AnotherSite); Expect(NS_LITERAL_CSTRING("test-storage complete"), r.forget()); CreateDecryptor(NS_LITERAL_STRING("http://example1.com"), @@ -740,8 +751,10 @@ class GMPStorageTest : public GMPDecryptorProxyCallback Shutdown(); // Generate storage data for another site. - nsCOMPtr r = NewRunnableMethod( - this, &GMPStorageTest::TestForgetThisSite_CollectSiteInfo); + nsCOMPtr r = + NewRunnableMethod("GMPStorageTest::TestForgetThisSite_CollectSiteInfo", + this, + &GMPStorageTest::TestForgetThisSite_CollectSiteInfo); Expect(NS_LITERAL_CSTRING("test-storage complete"), r.forget()); CreateDecryptor(NS_LITERAL_STRING("http://example3.com"), @@ -786,11 +799,13 @@ class GMPStorageTest : public GMPDecryptorProxyCallback EnumerateGMPStorageDir(NS_LITERAL_CSTRING("id"), NodeIdCollector(siteInfo.get())); // Invoke "Forget this site" on the main thread. - SystemGroup::Dispatch( - "TestForgetThisSite_Forget", - TaskCategory::Other, - NewRunnableMethod&&>( - this, &GMPStorageTest::TestForgetThisSite_Forget, Move(siteInfo))); + SystemGroup::Dispatch("TestForgetThisSite_Forget", + TaskCategory::Other, + NewRunnableMethod&&>( + "GMPStorageTest::TestForgetThisSite_Forget", + this, + &GMPStorageTest::TestForgetThisSite_Forget, + Move(siteInfo))); } void TestForgetThisSite_Forget(UniquePtr&& aSiteInfo) { @@ -803,11 +818,14 @@ class GMPStorageTest : public GMPDecryptorProxyCallback service->GetThread(getter_AddRefs(thread)); nsCOMPtr r = NewRunnableMethod&&>( - this, &GMPStorageTest::TestForgetThisSite_Verify, Move(aSiteInfo)); + "GMPStorageTest::TestForgetThisSite_Verify", + this, + &GMPStorageTest::TestForgetThisSite_Verify, + Move(aSiteInfo)); thread->Dispatch(r, NS_DISPATCH_NORMAL); nsCOMPtr f = NewRunnableMethod( - this, &GMPStorageTest::SetFinished); + "GMPStorageTest::SetFinished", this, &GMPStorageTest::SetFinished); thread->Dispatch(f, NS_DISPATCH_NORMAL); } @@ -872,8 +890,10 @@ class GMPStorageTest : public GMPDecryptorProxyCallback EXPECT_TRUE(IsGMPStorageIsEmpty()); // Generate storage data for some site. - nsCOMPtr r = NewRunnableMethod( - this, &GMPStorageTest::TestClearRecentHistory1_Clear); + nsCOMPtr r = + NewRunnableMethod("GMPStorageTest::TestClearRecentHistory1_Clear", + this, + &GMPStorageTest::TestClearRecentHistory1_Clear); Expect(NS_LITERAL_CSTRING("test-storage complete"), r.forget()); CreateDecryptor(NS_LITERAL_STRING("http://example1.com"), @@ -894,8 +914,10 @@ class GMPStorageTest : public GMPDecryptorProxyCallback EXPECT_TRUE(IsGMPStorageIsEmpty()); // Generate storage data for some site. - nsCOMPtr r = NewRunnableMethod( - this, &GMPStorageTest::TestClearRecentHistory2_Clear); + nsCOMPtr r = + NewRunnableMethod("GMPStorageTest::TestClearRecentHistory2_Clear", + this, + &GMPStorageTest::TestClearRecentHistory2_Clear); Expect(NS_LITERAL_CSTRING("test-storage complete"), r.forget()); CreateDecryptor(NS_LITERAL_STRING("http://example1.com"), @@ -916,8 +938,10 @@ class GMPStorageTest : public GMPDecryptorProxyCallback EXPECT_TRUE(IsGMPStorageIsEmpty()); // Generate storage data for some site. - nsCOMPtr r = NewRunnableMethod( - this, &GMPStorageTest::TestClearRecentHistory3_Clear); + nsCOMPtr r = + NewRunnableMethod("GMPStorageTest::TestClearRecentHistory3_Clear", + this, + &GMPStorageTest::TestClearRecentHistory3_Clear); Expect(NS_LITERAL_CSTRING("test-storage complete"), r.forget()); CreateDecryptor(NS_LITERAL_STRING("http://example1.com"), @@ -947,8 +971,10 @@ class GMPStorageTest : public GMPDecryptorProxyCallback nsresult rv = EnumerateGMPStorageDir(NS_LITERAL_CSTRING("id"), f); EXPECT_TRUE(NS_SUCCEEDED(rv)); - nsCOMPtr r = NewRunnableMethod( - this, &GMPStorageTest::TestClearRecentHistory_CheckEmpty); + nsCOMPtr r = + NewRunnableMethod("GMPStorageTest::TestClearRecentHistory_CheckEmpty", + this, + &GMPStorageTest::TestClearRecentHistory_CheckEmpty); nsCOMPtr t(GetGMPThread()); ClearGMPStorage(r.forget(), t, f.GetResult()); } @@ -958,8 +984,10 @@ class GMPStorageTest : public GMPDecryptorProxyCallback nsresult rv = EnumerateGMPStorageDir(NS_LITERAL_CSTRING("storage"), f); EXPECT_TRUE(NS_SUCCEEDED(rv)); - nsCOMPtr r = NewRunnableMethod( - this, &GMPStorageTest::TestClearRecentHistory_CheckEmpty); + nsCOMPtr r = + NewRunnableMethod("GMPStorageTest::TestClearRecentHistory_CheckEmpty", + this, + &GMPStorageTest::TestClearRecentHistory_CheckEmpty); nsCOMPtr t(GetGMPThread()); ClearGMPStorage(r.forget(), t, f.GetResult()); } @@ -969,8 +997,10 @@ class GMPStorageTest : public GMPDecryptorProxyCallback nsresult rv = EnumerateGMPStorageDir(NS_LITERAL_CSTRING("storage"), f); EXPECT_TRUE(NS_SUCCEEDED(rv)); - nsCOMPtr r = NewRunnableMethod( - this, &GMPStorageTest::TestClearRecentHistory_CheckNonEmpty); + nsCOMPtr r = + NewRunnableMethod("GMPStorageTest::TestClearRecentHistory_CheckNonEmpty", + this, + &GMPStorageTest::TestClearRecentHistory_CheckNonEmpty); nsCOMPtr t(GetGMPThread()); ClearGMPStorage(r.forget(), t, f.GetResult() + 1); } @@ -1026,8 +1056,11 @@ class GMPStorageTest : public GMPDecryptorProxyCallback auto t = time(0); nsCString response("stored crossOriginTestRecordId "); response.AppendInt((int64_t)t); - Expect(response, NewRunnableMethod(this, - &GMPStorageTest::TestCrossOriginStorage_RecordStoredContinuation)); + Expect(response, + NewRunnableMethod( + "GMPStorageTest::TestCrossOriginStorage_RecordStoredContinuation", + this, + &GMPStorageTest::TestCrossOriginStorage_RecordStoredContinuation)); nsCString update("store crossOriginTestRecordId "); update.AppendInt((int64_t)t); @@ -1045,8 +1078,11 @@ class GMPStorageTest : public GMPDecryptorProxyCallback // and try to read the record. Shutdown(); - Expect(NS_LITERAL_CSTRING("retrieve crossOriginTestRecordId succeeded (length 0 bytes)"), - NewRunnableMethod(this, &GMPStorageTest::SetFinished)); + Expect(NS_LITERAL_CSTRING( + "retrieve crossOriginTestRecordId succeeded (length 0 bytes)"), + NewRunnableMethod("GMPStorageTest::SetFinished", + this, + &GMPStorageTest::SetFinished)); CreateDecryptor(NS_LITERAL_STRING("http://example5.com"), NS_LITERAL_STRING("http://example6.com"), @@ -1058,8 +1094,11 @@ class GMPStorageTest : public GMPDecryptorProxyCallback // Send the decryptor the message "store recordid $time" // Wait for the decrytor to send us "stored recordid $time" nsCString response("stored pbdata test-pb-data"); - Expect(response, NewRunnableMethod(this, - &GMPStorageTest::TestPBStorage_RecordStoredContinuation)); + Expect(response, + NewRunnableMethod( + "GMPStorageTest::TestPBStorage_RecordStoredContinuation", + this, + &GMPStorageTest::TestPBStorage_RecordStoredContinuation)); // Open decryptor on one, origin, write a record, close decryptor, // open another, and test that record can be read, close decryptor, @@ -1075,8 +1114,10 @@ class GMPStorageTest : public GMPDecryptorProxyCallback Shutdown(); Expect(NS_LITERAL_CSTRING("retrieve pbdata succeeded (length 12 bytes)"), - NewRunnableMethod(this, - &GMPStorageTest::TestPBStorage_RecordRetrievedContinuation)); + NewRunnableMethod( + "GMPStorageTest::TestPBStorage_RecordRetrievedContinuation", + this, + &GMPStorageTest::TestPBStorage_RecordRetrievedContinuation)); CreateDecryptor(NS_LITERAL_STRING("http://pb1.com"), NS_LITERAL_STRING("http://pb2.com"), @@ -1089,8 +1130,9 @@ class GMPStorageTest : public GMPDecryptorProxyCallback SimulatePBModeExit(); Expect(NS_LITERAL_CSTRING("retrieve pbdata succeeded (length 0 bytes)"), - NewRunnableMethod(this, - &GMPStorageTest::SetFinished)); + NewRunnableMethod("GMPStorageTest::SetFinished", + this, + &GMPStorageTest::SetFinished)); CreateDecryptor(NS_LITERAL_STRING("http://pb1.com"), NS_LITERAL_STRING("http://pb2.com"), @@ -1103,7 +1145,8 @@ class GMPStorageTest : public GMPDecryptorProxyCallback Shutdown(); Expect(NS_LITERAL_CSTRING("OP tests completed"), - NewRunnableMethod(this, &GMPStorageTest::SetFinished)); + NewRunnableMethod("GMPStorageTest::SetFinished", + this, &GMPStorageTest::SetFinished)); CreateDecryptor(NS_LITERAL_STRING("http://example15.com"), NS_LITERAL_STRING("http://example16.com"), @@ -1141,7 +1184,10 @@ class GMPStorageTest : public GMPDecryptorProxyCallback response.Append(longRecordName); response.AppendLiteral(" "); response.Append(data); - Expect(response, NewRunnableMethod(this, &GMPStorageTest::SetFinished)); + Expect(response, + NewRunnableMethod("GMPStorageTest::SetFinished", + this, + &GMPStorageTest::SetFinished)); nsCString update("store "); update.Append(longRecordName); @@ -1168,9 +1214,11 @@ class GMPStorageTest : public GMPDecryptorProxyCallback return; } EXPECT_FALSE(mNodeId.IsEmpty()); - RefPtr task( - new GMPShutdownObserver(NewRunnableMethod(this, &GMPStorageTest::Shutdown), - Move(aContinuation), mNodeId)); + RefPtr task(new GMPShutdownObserver( + NewRunnableMethod( + "GMPStorageTest::Shutdown", this, &GMPStorageTest::Shutdown), + Move(aContinuation), + mNodeId)); SystemGroup::Dispatch("GMPShutdownObserver", TaskCategory::Other, task.forget()); } @@ -1188,7 +1236,8 @@ class GMPStorageTest : public GMPDecryptorProxyCallback void SetFinished() { mFinished = true; Shutdown(); - nsCOMPtr task = NewRunnableMethod(this, &GMPStorageTest::Dummy); + nsCOMPtr task = + NewRunnableMethod("GMPStorageTest::Dummy", this, &GMPStorageTest::Dummy); SystemGroup::Dispatch("GMPStorageTest::Dummy", TaskCategory::Other, task.forget()); } @@ -1278,9 +1327,8 @@ GMPTestRunner::DoTest(void (GMPTestRunner::*aTestMethod)(GMPTestMonitor&)) nsCOMPtr thread(GetGMPThread()); GMPTestMonitor monitor; - thread->Dispatch(NewRunnableMethod(this, - aTestMethod, - monitor), + thread->Dispatch(NewRunnableMethod( + "GMPTestRunner::DoTest", this, aTestMethod, monitor), NS_DISPATCH_NORMAL); monitor.AwaitFinished(); } diff --git a/dom/media/gtest/TestGMPRemoveAndDelete.cpp b/dom/media/gtest/TestGMPRemoveAndDelete.cpp index 4ac92e34e566..20d715c7eb99 100644 --- a/dom/media/gtest/TestGMPRemoveAndDelete.cpp +++ b/dom/media/gtest/TestGMPRemoveAndDelete.cpp @@ -263,10 +263,16 @@ GMPRemoveTest::CreateVideoDecoder(nsCString aNodeId) GMPVideoHost* host; GMPVideoDecoderProxy* decoder = nullptr; - mGMPThread->Dispatch( - NewNonOwningRunnableMethod( - this, &GMPRemoveTest::gmp_GetVideoDecoder, aNodeId, &decoder, &host), - NS_DISPATCH_NORMAL); + mGMPThread->Dispatch(NewNonOwningRunnableMethod( + "GMPRemoveTest::gmp_GetVideoDecoder", + this, + &GMPRemoveTest::gmp_GetVideoDecoder, + aNodeId, + &decoder, + &host), + NS_DISPATCH_NORMAL); mTestMonitor.AwaitFinished(); @@ -280,9 +286,16 @@ GMPRemoveTest::CreateVideoDecoder(nsCString aNodeId) nsTArray empty; mGMPThread->Dispatch( - NewNonOwningRunnableMethod&, GMPVideoDecoderCallbackProxy*, int32_t>( - decoder, &GMPVideoDecoderProxy::InitDecode, - codec, empty, this, 1 /* core count */), + NewNonOwningRunnableMethod&, + GMPVideoDecoderCallbackProxy*, + int32_t>("GMPVideoDecoderProxy::InitDecode", + decoder, + &GMPVideoDecoderProxy::InitDecode, + codec, + empty, + this, + 1 /* core count */), NS_DISPATCH_SYNC); if (mDecoder) { @@ -331,9 +344,10 @@ GMPRemoveTest::gmp_GetVideoDecoder(nsCString aNodeId, void GMPRemoveTest::CloseVideoDecoder() { - mGMPThread->Dispatch( - NewNonOwningRunnableMethod(mDecoder, &GMPVideoDecoderProxy::Close), - NS_DISPATCH_SYNC); + mGMPThread->Dispatch(NewNonOwningRunnableMethod("GMPVideoDecoderProxy::Close", + mDecoder, + &GMPVideoDecoderProxy::Close), + NS_DISPATCH_SYNC); mDecoder = nullptr; mHost = nullptr; @@ -348,9 +362,10 @@ GMPRemoveTest::DeletePluginDirectory(bool aCanDefer) GMPErr GMPRemoveTest::Decode() { - mGMPThread->Dispatch( - NewNonOwningRunnableMethod(this, &GMPRemoveTest::gmp_Decode), - NS_DISPATCH_NORMAL); + mGMPThread->Dispatch(NewNonOwningRunnableMethod("GMPRemoveTest::gmp_Decode", + this, + &GMPRemoveTest::gmp_Decode), + NS_DISPATCH_NORMAL); mTestMonitor.AwaitFinished(); return mDecodeResult; diff --git a/dom/media/gtest/TestMP4Demuxer.cpp b/dom/media/gtest/TestMP4Demuxer.cpp index 231dba0386cf..0a213f62269c 100644 --- a/dom/media/gtest/TestMP4Demuxer.cpp +++ b/dom/media/gtest/TestMP4Demuxer.cpp @@ -148,7 +148,8 @@ private: void DispatchTask(FunctionType aFun) { - RefPtr r = NS_NewRunnableFunction(aFun); + RefPtr r = + NS_NewRunnableFunction("MP4DemuxerBinding::DispatchTask", aFun); mTaskQueue->Dispatch(r.forget()); } diff --git a/dom/media/hls/HLSDemuxer.cpp b/dom/media/hls/HLSDemuxer.cpp index cfcbf6a225a9..f13a3f6f1cb6 100644 --- a/dom/media/hls/HLSDemuxer.cpp +++ b/dom/media/hls/HLSDemuxer.cpp @@ -88,6 +88,7 @@ public: if (!mDemuxer) { return; } RefPtr self = this; mDemuxer->GetTaskQueue()->Dispatch(NS_NewRunnableFunction( + "HLSDemuxer::HLSDemuxerCallbacksSupport::OnInitialized", [=] () { MutexAutoLock lock(self->mMutex); if (self->mDemuxer) { @@ -638,7 +639,8 @@ HLSTrackDemuxer::BreakCycles() { RefPtr self = this; nsCOMPtr task = - NS_NewRunnableFunction([self]() { + NS_NewRunnableFunction("HLSTrackDemuxer::BreakCycles", + [self]() { self->mParent = nullptr; } ); mParent->GetTaskQueue()->Dispatch(task.forget()); diff --git a/dom/media/imagecapture/CaptureTask.cpp b/dom/media/imagecapture/CaptureTask.cpp index 95aeb8478f24..29832429d792 100644 --- a/dom/media/imagecapture/CaptureTask.cpp +++ b/dom/media/imagecapture/CaptureTask.cpp @@ -176,7 +176,10 @@ CaptureTask::PostTrackEndEvent() { public: explicit TrackEndRunnable(CaptureTask* aTask) - : mTask(aTask) {} + : mozilla::Runnable("TrackEndRunnable") + , mTask(aTask) + { + } NS_IMETHOD Run() override { diff --git a/dom/media/ipc/RemoteVideoDecoder.cpp b/dom/media/ipc/RemoteVideoDecoder.cpp index 28953829bf97..d4e1df158882 100644 --- a/dom/media/ipc/RemoteVideoDecoder.cpp +++ b/dom/media/ipc/RemoteVideoDecoder.cpp @@ -34,10 +34,11 @@ RemoteVideoDecoder::~RemoteVideoDecoder() // it alive until we send the delete message. RefPtr actor = mActor; - RefPtr task = NS_NewRunnableFunction([actor]() { - MOZ_ASSERT(actor); - actor->DestroyIPDL(); - }); + RefPtr task = NS_NewRunnableFunction( + "dom::RemoteVideoDecoder::~RemoteVideoDecoder", [actor]() { + MOZ_ASSERT(actor); + actor->DestroyIPDL(); + }); // Drop out references to the actor so that the last ref // always gets released on the manager thread. @@ -103,10 +104,13 @@ RemoteVideoDecoder::SetSeekThreshold(const media::TimeUnit& aTime) { RefPtr self = this; media::TimeUnit time = aTime; - VideoDecoderManagerChild::GetManagerThread()->Dispatch(NS_NewRunnableFunction([=]() { - MOZ_ASSERT(self->mActor); - self->mActor->SetSeekThreshold(time); - }), NS_DISPATCH_NORMAL); + VideoDecoderManagerChild::GetManagerThread()->Dispatch( + NS_NewRunnableFunction("dom::RemoteVideoDecoder::SetSeekThreshold", + [=]() { + MOZ_ASSERT(self->mActor); + self->mActor->SetSeekThreshold(time); + }), + NS_DISPATCH_NORMAL); } MediaDataDecoder::ConversionRequired @@ -160,11 +164,16 @@ RemoteDecoderModule::CreateVideoDecoder(const CreateDecoderParams& aParams) SynchronousTask task("InitIPDL"); bool success; - VideoDecoderManagerChild::GetManagerThread()->Dispatch(NS_NewRunnableFunction([&]() { - AutoCompleteTask complete(&task); - success = object->mActor->InitIPDL(aParams.VideoConfig(), - aParams.mKnowsCompositor->GetTextureFactoryIdentifier()); - }), NS_DISPATCH_NORMAL); + VideoDecoderManagerChild::GetManagerThread()->Dispatch( + NS_NewRunnableFunction( + "dom::RemoteDecoderModule::CreateVideoDecoder", + [&]() { + AutoCompleteTask complete(&task); + success = object->mActor->InitIPDL( + aParams.VideoConfig(), + aParams.mKnowsCompositor->GetTextureFactoryIdentifier()); + }), + NS_DISPATCH_NORMAL); task.Wait(); if (!success) { diff --git a/dom/media/ipc/VideoDecoderChild.cpp b/dom/media/ipc/VideoDecoderChild.cpp index 600272aa8830..46392b343f3a 100644 --- a/dom/media/ipc/VideoDecoderChild.cpp +++ b/dom/media/ipc/VideoDecoderChild.cpp @@ -124,23 +124,24 @@ VideoDecoderChild::ActorDestroy(ActorDestroyReason aWhy) // Defer reporting an error until we've recreated the manager so that // it'll be safe for MediaFormatReader to recreate decoders RefPtr ref = this; - GetManager()->RunWhenRecreated(NS_NewRunnableFunction([=]() { - if (ref->mInitialized) { - mDecodedData.Clear(); - mDecodePromise.RejectIfExists(NS_ERROR_DOM_MEDIA_NEED_NEW_DECODER, - __func__); - mDrainPromise.RejectIfExists(NS_ERROR_DOM_MEDIA_NEED_NEW_DECODER, - __func__); - mFlushPromise.RejectIfExists(NS_ERROR_DOM_MEDIA_NEED_NEW_DECODER, - __func__); - // Make sure the next request will be rejected accordingly if ever - // called. - mNeedNewDecoder = true; - } else { - ref->mInitPromise.RejectIfExists(NS_ERROR_DOM_MEDIA_NEED_NEW_DECODER, - __func__); - } - })); + GetManager()->RunWhenRecreated( + NS_NewRunnableFunction("dom::VideoDecoderChild::ActorDestroy", [=]() { + if (ref->mInitialized) { + mDecodedData.Clear(); + mDecodePromise.RejectIfExists(NS_ERROR_DOM_MEDIA_NEED_NEW_DECODER, + __func__); + mDrainPromise.RejectIfExists(NS_ERROR_DOM_MEDIA_NEED_NEW_DECODER, + __func__); + mFlushPromise.RejectIfExists(NS_ERROR_DOM_MEDIA_NEED_NEW_DECODER, + __func__); + // Make sure the next request will be rejected accordingly if ever + // called. + mNeedNewDecoder = true; + } else { + ref->mInitPromise.RejectIfExists(NS_ERROR_DOM_MEDIA_NEED_NEW_DECODER, + __func__); + } + })); } mCanSend = false; } diff --git a/dom/media/ipc/VideoDecoderManagerChild.cpp b/dom/media/ipc/VideoDecoderManagerChild.cpp index 7749f56aaa92..3dab09c91a28 100644 --- a/dom/media/ipc/VideoDecoderManagerChild.cpp +++ b/dom/media/ipc/VideoDecoderManagerChild.cpp @@ -61,12 +61,16 @@ VideoDecoderManagerChild::Shutdown() MOZ_ASSERT(NS_IsMainThread()); if (sVideoDecoderChildThread) { - sVideoDecoderChildThread->Dispatch(NS_NewRunnableFunction([]() { - if (sDecoderManager && sDecoderManager->CanSend()) { - sDecoderManager->Close(); - sDecoderManager = nullptr; - } - }), NS_DISPATCH_NORMAL); + sVideoDecoderChildThread->Dispatch( + NS_NewRunnableFunction("dom::VideoDecoderManagerChild::Shutdown", + []() { + if (sDecoderManager && + sDecoderManager->CanSend()) { + sDecoderManager->Close(); + sDecoderManager = nullptr; + } + }), + NS_DISPATCH_NORMAL); sVideoDecoderChildAbstractThread = nullptr; sVideoDecoderChildThread->Shutdown(); @@ -177,12 +181,15 @@ VideoDecoderManagerChild::DeallocShmem(mozilla::ipc::Shmem& aShmem) if (NS_GetCurrentThread() != sVideoDecoderChildThread) { RefPtr self = this; mozilla::ipc::Shmem shmem = aShmem; - sVideoDecoderChildThread->Dispatch(NS_NewRunnableFunction([self, shmem]() { - if (self->CanSend()) { - mozilla::ipc::Shmem shmemCopy = shmem; - self->DeallocShmem(shmemCopy); - } - }), NS_DISPATCH_NORMAL); + sVideoDecoderChildThread->Dispatch( + NS_NewRunnableFunction("dom::VideoDecoderManagerChild::DeallocShmem", + [self, shmem]() { + if (self->CanSend()) { + mozilla::ipc::Shmem shmemCopy = shmem; + self->DeallocShmem(shmemCopy); + } + }), + NS_DISPATCH_NORMAL); return true; } return PVideoDecoderManagerChild::DeallocShmem(aShmem); @@ -219,7 +226,8 @@ VideoDecoderManagerChild::Readback(const SurfaceDescriptorGPUVideo& aSD) RefPtr ref = this; SurfaceDescriptor sd; - if (NS_FAILED(sVideoDecoderChildThread->Dispatch(NS_NewRunnableFunction([&]() { + if (NS_FAILED(sVideoDecoderChildThread->Dispatch(NS_NewRunnableFunction("VideoDecoderManagerChild::Readback", + [&]() { AutoCompleteTask complete(&task); if (ref->CanSend()) { ref->SendReadback(aSD, &sd); @@ -254,11 +262,15 @@ VideoDecoderManagerChild::DeallocateSurfaceDescriptorGPUVideo(const SurfaceDescr { RefPtr ref = this; SurfaceDescriptorGPUVideo sd = Move(aSD); - sVideoDecoderChildThread->Dispatch(NS_NewRunnableFunction([ref, sd]() { - if (ref->CanSend()) { - ref->SendDeallocateSurfaceDescriptorGPUVideo(sd); - } - }), NS_DISPATCH_NORMAL); + sVideoDecoderChildThread->Dispatch( + NS_NewRunnableFunction( + "dom::VideoDecoderManagerChild::DeallocateSurfaceDescriptorGPUVideo", + [ref, sd]() { + if (ref->CanSend()) { + ref->SendDeallocateSurfaceDescriptorGPUVideo(sd); + } + }), + NS_DISPATCH_NORMAL); } void diff --git a/dom/media/ipc/VideoDecoderManagerParent.cpp b/dom/media/ipc/VideoDecoderManagerParent.cpp index e1a50b2400d1..a80d8310f4d6 100644 --- a/dom/media/ipc/VideoDecoderManagerParent.cpp +++ b/dom/media/ipc/VideoDecoderManagerParent.cpp @@ -51,10 +51,12 @@ public: private: ~VideoDecoderManagerThreadHolder() { - NS_DispatchToMainThread(NS_NewRunnableFunction([]() -> void { - sVideoDecoderManagerThread->Shutdown(); - sVideoDecoderManagerThread = nullptr; - })); + NS_DispatchToMainThread(NS_NewRunnableFunction( + "dom::VideoDecoderManagerThreadHolder::~VideoDecoderManagerThreadHolder", + []() -> void { + sVideoDecoderManagerThread->Shutdown(); + sVideoDecoderManagerThread = nullptr; + })); } }; StaticRefPtr sVideoDecoderManagerThreadHolder; @@ -100,14 +102,16 @@ VideoDecoderManagerParent::StartupThreads() sVideoDecoderManagerThread = managerThread; sVideoDecoderManagerThreadHolder = new VideoDecoderManagerThreadHolder(); #if XP_WIN - sVideoDecoderManagerThread->Dispatch(NS_NewRunnableFunction([]() { + sVideoDecoderManagerThread->Dispatch(NS_NewRunnableFunction("VideoDecoderManagerParent::StartupThreads", + []() { HRESULT hr = CoInitializeEx(0, COINIT_MULTITHREADED); MOZ_ASSERT(hr == S_OK); }), NS_DISPATCH_NORMAL); #endif - sVideoDecoderManagerThread->Dispatch(NS_NewRunnableFunction([]() { - layers::VideoBridgeChild::Startup(); - }), NS_DISPATCH_NORMAL); + sVideoDecoderManagerThread->Dispatch( + NS_NewRunnableFunction("dom::VideoDecoderManagerParent::StartupThreads", + []() { layers::VideoBridgeChild::Startup(); }), + NS_DISPATCH_NORMAL); sManagerTaskQueue = new TaskQueue( managerThread.forget(), "VideoDecoderManagerParent::sManagerTaskQueue"); @@ -133,9 +137,9 @@ void VideoDecoderManagerParent::ShutdownVideoBridge() { if (sVideoDecoderManagerThread) { - RefPtr task = NS_NewRunnableFunction([]() { - VideoBridgeChild::Shutdown(); - }); + RefPtr task = NS_NewRunnableFunction( + "dom::VideoDecoderManagerParent::ShutdownVideoBridge", + []() { VideoBridgeChild::Shutdown(); }); SyncRunnable::DispatchToThread(sVideoDecoderManagerThread, task); } } @@ -160,8 +164,12 @@ VideoDecoderManagerParent::CreateForContent(Endpoint RefPtr parent = new VideoDecoderManagerParent(sVideoDecoderManagerThreadHolder); - RefPtr task = NewRunnableMethod&&>( - parent, &VideoDecoderManagerParent::Open, Move(aEndpoint)); + RefPtr task = + NewRunnableMethod&&>( + "dom::VideoDecoderManagerParent::Open", + parent, + &VideoDecoderManagerParent::Open, + Move(aEndpoint)); sVideoDecoderManagerThread->Dispatch(task.forget(), NS_DISPATCH_NORMAL); return true; } diff --git a/dom/media/mediasink/DecodedStream.cpp b/dom/media/mediasink/DecodedStream.cpp index 3ae885dc1415..39e7bf08e033 100644 --- a/dom/media/mediasink/DecodedStream.cpp +++ b/dom/media/mediasink/DecodedStream.cpp @@ -60,7 +60,9 @@ public: if (event == MediaStreamGraphEvent::EVENT_FINISHED) { aGraph->DispatchToMainThreadAfterStreamStateUpdate( mAbstractMainThread, - NewRunnableMethod(this, &DecodedStreamGraphListener::DoNotifyFinished)); + NewRunnableMethod("DecodedStreamGraphListener::DoNotifyFinished", + this, + &DecodedStreamGraphListener::DoNotifyFinished)); } } @@ -73,10 +75,11 @@ public: void Forget() { RefPtr self = this; - mAbstractMainThread->Dispatch(NS_NewRunnableFunction([self] () { - MOZ_ASSERT(NS_IsMainThread()); - self->mFinishPromise.ResolveIfExists(true, __func__); - })); + mAbstractMainThread->Dispatch( + NS_NewRunnableFunction("DecodedStreamGraphListener::Forget", [self]() { + MOZ_ASSERT(NS_IsMainThread()); + self->mFinishPromise.ResolveIfExists(true, __func__); + })); MutexAutoLock lock(mMutex); mStream = nullptr; } @@ -110,9 +113,11 @@ UpdateStreamSuspended(AbstractThread* aMainThread, MediaStream* aStream, bool aB } else { nsCOMPtr r; if (aBlocking) { - r = NewRunnableMethod(aStream, &MediaStream::Suspend); + r = NewRunnableMethod( + "MediaStream::Suspend", aStream, &MediaStream::Suspend); } else { - r = NewRunnableMethod(aStream, &MediaStream::Resume); + r = + NewRunnableMethod("MediaStream::Resume", aStream, &MediaStream::Resume); } aMainThread->Dispatch(r.forget()); } @@ -406,9 +411,8 @@ DecodedStream::DestroyData(UniquePtr aData) DecodedStreamData* data = aData.release(); data->Forget(); - nsCOMPtr r = NS_NewRunnableFunction([=] () { - delete data; - }); + nsCOMPtr r = NS_NewRunnableFunction("DecodedStream::DestroyData", + [=]() { delete data; }); mAbstractMainThread->Dispatch(r.forget()); } diff --git a/dom/media/mediasource/AsyncEventRunner.h b/dom/media/mediasource/AsyncEventRunner.h index a1b6265f7111..5b506523b998 100644 --- a/dom/media/mediasource/AsyncEventRunner.h +++ b/dom/media/mediasource/AsyncEventRunner.h @@ -16,7 +16,8 @@ class AsyncEventRunner : public Runnable { public: AsyncEventRunner(T* aTarget, const char* aName) - : mTarget(aTarget) + : Runnable("AsyncEventRunner") + , mTarget(aTarget) , mName(aName) {} diff --git a/dom/media/mediasource/AutoTaskQueue.h b/dom/media/mediasource/AutoTaskQueue.h index 225bd6102c3a..5f0a62c2d872 100644 --- a/dom/media/mediasource/AutoTaskQueue.h +++ b/dom/media/mediasource/AutoTaskQueue.h @@ -60,7 +60,8 @@ private: { RefPtr taskqueue = mTaskQueue; nsCOMPtr task = - NS_NewRunnableFunction([taskqueue]() { taskqueue->BeginShutdown(); }); + NS_NewRunnableFunction("AutoTaskQueue::~AutoTaskQueue", + [taskqueue]() { taskqueue->BeginShutdown(); }); SystemGroup::Dispatch("~AutoTaskQueue", TaskCategory::Other, task.forget()); } RefPtr mTaskQueue; diff --git a/dom/media/mediasource/MediaSourceDemuxer.cpp b/dom/media/mediasource/MediaSourceDemuxer.cpp index 7a48c82c765f..e1cdbecc521f 100644 --- a/dom/media/mediasource/MediaSourceDemuxer.cpp +++ b/dom/media/mediasource/MediaSourceDemuxer.cpp @@ -56,8 +56,8 @@ MediaSourceDemuxer::AddSizeOfResources( // NB: The track buffers must only be accessed on the TaskQueue. RefPtr self = this; RefPtr sizes = aSizes; - nsCOMPtr task = - NS_NewRunnableFunction([self, sizes] () { + nsCOMPtr task = NS_NewRunnableFunction( + "MediaSourceDemuxer::AddSizeOfResources", [self, sizes]() { for (TrackBuffersManager* manager : self->mSourceBuffers) { manager->AddSizeOfResources(sizes); } @@ -69,14 +69,15 @@ MediaSourceDemuxer::AddSizeOfResources( void MediaSourceDemuxer::NotifyInitDataArrived() { RefPtr self = this; - nsCOMPtr task = NS_NewRunnableFunction([self]() { - if (self->mInitPromise.IsEmpty()) { - return; - } - if (self->ScanSourceBuffersForContent()) { - self->mInitPromise.ResolveIfExists(NS_OK, __func__); - } - }); + nsCOMPtr task = NS_NewRunnableFunction( + "MediaSourceDemuxer::NotifyInitDataArrived", [self]() { + if (self->mInitPromise.IsEmpty()) { + return; + } + if (self->ScanSourceBuffersForContent()) { + self->mInitPromise.ResolveIfExists(NS_OK, __func__); + } + }); GetTaskQueue()->Dispatch(task.forget()); } @@ -168,10 +169,11 @@ MediaSourceDemuxer::GetCrypto() void MediaSourceDemuxer::AttachSourceBuffer(TrackBuffersManager* aSourceBuffer) { - nsCOMPtr task = - NewRunnableMethod( - this, &MediaSourceDemuxer::DoAttachSourceBuffer, - aSourceBuffer); + nsCOMPtr task = NewRunnableMethod( + "MediaSourceDemuxer::DoAttachSourceBuffer", + this, + &MediaSourceDemuxer::DoAttachSourceBuffer, + aSourceBuffer); GetTaskQueue()->Dispatch(task.forget()); } @@ -186,10 +188,11 @@ MediaSourceDemuxer::DoAttachSourceBuffer(mozilla::TrackBuffersManager* aSourceBu void MediaSourceDemuxer::DetachSourceBuffer(TrackBuffersManager* aSourceBuffer) { - nsCOMPtr task = - NewRunnableMethod( - this, &MediaSourceDemuxer::DoDetachSourceBuffer, - aSourceBuffer); + nsCOMPtr task = NewRunnableMethod( + "MediaSourceDemuxer::DoDetachSourceBuffer", + this, + &MediaSourceDemuxer::DoDetachSourceBuffer, + aSourceBuffer); GetTaskQueue()->Dispatch(task.forget()); } @@ -342,7 +345,7 @@ MediaSourceTrackDemuxer::Reset() MOZ_ASSERT(mParent, "Called after BreackCycle()"); RefPtr self = this; nsCOMPtr task = - NS_NewRunnableFunction([self] () { + NS_NewRunnableFunction("MediaSourceTrackDemuxer::Reset", [self]() { self->mNextSample.reset(); self->mReset = true; self->mManager->Seek(self->mType, TimeUnit::Zero(), TimeUnit::Zero()); @@ -384,10 +387,10 @@ MediaSourceTrackDemuxer::BreakCycles() { RefPtr self = this; nsCOMPtr task = - NS_NewRunnableFunction([self]() { + NS_NewRunnableFunction("MediaSourceTrackDemuxer::BreakCycles", [self]() { self->mParent = nullptr; self->mManager = nullptr; - } ); + }); mParent->GetTaskQueue()->Dispatch(task.forget()); } diff --git a/dom/media/mediasource/TrackBuffersManager.cpp b/dom/media/mediasource/TrackBuffersManager.cpp index ee258a37aab3..b9abcfb1d546 100644 --- a/dom/media/mediasource/TrackBuffersManager.cpp +++ b/dom/media/mediasource/TrackBuffersManager.cpp @@ -65,7 +65,8 @@ public: DispatchKeyNeededEvent(AbstractMediaDecoder* aDecoder, nsTArray& aInitData, const nsString& aInitDataType) - : mDecoder(aDecoder) + : Runnable("DispatchKeyNeededEvent") + , mDecoder(aDecoder) , mInitData(aInitData) , mInitDataType(aInitDataType) { @@ -147,7 +148,10 @@ TrackBuffersManager::QueueTask(SourceBufferTask* aTask) { if (!OnTaskQueue()) { GetTaskQueue()->Dispatch(NewRunnableMethod>( - this, &TrackBuffersManager::QueueTask, aTask)); + "TrackBuffersManager::QueueTask", + this, + &TrackBuffersManager::QueueTask, + aTask)); return; } MOZ_ASSERT(OnTaskQueue()); @@ -212,7 +216,10 @@ TrackBuffersManager::ProcessTasks() default: NS_WARNING("Invalid Task"); } - GetTaskQueue()->Dispatch(NewRunnableMethod(this, &TrackBuffersManager::ProcessTasks)); + GetTaskQueue()->Dispatch( + NewRunnableMethod("TrackBuffersManager::ProcessTasks", + this, + &TrackBuffersManager::ProcessTasks)); } // The MSE spec requires that we abort the current SegmentParserLoop @@ -790,7 +797,10 @@ TrackBuffersManager::RejectAppend(const MediaResult& aRejectValue, const char* a void TrackBuffersManager::ScheduleSegmentParserLoop() { - GetTaskQueue()->Dispatch(NewRunnableMethod(this, &TrackBuffersManager::SegmentParserLoop)); + GetTaskQueue()->Dispatch( + NewRunnableMethod("TrackBuffersManager::SegmentParserLoop", + this, + &TrackBuffersManager::SegmentParserLoop)); } void @@ -874,11 +884,12 @@ TrackBuffersManager::OnDemuxerResetDone(const MediaResult& aResult) if (aResult != NS_OK && mParentDecoder) { RefPtr self = this; - mAbstractMainThread->Dispatch(NS_NewRunnableFunction([self, aResult] () { - if (self->mParentDecoder && self->mParentDecoder->GetOwner()) { - self->mParentDecoder->GetOwner()->DecodeWarning(aResult); - } - })); + mAbstractMainThread->Dispatch(NS_NewRunnableFunction( + "TrackBuffersManager::OnDemuxerResetDone", [self, aResult]() { + if (self->mParentDecoder && self->mParentDecoder->GetOwner()) { + self->mParentDecoder->GetOwner()->DecodeWarning(aResult); + } + })); } // Recreate track demuxers. @@ -999,10 +1010,11 @@ TrackBuffersManager::OnDemuxerInitDone(const MediaResult& aResult) int64_t duration = std::max(videoDuration, audioDuration); // 1. Update the duration attribute if it currently equals NaN. // Those steps are performed by the MediaSourceDecoder::SetInitialDuration - mAbstractMainThread->Dispatch(NewRunnableMethod - (mParentDecoder.get(), - &MediaSourceDecoder::SetInitialDuration, - duration ? duration : -1)); + mAbstractMainThread->Dispatch( + NewRunnableMethod("MediaSourceDecoder::SetInitialDuration", + mParentDecoder.get(), + &MediaSourceDecoder::SetInitialDuration, + duration ? duration : -1)); // 2. If the initialization segment has no audio, video, or text tracks, then // run the append error algorithm with the decode error parameter set to true @@ -1159,11 +1171,12 @@ TrackBuffersManager::OnDemuxerInitDone(const MediaResult& aResult) if (aResult != NS_OK && mParentDecoder) { RefPtr self = this; - mAbstractMainThread->Dispatch(NS_NewRunnableFunction([self, aResult] () { - if (self->mParentDecoder && self->mParentDecoder->GetOwner()) { - self->mParentDecoder->GetOwner()->DecodeWarning(aResult); - } - })); + mAbstractMainThread->Dispatch(NS_NewRunnableFunction( + "TrackBuffersManager::OnDemuxerInitDone", [self, aResult]() { + if (self->mParentDecoder && self->mParentDecoder->GetOwner()) { + self->mParentDecoder->GetOwner()->DecodeWarning(aResult); + } + })); } } diff --git a/dom/media/ogg/OggDemuxer.cpp b/dom/media/ogg/OggDemuxer.cpp index cc0017d53fa8..26cc97fda18d 100644 --- a/dom/media/ogg/OggDemuxer.cpp +++ b/dom/media/ogg/OggDemuxer.cpp @@ -129,14 +129,20 @@ OggDemuxer::~OggDemuxer() // a chained stream or not. bool isChained = mIsChained; void* ptr = this; - nsCOMPtr task = NS_NewRunnableFunction([ptr, isChained]() -> void { - // We can't use OGG_DEBUG here because it implicitly refers to `this`, - // which we can't capture in this runnable. - MOZ_LOG(gMediaDemuxerLog, mozilla::LogLevel::Debug, - ("OggDemuxer(%p)::%s: Reporting telemetry MEDIA_OGG_LOADED_IS_CHAINED=%d", - ptr, __func__, isChained)); - Telemetry::Accumulate(Telemetry::HistogramID::MEDIA_OGG_LOADED_IS_CHAINED, isChained); - }); + nsCOMPtr task = NS_NewRunnableFunction( + "OggDemuxer::~OggDemuxer", [ptr, isChained]() -> void { + // We can't use OGG_DEBUG here because it implicitly refers to `this`, + // which we can't capture in this runnable. + MOZ_LOG(gMediaDemuxerLog, + mozilla::LogLevel::Debug, + ("OggDemuxer(%p)::%s: Reporting telemetry " + "MEDIA_OGG_LOADED_IS_CHAINED=%d", + ptr, + __func__, + isChained)); + Telemetry::Accumulate( + Telemetry::HistogramID::MEDIA_OGG_LOADED_IS_CHAINED, isChained); + }); SystemGroup::Dispatch("~OggDemuxer::report_telemetry", TaskCategory::Other, task.forget()); diff --git a/dom/media/platforms/PDMFactory.cpp b/dom/media/platforms/PDMFactory.cpp index afc040eabc53..5105957d33c9 100644 --- a/dom/media/platforms/PDMFactory.cpp +++ b/dom/media/platforms/PDMFactory.cpp @@ -191,7 +191,7 @@ PDMFactory::EnsureInit() const // Not on the main thread -> Sync-dispatch creation to main thread. nsCOMPtr mainTarget = GetMainThreadEventTarget(); nsCOMPtr runnable = - NS_NewRunnableFunction([]() { + NS_NewRunnableFunction("PDMFactory::EnsureInit", []() { StaticMutexAutoLock mon(sMonitor); if (!sInstance) { sInstance = new PDMFactoryImpl(); diff --git a/dom/media/platforms/android/RemoteDataDecoder.cpp b/dom/media/platforms/android/RemoteDataDecoder.cpp index 20dac82cfbc5..ed57b99a8226 100644 --- a/dom/media/platforms/android/RemoteDataDecoder.cpp +++ b/dom/media/platforms/android/RemoteDataDecoder.cpp @@ -555,7 +555,8 @@ RemoteDataDecoder::UpdateInputStatus(int64_t aTimestamp, bool aProcessed) { if (!mTaskQueue->IsCurrentThreadIn()) { mTaskQueue->Dispatch( - NewRunnableMethod(this, + NewRunnableMethod("RemoteDataDecoder::UpdateInputStatus", + this, &RemoteDataDecoder::UpdateInputStatus, aTimestamp, aProcessed)); @@ -583,7 +584,8 @@ RemoteDataDecoder::UpdateOutputStatus(MediaData* aSample) { if (!mTaskQueue->IsCurrentThreadIn()) { mTaskQueue->Dispatch( - NewRunnableMethod(this, + NewRunnableMethod("RemoteDataDecoder::UpdateOutputStatus", + this, &RemoteDataDecoder::UpdateOutputStatus, aSample)); return; @@ -617,7 +619,8 @@ RemoteDataDecoder::DrainComplete() { if (!mTaskQueue->IsCurrentThreadIn()) { mTaskQueue->Dispatch( - NewRunnableMethod(this, &RemoteDataDecoder::DrainComplete)); + NewRunnableMethod("RemoteDataDecoder::DrainComplete", + this, &RemoteDataDecoder::DrainComplete)); return; } AssertOnTaskQueue(); @@ -635,7 +638,8 @@ RemoteDataDecoder::Error(const MediaResult& aError) { if (!mTaskQueue->IsCurrentThreadIn()) { mTaskQueue->Dispatch( - NewRunnableMethod(this, &RemoteDataDecoder::Error, aError)); + NewRunnableMethod("RemoteDataDecoder::Error", + this, &RemoteDataDecoder::Error, aError)); return; } AssertOnTaskQueue(); diff --git a/dom/media/platforms/omx/OmxDataDecoder.cpp b/dom/media/platforms/omx/OmxDataDecoder.cpp index 011e23cc861e..885366f99aa5 100644 --- a/dom/media/platforms/omx/OmxDataDecoder.cpp +++ b/dom/media/platforms/omx/OmxDataDecoder.cpp @@ -386,16 +386,17 @@ OmxDataDecoder::EmptyBufferDone(BufferData* aData) mCheckingInputExhausted = true; RefPtr self = this; - nsCOMPtr r = NS_NewRunnableFunction([self, this]() { - mCheckingInputExhausted = false; + nsCOMPtr r = + NS_NewRunnableFunction("OmxDataDecoder::EmptyBufferDone", [self, this]() { + mCheckingInputExhausted = false; - if (mMediaRawDatas.Length()) { - return; - } + if (mMediaRawDatas.Length()) { + return; + } - mDecodePromise.ResolveIfExists(mDecodedData, __func__); - mDecodedData.Clear(); - }); + mDecodePromise.ResolveIfExists(mDecodedData, __func__); + mDecodedData.Clear(); + }); mOmxTaskQueue->Dispatch(r.forget()); } diff --git a/dom/media/platforms/wmf/WMFAudioMFTManager.cpp b/dom/media/platforms/wmf/WMFAudioMFTManager.cpp index e0cad38baa5c..46aa556b7cbf 100644 --- a/dom/media/platforms/wmf/WMFAudioMFTManager.cpp +++ b/dom/media/platforms/wmf/WMFAudioMFTManager.cpp @@ -252,7 +252,8 @@ WMFAudioMFTManager::Output(int64_t aStreamOffset, if (!sample) { LOG("Audio MFTDecoder returned success but null output."); - nsCOMPtr task = NS_NewRunnableFunction([]() -> void { + nsCOMPtr task = NS_NewRunnableFunction("WMFAudioMFTManager::Output", + []() -> void { LOG("Reporting telemetry AUDIO_MFT_OUTPUT_NULL_SAMPLES"); Telemetry::Accumulate(Telemetry::HistogramID::AUDIO_MFT_OUTPUT_NULL_SAMPLES, 1); }); diff --git a/dom/media/platforms/wmf/WMFMediaDataDecoder.cpp b/dom/media/platforms/wmf/WMFMediaDataDecoder.cpp index e06ecee2f0c2..79a6dbf4bfa5 100644 --- a/dom/media/platforms/wmf/WMFMediaDataDecoder.cpp +++ b/dom/media/platforms/wmf/WMFMediaDataDecoder.cpp @@ -62,6 +62,7 @@ SendTelemetry(unsigned long hr) } nsCOMPtr runnable = NS_NewRunnableFunction( + "SendTelemetry", [sample] { Telemetry::Accumulate(Telemetry::MEDIA_WMF_DECODE_ERROR, sample); }); @@ -230,7 +231,8 @@ WMFMediaDataDecoder::SetSeekThreshold(const media::TimeUnit& aTime) RefPtr self = this; nsCOMPtr runnable = - NS_NewRunnableFunction([self, aTime]() { + NS_NewRunnableFunction("WMFMediaDataDecoder::SetSeekThreshold", + [self, aTime]() { media::TimeUnit threshold = aTime; self->mMFTManager->SetSeekThreshold(threshold); }); diff --git a/dom/media/platforms/wmf/WMFVideoMFTManager.cpp b/dom/media/platforms/wmf/WMFVideoMFTManager.cpp index 04b3f11d9014..9de254f16c42 100644 --- a/dom/media/platforms/wmf/WMFVideoMFTManager.cpp +++ b/dom/media/platforms/wmf/WMFVideoMFTManager.cpp @@ -151,7 +151,8 @@ WMFVideoMFTManager::~WMFVideoMFTManager() ? 2 : mGotValidOutputAfterNullOutput ? 3 : 4; - nsCOMPtr task = NS_NewRunnableFunction([=]() -> void { + nsCOMPtr task = NS_NewRunnableFunction("WMFVideoMFTManager::~WMFVideoMFTManager", + [=]() -> void { LOG(nsPrintfCString("Reporting telemetry VIDEO_MFT_OUTPUT_NULL_SAMPLES=%d", telemetry) .get()); @@ -388,7 +389,8 @@ class CreateDXVAManagerEvent : public Runnable public: CreateDXVAManagerEvent(layers::KnowsCompositor* aKnowsCompositor, nsCString& aFailureReason) - : mBackend(LayersBackend::LAYERS_D3D11) + : Runnable("CreateDXVAManagerEvent") + , mBackend(LayersBackend::LAYERS_D3D11) , mKnowsCompositor(aKnowsCompositor) , mFailureReason(aFailureReason) { @@ -691,7 +693,8 @@ public: SupportsConfigEvent(DXVA2Manager* aDXVA2Manager, IMFMediaType* aMediaType, float aFramerate) - : mDXVA2Manager(aDXVA2Manager) + : Runnable("SupportsConfigEvent") + , mDXVA2Manager(aDXVA2Manager) , mMediaType(aMediaType) , mFramerate(aFramerate) , mSupportsConfig(false) diff --git a/dom/media/platforms/wrappers/MediaDataDecoderProxy.cpp b/dom/media/platforms/wrappers/MediaDataDecoderProxy.cpp index 099b7957ca7e..374cacfa2b70 100644 --- a/dom/media/platforms/wrappers/MediaDataDecoderProxy.cpp +++ b/dom/media/platforms/wrappers/MediaDataDecoderProxy.cpp @@ -107,6 +107,7 @@ MediaDataDecoderProxy::SetSeekThreshold(const media::TimeUnit& aTime) RefPtr self = this; media::TimeUnit time = aTime; mProxyThread->Dispatch(NS_NewRunnableFunction( + "MediaDataDecoderProxy::SetSeekThreshold", [self, time] { self->mProxyDecoder->SetSeekThreshold(time); })); } diff --git a/dom/media/systemservices/CamerasChild.cpp b/dom/media/systemservices/CamerasChild.cpp index b955881291ff..f932d87df09c 100644 --- a/dom/media/systemservices/CamerasChild.cpp +++ b/dom/media/systemservices/CamerasChild.cpp @@ -46,7 +46,10 @@ class FakeOnDeviceChangeEventRunnable : public Runnable { public: explicit FakeOnDeviceChangeEventRunnable(uint8_t counter) - : mCounter(counter) {} + : Runnable("camera::FakeOnDeviceChangeEventRunnable") + , mCounter(counter) + { + } NS_IMETHOD Run() override { @@ -74,7 +77,10 @@ class InitializeIPCThread : public Runnable { public: InitializeIPCThread() - : mCamerasChild(nullptr) {} + : Runnable("camera::InitializeIPCThread") + , mCamerasChild(nullptr) + { + } NS_IMETHOD Run() override { // Try to get the PBackground handle @@ -285,8 +291,12 @@ CamerasChild::NumberOfCapabilities(CaptureEngine aCapEngine, LOG(("NumberOfCapabilities for %s", deviceUniqueIdUTF8)); nsCString unique_id(deviceUniqueIdUTF8); nsCOMPtr runnable = - mozilla::NewNonOwningRunnableMethod - (this, &CamerasChild::SendNumberOfCapabilities, aCapEngine, unique_id); + mozilla::NewNonOwningRunnableMethod( + "camera::PCamerasChild::SendNumberOfCapabilities", + this, + &CamerasChild::SendNumberOfCapabilities, + aCapEngine, + unique_id); LockAndDispatch<> dispatcher(this, __func__, runnable, 0, mReplyInteger); LOG(("Capture capability count: %d", dispatcher.ReturnValue())); return dispatcher.ReturnValue(); @@ -297,8 +307,11 @@ CamerasChild::NumberOfCaptureDevices(CaptureEngine aCapEngine) { LOG((__PRETTY_FUNCTION__)); nsCOMPtr runnable = - mozilla::NewNonOwningRunnableMethod - (this, &CamerasChild::SendNumberOfCaptureDevices, aCapEngine); + mozilla::NewNonOwningRunnableMethod( + "camera::PCamerasChild::SendNumberOfCaptureDevices", + this, + &CamerasChild::SendNumberOfCaptureDevices, + aCapEngine); LockAndDispatch<> dispatcher(this, __func__, runnable, 0, mReplyInteger); LOG(("Capture Devices: %d", dispatcher.ReturnValue())); return dispatcher.ReturnValue(); @@ -321,8 +334,11 @@ CamerasChild::EnsureInitialized(CaptureEngine aCapEngine) { LOG((__PRETTY_FUNCTION__)); nsCOMPtr runnable = - mozilla::NewNonOwningRunnableMethod - (this, &CamerasChild::SendEnsureInitialized, aCapEngine); + mozilla::NewNonOwningRunnableMethod( + "camera::PCamerasChild::SendEnsureInitialized", + this, + &CamerasChild::SendEnsureInitialized, + aCapEngine); LockAndDispatch<> dispatcher(this, __func__, runnable, 0, mReplyInteger); LOG(("Capture Devices: %d", dispatcher.ReturnValue())); return dispatcher.ReturnValue(); @@ -337,8 +353,13 @@ CamerasChild::GetCaptureCapability(CaptureEngine aCapEngine, LOG(("GetCaptureCapability: %s %d", unique_idUTF8, capability_number)); nsCString unique_id(unique_idUTF8); nsCOMPtr runnable = - mozilla::NewNonOwningRunnableMethod - (this, &CamerasChild::SendGetCaptureCapability, aCapEngine, unique_id, capability_number); + mozilla::NewNonOwningRunnableMethod( + "camera::PCamerasChild::SendGetCaptureCapability", + this, + &CamerasChild::SendGetCaptureCapability, + aCapEngine, + unique_id, + capability_number); LockAndDispatch<> dispatcher(this, __func__, runnable); if (dispatcher.Success()) { capability = mReplyCapability; @@ -374,8 +395,12 @@ CamerasChild::GetCaptureDevice(CaptureEngine aCapEngine, { LOG((__PRETTY_FUNCTION__)); nsCOMPtr runnable = - mozilla::NewNonOwningRunnableMethod - (this, &CamerasChild::SendGetCaptureDevice, aCapEngine, list_number); + mozilla::NewNonOwningRunnableMethod( + "camera::PCamerasChild::SendGetCaptureDevice", + this, + &CamerasChild::SendGetCaptureDevice, + aCapEngine, + list_number); LockAndDispatch<> dispatcher(this, __func__, runnable); if (dispatcher.Success()) { base::strlcpy(device_nameUTF8, mReplyDeviceName.get(), device_nameUTF8Length); @@ -414,8 +439,15 @@ CamerasChild::AllocateCaptureDevice(CaptureEngine aCapEngine, LOG((__PRETTY_FUNCTION__)); nsCString unique_id(unique_idUTF8); nsCOMPtr runnable = - mozilla::NewNonOwningRunnableMethod - (this, &CamerasChild::SendAllocateCaptureDevice, aCapEngine, unique_id, aPrincipalInfo); + mozilla::NewNonOwningRunnableMethod( + "camera::PCamerasChild::SendAllocateCaptureDevice", + this, + &CamerasChild::SendAllocateCaptureDevice, + aCapEngine, + unique_id, + aPrincipalInfo); LockAndDispatch<> dispatcher(this, __func__, runnable); if (dispatcher.Success()) { LOG(("Capture Device allocated: %d", mReplyInteger)); @@ -443,8 +475,12 @@ CamerasChild::ReleaseCaptureDevice(CaptureEngine aCapEngine, { LOG((__PRETTY_FUNCTION__)); nsCOMPtr runnable = - mozilla::NewNonOwningRunnableMethod - (this, &CamerasChild::SendReleaseCaptureDevice, aCapEngine, capture_id); + mozilla::NewNonOwningRunnableMethod( + "camera::PCamerasChild::SendReleaseCaptureDevice", + this, + &CamerasChild::SendReleaseCaptureDevice, + aCapEngine, + capture_id); LockAndDispatch<> dispatcher(this, __func__, runnable); return dispatcher.ReturnValue(); } @@ -489,9 +525,14 @@ CamerasChild::StartCapture(CaptureEngine aCapEngine, webrtcCaps.rawType, webrtcCaps.codecType, webrtcCaps.interlaced); - nsCOMPtr runnable = - mozilla::NewNonOwningRunnableMethod - (this, &CamerasChild::SendStartCapture, aCapEngine, capture_id, capCap); + nsCOMPtr runnable = mozilla:: + NewNonOwningRunnableMethod( + "camera::PCamerasChild::SendStartCapture", + this, + &CamerasChild::SendStartCapture, + aCapEngine, + capture_id, + capCap); LockAndDispatch<> dispatcher(this, __func__, runnable); return dispatcher.ReturnValue(); } @@ -501,8 +542,12 @@ CamerasChild::StopCapture(CaptureEngine aCapEngine, const int capture_id) { LOG((__PRETTY_FUNCTION__)); nsCOMPtr runnable = - mozilla::NewNonOwningRunnableMethod - (this, &CamerasChild::SendStopCapture, aCapEngine, capture_id); + mozilla::NewNonOwningRunnableMethod( + "camera::PCamerasChild::SendStopCapture", + this, + &CamerasChild::SendStopCapture, + aCapEngine, + capture_id); LockAndDispatch<> dispatcher(this, __func__, runnable); if (dispatcher.Success()) { RemoveCallback(aCapEngine, capture_id); @@ -526,9 +571,9 @@ Shutdown(void) class ShutdownRunnable : public Runnable { public: - explicit - ShutdownRunnable(already_AddRefed&& aReplyEvent) - : mReplyEvent(aReplyEvent) {}; + explicit ShutdownRunnable(already_AddRefed&& aReplyEvent) + : Runnable("camera::ShutdownRunnable") + , mReplyEvent(aReplyEvent){}; NS_IMETHOD Run() override { LOG(("Closing BackgroundChild")); @@ -565,8 +610,8 @@ CamerasChild::ShutdownParent() // Delete the parent actor. // CamerasChild (this) will remain alive and is only deleted by the // IPC layer when SendAllDone returns. - nsCOMPtr deleteRunnable = - mozilla::NewNonOwningRunnableMethod(this, &CamerasChild::SendAllDone); + nsCOMPtr deleteRunnable = mozilla::NewNonOwningRunnableMethod( + "camera::PCamerasChild::SendAllDone", this, &CamerasChild::SendAllDone); CamerasSingleton::Thread()->Dispatch(deleteRunnable, NS_DISPATCH_NORMAL); } else { LOG(("ShutdownParent called without PBackground thread")); @@ -581,9 +626,8 @@ CamerasChild::ShutdownChild() LOG(("PBackground thread exists, dispatching close")); // Dispatch closing the IPC thread back to us when the // BackgroundChild is closed. - RefPtr runnable = - new ShutdownRunnable(NewRunnableMethod(CamerasSingleton::Thread(), - &nsIThread::Shutdown)); + RefPtr runnable = new ShutdownRunnable(NewRunnableMethod( + "nsIThread::Shutdown", CamerasSingleton::Thread(), &nsIThread::Shutdown)); CamerasSingleton::Thread()->Dispatch(runnable.forget(), NS_DISPATCH_NORMAL); } else { LOG(("Shutdown called without PBackground thread")); @@ -593,9 +637,10 @@ CamerasChild::ShutdownChild() CamerasSingleton::Thread() = nullptr; if (CamerasSingleton::FakeDeviceChangeEventThread()) { - RefPtr runnable = - new ShutdownRunnable(NewRunnableMethod(CamerasSingleton::FakeDeviceChangeEventThread(), - &nsIThread::Shutdown)); + RefPtr runnable = new ShutdownRunnable( + NewRunnableMethod("nsIThread::Shutdown", + CamerasSingleton::FakeDeviceChangeEventThread(), + &nsIThread::Shutdown)); CamerasSingleton::FakeDeviceChangeEventThread()->Dispatch(runnable.forget(), NS_DISPATCH_NORMAL); } CamerasSingleton::FakeDeviceChangeEventThread() = nullptr; diff --git a/dom/media/systemservices/CamerasParent.cpp b/dom/media/systemservices/CamerasParent.cpp index 5be8ff338669..54f45e931c33 100644 --- a/dom/media/systemservices/CamerasParent.cpp +++ b/dom/media/systemservices/CamerasParent.cpp @@ -70,11 +70,16 @@ void InputObserver::OnDeviceChange() { class DeliverFrameRunnable : public ::mozilla::Runnable { public: - DeliverFrameRunnable(CamerasParent *aParent, CaptureEngine aEngine, - uint32_t aStreamId, const webrtc::VideoFrame& aFrame, - const VideoFrameProperties& aProperties) - : mParent(aParent), mCapEngine(aEngine), mStreamId(aStreamId), - mProperties(aProperties) + DeliverFrameRunnable(CamerasParent* aParent, + CaptureEngine aEngine, + uint32_t aStreamId, + const webrtc::VideoFrame& aFrame, + const VideoFrameProperties& aProperties) + : Runnable("camera::DeliverFrameRunnable") + , mParent(aParent) + , mCapEngine(aEngine) + , mStreamId(aStreamId) + , mProperties(aProperties) { // No ShmemBuffer (of the right size) was available, so make an // extra buffer here. We have no idea when we are going to run and @@ -87,11 +92,17 @@ public: aProperties.bufferSize(), aFrame); } - DeliverFrameRunnable(CamerasParent* aParent, CaptureEngine aEngine, - uint32_t aStreamId, ShmemBuffer aBuffer, VideoFrameProperties& aProperties) - : mParent(aParent), mCapEngine(aEngine), mStreamId(aStreamId), - mBuffer(Move(aBuffer)), mProperties(aProperties) - {}; + DeliverFrameRunnable(CamerasParent* aParent, + CaptureEngine aEngine, + uint32_t aStreamId, + ShmemBuffer aBuffer, + VideoFrameProperties& aProperties) + : Runnable("camera::DeliverFrameRunnable") + , mParent(aParent) + , mCapEngine(aEngine) + , mStreamId(aStreamId) + , mBuffer(Move(aBuffer)) + , mProperties(aProperties){}; NS_IMETHOD Run() override { if (mParent->IsShuttingDown()) { diff --git a/dom/media/systemservices/MediaSystemResourceManager.cpp b/dom/media/systemservices/MediaSystemResourceManager.cpp index 29db0ef3eaed..e4e2ca2cb95d 100644 --- a/dom/media/systemservices/MediaSystemResourceManager.cpp +++ b/dom/media/systemservices/MediaSystemResourceManager.cpp @@ -65,7 +65,7 @@ MediaSystemResourceManager::Init() bool done = false; RefPtr runnable = - NS_NewRunnableFunction([&]() { + NS_NewRunnableFunction("MediaSystemResourceManager::Init", [&]() { if (!sSingleton) { sSingleton = new MediaSystemResourceManager(); } @@ -199,10 +199,10 @@ MediaSystemResourceManager::Acquire(MediaSystemResourceClient* aClient) } aClient->mResourceState = MediaSystemResourceClient::RESOURCE_STATE_WAITING; ImageBridgeChild::GetSingleton()->GetMessageLoop()->PostTask( - NewRunnableMethod( - this, - &MediaSystemResourceManager::DoAcquire, - aClient->mId)); + NewRunnableMethod("MediaSystemResourceManager::DoAcquire", + this, + &MediaSystemResourceManager::DoAcquire, + aClient->mId)); } bool @@ -242,10 +242,10 @@ MediaSystemResourceManager::AcquireSyncNoWait(MediaSystemResourceClient* aClient } ImageBridgeChild::GetSingleton()->GetMessageLoop()->PostTask( - NewRunnableMethod( - this, - &MediaSystemResourceManager::DoAcquire, - aClient->mId)); + NewRunnableMethod("MediaSystemResourceManager::DoAcquire", + this, + &MediaSystemResourceManager::DoAcquire, + aClient->mId)); // should stop the thread until done. while (!done) { @@ -309,10 +309,10 @@ MediaSystemResourceManager::ReleaseResource(MediaSystemResourceClient* aClient) aClient->mResourceState = MediaSystemResourceClient::RESOURCE_STATE_END; ImageBridgeChild::GetSingleton()->GetMessageLoop()->PostTask( - NewRunnableMethod( - this, - &MediaSystemResourceManager::DoRelease, - aClient->mId)); + NewRunnableMethod("MediaSystemResourceManager::DoRelease", + this, + &MediaSystemResourceManager::DoRelease, + aClient->mId)); } } @@ -338,6 +338,7 @@ MediaSystemResourceManager::HandleAcquireResult(uint32_t aId, bool aSuccess) if (!InImageBridgeChildThread()) { ImageBridgeChild::GetSingleton()->GetMessageLoop()->PostTask( NewRunnableMethod( + "MediaSystemResourceManager::HandleAcquireResult", this, &MediaSystemResourceManager::HandleAcquireResult, aId, diff --git a/dom/media/systemservices/MediaTaskUtils.h b/dom/media/systemservices/MediaTaskUtils.h index c9b64fd2a4d5..a6c43c57e007 100644 --- a/dom/media/systemservices/MediaTaskUtils.h +++ b/dom/media/systemservices/MediaTaskUtils.h @@ -24,7 +24,12 @@ template class LambdaTask : public Runnable { public: - explicit LambdaTask(OnRunType&& aOnRun) : mOnRun(Move(aOnRun)) {} + explicit LambdaTask(OnRunType&& aOnRun) + : Runnable("media::LambdaTask") + , mOnRun(Move(aOnRun)) + { + } + private: NS_IMETHOD Run() override diff --git a/dom/media/systemservices/MediaUtils.h b/dom/media/systemservices/MediaUtils.h index c208147aaafc..61cbbd7a5089 100644 --- a/dom/media/systemservices/MediaUtils.h +++ b/dom/media/systemservices/MediaUtils.h @@ -186,7 +186,12 @@ template class LambdaRunnable : public Runnable { public: - explicit LambdaRunnable(OnRunType&& aOnRun) : mOnRun(Move(aOnRun)) {} + explicit LambdaRunnable(OnRunType&& aOnRun) + : Runnable("media::LambdaRunnable") + , mOnRun(Move(aOnRun)) + { + } + private: NS_IMETHODIMP Run() override diff --git a/dom/media/webaudio/AnalyserNode.cpp b/dom/media/webaudio/AnalyserNode.cpp index ba9d10b4cc69..0bfd4138198f 100644 --- a/dom/media/webaudio/AnalyserNode.cpp +++ b/dom/media/webaudio/AnalyserNode.cpp @@ -29,9 +29,9 @@ class AnalyserNodeEngine final : public AudioNodeEngine class TransferBuffer final : public Runnable { public: - TransferBuffer(AudioNodeStream* aStream, - const AudioChunk& aChunk) - : mStream(aStream) + TransferBuffer(AudioNodeStream* aStream, const AudioChunk& aChunk) + : Runnable("dom::AnalyserNodeEngine::TransferBuffer") + , mStream(aStream) , mChunk(aChunk) { } diff --git a/dom/media/webaudio/AudioBufferSourceNode.cpp b/dom/media/webaudio/AudioBufferSourceNode.cpp index 5bde3cf099e3..6c61af54ef2a 100644 --- a/dom/media/webaudio/AudioBufferSourceNode.cpp +++ b/dom/media/webaudio/AudioBufferSourceNode.cpp @@ -809,7 +809,10 @@ AudioBufferSourceNode::NotifyMainThreadStreamFinished() { public: explicit EndedEventDispatcher(AudioBufferSourceNode* aNode) - : mNode(aNode) {} + : mozilla::Runnable("EndedEventDispatcher") + , mNode(aNode) + { + } NS_IMETHOD Run() override { // If it's not safe to run scripts right now, schedule this to run later diff --git a/dom/media/webaudio/AudioDestinationNode.cpp b/dom/media/webaudio/AudioDestinationNode.cpp index abe357e3264e..ed55031b238a 100644 --- a/dom/media/webaudio/AudioDestinationNode.cpp +++ b/dom/media/webaudio/AudioDestinationNode.cpp @@ -125,7 +125,8 @@ public: { public: OnCompleteTask(AudioContext* aAudioContext, AudioBuffer* aRenderedBuffer) - : mAudioContext(aAudioContext) + : Runnable("dom::OfflineDestinationNodeEngine::OnCompleteTask") + , mAudioContext(aAudioContext) , mRenderedBuffer(aRenderedBuffer) {} @@ -204,9 +205,9 @@ private: class InputMutedRunnable final : public Runnable { public: - InputMutedRunnable(AudioNodeStream* aStream, - bool aInputMuted) - : mStream(aStream) + InputMutedRunnable(AudioNodeStream* aStream, bool aInputMuted) + : Runnable("dom::InputMutedRunnable") + , mStream(aStream) , mInputMuted(aInputMuted) { } @@ -412,8 +413,10 @@ AudioDestinationNode::NotifyMainThreadStreamFinished() MOZ_ASSERT(mStream->IsFinished()); if (mIsOffline) { - NS_DispatchToCurrentThread(NewRunnableMethod(this, - &AudioDestinationNode::FireOfflineCompletionEvent)); + NS_DispatchToCurrentThread( + NewRunnableMethod("dom::AudioDestinationNode::FireOfflineCompletionEvent", + this, + &AudioDestinationNode::FireOfflineCompletionEvent)); } } diff --git a/dom/media/webaudio/AudioNode.cpp b/dom/media/webaudio/AudioNode.cpp index 068a447ae879..33ad902ee1a3 100644 --- a/dom/media/webaudio/AudioNode.cpp +++ b/dom/media/webaudio/AudioNode.cpp @@ -340,7 +340,10 @@ AudioNode::DisconnectFromOutputIfConnected(uint32_t aOutputNodeIndex, { public: explicit RunnableRelease(already_AddRefed aNode) - : mNode(aNode) {} + : mozilla::Runnable("RunnableRelease") + , mNode(aNode) + { + } NS_IMETHOD Run() override { diff --git a/dom/media/webaudio/ConstantSourceNode.cpp b/dom/media/webaudio/ConstantSourceNode.cpp index b3af764b4ab6..1615233510dc 100644 --- a/dom/media/webaudio/ConstantSourceNode.cpp +++ b/dom/media/webaudio/ConstantSourceNode.cpp @@ -257,7 +257,10 @@ ConstantSourceNode::NotifyMainThreadStreamFinished() { public: explicit EndedEventDispatcher(ConstantSourceNode* aNode) - : mNode(aNode) {} + : mozilla::Runnable("EndedEventDispatcher") + , mNode(aNode) + { + } NS_IMETHOD Run() override { // If it's not safe to run scripts right now, schedule this to run later diff --git a/dom/media/webaudio/DynamicsCompressorNode.cpp b/dom/media/webaudio/DynamicsCompressorNode.cpp index 46e14c79a334..974405ec05f7 100644 --- a/dom/media/webaudio/DynamicsCompressorNode.cpp +++ b/dom/media/webaudio/DynamicsCompressorNode.cpp @@ -148,7 +148,8 @@ private: { public: Command(AudioNodeStream* aStream, float aReduction) - : mStream(aStream) + : mozilla::Runnable("Command") + , mStream(aStream) , mReduction(aReduction) { } diff --git a/dom/media/webaudio/MediaBufferDecoder.cpp b/dom/media/webaudio/MediaBufferDecoder.cpp index c8791dfe470f..4ef2f9328d93 100644 --- a/dom/media/webaudio/MediaBufferDecoder.cpp +++ b/dom/media/webaudio/MediaBufferDecoder.cpp @@ -42,7 +42,8 @@ public: ReportResultTask(WebAudioDecodeJob& aDecodeJob, WebAudioDecodeJob::ResultFn aFunction, WebAudioDecodeJob::ErrorCode aErrorCode) - : mDecodeJob(aDecodeJob) + : Runnable("ReportResultTask") + , mDecodeJob(aDecodeJob) , mFunction(aFunction) , mErrorCode(aErrorCode) { @@ -78,10 +79,12 @@ enum class PhaseEnum : int class MediaDecodeTask final : public Runnable { public: - MediaDecodeTask(const MediaContainerType& aContainerType, uint8_t* aBuffer, + MediaDecodeTask(const MediaContainerType& aContainerType, + uint8_t* aBuffer, uint32_t aLength, WebAudioDecodeJob& aDecodeJob) - : mContainerType(aContainerType) + : Runnable("MediaDecodeTask") + , mContainerType(aContainerType) , mBuffer(aBuffer) , mLength(aLength) , mDecodeJob(aDecodeJob) @@ -103,8 +106,8 @@ private: mDecodeJob.OnFailure(aErrorCode); } else { // Take extra care to cleanup on the main thread - mMainThread->Dispatch(NewRunnableMethod(this, &MediaDecodeTask::Cleanup)); - + mMainThread->Dispatch(NewRunnableMethod( + "MediaDecodeTask::Cleanup", this, &MediaDecodeTask::Cleanup)); nsCOMPtr event = new ReportResultTask(mDecodeJob, &WebAudioDecodeJob::OnFailure, aErrorCode); @@ -266,13 +269,14 @@ MediaDecodeTask::OnMetadataRead(MetadataHolder&& aMetadata) mContainerType.Type().AsString().Data()); } - nsCOMPtr task = NS_NewRunnableFunction([codec]() -> void { - MOZ_ASSERT(!codec.IsEmpty()); - MOZ_LOG(gMediaDecoderLog, - LogLevel::Debug, - ("Telemetry (WebAudio) MEDIA_CODEC_USED= '%s'", codec.get())); - Telemetry::Accumulate(Telemetry::HistogramID::MEDIA_CODEC_USED, codec); - }); + nsCOMPtr task = NS_NewRunnableFunction( + "MediaDecodeTask::OnMetadataRead", [codec]() -> void { + MOZ_ASSERT(!codec.IsEmpty()); + MOZ_LOG(gMediaDecoderLog, + LogLevel::Debug, + ("Telemetry (WebAudio) MEDIA_CODEC_USED= '%s'", codec.get())); + Telemetry::Accumulate(Telemetry::HistogramID::MEDIA_CODEC_USED, codec); + }); SystemGroup::Dispatch("MediaDecodeTask::OnMetadataRead()::report_telemetry", TaskCategory::Other, task.forget()); diff --git a/dom/media/webaudio/OscillatorNode.cpp b/dom/media/webaudio/OscillatorNode.cpp index 7bc61fe62a2e..66485092d756 100644 --- a/dom/media/webaudio/OscillatorNode.cpp +++ b/dom/media/webaudio/OscillatorNode.cpp @@ -580,7 +580,10 @@ OscillatorNode::NotifyMainThreadStreamFinished() { public: explicit EndedEventDispatcher(OscillatorNode* aNode) - : mNode(aNode) {} + : mozilla::Runnable("EndedEventDispatcher") + , mNode(aNode) + { + } NS_IMETHOD Run() override { // If it's not safe to run scripts right now, schedule this to run later diff --git a/dom/media/webaudio/PlayingRefChangeHandler.h b/dom/media/webaudio/PlayingRefChangeHandler.h index 6436d1dbc304..6a832c243a81 100644 --- a/dom/media/webaudio/PlayingRefChangeHandler.h +++ b/dom/media/webaudio/PlayingRefChangeHandler.h @@ -18,7 +18,8 @@ class PlayingRefChangeHandler final : public Runnable public: enum ChangeType { ADDREF, RELEASE }; PlayingRefChangeHandler(AudioNodeStream* aStream, ChangeType aChange) - : mStream(aStream) + : Runnable("dom::PlayingRefChangeHandler") + , mStream(aStream) , mChange(aChange) { } diff --git a/dom/media/webaudio/ScriptProcessorNode.cpp b/dom/media/webaudio/ScriptProcessorNode.cpp index 41a3c99930ae..a3a8370d5e42 100644 --- a/dom/media/webaudio/ScriptProcessorNode.cpp +++ b/dom/media/webaudio/ScriptProcessorNode.cpp @@ -375,7 +375,8 @@ private: Command(AudioNodeStream* aStream, already_AddRefed aInputBuffer, double aPlaybackTime) - : mStream(aStream) + : mozilla::Runnable("Command") + , mStream(aStream) , mInputBuffer(aInputBuffer) , mPlaybackTime(aPlaybackTime) { diff --git a/dom/media/webaudio/WebAudioUtils.cpp b/dom/media/webaudio/WebAudioUtils.cpp index 6289f803b3c2..9bf3465b642b 100644 --- a/dom/media/webaudio/WebAudioUtils.cpp +++ b/dom/media/webaudio/WebAudioUtils.cpp @@ -101,8 +101,9 @@ WebAudioUtils::LogToDeveloperConsole(uint64_t aWindowID, const char* aKey) // It is similar to ContentUtils::ReportToConsole, but also works off main // thread. if (!NS_IsMainThread()) { - nsCOMPtr task = - NS_NewRunnableFunction([aWindowID, aKey]() { LogToDeveloperConsole(aWindowID, aKey); }); + nsCOMPtr task = NS_NewRunnableFunction( + "dom::WebAudioUtils::LogToDeveloperConsole", + [aWindowID, aKey]() { LogToDeveloperConsole(aWindowID, aKey); }); NS_DispatchToMainThread(task.forget(), NS_DISPATCH_NORMAL); return; } diff --git a/dom/media/webaudio/blink/HRTFDatabaseLoader.cpp b/dom/media/webaudio/blink/HRTFDatabaseLoader.cpp index b4aee7b484b4..9ad7e9b65e81 100644 --- a/dom/media/webaudio/blink/HRTFDatabaseLoader.cpp +++ b/dom/media/webaudio/blink/HRTFDatabaseLoader.cpp @@ -111,11 +111,15 @@ size_t HRTFDatabaseLoader::sizeOfIncludingThis(mozilla::MallocSizeOf aMallocSize class HRTFDatabaseLoader::ProxyReleaseEvent final : public Runnable { public: - explicit ProxyReleaseEvent(HRTFDatabaseLoader* loader) : mLoader(loader) {} - NS_IMETHOD Run() override - { - mLoader->MainThreadRelease(); - return NS_OK; + explicit ProxyReleaseEvent(HRTFDatabaseLoader* loader) + : mozilla::Runnable("WebCore::HRTFDatabaseLoader::ProxyReleaseEvent") + , mLoader(loader) + { + } + NS_IMETHOD Run() override + { + mLoader->MainThreadRelease(); + return NS_OK; } private: HRTFDatabaseLoader* mLoader; diff --git a/dom/media/webaudio/blink/ReverbConvolver.cpp b/dom/media/webaudio/blink/ReverbConvolver.cpp index e739400aee35..988209fa6c73 100644 --- a/dom/media/webaudio/blink/ReverbConvolver.cpp +++ b/dom/media/webaudio/blink/ReverbConvolver.cpp @@ -151,8 +151,10 @@ ReverbConvolver::ReverbConvolver(const float* impulseResponseData, NS_WARNING("Cannot start convolver thread."); return; } - m_backgroundThread.message_loop()->PostTask(NewNonOwningRunnableMethod(this, - &ReverbConvolver::backgroundThreadEntry)); + m_backgroundThread.message_loop()->PostTask(NewNonOwningRunnableMethod( + "WebCore::ReverbConvolver::backgroundThreadEntry", + this, + &ReverbConvolver::backgroundThreadEntry)); } } diff --git a/dom/media/webrtc/MediaEngineTabVideoSource.h b/dom/media/webrtc/MediaEngineTabVideoSource.h index afd65f48c825..16a4574259c0 100644 --- a/dom/media/webrtc/MediaEngineTabVideoSource.h +++ b/dom/media/webrtc/MediaEngineTabVideoSource.h @@ -62,28 +62,40 @@ class MediaEngineTabVideoSource : public MediaEngineVideoSource, nsIDOMEventList class StartRunnable : public Runnable { public: - explicit StartRunnable(MediaEngineTabVideoSource *videoSource) : mVideoSource(videoSource) {} + explicit StartRunnable(MediaEngineTabVideoSource *videoSource) + : Runnable("MediaEngineTabVideoSource::StartRunnable") + , mVideoSource(videoSource) + {} NS_IMETHOD Run(); RefPtr mVideoSource; }; class StopRunnable : public Runnable { public: - explicit StopRunnable(MediaEngineTabVideoSource *videoSource) : mVideoSource(videoSource) {} + explicit StopRunnable(MediaEngineTabVideoSource *videoSource) + : Runnable("MediaEngineTabVideoSource::StopRunnable") + , mVideoSource(videoSource) + {} NS_IMETHOD Run(); RefPtr mVideoSource; }; class InitRunnable : public Runnable { public: - explicit InitRunnable(MediaEngineTabVideoSource *videoSource) : mVideoSource(videoSource) {} + explicit InitRunnable(MediaEngineTabVideoSource *videoSource) + : Runnable("MediaEngineTabVideoSource::InitRunnable") + , mVideoSource(videoSource) + {} NS_IMETHOD Run(); RefPtr mVideoSource; }; class DestroyRunnable : public Runnable { public: - explicit DestroyRunnable(MediaEngineTabVideoSource* videoSource) : mVideoSource(videoSource) {} + explicit DestroyRunnable(MediaEngineTabVideoSource* videoSource) + : Runnable("MediaEngineTabVideoSource::DestroyRunnable") + , mVideoSource(videoSource) + {} NS_IMETHOD Run(); RefPtr mVideoSource; }; diff --git a/dom/media/webspeech/recognition/SpeechRecognition.h b/dom/media/webspeech/recognition/SpeechRecognition.h index 08866041a8ac..806d4a8d6f7d 100644 --- a/dom/media/webspeech/recognition/SpeechRecognition.h +++ b/dom/media/webspeech/recognition/SpeechRecognition.h @@ -257,13 +257,15 @@ private: class SpeechEvent : public Runnable { public: - SpeechEvent(SpeechRecognition* aRecognition, SpeechRecognition::EventType aType) - : mAudioSegment(0) - , mRecognitionResultList(nullptr) - , mError(nullptr) - , mRecognition(aRecognition) - , mType(aType) - , mTrackRate(0) + SpeechEvent(SpeechRecognition* aRecognition, + SpeechRecognition::EventType aType) + : Runnable("dom::SpeechEvent") + , mAudioSegment(0) + , mRecognitionResultList(nullptr) + , mError(nullptr) + , mRecognition(aRecognition) + , mType(aType) + , mTrackRate(0) { } diff --git a/dom/media/webspeech/synth/cocoa/OSXSpeechSynthesizerService.mm b/dom/media/webspeech/synth/cocoa/OSXSpeechSynthesizerService.mm index 557c1e945211..78e16be1a2be 100644 --- a/dom/media/webspeech/synth/cocoa/OSXSpeechSynthesizerService.mm +++ b/dom/media/webspeech/synth/cocoa/OSXSpeechSynthesizerService.mm @@ -224,7 +224,8 @@ class RegisterVoicesRunnable final : public Runnable public: RegisterVoicesRunnable(OSXSpeechSynthesizerService* aSpeechService, nsTArray& aList) - : mSpeechService(aSpeechService) + : Runnable("RegisterVoicesRunnable") + , mSpeechService(aSpeechService) , mVoices(aList) { } @@ -269,7 +270,8 @@ class EnumVoicesRunnable final : public Runnable { public: explicit EnumVoicesRunnable(OSXSpeechSynthesizerService* aSpeechService) - : mSpeechService(aSpeechService) + : Runnable("EnumVoicesRunnable") + , mSpeechService(aSpeechService) { } diff --git a/dom/media/webspeech/synth/nsSpeechTask.cpp b/dom/media/webspeech/synth/nsSpeechTask.cpp index 8c02ff95192f..4c6204edea49 100644 --- a/dom/media/webspeech/synth/nsSpeechTask.cpp +++ b/dom/media/webspeech/synth/nsSpeechTask.cpp @@ -66,12 +66,16 @@ public: mStarted = true; aGraph->DispatchToMainThreadAfterStreamStateUpdate( mAbstractMainThread, - NewRunnableMethod(this, &SynthStreamListener::DoNotifyStarted)); + NewRunnableMethod("dom::SynthStreamListener::DoNotifyStarted", + this, + &SynthStreamListener::DoNotifyStarted)); } aGraph->DispatchToMainThreadAfterStreamStateUpdate( mAbstractMainThread, - NewRunnableMethod(this, &SynthStreamListener::DoNotifyFinished)); + NewRunnableMethod("dom::SynthStreamListener::DoNotifyFinished", + this, + &SynthStreamListener::DoNotifyFinished)); } break; case MediaStreamGraphEvent::EVENT_REMOVED: @@ -90,7 +94,9 @@ public: mStarted = true; aGraph->DispatchToMainThreadAfterStreamStateUpdate( mAbstractMainThread, - NewRunnableMethod(this, &SynthStreamListener::DoNotifyStarted)); + NewRunnableMethod("dom::SynthStreamListener::DoNotifyStarted", + this, + &SynthStreamListener::DoNotifyStarted)); } } diff --git a/dom/media/webspeech/synth/pico/nsPicoService.cpp b/dom/media/webspeech/synth/pico/nsPicoService.cpp index c3cf812fcc45..559a0232d7be 100644 --- a/dom/media/webspeech/synth/pico/nsPicoService.cpp +++ b/dom/media/webspeech/synth/pico/nsPicoService.cpp @@ -469,7 +469,7 @@ nsPicoService::Observe(nsISupports* aSubject, const char* aTopic, DebugOnly rv = NS_NewNamedThread("Pico Worker", getter_AddRefs(mThread)); MOZ_ASSERT(NS_SUCCEEDED(rv)); return mThread->Dispatch( - NewRunnableMethod(this, &nsPicoService::Init), NS_DISPATCH_NORMAL); + NewRunnableMethod("nsPicoService::Init", this, &nsPicoService::Init), NS_DISPATCH_NORMAL); } // nsISpeechService @@ -579,7 +579,8 @@ nsPicoService::Init() rv = dirIterator->HasMoreElements(&hasMoreElements); } - NS_DispatchToMainThread(NewRunnableMethod(this, &nsPicoService::RegisterVoices)); + NS_DispatchToMainThread(NewRunnableMethod("nsPicoService::RegisterVoices", + this, &nsPicoService::RegisterVoices)); } void diff --git a/dom/media/webspeech/synth/speechd/SpeechDispatcherService.cpp b/dom/media/webspeech/synth/speechd/SpeechDispatcherService.cpp index 77a8f7cd9394..ecfbd25c9caa 100644 --- a/dom/media/webspeech/synth/speechd/SpeechDispatcherService.cpp +++ b/dom/media/webspeech/synth/speechd/SpeechDispatcherService.cpp @@ -273,10 +273,12 @@ speechd_cb(size_t msg_id, size_t client_id, SPDNotificationType state) SpeechDispatcherService* service = SpeechDispatcherService::GetInstance(false); if (service) { - NS_DispatchToMainThread( - NewRunnableMethod( - service, &SpeechDispatcherService::EventNotify, - static_cast(msg_id), state)); + NS_DispatchToMainThread(NewRunnableMethod( + "dom::SpeechDispatcherService::EventNotify", + service, + &SpeechDispatcherService::EventNotify, + static_cast(msg_id), + state)); } } @@ -311,7 +313,10 @@ SpeechDispatcherService::Init() getter_AddRefs(mInitThread)); MOZ_ASSERT(NS_SUCCEEDED(rv)); rv = mInitThread->Dispatch( - NewRunnableMethod(this, &SpeechDispatcherService::Setup), NS_DISPATCH_NORMAL); + NewRunnableMethod("dom::SpeechDispatcherService::Setup", + this, + &SpeechDispatcherService::Setup), + NS_DISPATCH_NORMAL); MOZ_ASSERT(NS_SUCCEEDED(rv)); } @@ -419,7 +424,10 @@ SpeechDispatcherService::Setup() } } - NS_DispatchToMainThread(NewRunnableMethod(this, &SpeechDispatcherService::RegisterVoices)); + NS_DispatchToMainThread( + NewRunnableMethod("dom::SpeechDispatcherService::RegisterVoices", + this, + &SpeechDispatcherService::RegisterVoices)); //mInitialized = true; } @@ -526,10 +534,16 @@ SpeechDispatcherService::Speak(const nsAString& aText, const nsAString& aUri, // In that case, don't send empty string to speechd, // and just emulate a speechd start and end event. NS_DispatchToMainThread(NewRunnableMethod( - callback, &SpeechDispatcherCallback::OnSpeechEvent, SPD_EVENT_BEGIN)); + "dom::SpeechDispatcherCallback::OnSpeechEvent", + callback, + &SpeechDispatcherCallback::OnSpeechEvent, + SPD_EVENT_BEGIN)); NS_DispatchToMainThread(NewRunnableMethod( - callback, &SpeechDispatcherCallback::OnSpeechEvent, SPD_EVENT_END)); + "dom::SpeechDispatcherCallback::OnSpeechEvent", + callback, + &SpeechDispatcherCallback::OnSpeechEvent, + SPD_EVENT_END)); } return NS_OK; diff --git a/dom/media/webspeech/synth/test/nsFakeSynthServices.cpp b/dom/media/webspeech/synth/test/nsFakeSynthServices.cpp index 582ff35510af..ed3e1402e5f4 100644 --- a/dom/media/webspeech/synth/test/nsFakeSynthServices.cpp +++ b/dom/media/webspeech/synth/test/nsFakeSynthServices.cpp @@ -141,8 +141,10 @@ FakeDirectAudioSynth::Speak(const nsAString& aText, const nsAString& aUri, class Runnable final : public mozilla::Runnable { public: - Runnable(nsISpeechTask* aTask, const nsAString& aText) : - mTask(aTask), mText(aText) + Runnable(nsISpeechTask* aTask, const nsAString& aText) + : mozilla::Runnable("Runnable") + , mTask(aTask) + , mText(aText) { } @@ -204,8 +206,9 @@ FakeIndirectAudioSynth::Speak(const nsAString& aText, const nsAString& aUri, class DispatchStart final : public Runnable { public: - explicit DispatchStart(nsISpeechTask* aTask) : - mTask(aTask) + explicit DispatchStart(nsISpeechTask* aTask) + : mozilla::Runnable("DispatchStart") + , mTask(aTask) { } @@ -223,8 +226,10 @@ FakeIndirectAudioSynth::Speak(const nsAString& aText, const nsAString& aUri, class DispatchEnd final : public Runnable { public: - DispatchEnd(nsISpeechTask* aTask, const nsAString& aText) : - mTask(aTask), mText(aText) + DispatchEnd(nsISpeechTask* aTask, const nsAString& aText) + : mozilla::Runnable("DispatchEnd") + , mTask(aTask) + , mText(aText) { } @@ -243,8 +248,10 @@ FakeIndirectAudioSynth::Speak(const nsAString& aText, const nsAString& aUri, class DispatchError final : public Runnable { public: - DispatchError(nsISpeechTask* aTask, const nsAString& aText) : - mTask(aTask), mText(aText) + DispatchError(nsISpeechTask* aTask, const nsAString& aText) + : mozilla::Runnable("DispatchError") + , mTask(aTask) + , mText(aText) { } @@ -356,7 +363,8 @@ nsFakeSynthServices::Observe(nsISupports* aSubject, const char* aTopic, } if (Preferences::GetBool("media.webspeech.synth.test")) { - NS_DispatchToMainThread(NewRunnableMethod(this, &nsFakeSynthServices::Init)); + NS_DispatchToMainThread(NewRunnableMethod( + "dom::nsFakeSynthServices::Init", this, &nsFakeSynthServices::Init)); } return NS_OK; diff --git a/dom/messagechannel/MessagePort.cpp b/dom/messagechannel/MessagePort.cpp index 37d77b5f1b83..0aa457883437 100644 --- a/dom/messagechannel/MessagePort.cpp +++ b/dom/messagechannel/MessagePort.cpp @@ -53,7 +53,8 @@ class PostMessageRunnable final : public CancelableRunnable public: PostMessageRunnable(MessagePort* aPort, SharedMessagePortMessage* aData) - : mPort(aPort) + : CancelableRunnable("dom::PostMessageRunnable") + , mPort(aPort) , mData(aData) { MOZ_ASSERT(aPort); diff --git a/dom/network/UDPSocket.cpp b/dom/network/UDPSocket.cpp index e460428c7120..dbb8f25fe5e9 100644 --- a/dom/network/UDPSocket.cpp +++ b/dom/network/UDPSocket.cpp @@ -551,7 +551,9 @@ UDPSocket::Init(const nsString& aLocalAddress, class OpenSocketRunnable final : public Runnable { public: - explicit OpenSocketRunnable(UDPSocket* aSocket) : mSocket(aSocket) + explicit OpenSocketRunnable(UDPSocket* aSocket) + : mozilla::Runnable("OpenSocketRunnable") + , mSocket(aSocket) { } NS_IMETHOD Run() override diff --git a/dom/notification/DesktopNotification.cpp b/dom/notification/DesktopNotification.cpp index 76f1c5afb030..f3a59e36feb4 100644 --- a/dom/notification/DesktopNotification.cpp +++ b/dom/notification/DesktopNotification.cpp @@ -37,7 +37,8 @@ public: NS_DECL_NSICONTENTPERMISSIONREQUEST explicit DesktopNotificationRequest(DesktopNotification* aNotification) - : mDesktopNotification(aNotification) + : Runnable("dom::DesktopNotificationRequest") + , mDesktopNotification(aNotification) { mRequester = new nsContentPermissionRequester(mDesktopNotification->GetOwner()); } diff --git a/dom/performance/Performance.cpp b/dom/performance/Performance.cpp index 95bfe933af9a..a835b92b8e9d 100644 --- a/dom/performance/Performance.cpp +++ b/dom/performance/Performance.cpp @@ -516,7 +516,8 @@ class NotifyObserversTask final : public CancelableRunnable { public: explicit NotifyObserversTask(Performance* aPerformance) - : mPerformance(aPerformance) + : CancelableRunnable("dom::NotifyObserversTask") + , mPerformance(aPerformance) { MOZ_ASSERT(mPerformance); } diff --git a/dom/plugins/base/nsNPAPIPluginInstance.cpp b/dom/plugins/base/nsNPAPIPluginInstance.cpp index 00223651cb9d..1dc92619b926 100644 --- a/dom/plugins/base/nsNPAPIPluginInstance.cpp +++ b/dom/plugins/base/nsNPAPIPluginInstance.cpp @@ -887,7 +887,8 @@ java::GeckoSurface::LocalRef nsNPAPIPluginInstance::CreateSurface() return nullptr; } - nsCOMPtr frameCallback = NewRunnableMethod(this, &nsNPAPIPluginInstance::OnSurfaceTextureFrameAvailable); + nsCOMPtr frameCallback = NewRunnableMethod("nsNPAPIPluginInstance::OnSurfaceTextureFrameAvailable", + this, &nsNPAPIPluginInstance::OnSurfaceTextureFrameAvailable); java::SurfaceTextureListener::LocalRef listener = java::SurfaceTextureListener::New(); @@ -1447,7 +1448,11 @@ nsNPAPIPluginInstance::ScheduleTimer(uint32_t interval, NPBool repeat, void (*ti return 0; } const short timerType = (repeat ? (short)nsITimer::TYPE_REPEATING_SLACK : (short)nsITimer::TYPE_ONE_SHOT); - xpcomTimer->InitWithFuncCallback(PluginTimerCallback, newTimer, interval, timerType); + xpcomTimer->InitWithNamedFuncCallback(PluginTimerCallback, + newTimer, + interval, + timerType, + "nsNPAPIPluginInstance::ScheduleTimer"); newTimer->timer = xpcomTimer; // save callback function diff --git a/dom/plugins/ipc/ChildAsyncCall.cpp b/dom/plugins/ipc/ChildAsyncCall.cpp index 6adc05d55998..ded84607df71 100644 --- a/dom/plugins/ipc/ChildAsyncCall.cpp +++ b/dom/plugins/ipc/ChildAsyncCall.cpp @@ -12,8 +12,10 @@ namespace mozilla { namespace plugins { ChildAsyncCall::ChildAsyncCall(PluginInstanceChild* instance, - PluginThreadCallback aFunc, void* aUserData) - : mInstance(instance) + PluginThreadCallback aFunc, + void* aUserData) + : CancelableRunnable("plugins::ChildAsyncCall") + , mInstance(instance) , mFunc(aFunc) , mData(aUserData) { diff --git a/dom/plugins/ipc/PluginInstanceChild.cpp b/dom/plugins/ipc/PluginInstanceChild.cpp index 21b2c1dbf8dc..770fdd2f3e5c 100644 --- a/dom/plugins/ipc/PluginInstanceChild.cpp +++ b/dom/plugins/ipc/PluginInstanceChild.cpp @@ -3020,8 +3020,15 @@ PluginInstanceChild::RecvAsyncSetWindow(const gfxSurfaceType& aSurfaceType, // RPC call, and both Flash and Java don't expect to receive setwindow calls // at arbitrary times. mCurrentAsyncSetWindowTask = - NewNonOwningCancelableRunnableMethod - (this, &PluginInstanceChild::DoAsyncSetWindow, aSurfaceType, aWindow, true); + NewNonOwningCancelableRunnableMethod( + "plugins::PluginInstanceChild::DoAsyncSetWindow", + this, + &PluginInstanceChild::DoAsyncSetWindow, + aSurfaceType, + aWindow, + true); RefPtr addrefedTask = mCurrentAsyncSetWindowTask; MessageLoop::current()->PostTask(addrefedTask.forget()); @@ -3947,8 +3954,10 @@ PluginInstanceChild::AsyncShowPluginFrame(void) return; } - mCurrentInvalidateTask = - NewNonOwningCancelableRunnableMethod(this, &PluginInstanceChild::InvalidateRectDelayed); + mCurrentInvalidateTask = NewNonOwningCancelableRunnableMethod( + "plugins::PluginInstanceChild::InvalidateRectDelayed", + this, + &PluginInstanceChild::InvalidateRectDelayed); RefPtr addrefedTask = mCurrentInvalidateTask; MessageLoop::current()->PostTask(addrefedTask.forget()); } diff --git a/dom/plugins/ipc/PluginProcessParent.cpp b/dom/plugins/ipc/PluginProcessParent.cpp index 14d1f50b9dc1..4a24abc802f5 100644 --- a/dom/plugins/ipc/PluginProcessParent.cpp +++ b/dom/plugins/ipc/PluginProcessParent.cpp @@ -124,7 +124,10 @@ PluginProcessParent::Delete() return; } - ioLoop->PostTask(NewNonOwningRunnableMethod(this, &PluginProcessParent::Delete)); + ioLoop->PostTask( + NewNonOwningRunnableMethod("plugins::PluginProcessParent::Delete", + this, + &PluginProcessParent::Delete)); } void diff --git a/dom/plugins/ipc/PluginProcessParent.h b/dom/plugins/ipc/PluginProcessParent.h index 2644c60a32b7..89f1675627b4 100644 --- a/dom/plugins/ipc/PluginProcessParent.h +++ b/dom/plugins/ipc/PluginProcessParent.h @@ -27,9 +27,10 @@ namespace plugins { class LaunchCompleteTask : public Runnable { public: - LaunchCompleteTask() - : mLaunchSucceeded(false) - { + LaunchCompleteTask() + : Runnable("plugins::LaunchCompleteTask") + , mLaunchSucceeded(false) + { } void SetLaunchSucceeded() { mLaunchSucceeded = true; } diff --git a/dom/presentation/PresentationAvailability.cpp b/dom/presentation/PresentationAvailability.cpp index 93f27dfbfc5c..e6c1e094433c 100644 --- a/dom/presentation/PresentationAvailability.cpp +++ b/dom/presentation/PresentationAvailability.cpp @@ -172,10 +172,11 @@ PresentationAvailability::NotifyAvailableChange(const nsTArray& aAvail available |= mAvailabilityOfUrl[i]; } - return NS_DispatchToCurrentThread(NewRunnableMethod - (this, - &PresentationAvailability::UpdateAvailabilityAndDispatchEvent, - available)); + return NS_DispatchToCurrentThread(NewRunnableMethod( + "dom::PresentationAvailability::UpdateAvailabilityAndDispatchEvent", + this, + &PresentationAvailability::UpdateAvailabilityAndDispatchEvent, + available)); } void diff --git a/dom/presentation/PresentationCallbacks.cpp b/dom/presentation/PresentationCallbacks.cpp index fd0ffee31cae..16813f757614 100644 --- a/dom/presentation/PresentationCallbacks.cpp +++ b/dom/presentation/PresentationCallbacks.cpp @@ -137,11 +137,12 @@ PresentationReconnectCallback::NotifySuccess(const nsAString& aUrl) } nsString sessionId = nsString(mSessionId); - return NS_DispatchToMainThread( - NS_NewRunnableFunction([sessionId, service]() -> void { - service->BuildTransport(sessionId, - nsIPresentationService::ROLE_CONTROLLER); - })); + return NS_DispatchToMainThread(NS_NewRunnableFunction( + "dom::PresentationReconnectCallback::NotifySuccess", + [sessionId, service]() -> void { + service->BuildTransport(sessionId, + nsIPresentationService::ROLE_CONTROLLER); + })); } NS_IMETHODIMP diff --git a/dom/presentation/PresentationConnection.cpp b/dom/presentation/PresentationConnection.cpp index f36b506d1e97..b7b6504bffb2 100644 --- a/dom/presentation/PresentationConnection.cpp +++ b/dom/presentation/PresentationConnection.cpp @@ -641,7 +641,9 @@ NS_IMETHODIMP PresentationConnection::Cancel(nsresult aStatus) { nsCOMPtr event = - NewRunnableMethod(this, &PresentationConnection::ProcessConnectionWentAway); + NewRunnableMethod("dom::PresentationConnection::ProcessConnectionWentAway", + this, + &PresentationConnection::ProcessConnectionWentAway); return NS_DispatchToCurrentThread(event); } NS_IMETHODIMP @@ -736,8 +738,9 @@ PresentationConnection::AsyncCloseConnectionWithErrorMsg(const nsAString& aMessa nsString message = nsString(aMessage); RefPtr self = this; - nsCOMPtr r = - NS_NewRunnableFunction([self, message]() -> void { + nsCOMPtr r = NS_NewRunnableFunction( + "dom::PresentationConnection::AsyncCloseConnectionWithErrorMsg", + [self, message]() -> void { // Set |mState| to |PresentationConnectionState::Closed| here to avoid // calling |ProcessStateChanged|. self->mState = PresentationConnectionState::Closed; diff --git a/dom/presentation/PresentationDeviceManager.cpp b/dom/presentation/PresentationDeviceManager.cpp index 7e5a4700c898..a1a76276c7c8 100644 --- a/dom/presentation/PresentationDeviceManager.cpp +++ b/dom/presentation/PresentationDeviceManager.cpp @@ -157,7 +157,9 @@ PresentationDeviceManager::GetAvailableDevices(nsIArray* aPresentationUrls, nsIA // Bug 1194049: some providers may discontinue discovery after timeout. // Call |ForceDiscovery()| here to make sure device lists are updated. NS_DispatchToMainThread( - NewRunnableMethod(this, &PresentationDeviceManager::ForceDiscovery)); + NewRunnableMethod("dom::PresentationDeviceManager::ForceDiscovery", + this, + &PresentationDeviceManager::ForceDiscovery)); nsTArray presentationUrls; if (aPresentationUrls) { diff --git a/dom/presentation/PresentationReceiver.cpp b/dom/presentation/PresentationReceiver.cpp index 738b3758b801..0b9aaa40cc82 100644 --- a/dom/presentation/PresentationReceiver.cpp +++ b/dom/presentation/PresentationReceiver.cpp @@ -135,10 +135,9 @@ PresentationReceiver::GetConnectionList(ErrorResult& aRv) } RefPtr self = this; - nsresult rv = - NS_DispatchToMainThread(NS_NewRunnableFunction([self] () -> void { - self->CreateConnectionList(); - })); + nsresult rv = NS_DispatchToMainThread(NS_NewRunnableFunction( + "dom::PresentationReceiver::GetConnectionList", + [self]() -> void { self->CreateConnectionList(); })); if (NS_FAILED(rv)) { aRv.Throw(rv); return nullptr; diff --git a/dom/presentation/PresentationRequest.cpp b/dom/presentation/PresentationRequest.cpp index b5820221c0f9..2a7d7705b19a 100644 --- a/dom/presentation/PresentationRequest.cpp +++ b/dom/presentation/PresentationRequest.cpp @@ -281,12 +281,12 @@ PresentationRequest::Reconnect(const nsAString& aPresentationId, } nsString presentationId = nsString(aPresentationId); - nsCOMPtr r = - NewRunnableMethod>( - this, - &PresentationRequest::FindOrCreatePresentationConnection, - presentationId, - promise); + nsCOMPtr r = NewRunnableMethod>( + "dom::PresentationRequest::FindOrCreatePresentationConnection", + this, + &PresentationRequest::FindOrCreatePresentationConnection, + presentationId, + promise); if (NS_WARN_IF(NS_FAILED(NS_DispatchToMainThread(r)))) { promise->MaybeReject(NS_ERROR_DOM_OPERATION_ERR); diff --git a/dom/presentation/PresentationService.cpp b/dom/presentation/PresentationService.cpp index 34030cfdb813..6a3751ab768a 100644 --- a/dom/presentation/PresentationService.cpp +++ b/dom/presentation/PresentationService.cpp @@ -1119,13 +1119,14 @@ PresentationService::UntrackSessionInfo(const nsAString& aSessionId, uint64_t windowId; nsresult rv = GetWindowIdBySessionIdInternal(aSessionId, aRole, &windowId); if (NS_SUCCEEDED(rv)) { - NS_DispatchToMainThread(NS_NewRunnableFunction([windowId]() -> void { - PRES_DEBUG("Attempt to close window[%" PRIu64 "]\n", windowId); + NS_DispatchToMainThread(NS_NewRunnableFunction( + "dom::PresentationService::UntrackSessionInfo", [windowId]() -> void { + PRES_DEBUG("Attempt to close window[%" PRIu64 "]\n", windowId); - if (auto* window = nsGlobalWindow::GetInnerWindowWithId(windowId)) { - window->Close(); - } - })); + if (auto* window = nsGlobalWindow::GetInnerWindowWithId(windowId)) { + window->Close(); + } + })); } mSessionInfoAtReceiver.Remove(aSessionId); diff --git a/dom/presentation/PresentationSessionInfo.cpp b/dom/presentation/PresentationSessionInfo.cpp index 8208d073ce09..88dac827ac14 100644 --- a/dom/presentation/PresentationSessionInfo.cpp +++ b/dom/presentation/PresentationSessionInfo.cpp @@ -111,7 +111,8 @@ PresentationNetworkHelper::OnGetWifiIPAddress(const nsACString& aIPAddress) MOZ_ASSERT(mFunc); NS_DispatchToMainThread( - NewRunnableMethod(mInfo, + NewRunnableMethod("dom::PresentationNetworkHelper::OnGetWifiIPAddress", + mInfo, mFunc, aIPAddress)); return NS_OK; @@ -684,6 +685,7 @@ PresentationControllingInfo::GetAddress() // into main thread instead of calling it directly. NS_DispatchToMainThread( NewRunnableMethod( + "dom::PresentationControllingInfo::OnGetAddress", this, &PresentationControllingInfo::OnGetAddress, NS_ConvertUTF16toUTF8(ip))); @@ -1109,11 +1111,11 @@ PresentationControllingInfo::OnListedNetworkAddresses(const char** aAddressArray // On Firefox desktop, the IP address is retrieved from a callback function. // To make consistent code sequence, following function call is dispatched // into main thread instead of calling it directly. - NS_DispatchToMainThread( - NewRunnableMethod( - this, - &PresentationControllingInfo::OnGetAddress, - ip)); + NS_DispatchToMainThread(NewRunnableMethod( + "dom::PresentationControllingInfo::OnGetAddress", + this, + &PresentationControllingInfo::OnGetAddress, + ip)); return NS_OK; } @@ -1125,11 +1127,11 @@ PresentationControllingInfo::OnListNetworkAddressesFailed() // In 1-UA case, transport channel can still be established // on loopback interface even if no network address available. - NS_DispatchToMainThread( - NewRunnableMethod( - this, - &PresentationControllingInfo::OnGetAddress, - "127.0.0.1")); + NS_DispatchToMainThread(NewRunnableMethod( + "dom::PresentationControllingInfo::OnGetAddress", + this, + &PresentationControllingInfo::OnGetAddress, + "127.0.0.1")); return NS_OK; } diff --git a/dom/presentation/PresentationTCPSessionTransport.cpp b/dom/presentation/PresentationTCPSessionTransport.cpp index 3af39e6e4232..103d388cddeb 100644 --- a/dom/presentation/PresentationTCPSessionTransport.cpp +++ b/dom/presentation/PresentationTCPSessionTransport.cpp @@ -112,17 +112,19 @@ PresentationTCPSessionTransport::BuildTCPSenderTransport(nsISocketTransport* aTr nsCOMPtr sessionTransport = do_QueryObject(this); nsCOMPtr onSessionTransportRunnable = - NewRunnableMethod - (mListener, - &nsIPresentationSessionTransportBuilderListener::OnSessionTransport, - sessionTransport); + NewRunnableMethod( + "nsIPresentationSessionTransportBuilderListener::OnSessionTransport", + mListener, + &nsIPresentationSessionTransportBuilderListener::OnSessionTransport, + sessionTransport); NS_DispatchToCurrentThread(onSessionTransportRunnable.forget()); - nsCOMPtr setReadyStateRunnable = - NewRunnableMethod(this, - &PresentationTCPSessionTransport::SetReadyState, - ReadyState::OPEN); + nsCOMPtr setReadyStateRunnable = NewRunnableMethod( + "dom::PresentationTCPSessionTransport::SetReadyState", + this, + &PresentationTCPSessionTransport::SetReadyState, + ReadyState::OPEN); return NS_DispatchToCurrentThread(setReadyStateRunnable.forget()); } @@ -192,10 +194,11 @@ PresentationTCPSessionTransport::BuildTCPReceiverTransport(nsIPresentationChanne nsCOMPtr sessionTransport = do_QueryObject(this); nsCOMPtr runnable = - NewRunnableMethod - (mListener, - &nsIPresentationSessionTransportBuilderListener::OnSessionTransport, - sessionTransport); + NewRunnableMethod( + "nsIPresentationSessionTransportBuilderListener::OnSessionTransport", + mListener, + &nsIPresentationSessionTransportBuilderListener::OnSessionTransport, + sessionTransport); return NS_DispatchToCurrentThread(runnable.forget()); } diff --git a/dom/presentation/ipc/PresentationIPCService.cpp b/dom/presentation/ipc/PresentationIPCService.cpp index 5e2273c3c871..8f0460fe2780 100644 --- a/dom/presentation/ipc/PresentationIPCService.cpp +++ b/dom/presentation/ipc/PresentationIPCService.cpp @@ -485,13 +485,15 @@ PresentationIPCService::UntrackSessionInfo(const nsAString& aSessionId, if (NS_SUCCEEDED(GetWindowIdBySessionIdInternal(aSessionId, aRole, &windowId))) { - NS_DispatchToMainThread(NS_NewRunnableFunction([windowId]() -> void { - PRES_DEBUG("Attempt to close window[%" PRIu64 "]\n", windowId); + NS_DispatchToMainThread(NS_NewRunnableFunction( + "dom::PresentationIPCService::UntrackSessionInfo", + [windowId]() -> void { + PRES_DEBUG("Attempt to close window[%" PRIu64 "]\n", windowId); - if (auto* window = nsGlobalWindow::GetInnerWindowWithId(windowId)) { - window->Close(); - } - })); + if (auto* window = nsGlobalWindow::GetInnerWindowWithId(windowId)) { + window->Close(); + } + })); } } diff --git a/dom/presentation/provider/MulticastDNSDeviceProvider.cpp b/dom/presentation/provider/MulticastDNSDeviceProvider.cpp index ddd5939bb4dd..701599a980eb 100644 --- a/dom/presentation/provider/MulticastDNSDeviceProvider.cpp +++ b/dom/presentation/provider/MulticastDNSDeviceProvider.cpp @@ -834,8 +834,10 @@ MulticastDNSDeviceProvider::OnRegistrationFailed(nsIDNSServiceInfo* aServiceInfo mRegisterRequest = nullptr; if (aErrorCode == nsIDNSRegistrationListener::ERROR_SERVICE_NOT_RUNNING) { - return NS_DispatchToMainThread( - NewRunnableMethod(this, &MulticastDNSDeviceProvider::RegisterMDNSService)); + return NS_DispatchToMainThread(NewRunnableMethod( + "dom::presentation::MulticastDNSDeviceProvider::RegisterMDNSService", + this, + &MulticastDNSDeviceProvider::RegisterMDNSService)); } return NS_OK; diff --git a/dom/promise/PromiseDebugging.cpp b/dom/promise/PromiseDebugging.cpp index f3ec33e8bfe8..6ed901256280 100644 --- a/dom/promise/PromiseDebugging.cpp +++ b/dom/promise/PromiseDebugging.cpp @@ -24,6 +24,8 @@ namespace dom { class FlushRejections: public CancelableRunnable { public: + FlushRejections() : CancelableRunnable("dom::FlushRejections") {} + static void Init() { if (!sDispatched.init()) { MOZ_CRASH("Could not initialize FlushRejections::sDispatched"); diff --git a/dom/push/PushManager.cpp b/dom/push/PushManager.cpp index ef7823c0515c..d150a8daff50 100644 --- a/dom/push/PushManager.cpp +++ b/dom/push/PushManager.cpp @@ -272,7 +272,8 @@ public: const nsAString& aScope, PushManager::SubscriptionAction aAction, nsTArray&& aAppServerKey) - : mProxy(aProxy) + : Runnable("dom::GetSubscriptionRunnable") + , mProxy(aProxy) , mScope(aScope) , mAction(aAction) , mAppServerKey(Move(aAppServerKey)) @@ -400,7 +401,8 @@ class PermissionStateRunnable final : public Runnable { public: explicit PermissionStateRunnable(PromiseWorkerProxy* aProxy) - : mProxy(aProxy) + : Runnable("dom::PermissionStateRunnable") + , mProxy(aProxy) {} NS_IMETHOD diff --git a/dom/push/PushSubscription.cpp b/dom/push/PushSubscription.cpp index bfe8b5dd9730..660d1c580cf1 100644 --- a/dom/push/PushSubscription.cpp +++ b/dom/push/PushSubscription.cpp @@ -141,9 +141,9 @@ NS_IMPL_ISUPPORTS(WorkerUnsubscribeResultCallback, nsIUnsubscribeResultCallback) class UnsubscribeRunnable final : public Runnable { public: - UnsubscribeRunnable(PromiseWorkerProxy* aProxy, - const nsAString& aScope) - : mProxy(aProxy) + UnsubscribeRunnable(PromiseWorkerProxy* aProxy, const nsAString& aScope) + : Runnable("dom::UnsubscribeRunnable") + , mProxy(aProxy) , mScope(aScope) { MOZ_ASSERT(aProxy); diff --git a/dom/quota/ActorsParent.cpp b/dom/quota/ActorsParent.cpp index 32acf1f131d7..0beef549ca93 100644 --- a/dom/quota/ActorsParent.cpp +++ b/dom/quota/ActorsParent.cpp @@ -378,7 +378,8 @@ class QuotaObject::StoragePressureRunnable final public: explicit StoragePressureRunnable(uint64_t aUsage) - : mUsage(aUsage) + : Runnable("dom::quota::QuotaObject::StoragePressureRunnable") + , mUsage(aUsage) { } private: @@ -410,7 +411,8 @@ class QuotaManager::CreateRunnable final public: CreateRunnable() - : mResultCode(NS_OK) + : Runnable("dom::quota::QuotaManager::CreateRunnable") + , mResultCode(NS_OK) , mState(State::Initial) { AssertIsOnBackgroundThread(); @@ -455,7 +457,8 @@ class QuotaManager::ShutdownRunnable final public: explicit ShutdownRunnable(bool& aDone) - : mDone(aDone) + : Runnable("dom::quota::QuotaManager::ShutdownRunnable") + , mDone(aDone) { MOZ_ASSERT(NS_IsMainThread()); } @@ -789,8 +792,9 @@ public: protected: explicit OriginOperationBase( - nsIEventTarget* aOwningThread = GetCurrentThreadEventTarget()) + nsIEventTarget* aOwningThread = GetCurrentThreadEventTarget()) : BackgroundThreadObject(aOwningThread) + , Runnable("dom::quota::OriginOperationBase") , mResultCode(NS_OK) , mState(State_Initial) , mActorDestroyed(false) @@ -1560,9 +1564,9 @@ protected: const bool mPersistent; public: - StorageDirectoryHelper(nsIFile* aDirectory, - bool aPersistent) - : mMutex("StorageDirectoryHelper::mMutex") + StorageDirectoryHelper(nsIFile* aDirectory, bool aPersistent) + : Runnable("dom::quota::StorageDirectoryHelper") + , mMutex("StorageDirectoryHelper::mMutex") , mCondVar(mMutex, "StorageDirectoryHelper::mCondVar") , mMainThreadResultCode(NS_OK) , mWaiting(true) @@ -3649,7 +3653,9 @@ QuotaManager::Shutdown() // QuotaManager on the IO thread. This should probably use // NewNonOwningRunnableMethod ... RefPtr runnable = - NewRunnableMethod(this, &QuotaManager::ReleaseIOThreadObjects); + NewRunnableMethod("dom::quota::QuotaManager::ReleaseIOThreadObjects", + this, + &QuotaManager::ReleaseIOThreadObjects); MOZ_ASSERT(runnable); // Give clients a chance to cleanup IO thread only objects. @@ -5885,11 +5891,12 @@ GroupInfoPair::GetGroupInfoForPersistenceType(PersistenceType aPersistenceType) CollectOriginsHelper::CollectOriginsHelper(mozilla::Mutex& aMutex, uint64_t aMinSizeToBeFreed) -: mMinSizeToBeFreed(aMinSizeToBeFreed), - mMutex(aMutex), - mCondVar(aMutex, "CollectOriginsHelper::mCondVar"), - mSizeToBeFreed(0), - mWaiting(true) + : Runnable("dom::quota::CollectOriginsHelper") + , mMinSizeToBeFreed(aMinSizeToBeFreed) + , mMutex(aMutex) + , mCondVar(aMutex, "CollectOriginsHelper::mCondVar") + , mSizeToBeFreed(0) + , mWaiting(true) { MOZ_ASSERT(!NS_IsMainThread(), "Wrong thread!"); mMutex.AssertCurrentThreadOwns(); @@ -6508,7 +6515,9 @@ Quota::RecvStartIdleMaintenance() QuotaManager* quotaManager = QuotaManager::Get(); if (!quotaManager) { nsCOMPtr callback = - NewRunnableMethod(this, &Quota::StartIdleMaintenance); + NewRunnableMethod("dom::quota::Quota::StartIdleMaintenance", + this, + &Quota::StartIdleMaintenance); QuotaManager::GetOrCreate(callback); return IPC_OK(); diff --git a/dom/quota/QuotaManagerService.cpp b/dom/quota/QuotaManagerService.cpp index 01be3f87e203..eb2dbf8c21bd 100644 --- a/dom/quota/QuotaManagerService.cpp +++ b/dom/quota/QuotaManagerService.cpp @@ -86,7 +86,8 @@ class AbortOperationsRunnable final public: explicit AbortOperationsRunnable(ContentParentId aContentParentId) - : mContentParentId(aContentParentId) + : Runnable("dom::quota::AbortOperationsRunnable") + , mContentParentId(aContentParentId) { } private: diff --git a/dom/script/ScriptLoader.cpp b/dom/script/ScriptLoader.cpp index f3ff678d6db0..250848d03383 100644 --- a/dom/script/ScriptLoader.cpp +++ b/dom/script/ScriptLoader.cpp @@ -997,9 +997,9 @@ private: RefPtr mLoader; RefPtr mRequest; public: - ScriptRequestProcessor(ScriptLoader* aLoader, - ScriptLoadRequest* aRequest) - : mLoader(aLoader) + ScriptRequestProcessor(ScriptLoader* aLoader, ScriptLoadRequest* aRequest) + : Runnable("dom::ScriptRequestProcessor") + , mLoader(aLoader) , mRequest(aRequest) {} NS_IMETHOD Run() override @@ -1154,7 +1154,8 @@ ScriptLoader::ProcessScriptElement(nsIScriptElement* aElement) if (!scriptURI) { // Asynchronously report the failure to create a URI object NS_DispatchToCurrentThread( - NewRunnableMethod(aElement, + NewRunnableMethod("nsIScriptElement::FireErrorEvent", + aElement, &nsIScriptElement::FireErrorEvent)); return false; } @@ -1244,7 +1245,8 @@ ScriptLoader::ProcessScriptElement(nsIScriptElement* aElement) // Asynchronously report the load failure NS_DispatchToCurrentThread( - NewRunnableMethod(aElement, + NewRunnableMethod("nsIScriptElement::FireErrorEvent", + aElement, &nsIScriptElement::FireErrorEvent)); return false; } @@ -1428,7 +1430,8 @@ class NotifyOffThreadScriptLoadCompletedRunnable : public Runnable public: NotifyOffThreadScriptLoadCompletedRunnable(ScriptLoadRequest* aRequest, ScriptLoader* aLoader) - : mRequest(aRequest) + : Runnable("dom::NotifyOffThreadScriptLoadCompletedRunnable") + , mRequest(aRequest) , mLoader(aLoader) , mDocGroup(aLoader->GetDocGroup()) , mToken(nullptr) @@ -2321,8 +2324,10 @@ void ScriptLoader::ProcessPendingRequestsAsync() { if (HasPendingRequests()) { - nsCOMPtr task = NewRunnableMethod(this, - &ScriptLoader::ProcessPendingRequests); + nsCOMPtr task = + NewRunnableMethod("dom::ScriptLoader::ProcessPendingRequests", + this, + &ScriptLoader::ProcessPendingRequests); if (mDocument) { mDocument->Dispatch("ScriptLoader", TaskCategory::Other, task.forget()); } else { diff --git a/dom/security/nsCSPContext.cpp b/dom/security/nsCSPContext.cpp index e844ab9cd395..c1f00a6bfbfa 100644 --- a/dom/security/nsCSPContext.cpp +++ b/dom/security/nsCSPContext.cpp @@ -1075,7 +1075,8 @@ class CSPReportSenderRunnable final : public Runnable const nsAString& aScriptSample, uint32_t aLineNum, nsCSPContext* aCSPContext) - : mBlockedContentSource(aBlockedContentSource) + : mozilla::Runnable("CSPReportSenderRunnable") + , mBlockedContentSource(aBlockedContentSource) , mOriginalURI(aOriginalURI) , mViolatedPolicyIndex(aViolatedPolicyIndex) , mReportOnlyFlag(aReportOnlyFlag) diff --git a/dom/security/nsMixedContentBlocker.cpp b/dom/security/nsMixedContentBlocker.cpp index ba61c7f79378..be648e2175c1 100644 --- a/dom/security/nsMixedContentBlocker.cpp +++ b/dom/security/nsMixedContentBlocker.cpp @@ -119,8 +119,13 @@ enum MixedContentHSTSPrimingState { class nsMixedContentEvent : public Runnable { public: - nsMixedContentEvent(nsISupports *aContext, MixedContentTypes aType, bool aRootHasSecureConnection) - : mContext(aContext), mType(aType), mRootHasSecureConnection(aRootHasSecureConnection) + nsMixedContentEvent(nsISupports* aContext, + MixedContentTypes aType, + bool aRootHasSecureConnection) + : mozilla::Runnable("nsMixedContentEvent") + , mContext(aContext) + , mType(aType) + , mRootHasSecureConnection(aRootHasSecureConnection) {} NS_IMETHOD Run() override diff --git a/dom/smil/nsSMILTimedElement.cpp b/dom/smil/nsSMILTimedElement.cpp index 120536be0747..bfa5d0eb74a5 100644 --- a/dom/smil/nsSMILTimedElement.cpp +++ b/dom/smil/nsSMILTimedElement.cpp @@ -87,9 +87,11 @@ namespace int32_t mDetail; public: - AsyncTimeEventRunner(nsIContent* aTarget, EventMessage aMsg, + AsyncTimeEventRunner(nsIContent* aTarget, + EventMessage aMsg, int32_t aDetail) - : mTarget(aTarget) + : mozilla::Runnable("AsyncTimeEventRunner") + , mTarget(aTarget) , mMsg(aMsg) , mDetail(aDetail) { diff --git a/dom/storage/LocalStorageCache.cpp b/dom/storage/LocalStorageCache.cpp index 2a4a34b79a45..8f785266ccd0 100644 --- a/dom/storage/LocalStorageCache.cpp +++ b/dom/storage/LocalStorageCache.cpp @@ -111,8 +111,9 @@ LocalStorageCache::Release(void) return; } - RefPtr > event = - NewNonOwningRunnableMethod(static_cast(this), + RefPtr> event = + NewNonOwningRunnableMethod("dom::LocalStorageCacheBridge::Release", + static_cast(this), &LocalStorageCacheBridge::Release); nsresult rv = NS_DispatchToMainThread(event); @@ -625,7 +626,8 @@ class LoadUsageRunnable : public Runnable { public: LoadUsageRunnable(int64_t* aUsage, const int64_t aDelta) - : mTarget(aUsage) + : Runnable("dom::LoadUsageRunnable") + , mTarget(aUsage) , mDelta(aDelta) {} diff --git a/dom/storage/StorageDBThread.cpp b/dom/storage/StorageDBThread.cpp index a85ee56a3e75..5de22c50b96f 100644 --- a/dom/storage/StorageDBThread.cpp +++ b/dom/storage/StorageDBThread.cpp @@ -723,8 +723,10 @@ StorageDBThread::NotifyFlushCompletion() { #ifdef DOM_STORAGE_TESTS if (!NS_IsMainThread()) { - RefPtr > event = - NewNonOwningRunnableMethod(this, &StorageDBThread::NotifyFlushCompletion); + RefPtr> event = + NewNonOwningRunnableMethod("dom::StorageDBThread::NotifyFlushCompletion", + this, + &StorageDBThread::NotifyFlushCompletion); NS_DispatchToMainThread(event); return; } diff --git a/dom/storage/StorageIPC.cpp b/dom/storage/StorageIPC.cpp index 603d578918bd..928354114d86 100644 --- a/dom/storage/StorageIPC.cpp +++ b/dom/storage/StorageIPC.cpp @@ -315,7 +315,8 @@ class SendInitialChildDataRunnable : public Runnable { public: explicit SendInitialChildDataRunnable(StorageDBParent* aParent) - : mParent(aParent) + : Runnable("dom::SendInitialChildDataRunnable") + , mParent(aParent) {} private: @@ -645,12 +646,13 @@ public: const nsACString& aOriginNoSuffix, const nsAString& aKey = EmptyString(), const nsAString& aValue = EmptyString()) - : mParent(aParent) - , mType(aType) - , mSuffix(aOriginSuffix) - , mOrigin(aOriginNoSuffix) - , mKey(aKey) - , mValue(aValue) + : Runnable("dom::LoadRunnable") + , mParent(aParent) + , mType(aType) + , mSuffix(aOriginSuffix) + , mOrigin(aOriginNoSuffix) + , mKey(aKey) + , mValue(aValue) { } LoadRunnable(StorageDBParent* aParent, @@ -658,11 +660,12 @@ public: const nsACString& aOriginSuffix, const nsACString& aOriginNoSuffix, nsresult aRv) - : mParent(aParent) - , mType(aType) - , mSuffix(aOriginSuffix) - , mOrigin(aOriginNoSuffix) - , mRv(aRv) + : Runnable("dom::LoadRunnable") + , mParent(aParent) + , mType(aType) + , mSuffix(aOriginSuffix) + , mOrigin(aOriginNoSuffix) + , mRv(aRv) { } private: @@ -750,9 +753,11 @@ namespace { class UsageRunnable : public Runnable { public: - UsageRunnable(StorageDBParent* aParent, const nsACString& aOriginScope, + UsageRunnable(StorageDBParent* aParent, + const nsACString& aOriginScope, const int64_t& aUsage) - : mParent(aParent) + : Runnable("dom::UsageRunnable") + , mParent(aParent) , mOriginScope(aOriginScope) , mUsage(aUsage) {} diff --git a/dom/svg/SVGFEImageElement.cpp b/dom/svg/SVGFEImageElement.cpp index ed6d2cca1539..75854739e41b 100644 --- a/dom/svg/SVGFEImageElement.cpp +++ b/dom/svg/SVGFEImageElement.cpp @@ -172,7 +172,9 @@ SVGFEImageElement::BindToTree(nsIDocument* aDocument, nsIContent* aParent, ClearBrokenState(); RemoveStatesSilently(NS_EVENT_STATE_BROKEN); nsContentUtils::AddScriptRunner( - NewRunnableMethod(this, &SVGFEImageElement::MaybeLoadSVGImage)); + NewRunnableMethod("dom::SVGFEImageElement::MaybeLoadSVGImage", + this, + &SVGFEImageElement::MaybeLoadSVGImage)); } return rv; diff --git a/dom/svg/SVGImageElement.cpp b/dom/svg/SVGImageElement.cpp index 6f3ffd7847c8..8dea0ca89a67 100644 --- a/dom/svg/SVGImageElement.cpp +++ b/dom/svg/SVGImageElement.cpp @@ -203,7 +203,9 @@ SVGImageElement::BindToTree(nsIDocument* aDocument, nsIContent* aParent, ClearBrokenState(); RemoveStatesSilently(NS_EVENT_STATE_BROKEN); nsContentUtils::AddScriptRunner( - NewRunnableMethod(this, &SVGImageElement::MaybeLoadSVGImage)); + NewRunnableMethod("dom::SVGImageElement::MaybeLoadSVGImage", + this, + &SVGImageElement::MaybeLoadSVGImage)); } return rv; diff --git a/dom/svg/SVGStyleElement.cpp b/dom/svg/SVGStyleElement.cpp index 22fb204dff95..f0332a892318 100644 --- a/dom/svg/SVGStyleElement.cpp +++ b/dom/svg/SVGStyleElement.cpp @@ -78,7 +78,8 @@ SVGStyleElement::BindToTree(nsIDocument* aDocument, nsIContent* aParent, NS_ENSURE_SUCCESS(rv, rv); void (SVGStyleElement::*update)() = &SVGStyleElement::UpdateStyleSheetInternal; - nsContentUtils::AddScriptRunner(NewRunnableMethod(this, update)); + nsContentUtils::AddScriptRunner( + NewRunnableMethod("dom::SVGStyleElement::BindToTree", this, update)); return rv; } diff --git a/dom/system/nsDeviceSensors.cpp b/dom/system/nsDeviceSensors.cpp index 739f67a07aa7..bb8b28068f04 100644 --- a/dom/system/nsDeviceSensors.cpp +++ b/dom/system/nsDeviceSensors.cpp @@ -139,10 +139,10 @@ NS_IMETHODIMP nsDeviceSensors::HasWindowListener(uint32_t aType, nsIDOMWindow *a class DeviceSensorTestEvent : public Runnable { public: - DeviceSensorTestEvent(nsDeviceSensors* aTarget, - uint32_t aType) - : mTarget(aTarget) - , mType(aType) + DeviceSensorTestEvent(nsDeviceSensors* aTarget, uint32_t aType) + : mozilla::Runnable("DeviceSensorTestEvent") + , mTarget(aTarget) + , mType(aType) { } diff --git a/dom/u2f/U2F.cpp b/dom/u2f/U2F.cpp index 0d1aaaaba88f..f0a216a69a94 100644 --- a/dom/u2f/U2F.cpp +++ b/dom/u2f/U2F.cpp @@ -163,10 +163,12 @@ U2FStatus::GetResponse() return mResponse; } -U2FTask::U2FTask(const nsAString& aOrigin, const nsAString& aAppId, +U2FTask::U2FTask(const nsAString& aOrigin, + const nsAString& aAppId, const Authenticator& aAuthenticator, nsISerialEventTarget* aEventTarget) - : mOrigin(aOrigin) + : Runnable("dom::U2FTask") + , mOrigin(aOrigin) , mAppId(aAppId) , mAuthenticator(aAuthenticator) , mEventTarget(aEventTarget) @@ -190,7 +192,8 @@ U2FTask::Execute() U2FPrepTask::U2FPrepTask(const Authenticator& aAuthenticator, nsISerialEventTarget* aEventTarget) - : mAuthenticator(aAuthenticator) + : Runnable("dom::U2FPrepTask") + , mAuthenticator(aAuthenticator) , mEventTarget(aEventTarget) {} @@ -444,7 +447,8 @@ U2FSignTask::Run() U2FRunnable::U2FRunnable(const nsAString& aOrigin, const nsAString& aAppId, nsISerialEventTarget* aEventTarget) - : mOrigin(aOrigin) + : Runnable("dom::U2FRunnable") + , mOrigin(aOrigin) , mAppId(aAppId) , mEventTarget(aEventTarget) {} @@ -677,14 +681,14 @@ U2FRegisterRunnable::Run() if (status->IsStopped()) { status->WaitGroupAdd(); mEventTarget->Dispatch(NS_NewRunnableFunction( + "dom::U2FRegisterRunnable::Run", [&status, this] () { RegisterResponse response; response.mErrorCode.Construct( static_cast(status->GetErrorCode())); SendResponse(response); status->WaitGroupDone(); - } - )); + })); // Don't exit until the main thread runnable completes status->WaitGroupWait(); @@ -740,6 +744,7 @@ U2FRegisterRunnable::Run() // Transmit back to the JS engine from the Main Thread status->WaitGroupAdd(); mEventTarget->Dispatch(NS_NewRunnableFunction( + "dom::U2FRegisterRunnable::Run", [&status, this] () { RegisterResponse response; if (status->GetErrorCode() == ErrorCode::OK) { @@ -750,8 +755,7 @@ U2FRegisterRunnable::Run() } SendResponse(response); status->WaitGroupDone(); - } - )); + })); // TODO: Add timeouts, Bug 1301793 status->WaitGroupWait(); @@ -923,6 +927,7 @@ U2FSignRunnable::Run() // Transmit back to the JS engine from the Main Thread status->WaitGroupAdd(); mEventTarget->Dispatch(NS_NewRunnableFunction( + "dom::U2FSignRunnable::Run", [&status, this] () { SignResponse response; if (status->GetErrorCode() == ErrorCode::OK) { @@ -933,8 +938,7 @@ U2FSignRunnable::Run() } SendResponse(response); status->WaitGroupDone(); - } - )); + })); // TODO: Add timeouts, Bug 1301793 status->WaitGroupWait(); diff --git a/dom/url/URLMainThread.cpp b/dom/url/URLMainThread.cpp index 39f5bd3a6963..7d33c2bb30c9 100644 --- a/dom/url/URLMainThread.cpp +++ b/dom/url/URLMainThread.cpp @@ -125,8 +125,8 @@ URLMainThread::CreateObjectURL(const GlobalObject& aGlobal, return; } - nsCOMPtr revocation = NS_NewRunnableFunction( - [url] { + nsCOMPtr revocation = + NS_NewRunnableFunction("dom::URLMainThread::CreateObjectURL", [url] { nsHostObjectProtocolHandler::RemoveDataEntry(url); }); diff --git a/dom/url/URLWorker.cpp b/dom/url/URLWorker.cpp index 0fc8f86d609b..0e66489033e1 100644 --- a/dom/url/URLWorker.cpp +++ b/dom/url/URLWorker.cpp @@ -279,7 +279,8 @@ class TeardownURLRunnable : public Runnable { public: explicit TeardownURLRunnable(URLWorker::URLProxy* aURLProxy) - : mURLProxy(aURLProxy) + : Runnable("dom::TeardownURLRunnable") + , mURLProxy(aURLProxy) { } diff --git a/dom/webauthn/U2FSoftTokenManager.cpp b/dom/webauthn/U2FSoftTokenManager.cpp index 0de3b2fac972..a92c642853fe 100644 --- a/dom/webauthn/U2FSoftTokenManager.cpp +++ b/dom/webauthn/U2FSoftTokenManager.cpp @@ -234,6 +234,7 @@ U2FSoftTokenManager::GetOrCreateWrappingKey(const UniquePK11SlotInfo& aSlot, ("Key stored, nickname set to %s.", mSecretNickname.get())); GetMainThreadEventTarget()->Dispatch(NS_NewRunnableFunction( + "dom::U2FSoftTokenManager::GetOrCreateWrappingKey", [] () { MOZ_ASSERT(NS_IsMainThread()); Preferences::SetUint(PREF_U2F_NSSTOKEN_COUNTER, 0); @@ -797,6 +798,7 @@ U2FSoftTokenManager::Sign(const nsTArray& aApplication, counterItem.data[3] = (mCounter >> 0) & 0xFF; uint32_t counter = mCounter; GetMainThreadEventTarget()->Dispatch(NS_NewRunnableFunction( + "dom::U2FSoftTokenManager::Sign", [counter] () { MOZ_ASSERT(NS_IsMainThread()); Preferences::SetUint(PREF_U2F_NSSTOKEN_COUNTER, counter); diff --git a/dom/webbrowserpersist/WebBrowserPersistDocumentParent.cpp b/dom/webbrowserpersist/WebBrowserPersistDocumentParent.cpp index a54b1f4f2d5f..66073c0aed3b 100644 --- a/dom/webbrowserpersist/WebBrowserPersistDocumentParent.cpp +++ b/dom/webbrowserpersist/WebBrowserPersistDocumentParent.cpp @@ -44,9 +44,11 @@ WebBrowserPersistDocumentParent::ActorDestroy(ActorDestroyReason aWhy) // dropping the last reference to another document's // WebBrowserPersistRemoteDocument. To avoid that, defer the // callback until after the entire subtree is destroyed. - nsCOMPtr errorLater = NewRunnableMethod - (mOnReady, &nsIWebBrowserPersistDocumentReceiver::OnError, - NS_ERROR_FAILURE); + nsCOMPtr errorLater = NewRunnableMethod( + "nsIWebBrowserPersistDocumentReceiver::OnError", + mOnReady, + &nsIWebBrowserPersistDocumentReceiver::OnError, + NS_ERROR_FAILURE); NS_DispatchToCurrentThread(errorLater); mOnReady = nullptr; } diff --git a/dom/webbrowserpersist/WebBrowserPersistResourcesParent.cpp b/dom/webbrowserpersist/WebBrowserPersistResourcesParent.cpp index 94e0b2c91908..2c5194dce888 100644 --- a/dom/webbrowserpersist/WebBrowserPersistResourcesParent.cpp +++ b/dom/webbrowserpersist/WebBrowserPersistResourcesParent.cpp @@ -31,10 +31,13 @@ WebBrowserPersistResourcesParent::ActorDestroy(ActorDestroyReason aWhy) if (aWhy != Deletion && mVisitor) { // See comment in WebBrowserPersistDocumentParent::ActorDestroy // (or bug 1202887) for why this is deferred. - nsCOMPtr errorLater = NewRunnableMethod - , nsresult> - (mVisitor, &nsIWebBrowserPersistResourceVisitor::EndVisit, - mDocument, NS_ERROR_FAILURE); + nsCOMPtr errorLater = + NewRunnableMethod, nsresult>( + "nsIWebBrowserPersistResourceVisitor::EndVisit", + mVisitor, + &nsIWebBrowserPersistResourceVisitor::EndVisit, + mDocument, + NS_ERROR_FAILURE); NS_DispatchToCurrentThread(errorLater); } mVisitor = nullptr; diff --git a/dom/webbrowserpersist/WebBrowserPersistSerializeParent.cpp b/dom/webbrowserpersist/WebBrowserPersistSerializeParent.cpp index f723145e29e2..c4b179d29286 100644 --- a/dom/webbrowserpersist/WebBrowserPersistSerializeParent.cpp +++ b/dom/webbrowserpersist/WebBrowserPersistSerializeParent.cpp @@ -75,11 +75,18 @@ WebBrowserPersistSerializeParent::ActorDestroy(ActorDestroyReason aWhy) MOZ_ASSERT(aWhy != Deletion); // See comment in WebBrowserPersistDocumentParent::ActorDestroy // (or bug 1202887) for why this is deferred. - nsCOMPtr errorLater = NewRunnableMethod - , nsCOMPtr, - nsCString, nsresult> - (mFinish, &nsIWebBrowserPersistWriteCompletion::OnFinish, - mDocument, mStream, EmptyCString(), NS_ERROR_FAILURE); + nsCOMPtr errorLater = + NewRunnableMethod, + nsCOMPtr, + nsCString, + nsresult>( + "nsIWebBrowserPersistWriteCompletion::OnFinish", + mFinish, + &nsIWebBrowserPersistWriteCompletion::OnFinish, + mDocument, + mStream, + EmptyCString(), + NS_ERROR_FAILURE); NS_DispatchToCurrentThread(errorLater); mFinish = nullptr; } diff --git a/dom/webbrowserpersist/nsWebBrowserPersist.cpp b/dom/webbrowserpersist/nsWebBrowserPersist.cpp index 20d9a21ee4db..fdde2e56e24b 100644 --- a/dom/webbrowserpersist/nsWebBrowserPersist.cpp +++ b/dom/webbrowserpersist/nsWebBrowserPersist.cpp @@ -675,8 +675,10 @@ nsWebBrowserPersist::SerializeNextFile() // Finish and clean things up. Defer this because the caller // may have been expecting to use the listeners that that // method will clear. - NS_DispatchToCurrentThread(NewRunnableMethod(this, - &nsWebBrowserPersist::FinishDownload)); + NS_DispatchToCurrentThread( + NewRunnableMethod("nsWebBrowserPersist::FinishDownload", + this, + &nsWebBrowserPersist::FinishDownload)); return; } @@ -787,8 +789,10 @@ nsWebBrowserPersist::OnWrite::OnFinish(nsIWebBrowserPersistDocument* aDoc, return NS_OK; } } - NS_DispatchToCurrentThread(NewRunnableMethod(mParent, - &nsWebBrowserPersist::SerializeNextFile)); + NS_DispatchToCurrentThread( + NewRunnableMethod("nsWebBrowserPersist::SerializeNextFile", + mParent, + &nsWebBrowserPersist::SerializeNextFile)); return NS_OK; } @@ -1790,9 +1794,11 @@ nsWebBrowserPersist::FinishSaveDocumentInternal(nsIURI* aFile, // Bounce this off the event loop to avoid stack overflow. typedef StoreCopyPassByRRef WalkStorage; auto saveMethod = &nsWebBrowserPersist::SaveDocumentDeferred; - nsCOMPtr saveLater = - NewRunnableMethod(this, saveMethod, - mozilla::Move(toWalk)); + nsCOMPtr saveLater = NewRunnableMethod( + "nsWebBrowserPersist::FinishSaveDocumentInternal", + this, + saveMethod, + mozilla::Move(toWalk)); NS_DispatchToCurrentThread(saveLater); } else { // Done walking DOMs; on to the serialization phase. diff --git a/dom/workers/RuntimeService.cpp b/dom/workers/RuntimeService.cpp index 2e2d4f3bf5a3..a52e83df1c69 100644 --- a/dom/workers/RuntimeService.cpp +++ b/dom/workers/RuntimeService.cpp @@ -1254,7 +1254,10 @@ public: WorkerThreadPrimaryRunnable(WorkerPrivate* aWorkerPrivate, WorkerThread* aThread, JSRuntime* aParentRuntime) - : mWorkerPrivate(aWorkerPrivate), mThread(aThread), mParentRuntime(aParentRuntime) + : mozilla::Runnable("WorkerThreadPrimaryRunnable") + , mWorkerPrivate(aWorkerPrivate) + , mThread(aThread) + , mParentRuntime(aParentRuntime) { MOZ_ASSERT(aWorkerPrivate); MOZ_ASSERT(aThread); diff --git a/dom/workers/ScriptLoader.cpp b/dom/workers/ScriptLoader.cpp index 5bbb428bbc5b..8a612804ca6b 100644 --- a/dom/workers/ScriptLoader.cpp +++ b/dom/workers/ScriptLoader.cpp @@ -762,7 +762,8 @@ private: mCanceled = true; MOZ_ALWAYS_SUCCEEDS( - NS_DispatchToMainThread(NewRunnableMethod(this, + NS_DispatchToMainThread(NewRunnableMethod("ScriptLoaderRunnable::CancelMainThreadWithBindingAborted", + this, &ScriptLoaderRunnable::CancelMainThreadWithBindingAborted))); } diff --git a/dom/workers/ServiceWorkerClient.cpp b/dom/workers/ServiceWorkerClient.cpp index 07ed5d07394c..68d4a7ec5680 100644 --- a/dom/workers/ServiceWorkerClient.cpp +++ b/dom/workers/ServiceWorkerClient.cpp @@ -137,7 +137,9 @@ public: ServiceWorkerClientPostMessageRunnable(uint64_t aSourceID, const nsACString& aSourceScope, uint64_t aWindowId) - : StructuredCloneHolder(CloningSupported, TransferringSupported, + : mozilla::Runnable("ServiceWorkerClientPostMessageRunnable") + , StructuredCloneHolder(CloningSupported, + TransferringSupported, StructuredCloneScope::SameProcessDifferentThread) , mSourceID(aSourceID) , mSourceScope(aSourceScope) diff --git a/dom/workers/ServiceWorkerClients.cpp b/dom/workers/ServiceWorkerClients.cpp index e32a6e98e7f3..a9b8c6efe5e4 100644 --- a/dom/workers/ServiceWorkerClients.cpp +++ b/dom/workers/ServiceWorkerClients.cpp @@ -111,10 +111,10 @@ class GetRunnable final : public Runnable RefPtr mPromiseProxy; nsString mClientId; public: - GetRunnable(PromiseWorkerProxy* aPromiseProxy, - const nsAString& aClientId) - : mPromiseProxy(aPromiseProxy), - mClientId(aClientId) + GetRunnable(PromiseWorkerProxy* aPromiseProxy, const nsAString& aClientId) + : mozilla::Runnable("GetRunnable") + , mPromiseProxy(aPromiseProxy) + , mClientId(aClientId) { } @@ -201,10 +201,11 @@ public: const nsCString& aScope, uint64_t aServiceWorkerID, bool aIncludeUncontrolled) - : mPromiseProxy(aPromiseProxy), - mScope(aScope), - mServiceWorkerID(aServiceWorkerID), - mIncludeUncontrolled(aIncludeUncontrolled) + : mozilla::Runnable("MatchAllRunnable") + , mPromiseProxy(aPromiseProxy) + , mScope(aScope) + , mServiceWorkerID(aServiceWorkerID) + , mIncludeUncontrolled(aIncludeUncontrolled) { MOZ_ASSERT(mPromiseProxy); } @@ -279,7 +280,8 @@ class ClaimRunnable final : public Runnable public: ClaimRunnable(PromiseWorkerProxy* aPromiseProxy, const nsCString& aScope) - : mPromiseProxy(aPromiseProxy) + : mozilla::Runnable("ClaimRunnable") + , mPromiseProxy(aPromiseProxy) , mScope(aScope) // Safe to call GetWorkerPrivate() since we are being called on the worker // thread via script (so no clean up has occured yet). @@ -508,7 +510,8 @@ public: OpenWindowRunnable(PromiseWorkerProxy* aPromiseProxy, const nsAString& aUrl, const nsAString& aScope) - : mPromiseProxy(aPromiseProxy) + : mozilla::Runnable("OpenWindowRunnable") + , mPromiseProxy(aPromiseProxy) , mUrl(aUrl) , mScope(aScope) { diff --git a/dom/workers/ServiceWorkerEvents.cpp b/dom/workers/ServiceWorkerEvents.cpp index e0f25e6cfab0..6d317a492b5e 100644 --- a/dom/workers/ServiceWorkerEvents.cpp +++ b/dom/workers/ServiceWorkerEvents.cpp @@ -95,10 +95,12 @@ AsyncLog(nsIInterceptedChannel* aInterceptedChannel, BEGIN_WORKERS_NAMESPACE -CancelChannelRunnable::CancelChannelRunnable(nsMainThreadPtrHandle& aChannel, - nsMainThreadPtrHandle& aRegistration, - nsresult aStatus) - : mChannel(aChannel) +CancelChannelRunnable::CancelChannelRunnable( + nsMainThreadPtrHandle& aChannel, + nsMainThreadPtrHandle& aRegistration, + nsresult aStatus) + : Runnable("dom::workers::CancelChannelRunnable") + , mChannel(aChannel) , mRegistration(aRegistration) , mStatus(aStatus) { @@ -177,7 +179,8 @@ public: const ChannelInfo& aWorkerChannelInfo, const nsACString& aScriptSpec, const nsACString& aResponseURLSpec) - : mChannel(aChannel) + : Runnable("dom::workers::FinishResponse") + , mChannel(aChannel) , mInternalResponse(aInternalResponse) , mWorkerChannelInfo(aWorkerChannelInfo) , mScriptSpec(aScriptSpec) @@ -881,7 +884,8 @@ public: } MOZ_ALWAYS_SUCCEEDS(mWorkerPrivate->DispatchToMainThread( - NewRunnableMethod(this, &WaitUntilHandler::ReportOnMainThread))); + NewRunnableMethod("WaitUntilHandler::ReportOnMainThread", + this, &WaitUntilHandler::ReportOnMainThread))); } void diff --git a/dom/workers/ServiceWorkerInfo.cpp b/dom/workers/ServiceWorkerInfo.cpp index 6beba301b811..f0e281e1673a 100644 --- a/dom/workers/ServiceWorkerInfo.cpp +++ b/dom/workers/ServiceWorkerInfo.cpp @@ -144,7 +144,8 @@ class ChangeStateUpdater final : public Runnable public: ChangeStateUpdater(const nsTArray& aInstances, ServiceWorkerState aState) - : mState(aState) + : Runnable("dom::workers::ChangeStateUpdater") + , mState(aState) { for (size_t i = 0; i < aInstances.Length(); ++i) { mInstances.AppendElement(aInstances[i]); diff --git a/dom/workers/ServiceWorkerManager.cpp b/dom/workers/ServiceWorkerManager.cpp index 8c61727affe6..c2c3069da563 100644 --- a/dom/workers/ServiceWorkerManager.cpp +++ b/dom/workers/ServiceWorkerManager.cpp @@ -206,7 +206,8 @@ class TeardownRunnable final : public Runnable { public: explicit TeardownRunnable(ServiceWorkerManagerChild* aActor) - : mActor(aActor) + : Runnable("dom::workers::TeardownRunnable") + , mActor(aActor) { MOZ_ASSERT(mActor); } @@ -386,7 +387,8 @@ class PropagateSoftUpdateRunnable final : public Runnable public: PropagateSoftUpdateRunnable(const OriginAttributes& aOriginAttributes, const nsAString& aScope) - : mOriginAttributes(aOriginAttributes) + : Runnable("dom::workers::PropagateSoftUpdateRunnable") + , mOriginAttributes(aOriginAttributes) , mScope(aScope) {} @@ -416,7 +418,8 @@ public: PropagateUnregisterRunnable(nsIPrincipal* aPrincipal, nsIServiceWorkerUnregisterCallback* aCallback, const nsAString& aScope) - : mPrincipal(aPrincipal) + : Runnable("dom::workers::PropagateUnregisterRunnable") + , mPrincipal(aPrincipal) , mCallback(aCallback) , mScope(aScope) { @@ -448,7 +451,9 @@ class RemoveRunnable final : public Runnable { public: explicit RemoveRunnable(const nsACString& aHost) - {} + : Runnable("dom::workers::RemoveRunnable") + { + } NS_IMETHOD Run() override { @@ -473,7 +478,9 @@ class PropagateRemoveRunnable final : public Runnable { public: explicit PropagateRemoveRunnable(const nsACString& aHost) - {} + : Runnable("dom::workers::PropagateRemoveRunnable") + { + } NS_IMETHOD Run() override { @@ -498,7 +505,9 @@ class PropagateRemoveAllRunnable final : public Runnable { public: PropagateRemoveAllRunnable() - {} + : Runnable("dom::workers::PropagateRemoveAllRunnable") + { + } NS_IMETHOD Run() override { @@ -578,9 +587,11 @@ class SoftUpdateRunnable final : public CancelableRunnable { public: SoftUpdateRunnable(const OriginAttributes& aOriginAttributes, - const nsACString& aScope, bool aInternalMethod, + const nsACString& aScope, + bool aInternalMethod, GenericPromise::Private* aPromise) - : mAttrs(aOriginAttributes) + : CancelableRunnable("dom::workers::SoftUpdateRunnable") + , mAttrs(aOriginAttributes) , mScope(aScope) , mInternalMethod(aInternalMethod) , mPromise(aPromise) @@ -650,7 +661,8 @@ public: ServiceWorkerUpdateFinishCallback* aCallback, Type aType, GenericPromise::Private* aPromise) - : mPrincipal(aPrincipal) + : CancelableRunnable("dom::workers::UpdateRunnable") + , mPrincipal(aPrincipal) , mScope(aScope) , mCallback(aCallback) , mType(aType) @@ -714,7 +726,8 @@ class ResolvePromiseRunnable final : public CancelableRunnable { public: explicit ResolvePromiseRunnable(GenericPromise::Private* aPromise) - : mPromise(aPromise) + : CancelableRunnable("dom::workers::ResolvePromiseRunnable") + , mPromise(aPromise) {} NS_IMETHOD @@ -959,7 +972,9 @@ class GetRegistrationsRunnable final : public Runnable RefPtr mPromise; public: GetRegistrationsRunnable(nsPIDOMWindowInner* aWindow, Promise* aPromise) - : mWindow(aWindow), mPromise(aPromise) + : Runnable("dom::workers::GetRegistrationsRunnable") + , mWindow(aWindow) + , mPromise(aPromise) {} NS_IMETHOD @@ -1085,9 +1100,13 @@ class GetRegistrationRunnable final : public Runnable nsString mDocumentURL; public: - GetRegistrationRunnable(nsPIDOMWindowInner* aWindow, Promise* aPromise, + GetRegistrationRunnable(nsPIDOMWindowInner* aWindow, + Promise* aPromise, const nsAString& aDocumentURL) - : mWindow(aWindow), mPromise(aPromise), mDocumentURL(aDocumentURL) + : Runnable("dom::workers::GetRegistrationRunnable") + , mWindow(aWindow) + , mPromise(aPromise) + , mDocumentURL(aDocumentURL) {} NS_IMETHOD @@ -1191,7 +1210,9 @@ class GetReadyPromiseRunnable final : public Runnable public: GetReadyPromiseRunnable(nsPIDOMWindowInner* aWindow, Promise* aPromise) - : mWindow(aWindow), mPromise(aPromise) + : Runnable("dom::workers::GetReadyPromiseRunnable") + , mWindow(aWindow) + , mPromise(aPromise) {} NS_IMETHOD @@ -2619,12 +2640,14 @@ class ContinueDispatchFetchEventRunnable : public Runnable nsString mDocumentId; bool mIsReload; public: - ContinueDispatchFetchEventRunnable(ServiceWorkerPrivate* aServiceWorkerPrivate, - nsIInterceptedChannel* aChannel, - nsILoadGroup* aLoadGroup, - const nsAString& aDocumentId, - bool aIsReload) - : mServiceWorkerPrivate(aServiceWorkerPrivate) + ContinueDispatchFetchEventRunnable( + ServiceWorkerPrivate* aServiceWorkerPrivate, + nsIInterceptedChannel* aChannel, + nsILoadGroup* aLoadGroup, + const nsAString& aDocumentId, + bool aIsReload) + : Runnable("dom::workers::ContinueDispatchFetchEventRunnable") + , mServiceWorkerPrivate(aServiceWorkerPrivate) , mChannel(aChannel) , mLoadGroup(aLoadGroup) , mDocumentId(aDocumentId) @@ -2765,7 +2788,8 @@ ServiceWorkerManager::DispatchFetchEvent(const OriginAttributes& aOriginAttribut // When this service worker was registered, we also sent down the permissions // for the runnable. They should have arrived by now, but we still need to // wait for them if they have not. - nsCOMPtr permissionsRunnable = NS_NewRunnableFunction([=] () { + nsCOMPtr permissionsRunnable = NS_NewRunnableFunction( + "dom::workers::ServiceWorkerManager::DispatchFetchEvent", [=]() { nsCOMPtr permMgr = services::GetPermissionManager(); MOZ_ALWAYS_SUCCEEDS(permMgr->WhenPermissionsAvailable(serviceWorker->Principal(), continueRunnable)); diff --git a/dom/workers/ServiceWorkerManagerParent.cpp b/dom/workers/ServiceWorkerManagerParent.cpp index 41f106b083d9..a4d21c10b071 100644 --- a/dom/workers/ServiceWorkerManagerParent.cpp +++ b/dom/workers/ServiceWorkerManagerParent.cpp @@ -30,7 +30,8 @@ class RegisterServiceWorkerCallback final : public Runnable public: RegisterServiceWorkerCallback(const ServiceWorkerRegistrationData& aData, uint64_t aParentID) - : mData(aData) + : Runnable("dom::workers::RegisterServiceWorkerCallback") + , mData(aData) , mParentID(aParentID) { AssertIsInMainProcess(); @@ -74,7 +75,8 @@ public: UnregisterServiceWorkerCallback(const PrincipalInfo& aPrincipalInfo, const nsString& aScope, uint64_t aParentID) - : mPrincipalInfo(aPrincipalInfo) + : Runnable("dom::workers::UnregisterServiceWorkerCallback") + , mPrincipalInfo(aPrincipalInfo) , mScope(aScope) , mParentID(aParentID) { @@ -122,7 +124,8 @@ public: CheckPrincipalWithCallbackRunnable(already_AddRefed aParent, const PrincipalInfo& aPrincipalInfo, Runnable* aCallback) - : mContentParent(aParent) + : Runnable("dom::workers::CheckPrincipalWithCallbackRunnable") + , mContentParent(aParent) , mPrincipalInfo(aPrincipalInfo) , mCallback(aCallback) , mBackgroundEventTarget(GetCurrentThreadEventTarget()) diff --git a/dom/workers/ServiceWorkerManagerService.cpp b/dom/workers/ServiceWorkerManagerService.cpp index e3d474648f0f..b622b4f8901d 100644 --- a/dom/workers/ServiceWorkerManagerService.cpp +++ b/dom/workers/ServiceWorkerManagerService.cpp @@ -109,16 +109,17 @@ ServiceWorkerManagerService::PropagateRegistration( // Send permissions fot the newly registered service worker to all of the // content processes. PrincipalInfo pi = aData.principal(); - NS_DispatchToMainThread(NS_NewRunnableFunction([pi] () { - nsTArray cps; - ContentParent::GetAll(cps); - for (auto* cp : cps) { - nsCOMPtr principal = PrincipalInfoToPrincipal(pi); - if (principal) { - cp->TransmitPermissionsForPrincipal(principal); - } + NS_DispatchToMainThread(NS_NewRunnableFunction( + "dom::workers::ServiceWorkerManagerService::PropagateRegistration", [pi]() { + nsTArray cps; + ContentParent::GetAll(cps); + for (auto* cp : cps) { + nsCOMPtr principal = PrincipalInfoToPrincipal(pi); + if (principal) { + cp->TransmitPermissionsForPrincipal(principal); } - })); + } + })); #ifdef DEBUG MOZ_ASSERT(parentFound); diff --git a/dom/workers/ServiceWorkerPrivate.cpp b/dom/workers/ServiceWorkerPrivate.cpp index d52f2a598e33..ca5af769dd39 100644 --- a/dom/workers/ServiceWorkerPrivate.cpp +++ b/dom/workers/ServiceWorkerPrivate.cpp @@ -146,8 +146,11 @@ public: aWorkerPrivate->AssertIsOnWorkerThread(); bool fetchHandlerWasAdded = aWorkerPrivate->FetchHandlerWasAdded(); - nsCOMPtr runnable = NewRunnableMethod(this, - &CheckScriptEvaluationWithCallback::ReportFetchFlag, fetchHandlerWasAdded); + nsCOMPtr runnable = NewRunnableMethod( + "dom::workers::CheckScriptEvaluationWithCallback::ReportFetchFlag", + this, + &CheckScriptEvaluationWithCallback::ReportFetchFlag, + fetchHandlerWasAdded); aWorkerPrivate->DispatchToMainThread(runnable.forget()); ReportScriptEvaluationResult(aWorkerPrivate->WorkerScriptExecutedSuccessfully()); @@ -376,7 +379,10 @@ private: CycleCollectedJSContext* cx = CycleCollectedJSContext::Get(); MOZ_ASSERT(cx); - RefPtr r = NewRunnableMethod(this, &KeepAliveHandler::MaybeDone); + RefPtr r = + NewRunnableMethod("dom::workers::KeepAliveHandler::MaybeDone", + this, + &KeepAliveHandler::MaybeDone); cx->DispatchToMicroTask(r.forget()); } }; @@ -389,9 +395,11 @@ class RegistrationUpdateRunnable : public Runnable const bool mNeedTimeCheck; public: - RegistrationUpdateRunnable(nsMainThreadPtrHandle& aRegistration, - bool aNeedTimeCheck) - : mRegistration(aRegistration) + RegistrationUpdateRunnable( + nsMainThreadPtrHandle& aRegistration, + bool aNeedTimeCheck) + : Runnable("dom::workers::RegistrationUpdateRunnable") + , mRegistration(aRegistration) , mNeedTimeCheck(aNeedTimeCheck) { MOZ_DIAGNOSTIC_ASSERT(mRegistration); @@ -864,9 +872,11 @@ public: mMessageId.IsEmpty()) { return; } - nsCOMPtr runnable = - NewRunnableMethod(this, - &PushErrorReporter::ReportOnMainThread, aReason); + nsCOMPtr runnable = NewRunnableMethod( + "dom::workers::PushErrorReporter::ReportOnMainThread", + this, + &PushErrorReporter::ReportOnMainThread, + aReason); MOZ_ALWAYS_TRUE(NS_SUCCEEDED( workerPrivate->DispatchToMainThread(runnable.forget()))); } @@ -1512,8 +1522,10 @@ private: class ResumeRequest final : public Runnable { nsMainThreadPtrHandle mChannel; public: - explicit ResumeRequest(nsMainThreadPtrHandle& aChannel) - : mChannel(aChannel) + explicit ResumeRequest( + nsMainThreadPtrHandle& aChannel) + : Runnable("dom::workers::FetchEventRunnable::ResumeRequest") + , mChannel(aChannel) { mChannel->SetFinishResponseStart(TimeStamp::Now()); } @@ -1672,7 +1684,9 @@ ServiceWorkerPrivate::SendFetchEvent(nsIInterceptedChannel* aChannel, // if the ServiceWorker script fails to load for some reason, just resume // the original channel. nsCOMPtr failRunnable = - NewRunnableMethod(aChannel, &nsIInterceptedChannel::ResetInterception); + NewRunnableMethod("nsIInterceptedChannel::ResetInterception", + aChannel, + &nsIInterceptedChannel::ResetInterception); aChannel->SetLaunchServiceWorkerStart(TimeStamp::Now()); aChannel->SetDispatchFetchEventStart(TimeStamp::Now()); diff --git a/dom/workers/ServiceWorkerPrivate.h b/dom/workers/ServiceWorkerPrivate.h index fcd32c6c8344..76ddb6e2ec87 100644 --- a/dom/workers/ServiceWorkerPrivate.h +++ b/dom/workers/ServiceWorkerPrivate.h @@ -27,6 +27,8 @@ class KeepAliveToken; class LifeCycleEventCallback : public Runnable { public: + LifeCycleEventCallback() : Runnable("dom::workers::LifeCycleEventCallback") {} + // Called on the worker thread. virtual void SetResult(bool aResult) = 0; diff --git a/dom/workers/ServiceWorkerRegistrar.cpp b/dom/workers/ServiceWorkerRegistrar.cpp index 264b0b3ce583..0006c3832c0a 100644 --- a/dom/workers/ServiceWorkerRegistrar.cpp +++ b/dom/workers/ServiceWorkerRegistrar.cpp @@ -707,7 +707,8 @@ class ServiceWorkerRegistrarSaveDataRunnable final : public Runnable { public: ServiceWorkerRegistrarSaveDataRunnable() - : mEventTarget(GetCurrentThreadEventTarget()) + : Runnable("dom::ServiceWorkerRegistrarSaveDataRunnable") + , mEventTarget(GetCurrentThreadEventTarget()) { AssertIsOnBackgroundThread(); } @@ -721,7 +722,8 @@ public: service->SaveData(); RefPtr runnable = - NewRunnableMethod(service, &ServiceWorkerRegistrar::DataSaved); + NewRunnableMethod("ServiceWorkerRegistrar::DataSaved", + service, &ServiceWorkerRegistrar::DataSaved); nsresult rv = mEventTarget->Dispatch(runnable, NS_DISPATCH_NORMAL); if (NS_WARN_IF(NS_FAILED(rv))) { return rv; @@ -795,7 +797,9 @@ ServiceWorkerRegistrar::MaybeScheduleShutdownCompleted() } RefPtr runnable = - NewRunnableMethod(this, &ServiceWorkerRegistrar::ShutdownCompleted); + NewRunnableMethod("dom::ServiceWorkerRegistrar::ShutdownCompleted", + this, + &ServiceWorkerRegistrar::ShutdownCompleted); nsresult rv = NS_DispatchToMainThread(runnable); if (NS_WARN_IF(NS_FAILED(rv))) { return; @@ -957,7 +961,9 @@ ServiceWorkerRegistrar::ProfileStarted() MOZ_ASSERT(target, "Must have stream transport service"); nsCOMPtr runnable = - NewRunnableMethod(this, &ServiceWorkerRegistrar::LoadData); + NewRunnableMethod("dom::ServiceWorkerRegistrar::LoadData", + this, + &ServiceWorkerRegistrar::LoadData); rv = target->Dispatch(runnable, NS_DISPATCH_NORMAL); if (NS_FAILED(rv)) { NS_WARNING("Failed to dispatch the LoadDataRunnable."); diff --git a/dom/workers/ServiceWorkerRegistration.cpp b/dom/workers/ServiceWorkerRegistration.cpp index 53b25ecbf2be..30fdcf7303cf 100644 --- a/dom/workers/ServiceWorkerRegistration.cpp +++ b/dom/workers/ServiceWorkerRegistration.cpp @@ -492,9 +492,9 @@ public: class UpdateRunnable final : public Runnable { public: - UpdateRunnable(PromiseWorkerProxy* aPromiseProxy, - const nsAString& aScope) - : mPromiseProxy(aPromiseProxy) + UpdateRunnable(PromiseWorkerProxy* aPromiseProxy, const nsAString& aScope) + : Runnable("dom::UpdateRunnable") + , mPromiseProxy(aPromiseProxy) , mScope(aScope) {} @@ -663,9 +663,9 @@ class StartUnregisterRunnable final : public Runnable const nsString mScope; public: - StartUnregisterRunnable(PromiseWorkerProxy* aProxy, - const nsAString& aScope) - : mPromiseWorkerProxy(aProxy) + StartUnregisterRunnable(PromiseWorkerProxy* aProxy, const nsAString& aScope) + : Runnable("dom::StartUnregisterRunnable") + , mPromiseWorkerProxy(aProxy) , mScope(aScope) { MOZ_ASSERT(aProxy); @@ -1188,7 +1188,9 @@ ServiceWorkerRegistrationWorkerThread::InitListener() } nsCOMPtr r = - NewRunnableMethod(mListener, &WorkerListener::StartListeningForEvents); + NewRunnableMethod("dom::WorkerListener::StartListeningForEvents", + mListener, + &WorkerListener::StartListeningForEvents); MOZ_ALWAYS_SUCCEEDS(worker->DispatchToMainThread(r.forget())); } @@ -1210,7 +1212,9 @@ ServiceWorkerRegistrationWorkerThread::ReleaseListener() mListener->ClearRegistration(); nsCOMPtr r = - NewRunnableMethod(mListener, &WorkerListener::StopListeningForEvents); + NewRunnableMethod("dom::WorkerListener::StopListeningForEvents", + mListener, + &WorkerListener::StopListeningForEvents); MOZ_ALWAYS_SUCCEEDS(mWorkerPrivate->DispatchToMainThread(r.forget())); mListener = nullptr; diff --git a/dom/workers/ServiceWorkerRegistrationInfo.cpp b/dom/workers/ServiceWorkerRegistrationInfo.cpp index 57a41c3f075b..3a0f50d2ccad 100644 --- a/dom/workers/ServiceWorkerRegistrationInfo.cpp +++ b/dom/workers/ServiceWorkerRegistrationInfo.cpp @@ -228,7 +228,8 @@ void ServiceWorkerRegistrationInfo::TryToActivateAsync() { MOZ_ALWAYS_SUCCEEDS( - NS_DispatchToMainThread(NewRunnableMethod(this, + NS_DispatchToMainThread(NewRunnableMethod("ServiceWorkerRegistrationInfo::TryToActivate", + this, &ServiceWorkerRegistrationInfo::TryToActivate))); } @@ -267,13 +268,17 @@ ServiceWorkerRegistrationInfo::Activate() // "Queue a task to fire a simple event named controllerchange..." nsCOMPtr controllerChangeRunnable = NewRunnableMethod>( - swm, &ServiceWorkerManager::FireControllerChange, this); + "dom::workers::ServiceWorkerManager::FireControllerChange", + swm, + &ServiceWorkerManager::FireControllerChange, + this); NS_DispatchToMainThread(controllerChangeRunnable); - nsCOMPtr failRunnable = - NewRunnableMethod(this, - &ServiceWorkerRegistrationInfo::FinishActivate, - false /* success */); + nsCOMPtr failRunnable = NewRunnableMethod( + "dom::workers::ServiceWorkerRegistrationInfo::FinishActivate", + this, + &ServiceWorkerRegistrationInfo::FinishActivate, + false /* success */); nsMainThreadPtrHandle handle( new nsMainThreadPtrHolder( @@ -375,9 +380,14 @@ ServiceWorkerRegistrationInfo::UpdateRegistrationStateProperties(WhichServiceWor { AssertIsOnMainThread(); - nsCOMPtr runnable = NewRunnableMethod( - this, - &ServiceWorkerRegistrationInfo::AsyncUpdateRegistrationStateProperties, aWorker, aTransition); + nsCOMPtr runnable = + NewRunnableMethod( + "dom::workers::ServiceWorkerRegistrationInfo::" + "AsyncUpdateRegistrationStateProperties", + this, + &ServiceWorkerRegistrationInfo::AsyncUpdateRegistrationStateProperties, + aWorker, + aTransition); MOZ_ALWAYS_SUCCEEDS(NS_DispatchToMainThread(runnable.forget())); } diff --git a/dom/workers/ServiceWorkerUpdateJob.cpp b/dom/workers/ServiceWorkerUpdateJob.cpp index 7f56d9d0518c..110cbc1d892a 100644 --- a/dom/workers/ServiceWorkerUpdateJob.cpp +++ b/dom/workers/ServiceWorkerUpdateJob.cpp @@ -509,6 +509,8 @@ ServiceWorkerUpdateJob::Install(ServiceWorkerManager* aSWM) // fire the updatefound event nsCOMPtr upr = NewRunnableMethod>( + "dom::workers::ServiceWorkerManager::" + "FireUpdateFoundOnServiceWorkerRegistrations", aSWM, &ServiceWorkerManager::FireUpdateFoundOnServiceWorkerRegistrations, mRegistration); @@ -516,8 +518,11 @@ ServiceWorkerUpdateJob::Install(ServiceWorkerManager* aSWM) // Call ContinueAfterInstallEvent(false) on main thread if the SW // script fails to load. - nsCOMPtr failRunnable = NewRunnableMethod - (this, &ServiceWorkerUpdateJob::ContinueAfterInstallEvent, false); + nsCOMPtr failRunnable = NewRunnableMethod( + "dom::workers::ServiceWorkerUpdateJob::ContinueAfterInstallEvent", + this, + &ServiceWorkerUpdateJob::ContinueAfterInstallEvent, + false); nsMainThreadPtrHandle handle( new nsMainThreadPtrHolder( diff --git a/dom/workers/ServiceWorkerWindowClient.cpp b/dom/workers/ServiceWorkerWindowClient.cpp index 530c51ca7448..5689ac727a18 100644 --- a/dom/workers/ServiceWorkerWindowClient.cpp +++ b/dom/workers/ServiceWorkerWindowClient.cpp @@ -111,7 +111,8 @@ class ClientFocusRunnable final : public Runnable public: ClientFocusRunnable(uint64_t aWindowId, PromiseWorkerProxy* aPromiseProxy) - : mWindowId(aWindowId) + : mozilla::Runnable("ClientFocusRunnable") + , mWindowId(aWindowId) , mPromiseProxy(aPromiseProxy) { MOZ_ASSERT(mPromiseProxy); @@ -338,10 +339,12 @@ class ClientNavigateRunnable final : public Runnable MOZ_INIT_OUTSIDE_CTOR WorkerPrivate* mWorkerPrivate; public: - ClientNavigateRunnable(uint64_t aWindowId, const nsAString& aUrl, + ClientNavigateRunnable(uint64_t aWindowId, + const nsAString& aUrl, const nsAString& aScope, PromiseWorkerProxy* aPromiseProxy) - : mWindowId(aWindowId) + : mozilla::Runnable("ClientNavigateRunnable") + , mWindowId(aWindowId) , mUrl(aUrl) , mScope(aScope) , mPromiseProxy(aPromiseProxy) diff --git a/dom/workers/WorkerDebuggerManager.cpp b/dom/workers/WorkerDebuggerManager.cpp index dfd7e5acc350..210c3a0b1f3c 100644 --- a/dom/workers/WorkerDebuggerManager.cpp +++ b/dom/workers/WorkerDebuggerManager.cpp @@ -24,8 +24,9 @@ class RegisterDebuggerMainThreadRunnable final : public mozilla::Runnable public: RegisterDebuggerMainThreadRunnable(WorkerPrivate* aWorkerPrivate, bool aNotifyListeners) - : mWorkerPrivate(aWorkerPrivate), - mNotifyListeners(aNotifyListeners) + : mozilla::Runnable("RegisterDebuggerMainThreadRunnable") + , mWorkerPrivate(aWorkerPrivate) + , mNotifyListeners(aNotifyListeners) { } private: @@ -49,7 +50,8 @@ class UnregisterDebuggerMainThreadRunnable final : public mozilla::Runnable public: explicit UnregisterDebuggerMainThreadRunnable(WorkerPrivate* aWorkerPrivate) - : mWorkerPrivate(aWorkerPrivate) + : mozilla::Runnable("UnregisterDebuggerMainThreadRunnable") + , mWorkerPrivate(aWorkerPrivate) { } private: diff --git a/dom/workers/WorkerPrivate.cpp b/dom/workers/WorkerPrivate.cpp index e50a456c9785..711645a4abfd 100644 --- a/dom/workers/WorkerPrivate.cpp +++ b/dom/workers/WorkerPrivate.cpp @@ -353,6 +353,7 @@ class MainThreadReleaseRunnable final : public Runnable public: MainThreadReleaseRunnable(nsTArray>& aDoomed, nsCOMPtr& aLoadGroupToCancel) + : mozilla::Runnable("MainThreadReleaseRunnable") { mDoomed.SwapElements(aDoomed); mLoadGroupToCancel.swap(aLoadGroupToCancel); @@ -427,7 +428,8 @@ class TopLevelWorkerFinishedRunnable final : public Runnable public: explicit TopLevelWorkerFinishedRunnable(WorkerPrivate* aFinishedWorker) - : mFinishedWorker(aFinishedWorker) + : mozilla::Runnable("TopLevelWorkerFinishedRunnable") + , mFinishedWorker(aFinishedWorker) { aFinishedWorker->AssertIsOnWorkerThread(); } @@ -2578,11 +2580,13 @@ WorkerPrivate::MemoryReporter::FinishCollectRunnable::FinishCollectRunnable( nsISupports* aHandlerData, bool aAnonymize, const nsACString& aPath) - : mHandleReport(aHandleReport), - mHandlerData(aHandlerData), - mAnonymize(aAnonymize), - mSuccess(false), - mCxStats(aPath) + : mozilla::Runnable( + "dom::workers::WorkerPrivate::MemoryReporter::FinishCollectRunnable") + , mHandleReport(aHandleReport) + , mHandlerData(aHandlerData) + , mAnonymize(aAnonymize) + , mSuccess(false) + , mCxStats(aPath) { } NS_IMETHODIMP @@ -4092,8 +4096,9 @@ class PostDebuggerMessageRunnable final : public Runnable public: PostDebuggerMessageRunnable(WorkerDebugger* aDebugger, const nsAString& aMessage) - : mDebugger(aDebugger), - mMessage(aMessage) + : mozilla::Runnable("PostDebuggerMessageRunnable") + , mDebugger(aDebugger) + , mMessage(aMessage) { } @@ -4119,12 +4124,14 @@ class ReportDebuggerErrorRunnable final : public Runnable public: ReportDebuggerErrorRunnable(WorkerDebugger* aDebugger, - const nsAString& aFilename, uint32_t aLineno, + const nsAString& aFilename, + uint32_t aLineno, const nsAString& aMessage) - : mDebugger(aDebugger), - mFilename(aFilename), - mLineno(aLineno), - mMessage(aMessage) + : mozilla::Runnable("ReportDebuggerErrorRunnable") + , mDebugger(aDebugger) + , mFilename(aFilename) + , mLineno(aLineno) + , mMessage(aMessage) { } diff --git a/dom/workers/WorkerRunnable.cpp b/dom/workers/WorkerRunnable.cpp index fd998b24e7e1..e6b6ca775574 100644 --- a/dom/workers/WorkerRunnable.cpp +++ b/dom/workers/WorkerRunnable.cpp @@ -559,10 +559,12 @@ WorkerControlRunnable::DispatchInternal() NS_IMPL_ISUPPORTS_INHERITED0(WorkerControlRunnable, WorkerRunnable) -WorkerMainThreadRunnable::WorkerMainThreadRunnable(WorkerPrivate* aWorkerPrivate, - const nsACString& aTelemetryKey) -: mWorkerPrivate(aWorkerPrivate) -, mTelemetryKey(aTelemetryKey) +WorkerMainThreadRunnable::WorkerMainThreadRunnable( + WorkerPrivate* aWorkerPrivate, + const nsACString& aTelemetryKey) + : mozilla::Runnable("dom::workers::WorkerMainThreadRunnable") + , mWorkerPrivate(aWorkerPrivate) + , mTelemetryKey(aTelemetryKey) { mWorkerPrivate->AssertIsOnWorkerThread(); } @@ -661,8 +663,10 @@ WorkerSameThreadRunnable::PostDispatch(WorkerPrivate* aWorkerPrivate, } } -WorkerProxyToMainThreadRunnable::WorkerProxyToMainThreadRunnable(WorkerPrivate* aWorkerPrivate) - : mWorkerPrivate(aWorkerPrivate) +WorkerProxyToMainThreadRunnable::WorkerProxyToMainThreadRunnable( + WorkerPrivate* aWorkerPrivate) + : mozilla::Runnable("dom::workers::WorkerProxyToMainThreadRunnable") + , mWorkerPrivate(aWorkerPrivate) { MOZ_ASSERT(mWorkerPrivate); mWorkerPrivate->AssertIsOnWorkerThread(); diff --git a/dom/workers/WorkerScope.cpp b/dom/workers/WorkerScope.cpp index fd3e0ed7e1e1..5f978d4774d1 100644 --- a/dom/workers/WorkerScope.cpp +++ b/dom/workers/WorkerScope.cpp @@ -651,7 +651,8 @@ class ReportFetchListenerWarningRunnable final : public Runnable public: explicit ReportFetchListenerWarningRunnable(const nsString& aScope) - : mScope(NS_ConvertUTF16toUTF8(aScope)) + : mozilla::Runnable("ReportFetchListenerWarningRunnable") + , mScope(NS_ConvertUTF16toUTF8(aScope)) { WorkerPrivate* workerPrivate = GetCurrentThreadWorkerPrivate(); MOZ_ASSERT(workerPrivate); @@ -759,7 +760,8 @@ class WorkerScopeSkipWaitingRunnable final : public Runnable public: WorkerScopeSkipWaitingRunnable(PromiseWorkerProxy* aPromiseProxy, const nsCString& aScope) - : mPromiseProxy(aPromiseProxy) + : mozilla::Runnable("WorkerScopeSkipWaitingRunnable") + , mPromiseProxy(aPromiseProxy) , mScope(aScope) { MOZ_ASSERT(aPromiseProxy); diff --git a/dom/xbl/nsBindingManager.cpp b/dom/xbl/nsBindingManager.cpp index 03b492cc4942..9102ebcfebee 100644 --- a/dom/xbl/nsBindingManager.cpp +++ b/dom/xbl/nsBindingManager.cpp @@ -390,8 +390,12 @@ nsBindingManager::DoProcessAttachedQueue() nsresult rv = NS_ERROR_FAILURE; nsCOMPtr timer = do_CreateInstance(NS_TIMER_CONTRACTID); if (timer) { - rv = timer->InitWithFuncCallback(PostPAQEventCallback, this, - 100, nsITimer::TYPE_ONE_SHOT); + rv = timer->InitWithNamedFuncCallback( + PostPAQEventCallback, + this, + 100, + nsITimer::TYPE_ONE_SHOT, + "nsBindingManager::DoProcessAttachedQueue"); } if (NS_SUCCEEDED(rv)) { NS_ADDREF_THIS(); diff --git a/dom/xhr/XMLHttpRequestMainThread.cpp b/dom/xhr/XMLHttpRequestMainThread.cpp index 79ebe8d8c9b0..e2741136098b 100644 --- a/dom/xhr/XMLHttpRequestMainThread.cpp +++ b/dom/xhr/XMLHttpRequestMainThread.cpp @@ -145,7 +145,11 @@ NS_IMPL_ISUPPORTS(nsXHRParseEndListener, nsIDOMEventListener) class nsResumeTimeoutsEvent : public Runnable { public: - explicit nsResumeTimeoutsEvent(nsPIDOMWindowInner* aWindow) : mWindow(aWindow) {} + explicit nsResumeTimeoutsEvent(nsPIDOMWindowInner* aWindow) + : Runnable("dom::nsResumeTimeoutsEvent") + , mWindow(aWindow) + { + } NS_IMETHOD Run() override { @@ -3123,9 +3127,11 @@ XMLHttpRequestMainThread::SendInternal(const BodyExtractorBase* aBody) } else { // Defer the actual sending of async events just in case listeners // are attached after the send() method is called. - return DispatchToMainThread(NewRunnableMethod(this, - &XMLHttpRequestMainThread::CloseRequestWithError, - ProgressEventType::error)); + return DispatchToMainThread(NewRunnableMethod( + "dom::XMLHttpRequestMainThread::CloseRequestWithError", + this, + &XMLHttpRequestMainThread::CloseRequestWithError, + ProgressEventType::error)); } } diff --git a/dom/xhr/XMLHttpRequestWorker.cpp b/dom/xhr/XMLHttpRequestWorker.cpp index f9cd680fce3e..722361a15583 100644 --- a/dom/xhr/XMLHttpRequestWorker.cpp +++ b/dom/xhr/XMLHttpRequestWorker.cpp @@ -357,7 +357,8 @@ class AsyncTeardownRunnable final : public Runnable public: explicit AsyncTeardownRunnable(Proxy* aProxy) - : mProxy(aProxy) + : Runnable("dom::AsyncTeardownRunnable") + , mProxy(aProxy) { MOZ_ASSERT(aProxy); } @@ -438,9 +439,13 @@ class LoadStartDetectionRunnable final : public Runnable, public: LoadStartDetectionRunnable(Proxy* aProxy, XMLHttpRequestWorker* aXHRPrivate) - : mWorkerPrivate(aProxy->mWorkerPrivate), mProxy(aProxy), mXHR(aProxy->mXHR), - mXMLHttpRequestPrivate(aXHRPrivate), mChannelId(mProxy->mInnerChannelId), - mReceivedLoadStart(false) + : Runnable("dom::LoadStartDetectionRunnable") + , mWorkerPrivate(aProxy->mWorkerPrivate) + , mProxy(aProxy) + , mXHR(aProxy->mXHR) + , mXMLHttpRequestPrivate(aXHRPrivate) + , mChannelId(mProxy->mInnerChannelId) + , mReceivedLoadStart(false) { AssertIsOnMainThread(); mEventType.AssignWithConversion(sEventStrings[STRING_loadstart]); diff --git a/dom/xml/XMLStylesheetProcessingInstruction.cpp b/dom/xml/XMLStylesheetProcessingInstruction.cpp index 3d94e179b48a..7c407eb98da4 100644 --- a/dom/xml/XMLStylesheetProcessingInstruction.cpp +++ b/dom/xml/XMLStylesheetProcessingInstruction.cpp @@ -63,7 +63,8 @@ XMLStylesheetProcessingInstruction::BindToTree(nsIDocument* aDocument, void (XMLStylesheetProcessingInstruction::*update)() = &XMLStylesheetProcessingInstruction::UpdateStyleSheetInternal; - nsContentUtils::AddScriptRunner(NewRunnableMethod(this, update)); + nsContentUtils::AddScriptRunner(NewRunnableMethod( + "dom::XMLStylesheetProcessingInstruction::BindToTree", this, update)); return rv; } diff --git a/dom/xml/nsXMLContentSink.cpp b/dom/xml/nsXMLContentSink.cpp index 19b0cc8ee8ec..3bd8a5dff95d 100644 --- a/dom/xml/nsXMLContentSink.cpp +++ b/dom/xml/nsXMLContentSink.cpp @@ -1583,8 +1583,10 @@ nsXMLContentSink::ContinueInterruptedParsingIfEnabled() void nsXMLContentSink::ContinueInterruptedParsingAsync() { - nsCOMPtr ev = NewRunnableMethod(this, - &nsXMLContentSink::ContinueInterruptedParsingIfEnabled); + nsCOMPtr ev = + NewRunnableMethod("nsXMLContentSink::ContinueInterruptedParsingIfEnabled", + this, + &nsXMLContentSink::ContinueInterruptedParsingIfEnabled); NS_DispatchToCurrentThread(ev); } diff --git a/dom/xml/nsXMLPrettyPrinter.cpp b/dom/xml/nsXMLPrettyPrinter.cpp index 1582cd92a2a8..3393335de92d 100644 --- a/dom/xml/nsXMLPrettyPrinter.cpp +++ b/dom/xml/nsXMLPrettyPrinter.cpp @@ -193,8 +193,8 @@ nsXMLPrettyPrinter::MaybeUnhook(nsIContent* aContent) // since AddScriptRunner _could_ in theory run us // synchronously mUnhookPending = true; - nsContentUtils::AddScriptRunner( - NewRunnableMethod(this, &nsXMLPrettyPrinter::Unhook)); + nsContentUtils::AddScriptRunner(NewRunnableMethod( + "nsXMLPrettyPrinter::Unhook", this, &nsXMLPrettyPrinter::Unhook)); } } diff --git a/dom/xslt/xslt/txMozillaXSLTProcessor.cpp b/dom/xslt/xslt/txMozillaXSLTProcessor.cpp index 9424d1110593..c3f4c289a717 100644 --- a/dom/xslt/xslt/txMozillaXSLTProcessor.cpp +++ b/dom/xslt/xslt/txMozillaXSLTProcessor.cpp @@ -546,7 +546,8 @@ public: RefPtr mProcessor; explicit nsTransformBlockerEvent(txMozillaXSLTProcessor* processor) - : mProcessor(processor) + : mozilla::Runnable("nsTransformBlockerEvent") + , mProcessor(processor) {} ~nsTransformBlockerEvent() diff --git a/dom/xul/XULDocument.cpp b/dom/xul/XULDocument.cpp index 1fdc38052edc..5106b595c362 100644 --- a/dom/xul/XULDocument.cpp +++ b/dom/xul/XULDocument.cpp @@ -1039,10 +1039,14 @@ XULDocument::AttributeChanged(nsIDocument* aDocument, if (ShouldPersistAttribute(aElement, aAttribute) && !persist.IsEmpty() && // XXXldb This should check that it's a token, not just a substring. persist.Find(nsDependentAtomString(aAttribute)) >= 0) { - nsContentUtils::AddScriptRunner(NewRunnableMethod - - (this, &XULDocument::DoPersist, aElement, kNameSpaceID_None, - aAttribute)); + nsContentUtils::AddScriptRunner( + NewRunnableMethod( + "dom::XULDocument::DoPersist", + this, + &XULDocument::DoPersist, + aElement, + kNameSpaceID_None, + aAttribute)); } } @@ -3144,8 +3148,10 @@ XULDocument::MaybeBroadcast() mDelayedBroadcasters.Length())) { if (!nsContentUtils::IsSafeToRunScript()) { if (!mInDestructor) { - nsContentUtils::AddScriptRunner( - NewRunnableMethod(this, &XULDocument::MaybeBroadcast)); + nsContentUtils::AddScriptRunner( + NewRunnableMethod("dom::XULDocument::MaybeBroadcast", + this, + &XULDocument::MaybeBroadcast)); } return; } diff --git a/dom/xul/nsXULElement.cpp b/dom/xul/nsXULElement.cpp index 80b7a33b4f19..ee57baf89f04 100644 --- a/dom/xul/nsXULElement.cpp +++ b/dom/xul/nsXULElement.cpp @@ -793,7 +793,11 @@ IsInFeedSubscribeLine(nsXULElement* aElement) class XULInContentErrorReporter : public Runnable { public: - explicit XULInContentErrorReporter(nsIDocument* aDocument) : mDocument(aDocument) {} + explicit XULInContentErrorReporter(nsIDocument* aDocument) + : mozilla::Runnable("XULInContentErrorReporter") + , mDocument(aDocument) + { + } NS_IMETHOD Run() override { @@ -1873,7 +1877,8 @@ class SetDrawInTitleBarEvent : public Runnable { public: SetDrawInTitleBarEvent(nsIWidget* aWidget, bool aState) - : mWidget(aWidget) + : mozilla::Runnable("SetDrawInTitleBarEvent") + , mWidget(aWidget) , mState(aState) {} @@ -1928,19 +1933,25 @@ nsXULElement::UpdateBrightTitlebarForeground(nsIDocument* aDoc) class MarginSetter : public Runnable { public: - explicit MarginSetter(nsIWidget* aWidget) : - mWidget(aWidget), mMargin(-1, -1, -1, -1) - {} - MarginSetter(nsIWidget *aWidget, const LayoutDeviceIntMargin& aMargin) : - mWidget(aWidget), mMargin(aMargin) - {} + explicit MarginSetter(nsIWidget* aWidget) + : mozilla::Runnable("MarginSetter") + , mWidget(aWidget) + , mMargin(-1, -1, -1, -1) + { + } + MarginSetter(nsIWidget* aWidget, const LayoutDeviceIntMargin& aMargin) + : mozilla::Runnable("MarginSetter") + , mWidget(aWidget) + , mMargin(aMargin) + { + } - NS_IMETHOD Run() override - { - // SetNonClientMargins can dispatch native events, hence doing - // it off a script runner. - mWidget->SetNonClientMargins(mMargin); - return NS_OK; + NS_IMETHOD Run() override + { + // SetNonClientMargins can dispatch native events, hence doing + // it off a script runner. + mWidget->SetNonClientMargins(mMargin); + return NS_OK; } private: @@ -2629,21 +2640,25 @@ class NotifyOffThreadScriptCompletedRunnable : public Runnable void *mToken; public: - NotifyOffThreadScriptCompletedRunnable(nsIOffThreadScriptReceiver* aReceiver, - void *aToken) - : mReceiver(aReceiver), mToken(aToken) - {} + NotifyOffThreadScriptCompletedRunnable(nsIOffThreadScriptReceiver* aReceiver, + void* aToken) + : mozilla::Runnable("NotifyOffThreadScriptCompletedRunnable") + , mReceiver(aReceiver) + , mToken(aToken) + { + } - static void NoteReceiver(nsIOffThreadScriptReceiver* aReceiver) { - if (!sSetupClearOnShutdown) { - ClearOnShutdown(&sReceivers); - sSetupClearOnShutdown = true; - sReceivers = new nsTArray>(); - } + static void NoteReceiver(nsIOffThreadScriptReceiver* aReceiver) + { + if (!sSetupClearOnShutdown) { + ClearOnShutdown(&sReceivers); + sSetupClearOnShutdown = true; + sReceivers = new nsTArray>(); + } - // If we ever crash here, it's because we tried to lazy compile script - // too late in shutdown. - sReceivers->AppendElement(aReceiver); + // If we ever crash here, it's because we tried to lazy compile script + // too late in shutdown. + sReceivers->AppendElement(aReceiver); } NS_DECL_NSIRUNNABLE diff --git a/dom/xul/templates/nsXULTemplateBuilder.cpp b/dom/xul/templates/nsXULTemplateBuilder.cpp index 7d3317f41e41..eb6c8b43797c 100644 --- a/dom/xul/templates/nsXULTemplateBuilder.cpp +++ b/dom/xul/templates/nsXULTemplateBuilder.cpp @@ -1206,14 +1206,18 @@ nsXULTemplateBuilder::AttributeChanged(nsIDocument* aDocument, // case we may need to nuke and rebuild the entire content model // beneath the element. if (aAttribute == nsGkAtoms::ref) - nsContentUtils::AddScriptRunner( - NewRunnableMethod(this, &nsXULTemplateBuilder::RunnableRebuild)); + nsContentUtils::AddScriptRunner( + NewRunnableMethod("nsXULTemplateBuilder::RunnableRebuild", + this, + &nsXULTemplateBuilder::RunnableRebuild)); // Check for a change to the 'datasources' attribute. If so, setup // mDB by parsing the new value and rebuild. else if (aAttribute == nsGkAtoms::datasources) { - nsContentUtils::AddScriptRunner( - NewRunnableMethod(this, &nsXULTemplateBuilder::RunnableLoadAndRebuild)); + nsContentUtils::AddScriptRunner( + NewRunnableMethod("nsXULTemplateBuilder::RunnableLoadAndRebuild", + this, + &nsXULTemplateBuilder::RunnableLoadAndRebuild)); } } } @@ -1233,7 +1237,9 @@ nsXULTemplateBuilder::ContentRemoved(nsIDocument* aDocument, // Pass false to Uninit since content is going away anyway nsContentUtils::AddScriptRunner( - NewRunnableMethod(this, &nsXULTemplateBuilder::UninitFalse)); + NewRunnableMethod("nsXULTemplateBuilder::UninitFalse", + this, + &nsXULTemplateBuilder::UninitFalse)); MOZ_ASSERT(aDocument == mObservedDocument); StopObserving(); @@ -1272,7 +1278,9 @@ nsXULTemplateBuilder::NodeWillBeDestroyed(const nsINode* aNode) mCompDB = nullptr; nsContentUtils::AddScriptRunner( - NewRunnableMethod(this, &nsXULTemplateBuilder::UninitTrue)); + NewRunnableMethod("nsXULTemplateBuilder::UninitTrue", + this, + &nsXULTemplateBuilder::UninitTrue)); } diff --git a/editor/composer/nsEditingSession.cpp b/editor/composer/nsEditingSession.cpp index b95621b61d8a..e00405a4a417 100644 --- a/editor/composer/nsEditingSession.cpp +++ b/editor/composer/nsEditingSession.cpp @@ -974,10 +974,12 @@ nsEditingSession::EndDocumentLoad(nsIWebProgress *aWebProgress, NS_ENSURE_SUCCESS(rv, rv); mEditorStatus = eEditorCreationInProgress; - mLoadBlankDocTimer->InitWithFuncCallback( - nsEditingSession::TimerCallback, - static_cast (mDocShell.get()), - 10, nsITimer::TYPE_ONE_SHOT); + mLoadBlankDocTimer->InitWithNamedFuncCallback( + nsEditingSession::TimerCallback, + static_cast(mDocShell.get()), + 10, + nsITimer::TYPE_ONE_SHOT, + "nsEditingSession::EndDocumentLoad"); } } } diff --git a/editor/composer/nsEditorSpellCheck.cpp b/editor/composer/nsEditorSpellCheck.cpp index afcf48c54ab6..26b81b7b0a94 100644 --- a/editor/composer/nsEditorSpellCheck.cpp +++ b/editor/composer/nsEditorSpellCheck.cpp @@ -301,7 +301,10 @@ class CallbackCaller final : public Runnable { public: explicit CallbackCaller(nsIEditorSpellCheckCallback* aCallback) - : mCallback(aCallback) {} + : mozilla::Runnable("CallbackCaller") + , mCallback(aCallback) + { + } ~CallbackCaller() { diff --git a/editor/libeditor/EditorBase.cpp b/editor/libeditor/EditorBase.cpp index 22a9f0ffdc65..f72d31ec2dd8 100644 --- a/editor/libeditor/EditorBase.cpp +++ b/editor/libeditor/EditorBase.cpp @@ -1832,7 +1832,8 @@ public: EditorInputEventDispatcher(EditorBase* aEditorBase, nsIContent* aTarget, bool aIsComposing) - : mEditorBase(aEditorBase) + : Runnable("EditorInputEventDispatcher") + , mEditorBase(aEditorBase) , mTarget(aTarget) , mIsComposing(aIsComposing) { diff --git a/editor/libeditor/HTMLEditRules.cpp b/editor/libeditor/HTMLEditRules.cpp index 84ba73db4cca..f9617ff08b6c 100644 --- a/editor/libeditor/HTMLEditRules.cpp +++ b/editor/libeditor/HTMLEditRules.cpp @@ -8955,7 +8955,9 @@ NS_IMETHODIMP HTMLEditRules::DocumentModified() { nsContentUtils::AddScriptRunner( - NewRunnableMethod(this, &HTMLEditRules::DocumentModifiedWorker)); + NewRunnableMethod("HTMLEditRules::DocumentModifiedWorker", + this, + &HTMLEditRules::DocumentModifiedWorker)); return NS_OK; } diff --git a/editor/libeditor/HTMLEditor.cpp b/editor/libeditor/HTMLEditor.cpp index c8692c0e1924..4576027d688b 100644 --- a/editor/libeditor/HTMLEditor.cpp +++ b/editor/libeditor/HTMLEditor.cpp @@ -3257,8 +3257,10 @@ HTMLEditor::DoContentInserted(nsIDocument* aDocument, nsCOMPtr kungFuDeathGrip(this); if (ShouldReplaceRootElement()) { - nsContentUtils::AddScriptRunner(NewRunnableMethod( - this, &HTMLEditor::ResetRootElementAndEventTarget)); + nsContentUtils::AddScriptRunner( + NewRunnableMethod("HTMLEditor::ResetRootElementAndEventTarget", + this, + &HTMLEditor::ResetRootElementAndEventTarget)); } // We don't need to handle our own modifications else if (!mAction && (aContainer ? aContainer->IsEditable() : aDocument->IsEditable())) { @@ -3305,8 +3307,10 @@ HTMLEditor::ContentRemoved(nsIDocument* aDocument, nsCOMPtr kungFuDeathGrip(this); if (SameCOMIdentity(aChild, mRootElement)) { - nsContentUtils::AddScriptRunner(NewRunnableMethod( - this, &HTMLEditor::ResetRootElementAndEventTarget)); + nsContentUtils::AddScriptRunner( + NewRunnableMethod("HTMLEditor::ResetRootElementAndEventTarget", + this, + &HTMLEditor::ResetRootElementAndEventTarget)); } // We don't need to handle our own modifications else if (!mAction && (aContainer ? aContainer->IsEditable() : aDocument->IsEditable())) { diff --git a/extensions/auth/nsHttpNegotiateAuth.cpp b/extensions/auth/nsHttpNegotiateAuth.cpp index 1f7f241cade1..e1fd1af9ac83 100644 --- a/extensions/auth/nsHttpNegotiateAuth.cpp +++ b/extensions/auth/nsHttpNegotiateAuth.cpp @@ -330,26 +330,26 @@ class GetNextTokenRunnable final : public mozilla::Runnable { ~GetNextTokenRunnable() override = default; public: - GetNextTokenRunnable(nsIHttpAuthenticableChannel *authChannel, - const char *challenge, - bool isProxyAuth, - const char16_t *domain, - const char16_t *username, - const char16_t *password, - nsISupports *sessionState, - nsISupports *continuationState, - GetNextTokenCompleteEvent *aCompleteEvent - ) - : mAuthChannel(authChannel) - , mChallenge(challenge) - , mIsProxyAuth(isProxyAuth) - , mDomain(domain) - , mUsername(username) - , mPassword(password) - , mSessionState(sessionState) - , mContinuationState(continuationState) - , mCompleteEvent(aCompleteEvent) - { + GetNextTokenRunnable(nsIHttpAuthenticableChannel* authChannel, + const char* challenge, + bool isProxyAuth, + const char16_t* domain, + const char16_t* username, + const char16_t* password, + nsISupports* sessionState, + nsISupports* continuationState, + GetNextTokenCompleteEvent* aCompleteEvent) + : mozilla::Runnable("GetNextTokenRunnable") + , mAuthChannel(authChannel) + , mChallenge(challenge) + , mIsProxyAuth(isProxyAuth) + , mDomain(domain) + , mUsername(username) + , mPassword(password) + , mSessionState(sessionState) + , mContinuationState(continuationState) + , mCompleteEvent(aCompleteEvent) + { } NS_IMETHODIMP Run() override diff --git a/extensions/spellcheck/src/mozPersonalDictionary.cpp b/extensions/spellcheck/src/mozPersonalDictionary.cpp index 19a0af4b0ab1..0f3bff145e9a 100644 --- a/extensions/spellcheck/src/mozPersonalDictionary.cpp +++ b/extensions/spellcheck/src/mozPersonalDictionary.cpp @@ -53,7 +53,9 @@ NS_INTERFACE_MAP_END class mozPersonalDictionaryLoader final : public mozilla::Runnable { public: - explicit mozPersonalDictionaryLoader(mozPersonalDictionary *dict) : mDict(dict) + explicit mozPersonalDictionaryLoader(mozPersonalDictionary* dict) + : mozilla::Runnable("mozPersonalDictionaryLoader") + , mDict(dict) { } @@ -76,12 +78,13 @@ private: class mozPersonalDictionarySave final : public mozilla::Runnable { public: - explicit mozPersonalDictionarySave(mozPersonalDictionary *aDict, + explicit mozPersonalDictionarySave(mozPersonalDictionary* aDict, nsCOMPtr aFile, - nsTArray &&aDictWords) - : mDictWords(aDictWords), - mFile(aFile), - mDict(aDict) + nsTArray&& aDictWords) + : mozilla::Runnable("mozPersonalDictionarySave") + , mDictWords(aDictWords) + , mFile(aFile) + , mDict(aDict) { } diff --git a/gfx/ipc/GPUChild.cpp b/gfx/ipc/GPUChild.cpp index 4fdaa2ad220e..f40cf163304b 100644 --- a/gfx/ipc/GPUChild.cpp +++ b/gfx/ipc/GPUChild.cpp @@ -269,7 +269,8 @@ class DeferredDeleteGPUChild : public Runnable { public: explicit DeferredDeleteGPUChild(UniquePtr&& aChild) - : mChild(Move(aChild)) + : Runnable("gfx::DeferredDeleteGPUChild") + , mChild(Move(aChild)) { } diff --git a/gfx/ipc/GPUParent.cpp b/gfx/ipc/GPUParent.cpp index 2bb0057e791f..bb5713b03bf1 100644 --- a/gfx/ipc/GPUParent.cpp +++ b/gfx/ipc/GPUParent.cpp @@ -127,9 +127,10 @@ void GPUParent::NotifyDeviceReset() { if (!NS_IsMainThread()) { - NS_DispatchToMainThread(NS_NewRunnableFunction([] () -> void { - GPUParent::GetSingleton()->NotifyDeviceReset(); - })); + NS_DispatchToMainThread( + NS_NewRunnableFunction("gfx::GPUParent::NotifyDeviceReset", []() -> void { + GPUParent::GetSingleton()->NotifyDeviceReset(); + })); return; } diff --git a/gfx/ipc/VsyncBridgeChild.cpp b/gfx/ipc/VsyncBridgeChild.cpp index a4be827ef9ac..a5bff3725301 100644 --- a/gfx/ipc/VsyncBridgeChild.cpp +++ b/gfx/ipc/VsyncBridgeChild.cpp @@ -29,7 +29,10 @@ VsyncBridgeChild::Create(RefPtr aThread, RefPtr child = new VsyncBridgeChild(aThread, aProcessToken); RefPtr task = NewRunnableMethod&&>( - child, &VsyncBridgeChild::Open, Move(aEndpoint)); + "gfx::VsyncBridgeChild::Open", + child, + &VsyncBridgeChild::Open, + Move(aEndpoint)); aThread->GetThread()->Dispatch(task.forget(), nsIThread::DISPATCH_NORMAL); return child; @@ -58,9 +61,10 @@ public: NotifyVsyncTask(RefPtr aVsyncBridge, TimeStamp aTimeStamp, const uint64_t& aLayersId) - : mVsyncBridge(aVsyncBridge), - mTimeStamp(aTimeStamp), - mLayersId(aLayersId) + : Runnable("gfx::NotifyVsyncTask") + , mVsyncBridge(aVsyncBridge) + , mTimeStamp(aTimeStamp) + , mLayersId(aLayersId) {} NS_IMETHOD Run() override { @@ -106,7 +110,8 @@ void VsyncBridgeChild::Close() { if (!IsOnVsyncIOThread()) { - mLoop->PostTask(NewRunnableMethod(this, &VsyncBridgeChild::Close)); + mLoop->PostTask(NewRunnableMethod( + "gfx::VsyncBridgeChild::Close", this, &VsyncBridgeChild::Close)); return; } diff --git a/gfx/ipc/VsyncBridgeParent.cpp b/gfx/ipc/VsyncBridgeParent.cpp index 5b59f538a99e..995c461b477e 100644 --- a/gfx/ipc/VsyncBridgeParent.cpp +++ b/gfx/ipc/VsyncBridgeParent.cpp @@ -15,7 +15,10 @@ VsyncBridgeParent::Start(Endpoint&& aEndpoint) RefPtr parent = new VsyncBridgeParent(); RefPtr task = NewRunnableMethod&&>( - parent, &VsyncBridgeParent::Open, Move(aEndpoint)); + "gfx::VsyncBridgeParent::Open", + parent, + &VsyncBridgeParent::Open, + Move(aEndpoint)); CompositorThreadHolder::Loop()->PostTask(task.forget()); return parent; @@ -56,7 +59,9 @@ VsyncBridgeParent::Shutdown() { MessageLoop* ccloop = CompositorThreadHolder::Loop(); if (MessageLoop::current() != ccloop) { - ccloop->PostTask(NewRunnableMethod(this, &VsyncBridgeParent::ShutdownImpl)); + ccloop->PostTask(NewRunnableMethod("gfx::VsyncBridgeParent::ShutdownImpl", + this, + &VsyncBridgeParent::ShutdownImpl)); return; } diff --git a/gfx/ipc/VsyncIOThreadHolder.cpp b/gfx/ipc/VsyncIOThreadHolder.cpp index 8730b72131eb..5c9df5efc998 100644 --- a/gfx/ipc/VsyncIOThreadHolder.cpp +++ b/gfx/ipc/VsyncIOThreadHolder.cpp @@ -25,7 +25,8 @@ VsyncIOThreadHolder::~VsyncIOThreadHolder() if (NS_IsMainThread()) { mThread->AsyncShutdown(); } else { - NS_DispatchToMainThread(NewRunnableMethod(mThread, &nsIThread::AsyncShutdown)); + NS_DispatchToMainThread(NewRunnableMethod( + "nsIThread::AsyncShutdown", mThread, &nsIThread::AsyncShutdown)); } } diff --git a/gfx/layers/AsyncCanvasRenderer.cpp b/gfx/layers/AsyncCanvasRenderer.cpp index b1e37e752311..188b11cf713d 100644 --- a/gfx/layers/AsyncCanvasRenderer.cpp +++ b/gfx/layers/AsyncCanvasRenderer.cpp @@ -47,7 +47,8 @@ AsyncCanvasRenderer::NotifyElementAboutAttributesChanged() { public: explicit Runnable(AsyncCanvasRenderer* aRenderer) - : mRenderer(aRenderer) + : mozilla::Runnable("Runnable") + , mRenderer(aRenderer) {} NS_IMETHOD Run() override @@ -82,7 +83,8 @@ AsyncCanvasRenderer::NotifyElementAboutInvalidation() { public: explicit Runnable(AsyncCanvasRenderer* aRenderer) - : mRenderer(aRenderer) + : mozilla::Runnable("Runnable") + , mRenderer(aRenderer) {} NS_IMETHOD Run() override diff --git a/gfx/layers/ImageContainer.h b/gfx/layers/ImageContainer.h index 3e01b01b7cc3..66d645051b60 100644 --- a/gfx/layers/ImageContainer.h +++ b/gfx/layers/ImageContainer.h @@ -58,7 +58,12 @@ public: */ class SurfaceReleaser : public mozilla::Runnable { public: - explicit SurfaceReleaser(RawRef aRef) : mRef(aRef) {} + explicit SurfaceReleaser(RawRef aRef) + : mozilla::Runnable( + "nsAutoRefTraits::SurfaceReleaser") + , mRef(aRef) + { + } NS_IMETHOD Run() override { mRef->Release(); return NS_OK; @@ -96,7 +101,12 @@ public: */ class SurfaceReleaser : public mozilla::Runnable { public: - explicit SurfaceReleaser(RawRef aRef) : mRef(aRef) {} + explicit SurfaceReleaser(RawRef aRef) + : mozilla::Runnable( + "nsAutoRefTraits::SurfaceReleaser") + , mRef(aRef) + { + } NS_IMETHOD Run() override { mRef->Release(); return NS_OK; diff --git a/gfx/layers/LayerScope.cpp b/gfx/layers/LayerScope.cpp index d959b64eea9c..71dcc33fe0b5 100644 --- a/gfx/layers/LayerScope.cpp +++ b/gfx/layers/LayerScope.cpp @@ -344,9 +344,10 @@ private: class CreateServerSocketRunnable : public Runnable { public: - explicit CreateServerSocketRunnable(LayerScopeManager *aLayerScopeManager) - : mLayerScopeManager(aLayerScopeManager) - { + explicit CreateServerSocketRunnable(LayerScopeManager* aLayerScopeManager) + : Runnable("layers::LayerScopeManager::CreateServerSocketRunnable") + , mLayerScopeManager(aLayerScopeManager) + { } NS_IMETHOD Run() override { mLayerScopeManager->mWebSocketManager = diff --git a/gfx/layers/apz/src/APZCTreeManager.cpp b/gfx/layers/apz/src/APZCTreeManager.cpp index 10a99cccb7d3..1fea90b789d8 100644 --- a/gfx/layers/apz/src/APZCTreeManager.cpp +++ b/gfx/layers/apz/src/APZCTreeManager.cpp @@ -176,9 +176,10 @@ APZCTreeManager::APZCTreeManager() mApzcTreeLog("apzctree") { RefPtr self(this); - NS_DispatchToMainThread(NS_NewRunnableFunction([self] { - self->mFlushObserver = new CheckerboardFlushObserver(self); - })); + NS_DispatchToMainThread( + NS_NewRunnableFunction("layers::APZCTreeManager::APZCTreeManager", [self] { + self->mFlushObserver = new CheckerboardFlushObserver(self); + })); AsyncPanZoomController::InitializeGlobalState(); mApzcTreeLog.ConditionOnPrefFunction(gfxPrefs::APZPrintTree); #if defined(MOZ_WIDGET_ANDROID) @@ -854,8 +855,10 @@ APZCTreeManager::FlushApzRepaints(uint64_t aLayersId) const LayerTreeState* state = CompositorBridgeParent::GetIndirectShadowTree(aLayersId); MOZ_ASSERT(state && state->mController); - state->mController->DispatchToRepaintThread(NewRunnableMethod( - state->mController, &GeckoContentController::NotifyFlushComplete)); + state->mController->DispatchToRepaintThread( + NewRunnableMethod("layers::GeckoContentController::NotifyFlushComplete", + state->mController, + &GeckoContentController::NotifyFlushComplete)); } nsEventStatus @@ -1580,7 +1583,8 @@ APZCTreeManager::ClearTree() // Ensure that no references to APZCs are alive in any lingering input // blocks. This breaks cycles from InputBlockState::mTargetApzc back to // the InputQueue. - APZThreadUtils::RunOnControllerThread(NewRunnableMethod(mInputQueue, &InputQueue::Clear)); + APZThreadUtils::RunOnControllerThread(NewRunnableMethod( + "layers::InputQueue::Clear", mInputQueue, &InputQueue::Clear)); MutexAutoLock lock(mTreeLock); @@ -1601,10 +1605,11 @@ APZCTreeManager::ClearTree() mRootNode = nullptr; RefPtr self(this); - NS_DispatchToMainThread(NS_NewRunnableFunction([self] { - self->mFlushObserver->Unregister(); - self->mFlushObserver = nullptr; - })); + NS_DispatchToMainThread( + NS_NewRunnableFunction("layers::APZCTreeManager::ClearTree", [self] { + self->mFlushObserver->Unregister(); + self->mFlushObserver = nullptr; + })); } RefPtr diff --git a/gfx/layers/apz/src/AndroidAPZ.cpp b/gfx/layers/apz/src/AndroidAPZ.cpp index da8b89a3e052..1b43962f4d65 100644 --- a/gfx/layers/apz/src/AndroidAPZ.cpp +++ b/gfx/layers/apz/src/AndroidAPZ.cpp @@ -245,7 +245,8 @@ AndroidFlingAnimation::DeferHandleFlingOverscroll(ParentLayerPoint& aVelocity) mDeferredTasks.AppendElement( NewRunnableMethod, - RefPtr>(&mApzc, + RefPtr>("layers::AsyncPanZoomController::HandleFlingOverscroll", + &mApzc, &AsyncPanZoomController::HandleFlingOverscroll, aVelocity, mOverscrollHandoffChain, diff --git a/gfx/layers/apz/src/AndroidDynamicToolbarAnimator.cpp b/gfx/layers/apz/src/AndroidDynamicToolbarAnimator.cpp index 08548f5980df..5c88e54e3fa3 100644 --- a/gfx/layers/apz/src/AndroidDynamicToolbarAnimator.cpp +++ b/gfx/layers/apz/src/AndroidDynamicToolbarAnimator.cpp @@ -536,7 +536,8 @@ AndroidDynamicToolbarAnimator::GetToolbarEffect(CompositorOGL* gl) // Send notification that texture is ready after the current composition has completed. if (mCompositorToolbarTexture && mCompositorSendResponseForSnapshotUpdate) { mCompositorSendResponseForSnapshotUpdate = false; - CompositorThreadHolder::Loop()->PostTask(NewRunnableMethod(this, &AndroidDynamicToolbarAnimator::PostToolbarReady)); + CompositorThreadHolder::Loop()->PostTask(NewRunnableMethod("AndroidDynamicToolbarAnimator::PostToolbarReady", + this, &AndroidDynamicToolbarAnimator::PostToolbarReady)); } } @@ -746,7 +747,8 @@ void AndroidDynamicToolbarAnimator::UpdateCompositorToolbarHeight(ScreenIntCoord aHeight) { if (!CompositorThreadHolder::IsInCompositorThread()) { - CompositorThreadHolder::Loop()->PostTask(NewRunnableMethod(this, &AndroidDynamicToolbarAnimator::UpdateCompositorToolbarHeight, aHeight)); + CompositorThreadHolder::Loop()->PostTask(NewRunnableMethod("AndroidDynamicToolbarAnimator::UpdateCompositorToolbarHeight", + this, &AndroidDynamicToolbarAnimator::UpdateCompositorToolbarHeight, aHeight)); return; } @@ -758,7 +760,8 @@ void AndroidDynamicToolbarAnimator::UpdateControllerToolbarHeight(ScreenIntCoord aHeight, ScreenIntCoord aMaxHeight) { if (!APZThreadUtils::IsControllerThread()) { - APZThreadUtils::RunOnControllerThread(NewRunnableMethod(this, &AndroidDynamicToolbarAnimator::UpdateControllerToolbarHeight, aHeight, aMaxHeight)); + APZThreadUtils::RunOnControllerThread(NewRunnableMethod("AndroidDynamicToolbarAnimator::UpdateControllerToolbarHeight", + this, &AndroidDynamicToolbarAnimator::UpdateControllerToolbarHeight, aHeight, aMaxHeight)); return; } @@ -772,7 +775,8 @@ void AndroidDynamicToolbarAnimator::UpdateControllerSurfaceHeight(ScreenIntCoord aHeight) { if (!APZThreadUtils::IsControllerThread()) { - APZThreadUtils::RunOnControllerThread(NewRunnableMethod(this, &AndroidDynamicToolbarAnimator::UpdateControllerSurfaceHeight, aHeight)); + APZThreadUtils::RunOnControllerThread(NewRunnableMethod("AndroidDynamicToolbarAnimator::UpdateControllerSurfaceHeight", + this, &AndroidDynamicToolbarAnimator::UpdateControllerSurfaceHeight, aHeight)); return; } @@ -783,7 +787,8 @@ void AndroidDynamicToolbarAnimator::UpdateControllerCompositionHeight(ScreenIntCoord aHeight) { if (!APZThreadUtils::IsControllerThread()) { - APZThreadUtils::RunOnControllerThread(NewRunnableMethod(this, &AndroidDynamicToolbarAnimator::UpdateControllerCompositionHeight, aHeight)); + APZThreadUtils::RunOnControllerThread(NewRunnableMethod("AndroidDynamicToolbarAnimator::UpdateControllerCompositionHeight", + this, &AndroidDynamicToolbarAnimator::UpdateControllerCompositionHeight, aHeight)); return; } @@ -820,7 +825,8 @@ void AndroidDynamicToolbarAnimator::NotifyControllerPendingAnimation(int32_t aDirection, AnimationStyle aAnimationStyle) { if (!APZThreadUtils::IsControllerThread()) { - APZThreadUtils::RunOnControllerThread(NewRunnableMethod(this, &AndroidDynamicToolbarAnimator::NotifyControllerPendingAnimation, aDirection, aAnimationStyle)); + APZThreadUtils::RunOnControllerThread(NewRunnableMethod("AndroidDynamicToolbarAnimator::NotifyControllerPendingAnimation", + this, &AndroidDynamicToolbarAnimator::NotifyControllerPendingAnimation, aDirection, aAnimationStyle)); return; } @@ -847,6 +853,7 @@ AndroidDynamicToolbarAnimator::StartCompositorAnimation(int32_t aDirection, Anim if (!CompositorThreadHolder::IsInCompositorThread()) { mControllerState = eAnimationStartPending; CompositorThreadHolder::Loop()->PostTask(NewRunnableMethod( + "AndroidDynamicToolbarAnimator::StartCompositorAnimation", this, &AndroidDynamicToolbarAnimator::StartCompositorAnimation, aDirection, aAnimationStyle, aHeight, aWaitForPageResize)); return; } @@ -889,7 +896,8 @@ void AndroidDynamicToolbarAnimator::NotifyControllerAnimationStarted() { if (!APZThreadUtils::IsControllerThread()) { - APZThreadUtils::RunOnControllerThread(NewRunnableMethod(this, &AndroidDynamicToolbarAnimator::NotifyControllerAnimationStarted)); + APZThreadUtils::RunOnControllerThread(NewRunnableMethod("AndroidDynamicToolbarAnimator::NotifyControllerAnimationStarted", + this, &AndroidDynamicToolbarAnimator::NotifyControllerAnimationStarted)); return; } @@ -905,7 +913,8 @@ AndroidDynamicToolbarAnimator::StopCompositorAnimation() { if (!CompositorThreadHolder::IsInCompositorThread()) { mControllerState = eAnimationStopPending; - CompositorThreadHolder::Loop()->PostTask(NewRunnableMethod(this, &AndroidDynamicToolbarAnimator::StopCompositorAnimation)); + CompositorThreadHolder::Loop()->PostTask(NewRunnableMethod("AndroidDynamicToolbarAnimator::StopCompositorAnimation", + this, &AndroidDynamicToolbarAnimator::StopCompositorAnimation)); return; } @@ -931,7 +940,8 @@ void AndroidDynamicToolbarAnimator::NotifyControllerAnimationStopped(ScreenIntCoord aHeight) { if (!APZThreadUtils::IsControllerThread()) { - APZThreadUtils::RunOnControllerThread(NewRunnableMethod(this, &AndroidDynamicToolbarAnimator::NotifyControllerAnimationStopped, aHeight)); + APZThreadUtils::RunOnControllerThread(NewRunnableMethod("AndroidDynamicToolbarAnimator::NotifyControllerAnimationStopped", + this, &AndroidDynamicToolbarAnimator::NotifyControllerAnimationStopped, aHeight)); return; } @@ -946,7 +956,8 @@ void AndroidDynamicToolbarAnimator::RequestComposite() { if (!CompositorThreadHolder::IsInCompositorThread()) { - CompositorThreadHolder::Loop()->PostTask(NewRunnableMethod(this, &AndroidDynamicToolbarAnimator::RequestComposite)); + CompositorThreadHolder::Loop()->PostTask(NewRunnableMethod("AndroidDynamicToolbarAnimator::RequestComposite", + this, &AndroidDynamicToolbarAnimator::RequestComposite)); return; } @@ -993,7 +1004,8 @@ AndroidDynamicToolbarAnimator::UpdateFrameMetrics(ScreenPoint aScrollOffset, CSSRect aCssPageRect) { if (!APZThreadUtils::IsControllerThread()) { - APZThreadUtils::RunOnControllerThread(NewRunnableMethod(this, &AndroidDynamicToolbarAnimator::UpdateFrameMetrics, aScrollOffset, aScale, aCssPageRect)); + APZThreadUtils::RunOnControllerThread(NewRunnableMethod("AndroidDynamicToolbarAnimator::UpdateFrameMetrics", + this, &AndroidDynamicToolbarAnimator::UpdateFrameMetrics, aScrollOffset, aScale, aCssPageRect)); return; } @@ -1011,6 +1023,7 @@ AndroidDynamicToolbarAnimator::UpdateFrameMetrics(ScreenPoint aScrollOffset, RefPtr uiController = UiCompositorControllerParent::GetFromRootLayerTreeId(mRootLayerTreeId); MOZ_ASSERT(uiController); CompositorThreadHolder::Loop()->PostTask(NewRunnableMethod( + "UiCompositorControllerParent::SendRootFrameMetrics", uiController, &UiCompositorControllerParent::SendRootFrameMetrics, aScrollOffset, aScale, aCssPageRect)); } @@ -1086,7 +1099,8 @@ void AndroidDynamicToolbarAnimator::NotifyControllerSnapshotFailed() { if (!APZThreadUtils::IsControllerThread()) { - APZThreadUtils::RunOnControllerThread(NewRunnableMethod(this, &AndroidDynamicToolbarAnimator::NotifyControllerSnapshotFailed)); + APZThreadUtils::RunOnControllerThread(NewRunnableMethod("AndroidDynamicToolbarAnimator::NotifyControllerSnapshotFailed", + this, &AndroidDynamicToolbarAnimator::NotifyControllerSnapshotFailed)); return; } @@ -1133,7 +1147,8 @@ void AndroidDynamicToolbarAnimator::QueueMessage(int32_t aMessage) { if (!CompositorThreadHolder::IsInCompositorThread()) { - CompositorThreadHolder::Loop()->PostTask(NewRunnableMethod(this, &AndroidDynamicToolbarAnimator::QueueMessage, aMessage)); + CompositorThreadHolder::Loop()->PostTask(NewRunnableMethod("AndroidDynamicToolbarAnimator::QueueMessage", + this, &AndroidDynamicToolbarAnimator::QueueMessage, aMessage)); return; } diff --git a/gfx/layers/apz/src/AsyncPanZoomController.cpp b/gfx/layers/apz/src/AsyncPanZoomController.cpp index 0c049d5bb2b0..33261aaccd8d 100644 --- a/gfx/layers/apz/src/AsyncPanZoomController.cpp +++ b/gfx/layers/apz/src/AsyncPanZoomController.cpp @@ -636,10 +636,11 @@ public: // HandleSmoothScrollOverscroll() (which acquires the tree lock) would violate // the lock ordering. Instead we schedule HandleSmoothScrollOverscroll() to be // called after mMonitor is released. - mDeferredTasks.AppendElement( - NewRunnableMethod(&mApzc, - &AsyncPanZoomController::HandleSmoothScrollOverscroll, - velocity)); + mDeferredTasks.AppendElement(NewRunnableMethod( + "layers::AsyncPanZoomController::HandleSmoothScrollOverscroll", + &mApzc, + &AsyncPanZoomController::HandleSmoothScrollOverscroll, + velocity)); return false; } @@ -1383,8 +1384,11 @@ nsEventStatus AsyncPanZoomController::OnScale(const PinchGestureInput& aEvent) { if (RefPtr controller = GetGeckoContentController()) { mPinchPaintTimerSet = true; controller->PostDelayedTask( - NewRunnableMethod(this, - &AsyncPanZoomController::DoDelayedRequestContentRepaint), + NewRunnableMethod( + "layers::AsyncPanZoomController::" + "DoDelayedRequestContentRepaint", + this, + &AsyncPanZoomController::DoDelayedRequestContentRepaint), delay); } } @@ -2114,12 +2118,18 @@ nsEventStatus AsyncPanZoomController::GenerateSingleTap(TapType aType, // schedule the singletap message to run on the next spin of the event loop. // See bug 965381 for the issue this was causing. RefPtr runnable = - NewRunnableMethod(controller, - &GeckoContentController::HandleTap, - aType, geckoScreenPoint, - aModifiers, GetGuid(), - touch ? touch->GetBlockId() : 0); + NewRunnableMethod("layers::GeckoContentController::HandleTap", + controller, + &GeckoContentController::HandleTap, + aType, + geckoScreenPoint, + aModifiers, + GetGuid(), + touch ? touch->GetBlockId() : 0); controller->PostDelayedTask(runnable.forget(), 0); return nsEventStatus_eConsumeNoDefault; @@ -2966,7 +2976,11 @@ void AsyncPanZoomController::RequestContentRepaint(bool aUserAction) { // use the local variable to resolve the function overload. auto func = static_cast (&AsyncPanZoomController::RequestContentRepaint); - controller->DispatchToRepaintThread(NewRunnableMethod(this, func, aUserAction)); + controller->DispatchToRepaintThread(NewRunnableMethod( + "layers::AsyncPanZoomController::RequestContentRepaint", + this, + func, + aUserAction)); return; } @@ -3750,8 +3764,12 @@ void AsyncPanZoomController::ZoomToRect(CSSRect aRect, const uint32_t aFlags) { auto func = static_cast (&AsyncPanZoomController::RequestContentRepaint); controller->DispatchToRepaintThread( - NewRunnableMethod( - this, func, endZoomToMetrics, velocity)); + NewRunnableMethod( + "layers::AsyncPanZoomController::ZoomToRect", + this, + func, + endZoomToMetrics, + velocity)); } } } diff --git a/gfx/layers/apz/src/GenericFlingAnimation.h b/gfx/layers/apz/src/GenericFlingAnimation.h index 930937c4551a..a3c9b3454f59 100644 --- a/gfx/layers/apz/src/GenericFlingAnimation.h +++ b/gfx/layers/apz/src/GenericFlingAnimation.h @@ -111,10 +111,11 @@ public: // while holding mMonitor, because otherwise, if the overscrolled APZC // is this one, then the SetState(NOTHING) in UpdateAnimation will // stomp on the SetState(SNAP_BACK) it does. - mDeferredTasks.AppendElement( - NewRunnableMethod(mOverscrollHandoffChain.get(), - &OverscrollHandoffChain::SnapBackOverscrolledApzc, - &mApzc)); + mDeferredTasks.AppendElement(NewRunnableMethod( + "layers::OverscrollHandoffChain::SnapBackOverscrolledApzc", + mOverscrollHandoffChain.get(), + &OverscrollHandoffChain::SnapBackOverscrolledApzc, + &mApzc)); return false; } @@ -164,13 +165,15 @@ public: // called after mMonitor is released. FLING_LOG("%p fling went into overscroll, handing off with velocity %s\n", &mApzc, Stringify(velocity).c_str()); mDeferredTasks.AppendElement( - NewRunnableMethod, - RefPtr>(&mApzc, - &AsyncPanZoomController::HandleFlingOverscroll, - velocity, - mOverscrollHandoffChain, - mScrolledApzc)); + NewRunnableMethod, + RefPtr>( + "layers::AsyncPanZoomController::HandleFlingOverscroll", + &mApzc, + &AsyncPanZoomController::HandleFlingOverscroll, + velocity, + mOverscrollHandoffChain, + mScrolledApzc)); // If there is a remaining velocity on this APZC, continue this fling // as well. (This fling and the handed-off fling will run concurrently.) diff --git a/gfx/layers/apz/src/GestureEventListener.cpp b/gfx/layers/apz/src/GestureEventListener.cpp index b9efbb26e270..4b162fbee2ce 100644 --- a/gfx/layers/apz/src/GestureEventListener.cpp +++ b/gfx/layers/apz/src/GestureEventListener.cpp @@ -595,8 +595,10 @@ void GestureEventListener::CancelLongTapTimeoutTask() void GestureEventListener::CreateLongTapTimeoutTask() { - RefPtr task = - NewCancelableRunnableMethod(this, &GestureEventListener::HandleInputTimeoutLongTap); + RefPtr task = NewCancelableRunnableMethod( + "layers::GestureEventListener::HandleInputTimeoutLongTap", + this, + &GestureEventListener::HandleInputTimeoutLongTap); mLongTapTimeoutTask = task; mAsyncPanZoomController->PostDelayedTask( @@ -623,10 +625,11 @@ void GestureEventListener::CreateMaxTapTimeoutTask() TouchBlockState* block = mAsyncPanZoomController->GetInputQueue()->GetCurrentTouchBlock(); MOZ_ASSERT(block); - RefPtr task = - NewCancelableRunnableMethod(this, - &GestureEventListener::HandleInputTimeoutMaxTap, - block->IsDuringFastFling()); + RefPtr task = NewCancelableRunnableMethod( + "layers::GestureEventListener::HandleInputTimeoutMaxTap", + this, + &GestureEventListener::HandleInputTimeoutMaxTap, + block->IsDuringFastFling()); mMaxTapTimeoutTask = task; mAsyncPanZoomController->PostDelayedTask( diff --git a/gfx/layers/apz/src/InputQueue.cpp b/gfx/layers/apz/src/InputQueue.cpp index 8c9b222adefb..aead4f0bd771 100644 --- a/gfx/layers/apz/src/InputQueue.cpp +++ b/gfx/layers/apz/src/InputQueue.cpp @@ -509,10 +509,12 @@ InputQueue::ScheduleMainThreadTimeout(const RefPtr& aTar CancelableBlockState* aBlock) { INPQ_LOG("scheduling main thread timeout for target %p\n", aTarget.get()); aBlock->StartContentResponseTimer(); - aTarget->PostDelayedTask(NewRunnableMethod(this, - &InputQueue::MainThreadTimeout, - aBlock->GetBlockId()), - gfxPrefs::APZContentResponseTimeout()); + aTarget->PostDelayedTask( + NewRunnableMethod("layers::InputQueue::MainThreadTimeout", + this, + &InputQueue::MainThreadTimeout, + aBlock->GetBlockId()), + gfxPrefs::APZContentResponseTimeout()); } CancelableBlockState* diff --git a/gfx/layers/apz/src/Overscroll.h b/gfx/layers/apz/src/Overscroll.h index 586f104cc227..d620db28f271 100644 --- a/gfx/layers/apz/src/Overscroll.h +++ b/gfx/layers/apz/src/Overscroll.h @@ -48,7 +48,10 @@ public: // The scroll snapping is done in a deferred task, otherwise the state // change to NOTHING caused by the overscroll animation ending would // clobber a possible state change to SMOOTH_SCROLL in ScrollSnap(). - mDeferredTasks.AppendElement(NewRunnableMethod(&mApzc, &AsyncPanZoomController::ScrollSnap)); + mDeferredTasks.AppendElement( + NewRunnableMethod("layers::AsyncPanZoomController::ScrollSnap", + &mApzc, + &AsyncPanZoomController::ScrollSnap)); return false; } return true; diff --git a/gfx/layers/apz/util/ActiveElementManager.cpp b/gfx/layers/apz/util/ActiveElementManager.cpp index 20d34aa2bb1a..e7c3bc3afa8e 100644 --- a/gfx/layers/apz/util/ActiveElementManager.cpp +++ b/gfx/layers/apz/util/ActiveElementManager.cpp @@ -95,9 +95,11 @@ ActiveElementManager::TriggerElementActivation() MOZ_ASSERT(mSetActiveTask == nullptr); RefPtr task = - NewCancelableRunnableMethod>(this, - &ActiveElementManager::SetActiveTask, - mTarget); + NewCancelableRunnableMethod>( + "layers::ActiveElementManager::SetActiveTask", + this, + &ActiveElementManager::SetActiveTask, + mTarget); mSetActiveTask = task; MessageLoop::current()->PostDelayedTask(task.forget(), sActivationDelayMs); AEM_LOG("Scheduling mSetActiveTask %p\n", mSetActiveTask); diff --git a/gfx/layers/apz/util/CheckerboardReportService.cpp b/gfx/layers/apz/util/CheckerboardReportService.cpp index 7e4a9d93e1d1..a8c89152ef25 100644 --- a/gfx/layers/apz/util/CheckerboardReportService.cpp +++ b/gfx/layers/apz/util/CheckerboardReportService.cpp @@ -42,9 +42,10 @@ void CheckerboardEventStorage::Report(uint32_t aSeverity, const std::string& aLog) { if (!NS_IsMainThread()) { - RefPtr task = NS_NewRunnableFunction([aSeverity, aLog] () -> void { - CheckerboardEventStorage::Report(aSeverity, aLog); - }); + RefPtr task = NS_NewRunnableFunction( + "layers::CheckerboardEventStorage::Report", [aSeverity, aLog]() -> void { + CheckerboardEventStorage::Report(aSeverity, aLog); + }); NS_DispatchToMainThread(task.forget()); return; } diff --git a/gfx/layers/apz/util/ChromeProcessController.cpp b/gfx/layers/apz/util/ChromeProcessController.cpp index 22f597bc020b..dc4a6ddbaaa8 100644 --- a/gfx/layers/apz/util/ChromeProcessController.cpp +++ b/gfx/layers/apz/util/ChromeProcessController.cpp @@ -36,7 +36,10 @@ ChromeProcessController::ChromeProcessController(nsIWidget* aWidget, MOZ_ASSERT(aAPZEventState); MOZ_ASSERT(aAPZCTreeManager); - mUILoop->PostTask(NewRunnableMethod(this, &ChromeProcessController::InitializeRoot)); + mUILoop->PostTask( + NewRunnableMethod("layers::ChromeProcessController::InitializeRoot", + this, + &ChromeProcessController::InitializeRoot)); } ChromeProcessController::~ChromeProcessController() {} @@ -82,7 +85,10 @@ void ChromeProcessController::Destroy() { if (MessageLoop::current() != mUILoop) { - mUILoop->PostTask(NewRunnableMethod(this, &ChromeProcessController::Destroy)); + mUILoop->PostTask( + NewRunnableMethod("layers::ChromeProcessController::Destroy", + this, + &ChromeProcessController::Destroy)); return; } @@ -164,10 +170,19 @@ ChromeProcessController::HandleTap(TapType aType, uint64_t aInputBlockId) { if (MessageLoop::current() != mUILoop) { - mUILoop->PostTask(NewRunnableMethod(this, - &ChromeProcessController::HandleTap, - aType, aPoint, aModifiers, aGuid, aInputBlockId)); + mUILoop->PostTask( + NewRunnableMethod("layers::ChromeProcessController::HandleTap", + this, + &ChromeProcessController::HandleTap, + aType, + aPoint, + aModifiers, + aGuid, + aInputBlockId)); return; } @@ -217,13 +232,17 @@ ChromeProcessController::NotifyPinchGesture(PinchGestureInput::PinchGestureType Modifiers aModifiers) { if (MessageLoop::current() != mUILoop) { - mUILoop->PostTask(NewRunnableMethod - (this, - &ChromeProcessController::NotifyPinchGesture, - aType, aGuid, aSpanChange, aModifiers)); + mUILoop->PostTask(NewRunnableMethod( + "layers::ChromeProcessController::NotifyPinchGesture", + this, + &ChromeProcessController::NotifyPinchGesture, + aType, + aGuid, + aSpanChange, + aModifiers)); return; } @@ -238,11 +257,14 @@ ChromeProcessController::NotifyAPZStateChange(const ScrollableLayerGuid& aGuid, int aArg) { if (MessageLoop::current() != mUILoop) { - mUILoop->PostTask(NewRunnableMethod - (this, &ChromeProcessController::NotifyAPZStateChange, - aGuid, aChange, aArg)); + mUILoop->PostTask( + NewRunnableMethod( + "layers::ChromeProcessController::NotifyAPZStateChange", + this, + &ChromeProcessController::NotifyAPZStateChange, + aGuid, + aChange, + aArg)); return; } @@ -257,10 +279,12 @@ void ChromeProcessController::NotifyMozMouseScrollEvent(const FrameMetrics::ViewID& aScrollId, const nsString& aEvent) { if (MessageLoop::current() != mUILoop) { - mUILoop->PostTask(NewRunnableMethod - (this, &ChromeProcessController::NotifyMozMouseScrollEvent, - aScrollId, aEvent)); + mUILoop->PostTask(NewRunnableMethod( + "layers::ChromeProcessController::NotifyMozMouseScrollEvent", + this, + &ChromeProcessController::NotifyMozMouseScrollEvent, + aScrollId, + aEvent)); return; } @@ -279,9 +303,11 @@ void ChromeProcessController::NotifyAsyncScrollbarDragRejected(const FrameMetrics::ViewID& aScrollId) { if (MessageLoop::current() != mUILoop) { - mUILoop->PostTask(NewRunnableMethod(this, - &ChromeProcessController::NotifyAsyncScrollbarDragRejected, - aScrollId)); + mUILoop->PostTask(NewRunnableMethod( + "layers::ChromeProcessController::NotifyAsyncScrollbarDragRejected", + this, + &ChromeProcessController::NotifyAsyncScrollbarDragRejected, + aScrollId)); return; } diff --git a/gfx/layers/basic/BasicCompositor.cpp b/gfx/layers/basic/BasicCompositor.cpp index 71633c2c00a3..68003d99aa4a 100644 --- a/gfx/layers/basic/BasicCompositor.cpp +++ b/gfx/layers/basic/BasicCompositor.cpp @@ -1027,9 +1027,9 @@ BasicCompositor::TryToEndRemoteDrawing(bool aForceToEnd) const uint32_t retryMs = 2; RefPtr self = this; - RefPtr runnable = NS_NewRunnableFunction([self]() { - self->TryToEndRemoteDrawing(); - }); + RefPtr runnable = + NS_NewRunnableFunction("layers::BasicCompositor::TryToEndRemoteDrawing", + [self]() { self->TryToEndRemoteDrawing(); }); MessageLoop::current()->PostDelayedTask(runnable.forget(), retryMs); return; } diff --git a/gfx/layers/client/CompositableClient.cpp b/gfx/layers/client/CompositableClient.cpp index 785cd8d59067..cedcc176b6ee 100644 --- a/gfx/layers/client/CompositableClient.cpp +++ b/gfx/layers/client/CompositableClient.cpp @@ -194,8 +194,8 @@ CompositableClient::GetTextureClientRecycler() ReentrantMonitorAutoEnter mainThreadAutoMon(barrier); bool done = false; - RefPtr runnable = - NS_NewRunnableFunction([&]() { + RefPtr runnable = NS_NewRunnableFunction( + "layers::CompositableClient::GetTextureClientRecycler", [&]() { if (!mTextureClientRecycler) { mTextureClientRecycler = new layers::TextureClientRecycleAllocator(mForwarder); } diff --git a/gfx/layers/client/TextureClient.cpp b/gfx/layers/client/TextureClient.cpp index 0989c5a4633a..666e3a033d11 100644 --- a/gfx/layers/client/TextureClient.cpp +++ b/gfx/layers/client/TextureClient.cpp @@ -234,9 +234,11 @@ static void DestroyTextureData(TextureData* aTextureData, LayersIPCChannel* aAll if (aMainThreadOnly && !NS_IsMainThread()) { RefPtr allocatorRef = aAllocator; - NS_DispatchToMainThread(NS_NewRunnableFunction([aTextureData, allocatorRef, aDeallocate]() -> void { - DestroyTextureData(aTextureData, allocatorRef, aDeallocate, true); - })); + NS_DispatchToMainThread(NS_NewRunnableFunction( + "layers::DestroyTextureData", + [aTextureData, allocatorRef, aDeallocate]() -> void { + DestroyTextureData(aTextureData, allocatorRef, aDeallocate, true); + })); return; } diff --git a/gfx/layers/client/TextureClient.h b/gfx/layers/client/TextureClient.h index edea3e076204..68f8fb8483e6 100644 --- a/gfx/layers/client/TextureClient.h +++ b/gfx/layers/client/TextureClient.h @@ -776,8 +776,10 @@ public: class TextureClientReleaseTask : public Runnable { public: - explicit TextureClientReleaseTask(TextureClient* aClient) - : mTextureClient(aClient) { + explicit TextureClientReleaseTask(TextureClient* aClient) + : Runnable("layers::TextureClientReleaseTask") + , mTextureClient(aClient) + { } NS_IMETHOD Run() override diff --git a/gfx/layers/client/TextureClientPool.cpp b/gfx/layers/client/TextureClientPool.cpp index f7ccad92d02f..0f7aab8185e7 100644 --- a/gfx/layers/client/TextureClientPool.cpp +++ b/gfx/layers/client/TextureClientPool.cpp @@ -179,15 +179,23 @@ TextureClientPool::ResetTimers() if (mShrinkTimeoutMsec && mTextureClients.size() + mTextureClientsDeferred.size() > mPoolUnusedSize) { TCP_LOG("TexturePool %p scheduling a shrink-to-max-size\n", this); - mShrinkTimer->InitWithFuncCallback(ShrinkCallback, this, mShrinkTimeoutMsec, - nsITimer::TYPE_ONE_SHOT); + mShrinkTimer->InitWithNamedFuncCallback( + ShrinkCallback, + this, + mShrinkTimeoutMsec, + nsITimer::TYPE_ONE_SHOT, + "layers::TextureClientPool::ResetTimers"); } // Clear pool after a period of inactivity to reduce memory consumption if (mClearTimeoutMsec) { TCP_LOG("TexturePool %p scheduling a clear\n", this); - mClearTimer->InitWithFuncCallback(ClearCallback, this, mClearTimeoutMsec, - nsITimer::TYPE_ONE_SHOT); + mClearTimer->InitWithNamedFuncCallback( + ClearCallback, + this, + mClearTimeoutMsec, + nsITimer::TYPE_ONE_SHOT, + "layers::TextureClientPool::ResetTimers"); } } diff --git a/gfx/layers/d3d11/DeviceAttachmentsD3D11.cpp b/gfx/layers/d3d11/DeviceAttachmentsD3D11.cpp index 80f0e937f28d..44199395914f 100644 --- a/gfx/layers/d3d11/DeviceAttachmentsD3D11.cpp +++ b/gfx/layers/d3d11/DeviceAttachmentsD3D11.cpp @@ -247,7 +247,8 @@ DeviceAttachmentsD3D11::InitSyncObject() if (FAILED(hr) || !mSyncHandle) { gfxCriticalError() << "Failed to get SharedHandle for sync texture. Result: " << hexa(hr); - NS_DispatchToMainThread(NS_NewRunnableFunction([] () -> void { + NS_DispatchToMainThread(NS_NewRunnableFunction("DeviceAttachmentsD3D11::InitSyncObject", + [] () -> void { Accumulate(Telemetry::D3D11_SYNC_HANDLE_FAILURE, 1); })); return false; diff --git a/gfx/layers/ipc/APZCTreeManagerParent.cpp b/gfx/layers/ipc/APZCTreeManagerParent.cpp index 940cdf630f1d..4ac60b740092 100644 --- a/gfx/layers/ipc/APZCTreeManagerParent.cpp +++ b/gfx/layers/ipc/APZCTreeManagerParent.cpp @@ -165,11 +165,12 @@ APZCTreeManagerParent::RecvContentReceivedInputBlock( const uint64_t& aInputBlockId, const bool& aPreventDefault) { - APZThreadUtils::RunOnControllerThread( - NewRunnableMethod(mTreeManager, - &IAPZCTreeManager::ContentReceivedInputBlock, - aInputBlockId, - aPreventDefault)); + APZThreadUtils::RunOnControllerThread(NewRunnableMethod( + "layers::IAPZCTreeManager::ContentReceivedInputBlock", + mTreeManager, + &IAPZCTreeManager::ContentReceivedInputBlock, + aInputBlockId, + aPreventDefault)); return IPC_OK(); } @@ -186,10 +187,14 @@ APZCTreeManagerParent::RecvSetTargetAPZC( return IPC_FAIL_NO_REASON(this); } } - APZThreadUtils::RunOnControllerThread(NewRunnableMethod - >> - (mTreeManager, &IAPZCTreeManager::SetTargetAPZC, aInputBlockId, aTargets)); + APZThreadUtils::RunOnControllerThread( + NewRunnableMethod>>( + "layers::IAPZCTreeManager::SetTargetAPZC", + mTreeManager, + &IAPZCTreeManager::SetTargetAPZC, + aInputBlockId, + aTargets)); return IPC_OK(); } @@ -234,12 +239,14 @@ APZCTreeManagerParent::RecvSetAllowedTouchBehavior( const uint64_t& aInputBlockId, nsTArray&& aValues) { - APZThreadUtils::RunOnControllerThread(NewRunnableMethod - >> - (mTreeManager, - &IAPZCTreeManager::SetAllowedTouchBehavior, - aInputBlockId, Move(aValues))); + APZThreadUtils::RunOnControllerThread( + NewRunnableMethod>>( + "layers::IAPZCTreeManager::SetAllowedTouchBehavior", + mTreeManager, + &IAPZCTreeManager::SetAllowedTouchBehavior, + aInputBlockId, + Move(aValues))); return IPC_OK(); } @@ -255,11 +262,13 @@ APZCTreeManagerParent::RecvStartScrollbarDrag( return IPC_FAIL_NO_REASON(this); } - APZThreadUtils::RunOnControllerThread( - NewRunnableMethod( - mTreeManager, - &IAPZCTreeManager::StartScrollbarDrag, - aGuid, aDragMetrics)); + APZThreadUtils::RunOnControllerThread( + NewRunnableMethod( + "layers::IAPZCTreeManager::StartScrollbarDrag", + mTreeManager, + &IAPZCTreeManager::StartScrollbarDrag, + aGuid, + aDragMetrics)); return IPC_OK(); } diff --git a/gfx/layers/ipc/CompositorBridgeChild.cpp b/gfx/layers/ipc/CompositorBridgeChild.cpp index 1f1dd9b72775..59115d80665d 100644 --- a/gfx/layers/ipc/CompositorBridgeChild.cpp +++ b/gfx/layers/ipc/CompositorBridgeChild.cpp @@ -463,6 +463,7 @@ static void ScheduleSendAllPluginsCaptured(CompositorBridgeChild* aThis, MessageLoop* aLoop) { aLoop->PostTask(NewNonOwningRunnableMethod( + "CompositorBridgeChild::SendAllPluginsCaptured", aThis, &CompositorBridgeChild::SendAllPluginsCaptured)); } #endif diff --git a/gfx/layers/ipc/CompositorBridgeParent.cpp b/gfx/layers/ipc/CompositorBridgeParent.cpp index 4879c4455431..ef7e802574ee 100644 --- a/gfx/layers/ipc/CompositorBridgeParent.cpp +++ b/gfx/layers/ipc/CompositorBridgeParent.cpp @@ -667,21 +667,30 @@ CompositorBridgeParent::ActorDestroy(ActorDestroyReason why) // We must keep the compositor parent alive untill the code handling message // reception is finished on this thread. mSelfRef = this; - MessageLoop::current()->PostTask(NewRunnableMethod(this, &CompositorBridgeParent::DeferredDestroy)); + MessageLoop::current()->PostTask( + NewRunnableMethod("layers::CompositorBridgeParent::DeferredDestroy", + this, + &CompositorBridgeParent::DeferredDestroy)); } void CompositorBridgeParent::ScheduleRenderOnCompositorThread() { MOZ_ASSERT(CompositorLoop()); - CompositorLoop()->PostTask(NewRunnableMethod(this, &CompositorBridgeParent::ScheduleComposition)); + CompositorLoop()->PostTask( + NewRunnableMethod("layers::CompositorBridgeParent::ScheduleComposition", + this, + &CompositorBridgeParent::ScheduleComposition)); } void CompositorBridgeParent::InvalidateOnCompositorThread() { MOZ_ASSERT(CompositorLoop()); - CompositorLoop()->PostTask(NewRunnableMethod(this, &CompositorBridgeParent::Invalidate)); + CompositorLoop()->PostTask( + NewRunnableMethod("layers::CompositorBridgeParent::Invalidate", + this, + &CompositorBridgeParent::Invalidate)); } void @@ -777,7 +786,10 @@ CompositorBridgeParent::SchedulePauseOnCompositorThread() MonitorAutoLock lock(mPauseCompositionMonitor); MOZ_ASSERT(CompositorLoop()); - CompositorLoop()->PostTask(NewRunnableMethod(this, &CompositorBridgeParent::PauseComposition)); + CompositorLoop()->PostTask( + NewRunnableMethod("layers::CompositorBridgeParent::PauseComposition", + this, + &CompositorBridgeParent::PauseComposition)); // Wait until the pause has actually been processed by the compositor thread lock.Wait(); @@ -789,7 +801,10 @@ CompositorBridgeParent::ScheduleResumeOnCompositorThread() MonitorAutoLock lock(mResumeCompositionMonitor); MOZ_ASSERT(CompositorLoop()); - CompositorLoop()->PostTask(NewRunnableMethod(this, &CompositorBridgeParent::ResumeComposition)); + CompositorLoop()->PostTask( + NewRunnableMethod("layers::CompositorBridgeParent::ResumeComposition", + this, + &CompositorBridgeParent::ResumeComposition)); // Wait until the resume has actually been processed by the compositor thread lock.Wait(); @@ -803,10 +818,12 @@ CompositorBridgeParent::ScheduleResumeOnCompositorThread(int width, int height) MonitorAutoLock lock(mResumeCompositionMonitor); MOZ_ASSERT(CompositorLoop()); - CompositorLoop()->PostTask(NewRunnableMethod - (this, - &CompositorBridgeParent::ResumeCompositionAndResize, - width, height)); + CompositorLoop()->PostTask(NewRunnableMethod( + "layers::CompositorBridgeParent::ResumeCompositionAndResize", + this, + &CompositorBridgeParent::ResumeCompositionAndResize, + width, + height)); // Wait until the resume has actually been processed by the compositor thread lock.Wait(); @@ -1182,8 +1199,10 @@ CompositorBridgeParent::ScheduleRotationOnCompositorThread(const TargetConfig& a if (mForceCompositionTask != nullptr) { mForceCompositionTask->Cancel(); } - RefPtr task = - NewCancelableRunnableMethod(this, &CompositorBridgeParent::ForceComposition); + RefPtr task = NewCancelableRunnableMethod( + "layers::CompositorBridgeParent::ForceComposition", + this, + &CompositorBridgeParent::ForceComposition); mForceCompositionTask = task; ScheduleTask(task.forget(), gfxPrefs::OrientationSyncMillis()); } @@ -1333,9 +1352,9 @@ CompositorBridgeParent::FlushApzRepaints(const uint64_t& aLayersId) layersId = mRootLayerTreeID; } RefPtr self = this; - APZThreadUtils::RunOnControllerThread(NS_NewRunnableFunction([=] () { - self->mApzcTreeManager->FlushApzRepaints(layersId); - })); + APZThreadUtils::RunOnControllerThread(NS_NewRunnableFunction( + "layers::CompositorBridgeParent::FlushApzRepaints", + [=]() { self->mApzcTreeManager->FlushApzRepaints(layersId); })); } void @@ -1359,9 +1378,14 @@ CompositorBridgeParent::SetConfirmedTargetAPZC(const uint64_t& aLayersId, void (APZCTreeManager::*setTargetApzcFunc) (uint64_t, const nsTArray&) = &APZCTreeManager::SetTargetAPZC; - RefPtr task = NewRunnableMethod - >> - (mApzcTreeManager.get(), setTargetApzcFunc, aInputBlockId, aTargets); + RefPtr task = + NewRunnableMethod>>( + "layers::CompositorBridgeParent::SetConfirmedTargetAPZC", + mApzcTreeManager.get(), + setTargetApzcFunc, + aInputBlockId, + aTargets); APZThreadUtils::RunOnControllerThread(task.forget()); } @@ -2157,7 +2181,10 @@ void CompositorBridgeParent::ScheduleShowAllPluginWindows() { MOZ_ASSERT(CompositorLoop()); - CompositorLoop()->PostTask(NewRunnableMethod(this, &CompositorBridgeParent::ShowAllPluginWindows)); + CompositorLoop()->PostTask( + NewRunnableMethod("layers::CompositorBridgeParent::ShowAllPluginWindows", + this, + &CompositorBridgeParent::ShowAllPluginWindows)); } void @@ -2172,7 +2199,10 @@ void CompositorBridgeParent::ScheduleHideAllPluginWindows() { MOZ_ASSERT(CompositorLoop()); - CompositorLoop()->PostTask(NewRunnableMethod(this, &CompositorBridgeParent::HideAllPluginWindows)); + CompositorLoop()->PostTask( + NewRunnableMethod("layers::CompositorBridgeParent::HideAllPluginWindows", + this, + &CompositorBridgeParent::HideAllPluginWindows)); } void diff --git a/gfx/layers/ipc/CompositorManagerParent.cpp b/gfx/layers/ipc/CompositorManagerParent.cpp index 369839fe581d..f95da86256e5 100644 --- a/gfx/layers/ipc/CompositorManagerParent.cpp +++ b/gfx/layers/ipc/CompositorManagerParent.cpp @@ -57,6 +57,7 @@ CompositorManagerParent::Create(Endpoint&& aEndpoint) RefPtr bridge = new CompositorManagerParent(); RefPtr runnable = NewRunnableMethod&&>( + "CompositorManagerParent::Bind", bridge, &CompositorManagerParent::Bind, Move(aEndpoint)); diff --git a/gfx/layers/ipc/CompositorVsyncScheduler.cpp b/gfx/layers/ipc/CompositorVsyncScheduler.cpp index 40e913c2cc0f..829087efd1ee 100644 --- a/gfx/layers/ipc/CompositorVsyncScheduler.cpp +++ b/gfx/layers/ipc/CompositorVsyncScheduler.cpp @@ -122,9 +122,11 @@ CompositorVsyncScheduler::PostCompositeTask(TimeStamp aCompositeTimestamp) // can be called from the compositor or vsync thread MonitorAutoLock lock(mCurrentCompositeTaskMonitor); if (mCurrentCompositeTask == nullptr && CompositorThreadHolder::Loop()) { - RefPtr task = - NewCancelableRunnableMethod(this, &CompositorVsyncScheduler::Composite, - aCompositeTimestamp); + RefPtr task = NewCancelableRunnableMethod( + "layers::CompositorVsyncScheduler::Composite", + this, + &CompositorVsyncScheduler::Composite, + aCompositeTimestamp); mCurrentCompositeTask = task; ScheduleTask(task.forget(), 0); } @@ -181,8 +183,10 @@ CompositorVsyncScheduler::SetNeedsComposite() { if (!CompositorThreadHolder::IsInCompositorThread()) { MonitorAutoLock lock(mSetNeedsCompositeMonitor); - RefPtr task = - NewCancelableRunnableMethod(this, &CompositorVsyncScheduler::SetNeedsComposite); + RefPtr task = NewCancelableRunnableMethod( + "layers::CompositorVsyncScheduler::SetNeedsComposite", + this, + &CompositorVsyncScheduler::SetNeedsComposite); mSetNeedsCompositeTask = task; ScheduleTask(task.forget(), 0); return; diff --git a/gfx/layers/ipc/CrossProcessCompositorBridgeParent.cpp b/gfx/layers/ipc/CrossProcessCompositorBridgeParent.cpp index e5a870c020ab..81d200ab4a45 100644 --- a/gfx/layers/ipc/CrossProcessCompositorBridgeParent.cpp +++ b/gfx/layers/ipc/CrossProcessCompositorBridgeParent.cpp @@ -58,7 +58,10 @@ CrossProcessCompositorBridgeParent::ActorDestroy(ActorDestroyReason aWhy) // We must keep this object alive untill the code handling message // reception is finished on this thread. - MessageLoop::current()->PostTask(NewRunnableMethod(this, &CrossProcessCompositorBridgeParent::DeferredDestroy)); + MessageLoop::current()->PostTask(NewRunnableMethod( + "layers::CrossProcessCompositorBridgeParent::DeferredDestroy", + this, + &CrossProcessCompositorBridgeParent::DeferredDestroy)); } PLayerTransactionParent* diff --git a/gfx/layers/ipc/ImageBridgeChild.cpp b/gfx/layers/ipc/ImageBridgeChild.cpp index ade05fb76773..48c357899159 100644 --- a/gfx/layers/ipc/ImageBridgeChild.cpp +++ b/gfx/layers/ipc/ImageBridgeChild.cpp @@ -578,6 +578,7 @@ ImageBridgeChild::InitForContent(Endpoint&& aEndpoint, uint32 RefPtr child = new ImageBridgeChild(aNamespace); RefPtr runnable = NewRunnableMethod&&>( + "layers::ImageBridgeChild::Bind", child, &ImageBridgeChild::Bind, Move(aEndpoint)); @@ -733,7 +734,10 @@ ImageBridgeChild::InitWithGPUProcess(Endpoint&& aEndpoint, ui MessageLoop* loop = child->GetMessageLoop(); loop->PostTask(NewRunnableMethod&&>( - child, &ImageBridgeChild::Bind, Move(aEndpoint))); + "layers::ImageBridgeChild::Bind", + child, + &ImageBridgeChild::Bind, + Move(aEndpoint))); // Assign this after so other threads can't post messages before we connect to IPDL. { diff --git a/gfx/layers/ipc/ImageBridgeParent.cpp b/gfx/layers/ipc/ImageBridgeParent.cpp index 3dc62d69e967..6553075d37ed 100644 --- a/gfx/layers/ipc/ImageBridgeParent.cpp +++ b/gfx/layers/ipc/ImageBridgeParent.cpp @@ -106,7 +106,10 @@ ImageBridgeParent::CreateForGPUProcess(Endpoint&& aEndpoint) RefPtr parent = new ImageBridgeParent(loop, aEndpoint.OtherPid()); loop->PostTask(NewRunnableMethod&&>( - parent, &ImageBridgeParent::Bind, Move(aEndpoint))); + "layers::ImageBridgeParent::Bind", + parent, + &ImageBridgeParent::Bind, + Move(aEndpoint))); sImageBridgeParentSingleton = parent; return true; @@ -122,7 +125,10 @@ ImageBridgeParent::ActorDestroy(ActorDestroyReason aWhy) MonitorAutoLock lock(*sImageBridgesLock); sImageBridges.erase(OtherPid()); } - MessageLoop::current()->PostTask(NewRunnableMethod(this, &ImageBridgeParent::DeferredDestroy)); + MessageLoop::current()->PostTask( + NewRunnableMethod("layers::ImageBridgeParent::DeferredDestroy", + this, + &ImageBridgeParent::DeferredDestroy)); // It is very important that this method gets called at shutdown (be it a clean // or an abnormal shutdown), because DeferredDestroy is what clears mSelfRef. @@ -210,7 +216,10 @@ ImageBridgeParent::CreateForContent(Endpoint&& aEndpoint) RefPtr bridge = new ImageBridgeParent(loop, aEndpoint.OtherPid()); loop->PostTask(NewRunnableMethod&&>( - bridge, &ImageBridgeParent::Bind, Move(aEndpoint))); + "layers::ImageBridgeParent::Bind", + bridge, + &ImageBridgeParent::Bind, + Move(aEndpoint))); return true; } diff --git a/gfx/layers/ipc/RemoteContentController.cpp b/gfx/layers/ipc/RemoteContentController.cpp index dd7f7547b901..d6d23df98c8e 100644 --- a/gfx/layers/ipc/RemoteContentController.cpp +++ b/gfx/layers/ipc/RemoteContentController.cpp @@ -89,8 +89,19 @@ RemoteContentController::HandleTap(TapType aTapType, } else { // We don't want to get the TabParent or call TabParent::SendHandleTap() from a non-main thread (this might happen // on Android, where this is called from the Java UI thread) - NS_DispatchToMainThread(NewRunnableMethod - (this, &RemoteContentController::HandleTapOnMainThread, aTapType, aPoint, aModifiers, aGuid, aInputBlockId)); + NS_DispatchToMainThread(NewRunnableMethod( + "layers::RemoteContentController::HandleTapOnMainThread", + this, + &RemoteContentController::HandleTapOnMainThread, + aTapType, + aPoint, + aModifiers, + aGuid, + aInputBlockId)); } } @@ -159,11 +170,14 @@ RemoteContentController::NotifyAPZStateChange(const ScrollableLayerGuid& aGuid, { if (MessageLoop::current() != mCompositorThread) { // We have to send messages from the compositor thread - mCompositorThread->PostTask(NewRunnableMethod(this, - &RemoteContentController::NotifyAPZStateChange, - aGuid, aChange, aArg)); + mCompositorThread->PostTask( + NewRunnableMethod( + "layers::RemoteContentController::NotifyAPZStateChange", + this, + &RemoteContentController::NotifyAPZStateChange, + aGuid, + aChange, + aArg)); return; } @@ -176,10 +190,13 @@ void RemoteContentController::UpdateOverscrollVelocity(float aX, float aY, bool aIsRootContent) { if (MessageLoop::current() != mCompositorThread) { - mCompositorThread->PostTask(NewRunnableMethod(this, - &RemoteContentController::UpdateOverscrollVelocity, - aX, aY, aIsRootContent)); + mCompositorThread->PostTask(NewRunnableMethod( + "layers::RemoteContentController::UpdateOverscrollVelocity", + this, + &RemoteContentController::UpdateOverscrollVelocity, + aX, + aY, + aIsRootContent)); return; } if (mCanSend) { @@ -191,10 +208,13 @@ void RemoteContentController::UpdateOverscrollOffset(float aX, float aY, bool aIsRootContent) { if (MessageLoop::current() != mCompositorThread) { - mCompositorThread->PostTask(NewRunnableMethod(this, - &RemoteContentController::UpdateOverscrollOffset, - aX, aY, aIsRootContent)); + mCompositorThread->PostTask(NewRunnableMethod( + "layers::RemoteContentController::UpdateOverscrollOffset", + this, + &RemoteContentController::UpdateOverscrollOffset, + aX, + aY, + aIsRootContent)); return; } if (mCanSend) { @@ -208,10 +228,13 @@ RemoteContentController::NotifyMozMouseScrollEvent(const FrameMetrics::ViewID& a { if (MessageLoop::current() != mCompositorThread) { // We have to send messages from the compositor thread - mCompositorThread->PostTask(NewRunnableMethod(this, - &RemoteContentController::NotifyMozMouseScrollEvent, - aScrollId, aEvent)); + mCompositorThread->PostTask( + NewRunnableMethod( + "layers::RemoteContentController::NotifyMozMouseScrollEvent", + this, + &RemoteContentController::NotifyMozMouseScrollEvent, + aScrollId, + aEvent)); return; } @@ -235,8 +258,11 @@ RemoteContentController::NotifyAsyncScrollbarDragRejected(const FrameMetrics::Vi { if (MessageLoop::current() != mCompositorThread) { // We have to send messages from the compositor thread - mCompositorThread->PostTask(NewRunnableMethod(this, - &RemoteContentController::NotifyAsyncScrollbarDragRejected, aScrollId)); + mCompositorThread->PostTask(NewRunnableMethod( + "layers::RemoteContentController::NotifyAsyncScrollbarDragRejected", + this, + &RemoteContentController::NotifyAsyncScrollbarDragRejected, + aScrollId)); return; } diff --git a/gfx/layers/ipc/ShadowLayers.cpp b/gfx/layers/ipc/ShadowLayers.cpp index 8ebf761cad2a..6c59f4df4ef0 100644 --- a/gfx/layers/ipc/ShadowLayers.cpp +++ b/gfx/layers/ipc/ShadowLayers.cpp @@ -208,7 +208,8 @@ struct ReleaseOnMainThreadTask : public Runnable UniquePtr mObj; explicit ReleaseOnMainThreadTask(UniquePtr& aObj) - : mObj(Move(aObj)) + : Runnable("layers::ReleaseOnMainThreadTask") + , mObj(Move(aObj)) {} NS_IMETHOD Run() override { @@ -233,7 +234,9 @@ ShadowLayerForwarder::~ShadowLayerForwarder() nsIEventTarget::DISPATCH_NORMAL); } else { NS_DispatchToMainThread( - NewRunnableMethod(mShadowManager, &LayerTransactionChild::Destroy)); + NewRunnableMethod("layers::LayerTransactionChild::Destroy", + mShadowManager, + &LayerTransactionChild::Destroy)); } } } diff --git a/gfx/layers/ipc/ThreadSafeRefcountingWithMainThreadDestruction.h b/gfx/layers/ipc/ThreadSafeRefcountingWithMainThreadDestruction.h index e64705478e7e..e86702fccec5 100644 --- a/gfx/layers/ipc/ThreadSafeRefcountingWithMainThreadDestruction.h +++ b/gfx/layers/ipc/ThreadSafeRefcountingWithMainThreadDestruction.h @@ -42,7 +42,11 @@ template struct DeleteOnMainThreadTask : public Runnable { T* mToDelete; - explicit DeleteOnMainThreadTask(T* aToDelete) : mToDelete(aToDelete) {} + explicit DeleteOnMainThreadTask(T* aToDelete) + : Runnable("layers::DeleteOnMainThreadTask") + , mToDelete(aToDelete) + { + } NS_IMETHOD Run() override { MOZ_ASSERT(NS_IsMainThread()); mToDelete->DeleteToBeCalledOnMainThread(); diff --git a/gfx/layers/ipc/UiCompositorControllerChild.cpp b/gfx/layers/ipc/UiCompositorControllerChild.cpp index 60836734a089..47e16bf2f13e 100644 --- a/gfx/layers/ipc/UiCompositorControllerChild.cpp +++ b/gfx/layers/ipc/UiCompositorControllerChild.cpp @@ -48,7 +48,11 @@ UiCompositorControllerChild::CreateForSameProcess(const int64_t& aRootLayerTreeI { RefPtr child = new UiCompositorControllerChild(0); child->mParent = new UiCompositorControllerParent(aRootLayerTreeId); - GetUiThread()->Dispatch(NewRunnableMethod(child, &UiCompositorControllerChild::OpenForSameProcess), nsIThread::DISPATCH_NORMAL); + GetUiThread()->Dispatch( + NewRunnableMethod("layers::UiCompositorControllerChild::OpenForSameProcess", + child, + &UiCompositorControllerChild::OpenForSameProcess), + nsIThread::DISPATCH_NORMAL); return child; } @@ -58,8 +62,12 @@ UiCompositorControllerChild::CreateForGPUProcess(const uint64_t& aProcessToken, { RefPtr child = new UiCompositorControllerChild(aProcessToken); - RefPtr task = NewRunnableMethod&&>( - child, &UiCompositorControllerChild::OpenForGPUProcess, Move(aEndpoint)); + RefPtr task = + NewRunnableMethod&&>( + "layers::UiCompositorControllerChild::OpenForGPUProcess", + child, + &UiCompositorControllerChild::OpenForGPUProcess, + Move(aEndpoint)); GetUiThread()->Dispatch(task.forget(), nsIThread::DISPATCH_NORMAL); return child; @@ -186,7 +194,11 @@ void UiCompositorControllerChild::Destroy() { if (!IsOnUiThread()) { - GetUiThread()->Dispatch(NewRunnableMethod(this, &UiCompositorControllerChild::Destroy), nsIThread::DISPATCH_NORMAL); + GetUiThread()->Dispatch( + NewRunnableMethod("layers::UiCompositorControllerChild::Destroy", + this, + &UiCompositorControllerChild::Destroy), + nsIThread::DISPATCH_NORMAL); return; } diff --git a/gfx/layers/ipc/UiCompositorControllerParent.cpp b/gfx/layers/ipc/UiCompositorControllerParent.cpp index 34da062950ee..a316f79cef28 100644 --- a/gfx/layers/ipc/UiCompositorControllerParent.cpp +++ b/gfx/layers/ipc/UiCompositorControllerParent.cpp @@ -34,8 +34,12 @@ UiCompositorControllerParent::Start(const uint64_t& aRootLayerTreeId, Endpoint

parent = new UiCompositorControllerParent(aRootLayerTreeId); - RefPtr task = NewRunnableMethod&&>( - parent, &UiCompositorControllerParent::Open, Move(aEndpoint)); + RefPtr task = + NewRunnableMethod&&>( + "layers::UiCompositorControllerParent::Open", + parent, + &UiCompositorControllerParent::Open, + Move(aEndpoint)); CompositorThreadHolder::Loop()->PostTask(task.forget()); return parent; @@ -209,7 +213,12 @@ UiCompositorControllerParent::ToolbarAnimatorMessageFromCompositor(int32_t aMess { // This function can be call from ether compositor or controller thread. if (!CompositorThreadHolder::IsInCompositorThread()) { - CompositorThreadHolder::Loop()->PostTask(NewRunnableMethod(this, &UiCompositorControllerParent::ToolbarAnimatorMessageFromCompositor, aMessage)); + CompositorThreadHolder::Loop()->PostTask(NewRunnableMethod( + "layers::UiCompositorControllerParent::" + "ToolbarAnimatorMessageFromCompositor", + this, + &UiCompositorControllerParent::ToolbarAnimatorMessageFromCompositor, + aMessage)); return; } @@ -241,7 +250,10 @@ UiCompositorControllerParent::InitializeForSameProcess() // This function is called by UiCompositorControllerChild in the main thread. // So dispatch to the compositor thread to Initialize. if (!CompositorThreadHolder::IsInCompositorThread()) { - CompositorThreadHolder::Loop()->PostTask(NewRunnableMethod(this, &UiCompositorControllerParent::InitializeForSameProcess)); + CompositorThreadHolder::Loop()->PostTask(NewRunnableMethod( + "layers::UiCompositorControllerParent::InitializeForSameProcess", + this, + &UiCompositorControllerParent::InitializeForSameProcess)); return; } diff --git a/gfx/src/gfxCrashReporterUtils.cpp b/gfx/src/gfxCrashReporterUtils.cpp index 20215963c868..085420a091d9 100644 --- a/gfx/src/gfxCrashReporterUtils.cpp +++ b/gfx/src/gfxCrashReporterUtils.cpp @@ -68,6 +68,7 @@ ObserverToDestroyFeaturesAlreadyReported::Observe(nsISupports* aSubject, class RegisterObserverRunnable : public Runnable { public: + RegisterObserverRunnable() : Runnable("RegisterObserverRunnable") {} NS_IMETHOD Run() override { // LeakLog made me do this. Basically, I just wanted gFeaturesAlreadyReported to be a static nsTArray, // and LeakLog was complaining about leaks like this: @@ -87,7 +88,8 @@ public: class AppendAppNotesRunnable : public CancelableRunnable { public: explicit AppendAppNotesRunnable(const nsACString& aFeatureStr) - : mFeatureString(aFeatureStr) + : CancelableRunnable("AppendAppNotesRunnable") + , mFeatureString(aFeatureStr) { } diff --git a/gfx/thebes/DeviceManagerDx.cpp b/gfx/thebes/DeviceManagerDx.cpp index dc05a4ef76cc..9077d285219f 100644 --- a/gfx/thebes/DeviceManagerDx.cpp +++ b/gfx/thebes/DeviceManagerDx.cpp @@ -976,7 +976,8 @@ DeviceManagerDx::PreloadAttachmentsOnCompositorThread() return; } - RefPtr task = NS_NewRunnableFunction([]() -> void { + RefPtr task = NS_NewRunnableFunction("DeviceManagerDx::PreloadAttachmentsOnCompositorThread", + []() -> void { if (DeviceManagerDx* dm = DeviceManagerDx::Get()) { RefPtr device; RefPtr attachments; diff --git a/gfx/thebes/SoftwareVsyncSource.cpp b/gfx/thebes/SoftwareVsyncSource.cpp index 7e92b89ec462..5776270a85fa 100644 --- a/gfx/thebes/SoftwareVsyncSource.cpp +++ b/gfx/thebes/SoftwareVsyncSource.cpp @@ -46,8 +46,8 @@ SoftwareDisplay::EnableVsync() } mVsyncEnabled = true; - mVsyncThread->message_loop()->PostTask( - NewRunnableMethod(this, &SoftwareDisplay::EnableVsync)); + mVsyncThread->message_loop()->PostTask(NewRunnableMethod( + "SoftwareDisplay::EnableVsync", this, &SoftwareDisplay::EnableVsync)); return; } @@ -65,8 +65,8 @@ SoftwareDisplay::DisableVsync() } mVsyncEnabled = false; - mVsyncThread->message_loop()->PostTask( - NewRunnableMethod(this, &SoftwareDisplay::DisableVsync)); + mVsyncThread->message_loop()->PostTask(NewRunnableMethod( + "SoftwareDisplay::DisableVsync", this, &SoftwareDisplay::DisableVsync)); return; } @@ -129,10 +129,11 @@ SoftwareDisplay::ScheduleNextVsync(mozilla::TimeStamp aVsyncTimestamp) nextVsync = mozilla::TimeStamp::Now(); } - mCurrentVsyncTask = - NewCancelableRunnableMethod(this, - &SoftwareDisplay::NotifyVsync, - nextVsync); + mCurrentVsyncTask = NewCancelableRunnableMethod( + "SoftwareDisplay::NotifyVsync", + this, + &SoftwareDisplay::NotifyVsync, + nextVsync); RefPtr addrefedTask = mCurrentVsyncTask; mVsyncThread->message_loop()->PostDelayedTask( diff --git a/gfx/thebes/gfxFcPlatformFontList.cpp b/gfx/thebes/gfxFcPlatformFontList.cpp index 9d4298dd3249..a01c4928598a 100644 --- a/gfx/thebes/gfxFcPlatformFontList.cpp +++ b/gfx/thebes/gfxFcPlatformFontList.cpp @@ -1181,10 +1181,12 @@ gfxFcPlatformFontList::gfxFcPlatformFontList() mLastConfig = FcConfigGetCurrent(); mCheckFontUpdatesTimer = do_CreateInstance("@mozilla.org/timer;1"); if (mCheckFontUpdatesTimer) { - mCheckFontUpdatesTimer-> - InitWithFuncCallback(CheckFontUpdates, this, - (rescanInterval + 1) * 1000, - nsITimer::TYPE_REPEATING_SLACK); + mCheckFontUpdatesTimer->InitWithNamedFuncCallback( + CheckFontUpdates, + this, + (rescanInterval + 1) * 1000, + nsITimer::TYPE_REPEATING_SLACK, + "gfxFcPlatformFontList::gfxFcPlatformFontList"); } else { NS_WARNING("Failure to create font updates timer"); } diff --git a/gfx/thebes/gfxFont.cpp b/gfx/thebes/gfxFont.cpp index 5aaba73517ee..0863584d8c5d 100644 --- a/gfx/thebes/gfxFont.cpp +++ b/gfx/thebes/gfxFont.cpp @@ -189,10 +189,12 @@ gfxFontCache::gfxFontCache(nsIEventTarget* aEventTarget) if (XRE_IsContentProcess() && NS_IsMainThread()) { mWordCacheExpirationTimer->SetTarget(aEventTarget); } - mWordCacheExpirationTimer-> - InitWithFuncCallback(WordCacheExpirationTimerCallback, this, - SHAPED_WORD_TIMEOUT_SECONDS * 1000, - nsITimer::TYPE_REPEATING_SLACK); + mWordCacheExpirationTimer->InitWithNamedFuncCallback( + WordCacheExpirationTimerCallback, + this, + SHAPED_WORD_TIMEOUT_SECONDS * 1000, + nsITimer::TYPE_REPEATING_SLACK, + "gfxFontCache::gfxFontCache"); } #endif } diff --git a/gfx/thebes/gfxFontInfoLoader.cpp b/gfx/thebes/gfxFontInfoLoader.cpp index a53c96369b3d..47efd180f998 100644 --- a/gfx/thebes/gfxFontInfoLoader.cpp +++ b/gfx/thebes/gfxFontInfoLoader.cpp @@ -44,8 +44,9 @@ class FontInfoLoadCompleteEvent : public Runnable { NS_DECL_ISUPPORTS_INHERITED - explicit FontInfoLoadCompleteEvent(FontInfoData *aFontInfo) : - mFontInfo(aFontInfo) + explicit FontInfoLoadCompleteEvent(FontInfoData* aFontInfo) + : mozilla::Runnable("FontInfoLoadCompleteEvent") + , mFontInfo(aFontInfo) {} NS_IMETHOD Run() override; @@ -58,8 +59,9 @@ class AsyncFontInfoLoader : public Runnable { NS_DECL_ISUPPORTS_INHERITED - explicit AsyncFontInfoLoader(FontInfoData *aFontInfo) : - mFontInfo(aFontInfo) + explicit AsyncFontInfoLoader(FontInfoData* aFontInfo) + : mozilla::Runnable("AsyncFontInfoLoader") + , mFontInfo(aFontInfo) { mCompleteEvent = new FontInfoLoadCompleteEvent(aFontInfo); } @@ -75,7 +77,11 @@ class ShutdownThreadEvent : public Runnable { NS_DECL_ISUPPORTS_INHERITED - explicit ShutdownThreadEvent(nsIThread* aThread) : mThread(aThread) {} + explicit ShutdownThreadEvent(nsIThread* aThread) + : mozilla::Runnable("ShutdownThreadEvent") + , mThread(aThread) + { + } NS_IMETHOD Run() override { mThread->Shutdown(); return NS_OK; @@ -158,8 +164,11 @@ gfxFontInfoLoader::StartLoader(uint32_t aDelay, uint32_t aInterval) // delay? ==> start async thread after a delay if (aDelay) { mState = stateTimerOnDelay; - mTimer->InitWithFuncCallback(DelayedStartCallback, this, aDelay, - nsITimer::TYPE_ONE_SHOT); + mTimer->InitWithNamedFuncCallback(DelayedStartCallback, + this, + aDelay, + nsITimer::TYPE_ONE_SHOT, + "gfxFontInfoLoader::StartLoader"); return; } @@ -209,8 +218,11 @@ gfxFontInfoLoader::FinalizeLoader(FontInfoData *aFontInfo) // not all work completed ==> run load on interval mState = stateTimerOnInterval; - mTimer->InitWithFuncCallback(LoadFontInfoCallback, this, mInterval, - nsITimer::TYPE_REPEATING_SLACK); + mTimer->InitWithNamedFuncCallback(LoadFontInfoCallback, + this, + mInterval, + nsITimer::TYPE_REPEATING_SLACK, + "gfxFontInfoLoader::FinalizeLoader"); } void diff --git a/gfx/thebes/gfxPlatform.cpp b/gfx/thebes/gfxPlatform.cpp index 9fae40928bff..9b1708170b05 100644 --- a/gfx/thebes/gfxPlatform.cpp +++ b/gfx/thebes/gfxPlatform.cpp @@ -309,7 +309,11 @@ class LogForwarderEvent : public Runnable NS_DECL_ISUPPORTS_INHERITED - explicit LogForwarderEvent(const nsCString& aMessage) : mMessage(aMessage) {} + explicit LogForwarderEvent(const nsCString& aMessage) + : mozilla::Runnable("LogForwarderEvent") + , mMessage(aMessage) + { + } NS_IMETHOD Run() override { MOZ_ASSERT(NS_IsMainThread() && (XRE_IsContentProcess() || XRE_IsGPUProcess())); @@ -363,7 +367,11 @@ class CrashTelemetryEvent : public Runnable NS_DECL_ISUPPORTS_INHERITED - explicit CrashTelemetryEvent(uint32_t aReason) : mReason(aReason) {} + explicit CrashTelemetryEvent(uint32_t aReason) + : mozilla::Runnable("CrashTelemetryEvent") + , mReason(aReason) + { + } NS_IMETHOD Run() override { MOZ_ASSERT(NS_IsMainThread()); @@ -2696,11 +2704,12 @@ gfxPlatform::NotifyCompositorCreated(LayersBackend aBackend) mCompositorBackend = aBackend; // Notify that we created a compositor, so telemetry can update. - NS_DispatchToMainThread(NS_NewRunnableFunction([] { - if (nsCOMPtr obsvc = services::GetObserverService()) { - obsvc->NotifyObservers(nullptr, "compositor:created", nullptr); - } - })); + NS_DispatchToMainThread( + NS_NewRunnableFunction("gfxPlatform::NotifyCompositorCreated", [] { + if (nsCOMPtr obsvc = services::GetObserverService()) { + obsvc->NotifyObservers(nullptr, "compositor:created", nullptr); + } + })); } /* static */ void diff --git a/gfx/thebes/gfxPlatformGtk.cpp b/gfx/thebes/gfxPlatformGtk.cpp index efa5ac154989..6aa208d827fa 100644 --- a/gfx/thebes/gfxPlatformGtk.cpp +++ b/gfx/thebes/gfxPlatformGtk.cpp @@ -652,7 +652,10 @@ public: if (!mVsyncThread.Start()) return false; - RefPtr vsyncSetup = NewRunnableMethod(this, &GLXDisplay::SetupGLContext); + RefPtr vsyncSetup = + NewRunnableMethod("GLXVsyncSource::GLXDisplay::SetupGLContext", + this, + &GLXDisplay::SetupGLContext); mVsyncThread.message_loop()->PostTask(vsyncSetup.forget()); // Wait until the setup has completed. lock.Wait(); @@ -724,7 +727,8 @@ public: // If the task has not nulled itself out, it hasn't yet realized // that vsync was disabled earlier, so continue its execution. if (!mVsyncTask) { - mVsyncTask = NewRunnableMethod(this, &GLXDisplay::RunVsync); + mVsyncTask = NewRunnableMethod( + "GLXVsyncSource::GLXDisplay::RunVsync", this, &GLXDisplay::RunVsync); RefPtr addrefedTask = mVsyncTask; mVsyncThread.message_loop()->PostTask(addrefedTask.forget()); } @@ -748,7 +752,8 @@ public: DisableVsync(); // Cleanup thread-specific resources before shutting down. - RefPtr shutdownTask = NewRunnableMethod(this, &GLXDisplay::Cleanup); + RefPtr shutdownTask = NewRunnableMethod( + "GLXVsyncSource::GLXDisplay::Cleanup", this, &GLXDisplay::Cleanup); mVsyncThread.message_loop()->PostTask(shutdownTask.forget()); // Stop, waiting for the cleanup task to finish execution. diff --git a/gfx/thebes/gfxWindowsPlatform.cpp b/gfx/thebes/gfxWindowsPlatform.cpp index 90b2f6240c56..2379dd6ee45c 100755 --- a/gfx/thebes/gfxWindowsPlatform.cpp +++ b/gfx/thebes/gfxWindowsPlatform.cpp @@ -1684,7 +1684,8 @@ public: } mVsyncThread->message_loop()->PostTask( - NewRunnableMethod(this, &D3DVsyncDisplay::VBlankLoop)); + NewRunnableMethod("D3DVsyncDisplay::VBlankLoop", + this, &D3DVsyncDisplay::VBlankLoop)); } virtual void DisableVsync() override @@ -1722,7 +1723,8 @@ public: } mVsyncThread->message_loop()->PostDelayedTask( - NewRunnableMethod(this, &D3DVsyncDisplay::VBlankLoop), + NewRunnableMethod("D3DVsyncDisplay::VBlankLoop", + this, &D3DVsyncDisplay::VBlankLoop), delay.ToMilliseconds()); } diff --git a/gfx/vr/gfxVROculus.cpp b/gfx/vr/gfxVROculus.cpp index a58151504313..91788a901366 100644 --- a/gfx/vr/gfxVROculus.cpp +++ b/gfx/vr/gfxVROculus.cpp @@ -996,9 +996,10 @@ VRControllerOculus::UpdateVibrateHaptic(ovrSession aSession, MOZ_ASSERT(mVibrateThread); RefPtr runnable = - NewRunnableMethod - (this, &VRControllerOculus::UpdateVibrateHaptic, aSession, - aHapticIndex, aIntensity, (duration > kVibrateRate) ? remainingTime : 0, aVibrateIndex, aPromiseID); + NewRunnableMethod( + "VRControllerOculus::UpdateVibrateHaptic", + this, &VRControllerOculus::UpdateVibrateHaptic, aSession, + aHapticIndex, aIntensity, (duration > kVibrateRate) ? remainingTime : 0, aVibrateIndex, aPromiseID); NS_DelayedDispatchToCurrentThread(runnable.forget(), (duration > kVibrateRate) ? kVibrateRate : remainingTime); } else { @@ -1035,8 +1036,9 @@ VRControllerOculus::VibrateHapticComplete(ovrSession aSession, uint32_t aPromise VRManager *vm = VRManager::Get(); MOZ_ASSERT(vm); - CompositorThreadHolder::Loop()->PostTask(NewRunnableMethod - (vm, &VRManager::NotifyVibrateHapticCompleted, aPromiseID)); + CompositorThreadHolder::Loop()->PostTask(NewRunnableMethod( + "VRManager::NotifyVibrateHapticCompleted", + vm, &VRManager::NotifyVibrateHapticCompleted, aPromiseID)); } void @@ -1060,7 +1062,8 @@ VRControllerOculus::VibrateHaptic(ovrSession aSession, RefPtr runnable = NewRunnableMethod - (this, &VRControllerOculus::UpdateVibrateHaptic, aSession, + ("VRControllerOculus::UpdateVibrateHaptic", + this, &VRControllerOculus::UpdateVibrateHaptic, aSession, aHapticIndex, aIntensity, aDuration, mVibrateIndex, aPromiseID); mVibrateThread->Dispatch(runnable.forget(), NS_DISPATCH_NORMAL); } diff --git a/gfx/vr/gfxVROpenVR.cpp b/gfx/vr/gfxVROpenVR.cpp index e43294f2c3d0..cd1ab0ffe7d7 100644 --- a/gfx/vr/gfxVROpenVR.cpp +++ b/gfx/vr/gfxVROpenVR.cpp @@ -454,7 +454,8 @@ VRControllerOpenVR::UpdateVibrateHaptic(::vr::IVRSystem* aVRSystem, RefPtr runnable = NewRunnableMethod<::vr::IVRSystem*, uint32_t, double, double, uint64_t, uint32_t> - (this, &VRControllerOpenVR::UpdateVibrateHaptic, aVRSystem, + ("VRControllerOpenVR::UpdateVibrateHaptic", + this, &VRControllerOpenVR::UpdateVibrateHaptic, aVRSystem, aHapticIndex, aIntensity, duration - kVibrateRate, aVibrateIndex, aPromiseID); NS_DelayedDispatchToCurrentThread(runnable.forget(), kVibrateRate); } else { @@ -470,7 +471,8 @@ VRControllerOpenVR::VibrateHapticComplete(uint32_t aPromiseID) MOZ_ASSERT(vm); CompositorThreadHolder::Loop()->PostTask(NewRunnableMethod - (vm, &VRManager::NotifyVibrateHapticCompleted, aPromiseID)); + ("VRManager::NotifyVibrateHapticCompleted", + vm, &VRManager::NotifyVibrateHapticCompleted, aPromiseID)); } void @@ -494,7 +496,8 @@ VRControllerOpenVR::VibrateHaptic(::vr::IVRSystem* aVRSystem, RefPtr runnable = NewRunnableMethod<::vr::IVRSystem*, uint32_t, double, double, uint64_t, uint32_t> - (this, &VRControllerOpenVR::UpdateVibrateHaptic, aVRSystem, + ("VRControllerOpenVR::UpdateVibrateHaptic", + this, &VRControllerOpenVR::UpdateVibrateHaptic, aVRSystem, aHapticIndex, aIntensity, aDuration, mVibrateIndex, aPromiseID); mVibrateThread->Dispatch(runnable.forget(), NS_DISPATCH_NORMAL); } diff --git a/gfx/vr/ipc/VRManagerChild.cpp b/gfx/vr/ipc/VRManagerChild.cpp index 20869f38f1cf..9807422b1c90 100644 --- a/gfx/vr/ipc/VRManagerChild.cpp +++ b/gfx/vr/ipc/VRManagerChild.cpp @@ -544,7 +544,9 @@ VRManagerChild::RunFrameRequestCallbacks() void VRManagerChild::FireDOMVRDisplayMountedEvent(uint32_t aDisplayID) { - nsContentUtils::AddScriptRunner(NewRunnableMethod(this, + nsContentUtils::AddScriptRunner(NewRunnableMethod( + "gfx::VRManagerChild::FireDOMVRDisplayMountedEventInternal", + this, &VRManagerChild::FireDOMVRDisplayMountedEventInternal, aDisplayID)); } @@ -552,7 +554,9 @@ VRManagerChild::FireDOMVRDisplayMountedEvent(uint32_t aDisplayID) void VRManagerChild::FireDOMVRDisplayUnmountedEvent(uint32_t aDisplayID) { - nsContentUtils::AddScriptRunner(NewRunnableMethod(this, + nsContentUtils::AddScriptRunner(NewRunnableMethod( + "gfx::VRManagerChild::FireDOMVRDisplayUnmountedEventInternal", + this, &VRManagerChild::FireDOMVRDisplayUnmountedEventInternal, aDisplayID)); } @@ -560,7 +564,9 @@ VRManagerChild::FireDOMVRDisplayUnmountedEvent(uint32_t aDisplayID) void VRManagerChild::FireDOMVRDisplayConnectEvent(uint32_t aDisplayID) { - nsContentUtils::AddScriptRunner(NewRunnableMethod(this, + nsContentUtils::AddScriptRunner(NewRunnableMethod( + "gfx::VRManagerChild::FireDOMVRDisplayConnectEventInternal", + this, &VRManagerChild::FireDOMVRDisplayConnectEventInternal, aDisplayID)); } @@ -568,7 +574,9 @@ VRManagerChild::FireDOMVRDisplayConnectEvent(uint32_t aDisplayID) void VRManagerChild::FireDOMVRDisplayDisconnectEvent(uint32_t aDisplayID) { - nsContentUtils::AddScriptRunner(NewRunnableMethod(this, + nsContentUtils::AddScriptRunner(NewRunnableMethod( + "gfx::VRManagerChild::FireDOMVRDisplayDisconnectEventInternal", + this, &VRManagerChild::FireDOMVRDisplayDisconnectEventInternal, aDisplayID)); } @@ -576,7 +584,9 @@ VRManagerChild::FireDOMVRDisplayDisconnectEvent(uint32_t aDisplayID) void VRManagerChild::FireDOMVRDisplayPresentChangeEvent(uint32_t aDisplayID) { - nsContentUtils::AddScriptRunner(NewRunnableMethod(this, + nsContentUtils::AddScriptRunner(NewRunnableMethod( + "gfx::VRManagerChild::FireDOMVRDisplayPresentChangeEventInternal", + this, &VRManagerChild::FireDOMVRDisplayPresentChangeEventInternal, aDisplayID)); } diff --git a/gfx/vr/ipc/VRManagerParent.cpp b/gfx/vr/ipc/VRManagerParent.cpp index 6b0dfefa216c..a10b234a136e 100644 --- a/gfx/vr/ipc/VRManagerParent.cpp +++ b/gfx/vr/ipc/VRManagerParent.cpp @@ -165,7 +165,10 @@ VRManagerParent::CreateForContent(Endpoint&& aEndpoint) RefPtr vmp = new VRManagerParent(aEndpoint.OtherPid(), true); loop->PostTask(NewRunnableMethod&&>( - vmp, &VRManagerParent::Bind, Move(aEndpoint))); + "gfx::VRManagerParent::Bind", + vmp, + &VRManagerParent::Bind, + Move(aEndpoint))); return true; } @@ -206,7 +209,10 @@ VRManagerParent::CreateForGPUProcess(Endpoint&& aEndpoint) RefPtr vmp = new VRManagerParent(aEndpoint.OtherPid(), false); vmp->mCompositorThreadHolder = layers::CompositorThreadHolder::GetSingleton(); loop->PostTask(NewRunnableMethod&&>( - vmp, &VRManagerParent::Bind, Move(aEndpoint))); + "gfx::VRManagerParent::Bind", + vmp, + &VRManagerParent::Bind, + Move(aEndpoint))); return true; } @@ -221,7 +227,10 @@ void VRManagerParent::ActorDestroy(ActorDestroyReason why) { UnregisterFromManager(); - MessageLoop::current()->PostTask(NewRunnableMethod(this, &VRManagerParent::DeferredDestroy)); + MessageLoop::current()->PostTask( + NewRunnableMethod("gfx::VRManagerParent::DeferredDestroy", + this, + &VRManagerParent::DeferredDestroy)); } void diff --git a/gfx/webrender_bindings/RenderThread.cpp b/gfx/webrender_bindings/RenderThread.cpp index 20ab91f90edd..b555c4c93c73 100644 --- a/gfx/webrender_bindings/RenderThread.cpp +++ b/gfx/webrender_bindings/RenderThread.cpp @@ -124,9 +124,11 @@ void RenderThread::NewFrameReady(wr::WindowId aWindowId) { if (!IsInRenderThread()) { - Loop()->PostTask(NewRunnableMethod( - this, &RenderThread::NewFrameReady, aWindowId - )); + Loop()->PostTask( + NewRunnableMethod("wr::RenderThread::NewFrameReady", + this, + &RenderThread::NewFrameReady, + aWindowId)); return; } @@ -139,8 +141,11 @@ RenderThread::NewScrollFrameReady(wr::WindowId aWindowId, bool aCompositeNeeded) { if (!IsInRenderThread()) { Loop()->PostTask(NewRunnableMethod( - this, &RenderThread::NewScrollFrameReady, aWindowId, aCompositeNeeded - )); + "wr::RenderThread::NewScrollFrameReady", + this, + &RenderThread::NewScrollFrameReady, + aWindowId, + aCompositeNeeded)); return; } @@ -151,10 +156,13 @@ void RenderThread::RunEvent(wr::WindowId aWindowId, UniquePtr aEvent) { if (!IsInRenderThread()) { - Loop()->PostTask(NewRunnableMethod&&>( - this, &RenderThread::RunEvent, - aWindowId, Move(aEvent) - )); + Loop()->PostTask( + NewRunnableMethod&&>( + "wr::RenderThread::RunEvent", + this, + &RenderThread::RunEvent, + aWindowId, + Move(aEvent))); return; } @@ -302,6 +310,7 @@ RenderThread::UnregisterExternalImage(uint64_t aExternalImageId) RefPtr texture = mRenderTextures.Get(aExternalImageId); mRenderTextures.Remove(aExternalImageId); Loop()->PostTask(NewRunnableMethod>( + "RenderThread::DeferredRenderTextureHostDestroy", this, &RenderThread::DeferredRenderTextureHostDestroy, Move(texture) )); } else { diff --git a/image/DecodePool.cpp b/image/DecodePool.cpp index 92e38404600e..b6db3a2d0cfe 100644 --- a/image/DecodePool.cpp +++ b/image/DecodePool.cpp @@ -160,7 +160,8 @@ class DecodePoolWorker : public Runnable { public: explicit DecodePoolWorker(DecodePoolImpl* aImpl) - : mImpl(aImpl) + : Runnable("image::DecodePoolWorker") + , mImpl(aImpl) { } NS_IMETHOD Run() override diff --git a/image/Image.cpp b/image/Image.cpp index 5436cbb93464..b2faa61a9c6a 100644 --- a/image/Image.cpp +++ b/image/Image.cpp @@ -157,12 +157,13 @@ ImageResource::SendOnUnlockedDraw(uint32_t aFlags) mProgressTracker->OnUnlockedDraw(); } else { NotNull> image = WrapNotNull(this); - NS_DispatchToMainThread(NS_NewRunnableFunction([=]() -> void { - RefPtr tracker = image->GetProgressTracker(); - if (tracker) { - tracker->OnUnlockedDraw(); - } - })); + NS_DispatchToMainThread(NS_NewRunnableFunction( + "image::ImageResource::SendOnUnlockedDraw", [=]() -> void { + RefPtr tracker = image->GetProgressTracker(); + if (tracker) { + tracker->OnUnlockedDraw(); + } + })); } } diff --git a/image/ProgressTracker.cpp b/image/ProgressTracker.cpp index 1f51cce3e24f..936d37af352d 100644 --- a/image/ProgressTracker.cpp +++ b/image/ProgressTracker.cpp @@ -204,7 +204,8 @@ class AsyncNotifyCurrentStateRunnable : public Runnable public: AsyncNotifyCurrentStateRunnable(ProgressTracker* aProgressTracker, IProgressObserver* aObserver) - : mProgressTracker(aProgressTracker) + : Runnable("image::AsyncNotifyCurrentStateRunnable") + , mProgressTracker(aProgressTracker) , mObserver(aObserver) { MOZ_ASSERT(NS_IsMainThread(), "Should be created on the main thread"); diff --git a/image/RasterImage.cpp b/image/RasterImage.cpp index 8585272ab49c..01e8dfbbe50e 100644 --- a/image/RasterImage.cpp +++ b/image/RasterImage.cpp @@ -1610,7 +1610,8 @@ RasterImage::HandleErrorWorker::DispatchIfNeeded(RasterImage* aImage) } RasterImage::HandleErrorWorker::HandleErrorWorker(RasterImage* aImage) - : mImage(aImage) + : Runnable("image::RasterImage::HandleErrorWorker") + , mImage(aImage) { MOZ_ASSERT(mImage, "Should have image"); } diff --git a/image/test/gtest/TestDecodeToSurface.cpp b/image/test/gtest/TestDecodeToSurface.cpp index f5762d84c172..c2628c8c6665 100644 --- a/image/test/gtest/TestDecodeToSurface.cpp +++ b/image/test/gtest/TestDecodeToSurface.cpp @@ -29,7 +29,8 @@ public: nsIInputStream* aInputStream, ImageOps::ImageBuffer* aImageBuffer, const ImageTestCase& aTestCase) - : mSurface(aSurface) + : mozilla::Runnable("DecodeToSurfaceRunnable") + , mSurface(aSurface) , mInputStream(aInputStream) , mImageBuffer(aImageBuffer) , mTestCase(aTestCase) diff --git a/ipc/chromium/src/base/message_loop.h b/ipc/chromium/src/base/message_loop.h index d16aa0cbebec..91e2a0fb62ca 100644 --- a/ipc/chromium/src/base/message_loop.h +++ b/ipc/chromium/src/base/message_loop.h @@ -140,6 +140,7 @@ public: // arbitrary MessageLoop to Quit. class QuitTask : public mozilla::Runnable { public: + QuitTask() : mozilla::Runnable("QuitTask") {} NS_IMETHOD Run() override { MessageLoop::current()->Quit(); return NS_OK; diff --git a/ipc/chromium/src/base/object_watcher.cc b/ipc/chromium/src/base/object_watcher.cc index ced911fa2079..4308fa42a162 100644 --- a/ipc/chromium/src/base/object_watcher.cc +++ b/ipc/chromium/src/base/object_watcher.cc @@ -21,6 +21,8 @@ public: Delegate* delegate; // Delegate to notify when signaled bool did_signal; // DoneWaiting was called + Watch() : mozilla::Runnable("ObjectWatcher::Watch") {} + NS_IMETHOD Run() override { // The watcher may have already been torn down, in which case we need to // just get out of dodge. diff --git a/ipc/chromium/src/base/task.h b/ipc/chromium/src/base/task.h index 10dc9c488bbc..e66e51fe9054 100644 --- a/ipc/chromium/src/base/task.h +++ b/ipc/chromium/src/base/task.h @@ -159,12 +159,16 @@ class ScopedRunnableMethodFactory : public RevocableStore { template class RunnableMethod : public mozilla::Runnable { public: - RunnableMethod() { } + RunnableMethod() + : mozilla::Runnable("ScopedRunnableMethodFactory::RunnableMethod") + { + } - void Init(T* obj, Method meth, Params&& params) { - obj_ = obj; - meth_ = meth; - params_ = mozilla::Forward(params); + void Init(T* obj, Method meth, Params&& params) + { + obj_ = obj; + meth_ = meth; + params_ = mozilla::Forward(params); } NS_IMETHOD Run() override { @@ -193,7 +197,10 @@ class ScopedRunnableMethodFactory : public RevocableStore { template class DeleteTask : public mozilla::CancelableRunnable { public: - explicit DeleteTask(T* obj) : obj_(obj) { + explicit DeleteTask(T* obj) + : mozilla::CancelableRunnable("DeleteTask") + , obj_(obj) + { } NS_IMETHOD Run() override { delete obj_; @@ -270,9 +277,13 @@ template class RunnableMethod : public mozilla::CancelableRunnable, public RunnableMethodTraits { public: - RunnableMethod(T* obj, Method meth, Params&& params) - : obj_(obj), meth_(meth), params_(mozilla::Forward(params)) { - this->RetainCallee(obj_); + RunnableMethod(T* obj, Method meth, Params&& params) + : mozilla::CancelableRunnable("RunnableMethod") + , obj_(obj) + , meth_(meth) + , params_(mozilla::Forward(params)) + { + this->RetainCallee(obj_); } ~RunnableMethod() { ReleaseCallee(); @@ -324,8 +335,11 @@ NewRunnableMethod(T* object, Method method, Args&&... args) { template class RunnableFunction : public mozilla::CancelableRunnable { public: - RunnableFunction(Function function, Params&& params) - : function_(function), params_(mozilla::Forward(params)) { + RunnableFunction(Function function, Params&& params) + : mozilla::CancelableRunnable("RunnableFunction") + , function_(function) + , params_(mozilla::Forward(params)) + { } ~RunnableFunction() { diff --git a/ipc/chromium/src/base/thread.cc b/ipc/chromium/src/base/thread.cc index d5f0eef35463..f15de139818e 100644 --- a/ipc/chromium/src/base/thread.cc +++ b/ipc/chromium/src/base/thread.cc @@ -22,6 +22,7 @@ namespace base { // This task is used to trigger the message loop to exit. class ThreadQuitTask : public mozilla::Runnable { public: + ThreadQuitTask() : mozilla::Runnable("ThreadQuitTask") {} NS_IMETHOD Run() override { MessageLoop::current()->Quit(); Thread::SetThreadWasQuitProperly(true); diff --git a/ipc/chromium/src/base/timer.h b/ipc/chromium/src/base/timer.h index b65f89392e98..5703707ca8d7 100644 --- a/ipc/chromium/src/base/timer.h +++ b/ipc/chromium/src/base/timer.h @@ -87,8 +87,11 @@ class BaseTimer_Helper { // We have access to the timer_ member so we can orphan this task. class TimerTask : public mozilla::Runnable { public: - explicit TimerTask(TimeDelta delay) : delay_(delay) { - // timer_ is set in InitiateDelayedTask. + explicit TimerTask(TimeDelta delay) + : mozilla::Runnable("base::BaseTimer_Helper::TimerTask") + , delay_(delay) + { + // timer_ is set in InitiateDelayedTask. } virtual ~TimerTask() {} BaseTimer_Helper* timer_; diff --git a/ipc/chromium/src/chrome/common/process_watcher_posix_sigchld.cc b/ipc/chromium/src/chrome/common/process_watcher_posix_sigchld.cc index 5abe143c15db..1b0e62639712 100644 --- a/ipc/chromium/src/chrome/common/process_watcher_posix_sigchld.cc +++ b/ipc/chromium/src/chrome/common/process_watcher_posix_sigchld.cc @@ -79,7 +79,9 @@ class ChildGrimReaper : public ChildReaper, public mozilla::Runnable { public: - explicit ChildGrimReaper(pid_t process) : ChildReaper(process) + explicit ChildGrimReaper(pid_t process) + : ChildReaper(process) + , mozilla::Runnable("ChildGrimReaper") { } diff --git a/ipc/chromium/src/chrome/common/process_watcher_win.cc b/ipc/chromium/src/chrome/common/process_watcher_win.cc index fccb83999e36..37d2632fd85d 100644 --- a/ipc/chromium/src/chrome/common/process_watcher_win.cc +++ b/ipc/chromium/src/chrome/common/process_watcher_win.cc @@ -20,7 +20,7 @@ class ChildReaper : public mozilla::Runnable, public MessageLoop::DestructionObserver { public: explicit ChildReaper(base::ProcessHandle process, bool force) - : process_(process), force_(force) { + : mozilla::Runnable("ChildReaper"), process_(process), force_(force) { watcher_.StartWatching(process_, this); } diff --git a/ipc/glue/BackgroundImpl.cpp b/ipc/glue/BackgroundImpl.cpp index c37f4b2413a9..93f5310c2743 100644 --- a/ipc/glue/BackgroundImpl.cpp +++ b/ipc/glue/BackgroundImpl.cpp @@ -428,7 +428,8 @@ private: threadLocalInfo->mActor.forget(&actor); MOZ_ALWAYS_SUCCEEDS( - NS_DispatchToMainThread(NewNonOwningRunnableMethod(actor, &ChildImpl::Release))); + NS_DispatchToMainThread(NewNonOwningRunnableMethod("ChildImpl::Release", + actor, &ChildImpl::Release))); } } delete threadLocalInfo; @@ -954,7 +955,8 @@ ParentImpl::GetContentParent(PBackgroundParent* aBackgroundActor) // will run before the reference we hand out can be released, and the // ContentParent can't die as long as the existing reference is maintained. MOZ_ALWAYS_SUCCEEDS( - NS_DispatchToMainThread(NewNonOwningRunnableMethod(actor->mContent, &ContentParent::AddRef))); + NS_DispatchToMainThread(NewNonOwningRunnableMethod("ContentParent::AddRef", + actor->mContent, &ContentParent::AddRef))); } return already_AddRefed(actor->mContent.get()); @@ -1233,7 +1235,8 @@ ParentImpl::Destroy() AssertIsInMainProcess(); MOZ_ALWAYS_SUCCEEDS( - NS_DispatchToMainThread(NewNonOwningRunnableMethod(this, &ParentImpl::MainThreadActorDestroy))); + NS_DispatchToMainThread(NewNonOwningRunnableMethod("ParentImpl::MainThreadActorDestroy", + this, &ParentImpl::MainThreadActorDestroy))); } void @@ -1279,7 +1282,8 @@ ParentImpl::ActorDestroy(ActorDestroyReason aWhy) // long enough to be cleared in this call stack. MOZ_ALWAYS_SUCCEEDS( - NS_DispatchToCurrentThread(NewNonOwningRunnableMethod(this, &ParentImpl::Destroy))); + NS_DispatchToCurrentThread(NewNonOwningRunnableMethod("ParentImpl::Destroy", + this, &ParentImpl::Destroy))); } NS_IMPL_ISUPPORTS(ParentImpl::ShutdownObserver, nsIObserver) diff --git a/ipc/glue/BackgroundParentImpl.cpp b/ipc/glue/BackgroundParentImpl.cpp index 319787b3d885..b9cc273c79ff 100644 --- a/ipc/glue/BackgroundParentImpl.cpp +++ b/ipc/glue/BackgroundParentImpl.cpp @@ -404,7 +404,8 @@ class InitUDPSocketParentCallback final : public Runnable public: InitUDPSocketParentCallback(UDPSocketParent* aActor, const nsACString& aFilter) - : mActor(aActor) + : Runnable("ipc::InitUDPSocketParentCallback") + , mActor(aActor) , mFilter(aFilter) { AssertIsInMainProcess(); @@ -528,7 +529,8 @@ public: CheckPrincipalRunnable(already_AddRefed aParent, const PrincipalInfo& aPrincipalInfo, const nsCString& aOrigin) - : mContentParent(aParent) + : Runnable("ipc::CheckPrincipalRunnable") + , mContentParent(aParent) , mPrincipalInfo(aPrincipalInfo) , mOrigin(aOrigin) { diff --git a/ipc/glue/CrashReporterHost.cpp b/ipc/glue/CrashReporterHost.cpp index ba9af7424887..75c436e2224a 100644 --- a/ipc/glue/CrashReporterHost.cpp +++ b/ipc/glue/CrashReporterHost.cpp @@ -109,9 +109,11 @@ CrashReporterHost::NotifyCrashService(GeckoProcessType aProcessType, const AnnotationTable* aNotes) { if (!NS_IsMainThread()) { - RefPtr runnable = NS_NewRunnableFunction([=] () -> void { - CrashReporterHost::NotifyCrashService(aProcessType, aChildDumpID, aNotes); - }); + RefPtr runnable = NS_NewRunnableFunction( + "ipc::CrashReporterHost::NotifyCrashService", [=]() -> void { + CrashReporterHost::NotifyCrashService( + aProcessType, aChildDumpID, aNotes); + }); RefPtr mainThread = do_GetMainThread(); SyncRunnable::DispatchToThread(mainThread, runnable); return; diff --git a/ipc/glue/GeckoChildProcessHost.cpp b/ipc/glue/GeckoChildProcessHost.cpp index 098b27a5852b..70279c5356c7 100644 --- a/ipc/glue/GeckoChildProcessHost.cpp +++ b/ipc/glue/GeckoChildProcessHost.cpp @@ -359,10 +359,13 @@ GeckoChildProcessHost::SyncLaunch(std::vector aExtraOpts, int aTime MessageLoop* ioLoop = XRE_GetIOMessageLoop(); NS_ASSERTION(MessageLoop::current() != ioLoop, "sync launch from the IO thread NYI"); - ioLoop->PostTask(NewNonOwningRunnableMethod - , base::ProcessArchitecture> - (this, &GeckoChildProcessHost::RunPerformAsyncLaunch, - aExtraOpts, arch)); + ioLoop->PostTask(NewNonOwningRunnableMethod, + base::ProcessArchitecture>( + "ipc::GeckoChildProcessHost::RunPerformAsyncLaunch", + this, + &GeckoChildProcessHost::RunPerformAsyncLaunch, + aExtraOpts, + arch)); return WaitUntilConnected(aTimeoutMs); } @@ -375,10 +378,13 @@ GeckoChildProcessHost::AsyncLaunch(std::vector aExtraOpts, MessageLoop* ioLoop = XRE_GetIOMessageLoop(); - ioLoop->PostTask(NewNonOwningRunnableMethod - , base::ProcessArchitecture> - (this, &GeckoChildProcessHost::RunPerformAsyncLaunch, - aExtraOpts, arch)); + ioLoop->PostTask(NewNonOwningRunnableMethod, + base::ProcessArchitecture>( + "ipc::GeckoChildProcessHost::RunPerformAsyncLaunch", + this, + &GeckoChildProcessHost::RunPerformAsyncLaunch, + aExtraOpts, + arch)); // This may look like the sync launch wait, but we only delay as // long as it takes to create the channel. @@ -434,10 +440,13 @@ GeckoChildProcessHost::LaunchAndWaitForProcessHandle(StringVector aExtraOpts) PrepareLaunch(); MessageLoop* ioLoop = XRE_GetIOMessageLoop(); - ioLoop->PostTask(NewNonOwningRunnableMethod - , base::ProcessArchitecture> - (this, &GeckoChildProcessHost::RunPerformAsyncLaunch, - aExtraOpts, base::GetCurrentProcessArchitecture())); + ioLoop->PostTask(NewNonOwningRunnableMethod, + base::ProcessArchitecture>( + "ipc::GeckoChildProcessHost::RunPerformAsyncLaunch", + this, + &GeckoChildProcessHost::RunPerformAsyncLaunch, + aExtraOpts, + base::GetCurrentProcessArchitecture())); MonitorAutoLock lock(mMonitor); while (mProcessState < PROCESS_CREATED) { diff --git a/ipc/glue/IPCStreamDestination.cpp b/ipc/glue/IPCStreamDestination.cpp index 8c1757f60a08..be61f321c649 100644 --- a/ipc/glue/IPCStreamDestination.cpp +++ b/ipc/glue/IPCStreamDestination.cpp @@ -177,9 +177,12 @@ public: eCloseDestination, }; - HelperRunnable(IPCStreamDestination::DelayedStartInputStream* aDelayedStartInputStream, - Op aOp) - : mDelayedStartInputStream(aDelayedStartInputStream) + HelperRunnable( + IPCStreamDestination::DelayedStartInputStream* aDelayedStartInputStream, + Op aOp) + : Runnable( + "ipc::IPCStreamDestination::DelayedStartInputStream::HelperRunnable") + , mDelayedStartInputStream(aDelayedStartInputStream) , mOp(aOp) { MOZ_ASSERT(aDelayedStartInputStream); diff --git a/ipc/glue/MessageChannel.cpp b/ipc/glue/MessageChannel.cpp index 3f874ef0e481..b20185d35788 100644 --- a/ipc/glue/MessageChannel.cpp +++ b/ipc/glue/MessageChannel.cpp @@ -546,8 +546,10 @@ MessageChannel::MessageChannel(const char* aName, mIsSyncWaitingOnNonMainThread = false; #endif - mOnChannelConnectedTask = - NewNonOwningCancelableRunnableMethod(this, &MessageChannel::DispatchOnChannelConnected); + mOnChannelConnectedTask = NewNonOwningCancelableRunnableMethod( + "ipc::MessageChannel::DispatchOnChannelConnected", + this, + &MessageChannel::DispatchOnChannelConnected); #ifdef OS_WIN mEvent = CreateEventW(nullptr, TRUE, FALSE, nullptr); @@ -799,10 +801,12 @@ MessageChannel::Open(MessageChannel *aTargetChan, MessageLoop *aTargetLoop, Side MonitorAutoLock lock(*mMonitor); mChannelState = ChannelOpening; - aTargetLoop->PostTask(NewNonOwningRunnableMethod - (aTargetChan, - &MessageChannel::OnOpenAsSlave, - this, oppSide)); + aTargetLoop->PostTask(NewNonOwningRunnableMethod( + "ipc::MessageChannel::OnOpenAsSlave", + aTargetChan, + &MessageChannel::OnOpenAsSlave, + this, + oppSide)); while (ChannelOpening == mChannelState) mMonitor->Wait(); @@ -2524,12 +2528,14 @@ MessageChannel::OnNotifyMaybeChannelError() } if (IsOnCxxStack()) { - mChannelErrorTask = - NewNonOwningCancelableRunnableMethod(this, &MessageChannel::OnNotifyMaybeChannelError); - RefPtr task = mChannelErrorTask; - // 10 ms delay is completely arbitrary - mWorkerLoop->PostDelayedTask(task.forget(), 10); - return; + mChannelErrorTask = NewNonOwningCancelableRunnableMethod( + "ipc::MessageChannel::OnNotifyMaybeChannelError", + this, + &MessageChannel::OnNotifyMaybeChannelError); + RefPtr task = mChannelErrorTask; + // 10 ms delay is completely arbitrary + mWorkerLoop->PostDelayedTask(task.forget(), 10); + return; } NotifyMaybeChannelError(); @@ -2544,8 +2550,10 @@ MessageChannel::PostErrorNotifyTask() return; // This must be the last code that runs on this thread! - mChannelErrorTask = - NewNonOwningCancelableRunnableMethod(this, &MessageChannel::OnNotifyMaybeChannelError); + mChannelErrorTask = NewNonOwningCancelableRunnableMethod( + "ipc::MessageChannel::OnNotifyMaybeChannelError", + this, + &MessageChannel::OnNotifyMaybeChannelError); RefPtr task = mChannelErrorTask; mWorkerLoop->PostTask(task.forget()); } diff --git a/ipc/glue/MessageLink.cpp b/ipc/glue/MessageLink.cpp index 9bc1a1165e11..4bc46d11c2a4 100644 --- a/ipc/glue/MessageLink.cpp +++ b/ipc/glue/MessageLink.cpp @@ -102,8 +102,11 @@ ProcessLink::Open(mozilla::ipc::Transport* aTransport, MessageLoop *aIOLoop, Sid // If we were never able to open the transport, immediately post an error message. if (mTransport->Unsound_IsClosed()) { - mIOLoop->PostTask(NewNonOwningRunnableMethod(this, &ProcessLink::OnChannelConnectError)); - return; + mIOLoop->PostTask( + NewNonOwningRunnableMethod("ipc::ProcessLink::OnChannelConnectError", + this, + &ProcessLink::OnChannelConnectError)); + return; } { @@ -113,12 +116,18 @@ ProcessLink::Open(mozilla::ipc::Transport* aTransport, MessageLoop *aIOLoop, Sid // Transport::Connect() has not been called. Call it so // we start polling our pipe and processing outgoing // messages. - mIOLoop->PostTask(NewNonOwningRunnableMethod(this, &ProcessLink::OnChannelOpened)); + mIOLoop->PostTask( + NewNonOwningRunnableMethod("ipc::ProcessLink::OnChannelOpened", + this, + &ProcessLink::OnChannelOpened)); } else { // Transport::Connect() has already been called. Take // over the channel from the previous listener and process // any queued messages. - mIOLoop->PostTask(NewNonOwningRunnableMethod(this, &ProcessLink::OnTakeConnectedChannel)); + mIOLoop->PostTask(NewNonOwningRunnableMethod( + "ipc::ProcessLink::OnTakeConnectedChannel", + this, + &ProcessLink::OnTakeConnectedChannel)); } // Should not wait here if something goes wrong with the channel. @@ -134,7 +143,11 @@ ProcessLink::EchoMessage(Message *msg) mChan->AssertWorkerThread(); mChan->mMonitor->AssertCurrentThreadOwns(); - mIOLoop->PostTask(NewNonOwningRunnableMethod(this, &ProcessLink::OnEchoMessage, msg)); + mIOLoop->PostTask( + NewNonOwningRunnableMethod("ipc::ProcessLink::OnEchoMessage", + this, + &ProcessLink::OnEchoMessage, + msg)); // OnEchoMessage takes ownership of |msg| } @@ -152,7 +165,8 @@ ProcessLink::SendMessage(Message *msg) mChan->AssertWorkerThread(); mChan->mMonitor->AssertCurrentThreadOwns(); - mIOLoop->PostTask(NewNonOwningRunnableMethod(mTransport, &Transport::Send, msg)); + mIOLoop->PostTask(NewNonOwningRunnableMethod( + "IPC::Channel::Send", mTransport, &Transport::Send, msg)); } void @@ -161,7 +175,8 @@ ProcessLink::SendClose() mChan->AssertWorkerThread(); mChan->mMonitor->AssertCurrentThreadOwns(); - mIOLoop->PostTask(NewNonOwningRunnableMethod(this, &ProcessLink::OnCloseChannel)); + mIOLoop->PostTask(NewNonOwningRunnableMethod( + "ipc::ProcessLink::OnCloseChannel", this, &ProcessLink::OnCloseChannel)); } ThreadLink::ThreadLink(MessageChannel *aChan, MessageChannel *aTargetChan) diff --git a/ipc/glue/MessagePump.cpp b/ipc/glue/MessagePump.cpp index c4d2da790929..42aeb699d4fa 100644 --- a/ipc/glue/MessagePump.cpp +++ b/ipc/glue/MessagePump.cpp @@ -42,7 +42,8 @@ class DoWorkRunnable final : public CancelableRunnable, { public: explicit DoWorkRunnable(MessagePump* aPump) - : mPump(aPump) + : CancelableRunnable("ipc::DoWorkRunnable") + , mPump(aPump) { MOZ_ASSERT(aPump); } diff --git a/ipc/glue/TaskFactory.h b/ipc/glue/TaskFactory.h index 4852e369cae0..80b767ed9b6f 100644 --- a/ipc/glue/TaskFactory.h +++ b/ipc/glue/TaskFactory.h @@ -76,11 +76,12 @@ protected: template class RunnableMethod : public Runnable { public: - RunnableMethod(T* obj, Method meth, const Params& params) - : obj_(obj) - , meth_(meth) - , params_(params) { - + RunnableMethod(T* obj, Method meth, const Params& params) + : Runnable("ipc::TaskFactory::RunnableMethod") + , obj_(obj) + , meth_(meth) + , params_(params) + { } NS_IMETHOD Run() override { diff --git a/ipc/ipdl/test/cxx/TestCancel.cpp b/ipc/ipdl/test/cxx/TestCancel.cpp index 854eb51eec7f..719a41f81d88 100644 --- a/ipc/ipdl/test/cxx/TestCancel.cpp +++ b/ipc/ipdl/test/cxx/TestCancel.cpp @@ -76,9 +76,9 @@ TestCancelParent::RecvTest3_2() mozilla::ipc::IPCResult TestCancelParent::RecvDone() { - MessageLoop::current()->PostTask( - NewNonOwningRunnableMethod(this, &TestCancelParent::Close)); - return IPC_OK(); + MessageLoop::current()->PostTask(NewNonOwningRunnableMethod( + "ipc::IToplevelProtocol::Close", this, &TestCancelParent::Close)); + return IPC_OK(); } mozilla::ipc::IPCResult diff --git a/ipc/ipdl/test/cxx/TestDemon.cpp b/ipc/ipdl/test/cxx/TestDemon.cpp index ef87b3b25b0f..160cd424516a 100644 --- a/ipc/ipdl/test/cxx/TestDemon.cpp +++ b/ipc/ipdl/test/cxx/TestDemon.cpp @@ -176,7 +176,10 @@ TestDemonParent::RunUnlimitedSequence() gFlushStack = false; DoAction(); - MessageLoop::current()->PostTask(NewNonOwningRunnableMethod(this, &TestDemonParent::RunUnlimitedSequence)); + MessageLoop::current()->PostTask(NewNonOwningRunnableMethod( + "_ipdltest::TestDemonParent::RunUnlimitedSequence", + this, + &TestDemonParent::RunUnlimitedSequence)); } void @@ -320,7 +323,10 @@ TestDemonChild::RunUnlimitedSequence() gFlushStack = false; DoAction(); - MessageLoop::current()->PostTask(NewNonOwningRunnableMethod(this, &TestDemonChild::RunUnlimitedSequence)); + MessageLoop::current()->PostTask(NewNonOwningRunnableMethod( + "_ipdltest::TestDemonChild::RunUnlimitedSequence", + this, + &TestDemonChild::RunUnlimitedSequence)); } void diff --git a/ipc/ipdl/test/cxx/TestEndpointBridgeMain.cpp b/ipc/ipdl/test/cxx/TestEndpointBridgeMain.cpp index 412077884493..b01c4b81472a 100644 --- a/ipc/ipdl/test/cxx/TestEndpointBridgeMain.cpp +++ b/ipc/ipdl/test/cxx/TestEndpointBridgeMain.cpp @@ -232,7 +232,9 @@ TestEndpointBridgeMainSubChild::RecvHi() // Need to close the channel without message-processing frames on // the C++ stack MessageLoop::current()->PostTask( - NewNonOwningRunnableMethod(this, &TestEndpointBridgeMainSubChild::Close)); + NewNonOwningRunnableMethod("ipc::IToplevelProtocol::Close", + this, + &TestEndpointBridgeMainSubChild::Close)); return IPC_OK(); } diff --git a/ipc/ipdl/test/cxx/TestEndpointOpens.cpp b/ipc/ipdl/test/cxx/TestEndpointOpens.cpp index b99dccb199ca..51bd176d8a79 100644 --- a/ipc/ipdl/test/cxx/TestEndpointOpens.cpp +++ b/ipc/ipdl/test/cxx/TestEndpointOpens.cpp @@ -232,7 +232,9 @@ TestEndpointOpensOpenedChild::RecvHi() // Need to close the channel without message-processing frames on // the C++ stack MessageLoop::current()->PostTask( - NewNonOwningRunnableMethod(this, &TestEndpointOpensOpenedChild::Close)); + NewNonOwningRunnableMethod("ipc::IToplevelProtocol::Close", + this, + &TestEndpointOpensOpenedChild::Close)); return IPC_OK(); } @@ -253,7 +255,9 @@ ShutdownTestEndpointOpensOpenedChild(TestEndpointOpensOpenedChild* child, // Kick off main-thread shutdown. gMainThread->PostTask( - NewNonOwningRunnableMethod(gOpensChild, &TestEndpointOpensChild::Close)); + NewNonOwningRunnableMethod("ipc::IToplevelProtocol::Close", + gOpensChild, + &TestEndpointOpensChild::Close)); } void diff --git a/ipc/ipdl/test/cxx/TestHangs.cpp b/ipc/ipdl/test/cxx/TestHangs.cpp index 178e5fc184d3..9f639e077774 100644 --- a/ipc/ipdl/test/cxx/TestHangs.cpp +++ b/ipc/ipdl/test/cxx/TestHangs.cpp @@ -76,8 +76,8 @@ TestHangsParent::ShouldContinueFromReplyTimeout() // reply should be here; we'll post a task to shut things down. // This must be after OnMaybeDequeueOne() in the event queue. - MessageLoop::current()->PostTask( - NewNonOwningRunnableMethod(this, &TestHangsParent::CleanUp)); + MessageLoop::current()->PostTask(NewNonOwningRunnableMethod( + "_ipdltest::TestHangsParent::CleanUp", this, &TestHangsParent::CleanUp)); GetIPCChannel()->CloseWithTimeout(); diff --git a/ipc/ipdl/test/cxx/TestInterruptRaces.cpp b/ipc/ipdl/test/cxx/TestInterruptRaces.cpp index 4de6dc75996d..52306b8eafa8 100644 --- a/ipc/ipdl/test/cxx/TestInterruptRaces.cpp +++ b/ipc/ipdl/test/cxx/TestInterruptRaces.cpp @@ -27,9 +27,11 @@ TestInterruptRacesParent::Main() mozilla::ipc::IPCResult TestInterruptRacesParent::RecvStartRace() { - MessageLoop::current()->PostTask( - NewNonOwningRunnableMethod(this, &TestInterruptRacesParent::OnRaceTime)); - return IPC_OK(); + MessageLoop::current()->PostTask(NewNonOwningRunnableMethod( + "_ipdltest::TestInterruptRacesParent::OnRaceTime", + this, + &TestInterruptRacesParent::OnRaceTime)); + return IPC_OK(); } void @@ -44,7 +46,9 @@ TestInterruptRacesParent::OnRaceTime() mHasReply = true; MessageLoop::current()->PostTask( - NewNonOwningRunnableMethod(this, &TestInterruptRacesParent::Test2)); + NewNonOwningRunnableMethod("_ipdltest::TestInterruptRacesParent::Test2", + this, + &TestInterruptRacesParent::Test2)); } mozilla::ipc::IPCResult @@ -71,7 +75,9 @@ TestInterruptRacesParent::Test2() puts(" passed"); MessageLoop::current()->PostTask( - NewNonOwningRunnableMethod(this, &TestInterruptRacesParent::Test3)); + NewNonOwningRunnableMethod("_ipdltest::TestInterruptRacesParent::Test3", + this, + &TestInterruptRacesParent::Test3)); } mozilla::ipc::IPCResult diff --git a/ipc/ipdl/test/cxx/TestInterruptShutdownRace.cpp b/ipc/ipdl/test/cxx/TestInterruptShutdownRace.cpp index 650fb985b9b8..5252f538617c 100644 --- a/ipc/ipdl/test/cxx/TestInterruptShutdownRace.cpp +++ b/ipc/ipdl/test/cxx/TestInterruptShutdownRace.cpp @@ -51,9 +51,10 @@ TestInterruptShutdownRaceParent::RecvStartDeath() { // this will be ordered before the OnMaybeDequeueOne event of // Orphan in the queue - MessageLoop::current()->PostTask( - NewNonOwningRunnableMethod(this, - &TestInterruptShutdownRaceParent::StartShuttingDown)); + MessageLoop::current()->PostTask(NewNonOwningRunnableMethod( + "_ipdltest::TestInterruptShutdownRaceParent::StartShuttingDown", + this, + &TestInterruptShutdownRaceParent::StartShuttingDown)); return IPC_OK(); } diff --git a/ipc/ipdl/test/cxx/TestNestedLoops.cpp b/ipc/ipdl/test/cxx/TestNestedLoops.cpp index 3ea4f00ddfce..09a6ca1eabaf 100644 --- a/ipc/ipdl/test/cxx/TestNestedLoops.cpp +++ b/ipc/ipdl/test/cxx/TestNestedLoops.cpp @@ -45,8 +45,10 @@ TestNestedLoopsParent::RecvNonce() // if we have an OnMaybeDequeueOne waiting for us (we may not, due // to the inherent race condition in this test, then this event // must be ordered after it in the queue - MessageLoop::current()->PostTask( - NewNonOwningRunnableMethod(this, &TestNestedLoopsParent::BreakNestedLoop)); + MessageLoop::current()->PostTask(NewNonOwningRunnableMethod( + "_ipdltest::TestNestedLoopsParent::BreakNestedLoop", + this, + &TestNestedLoopsParent::BreakNestedLoop)); // sigh ... spin for a while to let the reply to R arrive puts(" (sleeping to wait for reply to R ... sorry)"); diff --git a/ipc/ipdl/test/cxx/TestUrgentHangs.cpp b/ipc/ipdl/test/cxx/TestUrgentHangs.cpp index 5b3d6093d4db..91a4f0e9ad1a 100644 --- a/ipc/ipdl/test/cxx/TestUrgentHangs.cpp +++ b/ipc/ipdl/test/cxx/TestUrgentHangs.cpp @@ -49,8 +49,11 @@ TestUrgentHangsParent::Main() // Do a second round of testing once the reply to Test2 comes back. MessageLoop::current()->PostDelayedTask( - NewNonOwningRunnableMethod(this, &TestUrgentHangsParent::SecondStage), - 3000); + NewNonOwningRunnableMethod( + "_ipdltest::TestUrgentHangsParent::SecondStage", + this, + &TestUrgentHangsParent::SecondStage), + 3000); } void @@ -67,8 +70,10 @@ TestUrgentHangsParent::SecondStage() fail("sending Test4_1"); MessageLoop::current()->PostDelayedTask( - NewNonOwningRunnableMethod(this, &TestUrgentHangsParent::ThirdStage), - 3000); + NewNonOwningRunnableMethod("_ipdltest::TestUrgentHangsParent::ThirdStage", + this, + &TestUrgentHangsParent::ThirdStage), + 3000); } void @@ -90,8 +95,9 @@ TestUrgentHangsParent::ThirdStage() // Close the channel after the child finishes its work in RecvTest5. MessageLoop::current()->PostDelayedTask( - NewNonOwningRunnableMethod(this, &TestUrgentHangsParent::Close), - 3000); + NewNonOwningRunnableMethod( + "ipc::IToplevelProtocol::Close", this, &TestUrgentHangsParent::Close), + 3000); } mozilla::ipc::IPCResult diff --git a/ipc/mscom/DispatchForwarder.cpp b/ipc/mscom/DispatchForwarder.cpp index 552229b4de65..5cc5b3d15824 100644 --- a/ipc/mscom/DispatchForwarder.cpp +++ b/ipc/mscom/DispatchForwarder.cpp @@ -109,7 +109,7 @@ DispatchForwarder::GetTypeInfo(UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo) hr = mTarget->GetTypeInfo(iTInfo, lcid, ppTInfo); }; MainThreadInvoker invoker; - if (!invoker.Invoke(NS_NewRunnableFunction(fn))) { + if (!invoker.Invoke(NS_NewRunnableFunction("DispatchForwarder::GetTypeInfo", fn))) { return E_UNEXPECTED; } if (FAILED(hr)) { @@ -128,7 +128,7 @@ DispatchForwarder::GetIDsOfNames(REFIID riid, LPOLESTR *rgszNames, UINT cNames, hr = mTarget->GetIDsOfNames(riid, rgszNames, cNames, lcid, rgDispId); }; MainThreadInvoker invoker; - if (!invoker.Invoke(NS_NewRunnableFunction(fn))) { + if (!invoker.Invoke(NS_NewRunnableFunction("DispatchForwarder::GetIDsOfNames", fn))) { return E_UNEXPECTED; } return hr; diff --git a/ipc/mscom/EnsureMTA.cpp b/ipc/mscom/EnsureMTA.cpp index f4bc911e9b21..0c543fd88ab2 100644 --- a/ipc/mscom/EnsureMTA.cpp +++ b/ipc/mscom/EnsureMTA.cpp @@ -17,6 +17,7 @@ namespace { class EnterMTARunnable : public mozilla::Runnable { public: + EnterMTARunnable() : mozilla::Runnable("EnterMTARunnable") {} NS_IMETHOD Run() override { mozilla::DebugOnly hr = ::CoInitializeEx(nullptr, @@ -41,7 +42,7 @@ public: ~BackgroundMTAData() { if (mThread) { - mThread->Dispatch(NS_NewRunnableFunction(&::CoUninitialize), + mThread->Dispatch(NS_NewRunnableFunction("BackgroundMTAData::~BackgroundMTAData", &::CoUninitialize), NS_DISPATCH_NORMAL); mThread->Shutdown(); } diff --git a/ipc/mscom/EnsureMTA.h b/ipc/mscom/EnsureMTA.h index c0e1b06cb1cb..8f03942d4389 100644 --- a/ipc/mscom/EnsureMTA.h +++ b/ipc/mscom/EnsureMTA.h @@ -82,7 +82,7 @@ public: }; nsresult rv = - thread->Dispatch(NS_NewRunnableFunction(eventSetter), NS_DISPATCH_NORMAL); + thread->Dispatch(NS_NewRunnableFunction("EnsureMTA", eventSetter), NS_DISPATCH_NORMAL); MOZ_ASSERT(NS_SUCCEEDED(rv)); if (NS_FAILED(rv)) { return; @@ -117,7 +117,8 @@ private: } DebugOnly rv = thread->Dispatch( - NS_NewRunnableFunction(aClosure), NS_DISPATCH_NORMAL); + NS_NewRunnableFunction("mscom::EnsureMTA::AsyncOperation", + aClosure), NS_DISPATCH_NORMAL); MOZ_ASSERT(NS_SUCCEEDED(rv)); } diff --git a/ipc/mscom/Interceptor.cpp b/ipc/mscom/Interceptor.cpp index 4c18bbe26701..913bafbbfc4d 100644 --- a/ipc/mscom/Interceptor.cpp +++ b/ipc/mscom/Interceptor.cpp @@ -558,7 +558,7 @@ Interceptor::QueryInterfaceTarget(REFIID aIid, void** aOutput) MOZ_ASSERT(NS_IsMainThread()); hr = mTarget->QueryInterface(aIid, aOutput); }; - if (!invoker.Invoke(NS_NewRunnableFunction(runOnMainThread))) { + if (!invoker.Invoke(NS_NewRunnableFunction("Interceptor::QueryInterface", runOnMainThread))) { return E_FAIL; } return hr; diff --git a/ipc/mscom/InterceptorLog.cpp b/ipc/mscom/InterceptorLog.cpp index 7a2944d6108f..b1ec185b8c5c 100644 --- a/ipc/mscom/InterceptorLog.cpp +++ b/ipc/mscom/InterceptorLog.cpp @@ -133,7 +133,7 @@ Logger::Logger(const nsACString& aLeafBaseName) } nsCOMPtr openRunnable( - NewNonOwningRunnableMethod(this, &Logger::OpenFile)); + NewNonOwningRunnableMethod("Logger::OpenFile", this, &Logger::OpenFile)); rv = NS_NewNamedThread("COM Intcpt Log", getter_AddRefs(mThread), openRunnable); if (NS_FAILED(rv)) { @@ -181,7 +181,8 @@ nsresult Logger::Shutdown() { MOZ_ASSERT(NS_IsMainThread()); - nsresult rv = mThread->Dispatch(NewNonOwningRunnableMethod(this, + nsresult rv = mThread->Dispatch(NewNonOwningRunnableMethod("Logger::CloseFile", + this, &Logger::CloseFile), NS_DISPATCH_NORMAL); NS_WARNING_ASSERTION(NS_SUCCEEDED(rv), "Dispatch failed"); @@ -283,7 +284,8 @@ Logger::LogQI(HRESULT aResult, IUnknown* aTarget, REFIID aIid, IUnknown* aInterf MutexAutoLock lock(mMutex); mEntries.AppendElement(line); - mThread->Dispatch(NewNonOwningRunnableMethod(this, &Logger::Flush), + mThread->Dispatch(NewNonOwningRunnableMethod("Logger::Flush", + this, &Logger::Flush), NS_DISPATCH_NORMAL); } @@ -393,7 +395,8 @@ Logger::LogEvent(ICallFrame* aCallFrame, IUnknown* aTargetInterface) // (3) Enqueue event for logging MutexAutoLock lock(mMutex); mEntries.AppendElement(line); - mThread->Dispatch(NewNonOwningRunnableMethod(this, &Logger::Flush), + mThread->Dispatch(NewNonOwningRunnableMethod("Logger::Flush", + this, &Logger::Flush), NS_DISPATCH_NORMAL); } diff --git a/ipc/mscom/MainThreadHandoff.cpp b/ipc/mscom/MainThreadHandoff.cpp index dad9161bd62d..8eec137d5be1 100644 --- a/ipc/mscom/MainThreadHandoff.cpp +++ b/ipc/mscom/MainThreadHandoff.cpp @@ -122,7 +122,8 @@ class HandoffRunnable : public mozilla::Runnable { public: explicit HandoffRunnable(ICallFrame* aCallFrame, IUnknown* aTargetInterface) - : mCallFrame(aCallFrame) + : Runnable("HandoffRunnable") + , mCallFrame(aCallFrame) , mTargetInterface(aTargetInterface) , mResult(E_UNEXPECTED) { @@ -548,7 +549,7 @@ MainThreadHandoff::OnWalkInterface(REFIID aIid, PVOID* aInterface, }; MainThreadInvoker invoker; - invoker.Invoke(NS_NewRunnableFunction(checkFn)); + invoker.Invoke(NS_NewRunnableFunction("MainThreadHandoff::OnWalkInterface", checkFn)); } if (areTargetsEqual) { diff --git a/ipc/mscom/MainThreadInvoker.h b/ipc/mscom/MainThreadInvoker.h index b81a1eef91b7..e087412cbe26 100644 --- a/ipc/mscom/MainThreadInvoker.h +++ b/ipc/mscom/MainThreadInvoker.h @@ -37,11 +37,12 @@ private: template inline bool -InvokeOnMainThread(Class* aObject, void (Class::*aMethod)(Args...), +InvokeOnMainThread(const char* aName, + Class* aObject, void (Class::*aMethod)(Args...), Args... aArgs) { nsCOMPtr runnable( - NewNonOwningRunnableMethod(aObject, aMethod, + NewNonOwningRunnableMethod(aName, aObject, aMethod, Forward(aArgs)...)); MainThreadInvoker invoker; diff --git a/ipc/mscom/Ptr.h b/ipc/mscom/Ptr.h index 8b83cc7a371a..c4fc2d3b6f85 100644 --- a/ipc/mscom/Ptr.h +++ b/ipc/mscom/Ptr.h @@ -41,7 +41,8 @@ struct MainThreadRelease return; } DebugOnly rv = - NS_DispatchToMainThread(NewNonOwningRunnableMethod(aPtr, + NS_DispatchToMainThread(NewNonOwningRunnableMethod("mscom::MainThreadRelease", + aPtr, &T::Release)); MOZ_ASSERT(NS_SUCCEEDED(rv)); } diff --git a/js/xpconnect/loader/ChromeScriptLoader.cpp b/js/xpconnect/loader/ChromeScriptLoader.cpp index 6bda60fee844..fb771bcf9a20 100644 --- a/js/xpconnect/loader/ChromeScriptLoader.cpp +++ b/js/xpconnect/loader/ChromeScriptLoader.cpp @@ -37,15 +37,17 @@ public: NS_DECL_NSIINCREMENTALSTREAMLOADEROBSERVER NS_DECL_NSIRUNNABLE - AsyncScriptCompiler(JSContext* aCx, nsIGlobalObject* aGlobal, + AsyncScriptCompiler(JSContext* aCx, + nsIGlobalObject* aGlobal, const nsACString& aURL, const CompileScriptOptionsDictionary& aOptions, Promise* aPromise) - : mOptions(aCx) - , mURL(aURL) - , mGlobalObject(aGlobal) - , mPromise(aPromise) - , mCharset(aOptions.mCharset) + : mozilla::Runnable("AsyncScriptCompiler") + , mOptions(aCx) + , mURL(aURL) + , mGlobalObject(aGlobal) + , mPromise(aPromise) + , mCharset(aOptions.mCharset) { mOptions.setVersion(JSVERSION_DEFAULT) .setNoScriptRval(!aOptions.mHasReturnValue) diff --git a/js/xpconnect/loader/ScriptPreloader.cpp b/js/xpconnect/loader/ScriptPreloader.cpp index 3152a2335756..ca33e3a1aa5e 100644 --- a/js/xpconnect/loader/ScriptPreloader.cpp +++ b/js/xpconnect/loader/ScriptPreloader.cpp @@ -571,8 +571,10 @@ ScriptPreloader::WriteCache() MonitorAutoUnlock mau(mSaveMonitor); NS_DispatchToMainThread( - NewRunnableMethod(this, &ScriptPreloader::PrepareCacheWrite), - NS_DISPATCH_SYNC); + NewRunnableMethod("ScriptPreloader::PrepareCacheWrite", + this, + &ScriptPreloader::PrepareCacheWrite), + NS_DISPATCH_SYNC); } if (mSaveComplete) { @@ -802,7 +804,9 @@ ScriptPreloader::OffThreadDecodeCallback(void* token, void* context) if (cache->mToken && !cache->mFinishDecodeRunnablePending) { cache->mFinishDecodeRunnablePending = true; NS_DispatchToMainThread( - NewRunnableMethod(cache, &ScriptPreloader::DoFinishOffThreadDecode)); + NewRunnableMethod("ScriptPreloader::DoFinishOffThreadDecode", + cache, + &ScriptPreloader::DoFinishOffThreadDecode)); } } diff --git a/js/xpconnect/loader/mozJSSubScriptLoader.cpp b/js/xpconnect/loader/mozJSSubScriptLoader.cpp index 47777a15c36c..d813908725ab 100644 --- a/js/xpconnect/loader/mozJSSubScriptLoader.cpp +++ b/js/xpconnect/loader/mozJSSubScriptLoader.cpp @@ -762,9 +762,11 @@ class NotifyPrecompilationCompleteRunnable : public Runnable public: NS_DECL_NSIRUNNABLE - explicit NotifyPrecompilationCompleteRunnable(ScriptPrecompiler* aPrecompiler) - : mPrecompiler(aPrecompiler) - , mToken(nullptr) + explicit NotifyPrecompilationCompleteRunnable( + ScriptPrecompiler* aPrecompiler) + : mozilla::Runnable("NotifyPrecompilationCompleteRunnable") + , mPrecompiler(aPrecompiler) + , mToken(nullptr) {} void SetToken(void* aToken) { diff --git a/js/xpconnect/src/XPCComponents.cpp b/js/xpconnect/src/XPCComponents.cpp index 933a91850628..95cf5f8796d3 100644 --- a/js/xpconnect/src/XPCComponents.cpp +++ b/js/xpconnect/src/XPCComponents.cpp @@ -2635,7 +2635,11 @@ class PreciseGCRunnable : public Runnable { public: PreciseGCRunnable(ScheduledGCCallback* aCallback, bool aShrinking) - : mCallback(aCallback), mShrinking(aShrinking) {} + : mozilla::Runnable("PreciseGCRunnable") + , mCallback(aCallback) + , mShrinking(aShrinking) + { + } NS_IMETHOD Run() override { diff --git a/js/xpconnect/src/XPCJSRuntime.cpp b/js/xpconnect/src/XPCJSRuntime.cpp index 972f72ad04da..f7f2d3d98707 100644 --- a/js/xpconnect/src/XPCJSRuntime.cpp +++ b/js/xpconnect/src/XPCJSRuntime.cpp @@ -746,7 +746,8 @@ XPCJSRuntime::DoCycleCollectionCallback(JSContext* cx) // The GC has detected that a CC at this point would collect a tremendous // amount of garbage that is being revivified unnecessarily. NS_DispatchToCurrentThread( - NS_NewRunnableFunction([](){nsJSContext::CycleCollectNow(nullptr);})); + NS_NewRunnableFunction("XPCJSRuntime::DoCycleCollectionCallback", + []() { nsJSContext::CycleCollectNow(nullptr); })); XPCJSRuntime* self = nsXPConnect::GetRuntimeInstance(); if (!self) @@ -962,9 +963,10 @@ class LargeAllocationFailureRunnable final : public Runnable public: LargeAllocationFailureRunnable() - : mMutex("LargeAllocationFailureRunnable::mMutex"), - mCondVar(mMutex, "LargeAllocationFailureRunnable::mCondVar"), - mWaiting(true) + : mozilla::Runnable("LargeAllocationFailureRunnable") + , mMutex("LargeAllocationFailureRunnable::mMutex") + , mCondVar(mMutex, "LargeAllocationFailureRunnable::mCondVar") + , mWaiting(true) { MOZ_ASSERT(!NS_IsMainThread()); } diff --git a/layout/base/AccessibleCaretEventHub.cpp b/layout/base/AccessibleCaretEventHub.cpp index dded3f6335f4..2c777396c857 100644 --- a/layout/base/AccessibleCaretEventHub.cpp +++ b/layout/base/AccessibleCaretEventHub.cpp @@ -655,8 +655,12 @@ AccessibleCaretEventHub::LaunchLongTapInjector() } int32_t longTapDelay = gfxPrefs::UiClickHoldContextMenusDelay(); - mLongTapInjectorTimer->InitWithFuncCallback(FireLongTap, this, longTapDelay, - nsITimer::TYPE_ONE_SHOT); + mLongTapInjectorTimer->InitWithNamedFuncCallback( + FireLongTap, + this, + longTapDelay, + nsITimer::TYPE_ONE_SHOT, + "AccessibleCaretEventHub::LaunchLongTapInjector"); } void @@ -753,8 +757,12 @@ AccessibleCaretEventHub::LaunchScrollEndInjector() return; } - mScrollEndInjectorTimer->InitWithFuncCallback( - FireScrollEnd, this, kScrollEndTimerDelay, nsITimer::TYPE_ONE_SHOT); + mScrollEndInjectorTimer->InitWithNamedFuncCallback( + FireScrollEnd, + this, + kScrollEndTimerDelay, + nsITimer::TYPE_ONE_SHOT, + "AccessibleCaretEventHub::LaunchScrollEndInjector"); } void diff --git a/layout/base/PresShell.cpp b/layout/base/PresShell.cpp index 3a9e3b56d680..6ba4c4c75f91 100644 --- a/layout/base/PresShell.cpp +++ b/layout/base/PresShell.cpp @@ -542,7 +542,10 @@ class nsBeforeFirstPaintDispatcher : public Runnable { public: explicit nsBeforeFirstPaintDispatcher(nsIDocument* aDocument) - : mDocument(aDocument) {} + : mozilla::Runnable("nsBeforeFirstPaintDispatcher") + , mDocument(aDocument) + { + } // Fires the "before-first-paint" event so that interested parties (right now, the // mobile browser) are aware of it. @@ -2019,8 +2022,8 @@ PresShell::ResizeReflowIgnoreOverride(nscoord aWidth, nscoord aHeight, nscoord a "AsyncResizeEventCallback"); } } else { - RefPtr> event = - NewRunnableMethod(this, &PresShell::FireResizeEvent); + RefPtr> event = NewRunnableMethod( + "PresShell::FireResizeEvent", this, &PresShell::FireResizeEvent); nsresult rv = mDocument->Dispatch("PresShell::FireResizeEvent", TaskCategory::Other, do_AddRef(event)); @@ -6197,7 +6200,9 @@ PresShell::ScheduleApproximateFrameVisibilityUpdateNow() } RefPtr> event = - NewRunnableMethod(this, &PresShell::UpdateApproximateFrameVisibility); + NewRunnableMethod("PresShell::UpdateApproximateFrameVisibility", + this, + &PresShell::UpdateApproximateFrameVisibility); nsresult rv = mDocument->Dispatch("PresShell::UpdateApproximateFrameVisibility", TaskCategory::Other, diff --git a/layout/base/ZoomConstraintsClient.cpp b/layout/base/ZoomConstraintsClient.cpp index b2bdc4cc4870..77ccd80eb22b 100644 --- a/layout/base/ZoomConstraintsClient.cpp +++ b/layout/base/ZoomConstraintsClient.cpp @@ -160,7 +160,9 @@ ZoomConstraintsClient::Observe(nsISupports* aSubject, const char* aTopic, const // returns the updated value. RefPtr> event = - NewRunnableMethod(this, &ZoomConstraintsClient::RefreshZoomConstraints); + NewRunnableMethod("ZoomConstraintsClient::RefreshZoomConstraints", + this, + &ZoomConstraintsClient::RefreshZoomConstraints); mDocument->Dispatch("ZoomConstraintsClient::RefreshZoomConstraints", TaskCategory::Other, event.forget()); diff --git a/layout/base/nsLayoutUtils.cpp b/layout/base/nsLayoutUtils.cpp index 4150155dc445..0971e5cf5b16 100644 --- a/layout/base/nsLayoutUtils.cpp +++ b/layout/base/nsLayoutUtils.cpp @@ -7927,19 +7927,23 @@ nsLayoutUtils::PostRestyleEvent(Element* aElement, } } -nsSetAttrRunnable::nsSetAttrRunnable(nsIContent* aContent, nsIAtom* aAttrName, +nsSetAttrRunnable::nsSetAttrRunnable(nsIContent* aContent, + nsIAtom* aAttrName, const nsAString& aValue) - : mContent(aContent), - mAttrName(aAttrName), - mValue(aValue) + : mozilla::Runnable("nsSetAttrRunnable") + , mContent(aContent) + , mAttrName(aAttrName) + , mValue(aValue) { NS_ASSERTION(aContent && aAttrName, "Missing stuff, prepare to crash"); } -nsSetAttrRunnable::nsSetAttrRunnable(nsIContent* aContent, nsIAtom* aAttrName, +nsSetAttrRunnable::nsSetAttrRunnable(nsIContent* aContent, + nsIAtom* aAttrName, int32_t aValue) - : mContent(aContent), - mAttrName(aAttrName) + : mozilla::Runnable("nsSetAttrRunnable") + , mContent(aContent) + , mAttrName(aAttrName) { NS_ASSERTION(aContent && aAttrName, "Missing stuff, prepare to crash"); mValue.AppendInt(aValue); @@ -7953,8 +7957,9 @@ nsSetAttrRunnable::Run() nsUnsetAttrRunnable::nsUnsetAttrRunnable(nsIContent* aContent, nsIAtom* aAttrName) - : mContent(aContent), - mAttrName(aAttrName) + : mozilla::Runnable("nsUnsetAttrRunnable") + , mContent(aContent) + , mAttrName(aAttrName) { NS_ASSERTION(aContent && aAttrName, "Missing stuff, prepare to crash"); } diff --git a/layout/base/nsPresContext.cpp b/layout/base/nsPresContext.cpp index b8215e9e2ffd..4fe3c11fbb23 100644 --- a/layout/base/nsPresContext.cpp +++ b/layout/base/nsPresContext.cpp @@ -1798,7 +1798,9 @@ nsPresContext::ThemeChanged() sThemeChanged = true; nsCOMPtr ev = - NewRunnableMethod(this, &nsPresContext::ThemeChangedInternal); + NewRunnableMethod("nsPresContext::ThemeChangedInternal", + this, + &nsPresContext::ThemeChangedInternal); nsresult rv = Document()->Dispatch("nsPresContext::ThemeChangedInternal", TaskCategory::Other, ev.forget()); @@ -1861,7 +1863,9 @@ nsPresContext::SysColorChanged() if (!mPendingSysColorChanged) { sLookAndFeelChanged = true; nsCOMPtr ev = - NewRunnableMethod(this, &nsPresContext::SysColorChangedInternal); + NewRunnableMethod("nsPresContext::SysColorChangedInternal", + this, + &nsPresContext::SysColorChangedInternal); nsresult rv = Document()->Dispatch("nsPresContext::SysColorChangedInternal", TaskCategory::Other, ev.forget()); @@ -1896,7 +1900,9 @@ nsPresContext::UIResolutionChanged() { if (!mPendingUIResolutionChanged) { nsCOMPtr ev = - NewRunnableMethod(this, &nsPresContext::UIResolutionChangedInternal); + NewRunnableMethod("nsPresContext::UIResolutionChangedInternal", + this, + &nsPresContext::UIResolutionChangedInternal); nsresult rv = Document()->Dispatch("nsPresContext::UIResolutionChangedInternal", TaskCategory::Other, @@ -2662,11 +2668,13 @@ nsPresContext::NotifyDidPaintSubdocumentCallback(nsIDocument* aDocument, void* a class DelayedFireDOMPaintEvent : public Runnable { public: - DelayedFireDOMPaintEvent(nsPresContext* aPresContext, - nsTArray* aList, - uint64_t aTransactionId, - const mozilla::TimeStamp& aTimeStamp = mozilla::TimeStamp()) - : mPresContext(aPresContext) + DelayedFireDOMPaintEvent( + nsPresContext* aPresContext, + nsTArray* aList, + uint64_t aTransactionId, + const mozilla::TimeStamp& aTimeStamp = mozilla::TimeStamp()) + : mozilla::Runnable("DelayedFireDOMPaintEvent") + , mPresContext(aPresContext) , mTransactionId(aTransactionId) , mTimeStamp(aTimeStamp) { diff --git a/layout/base/nsRefreshDriver.cpp b/layout/base/nsRefreshDriver.cpp index e5f7bad37f2f..df8a42bde400 100644 --- a/layout/base/nsRefreshDriver.cpp +++ b/layout/base/nsRefreshDriver.cpp @@ -397,7 +397,12 @@ protected: mTargetTime = mLastFireTime + mRateDuration; uint32_t delay = static_cast(mRateMilliseconds); - mTimer->InitWithFuncCallback(TimerTick, this, delay, nsITimer::TYPE_ONE_SHOT); + mTimer->InitWithNamedFuncCallback( + TimerTick, + this, + delay, + nsITimer::TYPE_ONE_SHOT, + "SimpleTimerBasedRefreshDriverTimer::StartTimer"); } void StopTimer() override @@ -489,7 +494,12 @@ private: public: ParentProcessVsyncNotifier(RefreshDriverVsyncObserver* aObserver, TimeStamp aVsyncTimestamp) - : mObserver(aObserver), mVsyncTimestamp(aVsyncTimestamp) {} + : Runnable("VsyncRefreshDriverTimer::RefreshDriverVsyncObserver::" + "ParentProcessVsyncNotifier") + , mObserver(aObserver) + , mVsyncTimestamp(aVsyncTimestamp) + { + } NS_DECL_ISUPPORTS_INHERITED @@ -794,7 +804,12 @@ protected: // that we tick at consistent intervals. TimeStamp newTarget = aNowTime + mRateDuration; uint32_t delay = static_cast((newTarget - aNowTime).ToMilliseconds()); - mTimer->InitWithFuncCallback(TimerTick, this, delay, nsITimer::TYPE_ONE_SHOT); + mTimer->InitWithNamedFuncCallback( + TimerTick, + this, + delay, + nsITimer::TYPE_ONE_SHOT, + "StartupRefreshDriverTimer::ScheduleNextTick"); mTargetTime = newTarget; } }; @@ -869,7 +884,11 @@ protected: mTargetTime = mLastFireTime + mRateDuration; uint32_t delay = static_cast(mRateMilliseconds); - mTimer->InitWithFuncCallback(TimerTickOne, this, delay, nsITimer::TYPE_ONE_SHOT); + mTimer->InitWithNamedFuncCallback(TimerTickOne, + this, + delay, + nsITimer::TYPE_ONE_SHOT, + "InactiveRefreshDriverTimer::StartTimer"); } void StopTimer() override @@ -896,7 +915,12 @@ protected: // this doesn't need to be precise; do a simple schedule uint32_t delay = static_cast(mNextTickDuration); - mTimer->InitWithFuncCallback(TimerTickOne, this, delay, nsITimer::TYPE_ONE_SHOT); + mTimer->InitWithNamedFuncCallback( + TimerTickOne, + this, + delay, + nsITimer::TYPE_ONE_SHOT, + "InactiveRefreshDriverTimer::ScheduleNextTick"); LOG("[%p] inactive timer next tick in %f ms [index %d/%d]", this, mNextTickDuration, mNextDriverIndex, GetRefreshDriverCount()); @@ -2104,8 +2128,8 @@ nsRefreshDriver::Thaw() // updates our mMostRecentRefresh, but the DoRefresh call won't run // and notify our observers until we get back to the event loop. // Thus MostRecentRefresh() will lie between now and the DoRefresh. - RefPtr> event = - NewRunnableMethod(this, &nsRefreshDriver::DoRefresh); + RefPtr> event = NewRunnableMethod( + "nsRefreshDriver::DoRefresh", this, &nsRefreshDriver::DoRefresh); nsPresContext* pc = GetPresContext(); if (pc) { pc->Document()->Dispatch("nsRefreshDriver::DoRefresh", diff --git a/layout/forms/nsComboboxControlFrame.cpp b/layout/forms/nsComboboxControlFrame.cpp index 77eea317de40..191f16177cac 100644 --- a/layout/forms/nsComboboxControlFrame.cpp +++ b/layout/forms/nsComboboxControlFrame.cpp @@ -383,7 +383,8 @@ class nsResizeDropdownAtFinalPosition final { public: explicit nsResizeDropdownAtFinalPosition(nsComboboxControlFrame* aFrame) - : mFrame(aFrame) + : mozilla::Runnable("nsResizeDropdownAtFinalPosition") + , mFrame(aFrame) { } @@ -519,7 +520,11 @@ nsComboboxControlFrame::GetCSSTransformTranslation() class nsAsyncRollup : public Runnable { public: - explicit nsAsyncRollup(nsComboboxControlFrame* aFrame) : mFrame(aFrame) {} + explicit nsAsyncRollup(nsComboboxControlFrame* aFrame) + : mozilla::Runnable("nsAsyncRollup") + , mFrame(aFrame) + { + } NS_IMETHOD Run() override { if (mFrame.IsAlive()) { @@ -534,7 +539,11 @@ public: class nsAsyncResize : public Runnable { public: - explicit nsAsyncResize(nsComboboxControlFrame* aFrame) : mFrame(aFrame) {} + explicit nsAsyncResize(nsComboboxControlFrame* aFrame) + : mozilla::Runnable("nsAsyncResize") + , mFrame(aFrame) + { + } NS_IMETHOD Run() override { if (mFrame.IsAlive()) { diff --git a/layout/forms/nsComboboxControlFrame.h b/layout/forms/nsComboboxControlFrame.h index 81e76e22c6d2..93eb683b7244 100644 --- a/layout/forms/nsComboboxControlFrame.h +++ b/layout/forms/nsComboboxControlFrame.h @@ -253,7 +253,11 @@ protected: class RedisplayTextEvent : public mozilla::Runnable { public: NS_DECL_NSIRUNNABLE - explicit RedisplayTextEvent(nsComboboxControlFrame *c) : mControlFrame(c) {} + explicit RedisplayTextEvent(nsComboboxControlFrame* c) + : mozilla::Runnable("nsComboboxControlFrame::RedisplayTextEvent") + , mControlFrame(c) + { + } void Revoke() { mControlFrame = nullptr; } private: nsComboboxControlFrame *mControlFrame; diff --git a/layout/forms/nsDateTimeControlFrame.cpp b/layout/forms/nsDateTimeControlFrame.cpp index d896ba9308df..58f661b5c734 100644 --- a/layout/forms/nsDateTimeControlFrame.cpp +++ b/layout/forms/nsDateTimeControlFrame.cpp @@ -403,7 +403,9 @@ nsDateTimeControlFrame::AttributeChanged(int32_t aNameSpaceID, do_QueryInterface(mInputAreaContent); if (aAttribute == nsGkAtoms::value) { if (inputAreaContent) { - nsContentUtils::AddScriptRunner(NewRunnableMethod(inputAreaContent, + nsContentUtils::AddScriptRunner(NewRunnableMethod( + "nsIDateTimeInputArea::NotifyInputElementValueChanged", + inputAreaContent, &nsIDateTimeInputArea::NotifyInputElementValueChanged)); } } else { diff --git a/layout/forms/nsDateTimeControlFrame.h b/layout/forms/nsDateTimeControlFrame.h index 2e71f86f4d6f..20f65aca2d69 100644 --- a/layout/forms/nsDateTimeControlFrame.h +++ b/layout/forms/nsDateTimeControlFrame.h @@ -87,7 +87,8 @@ private: { public: explicit SyncDisabledStateEvent(nsDateTimeControlFrame* aFrame) - : mFrame(aFrame) + : mozilla::Runnable("nsDateTimeControlFrame::SyncDisabledStateEvent") + , mFrame(aFrame) {} NS_IMETHOD Run() override diff --git a/layout/forms/nsFileControlFrame.h b/layout/forms/nsFileControlFrame.h index 57f96ac0f447..efc778c375f3 100644 --- a/layout/forms/nsFileControlFrame.h +++ b/layout/forms/nsFileControlFrame.h @@ -95,7 +95,8 @@ protected: { public: explicit SyncDisabledStateEvent(nsFileControlFrame* aFrame) - : mFrame(aFrame) + : mozilla::Runnable("nsFileControlFrame::SyncDisabledStateEvent") + , mFrame(aFrame) {} NS_IMETHOD Run() override { diff --git a/layout/forms/nsNumberControlFrame.cpp b/layout/forms/nsNumberControlFrame.cpp index ab7d3d5a193c..c2c31ef40998 100644 --- a/layout/forms/nsNumberControlFrame.cpp +++ b/layout/forms/nsNumberControlFrame.cpp @@ -303,8 +303,9 @@ class FocusTextField : public Runnable { public: FocusTextField(nsIContent* aNumber, nsIContent* aTextField) - : mNumber(aNumber), - mTextField(aTextField) + : mozilla::Runnable("FocusTextField") + , mNumber(aNumber) + , mTextField(aTextField) {} NS_IMETHOD Run() override diff --git a/layout/forms/nsNumberControlFrame.h b/layout/forms/nsNumberControlFrame.h index 826a0119f052..b7a53489fd53 100644 --- a/layout/forms/nsNumberControlFrame.h +++ b/layout/forms/nsNumberControlFrame.h @@ -174,7 +174,8 @@ private: { public: explicit SyncDisabledStateEvent(nsNumberControlFrame* aFrame) - : mFrame(aFrame) + : mozilla::Runnable("nsNumberControlFrame::SyncDisabledStateEvent") + , mFrame(aFrame) {} NS_IMETHOD Run() override diff --git a/layout/forms/nsTextControlFrame.h b/layout/forms/nsTextControlFrame.h index 3b04fdb622d9..b657ce3f2064 100644 --- a/layout/forms/nsTextControlFrame.h +++ b/layout/forms/nsTextControlFrame.h @@ -233,8 +233,11 @@ protected: class EditorInitializer : public mozilla::Runnable { public: - explicit EditorInitializer(nsTextControlFrame* aFrame) : - mFrame(aFrame) {} + explicit EditorInitializer(nsTextControlFrame* aFrame) + : mozilla::Runnable("nsTextControlFrame::EditorInitializer") + , mFrame(aFrame) + { + } NS_IMETHOD Run() override; @@ -252,8 +255,11 @@ protected: class ScrollOnFocusEvent : public mozilla::Runnable { public: - explicit ScrollOnFocusEvent(nsTextControlFrame* aFrame) : - mFrame(aFrame) {} + explicit ScrollOnFocusEvent(nsTextControlFrame* aFrame) + : mozilla::Runnable("nsTextControlFrame::ScrollOnFocusEvent") + , mFrame(aFrame) + { + } NS_DECL_NSIRUNNABLE diff --git a/layout/generic/nsGfxScrollFrame.cpp b/layout/generic/nsGfxScrollFrame.cpp index cc581b1fe05c..b051f93f735c 100644 --- a/layout/generic/nsGfxScrollFrame.cpp +++ b/layout/generic/nsGfxScrollFrame.cpp @@ -2548,9 +2548,12 @@ void ScrollFrameHelper::MarkRecentlyScrolled() void ScrollFrameHelper::ResetDisplayPortExpiryTimer() { if (mDisplayPortExpiryTimer) { - mDisplayPortExpiryTimer->InitWithFuncCallback( - RemoveDisplayPortCallback, this, - gfxPrefs::APZDisplayPortExpiryTime(), nsITimer::TYPE_ONE_SHOT); + mDisplayPortExpiryTimer->InitWithNamedFuncCallback( + RemoveDisplayPortCallback, + this, + gfxPrefs::APZDisplayPortExpiryTime(), + nsITimer::TYPE_ONE_SHOT, + "ScrollFrameHelper::ResetDisplayPortExpiryTimer"); } } @@ -2710,8 +2713,12 @@ ScrollFrameHelper::ScheduleSyntheticMouseMove() } } - mScrollActivityTimer->InitWithFuncCallback( - ScrollActivityCallback, this, 100, nsITimer::TYPE_ONE_SHOT); + mScrollActivityTimer->InitWithNamedFuncCallback( + ScrollActivityCallback, + this, + 100, + nsITimer::TYPE_ONE_SHOT, + "ScrollFrameHelper::ScheduleSyntheticMouseMove"); } void diff --git a/layout/generic/nsGfxScrollFrame.h b/layout/generic/nsGfxScrollFrame.h index 4a641b362241..9531cc839f81 100644 --- a/layout/generic/nsGfxScrollFrame.h +++ b/layout/generic/nsGfxScrollFrame.h @@ -137,7 +137,11 @@ public: class AsyncScrollPortEvent : public Runnable { public: NS_DECL_NSIRUNNABLE - explicit AsyncScrollPortEvent(ScrollFrameHelper *helper) : mHelper(helper) {} + explicit AsyncScrollPortEvent(ScrollFrameHelper* helper) + : Runnable("ScrollFrameHelper::AsyncScrollPortEvent") + , mHelper(helper) + { + } void Revoke() { mHelper = nullptr; } private: ScrollFrameHelper *mHelper; @@ -146,7 +150,11 @@ public: class ScrolledAreaEvent : public Runnable { public: NS_DECL_NSIRUNNABLE - explicit ScrolledAreaEvent(ScrollFrameHelper *helper) : mHelper(helper) {} + explicit ScrolledAreaEvent(ScrollFrameHelper* helper) + : Runnable("ScrollFrameHelper::ScrolledAreaEvent") + , mHelper(helper) + { + } void Revoke() { mHelper = nullptr; } private: ScrollFrameHelper *mHelper; diff --git a/layout/generic/nsPluginFrame.h b/layout/generic/nsPluginFrame.h index 14484223b952..44373bd527c4 100644 --- a/layout/generic/nsPluginFrame.h +++ b/layout/generic/nsPluginFrame.h @@ -292,9 +292,12 @@ private: class PluginEventNotifier : public mozilla::Runnable { public: - explicit PluginEventNotifier(const nsString &aEventType) : - mEventType(aEventType) {} - + explicit PluginEventNotifier(const nsString& aEventType) + : mozilla::Runnable("nsPluginFrame::PluginEventNotifier") + , mEventType(aEventType) + { + } + NS_IMETHOD Run() override; private: nsString mEventType; diff --git a/layout/generic/nsSubDocumentFrame.cpp b/layout/generic/nsSubDocumentFrame.cpp index 9bf63a21ea87..6fa63a387f85 100644 --- a/layout/generic/nsSubDocumentFrame.cpp +++ b/layout/generic/nsSubDocumentFrame.cpp @@ -84,7 +84,11 @@ NS_QUERYFRAME_TAIL_INHERITING(nsAtomicContainerFrame) class AsyncFrameInit : public Runnable { public: - explicit AsyncFrameInit(nsIFrame* aFrame) : mFrame(aFrame) {} + explicit AsyncFrameInit(nsIFrame* aFrame) + : mozilla::Runnable("AsyncFrameInit") + , mFrame(aFrame) + { + } NS_IMETHOD Run() override { PROFILER_LABEL("mozilla", "AsyncFrameInit::Run", js::ProfileEntry::Category::OTHER); @@ -908,10 +912,11 @@ public: nsFrameLoader* aFrameLoader, nsIPresShell* aPresShell, bool aHideViewerIfFrameless) - : mFrameElement(aFrameElement), - mFrameLoader(aFrameLoader), - mPresShell(aPresShell), - mHideViewerIfFrameless(aHideViewerIfFrameless) + : mozilla::Runnable("nsHideViewer") + , mFrameElement(aFrameElement) + , mFrameLoader(aFrameLoader) + , mPresShell(aPresShell) + , mHideViewerIfFrameless(aHideViewerIfFrameless) { NS_ASSERTION(mFrameElement, "Must have a frame element"); NS_ASSERTION(mFrameLoader, "Must have a frame loader"); diff --git a/layout/generic/nsVideoFrame.cpp b/layout/generic/nsVideoFrame.cpp index 6ba2cd8705e1..a9d235f199d5 100644 --- a/layout/generic/nsVideoFrame.cpp +++ b/layout/generic/nsVideoFrame.cpp @@ -265,7 +265,10 @@ class DispatchResizeToControls : public Runnable { public: explicit DispatchResizeToControls(nsIContent* aContent) - : mContent(aContent) {} + : mozilla::Runnable("DispatchResizeToControls") + , mContent(aContent) + { + } NS_IMETHOD Run() override { nsContentUtils::DispatchTrustedEvent(mContent->OwnerDoc(), mContent, NS_LITERAL_STRING("resizevideocontrols"), diff --git a/layout/ipc/VsyncParent.cpp b/layout/ipc/VsyncParent.cpp index e0d20101c84c..d15e71d41d56 100644 --- a/layout/ipc/VsyncParent.cpp +++ b/layout/ipc/VsyncParent.cpp @@ -50,7 +50,8 @@ VsyncParent::NotifyVsync(TimeStamp aTimeStamp) // Called on hardware vsync thread. We should post to current ipc thread. MOZ_ASSERT(!IsOnBackgroundThread()); nsCOMPtr vsyncEvent = - NewRunnableMethod(this, + NewRunnableMethod("layout::VsyncParent::DispatchVsyncEvent", + this, &VsyncParent::DispatchVsyncEvent, aTimeStamp); MOZ_ALWAYS_SUCCEEDS(mBackgroundThread->Dispatch(vsyncEvent, NS_DISPATCH_NORMAL)); diff --git a/layout/printing/nsPrintEngine.cpp b/layout/printing/nsPrintEngine.cpp index 82ba2dc215d1..711429e23e84 100644 --- a/layout/printing/nsPrintEngine.cpp +++ b/layout/printing/nsPrintEngine.cpp @@ -3690,8 +3690,10 @@ nsPrintEngine::Observe(nsISupports *aSubject, const char *aTopic, const char16_t //--------------------------------------------------------------- class nsPrintCompletionEvent : public Runnable { public: - explicit nsPrintCompletionEvent(nsIDocumentViewerPrint *docViewerPrint) - : mDocViewerPrint(docViewerPrint) { + explicit nsPrintCompletionEvent(nsIDocumentViewerPrint* docViewerPrint) + : mozilla::Runnable("nsPrintCompletionEvent") + , mDocViewerPrint(docViewerPrint) + { NS_ASSERTION(mDocViewerPrint, "mDocViewerPrint is null."); } diff --git a/layout/style/FontFaceSet.cpp b/layout/style/FontFaceSet.cpp index 44eaded56a60..7de79d532ecc 100644 --- a/layout/style/FontFaceSet.cpp +++ b/layout/style/FontFaceSet.cpp @@ -1498,7 +1498,9 @@ FontFaceSet::DispatchCheckLoadingFinishedAfterDelay() } nsCOMPtr checkTask = - NewRunnableMethod(this, &FontFaceSet::CheckLoadingFinishedAfterDelay); + NewRunnableMethod("dom::FontFaceSet::CheckLoadingFinishedAfterDelay", + this, + &FontFaceSet::CheckLoadingFinishedAfterDelay); mDocument->Dispatch("FontFaceSet::CheckLoadingFinishedAfterDelay", TaskCategory::Other, checkTask.forget()); } diff --git a/layout/style/nsFontFaceLoader.cpp b/layout/style/nsFontFaceLoader.cpp index d8bdee0dd063..ddc1068a2b7b 100644 --- a/layout/style/nsFontFaceLoader.cpp +++ b/layout/style/nsFontFaceLoader.cpp @@ -141,10 +141,12 @@ nsFontFaceLoader::LoadTimerCallback(nsITimer* aTimer, void* aClosure) ufe->mFontDataLoadingState = gfxUserFontEntry::LOADING_ALMOST_DONE; uint32_t delay; loader->mLoadTimer->GetDelay(&delay); - loader->mLoadTimer->InitWithFuncCallback(LoadTimerCallback, - static_cast(loader), - delay >> 1, - nsITimer::TYPE_ONE_SHOT); + loader->mLoadTimer->InitWithNamedFuncCallback( + LoadTimerCallback, + static_cast(loader), + delay >> 1, + nsITimer::TYPE_ONE_SHOT, + "nsFontFaceLoader::LoadTimerCallback"); updateUserFontSet = false; LOG(("userfonts (%p) 75%% done, resetting timer\n", loader)); } diff --git a/layout/style/nsStyleStruct.cpp b/layout/style/nsStyleStruct.cpp index 47b8fad406a7..e4d7d4e21b7d 100644 --- a/layout/style/nsStyleStruct.cpp +++ b/layout/style/nsStyleStruct.cpp @@ -1937,7 +1937,8 @@ public: already_AddRefed aRequestProxy, already_AddRefed aImageValue, already_AddRefed aImageTracker) - : mModeFlags(aModeFlags) + : mozilla::Runnable("StyleImageRequestCleanupTask") + , mModeFlags(aModeFlags) , mRequestProxy(aRequestProxy) , mImageValue(aImageValue) , mImageTracker(aImageTracker) @@ -2127,6 +2128,7 @@ CachedBorderImageData::GetCachedSVGViewportSize() struct PurgeCachedImagesTask : mozilla::Runnable { + PurgeCachedImagesTask() : mozilla::Runnable("PurgeCachedImagesTask") {} NS_IMETHOD Run() final { mSubImages.Clear(); diff --git a/layout/svg/SVGTextFrame.h b/layout/svg/SVGTextFrame.h index 6ceb82cf22dd..bd4c450f8e3e 100644 --- a/layout/svg/SVGTextFrame.h +++ b/layout/svg/SVGTextFrame.h @@ -130,7 +130,11 @@ private: class GlyphMetricsUpdater : public Runnable { public: NS_DECL_NSIRUNNABLE - explicit GlyphMetricsUpdater(SVGTextFrame* aFrame) : mFrame(aFrame) { } + explicit GlyphMetricsUpdater(SVGTextFrame* aFrame) + : Runnable("GlyphMetricsUpdater") + , mFrame(aFrame) + { + } static void Run(SVGTextFrame* aFrame); void Revoke() { mFrame = nullptr; } private: diff --git a/layout/tables/nsTableFrame.cpp b/layout/tables/nsTableFrame.cpp index 35da37222846..9f56979bdd20 100644 --- a/layout/tables/nsTableFrame.cpp +++ b/layout/tables/nsTableFrame.cpp @@ -5035,8 +5035,11 @@ GetPaintStyleInfo(const nsIFrame* aFrame, class nsDelayedCalcBCBorders : public Runnable { public: - explicit nsDelayedCalcBCBorders(nsIFrame* aFrame) : - mFrame(aFrame) {} + explicit nsDelayedCalcBCBorders(nsIFrame* aFrame) + : mozilla::Runnable("nsDelayedCalcBCBorders") + , mFrame(aFrame) + { + } NS_IMETHOD Run() override { if (mFrame) { diff --git a/layout/xul/nsImageBoxFrame.cpp b/layout/xul/nsImageBoxFrame.cpp index f43a3d1476f6..bbb3e721ee61 100644 --- a/layout/xul/nsImageBoxFrame.cpp +++ b/layout/xul/nsImageBoxFrame.cpp @@ -64,8 +64,12 @@ using namespace mozilla::layers; class nsImageBoxFrameEvent : public Runnable { public: - nsImageBoxFrameEvent(nsIContent *content, EventMessage message) - : mContent(content), mMessage(message) {} + nsImageBoxFrameEvent(nsIContent* content, EventMessage message) + : mozilla::Runnable("nsImageBoxFrameEvent") + , mContent(content) + , mMessage(message) + { + } NS_IMETHOD Run() override; diff --git a/layout/xul/nsListBoxBodyFrame.h b/layout/xul/nsListBoxBodyFrame.h index 6d60b9c3ad3c..f1b4e394c063 100644 --- a/layout/xul/nsListBoxBodyFrame.h +++ b/layout/xul/nsListBoxBodyFrame.h @@ -152,9 +152,11 @@ protected: class nsPositionChangedEvent : public mozilla::Runnable { public: - nsPositionChangedEvent(nsListBoxBodyFrame* aFrame, - bool aUp, int32_t aDelta) : - mFrame(aFrame), mUp(aUp), mDelta(aDelta) + nsPositionChangedEvent(nsListBoxBodyFrame* aFrame, bool aUp, int32_t aDelta) + : mozilla::Runnable("nsListBoxBodyFrame::nsPositionChangedEvent") + , mFrame(aFrame) + , mUp(aUp) + , mDelta(aDelta) {} NS_IMETHOD Run() override diff --git a/layout/xul/nsMenuBarFrame.cpp b/layout/xul/nsMenuBarFrame.cpp index 1687128cb7bd..a169f18a9cc4 100644 --- a/layout/xul/nsMenuBarFrame.cpp +++ b/layout/xul/nsMenuBarFrame.cpp @@ -257,11 +257,14 @@ class nsMenuBarSwitchMenu : public Runnable { public: nsMenuBarSwitchMenu(nsIContent* aMenuBar, - nsIContent *aOldMenu, - nsIContent *aNewMenu, + nsIContent* aOldMenu, + nsIContent* aNewMenu, bool aSelectFirstItem) - : mMenuBar(aMenuBar), mOldMenu(aOldMenu), mNewMenu(aNewMenu), - mSelectFirstItem(aSelectFirstItem) + : mozilla::Runnable("nsMenuBarSwitchMenu") + , mMenuBar(aMenuBar) + , mOldMenu(aOldMenu) + , mNewMenu(aNewMenu) + , mSelectFirstItem(aSelectFirstItem) { } diff --git a/layout/xul/nsMenuFrame.cpp b/layout/xul/nsMenuFrame.cpp index c7232f85a99d..72495127a6b6 100644 --- a/layout/xul/nsMenuFrame.cpp +++ b/layout/xul/nsMenuFrame.cpp @@ -68,10 +68,13 @@ const int32_t kBlinkDelay = 67; // milliseconds class nsMenuActivateEvent : public Runnable { public: - nsMenuActivateEvent(nsIContent *aMenu, + nsMenuActivateEvent(nsIContent* aMenu, nsPresContext* aPresContext, bool aIsActivate) - : mMenu(aMenu), mPresContext(aPresContext), mIsActivate(aIsActivate) + : mozilla::Runnable("nsMenuActivateEvent") + , mMenu(aMenu) + , mPresContext(aPresContext) + , mIsActivate(aIsActivate) { } @@ -114,7 +117,9 @@ class nsMenuAttributeChangedEvent : public Runnable { public: nsMenuAttributeChangedEvent(nsIFrame* aFrame, nsIAtom* aAttr) - : mFrame(aFrame), mAttr(aAttr) + : mozilla::Runnable("nsMenuAttributeChangedEvent") + , mFrame(aFrame) + , mAttr(aAttr) { } diff --git a/layout/xul/nsMenuPopupFrame.h b/layout/xul/nsMenuPopupFrame.h index 25b893e24ba8..298444ddee8b 100644 --- a/layout/xul/nsMenuPopupFrame.h +++ b/layout/xul/nsMenuPopupFrame.h @@ -138,8 +138,10 @@ class nsXULPopupShownEvent : public mozilla::Runnable, public nsIDOMEventListener { public: - nsXULPopupShownEvent(nsIContent *aPopup, nsPresContext* aPresContext) - : mPopup(aPopup), mPresContext(aPresContext) + nsXULPopupShownEvent(nsIContent* aPopup, nsPresContext* aPresContext) + : mozilla::Runnable("nsXULPopupShownEvent") + , mPopup(aPopup) + , mPresContext(aPresContext) { } diff --git a/layout/xul/nsProgressMeterFrame.cpp b/layout/xul/nsProgressMeterFrame.cpp index 801732c63e13..9efd665b1899 100644 --- a/layout/xul/nsProgressMeterFrame.cpp +++ b/layout/xul/nsProgressMeterFrame.cpp @@ -36,12 +36,14 @@ public: nsFrameState mBitToAdd; }; -nsReflowFrameRunnable::nsReflowFrameRunnable(nsIFrame* aFrame, - nsIPresShell::IntrinsicDirty aIntrinsicDirty, - nsFrameState aBitToAdd) - : mWeakFrame(aFrame), - mIntrinsicDirty(aIntrinsicDirty), - mBitToAdd(aBitToAdd) +nsReflowFrameRunnable::nsReflowFrameRunnable( + nsIFrame* aFrame, + nsIPresShell::IntrinsicDirty aIntrinsicDirty, + nsFrameState aBitToAdd) + : mozilla::Runnable("nsReflowFrameRunnable") + , mWeakFrame(aFrame) + , mIntrinsicDirty(aIntrinsicDirty) + , mBitToAdd(aBitToAdd) { } diff --git a/layout/xul/nsSliderFrame.cpp b/layout/xul/nsSliderFrame.cpp index 1892d835afcf..12d8c3670317 100644 --- a/layout/xul/nsSliderFrame.cpp +++ b/layout/xul/nsSliderFrame.cpp @@ -210,8 +210,11 @@ public: nsIAtom* aWhich, int32_t aValue, bool aUserChanged) - : mListener(aListener), mWhich(aWhich), - mValue(aValue), mUserChanged(aUserChanged) + : mozilla::Runnable("nsValueChangedRunnable") + , mListener(aListener) + , mWhich(aWhich) + , mValue(aValue) + , mUserChanged(aUserChanged) {} NS_IMETHOD Run() override @@ -229,10 +232,10 @@ public: class nsDragStateChangedRunnable : public Runnable { public: - nsDragStateChangedRunnable(nsISliderListener* aListener, - bool aDragBeginning) - : mListener(aListener), - mDragBeginning(aDragBeginning) + nsDragStateChangedRunnable(nsISliderListener* aListener, bool aDragBeginning) + : mozilla::Runnable("nsDragStateChangedRunnable") + , mListener(aListener) + , mDragBeginning(aDragBeginning) {} NS_IMETHOD Run() override diff --git a/layout/xul/nsXULPopupManager.h b/layout/xul/nsXULPopupManager.h index 25ffa8095b63..0956a159555e 100644 --- a/layout/xul/nsXULPopupManager.h +++ b/layout/xul/nsXULPopupManager.h @@ -203,12 +203,13 @@ public: class nsXULPopupShowingEvent : public mozilla::Runnable { public: - nsXULPopupShowingEvent(nsIContent *aPopup, + nsXULPopupShowingEvent(nsIContent* aPopup, bool aIsContextMenu, bool aSelectFirstItem) - : mPopup(aPopup), - mIsContextMenu(aIsContextMenu), - mSelectFirstItem(aSelectFirstItem) + : mozilla::Runnable("nsXULPopupShowingEvent") + , mPopup(aPopup) + , mIsContextMenu(aIsContextMenu) + , mSelectFirstItem(aSelectFirstItem) { NS_ASSERTION(aPopup, "null popup supplied to nsXULPopupShowingEvent constructor"); } @@ -225,18 +226,19 @@ private: class nsXULPopupHidingEvent : public mozilla::Runnable { public: - nsXULPopupHidingEvent(nsIContent *aPopup, + nsXULPopupHidingEvent(nsIContent* aPopup, nsIContent* aNextPopup, nsIContent* aLastPopup, nsPopupType aPopupType, bool aDeselectMenu, bool aIsCancel) - : mPopup(aPopup), - mNextPopup(aNextPopup), - mLastPopup(aLastPopup), - mPopupType(aPopupType), - mDeselectMenu(aDeselectMenu), - mIsRollup(aIsCancel) + : mozilla::Runnable("nsXULPopupHidingEvent") + , mPopup(aPopup) + , mNextPopup(aNextPopup) + , mLastPopup(aLastPopup) + , mPopupType(aPopupType) + , mDeselectMenu(aDeselectMenu) + , mIsRollup(aIsCancel) { NS_ASSERTION(aPopup, "null popup supplied to nsXULPopupHidingEvent constructor"); // aNextPopup and aLastPopup may be null @@ -257,10 +259,11 @@ private: class nsXULPopupPositionedEvent : public mozilla::Runnable { public: - explicit nsXULPopupPositionedEvent(nsIContent *aPopup, + explicit nsXULPopupPositionedEvent(nsIContent* aPopup, bool aIsContextMenu, bool aSelectFirstItem) - : mPopup(aPopup) + : mozilla::Runnable("nsXULPopupPositionedEvent") + , mPopup(aPopup) , mIsContextMenu(aIsContextMenu) , mSelectFirstItem(aSelectFirstItem) { @@ -285,7 +288,7 @@ private: class nsXULMenuCommandEvent : public mozilla::Runnable { public: - nsXULMenuCommandEvent(nsIContent *aMenu, + nsXULMenuCommandEvent(nsIContent* aMenu, bool aIsTrusted, bool aShift, bool aControl, @@ -293,15 +296,16 @@ public: bool aMeta, bool aUserInput, bool aFlipChecked) - : mMenu(aMenu), - mIsTrusted(aIsTrusted), - mShift(aShift), - mControl(aControl), - mAlt(aAlt), - mMeta(aMeta), - mUserInput(aUserInput), - mFlipChecked(aFlipChecked), - mCloseMenuMode(CloseMenuMode_Auto) + : mozilla::Runnable("nsXULMenuCommandEvent") + , mMenu(aMenu) + , mIsTrusted(aIsTrusted) + , mShift(aShift) + , mControl(aControl) + , mAlt(aAlt) + , mMeta(aMeta) + , mUserInput(aUserInput) + , mFlipChecked(aFlipChecked) + , mCloseMenuMode(CloseMenuMode_Auto) { NS_ASSERTION(aMenu, "null menu supplied to nsXULMenuCommandEvent constructor"); } diff --git a/layout/xul/tree/nsTreeBodyFrame.cpp b/layout/xul/tree/nsTreeBodyFrame.cpp index 621496c432d9..82bf4cc2fe94 100644 --- a/layout/xul/tree/nsTreeBodyFrame.cpp +++ b/layout/xul/tree/nsTreeBodyFrame.cpp @@ -4936,7 +4936,11 @@ nsTreeBodyFrame::FireInvalidateEvent(int32_t aStartRowIdx, int32_t aEndRowIdx, class nsOverflowChecker : public Runnable { public: - explicit nsOverflowChecker(nsTreeBodyFrame* aFrame) : mFrame(aFrame) {} + explicit nsOverflowChecker(nsTreeBodyFrame* aFrame) + : mozilla::Runnable("nsOverflowChecker") + , mFrame(aFrame) + { + } NS_IMETHOD Run() override { if (mFrame.IsAlive()) { diff --git a/layout/xul/tree/nsTreeBodyFrame.h b/layout/xul/tree/nsTreeBodyFrame.h index b70767399e9c..e68e0b0654e9 100644 --- a/layout/xul/tree/nsTreeBodyFrame.h +++ b/layout/xul/tree/nsTreeBodyFrame.h @@ -482,7 +482,11 @@ protected: class ScrollEvent : public mozilla::Runnable { public: NS_DECL_NSIRUNNABLE - explicit ScrollEvent(nsTreeBodyFrame *aInner) : mInner(aInner) {} + explicit ScrollEvent(nsTreeBodyFrame* aInner) + : mozilla::Runnable("nsTreeBodyFrame::ScrollEvent") + , mInner(aInner) + { + } void Revoke() { mInner = nullptr; } private: nsTreeBodyFrame* mInner; diff --git a/media/mtransport/nr_socket_prsock.cpp b/media/mtransport/nr_socket_prsock.cpp index c4f3c5844a85..c041df0da177 100644 --- a/media/mtransport/nr_socket_prsock.cpp +++ b/media/mtransport/nr_socket_prsock.cpp @@ -1673,7 +1673,7 @@ class NrTcpSocketIpc::TcpSocketReadyRunner: public Runnable { public: explicit TcpSocketReadyRunner(NrTcpSocketIpc *sck) - : socket_(sck) {} + : Runnable("NrTcpSocketIpc::TcpSocketReadyRunner"), socket_(sck) {} NS_IMETHOD Run() override { socket_->maybe_post_socket_ready(); diff --git a/media/mtransport/runnable_utils.h b/media/mtransport/runnable_utils.h index 3a773e3565c4..b3a04a8af3d1 100644 --- a/media/mtransport/runnable_utils.h +++ b/media/mtransport/runnable_utils.h @@ -53,6 +53,8 @@ RunOnThreadInternal(nsIEventTarget *thread, nsIRunnable *runnable, uint32_t flag template class runnable_args_base : public Runnable { public: + runnable_args_base() : Runnable("media-runnable_args_base") {} + NS_IMETHOD Run() = 0; }; diff --git a/media/mtransport/test/TestSyncRunnable.cpp b/media/mtransport/test/TestSyncRunnable.cpp index 02c7d512018f..a53be04fd103 100644 --- a/media/mtransport/test/TestSyncRunnable.cpp +++ b/media/mtransport/test/TestSyncRunnable.cpp @@ -14,7 +14,7 @@ nsIThread *gThread = nullptr; class TestRunnable : public Runnable { public: - TestRunnable() : ran_(false) {} + TestRunnable() : Runnable("TestRunnable"), ran_(false) {} NS_IMETHOD Run() override { diff --git a/media/mtransport/test/sockettransportservice_unittest.cpp b/media/mtransport/test/sockettransportservice_unittest.cpp index a7edaa193de3..0f0e5924ac65 100644 --- a/media/mtransport/test/sockettransportservice_unittest.cpp +++ b/media/mtransport/test/sockettransportservice_unittest.cpp @@ -78,7 +78,7 @@ class SocketTransportServiceTest : public MtransportTest { class EventReceived : public Runnable { public: explicit EventReceived(SocketTransportServiceTest *test) : - test_(test) {} + Runnable("EventReceived"), test_(test) {} NS_IMETHOD Run() override { test_->ReceiveEvent(); @@ -93,7 +93,7 @@ public: class RegisterEvent : public Runnable { public: explicit RegisterEvent(SocketTransportServiceTest *test) : - test_(test) {} + Runnable("RegisterEvent"), test_(test) {} NS_IMETHOD Run() override { test_->RegisterHandler(); diff --git a/media/webrtc/signaling/src/media-conduit/WebrtcGmpVideoCodec.h b/media/webrtc/signaling/src/media-conduit/WebrtcGmpVideoCodec.h index 2d5c5c412769..b8067a278f18 100644 --- a/media/webrtc/signaling/src/media-conduit/WebrtcGmpVideoCodec.h +++ b/media/webrtc/signaling/src/media-conduit/WebrtcGmpVideoCodec.h @@ -80,6 +80,7 @@ class GmpInitDoneRunnable : public Runnable { public: explicit GmpInitDoneRunnable(const std::string& aPCHandle) : + Runnable("GmpInitDoneRunnable"), mResult(WEBRTC_VIDEO_CODEC_OK), mPCHandle(aPCHandle) { diff --git a/media/webrtc/signaling/src/media-conduit/WebrtcMediaCodecVP8VideoCodec.cpp b/media/webrtc/signaling/src/media-conduit/WebrtcMediaCodecVP8VideoCodec.cpp index 9b48fa1a7874..4119c21ef7bc 100644 --- a/media/webrtc/signaling/src/media-conduit/WebrtcMediaCodecVP8VideoCodec.cpp +++ b/media/webrtc/signaling/src/media-conduit/WebrtcMediaCodecVP8VideoCodec.cpp @@ -260,7 +260,8 @@ public: protected: MediaCodecOutputDrain() - : mMonitor("MediaCodecOutputDrain monitor") + : Runnable("MediaCodecOutputDrain") + , mMonitor("MediaCodecOutputDrain monitor") , mEnding(false) {} diff --git a/media/webrtc/signaling/src/mediapipeline/MediaPipeline.cpp b/media/webrtc/signaling/src/mediapipeline/MediaPipeline.cpp index f1f98273aa65..a542754849b6 100644 --- a/media/webrtc/signaling/src/mediapipeline/MediaPipeline.cpp +++ b/media/webrtc/signaling/src/mediapipeline/MediaPipeline.cpp @@ -206,6 +206,7 @@ public: nsCOMPtr runnable = NewRunnableMethod, bool>( + "VideoFrameConverter::ProcessVideoFrame", this, &VideoFrameConverter::ProcessVideoFrame, aChunk.mFrame.GetImage(), forceBlack); mTaskQueue->Dispatch(runnable.forget()); diff --git a/media/webrtc/signaling/src/mediapipeline/MediaPipeline.h b/media/webrtc/signaling/src/mediapipeline/MediaPipeline.h index 6d7d36b9e3a5..19cc9e567eae 100644 --- a/media/webrtc/signaling/src/mediapipeline/MediaPipeline.h +++ b/media/webrtc/signaling/src/mediapipeline/MediaPipeline.h @@ -334,6 +334,7 @@ class ConduitDeleteEvent: public Runnable { public: explicit ConduitDeleteEvent(already_AddRefed aConduit) : + Runnable("ConduitDeleteEvent"), mConduit(aConduit) {} /* we exist solely to proxy release of the conduit */ diff --git a/modules/libjar/nsJARChannel.cpp b/modules/libjar/nsJARChannel.cpp index 924a89d55266..db243ce803f8 100644 --- a/modules/libjar/nsJARChannel.cpp +++ b/modules/libjar/nsJARChannel.cpp @@ -1081,7 +1081,8 @@ nsJARChannel::OnDataAvailable(nsIRequest *req, nsISupports *ctx, FireOnProgress(offset + count); } else { NS_DispatchToMainThread(NewRunnableMethod - (this, + ("nsJARChannel::FireOnProgress", + this, &nsJARChannel::FireOnProgress, offset + count)); } diff --git a/modules/libpref/Preferences.cpp b/modules/libpref/Preferences.cpp index 1401f7ee2539..a817f3c7be01 100644 --- a/modules/libpref/Preferences.cpp +++ b/modules/libpref/Preferences.cpp @@ -314,7 +314,7 @@ public: nsCOMPtr target = do_GetService(NS_STREAMTRANSPORTSERVICE_CONTRACTID, &rv); if (NS_SUCCEEDED(rv)) { - target->Dispatch(NS_NewRunnableFunction([] {}), + target->Dispatch(NS_NewRunnableFunction("Preferences_dummy", [] {}), nsIEventTarget::DISPATCH_SYNC); } } @@ -330,7 +330,10 @@ Atomic PreferencesWriter::sPendingWriteData(nullptr); class PWRunnable : public Runnable { public: - explicit PWRunnable(nsIFile* aFile) : mFile(aFile) {} + explicit PWRunnable(nsIFile* aFile) + : Runnable("PWRunnable") + , mFile(aFile) + {} NS_IMETHOD Run() override { @@ -349,7 +352,7 @@ public: nsCOMPtr fileCopy(mFile); SystemGroup::Dispatch("Preferences::WriterRunnable", TaskCategory::Other, - NS_NewRunnableFunction([fileCopy, rvCopy] { + NS_NewRunnableFunction("Preferences::WriterRunnable", [fileCopy, rvCopy] { MOZ_RELEASE_ASSERT(NS_IsMainThread()); if (NS_FAILED(rvCopy)) { Preferences::DirtyCallback(); @@ -558,6 +561,8 @@ PreferenceServiceReporter::CollectReports( namespace { class AddPreferencesMemoryReporterRunnable : public Runnable { +public: + AddPreferencesMemoryReporterRunnable() : Runnable("AddPreferencesMemoryReporterRunnable") {} NS_IMETHOD Run() override { return RegisterStrongMemoryReporter(new PreferenceServiceReporter()); diff --git a/netwerk/base/BackgroundFileSaver.cpp b/netwerk/base/BackgroundFileSaver.cpp index 4d9ff97c4cbb..16d7d552166d 100644 --- a/netwerk/base/BackgroundFileSaver.cpp +++ b/netwerk/base/BackgroundFileSaver.cpp @@ -66,9 +66,10 @@ static LazyLogModule prlog("BackgroundFileSaver"); class NotifyTargetChangeRunnable final : public Runnable { public: - NotifyTargetChangeRunnable(BackgroundFileSaver *aSaver, nsIFile *aTarget) - : mSaver(aSaver) - , mTarget(aTarget) + NotifyTargetChangeRunnable(BackgroundFileSaver* aSaver, nsIFile* aTarget) + : Runnable("net::NotifyTargetChangeRunnable") + , mSaver(aSaver) + , mTarget(aTarget) { } @@ -325,9 +326,11 @@ BackgroundFileSaver::GetWorkerThreadAttention(bool aShouldInterruptCopy) if (!mAsyncCopyContext) { // Copy is not in progress, post an event to handle the change manually. - rv = mWorkerThread->Dispatch(NewRunnableMethod(this, - &BackgroundFileSaver::ProcessAttention), - NS_DISPATCH_NORMAL); + rv = mWorkerThread->Dispatch( + NewRunnableMethod("net::BackgroundFileSaver::ProcessAttention", + this, + &BackgroundFileSaver::ProcessAttention), + NS_DISPATCH_NORMAL); NS_ENSURE_SUCCESS(rv, rv); } else if (aShouldInterruptCopy) { // Interrupt the copy. The copy will be resumed, if needed, by the @@ -747,7 +750,8 @@ BackgroundFileSaver::CheckCompletion() } // Post an event to notify that the operation completed. - if (NS_FAILED(mControlEventTarget->Dispatch(NewRunnableMethod(this, + if (NS_FAILED(mControlEventTarget->Dispatch(NewRunnableMethod("BackgroundFileSaver::NotifySaveComplete", + this, &BackgroundFileSaver::NotifySaveComplete), NS_DISPATCH_NORMAL))) { NS_WARNING("Unable to post completion event to the control thread."); @@ -1153,7 +1157,8 @@ BackgroundFileSaverStreamListener::AsyncCopyProgressCallback(void *aClosure, self->mReceivedTooMuchData = false; // Post an event to verify if the request should be resumed. - if (NS_FAILED(self->mControlEventTarget->Dispatch(NewRunnableMethod(self, + if (NS_FAILED(self->mControlEventTarget->Dispatch(NewRunnableMethod("BackgroundFileSaverStreamListener::NotifySuspendOrResume", + self, &BackgroundFileSaverStreamListener::NotifySuspendOrResume), NS_DISPATCH_NORMAL))) { NS_WARNING("Unable to post resume event to the control thread."); diff --git a/netwerk/base/Dashboard.cpp b/netwerk/base/Dashboard.cpp index 63273be92ba0..094b6dba8944 100644 --- a/netwerk/base/Dashboard.cpp +++ b/netwerk/base/Dashboard.cpp @@ -200,7 +200,8 @@ ConnectionData::OnTransportStatus(nsITransport *aTransport, nsresult aStatus, GetErrorString(aStatus, mStatus); mEventTarget->Dispatch(NewRunnableMethod> - (mDashboard, &Dashboard::GetConnectionStatus, this), + ("net::Dashboard::GetConnectionStatus", + mDashboard, &Dashboard::GetConnectionStatus, this), NS_DISPATCH_NORMAL); return NS_OK; @@ -221,7 +222,8 @@ ConnectionData::Notify(nsITimer *aTimer) mStatus.AssignLiteral(u"NS_ERROR_NET_TIMEOUT"); mEventTarget->Dispatch(NewRunnableMethod> - (mDashboard, &Dashboard::GetConnectionStatus, this), + ("net::Dashboard::GetConnectionStatus", + mDashboard, &Dashboard::GetConnectionStatus, this), NS_DISPATCH_NORMAL); return NS_OK; @@ -310,7 +312,8 @@ LookupHelper::OnLookupComplete(nsICancelable *aRequest, RefPtr arg = new LookupArgument(aRecord, this); mEventTarget->Dispatch(NewRunnableMethod> - (this, &LookupHelper::ConstructAnswer, arg), + ("net::LookupHelper::ConstructAnswer", + this, &LookupHelper::ConstructAnswer, arg), NS_DISPATCH_NORMAL); return NS_OK; @@ -377,7 +380,8 @@ Dashboard::RequestSockets(NetDashboardCallback *aCallback) "NetDashboardCallback", aCallback, true); socketData->mEventTarget = GetCurrentThreadEventTarget(); gSocketTransportService->Dispatch(NewRunnableMethod> - (this, &Dashboard::GetSocketsDispatch, socketData), + ("net::Dashboard::GetSocketsDispatch", + this, &Dashboard::GetSocketsDispatch, socketData), NS_DISPATCH_NORMAL); return NS_OK; } @@ -392,7 +396,8 @@ Dashboard::GetSocketsDispatch(SocketData *aSocketData) socketData->mTotalRecv = gSocketTransportService->GetReceivedBytes(); } socketData->mEventTarget->Dispatch(NewRunnableMethod> - (this, &Dashboard::GetSockets, socketData), + ("net::Dashboard::GetSockets", + this, &Dashboard::GetSockets, socketData), NS_DISPATCH_NORMAL); return NS_OK; } @@ -447,9 +452,12 @@ Dashboard::RequestHttpConnections(NetDashboardCallback *aCallback) "NetDashboardCallback", aCallback, true); httpData->mEventTarget = GetCurrentThreadEventTarget(); - gSocketTransportService->Dispatch(NewRunnableMethod> - (this, &Dashboard::GetHttpDispatch, httpData), - NS_DISPATCH_NORMAL); + gSocketTransportService->Dispatch( + NewRunnableMethod>("net::Dashboard::GetHttpDispatch", + this, + &Dashboard::GetHttpDispatch, + httpData), + NS_DISPATCH_NORMAL); return NS_OK; } @@ -459,7 +467,8 @@ Dashboard::GetHttpDispatch(HttpData *aHttpData) RefPtr httpData = aHttpData; HttpInfo::GetHttpConnectionData(&httpData->mData); httpData->mEventTarget->Dispatch(NewRunnableMethod> - (this, &Dashboard::GetHttpConnections, httpData), + ("net::Dashboard::GetHttpConnections", + this, &Dashboard::GetHttpConnections, httpData), NS_DISPATCH_NORMAL); return NS_OK; } @@ -625,7 +634,8 @@ Dashboard::RequestWebsocketConnections(NetDashboardCallback *aCallback) wsRequest->mEventTarget = GetCurrentThreadEventTarget(); wsRequest->mEventTarget->Dispatch(NewRunnableMethod> - (this, &Dashboard::GetWebSocketConnections, wsRequest), + ("net::Dashboard::GetWebSocketConnections", + this, &Dashboard::GetWebSocketConnections, wsRequest), NS_DISPATCH_NORMAL); return NS_OK; } @@ -686,9 +696,12 @@ Dashboard::RequestDNSInfo(NetDashboardCallback *aCallback) } } - gSocketTransportService->Dispatch(NewRunnableMethod> - (this, &Dashboard::GetDnsInfoDispatch, dnsData), - NS_DISPATCH_NORMAL); + gSocketTransportService->Dispatch( + NewRunnableMethod>("net::Dashboard::GetDnsInfoDispatch", + this, + &Dashboard::GetDnsInfoDispatch, + dnsData), + NS_DISPATCH_NORMAL); return NS_OK; } @@ -700,7 +713,8 @@ Dashboard::GetDnsInfoDispatch(DnsData *aDnsData) mDnsService->GetDNSCacheEntries(&dnsData->mData); } dnsData->mEventTarget->Dispatch(NewRunnableMethod> - (this, &Dashboard::GetDNSCacheEntries, dnsData), + ("net::Dashboard::GetDNSCacheEntries", + this, &Dashboard::GetDNSCacheEntries, dnsData), NS_DISPATCH_NORMAL); return NS_OK; } @@ -793,7 +807,8 @@ Dashboard::RequestRcwnStats(NetDashboardCallback *aCallback) "NetDashboardCallback", aCallback, true); return rcwnData->mEventTarget->Dispatch( - NewRunnableMethod>(this, &Dashboard::GetRcwnData, rcwnData), + NewRunnableMethod>("net::Dashboard::GetRcwnData", + this, &Dashboard::GetRcwnData, rcwnData), NS_DISPATCH_NORMAL); } @@ -875,7 +890,8 @@ Dashboard::RequestConnection(const nsACString& aHost, uint32_t aPort, if (NS_FAILED(rv)) { mozilla::net::GetErrorString(rv, connectionData->mStatus); connectionData->mEventTarget->Dispatch(NewRunnableMethod> - (this, &Dashboard::GetConnectionStatus, connectionData), + ("net::Dashboard::GetConnectionStatus", + this, &Dashboard::GetConnectionStatus, connectionData), NS_DISPATCH_NORMAL); return rv; } diff --git a/netwerk/base/NetworkActivityMonitor.cpp b/netwerk/base/NetworkActivityMonitor.cpp index 2f7d92628dce..ef2698c54b72 100644 --- a/netwerk/base/NetworkActivityMonitor.cpp +++ b/netwerk/base/NetworkActivityMonitor.cpp @@ -152,7 +152,8 @@ nsNetMon_AcceptRead(PRFileDesc *listenSock, class NotifyNetworkActivity : public mozilla::Runnable { public: explicit NotifyNetworkActivity(NetworkActivityMonitor::Direction aDirection) - : mDirection(aDirection) + : mozilla::Runnable("NotifyNetworkActivity") + , mDirection(aDirection) {} NS_IMETHOD Run() override { diff --git a/netwerk/base/Predictor.cpp b/netwerk/base/Predictor.cpp index 7e969630a8cb..5912cfc60610 100644 --- a/netwerk/base/Predictor.cpp +++ b/netwerk/base/Predictor.cpp @@ -615,9 +615,10 @@ namespace { class PredictorThreadShutdownRunner : public Runnable { public: - PredictorThreadShutdownRunner(nsIThread *ioThread, bool success) - :mIOThread(ioThread) - ,mSuccess(success) + PredictorThreadShutdownRunner(nsIThread* ioThread, bool success) + : Runnable("net::PredictorThreadShutdownRunner") + , mIOThread(ioThread) + , mSuccess(success) { } ~PredictorThreadShutdownRunner() { } @@ -640,9 +641,10 @@ private: class PredictorOldCleanupRunner : public Runnable { public: - PredictorOldCleanupRunner(nsIThread *ioThread, nsIFile *dbFile) - :mIOThread(ioThread) - ,mDBFile(dbFile) + PredictorOldCleanupRunner(nsIThread* ioThread, nsIFile* dbFile) + : Runnable("net::PredictorOldCleanupRunner") + , mIOThread(ioThread) + , mDBFile(dbFile) { } ~PredictorOldCleanupRunner() { } diff --git a/netwerk/base/TLSServerSocket.cpp b/netwerk/base/TLSServerSocket.cpp index 40dcec75418c..77d209b20e9b 100644 --- a/netwerk/base/TLSServerSocket.cpp +++ b/netwerk/base/TLSServerSocket.cpp @@ -286,10 +286,12 @@ public: class OnHandshakeDoneRunnable : public Runnable { public: - OnHandshakeDoneRunnable(const nsMainThreadPtrHandle& aListener, - nsITLSServerSocket* aServer, - nsITLSClientStatus* aStatus) - : mListener(aListener) + OnHandshakeDoneRunnable( + const nsMainThreadPtrHandle& aListener, + nsITLSServerSocket* aServer, + nsITLSClientStatus* aStatus) + : Runnable("net::TLSServerSecurityObserverProxy::OnHandshakeDoneRunnable") + , mListener(aListener) , mServer(aServer) , mStatus(aStatus) { } diff --git a/netwerk/base/Tickler.cpp b/netwerk/base/Tickler.cpp index 555fdbbe5e29..62542d6b0a21 100644 --- a/netwerk/base/Tickler.cpp +++ b/netwerk/base/Tickler.cpp @@ -108,7 +108,8 @@ void Tickler::Tickle() void Tickler::PostCheckTickler() { mLock.AssertCurrentThreadOwns(); - mThread->Dispatch(NewRunnableMethod(this, &Tickler::CheckTickler), + mThread->Dispatch(NewRunnableMethod("net::Tickler::CheckTickler", + this, &Tickler::CheckTickler), NS_DISPATCH_NORMAL); return; } @@ -124,7 +125,8 @@ void Tickler::MaybeStartTickler() mLock.AssertCurrentThreadOwns(); if (!NS_IsMainThread()) { NS_DispatchToMainThread( - NewRunnableMethod(this, &Tickler::MaybeStartTicklerUnlocked)); + NewRunnableMethod("net::Tickler::MaybeStartTicklerUnlocked", + this, &Tickler::MaybeStartTicklerUnlocked)); return; } diff --git a/netwerk/base/nsAsyncStreamCopier.cpp b/netwerk/base/nsAsyncStreamCopier.cpp index 2923ac9e5a89..6fbed58cc118 100644 --- a/netwerk/base/nsAsyncStreamCopier.cpp +++ b/netwerk/base/nsAsyncStreamCopier.cpp @@ -33,9 +33,11 @@ public: * The nsAsyncStreamCopier requesting the information. */ explicit AsyncApplyBufferingPolicyEvent(nsAsyncStreamCopier* aCopier) - : mCopier(aCopier) + : mozilla::Runnable("AsyncApplyBufferingPolicyEvent") + , mCopier(aCopier) , mTarget(GetCurrentThreadEventTarget()) - { } + {} + NS_IMETHOD Run() override { nsresult rv = mCopier->ApplyBufferingPolicy(); @@ -44,7 +46,8 @@ public: return NS_OK; } - rv = mTarget->Dispatch(NewRunnableMethod(mCopier, + rv = mTarget->Dispatch(NewRunnableMethod("nsAsyncStreamCopier::AsyncCopyInternal", + mCopier, &nsAsyncStreamCopier::AsyncCopyInternal), NS_DISPATCH_NORMAL); MOZ_ASSERT(NS_SUCCEEDED(rv)); @@ -54,6 +57,7 @@ public: } return NS_OK; } + private: RefPtr mCopier; nsCOMPtr mTarget; diff --git a/netwerk/base/nsBaseChannel.cpp b/netwerk/base/nsBaseChannel.cpp index 094ef07c458a..9d9b427f1acf 100644 --- a/netwerk/base/nsBaseChannel.cpp +++ b/netwerk/base/nsBaseChannel.cpp @@ -908,9 +908,10 @@ nsBaseChannel::OnDataAvailable(nsIRequest *request, nsISupports *ctxt, OnTransportStatusAsyncEvent(nsBaseChannel* aChannel, int64_t aProgress, int64_t aContentLength) - : mChannel(aChannel), - mProgress(aProgress), - mContentLength(aContentLength) + : mozilla::Runnable("OnTransportStatusAsyncEvent") + , mChannel(aChannel) + , mProgress(aProgress) + , mContentLength(aContentLength) { } NS_IMETHOD Run() override diff --git a/netwerk/base/nsBaseChannel.h b/netwerk/base/nsBaseChannel.h index 5427acef132f..6ae87b37b180 100644 --- a/netwerk/base/nsBaseChannel.h +++ b/netwerk/base/nsBaseChannel.h @@ -261,7 +261,9 @@ private: { public: RedirectRunnable(nsBaseChannel* chan, nsIChannel* newChannel) - : mChannel(chan), mNewChannel(newChannel) + : mozilla::Runnable("nsBaseChannel::RedirectRunnable") + , mChannel(chan) + , mNewChannel(newChannel) { NS_PRECONDITION(newChannel, "Must have channel to redirect to"); } diff --git a/netwerk/base/nsIOService.cpp b/netwerk/base/nsIOService.cpp index 48f92048f387..024877641faa 100644 --- a/netwerk/base/nsIOService.cpp +++ b/netwerk/base/nsIOService.cpp @@ -1398,14 +1398,13 @@ nsIOService::GetPrefBranch(nsIPrefBranch **result) class nsWakeupNotifier : public Runnable { public: - explicit nsWakeupNotifier(nsIIOServiceInternal *ioService) - :mIOService(ioService) - { } + explicit nsWakeupNotifier(nsIIOServiceInternal* ioService) + : Runnable("net::nsWakeupNotifier") + , mIOService(ioService) + { + } - NS_IMETHOD Run() override - { - return mIOService->NotifyWakeup(); - } + NS_IMETHOD Run() override { return mIOService->NotifyWakeup(); } private: virtual ~nsWakeupNotifier() { } diff --git a/netwerk/base/nsInputStreamPump.cpp b/netwerk/base/nsInputStreamPump.cpp index c57fc1322326..97b282582418 100644 --- a/netwerk/base/nsInputStreamPump.cpp +++ b/netwerk/base/nsInputStreamPump.cpp @@ -697,7 +697,9 @@ nsInputStreamPump::OnStateStop() MOZ_ASSERT(NS_IsMainThread(), "OnStateStop should only be called on the main thread."); nsresult rv = NS_DispatchToMainThread( - NewRunnableMethod(this, &nsInputStreamPump::CallOnStateStop)); + NewRunnableMethod("nsInputStreamPump::CallOnStateStop", + this, + &nsInputStreamPump::CallOnStateStop)); NS_ENSURE_SUCCESS(rv, STATE_IDLE); return STATE_IDLE; } diff --git a/netwerk/base/nsPACMan.cpp b/netwerk/base/nsPACMan.cpp index da8dfefdc6a3..5a43f26e5615 100644 --- a/netwerk/base/nsPACMan.cpp +++ b/netwerk/base/nsPACMan.cpp @@ -85,9 +85,9 @@ GetExtraJSContextHeapSize() class ExecuteCallback final : public Runnable { public: - ExecuteCallback(nsPACManCallback *aCallback, - nsresult status) - : mCallback(aCallback) + ExecuteCallback(nsPACManCallback* aCallback, nsresult status) + : Runnable("net::ExecuteCallback") + , mCallback(aCallback) , mStatus(status) { } @@ -125,8 +125,9 @@ private: class ShutdownThread final : public Runnable { public: - explicit ShutdownThread(nsIThread *thread) - : mThread(thread) + explicit ShutdownThread(nsIThread* thread) + : Runnable("net::ShutdownThread") + , mThread(thread) { } @@ -146,8 +147,9 @@ private: class WaitForThreadShutdown final : public Runnable { public: - explicit WaitForThreadShutdown(nsPACMan *aPACMan) - : mPACMan(aPACMan) + explicit WaitForThreadShutdown(nsPACMan* aPACMan) + : Runnable("net::WaitForThreadShutdown") + , mPACMan(aPACMan) { } @@ -174,8 +176,9 @@ private: class PACLoadComplete final : public Runnable { public: - explicit PACLoadComplete(nsPACMan *aPACMan) - : mPACMan(aPACMan) + explicit PACLoadComplete(nsPACMan* aPACMan) + : Runnable("net::PACLoadComplete") + , mPACMan(aPACMan) { } @@ -201,8 +204,9 @@ class ExecutePACThreadAction final : public Runnable { public: // by default we just process the queue - explicit ExecutePACThreadAction(nsPACMan *aPACMan) - : mPACMan(aPACMan) + explicit ExecutePACThreadAction(nsPACMan* aPACMan) + : Runnable("net::ExecutePACThreadAction") + , mPACMan(aPACMan) , mCancel(false) , mCancelStatus(NS_OK) , mSetupPAC(false) @@ -266,10 +270,12 @@ private: //----------------------------------------------------------------------------- -PendingPACQuery::PendingPACQuery(nsPACMan *pacMan, nsIURI *uri, - nsPACManCallback *callback, +PendingPACQuery::PendingPACQuery(nsPACMan* pacMan, + nsIURI* uri, + nsPACManCallback* callback, bool mainThreadResponse) - : mPACMan(pacMan) + : Runnable("net::PendingPACQuery") + , mPACMan(pacMan) , mCallback(callback) , mOnMainThreadOnly(mainThreadResponse) { @@ -433,7 +439,8 @@ nsPACMan::LoadPACFromURI(const nsCString &spec) if (!mLoadPending) { nsresult rv; - if (NS_FAILED(rv = NS_DispatchToCurrentThread(NewRunnableMethod(this, &nsPACMan::StartLoading)))) + if (NS_FAILED(rv = NS_DispatchToCurrentThread(NewRunnableMethod("nsPACMan::StartLoading", + this, &nsPACMan::StartLoading)))) return rv; mLoadPending = true; } diff --git a/netwerk/base/nsPreloadedStream.cpp b/netwerk/base/nsPreloadedStream.cpp index d203f550526e..dd88e50cb3ec 100644 --- a/netwerk/base/nsPreloadedStream.cpp +++ b/netwerk/base/nsPreloadedStream.cpp @@ -110,17 +110,19 @@ nsPreloadedStream::CloseWithStatus(nsresult aStatus) class RunOnThread : public Runnable { public: - RunOnThread(nsIAsyncInputStream *aStream, - nsIInputStreamCallback *aCallback) - : mStream(aStream), - mCallback(aCallback) {} + RunOnThread(nsIAsyncInputStream* aStream, nsIInputStreamCallback* aCallback) + : Runnable("net::RunOnThread") + , mStream(aStream) + , mCallback(aCallback) + { + } - virtual ~RunOnThread() {} + virtual ~RunOnThread() {} - NS_IMETHOD Run() override - { - mCallback->OnInputStreamReady(mStream); - return NS_OK; + NS_IMETHOD Run() override + { + mCallback->OnInputStreamReady(mStream); + return NS_OK; } private: diff --git a/netwerk/base/nsRequestObserverProxy.cpp b/netwerk/base/nsRequestObserverProxy.cpp index 9e95b356ba65..939cb87c9e34 100644 --- a/netwerk/base/nsRequestObserverProxy.cpp +++ b/netwerk/base/nsRequestObserverProxy.cpp @@ -24,8 +24,9 @@ static LazyLogModule gRequestObserverProxyLog("nsRequestObserverProxy"); // nsARequestObserverEvent internal class... //----------------------------------------------------------------------------- -nsARequestObserverEvent::nsARequestObserverEvent(nsIRequest *request) - : mRequest(request) +nsARequestObserverEvent::nsARequestObserverEvent(nsIRequest* request) + : Runnable("net::nsARequestObserverEvent") + , mRequest(request) { NS_PRECONDITION(mRequest, "null pointer"); } diff --git a/netwerk/base/nsServerSocket.cpp b/netwerk/base/nsServerSocket.cpp index 3c9e12621c77..c64c19f2f16f 100644 --- a/netwerk/base/nsServerSocket.cpp +++ b/netwerk/base/nsServerSocket.cpp @@ -27,7 +27,7 @@ typedef void (nsServerSocket:: *nsServerSocketFunc)(void); static nsresult PostEvent(nsServerSocket *s, nsServerSocketFunc func) { - nsCOMPtr ev = NewRunnableMethod(s, func); + nsCOMPtr ev = NewRunnableMethod("net::PostEvent", s, func); if (!gSocketTransportService) return NS_ERROR_FAILURE; @@ -122,8 +122,8 @@ nsServerSocket::TryAttach() // if (!gSocketTransportService->CanAttachSocket()) { - nsCOMPtr event = - NewRunnableMethod(this, &nsServerSocket::OnMsgAttach); + nsCOMPtr event = NewRunnableMethod( + "net::nsServerSocket::OnMsgAttach", this, &nsServerSocket::OnMsgAttach); if (!event) return NS_ERROR_OUT_OF_MEMORY; @@ -434,10 +434,12 @@ public: class OnSocketAcceptedRunnable : public Runnable { public: - OnSocketAcceptedRunnable(const nsMainThreadPtrHandle& aListener, - nsIServerSocket* aServ, - nsISocketTransport* aTransport) - : mListener(aListener) + OnSocketAcceptedRunnable( + const nsMainThreadPtrHandle& aListener, + nsIServerSocket* aServ, + nsISocketTransport* aTransport) + : Runnable("net::ServerSocketListenerProxy::OnSocketAcceptedRunnable") + , mListener(aListener) , mServ(aServ) , mTransport(aTransport) { } @@ -453,10 +455,12 @@ public: class OnStopListeningRunnable : public Runnable { public: - OnStopListeningRunnable(const nsMainThreadPtrHandle& aListener, - nsIServerSocket* aServ, - nsresult aStatus) - : mListener(aListener) + OnStopListeningRunnable( + const nsMainThreadPtrHandle& aListener, + nsIServerSocket* aServ, + nsresult aStatus) + : Runnable("net::ServerSocketListenerProxy::OnStopListeningRunnable") + , mListener(aListener) , mServ(aServ) , mStatus(aStatus) { } diff --git a/netwerk/base/nsSocketTransport2.cpp b/netwerk/base/nsSocketTransport2.cpp index 88af2bceefd4..01deb4a74d3e 100644 --- a/netwerk/base/nsSocketTransport2.cpp +++ b/netwerk/base/nsSocketTransport2.cpp @@ -73,18 +73,22 @@ namespace net { class nsSocketEvent : public Runnable { public: - nsSocketEvent(nsSocketTransport *transport, uint32_t type, - nsresult status = NS_OK, nsISupports *param = nullptr) - : mTransport(transport) - , mType(type) - , mStatus(status) - , mParam(param) - {} + nsSocketEvent(nsSocketTransport* transport, + uint32_t type, + nsresult status = NS_OK, + nsISupports* param = nullptr) + : Runnable("net::nsSocketEvent") + , mTransport(transport) + , mType(type) + , mStatus(status) + , mParam(param) + { + } - NS_IMETHOD Run() override - { - mTransport->OnSocketEvent(mType, mStatus, mParam); - return NS_OK; + NS_IMETHOD Run() override + { + mTransport->OnSocketEvent(mType, mStatus, mParam); + return NS_OK; } private: @@ -1969,7 +1973,11 @@ nsSocketTransport::FastOpenInProgress() class ThunkPRClose : public Runnable { public: - explicit ThunkPRClose(PRFileDesc *fd) : mFD(fd) {} + explicit ThunkPRClose(PRFileDesc* fd) + : Runnable("net::ThunkPRClose") + , mFD(fd) + { + } NS_IMETHOD Run() override { diff --git a/netwerk/base/nsSocketTransportService2.cpp b/netwerk/base/nsSocketTransportService2.cpp index e458262097b3..4ecccd6c2523 100644 --- a/netwerk/base/nsSocketTransportService2.cpp +++ b/netwerk/base/nsSocketTransportService2.cpp @@ -948,12 +948,16 @@ nsSocketTransportService::Run() mRawThread->HasPendingEvents(&pendingEvents); if (pendingEvents) { if (!mServingPendingQueue) { - nsresult rv = Dispatch(NewRunnableMethod(this, - &nsSocketTransportService::MarkTheLastElementOfPendingQueue), - nsIEventTarget::DISPATCH_NORMAL); - if (NS_FAILED(rv)) { - NS_WARNING("Could not dispatch a new event on the " - "socket thread."); + nsresult rv = Dispatch( + NewRunnableMethod("net::nsSocketTransportService::" + "MarkTheLastElementOfPendingQueue", + this, + &nsSocketTransportService:: + MarkTheLastElementOfPendingQueue), + nsIEventTarget::DISPATCH_NORMAL); + if (NS_FAILED(rv)) { + NS_WARNING("Could not dispatch a new event on the " + "socket thread."); } else { mServingPendingQueue = true; } @@ -1316,11 +1320,13 @@ nsSocketTransportService::OnKeepaliveEnabledPrefChange() { // Dispatch to socket thread if we're not executing there. if (!OnSocketThread()) { - gSocketTransportService->Dispatch( - NewRunnableMethod( - this, &nsSocketTransportService::OnKeepaliveEnabledPrefChange), - NS_DISPATCH_NORMAL); - return; + gSocketTransportService->Dispatch( + NewRunnableMethod( + "net::nsSocketTransportService::OnKeepaliveEnabledPrefChange", + this, + &nsSocketTransportService::OnKeepaliveEnabledPrefChange), + NS_DISPATCH_NORMAL); + return; } SOCKET_LOG(("nsSocketTransportService::OnKeepaliveEnabledPrefChange %s", @@ -1371,11 +1377,12 @@ nsSocketTransportService::Observe(nsISupports *subject, } if (!strcmp(topic, "last-pb-context-exited")) { - nsCOMPtr ev = - NewRunnableMethod(this, - &nsSocketTransportService::ClosePrivateConnections); - nsresult rv = Dispatch(ev, nsIEventTarget::DISPATCH_NORMAL); - NS_ENSURE_SUCCESS(rv, rv); + nsCOMPtr ev = NewRunnableMethod( + "net::nsSocketTransportService::ClosePrivateConnections", + this, + &nsSocketTransportService::ClosePrivateConnections); + nsresult rv = Dispatch(ev, nsIEventTarget::DISPATCH_NORMAL); + NS_ENSURE_SUCCESS(rv, rv); } if (!strcmp(topic, NS_TIMER_CALLBACK_TOPIC)) { @@ -1622,7 +1629,8 @@ nsSocketTransportService::StartPollWatchdog() // Start off the timer from a runnable off of the main thread in order to // avoid a deadlock, see bug 1370448. RefPtr self(this); - NS_DispatchToMainThread(NS_NewRunnableFunction([self] { + NS_DispatchToMainThread(NS_NewRunnableFunction("nsSocketTransportService::StartPollWatchdog", + [self] { MutexAutoLock lock(self->mLock); // Poll can hang sometimes. If we are in shutdown, we are going to start a diff --git a/netwerk/base/nsStreamTransportService.cpp b/netwerk/base/nsStreamTransportService.cpp index 41e2784777d8..f19ae454a07e 100644 --- a/netwerk/base/nsStreamTransportService.cpp +++ b/netwerk/base/nsStreamTransportService.cpp @@ -575,17 +575,18 @@ nsStreamTransportService::Observe(nsISupports *subject, const char *topic, class AvailableEvent final : public Runnable { - public: - AvailableEvent(nsIInputStream *stream, - nsIInputAvailableCallback *callback) - : mStream(stream) - , mCallback(callback) - , mDoingCallback(false) - , mSize(0) - , mResultForCallback(NS_OK) - { - mCallbackTarget = GetCurrentThreadEventTarget(); - } +public: + AvailableEvent(nsIInputStream* stream, + nsIInputAvailableCallback* callback) + : Runnable("net::AvailableEvent") + , mStream(stream) + , mCallback(callback) + , mDoingCallback(false) + , mSize(0) + , mResultForCallback(NS_OK) + { + mCallbackTarget = GetCurrentThreadEventTarget(); + } NS_IMETHOD Run() override { diff --git a/netwerk/base/nsUDPSocket.cpp b/netwerk/base/nsUDPSocket.cpp index 4de0dbce7564..cde4a2446520 100644 --- a/netwerk/base/nsUDPSocket.cpp +++ b/netwerk/base/nsUDPSocket.cpp @@ -48,7 +48,8 @@ PostEvent(nsUDPSocket *s, nsUDPSocketFunc func) if (!gSocketTransportService) return NS_ERROR_FAILURE; - return gSocketTransportService->Dispatch(NewRunnableMethod(s, func), NS_DISPATCH_NORMAL); + return gSocketTransportService->Dispatch( + NewRunnableMethod("net::PostEvent", s, func), NS_DISPATCH_NORMAL); } static nsresult @@ -91,7 +92,8 @@ class SetSocketOptionRunnable : public Runnable { public: SetSocketOptionRunnable(nsUDPSocket* aSocket, const PRSocketOptionData& aOpt) - : mSocket(aSocket) + : Runnable("net::SetSocketOptionRunnable") + , mSocket(aSocket) , mOpt(aOpt) {} @@ -354,8 +356,8 @@ nsUDPSocket::TryAttach() // if (!gSocketTransportService->CanAttachSocket()) { - nsCOMPtr event = - NewRunnableMethod(this, &nsUDPSocket::OnMsgAttach); + nsCOMPtr event = NewRunnableMethod( + "net::nsUDPSocket::OnMsgAttach", this, &nsUDPSocket::OnMsgAttach); nsresult rv = gSocketTransportService->NotifyWhenCanAttachSocket(event); if (NS_FAILED(rv)) @@ -858,10 +860,12 @@ public: class OnPacketReceivedRunnable : public Runnable { public: - OnPacketReceivedRunnable(const nsMainThreadPtrHandle& aListener, - nsIUDPSocket* aSocket, - nsIUDPMessage* aMessage) - : mListener(aListener) + OnPacketReceivedRunnable( + const nsMainThreadPtrHandle& aListener, + nsIUDPSocket* aSocket, + nsIUDPMessage* aMessage) + : Runnable("net::SocketListenerProxy::OnPacketReceivedRunnable") + , mListener(aListener) , mSocket(aSocket) , mMessage(aMessage) { } @@ -877,10 +881,12 @@ public: class OnStopListeningRunnable : public Runnable { public: - OnStopListeningRunnable(const nsMainThreadPtrHandle& aListener, - nsIUDPSocket* aSocket, - nsresult aStatus) - : mListener(aListener) + OnStopListeningRunnable( + const nsMainThreadPtrHandle& aListener, + nsIUDPSocket* aSocket, + nsresult aStatus) + : Runnable("net::SocketListenerProxy::OnStopListeningRunnable") + , mListener(aListener) , mSocket(aSocket) , mStatus(aStatus) { } @@ -966,7 +972,8 @@ public: OnPacketReceivedRunnable(const nsCOMPtr& aListener, nsIUDPSocket* aSocket, nsIUDPMessage* aMessage) - : mListener(aListener) + : Runnable("net::SocketListenerProxyBackground::OnPacketReceivedRunnable") + , mListener(aListener) , mSocket(aSocket) , mMessage(aMessage) { } @@ -985,7 +992,8 @@ public: OnStopListeningRunnable(const nsCOMPtr& aListener, nsIUDPSocket* aSocket, nsresult aStatus) - : mListener(aListener) + : Runnable("net::SocketListenerProxyBackground::OnStopListeningRunnable") + , mListener(aListener) , mSocket(aSocket) , mStatus(aStatus) { } @@ -1141,10 +1149,11 @@ PendingSendStream::OnLookupComplete(nsICancelable *request, class SendRequestRunnable: public Runnable { public: - SendRequestRunnable(nsUDPSocket *aSocket, - const NetAddr &aAddr, + SendRequestRunnable(nsUDPSocket* aSocket, + const NetAddr& aAddr, FallibleTArray&& aData) - : mSocket(aSocket) + : Runnable("net::SendRequestRunnable") + , mSocket(aSocket) , mAddr(aAddr) , mData(Move(aData)) { } diff --git a/netwerk/cache/nsCacheEntryDescriptor.cpp b/netwerk/cache/nsCacheEntryDescriptor.cpp index d78d1c214940..76d02e42dd9d 100644 --- a/netwerk/cache/nsCacheEntryDescriptor.cpp +++ b/netwerk/cache/nsCacheEntryDescriptor.cpp @@ -28,6 +28,7 @@ class nsAsyncDoomEvent : public mozilla::Runnable { public: nsAsyncDoomEvent(nsCacheEntryDescriptor *descriptor, nsICacheListener *listener) + : mozilla::Runnable("nsAsyncDoomEvent") { mDescriptor = descriptor; mListener = listener; diff --git a/netwerk/cache/nsCacheService.cpp b/netwerk/cache/nsCacheService.cpp index 4e251d4de56d..61155b0811ab 100644 --- a/netwerk/cache/nsCacheService.cpp +++ b/netwerk/cache/nsCacheService.cpp @@ -226,32 +226,35 @@ NS_IMPL_ISUPPORTS(nsSetDiskSmartSizeCallback, nsITimerCallback) class nsSetSmartSizeEvent: public Runnable { public: - explicit nsSetSmartSizeEvent(int32_t smartSize) - : mSmartSize(smartSize) {} + explicit nsSetSmartSizeEvent(int32_t smartSize) + : mozilla::Runnable("nsSetSmartSizeEvent") + , mSmartSize(smartSize) + { + } - NS_IMETHOD Run() - { - NS_ASSERTION(NS_IsMainThread(), - "Setting smart size data off the main thread"); + NS_IMETHOD Run() + { + NS_ASSERTION(NS_IsMainThread(), + "Setting smart size data off the main thread"); - // Main thread may have already called nsCacheService::Shutdown - if (!nsCacheService::IsInitialized()) - return NS_ERROR_NOT_AVAILABLE; + // Main thread may have already called nsCacheService::Shutdown + if (!nsCacheService::IsInitialized()) + return NS_ERROR_NOT_AVAILABLE; - // Ensure smart sizing wasn't switched off while event was pending. - // It is safe to access the observer without the lock since we are - // on the main thread and the value changes only on the main thread. - if (!nsCacheService::gService->mObserver->SmartSizeEnabled()) - return NS_OK; + // Ensure smart sizing wasn't switched off while event was pending. + // It is safe to access the observer without the lock since we are + // on the main thread and the value changes only on the main thread. + if (!nsCacheService::gService->mObserver->SmartSizeEnabled()) + return NS_OK; - nsCacheService::SetDiskCacheCapacity(mSmartSize); + nsCacheService::SetDiskCacheCapacity(mSmartSize); - nsCOMPtr ps = do_GetService(NS_PREFSERVICE_CONTRACTID); - if (!ps || - NS_FAILED(ps->SetIntPref(DISK_CACHE_SMART_SIZE_PREF, mSmartSize))) - NS_WARNING("Failed to set smart size pref"); + nsCOMPtr ps = do_GetService(NS_PREFSERVICE_CONTRACTID); + if (!ps || + NS_FAILED(ps->SetIntPref(DISK_CACHE_SMART_SIZE_PREF, mSmartSize))) + NS_WARNING("Failed to set smart size pref"); - return NS_OK; + return NS_OK; } private: @@ -263,23 +266,25 @@ private: class nsGetSmartSizeEvent: public Runnable { public: - nsGetSmartSizeEvent(const nsAString& cachePath, uint32_t currentSize, - bool shouldUseOldMaxSmartSize) - : mCachePath(cachePath) - , mCurrentSize(currentSize) - , mShouldUseOldMaxSmartSize(shouldUseOldMaxSmartSize) - {} - - // Calculates user's disk space available on a background thread and - // dispatches this value back to the main thread. - NS_IMETHOD Run() override - { - uint32_t size; - size = nsCacheProfilePrefObserver::GetSmartCacheSize(mCachePath, - mCurrentSize, - mShouldUseOldMaxSmartSize); - NS_DispatchToMainThread(new nsSetSmartSizeEvent(size)); - return NS_OK; + nsGetSmartSizeEvent(const nsAString& cachePath, + uint32_t currentSize, + bool shouldUseOldMaxSmartSize) + : mozilla::Runnable("nsGetSmartSizeEvent") + , mCachePath(cachePath) + , mCurrentSize(currentSize) + , mShouldUseOldMaxSmartSize(shouldUseOldMaxSmartSize) + { + } + + // Calculates user's disk space available on a background thread and + // dispatches this value back to the main thread. + NS_IMETHOD Run() override + { + uint32_t size; + size = nsCacheProfilePrefObserver::GetSmartCacheSize( + mCachePath, mCurrentSize, mShouldUseOldMaxSmartSize); + NS_DispatchToMainThread(new nsSetSmartSizeEvent(size)); + return NS_OK; } private: @@ -290,8 +295,9 @@ private: class nsBlockOnCacheThreadEvent : public Runnable { public: - nsBlockOnCacheThreadEvent() - { + nsBlockOnCacheThreadEvent() + : mozilla::Runnable("nsBlockOnCacheThreadEvent") + { } NS_IMETHOD Run() override { @@ -976,9 +982,10 @@ nsCacheProfilePrefObserver::CacheCompressionLevel() class nsProcessRequestEvent : public Runnable { public: - explicit nsProcessRequestEvent(nsCacheRequest *aRequest) - { - mRequest = aRequest; + explicit nsProcessRequestEvent(nsCacheRequest* aRequest) + : mozilla::Runnable("nsProcessRequestEvent") + { + mRequest = aRequest; } NS_IMETHOD Run() override @@ -1017,6 +1024,7 @@ public: nsDoomEvent(nsCacheSession *session, const nsACString &key, nsICacheListener *listener) + : mozilla::Runnable("nsDoomEvent") { mKey = *session->ClientID(); mKey.Append(':'); @@ -1333,11 +1341,13 @@ namespace { class EvictionNotifierRunnable : public Runnable { public: - explicit EvictionNotifierRunnable(nsISupports* aSubject) - : mSubject(aSubject) - { } + explicit EvictionNotifierRunnable(nsISupports* aSubject) + : mozilla::Runnable("EvictionNotifierRunnable") + , mSubject(aSubject) + { + } - NS_DECL_NSIRUNNABLE + NS_DECL_NSIRUNNABLE private: nsCOMPtr mSubject; @@ -1531,10 +1541,12 @@ nsresult nsCacheService::EvictEntriesInternal(nsCacheStoragePolicy storagePolicy { if (storagePolicy == nsICache::STORE_ANYWHERE) { // if not called on main thread, dispatch the notification to the main thread to notify observers - if (!NS_IsMainThread()) { - nsCOMPtr event = NewRunnableMethod(this, - &nsCacheService::FireClearNetworkCacheStoredAnywhereNotification); - NS_DispatchToMainThread(event); + if (!NS_IsMainThread()) { + nsCOMPtr event = NewRunnableMethod( + "nsCacheService::FireClearNetworkCacheStoredAnywhereNotification", + this, + &nsCacheService::FireClearNetworkCacheStoredAnywhereNotification); + NS_DispatchToMainThread(event); } else { // else you're already on main thread - notify observers FireClearNetworkCacheStoredAnywhereNotification(); @@ -1645,37 +1657,42 @@ nsCacheService::CreateDiskDevice() class nsDisableOldMaxSmartSizePrefEvent: public Runnable { public: - nsDisableOldMaxSmartSizePrefEvent() {} + nsDisableOldMaxSmartSizePrefEvent() + : mozilla::Runnable("nsDisableOldMaxSmartSizePrefEvent") + { + } - NS_IMETHOD Run() override - { - // Main thread may have already called nsCacheService::Shutdown - if (!nsCacheService::IsInitialized()) - return NS_ERROR_NOT_AVAILABLE; + NS_IMETHOD Run() override + { + // Main thread may have already called nsCacheService::Shutdown + if (!nsCacheService::IsInitialized()) + return NS_ERROR_NOT_AVAILABLE; - nsCOMPtr branch = do_GetService(NS_PREFSERVICE_CONTRACTID); - if (!branch) { - return NS_ERROR_NOT_AVAILABLE; - } + nsCOMPtr branch = do_GetService(NS_PREFSERVICE_CONTRACTID); + if (!branch) { + return NS_ERROR_NOT_AVAILABLE; + } - nsresult rv = branch->SetBoolPref(DISK_CACHE_USE_OLD_MAX_SMART_SIZE_PREF, false); - if (NS_FAILED(rv)) { - NS_WARNING("Failed to disable old max smart size"); - return rv; - } + nsresult rv = + branch->SetBoolPref(DISK_CACHE_USE_OLD_MAX_SMART_SIZE_PREF, false); + if (NS_FAILED(rv)) { + NS_WARNING("Failed to disable old max smart size"); + return rv; + } - // It is safe to call SetDiskSmartSize_Locked() without holding the lock - // when we are on main thread and nsCacheService is initialized. - nsCacheService::gService->SetDiskSmartSize_Locked(); + // It is safe to call SetDiskSmartSize_Locked() without holding the lock + // when we are on main thread and nsCacheService is initialized. + nsCacheService::gService->SetDiskSmartSize_Locked(); - if (nsCacheService::gService->mObserver->PermittedToSmartSize(branch, false)) { - rv = branch->SetIntPref(DISK_CACHE_CAPACITY_PREF, MAX_CACHE_SIZE); - if (NS_FAILED(rv)) { - NS_WARNING("Failed to set cache capacity pref"); - } - } + if (nsCacheService::gService->mObserver->PermittedToSmartSize(branch, + false)) { + rv = branch->SetIntPref(DISK_CACHE_CAPACITY_PREF, MAX_CACHE_SIZE); + if (NS_FAILED(rv)) { + NS_WARNING("Failed to set cache capacity pref"); + } + } - return NS_OK; + return NS_OK; } }; @@ -1856,23 +1873,25 @@ nsCacheService::CreateRequest(nsCacheSession * session, class nsCacheListenerEvent : public Runnable { public: - nsCacheListenerEvent(nsICacheListener *listener, - nsICacheEntryDescriptor *descriptor, - nsCacheAccessMode accessGranted, - nsresult status) - : mListener(listener) // transfers reference - , mDescriptor(descriptor) // transfers reference (may be null) - , mAccessGranted(accessGranted) - , mStatus(status) - {} + nsCacheListenerEvent(nsICacheListener* listener, + nsICacheEntryDescriptor* descriptor, + nsCacheAccessMode accessGranted, + nsresult status) + : mozilla::Runnable("nsCacheListenerEvent") + , mListener(listener) // transfers reference + , mDescriptor(descriptor) // transfers reference (may be null) + , mAccessGranted(accessGranted) + , mStatus(status) + { + } - NS_IMETHOD Run() override - { - mListener->OnCacheEntryAvailable(mDescriptor, mAccessGranted, mStatus); + NS_IMETHOD Run() override + { + mListener->OnCacheEntryAvailable(mDescriptor, mAccessGranted, mStatus); - NS_RELEASE(mListener); - NS_IF_RELEASE(mDescriptor); - return NS_OK; + NS_RELEASE(mListener); + NS_IF_RELEASE(mDescriptor); + return NS_OK; } private: diff --git a/netwerk/cache/nsCacheService.h b/netwerk/cache/nsCacheService.h index 049a8ddb6b75..c02c7b4d483a 100644 --- a/netwerk/cache/nsCacheService.h +++ b/netwerk/cache/nsCacheService.h @@ -40,17 +40,18 @@ class mozIStorageService; class nsNotifyDoomListener : public mozilla::Runnable { public: - nsNotifyDoomListener(nsICacheListener *listener, - nsresult status) - : mListener(listener) // transfers reference - , mStatus(status) - {} + nsNotifyDoomListener(nsICacheListener* listener, nsresult status) + : mozilla::Runnable("nsNotifyDoomListener") + , mListener(listener) // transfers reference + , mStatus(status) + { + } - NS_IMETHOD Run() override - { - mListener->OnCacheEntryDoomed(mStatus); - NS_RELEASE(mListener); - return NS_OK; + NS_IMETHOD Run() override + { + mListener->OnCacheEntryDoomed(mStatus); + NS_RELEASE(mListener); + return NS_OK; } private: diff --git a/netwerk/cache/nsCacheUtils.cpp b/netwerk/cache/nsCacheUtils.cpp index 7cb5622747c4..801eaf9900b6 100644 --- a/netwerk/cache/nsCacheUtils.cpp +++ b/netwerk/cache/nsCacheUtils.cpp @@ -12,8 +12,9 @@ using namespace mozilla; class nsDestroyThreadEvent : public Runnable { public: - explicit nsDestroyThreadEvent(nsIThread *thread) - : mThread(thread) + explicit nsDestroyThreadEvent(nsIThread* thread) + : mozilla::Runnable("nsDestroyThreadEvent") + , mThread(thread) {} NS_IMETHOD Run() override { @@ -24,8 +25,9 @@ private: nsCOMPtr mThread; }; -nsShutdownThread::nsShutdownThread(nsIThread *aThread) - : mMonitor("nsShutdownThread.mMonitor") +nsShutdownThread::nsShutdownThread(nsIThread* aThread) + : mozilla::Runnable("nsShutdownThread") + , mMonitor("nsShutdownThread.mMonitor") , mShuttingDown(false) , mThread(aThread) { diff --git a/netwerk/cache/nsDeleteDir.cpp b/netwerk/cache/nsDeleteDir.cpp index 1f3f3934e970..0f9f3a6fa5b6 100644 --- a/netwerk/cache/nsDeleteDir.cpp +++ b/netwerk/cache/nsDeleteDir.cpp @@ -21,7 +21,10 @@ using namespace mozilla; class nsBlockOnBackgroundThreadEvent : public Runnable { public: - nsBlockOnBackgroundThreadEvent() {} + nsBlockOnBackgroundThreadEvent() + : mozilla::Runnable("nsBlockOnBackgroundThreadEvent") + { + } NS_IMETHOD Run() override { MutexAutoLock lock(nsDeleteDir::gInstance->mLock); @@ -390,8 +393,11 @@ nsDeleteDir::PostTimer(void *arg, uint32_t delay) if (NS_FAILED(rv)) return rv; - rv = timer->InitWithFuncCallback(TimerCallback, arg, delay, - nsITimer::TYPE_ONE_SHOT); + rv = timer->InitWithNamedFuncCallback(TimerCallback, + arg, + delay, + nsITimer::TYPE_ONE_SHOT, + "nsDeleteDir::PostTimer"); if (NS_FAILED(rv)) return rv; diff --git a/netwerk/cache/nsDiskCacheDevice.cpp b/netwerk/cache/nsDiskCacheDevice.cpp index d0f18c91c867..9cf285a95d78 100644 --- a/netwerk/cache/nsDiskCacheDevice.cpp +++ b/netwerk/cache/nsDiskCacheDevice.cpp @@ -52,14 +52,15 @@ using namespace mozilla; class nsDiskCacheDeviceDeactivateEntryEvent : public Runnable { public: - nsDiskCacheDeviceDeactivateEntryEvent(nsDiskCacheDevice *device, - nsCacheEntry * entry, - nsDiskCacheBinding * binding) - : mCanceled(false), - mEntry(entry), - mDevice(device), - mBinding(binding) - { + nsDiskCacheDeviceDeactivateEntryEvent(nsDiskCacheDevice* device, + nsCacheEntry* entry, + nsDiskCacheBinding* binding) + : mozilla::Runnable("nsDiskCacheDeviceDeactivateEntryEvent") + , mCanceled(false) + , mEntry(entry) + , mDevice(device) + , mBinding(binding) + { } NS_IMETHOD Run() override @@ -82,14 +83,17 @@ private: class nsEvictDiskCacheEntriesEvent : public Runnable { public: - explicit nsEvictDiskCacheEntriesEvent(nsDiskCacheDevice *device) - : mDevice(device) {} + explicit nsEvictDiskCacheEntriesEvent(nsDiskCacheDevice* device) + : mozilla::Runnable("nsEvictDiskCacheEntriesEvent") + , mDevice(device) + { + } - NS_IMETHOD Run() override - { - nsCacheServiceAutoLock lock; - mDevice->EvictDiskCacheEntries(mDevice->mCacheCapacity); - return NS_OK; + NS_IMETHOD Run() override + { + nsCacheServiceAutoLock lock; + mDevice->EvictDiskCacheEntries(mDevice->mCacheCapacity); + return NS_OK; } private: diff --git a/netwerk/cache/nsDiskCacheDeviceSQL.cpp b/netwerk/cache/nsDiskCacheDeviceSQL.cpp index a616682674dd..c72460086d65 100644 --- a/netwerk/cache/nsDiskCacheDeviceSQL.cpp +++ b/netwerk/cache/nsDiskCacheDeviceSQL.cpp @@ -299,10 +299,11 @@ nsOfflineCacheEvictionFunction::Apply() class nsOfflineCacheDiscardCache : public Runnable { public: - nsOfflineCacheDiscardCache(nsOfflineCacheDevice *device, - nsCString &group, - nsCString &clientID) - : mDevice(device) + nsOfflineCacheDiscardCache(nsOfflineCacheDevice* device, + nsCString& group, + nsCString& clientID) + : mozilla::Runnable("nsOfflineCacheDiscardCache") + , mDevice(device) , mGroup(group) , mClientID(clientID) { @@ -920,7 +921,8 @@ nsApplicationCache::GetUsage(uint32_t *usage) class nsCloseDBEvent : public Runnable { public: - explicit nsCloseDBEvent(mozIStorageConnection *aDB) + explicit nsCloseDBEvent(mozIStorageConnection* aDB) + : mozilla::Runnable("nsCloseDBEvent") { mDB = aDB; } diff --git a/netwerk/cache/nsDiskCacheMap.cpp b/netwerk/cache/nsDiskCacheMap.cpp index d7ce13a35a74..7d38055637e5 100644 --- a/netwerk/cache/nsDiskCacheMap.cpp +++ b/netwerk/cache/nsDiskCacheMap.cpp @@ -1350,10 +1350,12 @@ nsresult nsDiskCacheMap::ResetCacheTimer(int32_t timeout) { mCleanCacheTimer->Cancel(); - nsresult rv = - mCleanCacheTimer->InitWithFuncCallback(RevalidateTimerCallback, - nullptr, timeout, - nsITimer::TYPE_ONE_SHOT); + nsresult rv = mCleanCacheTimer->InitWithNamedFuncCallback( + RevalidateTimerCallback, + nullptr, + timeout, + nsITimer::TYPE_ONE_SHOT, + "nsDiskCacheMap::ResetCacheTimer"); NS_ENSURE_SUCCESS(rv, rv); mLastInvalidateTime = PR_IntervalNow(); diff --git a/netwerk/cache2/CacheEntry.cpp b/netwerk/cache2/CacheEntry.cpp index fcfce09de099..2bc7b468b7d4 100644 --- a/netwerk/cache2/CacheEntry.cpp +++ b/netwerk/cache2/CacheEntry.cpp @@ -663,7 +663,8 @@ bool CacheEntry::InvokeCallbacks(bool aReadOnly) if (NS_SUCCEEDED(rv) && !onCheckThread) { // Redispatch to the target thread - rv = mCallbacks[i].mTarget->Dispatch(NewRunnableMethod(this, + rv = mCallbacks[i].mTarget->Dispatch(NewRunnableMethod("net::CacheEntry::InvokeCallbacksLock", + this, &CacheEntry::InvokeCallbacksLock), nsIEventTarget::DISPATCH_NORMAL); if (NS_SUCCEEDED(rv)) { @@ -1859,7 +1860,11 @@ void CacheEntry::BackgroundOp(uint32_t aOperations, bool aForceAsync) // Because CacheFile::Set*() are not thread-safe to use (uses WeakReference that // is not thread-safe) we must post to the main thread... - NS_DispatchToMainThread(NewRunnableMethod(this, &CacheEntry::StoreFrecency, mFrecency)); + NS_DispatchToMainThread( + NewRunnableMethod("net::CacheEntry::StoreFrecency", + this, + &CacheEntry::StoreFrecency, + mFrecency)); } if (aOperations & Ops::REGISTER) { @@ -1894,7 +1899,8 @@ void CacheEntry::StoreFrecency(double aFrecency) // CacheOutputCloseListener CacheOutputCloseListener::CacheOutputCloseListener(CacheEntry* aEntry) -: mEntry(aEntry) + : Runnable("net::CacheOutputCloseListener") + , mEntry(aEntry) { } diff --git a/netwerk/cache2/CacheEntry.h b/netwerk/cache2/CacheEntry.h index d37cecdbb20f..044d544bdd9b 100644 --- a/netwerk/cache2/CacheEntry.h +++ b/netwerk/cache2/CacheEntry.h @@ -208,7 +208,11 @@ private: { public: DoomCallbackRunnable(CacheEntry* aEntry, nsresult aRv) - : mEntry(aEntry), mRv(aRv) {} + : Runnable("net::CacheEntry::DoomCallbackRunnable") + , mEntry(aEntry) + , mRv(aRv) + { + } private: NS_IMETHOD Run() override diff --git a/netwerk/cache2/CacheFile.cpp b/netwerk/cache2/CacheFile.cpp index 42c6d3b3c68d..89f9a3a73b01 100644 --- a/netwerk/cache2/CacheFile.cpp +++ b/netwerk/cache2/CacheFile.cpp @@ -30,10 +30,11 @@ namespace net { class NotifyCacheFileListenerEvent : public Runnable { public: - NotifyCacheFileListenerEvent(CacheFileListener *aCallback, + NotifyCacheFileListenerEvent(CacheFileListener* aCallback, nsresult aResult, bool aIsNew) - : mCallback(aCallback) + : Runnable("net::NotifyCacheFileListenerEvent") + , mCallback(aCallback) , mRV(aResult) , mIsNew(aIsNew) { @@ -65,11 +66,12 @@ protected: class NotifyChunkListenerEvent : public Runnable { public: - NotifyChunkListenerEvent(CacheFileChunkListener *aCallback, + NotifyChunkListenerEvent(CacheFileChunkListener* aCallback, nsresult aResult, uint32_t aChunkIdx, - CacheFileChunk *aChunk) - : mCallback(aCallback) + CacheFileChunk* aChunk) + : Runnable("net::NotifyChunkListenerEvent") + , mCallback(aCallback) , mRV(aResult) , mChunkIdx(aChunkIdx) , mChunk(aChunk) diff --git a/netwerk/cache2/CacheFileChunk.cpp b/netwerk/cache2/CacheFileChunk.cpp index 2803fccf5e51..1cc18d4e9b34 100644 --- a/netwerk/cache2/CacheFileChunk.cpp +++ b/netwerk/cache2/CacheFileChunk.cpp @@ -246,9 +246,10 @@ CacheFileChunkWriteHandle::UpdateDataSize(uint32_t aOffset, uint32_t aLen) class NotifyUpdateListenerEvent : public Runnable { public: - NotifyUpdateListenerEvent(CacheFileChunkListener *aCallback, - CacheFileChunk *aChunk) - : mCallback(aCallback) + NotifyUpdateListenerEvent(CacheFileChunkListener* aCallback, + CacheFileChunk* aChunk) + : Runnable("net::NotifyUpdateListenerEvent") + , mCallback(aCallback) , mChunk(aChunk) { LOG(("NotifyUpdateListenerEvent::NotifyUpdateListenerEvent() [this=%p]", @@ -283,7 +284,8 @@ CacheFileChunk::DispatchRelease() return false; } - NS_DispatchToMainThread(NewNonOwningRunnableMethod(this, &CacheFileChunk::Release)); + NS_DispatchToMainThread(NewNonOwningRunnableMethod( + "net::CacheFileChunk::Release", this, &CacheFileChunk::Release)); return true; } diff --git a/netwerk/cache2/CacheFileContextEvictor.cpp b/netwerk/cache2/CacheFileContextEvictor.cpp index 51c87011a230..4328d0bcd6bf 100644 --- a/netwerk/cache2/CacheFileContextEvictor.cpp +++ b/netwerk/cache2/CacheFileContextEvictor.cpp @@ -523,7 +523,9 @@ CacheFileContextEvictor::StartEvicting() } nsCOMPtr ev; - ev = NewRunnableMethod(this, &CacheFileContextEvictor::EvictEntries); + ev = NewRunnableMethod("net::CacheFileContextEvictor::EvictEntries", + this, + &CacheFileContextEvictor::EvictEntries); RefPtr ioThread = CacheFileIOManager::IOThread(); diff --git a/netwerk/cache2/CacheFileIOManager.cpp b/netwerk/cache2/CacheFileIOManager.cpp index 189dd86d7362..f56f5f1067de 100644 --- a/netwerk/cache2/CacheFileIOManager.cpp +++ b/netwerk/cache2/CacheFileIOManager.cpp @@ -69,10 +69,10 @@ CacheFileHandle::DispatchRelease() return false; } - nsresult rv = - ioTarget->Dispatch(NewNonOwningRunnableMethod(this, - &CacheFileHandle::Release), - nsIEventTarget::DISPATCH_NORMAL); + nsresult rv = ioTarget->Dispatch( + NewNonOwningRunnableMethod( + "net::CacheFileHandle::Release", this, &CacheFileHandle::Release), + nsIEventTarget::DISPATCH_NORMAL); if (NS_FAILED(rv)) { return false; } @@ -545,7 +545,8 @@ CacheFileHandles::SizeOfExcludingThis(mozilla::MallocSizeOf mallocSizeOf) const class ShutdownEvent : public Runnable { public: ShutdownEvent() - : mMonitor("ShutdownEvent.mMonitor") + : Runnable("net::ShutdownEvent") + , mMonitor("ShutdownEvent.mMonitor") , mNotified(false) { } @@ -596,9 +597,11 @@ protected: class OpenFileEvent : public Runnable { public: - OpenFileEvent(const nsACString &aKey, uint32_t aFlags, - CacheFileIOListener *aCallback) - : mFlags(aFlags) + OpenFileEvent(const nsACString& aKey, + uint32_t aFlags, + CacheFileIOListener* aCallback) + : Runnable("net::OpenFileEvent") + , mFlags(aFlags) , mCallback(aCallback) , mKey(aKey) { @@ -654,9 +657,13 @@ protected: class ReadEvent : public Runnable { public: - ReadEvent(CacheFileHandle *aHandle, int64_t aOffset, char *aBuf, - int32_t aCount, CacheFileIOListener *aCallback) - : mHandle(aHandle) + ReadEvent(CacheFileHandle* aHandle, + int64_t aOffset, + char* aBuf, + int32_t aCount, + CacheFileIOListener* aCallback) + : Runnable("net::ReadEvent") + , mHandle(aHandle) , mOffset(aOffset) , mBuf(aBuf) , mCount(aCount) @@ -695,10 +702,15 @@ protected: class WriteEvent : public Runnable { public: - WriteEvent(CacheFileHandle *aHandle, int64_t aOffset, const char *aBuf, - int32_t aCount, bool aValidate, bool aTruncate, - CacheFileIOListener *aCallback) - : mHandle(aHandle) + WriteEvent(CacheFileHandle* aHandle, + int64_t aOffset, + const char* aBuf, + int32_t aCount, + bool aValidate, + bool aTruncate, + CacheFileIOListener* aCallback) + : Runnable("net::WriteEvent") + , mHandle(aHandle) , mOffset(aOffset) , mBuf(aBuf) , mCount(aCount) @@ -759,9 +771,9 @@ protected: class DoomFileEvent : public Runnable { public: - DoomFileEvent(CacheFileHandle *aHandle, - CacheFileIOListener *aCallback) - : mCallback(aCallback) + DoomFileEvent(CacheFileHandle* aHandle, CacheFileIOListener* aCallback) + : Runnable("net::DoomFileEvent") + , mCallback(aCallback) , mHandle(aHandle) { } @@ -797,9 +809,9 @@ protected: class DoomFileByKeyEvent : public Runnable { public: - DoomFileByKeyEvent(const nsACString &aKey, - CacheFileIOListener *aCallback) - : mCallback(aCallback) + DoomFileByKeyEvent(const nsACString& aKey, CacheFileIOListener* aCallback) + : Runnable("net::DoomFileByKeyEvent") + , mCallback(aCallback) { SHA1Sum sum; sum.update(aKey.BeginReading(), aKey.Length()); @@ -840,8 +852,9 @@ protected: class ReleaseNSPRHandleEvent : public Runnable { public: - explicit ReleaseNSPRHandleEvent(CacheFileHandle *aHandle) - : mHandle(aHandle) + explicit ReleaseNSPRHandleEvent(CacheFileHandle* aHandle) + : Runnable("net::ReleaseNSPRHandleEvent") + , mHandle(aHandle) { } @@ -866,9 +879,12 @@ protected: class TruncateSeekSetEOFEvent : public Runnable { public: - TruncateSeekSetEOFEvent(CacheFileHandle *aHandle, int64_t aTruncatePos, - int64_t aEOFPos, CacheFileIOListener *aCallback) - : mHandle(aHandle) + TruncateSeekSetEOFEvent(CacheFileHandle* aHandle, + int64_t aTruncatePos, + int64_t aEOFPos, + CacheFileIOListener* aCallback) + : Runnable("net::TruncateSeekSetEOFEvent") + , mHandle(aHandle) , mTruncatePos(aTruncatePos) , mEOFPos(aEOFPos) , mCallback(aCallback) @@ -908,9 +924,11 @@ protected: class RenameFileEvent : public Runnable { public: - RenameFileEvent(CacheFileHandle *aHandle, const nsACString &aNewName, - CacheFileIOListener *aCallback) - : mHandle(aHandle) + RenameFileEvent(CacheFileHandle* aHandle, + const nsACString& aNewName, + CacheFileIOListener* aCallback) + : Runnable("net::RenameFileEvent") + , mHandle(aHandle) , mNewName(aNewName) , mCallback(aCallback) { @@ -948,10 +966,12 @@ protected: class InitIndexEntryEvent : public Runnable { public: - InitIndexEntryEvent(CacheFileHandle *aHandle, - OriginAttrsHash aOriginAttrsHash, bool aAnonymous, + InitIndexEntryEvent(CacheFileHandle* aHandle, + OriginAttrsHash aOriginAttrsHash, + bool aAnonymous, bool aPinning) - : mHandle(aHandle) + : Runnable("net::InitIndexEntryEvent") + , mHandle(aHandle) , mOriginAttrsHash(aOriginAttrsHash) , mAnonymous(aAnonymous) , mPinning(aPinning) @@ -993,13 +1013,14 @@ protected: class UpdateIndexEntryEvent : public Runnable { public: - UpdateIndexEntryEvent(CacheFileHandle *aHandle, - const uint32_t *aFrecency, - const uint32_t *aExpirationTime, - const bool *aHasAltData, - const uint16_t *aOnStartTime, - const uint16_t *aOnStopTime) - : mHandle(aHandle) + UpdateIndexEntryEvent(CacheFileHandle* aHandle, + const uint32_t* aFrecency, + const uint32_t* aExpirationTime, + const bool* aHasAltData, + const uint16_t* aOnStartTime, + const uint16_t* aOnStopTime) + : Runnable("net::UpdateIndexEntryEvent") + , mHandle(aHandle) , mHasFrecency(false) , mHasExpirationTime(false) , mHasHasAltData(false) @@ -1078,10 +1099,11 @@ public: RefPtr mFile; RefPtr mIOMan; - MetadataWriteScheduleEvent(CacheFileIOManager * aManager, - CacheFile * aFile, + MetadataWriteScheduleEvent(CacheFileIOManager* aManager, + CacheFile* aFile, EMode aMode) - : mMode(aMode) + : Runnable("net::MetadataWriteScheduleEvent") + , mMode(aMode) , mFile(aFile) , mIOMan(aManager) { } @@ -2721,8 +2743,9 @@ CacheFileIOManager::EvictIfOverLimit() } nsCOMPtr ev; - ev = NewRunnableMethod(ioMan, - &CacheFileIOManager::EvictIfOverLimitInternal); + ev = NewRunnableMethod("net::CacheFileIOManager::EvictIfOverLimitInternal", + ioMan, + &CacheFileIOManager::EvictIfOverLimitInternal); rv = ioMan->mIOThread->Dispatch(ev, CacheIOThread::EVICT); NS_ENSURE_SUCCESS(rv, rv); @@ -2785,8 +2808,9 @@ CacheFileIOManager::EvictIfOverLimitInternal() cacheUsage, cacheLimit)); nsCOMPtr ev; - ev = NewRunnableMethod(this, - &CacheFileIOManager::OverLimitEvictionInternal); + ev = NewRunnableMethod("net::CacheFileIOManager::OverLimitEvictionInternal", + this, + &CacheFileIOManager::OverLimitEvictionInternal); rv = mIOThread->Dispatch(ev, CacheIOThread::EVICT); NS_ENSURE_SUCCESS(rv, rv); @@ -2945,7 +2969,9 @@ CacheFileIOManager::EvictAll() } nsCOMPtr ev; - ev = NewRunnableMethod(ioMan, &CacheFileIOManager::EvictAllInternal); + ev = NewRunnableMethod("net::CacheFileIOManager::EvictAllInternal", + ioMan, + &CacheFileIOManager::EvictAllInternal); rv = ioMan->mIOThread->DispatchAfterPendingOpens(ev); if (NS_WARN_IF(NS_FAILED(rv))) { @@ -2960,6 +2986,7 @@ namespace { class EvictionNotifierRunnable : public Runnable { public: + EvictionNotifierRunnable() : Runnable("EvictionNotifierRunnable") {} NS_DECL_NSIRUNNABLE }; @@ -3063,8 +3090,12 @@ CacheFileIOManager::EvictByContext(nsILoadContextInfo *aLoadContextInfo, bool aP } nsCOMPtr ev; - ev = NewRunnableMethod, bool> - (ioMan, &CacheFileIOManager::EvictByContextInternal, aLoadContextInfo, aPinned); + ev = NewRunnableMethod, bool>( + "net::CacheFileIOManager::EvictByContextInternal", + ioMan, + &CacheFileIOManager::EvictByContextInternal, + aLoadContextInfo, + aPinned); rv = ioMan->mIOThread->DispatchAfterPendingOpens(ev); if (NS_WARN_IF(NS_FAILED(rv))) { @@ -3182,8 +3213,10 @@ CacheFileIOManager::CacheIndexStateChanged() // We have to re-distatch even if we are on IO thread to prevent reentering // the lock in CacheIndex nsCOMPtr ev; - ev = NewRunnableMethod( - gInstance.get(), &CacheFileIOManager::CacheIndexStateChangedInternal); + ev = + NewRunnableMethod("net::CacheFileIOManager::CacheIndexStateChangedInternal", + gInstance.get(), + &CacheFileIOManager::CacheIndexStateChangedInternal); nsCOMPtr ioTarget = IOTarget(); MOZ_ASSERT(ioTarget); @@ -3347,9 +3380,12 @@ CacheFileIOManager::StartRemovingTrash() rv = timer->SetTarget(ioTarget); NS_ENSURE_SUCCESS(rv, rv); - rv = timer->InitWithFuncCallback(CacheFileIOManager::OnTrashTimer, nullptr, - kRemoveTrashStartDelay - elapsed, - nsITimer::TYPE_ONE_SHOT); + rv = timer->InitWithNamedFuncCallback( + CacheFileIOManager::OnTrashTimer, + nullptr, + kRemoveTrashStartDelay - elapsed, + nsITimer::TYPE_ONE_SHOT, + "net::CacheFileIOManager::StartRemovingTrash"); NS_ENSURE_SUCCESS(rv, rv); mTrashTimer.swap(timer); @@ -3357,8 +3393,9 @@ CacheFileIOManager::StartRemovingTrash() } nsCOMPtr ev; - ev = NewRunnableMethod(this, - &CacheFileIOManager::RemoveTrashInternal); + ev = NewRunnableMethod("net::CacheFileIOManager::RemoveTrashInternal", + this, + &CacheFileIOManager::RemoveTrashInternal); rv = mIOThread->Dispatch(ev, CacheIOThread::EVICT); NS_ENSURE_SUCCESS(rv, rv); @@ -4219,9 +4256,10 @@ class SizeOfHandlesRunnable : public Runnable { public: SizeOfHandlesRunnable(mozilla::MallocSizeOf mallocSizeOf, - CacheFileHandles const &handles, - nsTArray const &specialHandles) - : mMonitor("SizeOfHandlesRunnable.mMonitor") + CacheFileHandles const& handles, + nsTArray const& specialHandles) + : Runnable("net::SizeOfHandlesRunnable") + , mMonitor("SizeOfHandlesRunnable.mMonitor") , mMallocSizeOf(mallocSizeOf) , mHandles(handles) , mSpecialHandles(specialHandles) diff --git a/netwerk/cache2/CacheIndex.cpp b/netwerk/cache2/CacheIndex.cpp index 836c0be9cf36..7cbc5d6b4cd8 100644 --- a/netwerk/cache2/CacheIndex.cpp +++ b/netwerk/cache2/CacheIndex.cpp @@ -367,7 +367,9 @@ CacheIndex::PreShutdown() } nsCOMPtr event; - event = NewRunnableMethod(index, &CacheIndex::PreShutdownInternal); + event = NewRunnableMethod("net::CacheIndex::PreShutdownInternal", + index, + &CacheIndex::PreShutdownInternal); nsCOMPtr ioTarget = CacheFileIOManager::IOTarget(); MOZ_ASSERT(ioTarget); @@ -1436,15 +1438,18 @@ CacheIndex::AsyncGetDiskConsumption(nsICacheStorageConsumptionObserver* aObserve // Move forward with index re/building if it is pending RefPtr ioThread = CacheFileIOManager::IOThread(); if (ioThread) { - ioThread->Dispatch(NS_NewRunnableFunction([]() -> void { - StaticMutexAutoLock lock(sLock); + ioThread->Dispatch( + NS_NewRunnableFunction("net::CacheIndex::AsyncGetDiskConsumption", + []() -> void { + StaticMutexAutoLock lock(sLock); - RefPtr index = gInstance; - if (index && index->mUpdateTimer) { - index->mUpdateTimer->Cancel(); - index->DelayedUpdateLocked(); - } - }), CacheIOThread::INDEX); + RefPtr index = gInstance; + if (index && index->mUpdateTimer) { + index->mUpdateTimer->Cancel(); + index->DelayedUpdateLocked(); + } + }), + CacheIOThread::INDEX); } return NS_OK; @@ -2656,8 +2661,11 @@ CacheIndex::ScheduleUpdateTimer(uint32_t aDelay) rv = timer->SetTarget(ioTarget); NS_ENSURE_SUCCESS(rv, rv); - rv = timer->InitWithFuncCallback(CacheIndex::DelayedUpdate, nullptr, - aDelay, nsITimer::TYPE_ONE_SHOT); + rv = timer->InitWithNamedFuncCallback(CacheIndex::DelayedUpdate, + nullptr, + aDelay, + nsITimer::TYPE_ONE_SHOT, + "net::CacheIndex::ScheduleUpdateTimer"); NS_ENSURE_SUCCESS(rv, rv); mUpdateTimer.swap(timer); diff --git a/netwerk/cache2/CacheIndex.h b/netwerk/cache2/CacheIndex.h index bfd43efd1190..cfbf46cb681f 100644 --- a/netwerk/cache2/CacheIndex.h +++ b/netwerk/cache2/CacheIndex.h @@ -1205,8 +1205,11 @@ private: } private: - explicit DiskConsumptionObserver(nsWeakPtr const &aWeakObserver) - : mObserver(aWeakObserver) { } + explicit DiskConsumptionObserver(nsWeakPtr const& aWeakObserver) + : Runnable("net::CacheIndex::DiskConsumptionObserver") + , mObserver(aWeakObserver) + { + } virtual ~DiskConsumptionObserver() { if (mObserver && !NS_IsMainThread()) { NS_ReleaseOnMainThread( diff --git a/netwerk/cache2/CacheObserver.cpp b/netwerk/cache2/CacheObserver.cpp index af03316dbf11..37c834a1e75d 100644 --- a/netwerk/cache2/CacheObserver.cpp +++ b/netwerk/cache2/CacheObserver.cpp @@ -325,7 +325,9 @@ CacheObserver::SetDiskCacheCapacity(uint32_t aCapacity) sSelf->StoreDiskCacheCapacity(); } else { nsCOMPtr event = - NewRunnableMethod(sSelf, &CacheObserver::StoreDiskCacheCapacity); + NewRunnableMethod("net::CacheObserver::StoreDiskCacheCapacity", + sSelf, + &CacheObserver::StoreDiskCacheCapacity); NS_DispatchToMainThread(event); } } @@ -351,7 +353,9 @@ CacheObserver::SetCacheFSReported() sSelf->StoreCacheFSReported(); } else { nsCOMPtr event = - NewRunnableMethod(sSelf, &CacheObserver::StoreCacheFSReported); + NewRunnableMethod("net::CacheObserver::StoreCacheFSReported", + sSelf, + &CacheObserver::StoreCacheFSReported); NS_DispatchToMainThread(event); } } @@ -377,7 +381,9 @@ CacheObserver::SetHashStatsReported() sSelf->StoreHashStatsReported(); } else { nsCOMPtr event = - NewRunnableMethod(sSelf, &CacheObserver::StoreHashStatsReported); + NewRunnableMethod("net::CacheObserver::StoreHashStatsReported", + sSelf, + &CacheObserver::StoreHashStatsReported); NS_DispatchToMainThread(event); } } diff --git a/netwerk/cache2/CacheStorageService.cpp b/netwerk/cache2/CacheStorageService.cpp index bbc68f04562a..0d66ae5c3ddc 100644 --- a/netwerk/cache2/CacheStorageService.cpp +++ b/netwerk/cache2/CacheStorageService.cpp @@ -147,7 +147,9 @@ void CacheStorageService::Shutdown() mShutdown = true; nsCOMPtr event = - NewRunnableMethod(this, &CacheStorageService::ShutdownBackground); + NewRunnableMethod("net::CacheStorageService::ShutdownBackground", + this, + &CacheStorageService::ShutdownBackground); Dispatch(event); #ifdef NS_FREE_PERMANENT_DATA @@ -195,9 +197,9 @@ class WalkCacheRunnable : public Runnable , public CacheStorageService::EntryInfoCallback { protected: - WalkCacheRunnable(nsICacheStorageVisitor* aVisitor, - bool aVisitEntries) - : mService(CacheStorageService::Self()) + WalkCacheRunnable(nsICacheStorageVisitor* aVisitor, bool aVisitEntries) + : Runnable("net::WalkCacheRunnable") + , mService(CacheStorageService::Self()) , mCallback(aVisitor) , mSize(0) , mNotifyStorage(true) @@ -390,7 +392,8 @@ private: { public: explicit OnCacheEntryInfoRunnable(WalkDiskCacheRunnable* aWalker) - : mWalker(aWalker) + : Runnable("net::WalkDiskCacheRunnable::OnCacheEntryInfoRunnable") + , mWalker(aWalker) { } @@ -572,7 +575,9 @@ public: private: CleaupCacheDirectoriesRunnable(uint32_t aVersion, uint32_t aActive) - : mVersion(aVersion), mActive(aActive) + : Runnable("net::CleaupCacheDirectoriesRunnable") + , mVersion(aVersion) + , mActive(aActive) { nsCacheService::GetDiskCacheDirectory(getter_AddRefs(mCache1Dir)); CacheFileIOManager::GetCacheDirectory(getter_AddRefs(mCache2Dir)); @@ -1265,7 +1270,9 @@ CacheStorageService::OnMemoryConsumptionChange(CacheMemoryConsumer* aConsumer, // Dispatch as a priority task, we want to set the purge timer // ASAP to prevent vain redispatch of this event. nsCOMPtr event = - NewRunnableMethod(this, &CacheStorageService::SchedulePurgeOverMemoryLimit); + NewRunnableMethod("net::CacheStorageService::SchedulePurgeOverMemoryLimit", + this, + &CacheStorageService::SchedulePurgeOverMemoryLimit); cacheIOTarget->Dispatch(event, nsIEventTarget::DISPATCH_NORMAL); } @@ -1321,7 +1328,9 @@ CacheStorageService::Notify(nsITimer* aTimer) mPurgeTimer = nullptr; nsCOMPtr event = - NewRunnableMethod(this, &CacheStorageService::PurgeOverMemoryLimit); + NewRunnableMethod("net::CacheStorageService::PurgeOverMemoryLimit", + this, + &CacheStorageService::PurgeOverMemoryLimit); Dispatch(event); } @@ -1812,7 +1821,11 @@ CacheStorageService::DoomStorageEntry(CacheStorage const* aStorage, class Callback : public Runnable { public: - explicit Callback(nsICacheEntryDoomCallback* aCallback) : mCallback(aCallback) { } + explicit Callback(nsICacheEntryDoomCallback* aCallback) + : mozilla::Runnable("Callback") + , mCallback(aCallback) + { + } NS_IMETHOD Run() override { mCallback->OnCacheEntryDoomed(NS_ERROR_NOT_AVAILABLE); @@ -1936,7 +1949,11 @@ CacheStorageService::DoomStorageEntries(nsCSubstring const& aContextKey, class Callback : public Runnable { public: - explicit Callback(nsICacheEntryDoomCallback* aCallback) : mCallback(aCallback) { } + explicit Callback(nsICacheEntryDoomCallback* aCallback) + : mozilla::Runnable("Callback") + , mCallback(aCallback) + { + } NS_IMETHOD Run() override { mCallback->OnCacheEntryDoomed(NS_OK); diff --git a/netwerk/cache2/CacheStorageService.h b/netwerk/cache2/CacheStorageService.h index 5f3d60cc24eb..67fbfc4d9f65 100644 --- a/netwerk/cache2/CacheStorageService.h +++ b/netwerk/cache2/CacheStorageService.h @@ -365,7 +365,11 @@ private: { public: PurgeFromMemoryRunnable(CacheStorageService* aService, uint32_t aWhat) - : mService(aService), mWhat(aWhat) { } + : Runnable("net::CacheStorageService::PurgeFromMemoryRunnable") + , mService(aService) + , mWhat(aWhat) + { + } private: virtual ~PurgeFromMemoryRunnable() { } @@ -386,7 +390,12 @@ private: class IOThreadSuspender : public Runnable { public: - IOThreadSuspender() : mMon("IOThreadSuspender"), mSignaled(false) { } + IOThreadSuspender() + : Runnable("net::CacheStorageService::IOThreadSuspender") + , mMon("IOThreadSuspender") + , mSignaled(false) + { + } void Notify(); private: virtual ~IOThreadSuspender() { } diff --git a/netwerk/cache2/OldWrappers.cpp b/netwerk/cache2/OldWrappers.cpp index e33c23cc45ad..ecc1d22e99ff 100644 --- a/netwerk/cache2/OldWrappers.cpp +++ b/netwerk/cache2/OldWrappers.cpp @@ -40,7 +40,9 @@ namespace { class DoomCallbackSynchronizer : public Runnable { public: - explicit DoomCallbackSynchronizer(nsICacheEntryDoomCallback* cb) : mCB(cb) + explicit DoomCallbackSynchronizer(nsICacheEntryDoomCallback* cb) + : Runnable("net::DoomCallbackSynchronizer") + , mCB(cb) { } nsresult Dispatch(); @@ -302,7 +304,8 @@ NS_IMPL_ISUPPORTS_INHERITED(_OldGetDiskConsumption, _OldGetDiskConsumption::_OldGetDiskConsumption( nsICacheStorageConsumptionObserver* aCallback) - : mCallback(aCallback) + : Runnable("net::_OldGetDiskConsumption") + , mCallback(aCallback) , mSize(0) { } @@ -660,7 +663,8 @@ _OldCacheLoad::_OldCacheLoad(nsCSubstring const& aScheme, nsILoadContextInfo* aLoadInfo, bool aWriteToDisk, uint32_t aFlags) - : mScheme(aScheme) + : Runnable("net::_OldCacheLoad") + , mScheme(aScheme) , mCacheKey(aCacheKey) , mCallback(aCallback) , mLoadInfo(GetLoadContextInfo(aLoadInfo)) diff --git a/netwerk/dns/DNSRequestChild.cpp b/netwerk/dns/DNSRequestChild.cpp index e26078cdca59..37d428c8502f 100644 --- a/netwerk/dns/DNSRequestChild.cpp +++ b/netwerk/dns/DNSRequestChild.cpp @@ -165,7 +165,8 @@ class CancelDNSRequestEvent : public Runnable { public: CancelDNSRequestEvent(DNSRequestChild* aDnsReq, nsresult aReason) - : mDnsRequest(aDnsReq) + : Runnable("net::CancelDNSRequestEvent") + , mDnsRequest(aDnsReq) , mReasonForCancel(aReason) {} @@ -215,7 +216,9 @@ DNSRequestChild::StartRequest() SystemGroup::Dispatch( "StartDNSRequestChild", TaskCategory::Other, - NewRunnableMethod(this, &DNSRequestChild::StartRequest)); + NewRunnableMethod("net::DNSRequestChild::StartRequest", + this, + &DNSRequestChild::StartRequest)); return; } @@ -279,7 +282,9 @@ DNSRequestChild::RecvLookupCompleted(const DNSRequestResponse& reply) CallOnLookupComplete(); } else { nsCOMPtr event = - NewRunnableMethod(this, &DNSRequestChild::CallOnLookupComplete); + NewRunnableMethod("net::DNSRequestChild::CallOnLookupComplete", + this, + &DNSRequestChild::CallOnLookupComplete); mTarget->Dispatch(event, NS_DISPATCH_NORMAL); } diff --git a/netwerk/dns/mdns/libmdns/MDNSResponderOperator.cpp b/netwerk/dns/mdns/libmdns/MDNSResponderOperator.cpp index f1779ec9cc89..fd50ea5f943e 100644 --- a/netwerk/dns/mdns/libmdns/MDNSResponderOperator.cpp +++ b/netwerk/dns/mdns/libmdns/MDNSResponderOperator.cpp @@ -75,7 +75,8 @@ public: PR_Close(mFD); mFD = nullptr; - mThread->Dispatch(NewRunnableMethod(this, &ServiceWatcher::Deallocate), + mThread->Dispatch(NewRunnableMethod("MDNSResponderOperator::ServiceWatcher::Deallocate", + this, &ServiceWatcher::Deallocate), NS_DISPATCH_NORMAL); } @@ -125,7 +126,8 @@ public: } mFD = PR_ImportFile(osfd); - return PostEvent(&ServiceWatcher::OnMsgAttach); + return PostEvent("MDNSResponderOperator::ServiceWatcher::OnMsgAttach", + &ServiceWatcher::OnMsgAttach); } void Close() @@ -137,7 +139,8 @@ public: return; } - PostEvent(&ServiceWatcher::OnMsgClose); + PostEvent("MDNSResponderOperator::ServiceWatcher::OnMsgClose", + &ServiceWatcher::OnMsgClose); } private: @@ -152,9 +155,10 @@ private: mOperatorHolder = nullptr; } - nsresult PostEvent(void(ServiceWatcher::*func)(void)) + nsresult PostEvent(const char* aName, + void(ServiceWatcher::*func)(void)) { - return gSocketTransportService->Dispatch(NewRunnableMethod(this, func), + return gSocketTransportService->Dispatch(NewRunnableMethod(aName, this, func), NS_DISPATCH_NORMAL); } @@ -219,7 +223,8 @@ private: // if (!gSocketTransportService->CanAttachSocket()) { nsCOMPtr event = - NewRunnableMethod(this, &ServiceWatcher::OnMsgAttach); + NewRunnableMethod("MDNSResponderOperator::ServiceWatcher::OnMsgAttach", + this, &ServiceWatcher::OnMsgAttach); nsresult rv = gSocketTransportService->NotifyWhenCanAttachSocket(event); if (NS_FAILED(rv)) { diff --git a/netwerk/dns/mdns/libmdns/MDNSResponderReply.cpp b/netwerk/dns/mdns/libmdns/MDNSResponderReply.cpp index 5b008b05454c..e887eba83cae 100644 --- a/netwerk/dns/mdns/libmdns/MDNSResponderReply.cpp +++ b/netwerk/dns/mdns/libmdns/MDNSResponderReply.cpp @@ -18,7 +18,8 @@ BrowseReplyRunnable::BrowseReplyRunnable(DNSServiceRef aSdRef, const nsACString& aRegType, const nsACString& aReplyDomain, BrowseOperator* aContext) - : mSdRef(aSdRef) + : Runnable("net::BrowseReplyRunnable") + , mSdRef(aSdRef) , mFlags(aFlags) , mInterfaceIndex(aInterfaceIndex) , mErrorCode(aErrorCode) @@ -83,7 +84,8 @@ RegisterReplyRunnable::RegisterReplyRunnable(DNSServiceRef aSdRef, const nsACString& aRegType, const nsACString& domain, RegisterOperator* aContext) - : mSdRef(aSdRef) + : Runnable("net::RegisterReplyRunnable") + , mSdRef(aSdRef) , mFlags(aFlags) , mErrorCode(aErrorCode) , mName(aName) @@ -148,7 +150,8 @@ ResolveReplyRunnable::ResolveReplyRunnable(DNSServiceRef aSdRef, uint16_t aTxtLen, const unsigned char* aTxtRecord, ResolveOperator* aContext) - : mSdRef(aSdRef) + : Runnable("net::ResolveReplyRunnable") + , mSdRef(aSdRef) , mFlags(aFlags) , mInterfaceIndex(aInterfaceIndex) , mErrorCode(aErrorCode) @@ -229,7 +232,8 @@ GetAddrInfoReplyRunnable::GetAddrInfoReplyRunnable(DNSServiceRef aSdRef, const mozilla::net::NetAddr& aAddress, uint32_t aTTL, GetAddrInfoOperator* aContext) - : mSdRef(aSdRef) + : Runnable("net::GetAddrInfoReplyRunnable") + , mSdRef(aSdRef) , mFlags(aFlags) , mInterfaceIndex(aInterfaceIndex) , mErrorCode(aErrorCode) diff --git a/netwerk/dns/nsDNSService2.cpp b/netwerk/dns/nsDNSService2.cpp index 34a3c75b6018..dd1b060a3f3a 100644 --- a/netwerk/dns/nsDNSService2.cpp +++ b/netwerk/dns/nsDNSService2.cpp @@ -453,9 +453,10 @@ nsDNSSyncRequest::SizeOfIncludingThis(MallocSizeOf mallocSizeOf) const class NotifyDNSResolution: public Runnable { public: - explicit NotifyDNSResolution(const nsACString &aHostname) - : mHostname(aHostname) - { + explicit NotifyDNSResolution(const nsACString& aHostname) + : mozilla::Runnable("NotifyDNSResolution") + , mHostname(aHostname) + { } NS_IMETHOD Run() override diff --git a/netwerk/ipc/ChannelEventQueue.cpp b/netwerk/ipc/ChannelEventQueue.cpp index 471f88cb7a17..f099d44499cf 100644 --- a/netwerk/ipc/ChannelEventQueue.cpp +++ b/netwerk/ipc/ChannelEventQueue.cpp @@ -149,7 +149,8 @@ ChannelEventQueue::ResumeInternal() { public: explicit CompleteResumeRunnable(ChannelEventQueue* aQueue, nsISupports* aOwner) - : mQueue(aQueue) + : CancelableRunnable("CompleteResumeRunnable") + , mQueue(aQueue) , mOwner(aOwner) { } diff --git a/netwerk/protocol/about/nsAboutCache.cpp b/netwerk/protocol/about/nsAboutCache.cpp index d85738c47796..8a2857fd6000 100644 --- a/netwerk/protocol/about/nsAboutCache.cpp +++ b/netwerk/protocol/about/nsAboutCache.cpp @@ -224,7 +224,10 @@ nsAboutCache::Channel::VisitNextStorage() // from visitor callback. The cache v1 service doesn't like it. // TODO - mayhemer, bug 913828, remove this dispatch and call // directly. - return NS_DispatchToMainThread(mozilla::NewRunnableMethod(this, &nsAboutCache::Channel::FireVisitStorage)); + return NS_DispatchToMainThread( + mozilla::NewRunnableMethod("nsAboutCache::Channel::FireVisitStorage", + this, + &nsAboutCache::Channel::FireVisitStorage)); } void diff --git a/netwerk/protocol/file/nsFileChannel.cpp b/netwerk/protocol/file/nsFileChannel.cpp index 695aecde8e1d..13fd3dc51147 100644 --- a/netwerk/protocol/file/nsFileChannel.cpp +++ b/netwerk/protocol/file/nsFileChannel.cpp @@ -35,12 +35,14 @@ using namespace mozilla::net; class nsFileCopyEvent : public Runnable { public: - nsFileCopyEvent(nsIOutputStream *dest, nsIInputStream *source, int64_t len) - : mDest(dest) + nsFileCopyEvent(nsIOutputStream* dest, nsIInputStream* source, int64_t len) + : mozilla::Runnable("nsFileCopyEvent") + , mDest(dest) , mSource(source) , mLen(len) , mStatus(NS_OK) - , mInterruptStatus(NS_OK) { + , mInterruptStatus(NS_OK) + { } // Read the current status of the file copy operation. @@ -233,7 +235,9 @@ nsFileUploadContentStream::AsyncWait(nsIInputStreamCallback *callback, if (IsNonBlocking()) { nsCOMPtr callback = - NewRunnableMethod(this, &nsFileUploadContentStream::OnCopyComplete); + NewRunnableMethod("nsFileUploadContentStream::OnCopyComplete", + this, + &nsFileUploadContentStream::OnCopyComplete); mCopyEvent->Dispatch(callback, mSink, target); } diff --git a/netwerk/protocol/ftp/FTPChannelParent.cpp b/netwerk/protocol/ftp/FTPChannelParent.cpp index cf3577bb1501..1e89f16cd289 100644 --- a/netwerk/protocol/ftp/FTPChannelParent.cpp +++ b/netwerk/protocol/ftp/FTPChannelParent.cpp @@ -755,7 +755,9 @@ FTPChannelParent::DivertTo(nsIStreamListener *aListener) // Call OnStartRequest and SendDivertMessages asynchronously to avoid // reentering client context. NS_DispatchToCurrentThread( - NewRunnableMethod(this, &FTPChannelParent::StartDiversion)); + NewRunnableMethod("net::FTPChannelParent::StartDiversion", + this, + &FTPChannelParent::StartDiversion)); return; } @@ -800,10 +802,11 @@ FTPChannelParent::StartDiversion() class FTPFailDiversionEvent : public Runnable { public: - FTPFailDiversionEvent(FTPChannelParent *aChannelParent, + FTPFailDiversionEvent(FTPChannelParent* aChannelParent, nsresult aErrorCode, bool aSkipResume) - : mChannelParent(aChannelParent) + : Runnable("net::FTPFailDiversionEvent") + , mChannelParent(aChannelParent) , mErrorCode(aErrorCode) , mSkipResume(aSkipResume) { diff --git a/netwerk/protocol/ftp/nsFTPChannel.cpp b/netwerk/protocol/ftp/nsFTPChannel.cpp index b6c43f79af31..06bb3b567bd1 100644 --- a/netwerk/protocol/ftp/nsFTPChannel.cpp +++ b/netwerk/protocol/ftp/nsFTPChannel.cpp @@ -148,15 +148,17 @@ public: class OnFTPControlLogRunnable : public Runnable { public: - OnFTPControlLogRunnable(nsIFTPEventSink* aTarget, - bool aServer, - const char* aMessage) - : mTarget(aTarget) - , mServer(aServer) - , mMessage(aMessage) - { } + OnFTPControlLogRunnable(nsIFTPEventSink* aTarget, + bool aServer, + const char* aMessage) + : mozilla::Runnable("FTPEventSinkProxy::OnFTPControlLogRunnable") + , mTarget(aTarget) + , mServer(aServer) + , mMessage(aMessage) + { + } - NS_DECL_NSIRUNNABLE + NS_DECL_NSIRUNNABLE private: nsCOMPtr mTarget; diff --git a/netwerk/protocol/ftp/nsFtpConnectionThread.cpp b/netwerk/protocol/ftp/nsFtpConnectionThread.cpp index ae3354881f62..79cde813624b 100644 --- a/netwerk/protocol/ftp/nsFtpConnectionThread.cpp +++ b/netwerk/protocol/ftp/nsFtpConnectionThread.cpp @@ -1779,10 +1779,11 @@ nsFtpState::KillControlConnection() class nsFtpAsyncAlert : public Runnable { public: - nsFtpAsyncAlert(nsIPrompt *aPrompter, nsString aResponseMsg) - : mPrompter(aPrompter) - , mResponseMsg(aResponseMsg) - { + nsFtpAsyncAlert(nsIPrompt* aPrompter, nsString aResponseMsg) + : mozilla::Runnable("nsFtpAsyncAlert") + , mPrompter(aPrompter) + , mResponseMsg(aResponseMsg) + { } protected: virtual ~nsFtpAsyncAlert() diff --git a/netwerk/protocol/ftp/nsFtpProtocolHandler.cpp b/netwerk/protocol/ftp/nsFtpProtocolHandler.cpp index 2724e397bd1d..1e3831be22d2 100644 --- a/netwerk/protocol/ftp/nsFtpProtocolHandler.cpp +++ b/netwerk/protocol/ftp/nsFtpProtocolHandler.cpp @@ -331,10 +331,12 @@ nsFtpProtocolHandler::InsertConnection(nsIURI *aKey, nsFtpControlConnection *aCo if (!ts) return NS_ERROR_OUT_OF_MEMORY; - rv = timer->InitWithFuncCallback(nsFtpProtocolHandler::Timeout, - ts, - mIdleTimeout*1000, - nsITimer::TYPE_REPEATING_SLACK); + rv = timer->InitWithNamedFuncCallback( + nsFtpProtocolHandler::Timeout, + ts, + mIdleTimeout * 1000, + nsITimer::TYPE_REPEATING_SLACK, + "nsFtpProtocolHandler::InsertConnection"); if (NS_FAILED(rv)) { delete ts; return rv; diff --git a/netwerk/protocol/gio/nsGIOProtocolHandler.cpp b/netwerk/protocol/gio/nsGIOProtocolHandler.cpp index d94fda4ca643..a1fce01b6bc5 100644 --- a/netwerk/protocol/gio/nsGIOProtocolHandler.cpp +++ b/netwerk/protocol/gio/nsGIOProtocolHandler.cpp @@ -543,8 +543,10 @@ nsGIOInputStream::DoRead(char *aBuf, uint32_t aCount, uint32_t *aCountRead) class nsGIOSetContentTypeEvent : public mozilla::Runnable { public: - nsGIOSetContentTypeEvent(nsIChannel *channel, const char *contentType) - : mChannel(channel), mContentType(contentType) + nsGIOSetContentTypeEvent(nsIChannel* channel, const char* contentType) + : mozilla::Runnable("nsGIOSetContentTypeEvent") + , mChannel(channel) + , mContentType(contentType) { // stash channel reference in mChannel. no AddRef here! see note // in SetContentTypeOfchannel. diff --git a/netwerk/protocol/http/AlternateServices.cpp b/netwerk/protocol/http/AlternateServices.cpp index 46accd423741..5c01969c3c34 100644 --- a/netwerk/protocol/http/AlternateServices.cpp +++ b/netwerk/protocol/http/AlternateServices.cpp @@ -270,7 +270,8 @@ AltSvcMapping::Sync() if (!NS_IsMainThread()) { nsCOMPtr r; - r = NewRunnableMethod(this, + r = NewRunnableMethod("net::AltSvcMapping::SyncString", + this, &AltSvcMapping::SyncString, value); NS_DispatchToMainThread(r, NS_DISPATCH_NORMAL); @@ -984,18 +985,21 @@ AltSvcCache::GetAltServiceMapping(const nsACString &scheme, const nsACString &ho class ProxyClearHostMapping : public Runnable { public: - explicit ProxyClearHostMapping(const nsACString &host, int32_t port, - const OriginAttributes &originAttributes) - : mHost(host) + explicit ProxyClearHostMapping(const nsACString& host, + int32_t port, + const OriginAttributes& originAttributes) + : Runnable("net::ProxyClearHostMapping") + , mHost(host) , mPort(port) , mOriginAttributes(originAttributes) - {} + { + } - NS_IMETHOD Run() override - { - MOZ_ASSERT(NS_IsMainThread()); - gHttpHandler->ConnMgr()->ClearHostMapping(mHost, mPort, mOriginAttributes); - return NS_OK; + NS_IMETHOD Run() override + { + MOZ_ASSERT(NS_IsMainThread()); + gHttpHandler->ConnMgr()->ClearHostMapping(mHost, mPort, mOriginAttributes); + return NS_OK; } private: nsCString mHost; diff --git a/netwerk/protocol/http/Http2Push.cpp b/netwerk/protocol/http/Http2Push.cpp index 2b1356ba8bb8..34adc008ff6c 100644 --- a/netwerk/protocol/http/Http2Push.cpp +++ b/netwerk/protocol/http/Http2Push.cpp @@ -25,13 +25,14 @@ namespace net { class CallChannelOnPush final : public Runnable { public: - CallChannelOnPush(nsIHttpChannelInternal *associatedChannel, - const nsACString &pushedURI, - Http2PushedStream *pushStream) - : mAssociatedChannel(associatedChannel) - , mPushedURI(pushedURI) - , mPushedStream(pushStream) - { + CallChannelOnPush(nsIHttpChannelInternal* associatedChannel, + const nsACString& pushedURI, + Http2PushedStream* pushStream) + : Runnable("net::CallChannelOnPush") + , mAssociatedChannel(associatedChannel) + , mPushedURI(pushedURI) + , mPushedStream(pushStream) + { } NS_IMETHOD Run() override diff --git a/netwerk/protocol/http/Http2Session.cpp b/netwerk/protocol/http/Http2Session.cpp index 9ae4c31e3c23..2ee3a577a27b 100644 --- a/netwerk/protocol/http/Http2Session.cpp +++ b/netwerk/protocol/http/Http2Session.cpp @@ -2107,11 +2107,12 @@ Http2Session::RecvContinuation(Http2Session *self) class UpdateAltSvcEvent : public Runnable { public: -UpdateAltSvcEvent(const nsCString &header, - const nsCString &aOrigin, - nsHttpConnectionInfo *aCI, - nsIInterfaceRequestor *callbacks) - : mHeader(header) + UpdateAltSvcEvent(const nsCString& header, + const nsCString& aOrigin, + nsHttpConnectionInfo* aCI, + nsIInterfaceRequestor* callbacks) + : Runnable("net::UpdateAltSvcEvent") + , mHeader(header) , mOrigin(aOrigin) , mCI(aCI) , mCallbacks(callbacks) diff --git a/netwerk/protocol/http/HttpBackgroundChannelChild.cpp b/netwerk/protocol/http/HttpBackgroundChannelChild.cpp index 5adc316df39a..82b172870f85 100644 --- a/netwerk/protocol/http/HttpBackgroundChannelChild.cpp +++ b/netwerk/protocol/http/HttpBackgroundChannelChild.cpp @@ -205,12 +205,19 @@ HttpBackgroundChannelChild::RecvOnTransportAndData( LOG((" > pending until OnStartRequest [offset=%" PRIu64 " count=%" PRIu32 "]\n", aOffset, aCount)); - mQueuedRunnables.AppendElement( - NewRunnableMethod( - this, &HttpBackgroundChannelChild::RecvOnTransportAndData, - aChannelStatus, aTransportStatus, aOffset, - aCount, aData)); + mQueuedRunnables.AppendElement(NewRunnableMethod( + "net::HttpBackgroundChannelChild::RecvOnTransportAndData", + this, + &HttpBackgroundChannelChild::RecvOnTransportAndData, + aChannelStatus, + aTransportStatus, + aOffset, + aCount, + aData)); return IPC_OK(); } @@ -242,8 +249,11 @@ HttpBackgroundChannelChild::RecvOnStopRequest( mQueuedRunnables.AppendElement( NewRunnableMethod( - this, &HttpBackgroundChannelChild::RecvOnStopRequest, - aChannelStatus, aTiming)); + "net::HttpBackgroundChannelChild::RecvOnStopRequest", + this, + &HttpBackgroundChannelChild::RecvOnStopRequest, + aChannelStatus, + aTiming)); return IPC_OK(); } @@ -271,8 +281,11 @@ HttpBackgroundChannelChild::RecvOnProgress(const int64_t& aProgress, mQueuedRunnables.AppendElement( NewRunnableMethod( - this, &HttpBackgroundChannelChild::RecvOnProgress, - aProgress, aProgressMax)); + "net::HttpBackgroundChannelChild::RecvOnProgress", + this, + &HttpBackgroundChannelChild::RecvOnProgress, + aProgress, + aProgressMax)); return IPC_OK(); } @@ -297,9 +310,11 @@ HttpBackgroundChannelChild::RecvOnStatus(const nsresult& aStatus) LOG((" > pending until OnStartRequest [status=%" PRIx32 "]\n", static_cast(aStatus))); - mQueuedRunnables.AppendElement( - NewRunnableMethod( - this, &HttpBackgroundChannelChild::RecvOnStatus, aStatus)); + mQueuedRunnables.AppendElement(NewRunnableMethod( + "net::HttpBackgroundChannelChild::RecvOnStatus", + this, + &HttpBackgroundChannelChild::RecvOnStatus, + aStatus)); return IPC_OK(); } @@ -322,8 +337,10 @@ HttpBackgroundChannelChild::RecvFlushedForDiversion() if (IsWaitingOnStartRequest()) { LOG((" > pending until OnStartRequest\n")); - mQueuedRunnables.AppendElement( - NewRunnableMethod(this, &HttpBackgroundChannelChild::RecvFlushedForDiversion)); + mQueuedRunnables.AppendElement(NewRunnableMethod( + "net::HttpBackgroundChannelChild::RecvFlushedForDiversion", + this, + &HttpBackgroundChannelChild::RecvFlushedForDiversion)); return IPC_OK(); } @@ -347,7 +364,9 @@ HttpBackgroundChannelChild::RecvDivertMessages() LOG((" > pending until OnStartRequest\n")); mQueuedRunnables.AppendElement( - NewRunnableMethod(this, &HttpBackgroundChannelChild::RecvDivertMessages)); + NewRunnableMethod("net::HttpBackgroundChannelChild::RecvDivertMessages", + this, + &HttpBackgroundChannelChild::RecvDivertMessages)); return IPC_OK(); } @@ -420,8 +439,8 @@ HttpBackgroundChannelChild::ActorDestroy(ActorDestroyReason aWhy) if (!mQueuedRunnables.IsEmpty()) { LOG((" > pending until queued messages are flushed\n")); RefPtr self = this; - mQueuedRunnables.AppendElement( - NS_NewRunnableFunction([self]() { + mQueuedRunnables.AppendElement(NS_NewRunnableFunction( + "net::HttpBackgroundChannelChild::ActorDestroy", [self]() { MOZ_ASSERT(NS_IsMainThread()); RefPtr channelChild = self->mChannelChild.forget(); diff --git a/netwerk/protocol/http/HttpBackgroundChannelParent.cpp b/netwerk/protocol/http/HttpBackgroundChannelParent.cpp index 83167245e0c4..3dc3395f71e3 100644 --- a/netwerk/protocol/http/HttpBackgroundChannelParent.cpp +++ b/netwerk/protocol/http/HttpBackgroundChannelParent.cpp @@ -37,7 +37,8 @@ class ContinueAsyncOpenRunnable final : public Runnable public: ContinueAsyncOpenRunnable(HttpBackgroundChannelParent* aActor, const uint64_t& aChannelId) - : mActor(aActor) + : Runnable("net::ContinueAsyncOpenRunnable") + , mActor(aActor) , mChannelId(aChannelId) { AssertIsInMainProcess(); @@ -122,16 +123,21 @@ HttpBackgroundChannelParent::OnChannelClosed() nsresult rv; RefPtr self = this; - rv = mBackgroundThread->Dispatch(NS_NewRunnableFunction([self]() { - LOG(("HttpBackgroundChannelParent::DeleteRunnable [this=%p]\n", self.get())); - AssertIsOnBackgroundThread(); + rv = mBackgroundThread->Dispatch( + NS_NewRunnableFunction( + "net::HttpBackgroundChannelParent::OnChannelClosed", + [self]() { + LOG(("HttpBackgroundChannelParent::DeleteRunnable [this=%p]\n", + self.get())); + AssertIsOnBackgroundThread(); - if (!self->mIPCOpened.compareExchange(true, false)) { - return; - } + if (!self->mIPCOpened.compareExchange(true, false)) { + return; + } - Unused << self->Send__delete__(self); - }), NS_DISPATCH_NORMAL); + Unused << self->Send__delete__(self); + }), + NS_DISPATCH_NORMAL); Unused << NS_WARN_IF(NS_FAILED(rv)); } @@ -148,7 +154,9 @@ HttpBackgroundChannelParent::OnStartRequestSent() if (!IsOnBackgroundThread()) { nsresult rv = mBackgroundThread->Dispatch( - NewRunnableMethod(this, &HttpBackgroundChannelParent::OnStartRequestSent), + NewRunnableMethod("net::HttpBackgroundChannelParent::OnStartRequestSent", + this, + &HttpBackgroundChannelParent::OnStartRequestSent), NS_DISPATCH_NORMAL); MOZ_DIAGNOSTIC_ASSERT(NS_SUCCEEDED(rv)); @@ -176,10 +184,19 @@ HttpBackgroundChannelParent::OnTransportAndData( if (!IsOnBackgroundThread()) { nsresult rv = mBackgroundThread->Dispatch( - NewRunnableMethod - (this, &HttpBackgroundChannelParent::OnTransportAndData, - aChannelStatus, aTransportStatus, aOffset, aCount, aData), + NewRunnableMethod( + "net::HttpBackgroundChannelParent::OnTransportAndData", + this, + &HttpBackgroundChannelParent::OnTransportAndData, + aChannelStatus, + aTransportStatus, + aOffset, + aCount, + aData), NS_DISPATCH_NORMAL); MOZ_DIAGNOSTIC_ASSERT(NS_SUCCEEDED(rv)); @@ -205,9 +222,12 @@ HttpBackgroundChannelParent::OnStopRequest(const nsresult& aChannelStatus, if (!IsOnBackgroundThread()) { nsresult rv = mBackgroundThread->Dispatch( - NewRunnableMethod - (this, &HttpBackgroundChannelParent::OnStopRequest, - aChannelStatus, aTiming), + NewRunnableMethod( + "net::HttpBackgroundChannelParent::OnStopRequest", + this, + &HttpBackgroundChannelParent::OnStopRequest, + aChannelStatus, + aTiming), NS_DISPATCH_NORMAL); MOZ_DIAGNOSTIC_ASSERT(NS_SUCCEEDED(rv)); @@ -232,9 +252,12 @@ HttpBackgroundChannelParent::OnProgress(const int64_t& aProgress, if (!IsOnBackgroundThread()) { nsresult rv = mBackgroundThread->Dispatch( - NewRunnableMethod - (this, &HttpBackgroundChannelParent::OnProgress, - aProgress, aProgressMax), + NewRunnableMethod( + "net::HttpBackgroundChannelParent::OnProgress", + this, + &HttpBackgroundChannelParent::OnProgress, + aProgress, + aProgressMax), NS_DISPATCH_NORMAL); MOZ_DIAGNOSTIC_ASSERT(NS_SUCCEEDED(rv)); @@ -258,8 +281,11 @@ HttpBackgroundChannelParent::OnStatus(const nsresult& aStatus) if (!IsOnBackgroundThread()) { nsresult rv = mBackgroundThread->Dispatch( - NewRunnableMethod - (this, &HttpBackgroundChannelParent::OnStatus, aStatus), + NewRunnableMethod( + "net::HttpBackgroundChannelParent::OnStatus", + this, + &HttpBackgroundChannelParent::OnStatus, + aStatus), NS_DISPATCH_NORMAL); MOZ_DIAGNOSTIC_ASSERT(NS_SUCCEEDED(rv)); @@ -282,7 +308,9 @@ HttpBackgroundChannelParent::OnDiversion() if (!IsOnBackgroundThread()) { nsresult rv = mBackgroundThread->Dispatch( - NewRunnableMethod(this, &HttpBackgroundChannelParent::OnDiversion), + NewRunnableMethod("net::HttpBackgroundChannelParent::OnDiversion", + this, + &HttpBackgroundChannelParent::OnDiversion), NS_DISPATCH_NORMAL); MOZ_DIAGNOSTIC_ASSERT(NS_SUCCEEDED(rv)); @@ -315,7 +343,10 @@ HttpBackgroundChannelParent::OnNotifyTrackingProtectionDisabled() if (!IsOnBackgroundThread()) { nsresult rv = mBackgroundThread->Dispatch( - NewRunnableMethod(this, &HttpBackgroundChannelParent::OnNotifyTrackingProtectionDisabled), + NewRunnableMethod( + "net::HttpBackgroundChannelParent::OnNotifyTrackingProtectionDisabled", + this, + &HttpBackgroundChannelParent::OnNotifyTrackingProtectionDisabled), NS_DISPATCH_NORMAL); MOZ_DIAGNOSTIC_ASSERT(NS_SUCCEEDED(rv)); @@ -338,7 +369,10 @@ HttpBackgroundChannelParent::OnNotifyTrackingResource() if (!IsOnBackgroundThread()) { nsresult rv = mBackgroundThread->Dispatch( - NewRunnableMethod(this, &HttpBackgroundChannelParent::OnNotifyTrackingResource), + NewRunnableMethod( + "net::HttpBackgroundChannelParent::OnNotifyTrackingResource", + this, + &HttpBackgroundChannelParent::OnNotifyTrackingResource), NS_DISPATCH_NORMAL); MOZ_DIAGNOSTIC_ASSERT(NS_SUCCEEDED(rv)); @@ -364,9 +398,13 @@ HttpBackgroundChannelParent::OnSetClassifierMatchedInfo( if (!IsOnBackgroundThread()) { nsresult rv = mBackgroundThread->Dispatch( - NewRunnableMethod - (this, &HttpBackgroundChannelParent::OnSetClassifierMatchedInfo, - aList, aProvider, aPrefix), + NewRunnableMethod( + "net::HttpBackgroundChannelParent::OnSetClassifierMatchedInfo", + this, + &HttpBackgroundChannelParent::OnSetClassifierMatchedInfo, + aList, + aProvider, + aPrefix), NS_DISPATCH_NORMAL); MOZ_DIAGNOSTIC_ASSERT(NS_SUCCEEDED(rv)); @@ -392,8 +430,8 @@ HttpBackgroundChannelParent::ActorDestroy(ActorDestroyReason aWhy) mIPCOpened = false; RefPtr self = this; - DebugOnly rv = - NS_DispatchToMainThread(NS_NewRunnableFunction([self]() { + DebugOnly rv = NS_DispatchToMainThread(NS_NewRunnableFunction( + "net::HttpBackgroundChannelParent::ActorDestroy", [self]() { MOZ_ASSERT(NS_IsMainThread()); RefPtr channelParent = diff --git a/netwerk/protocol/http/HttpBaseChannel.cpp b/netwerk/protocol/http/HttpBaseChannel.cpp index 746732acae24..cf4978453981 100644 --- a/netwerk/protocol/http/HttpBaseChannel.cpp +++ b/netwerk/protocol/http/HttpBaseChannel.cpp @@ -916,7 +916,10 @@ HttpBaseChannel::OnCopyComplete(nsresult aStatus) MOZ_ASSERT(XRE_IsParentProcess()); nsCOMPtr runnable = NewRunnableMethod( - this, &HttpBaseChannel::EnsureUploadStreamIsCloneableComplete, aStatus); + "net::HttpBaseChannel::EnsureUploadStreamIsCloneableComplete", + this, + &HttpBaseChannel::EnsureUploadStreamIsCloneableComplete, + aStatus); NS_DispatchToMainThread(runnable.forget()); } diff --git a/netwerk/protocol/http/HttpBaseChannel.h b/netwerk/protocol/http/HttpBaseChannel.h index 1241a606e625..3bb119cc7b93 100644 --- a/netwerk/protocol/http/HttpBaseChannel.h +++ b/netwerk/protocol/http/HttpBaseChannel.h @@ -724,7 +724,8 @@ nsresult HttpAsyncAborter::AsyncCall(void (T::*funcPtr)(), { nsresult rv; - RefPtr> event = NewRunnableMethod(mThis, funcPtr); + RefPtr> event = + NewRunnableMethod("net::HttpAsyncAborter::AsyncCall", mThis, funcPtr); rv = NS_DispatchToCurrentThread(event); if (NS_SUCCEEDED(rv) && retval) { *retval = event; diff --git a/netwerk/protocol/http/HttpChannelChild.cpp b/netwerk/protocol/http/HttpChannelChild.cpp index 701984dc3f30..eabe4bf755b7 100644 --- a/netwerk/protocol/http/HttpChannelChild.cpp +++ b/netwerk/protocol/http/HttpChannelChild.cpp @@ -789,12 +789,13 @@ HttpChannelChild::OnTransportAndData(const nsresult& channelStatus, nsCOMPtr neckoTarget = GetNeckoTarget(); MOZ_ASSERT(neckoTarget); - DebugOnly rv = - neckoTarget->Dispatch( - NS_NewRunnableFunction([self, transportStatus, progress, progressMax]() { - self->DoOnStatus(self, transportStatus); - self->DoOnProgress(self, progress, progressMax); - }), NS_DISPATCH_NORMAL); + DebugOnly rv = neckoTarget->Dispatch( + NS_NewRunnableFunction("net::HttpChannelChild::OnTransportAndData", + [self, transportStatus, progress, progressMax]() { + self->DoOnStatus(self, transportStatus); + self->DoOnProgress(self, progress, progressMax); + }), + NS_DISPATCH_NORMAL); MOZ_ASSERT(NS_SUCCEEDED(rv)); } @@ -987,7 +988,9 @@ HttpChannelChild::OnStopRequest(const nsresult& channelStatus, MOZ_ASSERT(neckoTarget); DebugOnly rv = neckoTarget->Dispatch( - NewRunnableMethod(mEventQ, &ChannelEventQueue::Resume), NS_DISPATCH_NORMAL); + NewRunnableMethod( + "net::ChannelEventQueue::Resume", mEventQ, &ChannelEventQueue::Resume), + NS_DISPATCH_NORMAL); MOZ_ASSERT(NS_SUCCEEDED(rv)); return; } @@ -1301,7 +1304,9 @@ HttpChannelChild::CleanupBackgroundChannel() SystemGroup::Dispatch( "HttpChannelChild::CleanupBackgroundChannel", TaskCategory::Other, - NewRunnableMethod(bgChild, &HttpBackgroundChannelChild::OnChannelClosed)); + NewRunnableMethod("net::HttpBackgroundChannelChild::OnChannelClosed", + bgChild, + &HttpBackgroundChannelChild::OnChannelClosed)); } else { bgChild->OnChannelClosed(); } @@ -1334,11 +1339,13 @@ HttpChannelChild::RecvDeleteSelf() return IPC_OK(); } -HttpChannelChild::OverrideRunnable::OverrideRunnable(HttpChannelChild* aChannel, - HttpChannelChild* aNewChannel, - InterceptStreamListener* aListener, - nsIInputStream* aInput, - nsAutoPtr& aHead) +HttpChannelChild::OverrideRunnable::OverrideRunnable( + HttpChannelChild* aChannel, + HttpChannelChild* aNewChannel, + InterceptStreamListener* aListener, + nsIInputStream* aInput, + nsAutoPtr& aHead) + : Runnable("net::HttpChannelChild::OverrideRunnable") { mChannel = aChannel; mNewChannel = aNewChannel; @@ -1391,9 +1398,11 @@ HttpChannelChild::RecvFinishInterceptedRedirect() nsCOMPtr neckoTarget = GetNeckoTarget(); MOZ_ASSERT(neckoTarget); - Unused << neckoTarget->Dispatch( - NewRunnableMethod(this, &HttpChannelChild::FinishInterceptedRedirect), - NS_DISPATCH_NORMAL); + Unused << neckoTarget->Dispatch( + NewRunnableMethod("net::HttpChannelChild::FinishInterceptedRedirect", + this, + &HttpChannelChild::FinishInterceptedRedirect), + NS_DISPATCH_NORMAL); return IPC_OK(); } @@ -3223,10 +3232,11 @@ HttpChannelChild::TrySendDeletingChannel() nsCOMPtr neckoTarget = GetNeckoTarget(); MOZ_ASSERT(neckoTarget); - DebugOnly rv = - neckoTarget->Dispatch( - NewNonOwningRunnableMethod(this, &HttpChannelChild::TrySendDeletingChannel), - NS_DISPATCH_NORMAL); + DebugOnly rv = neckoTarget->Dispatch( + NewNonOwningRunnableMethod("net::HttpChannelChild::TrySendDeletingChannel", + this, + &HttpChannelChild::TrySendDeletingChannel), + NS_DISPATCH_NORMAL); MOZ_ASSERT(NS_SUCCEEDED(rv)); } @@ -3234,7 +3244,10 @@ void HttpChannelChild::OnCopyComplete(nsresult aStatus) { nsCOMPtr runnable = NewRunnableMethod( - this, &HttpChannelChild::EnsureUploadStreamIsCloneableComplete, aStatus); + "net::HttpBaseChannel::EnsureUploadStreamIsCloneableComplete", + this, + &HttpChannelChild::EnsureUploadStreamIsCloneableComplete, + aStatus); nsCOMPtr neckoTarget = GetNeckoTarget(); MOZ_ASSERT(neckoTarget); @@ -3248,7 +3261,7 @@ HttpChannelChild::AsyncCall(void (HttpChannelChild::*funcPtr)(), nsresult rv; RefPtr> event = - NewRunnableMethod(this, funcPtr); + NewRunnableMethod("net::HttpChannelChild::AsyncCall", this, funcPtr); nsCOMPtr neckoTarget = GetNeckoTarget(); MOZ_ASSERT(neckoTarget); diff --git a/netwerk/protocol/http/HttpChannelParent.cpp b/netwerk/protocol/http/HttpChannelParent.cpp index c12e71ed047e..84858280455d 100644 --- a/netwerk/protocol/http/HttpChannelParent.cpp +++ b/netwerk/protocol/http/HttpChannelParent.cpp @@ -392,8 +392,9 @@ class InvokeAsyncOpen : public Runnable public: InvokeAsyncOpen(const nsMainThreadPtrHandle& aChannel, nsresult aStatus) - : mChannel(aChannel) - , mStatus(aStatus) + : Runnable("net::InvokeAsyncOpen") + , mChannel(aChannel) + , mStatus(aStatus) { } @@ -1964,7 +1965,9 @@ HttpChannelParent::DivertTo(nsIStreamListener *aListener) // Call OnStartRequest and SendDivertMessages asynchronously to avoid // reentering client context. NS_DispatchToCurrentThread( - NewRunnableMethod(this, &HttpChannelParent::StartDiversion)); + NewRunnableMethod("net::HttpChannelParent::StartDiversion", + this, + &HttpChannelParent::StartDiversion)); return; } @@ -2028,7 +2031,8 @@ class HTTPFailDiversionEvent : public Runnable public: HTTPFailDiversionEvent(HttpChannelParent *aChannelParent, nsresult aErrorCode) - : mChannelParent(aChannelParent) + : Runnable("net::HTTPFailDiversionEvent") + , mChannelParent(aChannelParent) , mErrorCode(aErrorCode) { MOZ_RELEASE_ASSERT(aChannelParent); diff --git a/netwerk/protocol/http/HttpChannelParentListener.cpp b/netwerk/protocol/http/HttpChannelParentListener.cpp index e5170e38cb8c..a10dd94f7bfd 100644 --- a/netwerk/protocol/http/HttpChannelParentListener.cpp +++ b/netwerk/protocol/http/HttpChannelParentListener.cpp @@ -305,7 +305,8 @@ class FinishSynthesizedResponse : public Runnable nsCOMPtr mChannel; public: explicit FinishSynthesizedResponse(nsIInterceptedChannel* aChannel) - : mChannel(aChannel) + : Runnable("net::FinishSynthesizedResponse") + , mChannel(aChannel) { } diff --git a/netwerk/protocol/http/nsHttpActivityDistributor.cpp b/netwerk/protocol/http/nsHttpActivityDistributor.cpp index 42388f3a27a2..f0db7eb48604 100644 --- a/netwerk/protocol/http/nsHttpActivityDistributor.cpp +++ b/netwerk/protocol/http/nsHttpActivityDistributor.cpp @@ -20,21 +20,22 @@ typedef nsTArray ObserverArray; class nsHttpActivityEvent : public Runnable { public: - nsHttpActivityEvent(nsISupports *aHttpChannel, - uint32_t aActivityType, - uint32_t aActivitySubtype, - PRTime aTimestamp, - uint64_t aExtraSizeData, - const nsACString & aExtraStringData, - ObserverArray *aObservers) - : mHttpChannel(aHttpChannel) - , mActivityType(aActivityType) - , mActivitySubtype(aActivitySubtype) - , mTimestamp(aTimestamp) - , mExtraSizeData(aExtraSizeData) - , mExtraStringData(aExtraStringData) - , mObservers(*aObservers) - { + nsHttpActivityEvent(nsISupports* aHttpChannel, + uint32_t aActivityType, + uint32_t aActivitySubtype, + PRTime aTimestamp, + uint64_t aExtraSizeData, + const nsACString& aExtraStringData, + ObserverArray* aObservers) + : Runnable("net::nsHttpActivityEvent") + , mHttpChannel(aHttpChannel) + , mActivityType(aActivityType) + , mActivitySubtype(aActivitySubtype) + , mTimestamp(aTimestamp) + , mExtraSizeData(aExtraSizeData) + , mExtraStringData(aExtraStringData) + , mObservers(*aObservers) + { } NS_IMETHOD Run() override diff --git a/netwerk/protocol/http/nsHttpChannel.cpp b/netwerk/protocol/http/nsHttpChannel.cpp index beb3ea69c7c3..7c3ece456562 100644 --- a/netwerk/protocol/http/nsHttpChannel.cpp +++ b/netwerk/protocol/http/nsHttpChannel.cpp @@ -7449,16 +7449,17 @@ nsHttpChannel::OnStopRequest(nsIRequest *request, nsISupports *ctxt, nsresult st class OnTransportStatusAsyncEvent : public Runnable { public: - OnTransportStatusAsyncEvent(nsITransportEventSink* aEventSink, - nsresult aTransportStatus, - int64_t aProgress, - int64_t aProgressMax) - : mEventSink(aEventSink) + OnTransportStatusAsyncEvent(nsITransportEventSink* aEventSink, + nsresult aTransportStatus, + int64_t aProgress, + int64_t aProgressMax) + : Runnable("net::OnTransportStatusAsyncEvent") + , mEventSink(aEventSink) , mTransportStatus(aTransportStatus) , mProgress(aProgress) , mProgressMax(aProgressMax) - { - MOZ_ASSERT(!NS_IsMainThread(), "Shouldn't be created on main thread"); + { + MOZ_ASSERT(!NS_IsMainThread(), "Shouldn't be created on main thread"); } NS_IMETHOD Run() override diff --git a/netwerk/protocol/http/nsHttpConnection.cpp b/netwerk/protocol/http/nsHttpConnection.cpp index e77fcd612167..10d34f64edb3 100644 --- a/netwerk/protocol/http/nsHttpConnection.cpp +++ b/netwerk/protocol/http/nsHttpConnection.cpp @@ -1390,40 +1390,43 @@ nsHttpConnection::PushBack(const char *data, uint32_t length) class HttpConnectionForceIO : public Runnable { public: - HttpConnectionForceIO(nsHttpConnection *aConn, bool doRecv, + HttpConnectionForceIO(nsHttpConnection* aConn, + bool doRecv, bool isFastOpenForce) - : mConn(aConn) - , mDoRecv(doRecv) - , mIsFastOpenForce(isFastOpenForce) - {} + : Runnable("net::HttpConnectionForceIO") + , mConn(aConn) + , mDoRecv(doRecv) + , mIsFastOpenForce(isFastOpenForce) + { + } - NS_IMETHOD Run() override - { - MOZ_ASSERT(OnSocketThread(), "not on socket thread"); + NS_IMETHOD Run() override + { + MOZ_ASSERT(OnSocketThread(), "not on socket thread"); - if (mDoRecv) { - if (!mConn->mSocketIn) - return NS_OK; - return mConn->OnInputStreamReady(mConn->mSocketIn); - } + if (mDoRecv) { + if (!mConn->mSocketIn) + return NS_OK; + return mConn->OnInputStreamReady(mConn->mSocketIn); + } - // This runnable will be called when the ForceIO timer expires - // (mIsFastOpenForce==false) or during the TCP Fast Open to force - // writes (mIsFastOpenForce==true). - if (mIsFastOpenForce && !mConn->mWaitingFor0RTTResponse) { - // If we have exit the TCP Fast Open in the meantime we can skip - // this. - return NS_OK; - } - if (!mIsFastOpenForce) { - MOZ_ASSERT(mConn->mForceSendPending); - mConn->mForceSendPending = false; - } + // This runnable will be called when the ForceIO timer expires + // (mIsFastOpenForce==false) or during the TCP Fast Open to force + // writes (mIsFastOpenForce==true). + if (mIsFastOpenForce && !mConn->mWaitingFor0RTTResponse) { + // If we have exit the TCP Fast Open in the meantime we can skip + // this. + return NS_OK; + } + if (!mIsFastOpenForce) { + MOZ_ASSERT(mConn->mForceSendPending); + mConn->mForceSendPending = false; + } - if (!mConn->mSocketOut) { - return NS_OK; - } - return mConn->OnOutputStreamReady(mConn->mSocketOut); + if (!mConn->mSocketOut) { + return NS_OK; + } + return mConn->OnOutputStreamReady(mConn->mSocketOut); } private: RefPtr mConn; @@ -1515,8 +1518,12 @@ nsHttpConnection::MaybeForceSendIO() MOZ_ASSERT(!mForceSendTimer); mForceSendPending = true; mForceSendTimer = do_CreateInstance("@mozilla.org/timer;1"); - return mForceSendTimer->InitWithFuncCallback( - nsHttpConnection::ForceSendIO, this, kForceDelay, nsITimer::TYPE_ONE_SHOT); + return mForceSendTimer->InitWithNamedFuncCallback( + nsHttpConnection::ForceSendIO, + this, + kForceDelay, + nsITimer::TYPE_ONE_SHOT, + "net::nsHttpConnection::MaybeForceSendIO"); } // trigger an asynchronous read @@ -2070,11 +2077,12 @@ nsHttpConnection::StartShortLivedTCPKeepalives() // Add time for final keepalive probes, and 2 seconds for a buffer. time += ((probeCount) * retryIntervalS) - (time % idleTimeS) + 2; } - mTCPKeepaliveTransitionTimer->InitWithFuncCallback( - nsHttpConnection::UpdateTCPKeepalive, - this, - (uint32_t)time*1000, - nsITimer::TYPE_ONE_SHOT); + mTCPKeepaliveTransitionTimer->InitWithNamedFuncCallback( + nsHttpConnection::UpdateTCPKeepalive, + this, + (uint32_t)time * 1000, + nsITimer::TYPE_ONE_SHOT, + "net::nsHttpConnection::StartShortLivedTCPKeepalives"); } else { NS_WARNING("nsHttpConnection::StartShortLivedTCPKeepalives failed to " "create timer."); diff --git a/netwerk/protocol/http/nsHttpConnectionMgr.cpp b/netwerk/protocol/http/nsHttpConnectionMgr.cpp index 2baf816d0cf3..8076cf8f2914 100644 --- a/netwerk/protocol/http/nsHttpConnectionMgr.cpp +++ b/netwerk/protocol/http/nsHttpConnectionMgr.cpp @@ -250,17 +250,22 @@ nsHttpConnectionMgr::Shutdown() class ConnEvent : public Runnable { public: - ConnEvent(nsHttpConnectionMgr *mgr, - nsConnEventHandler handler, int32_t iparam, ARefBase *vparam) - : mMgr(mgr) - , mHandler(handler) - , mIParam(iparam) - , mVParam(vparam) {} + ConnEvent(nsHttpConnectionMgr* mgr, + nsConnEventHandler handler, + int32_t iparam, + ARefBase* vparam) + : Runnable("net::ConnEvent") + , mMgr(mgr) + , mHandler(handler) + , mIParam(iparam) + , mVParam(vparam) + { + } - NS_IMETHOD Run() override - { - (mMgr->*mHandler)(mIParam, mVParam); - return NS_OK; + NS_IMETHOD Run() override + { + (mMgr->*mHandler)(mIParam, mVParam); + return NS_OK; } private: diff --git a/netwerk/protocol/http/nsHttpHandler.cpp b/netwerk/protocol/http/nsHttpHandler.cpp index 107a47706cc4..6e4363760526 100644 --- a/netwerk/protocol/http/nsHttpHandler.cpp +++ b/netwerk/protocol/http/nsHttpHandler.cpp @@ -2291,10 +2291,11 @@ nsHttpHandler::Observe(nsISupports *subject, } else if (!strcmp(topic, "browser:purge-session-history")) { if (mConnMgr) { if (gSocketTransportService) { - nsCOMPtr event = - NewRunnableMethod(mConnMgr, - &nsHttpConnectionMgr::ClearConnectionHistory); - gSocketTransportService->Dispatch(event, NS_DISPATCH_NORMAL); + nsCOMPtr event = NewRunnableMethod( + "net::nsHttpConnectionMgr::ClearConnectionHistory", + mConnMgr, + &nsHttpConnectionMgr::ClearConnectionHistory); + gSocketTransportService->Dispatch(event, NS_DISPATCH_NORMAL); } mConnMgr->ClearAltServiceMappings(); } diff --git a/netwerk/protocol/http/nsHttpTransaction.cpp b/netwerk/protocol/http/nsHttpTransaction.cpp index c214d553d581..8d169e534143 100644 --- a/netwerk/protocol/http/nsHttpTransaction.cpp +++ b/netwerk/protocol/http/nsHttpTransaction.cpp @@ -2068,14 +2068,16 @@ nsHttpTransaction::GetResponseEnd() class DeleteHttpTransaction : public Runnable { public: - explicit DeleteHttpTransaction(nsHttpTransaction *trans) - : mTrans(trans) - {} + explicit DeleteHttpTransaction(nsHttpTransaction* trans) + : Runnable("net::DeleteHttpTransaction") + , mTrans(trans) + { + } - NS_IMETHOD Run() override - { - delete mTrans; - return NS_OK; + NS_IMETHOD Run() override + { + delete mTrans; + return NS_OK; } private: nsHttpTransaction *mTrans; diff --git a/netwerk/protocol/http/nsHttpTransaction.h b/netwerk/protocol/http/nsHttpTransaction.h index 395ae4fd5640..d795eef61374 100644 --- a/netwerk/protocol/http/nsHttpTransaction.h +++ b/netwerk/protocol/http/nsHttpTransaction.h @@ -233,7 +233,11 @@ private: public: UpdateSecurityCallbacks(nsHttpTransaction* aTrans, nsIInterfaceRequestor* aCallbacks) - : mTrans(aTrans), mCallbacks(aCallbacks) {} + : Runnable("net::nsHttpTransaction::UpdateSecurityCallbacks") + , mTrans(aTrans) + , mCallbacks(aCallbacks) + { + } NS_IMETHOD Run() override { diff --git a/netwerk/protocol/websocket/WebSocketChannel.cpp b/netwerk/protocol/websocket/WebSocketChannel.cpp index 5f6043225a53..24798d66bff3 100644 --- a/netwerk/protocol/websocket/WebSocketChannel.cpp +++ b/netwerk/protocol/websocket/WebSocketChannel.cpp @@ -709,11 +709,13 @@ NS_IMPL_ISUPPORTS(CallOnServerClose, nsIRunnable) class CallAcknowledge final : public CancelableRunnable { public: - CallAcknowledge(WebSocketChannel* aChannel, - uint32_t aSize) - : mChannel(aChannel), - mListenerMT(mChannel->mListenerMT), - mSize(aSize) {} + CallAcknowledge(WebSocketChannel* aChannel, uint32_t aSize) + : CancelableRunnable("net::CallAcknowledge") + , mChannel(aChannel) + , mListenerMT(mChannel->mListenerMT) + , mSize(aSize) + { + } NS_IMETHOD Run() override { @@ -1263,7 +1265,9 @@ WebSocketChannel::Observe(nsISupports *subject, // Next we check mDataStarted, which we need to do on mTargetThread. if (!IsOnTargetThread()) { mTargetThread->Dispatch( - NewRunnableMethod(this, &WebSocketChannel::OnNetworkChanged), + NewRunnableMethod("net::WebSocketChannel::OnNetworkChanged", + this, + &WebSocketChannel::OnNetworkChanged), NS_DISPATCH_NORMAL); } else { nsresult rv = OnNetworkChanged(); @@ -1291,7 +1295,9 @@ WebSocketChannel::OnNetworkChanged() } return mSocketThread->Dispatch( - NewRunnableMethod(this, &WebSocketChannel::OnNetworkChanged), + NewRunnableMethod("net::WebSocketChannel::OnNetworkChanged", + this, + &WebSocketChannel::OnNetworkChanged), NS_DISPATCH_NORMAL); } @@ -1378,8 +1384,10 @@ WebSocketChannel::BeginOpen(bool aCalledFromAdmissionManager) // When called from nsWSAdmissionManager post an event to avoid potential // re-entering of nsWSAdmissionManager and its lock. NS_DispatchToMainThread( - NewRunnableMethod(this, &WebSocketChannel::BeginOpenInternal), - NS_DISPATCH_NORMAL); + NewRunnableMethod("net::WebSocketChannel::BeginOpenInternal", + this, + &WebSocketChannel::BeginOpenInternal), + NS_DISPATCH_NORMAL); } else { BeginOpenInternal(); } @@ -2296,7 +2304,8 @@ class RemoveObserverRunnable : public Runnable public: explicit RemoveObserverRunnable(WebSocketChannel* aChannel) - : mChannel(aChannel) + : Runnable("net::RemoveObserverRunnable") + , mChannel(aChannel) {} NS_IMETHOD Run() override @@ -2940,7 +2949,9 @@ WebSocketChannel::StartWebsocketData() if (!IsOnTargetThread()) { return mTargetThread->Dispatch( - NewRunnableMethod(this, &WebSocketChannel::StartWebsocketData), + NewRunnableMethod("net::WebSocketChannel::StartWebsocketData", + this, + &WebSocketChannel::StartWebsocketData), NS_DISPATCH_NORMAL); } @@ -2953,7 +2964,8 @@ WebSocketChannel::StartWebsocketData() LOG(("WebSocketChannel::StartWebsocketData mSocketIn->AsyncWait() failed " "with error 0x%08" PRIx32, static_cast(rv))); return mSocketThread->Dispatch( - NewRunnableMethod(this, + NewRunnableMethod("net::WebSocketChannel::AbortSession", + this, &WebSocketChannel::AbortSession, rv), NS_DISPATCH_NORMAL); @@ -2961,7 +2973,9 @@ WebSocketChannel::StartWebsocketData() if (mPingInterval) { rv = mSocketThread->Dispatch( - NewRunnableMethod(this, &WebSocketChannel::StartPinging), + NewRunnableMethod("net::WebSocketChannel::StartPinging", + this, + &WebSocketChannel::StartPinging), NS_DISPATCH_NORMAL); if (NS_FAILED(rv)) { LOG(("WebSocketChannel::StartWebsocketData Could not start pinging, " diff --git a/netwerk/protocol/websocket/WebSocketChannelChild.cpp b/netwerk/protocol/websocket/WebSocketChannelChild.cpp index 127325e3b2c9..b037af9218dd 100644 --- a/netwerk/protocol/websocket/WebSocketChannelChild.cpp +++ b/netwerk/protocol/websocket/WebSocketChannelChild.cpp @@ -111,7 +111,8 @@ WebSocketChannelChild::MaybeReleaseIPCObject() if (!NS_IsMainThread()) { nsCOMPtr target = GetNeckoTarget(); MOZ_ALWAYS_SUCCEEDS( - target->Dispatch(NewRunnableMethod(this, + target->Dispatch(NewRunnableMethod("WebSocketChannelChild::MaybeReleaseIPCObject", + this, &WebSocketChannelChild::MaybeReleaseIPCObject), NS_DISPATCH_NORMAL)); return; @@ -135,8 +136,9 @@ WebSocketChannelChild::IsEncrypted() const class WrappedChannelEvent : public Runnable { public: - explicit WrappedChannelEvent(ChannelEvent *aChannelEvent) - : mChannelEvent(aChannelEvent) + explicit WrappedChannelEvent(ChannelEvent* aChannelEvent) + : Runnable("net::WrappedChannelEvent") + , mChannelEvent(aChannelEvent) { MOZ_RELEASE_ASSERT(aChannelEvent); } @@ -598,10 +600,11 @@ WebSocketChannelChild::AsyncOpen(nsIURI *aURI, class CloseEvent : public Runnable { public: - CloseEvent(WebSocketChannelChild *aChild, + CloseEvent(WebSocketChannelChild* aChild, uint16_t aCode, const nsACString& aReason) - : mChild(aChild) + : Runnable("net::CloseEvent") + , mChild(aChild) , mCode(aCode) , mReason(aReason) { @@ -648,10 +651,11 @@ WebSocketChannelChild::Close(uint16_t code, const nsACString & reason) class MsgEvent : public Runnable { public: - MsgEvent(WebSocketChannelChild *aChild, - const nsACString &aMsg, + MsgEvent(WebSocketChannelChild* aChild, + const nsACString& aMsg, bool aBinaryMsg) - : mChild(aChild) + : Runnable("net::MsgEvent") + , mChild(aChild) , mMsg(aMsg) , mBinaryMsg(aBinaryMsg) { @@ -727,10 +731,11 @@ WebSocketChannelChild::SendBinaryMsg(const nsACString &aMsg) class BinaryStreamEvent : public Runnable { public: - BinaryStreamEvent(WebSocketChannelChild *aChild, + BinaryStreamEvent(WebSocketChannelChild* aChild, nsIInputStream* aStream, uint32_t aLength) - : mChild(aChild) + : Runnable("net::BinaryStreamEvent") + , mChild(aChild) , mStream(aStream) , mLength(aLength) { diff --git a/netwerk/protocol/websocket/WebSocketEventService.cpp b/netwerk/protocol/websocket/WebSocketEventService.cpp index ffa6e52d0182..963dba28cb79 100644 --- a/netwerk/protocol/websocket/WebSocketEventService.cpp +++ b/netwerk/protocol/websocket/WebSocketEventService.cpp @@ -35,9 +35,9 @@ IsChildProcess() class WebSocketBaseRunnable : public Runnable { public: - WebSocketBaseRunnable(uint32_t aWebSocketSerialID, - uint64_t aInnerWindowID) - : mWebSocketSerialID(aWebSocketSerialID) + WebSocketBaseRunnable(uint32_t aWebSocketSerialID, uint64_t aInnerWindowID) + : Runnable("net::WebSocketBaseRunnable") + , mWebSocketSerialID(aWebSocketSerialID) , mInnerWindowID(aInnerWindowID) {} diff --git a/netwerk/protocol/wyciwyg/nsWyciwygChannel.cpp b/netwerk/protocol/wyciwyg/nsWyciwygChannel.cpp index 7ec3d376f77a..c6551af16341 100644 --- a/netwerk/protocol/wyciwyg/nsWyciwygChannel.cpp +++ b/netwerk/protocol/wyciwyg/nsWyciwygChannel.cpp @@ -601,8 +601,10 @@ nsWyciwygChannel::OnCacheEntryAvailable(nsICacheEntry *aCacheEntry, LOG(("channel was canceled [this=%p status=%" PRIx32 "]\n", this, static_cast(mStatus))); // Since OnCacheEntryAvailable can be called directly from AsyncOpen // we must dispatch. - NS_DispatchToCurrentThread(mozilla::NewRunnableMethod( - this, &nsWyciwygChannel::NotifyListener)); + NS_DispatchToCurrentThread( + mozilla::NewRunnableMethod("nsWyciwygChannel::NotifyListener", + this, + &nsWyciwygChannel::NotifyListener)); } return NS_OK; diff --git a/netwerk/sctp/datachannel/DataChannel.cpp b/netwerk/sctp/datachannel/DataChannel.cpp index efd20a14bcc8..7d542cc4f530 100644 --- a/netwerk/sctp/datachannel/DataChannel.cpp +++ b/netwerk/sctp/datachannel/DataChannel.cpp @@ -2301,11 +2301,13 @@ DataChannelConnection::SendBinary(DataChannel *channel, const char *data, class ReadBlobRunnable : public Runnable { public: - ReadBlobRunnable(DataChannelConnection* aConnection, uint16_t aStream, - nsIInputStream* aBlob) : - mConnection(aConnection), - mStream(aStream), - mBlob(aBlob) + ReadBlobRunnable(DataChannelConnection* aConnection, + uint16_t aStream, + nsIInputStream* aBlob) + : Runnable("ReadBlobRunnable") + , mConnection(aConnection) + , mStream(aStream) + , mBlob(aBlob) {} NS_IMETHOD Run() override { @@ -2348,10 +2350,14 @@ DataChannelConnection::SendBlob(uint16_t stream, nsIInputStream *aBlob) class DataChannelBlobSendRunnable : public Runnable { public: - DataChannelBlobSendRunnable(already_AddRefed& aConnection, - uint16_t aStream) - : mConnection(aConnection) - , mStream(aStream) {} + DataChannelBlobSendRunnable( + already_AddRefed& aConnection, + uint16_t aStream) + : Runnable("DataChannelBlobSendRunnable") + , mConnection(aConnection) + , mStream(aStream) + { + } ~DataChannelBlobSendRunnable() override { diff --git a/netwerk/sctp/datachannel/DataChannel.h b/netwerk/sctp/datachannel/DataChannel.h index fec16b4060b3..e3616f2b30f0 100644 --- a/netwerk/sctp/datachannel/DataChannel.h +++ b/netwerk/sctp/datachannel/DataChannel.h @@ -467,37 +467,49 @@ public: NO_LONGER_BUFFERED, }; /* types */ - DataChannelOnMessageAvailable(int32_t aType, - DataChannelConnection *aConnection, - DataChannel *aChannel, - nsCString &aData, // XXX this causes inefficiency - int32_t aLen) - : mType(aType), - mChannel(aChannel), - mConnection(aConnection), - mData(aData), - mLen(aLen) {} + DataChannelOnMessageAvailable( + int32_t aType, + DataChannelConnection* aConnection, + DataChannel* aChannel, + nsCString& aData, // XXX this causes inefficiency + int32_t aLen) + : Runnable("DataChannelOnMessageAvailable") + , mType(aType) + , mChannel(aChannel) + , mConnection(aConnection) + , mData(aData) + , mLen(aLen) + { + } - DataChannelOnMessageAvailable(int32_t aType, - DataChannel *aChannel) - : mType(aType), - mChannel(aChannel) {} + DataChannelOnMessageAvailable(int32_t aType, DataChannel* aChannel) + : Runnable("DataChannelOnMessageAvailable") + , mType(aType) + , mChannel(aChannel) + { + } // XXX is it safe to leave mData/mLen uninitialized? This should only be // used for notifications that don't use them, but I'd like more // bulletproof compile-time checking. - DataChannelOnMessageAvailable(int32_t aType, - DataChannelConnection *aConnection, - DataChannel *aChannel) - : mType(aType), - mChannel(aChannel), - mConnection(aConnection) {} + DataChannelOnMessageAvailable(int32_t aType, + DataChannelConnection* aConnection, + DataChannel* aChannel) + : Runnable("DataChannelOnMessageAvailable") + , mType(aType) + , mChannel(aChannel) + , mConnection(aConnection) + { + } // for ON_CONNECTION/ON_DISCONNECTED - DataChannelOnMessageAvailable(int32_t aType, - DataChannelConnection *aConnection) - : mType(aType), - mConnection(aConnection) {} + DataChannelOnMessageAvailable(int32_t aType, + DataChannelConnection* aConnection) + : Runnable("DataChannelOnMessageAvailable") + , mType(aType) + , mConnection(aConnection) + { + } NS_IMETHOD Run() override { diff --git a/netwerk/socket/nsNamedPipeIOLayer.cpp b/netwerk/socket/nsNamedPipeIOLayer.cpp index 400f61fa5ac7..5373d202da6d 100644 --- a/netwerk/socket/nsNamedPipeIOLayer.cpp +++ b/netwerk/socket/nsNamedPipeIOLayer.cpp @@ -211,7 +211,7 @@ NamedPipeInfo::OnDataAvailable(uint32_t aBytesTransferred, mErrorCode = ERROR_SUCCESS; // dispatch an empty event to trigger STS thread - gSocketTransportService->Dispatch(NS_NewRunnableFunction([]{}), + gSocketTransportService->Dispatch(NS_NewRunnableFunction("NamedPipeInfo::OnDataAvailable", []{}), NS_DISPATCH_NORMAL); return NS_OK; @@ -229,7 +229,7 @@ NamedPipeInfo::OnError(uint32_t aError, mErrorCode = aError; // dispatch an empty event to trigger STS thread - gSocketTransportService->Dispatch(NS_NewRunnableFunction([]{}), + gSocketTransportService->Dispatch(NS_NewRunnableFunction("NamedPipeInfo::OnError", []{}), NS_DISPATCH_NORMAL); return NS_OK; diff --git a/netwerk/socket/nsNamedPipeService.cpp b/netwerk/socket/nsNamedPipeService.cpp index 8e72cc8ef02d..d27386300890 100644 --- a/netwerk/socket/nsNamedPipeService.cpp +++ b/netwerk/socket/nsNamedPipeService.cpp @@ -42,7 +42,8 @@ NamedPipeService::Init() // nsIObserverService must be accessed in main thread. // register shutdown event to stop NamedPipeSrv thread. nsCOMPtr self(this); - nsCOMPtr r = NS_NewRunnableFunction([self = Move(self)] () -> void { + nsCOMPtr r = NS_NewRunnableFunction("NamedPipeService::Init", + [self = Move(self)] () -> void { MOZ_ASSERT(NS_IsMainThread()); nsCOMPtr svc = mozilla::services::GetObserverService(); diff --git a/netwerk/system/linux/nsNotifyAddrListener_Linux.h b/netwerk/system/linux/nsNotifyAddrListener_Linux.h index a2b8f2277942..d8150d17ff61 100644 --- a/netwerk/system/linux/nsNotifyAddrListener_Linux.h +++ b/netwerk/system/linux/nsNotifyAddrListener_Linux.h @@ -44,8 +44,11 @@ private: class ChangeEvent : public mozilla::Runnable { public: NS_DECL_NSIRUNNABLE - ChangeEvent(nsINetworkLinkService *aService, const char *aEventID) - : mService(aService), mEventID(aEventID) { + ChangeEvent(nsINetworkLinkService* aService, const char* aEventID) + : mozilla::Runnable("nsNotifyAddrListener::ChangeEvent") + , mService(aService) + , mEventID(aEventID) + { } private: nsCOMPtr mService; diff --git a/netwerk/system/win32/nsNotifyAddrListener.h b/netwerk/system/win32/nsNotifyAddrListener.h index 47a9ed64514a..d2173aea9caa 100644 --- a/netwerk/system/win32/nsNotifyAddrListener.h +++ b/netwerk/system/win32/nsNotifyAddrListener.h @@ -38,8 +38,10 @@ protected: public: NS_DECL_NSIRUNNABLE ChangeEvent(nsINetworkLinkService *aService, const char *aEventID) - : mService(aService), mEventID(aEventID) { - } + : Runnable("nsNotifyAddrListener::ChangeEvent") + , mService(aService) + , mEventID(aEventID) + {} private: nsCOMPtr mService; const char *mEventID; diff --git a/parser/html/nsHtml5StreamParser.cpp b/parser/html/nsHtml5StreamParser.cpp index 5c5fe3965b3b..18215b0b363b 100644 --- a/parser/html/nsHtml5StreamParser.cpp +++ b/parser/html/nsHtml5StreamParser.cpp @@ -1135,12 +1135,12 @@ nsHtml5StreamParser::DoDataAvailable(const uint8_t* aBuffer, uint32_t aLength) { mozilla::MutexAutoLock flushTimerLock(mFlushTimerMutex); - mFlushTimer->InitWithFuncCallback(nsHtml5StreamParser::TimerCallback, - static_cast (this), - mFlushTimerEverFired ? - sTimerInitialDelay : - sTimerSubsequentDelay, - nsITimer::TYPE_ONE_SHOT); + mFlushTimer->InitWithNamedFuncCallback( + nsHtml5StreamParser::TimerCallback, + static_cast(this), + mFlushTimerEverFired ? sTimerInitialDelay : sTimerSubsequentDelay, + nsITimer::TYPE_ONE_SHOT, + "nsHtml5StreamParser::DoDataAvailable"); } mFlushTimerArmed = true; } diff --git a/parser/html/nsHtml5TreeOpExecutor.cpp b/parser/html/nsHtml5TreeOpExecutor.cpp index 54e8c2eead2b..da60ca115906 100644 --- a/parser/html/nsHtml5TreeOpExecutor.cpp +++ b/parser/html/nsHtml5TreeOpExecutor.cpp @@ -51,7 +51,8 @@ class nsHtml5ExecutorReflusher : public Runnable RefPtr mExecutor; public: explicit nsHtml5ExecutorReflusher(nsHtml5TreeOpExecutor* aExecutor) - : mExecutor(aExecutor) + : mozilla::Runnable("nsHtml5ExecutorReflusher") + , mExecutor(aExecutor) {} NS_IMETHOD Run() override { @@ -240,7 +241,8 @@ nsHtml5TreeOpExecutor::MarkAsBroken(nsresult aReason) // a safer point. if (mParser) { // can mParser ever be null here? MOZ_ALWAYS_SUCCEEDS( - NS_DispatchToMainThread(NewRunnableMethod(GetParser(), &nsHtml5Parser::Terminate))); + NS_DispatchToMainThread(NewRunnableMethod("nsHtml5Parser::Terminate", + GetParser(), &nsHtml5Parser::Terminate))); } return aReason; } diff --git a/parser/htmlparser/nsParser.cpp b/parser/htmlparser/nsParser.cpp index 7dbbc840487f..0dc9beb3c009 100644 --- a/parser/htmlparser/nsParser.cpp +++ b/parser/htmlparser/nsParser.cpp @@ -110,7 +110,8 @@ public: RefPtr mParser; explicit nsParserContinueEvent(nsParser* aParser) - : mParser(aParser) + : mozilla::Runnable("nsParserContinueEvent") + , mParser(aParser) {} NS_IMETHOD Run() override diff --git a/security/manager/ssl/CryptoTask.h b/security/manager/ssl/CryptoTask.h index ae107fe30748..1d50156b9b3e 100644 --- a/security/manager/ssl/CryptoTask.h +++ b/security/manager/ssl/CryptoTask.h @@ -62,8 +62,9 @@ public: protected: CryptoTask() - : mRv(NS_ERROR_NOT_INITIALIZED), - mReleasedNSSResources(false) + : Runnable("CryptoTask") + , mRv(NS_ERROR_NOT_INITIALIZED) + , mReleasedNSSResources(false) { } diff --git a/security/manager/ssl/DataStorage.cpp b/security/manager/ssl/DataStorage.cpp index 99d26ca32a69..808b2392b518 100644 --- a/security/manager/ssl/DataStorage.cpp +++ b/security/manager/ssl/DataStorage.cpp @@ -329,7 +329,8 @@ class DataStorage::Reader : public Runnable { public: explicit Reader(DataStorage* aDataStorage) - : mDataStorage(aDataStorage) + : Runnable("DataStorage::Reader") + , mDataStorage(aDataStorage) { } ~Reader(); @@ -355,7 +356,8 @@ DataStorage::Reader::~Reader() // This is for tests. nsCOMPtr job = - NewRunnableMethod(mDataStorage, + NewRunnableMethod("DataStorage::NotifyObservers", + mDataStorage, &DataStorage::NotifyObservers, "data-storage-ready"); nsresult rv = NS_DispatchToMainThread(job, NS_DISPATCH_NORMAL); @@ -797,7 +799,8 @@ class DataStorage::Writer : public Runnable { public: Writer(nsCString& aData, DataStorage* aDataStorage) - : mData(aData) + : Runnable("DataStorage::Writer") + , mData(aData) , mDataStorage(aDataStorage) { } @@ -850,7 +853,8 @@ DataStorage::Writer::Run() // Observed by tests. nsCOMPtr job = - NewRunnableMethod(mDataStorage, + NewRunnableMethod("DataStorage::NotifyObservers", + mDataStorage, &DataStorage::NotifyObservers, "data-storage-written"); rv = NS_DispatchToMainThread(job, NS_DISPATCH_NORMAL); @@ -941,7 +945,7 @@ DataStorage::AsyncSetTimer(const MutexAutoLock& /*aProofOfLock*/) mPendingWrite = true; nsCOMPtr job = - NewRunnableMethod(this, &DataStorage::SetTimer); + NewRunnableMethod("DataStorage::SetTimer", this, &DataStorage::SetTimer); nsresult rv = mWorkerThread->Dispatch(job, NS_DISPATCH_NORMAL); if (NS_WARN_IF(NS_FAILED(rv))) { return rv; @@ -965,8 +969,11 @@ DataStorage::SetTimer() } } - rv = mTimer->InitWithFuncCallback(TimerCallback, this, - mTimerDelay, nsITimer::TYPE_ONE_SHOT); + rv = mTimer->InitWithNamedFuncCallback(TimerCallback, + this, + mTimerDelay, + nsITimer::TYPE_ONE_SHOT, + "DataStorage::SetTimer"); Unused << NS_WARN_IF(NS_FAILED(rv)); } @@ -990,8 +997,8 @@ DataStorage::DispatchShutdownTimer(const MutexAutoLock& /*aProofOfLock*/) { MOZ_ASSERT(XRE_IsParentProcess()); - nsCOMPtr job = - NewRunnableMethod(this, &DataStorage::ShutdownTimer); + nsCOMPtr job = NewRunnableMethod( + "DataStorage::ShutdownTimer", this, &DataStorage::ShutdownTimer); nsresult rv = mWorkerThread->Dispatch(job, NS_DISPATCH_NORMAL); if (NS_WARN_IF(NS_FAILED(rv))) { return rv; diff --git a/security/manager/ssl/PSMContentListener.cpp b/security/manager/ssl/PSMContentListener.cpp index d377bcffe0d2..9edbc6bc464b 100644 --- a/security/manager/ssl/PSMContentListener.cpp +++ b/security/manager/ssl/PSMContentListener.cpp @@ -153,7 +153,9 @@ PSMContentStreamListener::OnStopRequest(nsIRequest* request, // Because importing the cert can spin the event loop (via alerts), we can't // do it here. Do it off the event loop instead. nsCOMPtr r = - NewRunnableMethod(this, &PSMContentStreamListener::ImportCertificate); + NewRunnableMethod("psm::PSMContentStreamListener::ImportCertificate", + this, + &PSMContentStreamListener::ImportCertificate); MOZ_ALWAYS_SUCCEEDS(NS_DispatchToMainThread(r)); return NS_OK; diff --git a/security/manager/ssl/PSMRunnable.cpp b/security/manager/ssl/PSMRunnable.cpp index 9f151a83fde7..e83cf960a473 100644 --- a/security/manager/ssl/PSMRunnable.cpp +++ b/security/manager/ssl/PSMRunnable.cpp @@ -7,7 +7,8 @@ namespace mozilla { namespace psm { SyncRunnableBase::SyncRunnableBase() - : monitor("SyncRunnableBase::monitor") + : Runnable("psm::SyncRunnableBase") + , monitor("SyncRunnableBase::monitor") { } diff --git a/security/manager/ssl/PSMRunnable.h b/security/manager/ssl/PSMRunnable.h index 87dada184f18..436eb78d9be4 100644 --- a/security/manager/ssl/PSMRunnable.h +++ b/security/manager/ssl/PSMRunnable.h @@ -32,9 +32,11 @@ class NotifyObserverRunnable : public Runnable public: NotifyObserverRunnable(nsIObserver * observer, const char * topicStringLiteral) - : mObserver(new nsMainThreadPtrHolder( - "psm::NotifyObserverRunnable::mObserver", observer)), - mTopic(topicStringLiteral) { + : Runnable("psm::NotifyObserverRunnable") + , mObserver(new nsMainThreadPtrHolder( + "psm::NotifyObserverRunnable::mObserver", observer)) + , mTopic(topicStringLiteral) + { } NS_DECL_NSIRUNNABLE private: diff --git a/security/manager/ssl/SSLServerCertVerification.cpp b/security/manager/ssl/SSLServerCertVerification.cpp index 109f445cf7ed..d3a63db36243 100644 --- a/security/manager/ssl/SSLServerCertVerification.cpp +++ b/security/manager/ssl/SSLServerCertVerification.cpp @@ -734,7 +734,8 @@ class CertErrorRunnableRunnable : public Runnable { public: explicit CertErrorRunnableRunnable(CertErrorRunnable* certErrorRunnable) - : mCertErrorRunnable(certErrorRunnable) + : Runnable("psm::CertErrorRunnableRunnable") + , mCertErrorRunnable(certErrorRunnable) { } private: @@ -794,12 +795,18 @@ private: }; SSLServerCertVerificationJob::SSLServerCertVerificationJob( - const RefPtr& certVerifier, const void* fdForLogging, - nsNSSSocketInfo* infoObject, const UniqueCERTCertificate& cert, - UniqueCERTCertList peerCertChain, const SECItem* stapledOCSPResponse, - const SECItem* sctsFromTLSExtension, - uint32_t providerFlags, Time time, PRTime prtime) - : mCertVerifier(certVerifier) + const RefPtr& certVerifier, + const void* fdForLogging, + nsNSSSocketInfo* infoObject, + const UniqueCERTCertificate& cert, + UniqueCERTCertList peerCertChain, + const SECItem* stapledOCSPResponse, + const SECItem* sctsFromTLSExtension, + uint32_t providerFlags, + Time time, + PRTime prtime) + : Runnable("psm::SSLServerCertVerificationJob") + , mCertVerifier(certVerifier) , mFdForLogging(fdForLogging) , mInfoObject(infoObject) , mCert(CERT_DupCertificate(cert.get())) @@ -1815,10 +1822,13 @@ AuthCertificateHook(void* arg, PRFileDesc* fd, PRBool checkSig, PRBool isServer) } SSLServerCertVerificationResult::SSLServerCertVerificationResult( - nsNSSSocketInfo* infoObject, PRErrorCode errorCode, - Telemetry::HistogramID telemetryID, uint32_t telemetryValue, - SSLErrorMessageType errorMessageType) - : mInfoObject(infoObject) + nsNSSSocketInfo* infoObject, + PRErrorCode errorCode, + Telemetry::HistogramID telemetryID, + uint32_t telemetryValue, + SSLErrorMessageType errorMessageType) + : Runnable("psm::SSLServerCertVerificationResult") + , mInfoObject(infoObject) , mErrorCode(errorCode) , mErrorMessageType(errorMessageType) , mTelemetryID(telemetryID) diff --git a/security/manager/ssl/nsNSSCallbacks.cpp b/security/manager/ssl/nsNSSCallbacks.cpp index 18f1b2ef0a78..1ec6334b452b 100644 --- a/security/manager/ssl/nsNSSCallbacks.cpp +++ b/security/manager/ssl/nsNSSCallbacks.cpp @@ -68,7 +68,8 @@ public: }; nsHTTPDownloadEvent::nsHTTPDownloadEvent() -:mResponsibleForDoneSignal(true) + : mozilla::Runnable("nsHTTPDownloadEvent") + , mResponsibleForDoneSignal(true) { } @@ -196,6 +197,7 @@ nsHTTPDownloadEvent::Run() struct nsCancelHTTPDownloadEvent : Runnable { RefPtr mListener; + nsCancelHTTPDownloadEvent() : Runnable("nsCancelHTTPDownloadEvent") {} NS_IMETHOD Run() override { mListener->FreeLoadGroup(true); mListener = nullptr; diff --git a/security/manager/ssl/nsNSSComponent.cpp b/security/manager/ssl/nsNSSComponent.cpp index 6a4a826547bd..d63ec9e17a42 100644 --- a/security/manager/ssl/nsNSSComponent.cpp +++ b/security/manager/ssl/nsNSSComponent.cpp @@ -99,11 +99,12 @@ bool EnsureNSSInitializedChromeOrContent() } // Forward to the main thread synchronously. - mozilla::SyncRunnable::DispatchToThread(mainThread, - new SyncRunnable(NS_NewRunnableFunction([]() { - initialized = EnsureNSSInitializedChromeOrContent(); - })) - ); + mozilla::SyncRunnable::DispatchToThread( + mainThread, + new SyncRunnable( + NS_NewRunnableFunction("EnsureNSSInitializedChromeOrContent", []() { + initialized = EnsureNSSInitializedChromeOrContent(); + }))); return initialized; } diff --git a/security/manager/ssl/nsNSSIOLayer.cpp b/security/manager/ssl/nsNSSIOLayer.cpp index 0c44dc91e3d6..89b82679abb3 100644 --- a/security/manager/ssl/nsNSSIOLayer.cpp +++ b/security/manager/ssl/nsNSSIOLayer.cpp @@ -1730,7 +1730,8 @@ class FallbackPrefRemover final : public Runnable { public: explicit FallbackPrefRemover(const nsACString& aHost) - : mHost(aHost) + : mozilla::Runnable("FallbackPrefRemover") + , mHost(aHost) {} NS_IMETHOD Run() override; private: diff --git a/security/manager/ssl/nsNSSModule.cpp b/security/manager/ssl/nsNSSModule.cpp index de47b4ec829f..321498508095 100644 --- a/security/manager/ssl/nsNSSModule.cpp +++ b/security/manager/ssl/nsNSSModule.cpp @@ -106,11 +106,11 @@ Constructor(nsISupports* aOuter, REFNSIID aIID, void** aResult) } // Forward to the main thread synchronously. - mozilla::SyncRunnable::DispatchToThread(mainThread, - new SyncRunnable(NS_NewRunnableFunction([&]() { + mozilla::SyncRunnable::DispatchToThread( + mainThread, + new SyncRunnable(NS_NewRunnableFunction("psm::Constructor", [&]() { rv = Instantiate(aIID, aResult); - })) - ); + }))); return rv; } diff --git a/security/sandbox/linux/reporter/SandboxReporter.cpp b/security/sandbox/linux/reporter/SandboxReporter.cpp index 8da246b07f18..a9275f00465a 100644 --- a/security/sandbox/linux/reporter/SandboxReporter.cpp +++ b/security/sandbox/linux/reporter/SandboxReporter.cpp @@ -100,9 +100,8 @@ SandboxReporter::Singleton() // by that point (so it won't race by calling Singleton()), all // non-main XPCOM threads will also be shut down, and currently // the only other user is the main-thread-only Troubleshoot.jsm. - NS_DispatchToMainThread(NS_NewRunnableFunction([] { - ClearOnShutdown(&sSingleton); - })); + NS_DispatchToMainThread(NS_NewRunnableFunction( + "SandboxReporter::Singleton", [] { ClearOnShutdown(&sSingleton); })); } return sSingleton.get(); } diff --git a/services/crypto/component/IdentityCryptoService.cpp b/services/crypto/component/IdentityCryptoService.cpp index a4871dfe5079..4b36ad09563e 100644 --- a/services/crypto/component/IdentityCryptoService.cpp +++ b/services/crypto/component/IdentityCryptoService.cpp @@ -325,9 +325,10 @@ KeyPair::Sign(const nsACString & textToSign, } KeyGenRunnable::KeyGenRunnable(KeyType keyType, - nsIIdentityKeyGenCallback * callback, + nsIIdentityKeyGenCallback* callback, nsIEventTarget* operationThread) - : mKeyType(keyType) + : mozilla::Runnable("KeyGenRunnable") + , mKeyType(keyType) , mCallback(new nsMainThreadPtrHolder( "KeyGenRunnable::mCallback", callback)) , mRv(NS_ERROR_NOT_INITIALIZED) @@ -483,10 +484,11 @@ KeyGenRunnable::Run() return NS_OK; } -SignRunnable::SignRunnable(const nsACString & aText, - SECKEYPrivateKey * privateKey, - nsIIdentitySignCallback * aCallback) - : mTextToSign(aText) +SignRunnable::SignRunnable(const nsACString& aText, + SECKEYPrivateKey* privateKey, + nsIIdentitySignCallback* aCallback) + : mozilla::Runnable("SignRunnable") + , mTextToSign(aText) , mPrivateKey(SECKEY_CopyPrivateKey(privateKey)) , mCallback(new nsMainThreadPtrHolder( "SignRunnable::mCallback", aCallback)) diff --git a/storage/StorageBaseStatementInternal.cpp b/storage/StorageBaseStatementInternal.cpp index 2b49932335b6..fc2196987099 100644 --- a/storage/StorageBaseStatementInternal.cpp +++ b/storage/StorageBaseStatementInternal.cpp @@ -35,10 +35,11 @@ public: * on. We release the statement on that thread since releasing the * statement might end up releasing the connection too. */ - AsyncStatementFinalizer(StorageBaseStatementInternal *aStatement, - Connection *aConnection) - : mStatement(aStatement) - , mConnection(aConnection) + AsyncStatementFinalizer(StorageBaseStatementInternal* aStatement, + Connection* aConnection) + : Runnable("storage::AsyncStatementFinalizer") + , mStatement(aStatement) + , mConnection(aConnection) { } @@ -81,10 +82,11 @@ public: * responsibility for the instance and all other references to it * should be forgotten. */ - LastDitchSqliteStatementFinalizer(RefPtr &aConnection, - sqlite3_stmt *aStatement) - : mConnection(aConnection) - , mAsyncStatement(aStatement) + LastDitchSqliteStatementFinalizer(RefPtr& aConnection, + sqlite3_stmt* aStatement) + : Runnable("storage::LastDitchSqliteStatementFinalizer") + , mConnection(aConnection) + , mAsyncStatement(aStatement) { NS_PRECONDITION(aConnection, "You must provide a Connection"); } diff --git a/storage/mozStorageConnection.cpp b/storage/mozStorageConnection.cpp index 26480d445f39..a757d6bd7a25 100644 --- a/storage/mozStorageConnection.cpp +++ b/storage/mozStorageConnection.cpp @@ -378,14 +378,15 @@ namespace { class AsyncCloseConnection final: public Runnable { public: - AsyncCloseConnection(Connection *aConnection, - sqlite3 *aNativeConnection, - nsIRunnable *aCallbackEvent, + AsyncCloseConnection(Connection* aConnection, + sqlite3* aNativeConnection, + nsIRunnable* aCallbackEvent, already_AddRefed aAsyncExecutionThread) - : mConnection(aConnection) - , mNativeConnection(aNativeConnection) - , mCallbackEvent(aCallbackEvent) - , mAsyncExecutionThread(aAsyncExecutionThread) + : Runnable("storage::AsyncCloseConnection") + , mConnection(aConnection) + , mNativeConnection(aNativeConnection) + , mCallbackEvent(aCallbackEvent) + , mAsyncExecutionThread(aAsyncExecutionThread) { } @@ -398,8 +399,11 @@ public: MOZ_ASSERT(onAsyncThread); #endif // DEBUG - nsCOMPtr event = NewRunnableMethod> - (mConnection, &Connection::shutdownAsyncThread, mAsyncExecutionThread); + nsCOMPtr event = NewRunnableMethod>( + "storage::Connection::shutdownAsyncThread", + mConnection, + &Connection::shutdownAsyncThread, + mAsyncExecutionThread); (void)NS_DispatchToMainThread(event); // Internal close. diff --git a/storage/mozStoragePrivateHelpers.cpp b/storage/mozStoragePrivateHelpers.cpp index 91924204f107..3c3688583729 100644 --- a/storage/mozStoragePrivateHelpers.cpp +++ b/storage/mozStoragePrivateHelpers.cpp @@ -251,8 +251,9 @@ namespace { class CallbackEvent : public Runnable { public: - explicit CallbackEvent(mozIStorageCompletionCallback *aCallback) - : mCallback(aCallback) + explicit CallbackEvent(mozIStorageCompletionCallback* aCallback) + : Runnable("storage::CallbackEvent") + , mCallback(aCallback) { } diff --git a/storage/mozStorageService.cpp b/storage/mozStorageService.cpp index 4fd9dac4424b..2a104e20197f 100644 --- a/storage/mozStorageService.cpp +++ b/storage/mozStorageService.cpp @@ -371,9 +371,11 @@ Service::minimizeMemory() } else { // We are on the wrong thread, the query should be executed on the // opener thread, so we must dispatch to it. - nsCOMPtr event = - NewRunnableMethod( - conn, &Connection::ExecuteSimpleSQL, shrinkPragma); + nsCOMPtr event = NewRunnableMethod( + "storage::Connection::ExecuteSimpleSQL", + conn, + &Connection::ExecuteSimpleSQL, + shrinkPragma); conn->threadOpenedOn->Dispatch(event, NS_DISPATCH_NORMAL); } } @@ -663,7 +665,8 @@ public: nsIFile* aStorageFile, int32_t aGrowthIncrement, mozIStorageCompletionCallback* aCallback) - : mConnection(aConnection) + : Runnable("storage::AsyncInitDatabase") + , mConnection(aConnection) , mStorageFile(aStorageFile) , mGrowthIncrement(aGrowthIncrement) , mCallback(aCallback) @@ -679,6 +682,7 @@ public: if (NS_FAILED(rv)) { nsCOMPtr closeRunnable = NewRunnableMethod( + "storage::Connection::AsyncClose", mConnection.get(), &Connection::AsyncClose, nullptr); diff --git a/storage/test/gtest/storage_test_harness.h b/storage/test/gtest/storage_test_harness.h index b1003f043471..09a01c7f9da5 100644 --- a/storage/test/gtest/storage_test_harness.h +++ b/storage/test/gtest/storage_test_harness.h @@ -299,9 +299,10 @@ void watch_for_mutex_use_on_this_thread() class ThreadWedger : public mozilla::Runnable { public: - explicit ThreadWedger(nsIEventTarget *aTarget) - : mReentrantMonitor("thread wedger") - , unwedged(false) + explicit ThreadWedger(nsIEventTarget* aTarget) + : mozilla::Runnable("ThreadWedger") + , mReentrantMonitor("thread wedger") + , unwedged(false) { aTarget->Dispatch(this, aTarget->NS_DISPATCH_NORMAL); } diff --git a/storage/test/gtest/test_service_init_background_thread.cpp b/storage/test/gtest/test_service_init_background_thread.cpp index e811e249702b..5a2c1b5ae92a 100644 --- a/storage/test/gtest/test_service_init_background_thread.cpp +++ b/storage/test/gtest/test_service_init_background_thread.cpp @@ -19,6 +19,7 @@ class ServiceInitializer : public mozilla::Runnable { public: + ServiceInitializer() : mozilla::Runnable("ServiceInitializer") {} NS_IMETHOD Run() override { // Use an explicit do_GetService instead of getService so that the check in diff --git a/storage/test/gtest/test_unlock_notify.cpp b/storage/test/gtest/test_unlock_notify.cpp index d108f3b16a09..b5a4529cd614 100644 --- a/storage/test/gtest/test_unlock_notify.cpp +++ b/storage/test/gtest/test_unlock_notify.cpp @@ -29,9 +29,10 @@ class DatabaseLocker : public mozilla::Runnable { public: explicit DatabaseLocker(const char* aSQL) - : monitor("DatabaseLocker::monitor") - , mSQL(aSQL) - , mState(STARTING) + : mozilla::Runnable("DatabaseLocker") + , monitor("DatabaseLocker::monitor") + , mSQL(aSQL) + , mState(STARTING) { } diff --git a/toolkit/components/filewatcher/NativeFileWatcherWin.cpp b/toolkit/components/filewatcher/NativeFileWatcherWin.cpp index 96be46eaef5c..faf166eff662 100644 --- a/toolkit/components/filewatcher/NativeFileWatcherWin.cpp +++ b/toolkit/components/filewatcher/NativeFileWatcherWin.cpp @@ -37,7 +37,8 @@ public: */ WatchedErrorEvent(const nsMainThreadPtrHandle& aOnError, const nsresult& anError, const DWORD& osError) - : mOnError(aOnError) + : Runnable("WatchedErrorEvent") + , mOnError(aOnError) , mError(anError) { MOZ_ASSERT(!NS_IsMainThread()); @@ -75,7 +76,8 @@ public: */ WatchedSuccessEvent(const nsMainThreadPtrHandle& aOnSuccess, const nsAString& aResourcePath) - : mOnSuccess(aOnSuccess) + : Runnable("WatchedSuccessEvent") + , mOnSuccess(aOnSuccess) , mResourcePath(aResourcePath) { MOZ_ASSERT(!NS_IsMainThread()); @@ -112,7 +114,8 @@ public: */ WatchedChangeEvent(const nsMainThreadPtrHandle& aOnChange, const nsAString& aChangedResource) - : mOnChange(aOnChange) + : Runnable("WatchedChangeEvent") + , mOnChange(aOnChange) , mChangedResource(aChangedResource) { MOZ_ASSERT(!NS_IsMainThread()); @@ -228,7 +231,8 @@ class NativeWatcherIOShutdownTask : public Runnable { public: NativeWatcherIOShutdownTask() - : mWorkerThread(do_GetCurrentThread()) + : Runnable("NativeWatcherIOShutdownTask") + , mWorkerThread(do_GetCurrentThread()) { MOZ_ASSERT(!NS_IsMainThread()); } @@ -259,7 +263,8 @@ class NativeFileWatcherIOTask : public Runnable { public: explicit NativeFileWatcherIOTask(HANDLE aIOCompletionPort) - : mIOCompletionPort(aIOCompletionPort) + : Runnable("NativeFileWatcherIOTask") + , mIOCompletionPort(aIOCompletionPort) , mShuttingDown(false) { } @@ -1324,6 +1329,7 @@ NativeFileWatcherService::AddPath(const nsAString& aPathToWatch, nsresult rv = mIOThread->Dispatch( NewRunnableMethod( + "NativeFileWatcherIOTask::AddPathRunnableMethod", static_cast(mWorkerIORunnable.get()), &NativeFileWatcherIOTask::AddPathRunnableMethod, wrappedCallbacks.get()), @@ -1397,6 +1403,7 @@ NativeFileWatcherService::RemovePath(const nsAString& aPathToRemove, nsresult rv = mIOThread->Dispatch( NewRunnableMethod( + "NativeFileWatcherIOTask::RemovePathRunnableMethod", static_cast(mWorkerIORunnable.get()), &NativeFileWatcherIOTask::RemovePathRunnableMethod, wrappedCallbacks.get()), @@ -1446,6 +1453,7 @@ NativeFileWatcherService::Uninit() nsresult rv = ioThread->Dispatch( NewRunnableMethod( + "NativeFileWatcherIOTask::DeactivateRunnableMethod", static_cast(mWorkerIORunnable.get()), &NativeFileWatcherIOTask::DeactivateRunnableMethod), nsIEventTarget::DISPATCH_NORMAL); diff --git a/toolkit/components/osfile/NativeOSFileInternals.cpp b/toolkit/components/osfile/NativeOSFileInternals.cpp index c671cfeae309..63003e3acf1a 100644 --- a/toolkit/components/osfile/NativeOSFileInternals.cpp +++ b/toolkit/components/osfile/NativeOSFileInternals.cpp @@ -411,13 +411,14 @@ public: already_AddRefed& aDiscardedResult, const nsACString& aOperation, int32_t aOSError) - : mOnSuccess(aOnSuccess) + : Runnable("ErrorEvent") + , mOnSuccess(aOnSuccess) , mOnError(aOnError) , mDiscardedResult(aDiscardedResult) , mOSError(aOSError) , mOperation(aOperation) - { - MOZ_ASSERT(!NS_IsMainThread()); + { + MOZ_ASSERT(!NS_IsMainThread()); } NS_IMETHOD Run() override { @@ -460,14 +461,16 @@ public: * we do not manipulate xpconnect refcounters off the main thread * (which is illegal). */ - SuccessEvent(nsMainThreadPtrHandle& aOnSuccess, - nsMainThreadPtrHandle& aOnError, - already_AddRefed& aResult) - : mOnSuccess(aOnSuccess) + SuccessEvent( + nsMainThreadPtrHandle& aOnSuccess, + nsMainThreadPtrHandle& aOnError, + already_AddRefed& aResult) + : Runnable("SuccessEvent") + , mOnSuccess(aOnSuccess) , mOnError(aOnError) , mResult(aResult) - { - MOZ_ASSERT(!NS_IsMainThread()); + { + MOZ_ASSERT(!NS_IsMainThread()); } NS_IMETHOD Run() override { @@ -500,9 +503,11 @@ public: */ class AbstractDoEvent: public Runnable { public: - AbstractDoEvent(nsMainThreadPtrHandle& aOnSuccess, - nsMainThreadPtrHandle& aOnError) - : mOnSuccess(aOnSuccess) + AbstractDoEvent( + nsMainThreadPtrHandle& aOnSuccess, + nsMainThreadPtrHandle& aOnError) + : Runnable("AbstractDoEvent") + , mOnSuccess(aOnSuccess) , mOnError(aOnError) #if defined(DEBUG) , mResolved(false) diff --git a/toolkit/components/places/FaviconHelpers.cpp b/toolkit/components/places/FaviconHelpers.cpp index b34267fd88eb..5666e25d86b3 100644 --- a/toolkit/components/places/FaviconHelpers.cpp +++ b/toolkit/components/places/FaviconHelpers.cpp @@ -504,7 +504,9 @@ AsyncFetchAndSetIconForPage::AsyncFetchAndSetIconForPage( , bool aFaviconLoadPrivate , nsIFaviconDataCallback* aCallback , nsIPrincipal* aLoadingPrincipal -) : mCallback(new nsMainThreadPtrHolder( +) + : Runnable("places::AsyncFetchAndSetIconForPage") + , mCallback(new nsMainThreadPtrHolder( "AsyncFetchAndSetIconForPage::mCallback", aCallback)) , mIcon(aIcon) , mPage(aPage) @@ -543,7 +545,9 @@ AsyncFetchAndSetIconForPage::Run() // Fetch the icon from the network, the request starts from the main-thread. // When done this will associate the icon to the page and notify. nsCOMPtr event = - NewRunnableMethod(this, &AsyncFetchAndSetIconForPage::FetchFromNetwork); + NewRunnableMethod("places::AsyncFetchAndSetIconForPage::FetchFromNetwork", + this, + &AsyncFetchAndSetIconForPage::FetchFromNetwork); return NS_DispatchToMainThread(event); } @@ -786,10 +790,11 @@ AsyncFetchAndSetIconForPage::OnStopRequest(nsIRequest* aRequest, //// AsyncAssociateIconToPage AsyncAssociateIconToPage::AsyncAssociateIconToPage( - const IconData& aIcon -, const PageData& aPage -, const nsMainThreadPtrHandle& aCallback -) : mCallback(aCallback) + const IconData& aIcon, + const PageData& aPage, + const nsMainThreadPtrHandle& aCallback) + : Runnable("places::AsyncAssociateIconToPage") + , mCallback(aCallback) , mIcon(aIcon) , mPage(aPage) { @@ -938,7 +943,8 @@ AsyncGetFaviconURLForPage::AsyncGetFaviconURLForPage( , const nsACString& aPageHost , uint16_t aPreferredWidth , nsIFaviconDataCallback* aCallback -) : mPreferredWidth(aPreferredWidth == 0 ? UINT16_MAX : aPreferredWidth) +) : Runnable("places::AsyncGetFaviconURLForPage") + , mPreferredWidth(aPreferredWidth == 0 ? UINT16_MAX : aPreferredWidth) , mCallback(new nsMainThreadPtrHolder( "AsyncGetFaviconURLForPage::mCallback", aCallback)) { @@ -978,7 +984,8 @@ AsyncGetFaviconDataForPage::AsyncGetFaviconDataForPage( , const nsACString& aPageHost , uint16_t aPreferredWidth , nsIFaviconDataCallback* aCallback -) : mPreferredWidth(aPreferredWidth == 0 ? UINT16_MAX : aPreferredWidth) +) : Runnable("places::AsyncGetFaviconDataForPage") + , mPreferredWidth(aPreferredWidth == 0 ? UINT16_MAX : aPreferredWidth) , mCallback(new nsMainThreadPtrHolder( "AsyncGetFaviconDataForPage::mCallback", aCallback)) { @@ -1018,8 +1025,9 @@ AsyncGetFaviconDataForPage::Run() //////////////////////////////////////////////////////////////////////////////// //// AsyncReplaceFaviconData -AsyncReplaceFaviconData::AsyncReplaceFaviconData(const IconData &aIcon) - : mIcon(aIcon) +AsyncReplaceFaviconData::AsyncReplaceFaviconData(const IconData& aIcon) + : Runnable("places::AsyncReplaceFaviconData") + , mIcon(aIcon) { MOZ_ASSERT(NS_IsMainThread()); } @@ -1044,8 +1052,10 @@ AsyncReplaceFaviconData::Run() NS_ENSURE_SUCCESS(rv, rv); // We can invalidate the cache version since we now persist the icon. - nsCOMPtr event = - NewRunnableMethod(this, &AsyncReplaceFaviconData::RemoveIconDataCacheEntry); + nsCOMPtr event = NewRunnableMethod( + "places::AsyncReplaceFaviconData::RemoveIconDataCacheEntry", + this, + &AsyncReplaceFaviconData::RemoveIconDataCacheEntry); rv = NS_DispatchToMainThread(event); NS_ENSURE_SUCCESS(rv, rv); @@ -1073,13 +1083,13 @@ AsyncReplaceFaviconData::RemoveIconDataCacheEntry() //// NotifyIconObservers NotifyIconObservers::NotifyIconObservers( - const IconData& aIcon -, const PageData& aPage -, const nsMainThreadPtrHandle& aCallback -) -: mCallback(aCallback) -, mIcon(aIcon) -, mPage(aPage) + const IconData& aIcon, + const PageData& aPage, + const nsMainThreadPtrHandle& aCallback) + : Runnable("places::NotifyIconObservers") + , mCallback(aCallback) + , mIcon(aIcon) + , mPage(aPage) { } @@ -1150,9 +1160,10 @@ NotifyIconObservers::SendGlobalNotifications(nsIURI* aIconURI) //////////////////////////////////////////////////////////////////////////////// //// FetchAndConvertUnsupportedPayloads -FetchAndConvertUnsupportedPayloads::FetchAndConvertUnsupportedPayloads ( - mozIStorageConnection* aDBConn -) : mDB(aDBConn) +FetchAndConvertUnsupportedPayloads::FetchAndConvertUnsupportedPayloads( + mozIStorageConnection* aDBConn) + : Runnable("places::FetchAndConvertUnsupportedPayloads") + , mDB(aDBConn) { } @@ -1381,11 +1392,11 @@ FetchAndConvertUnsupportedPayloads::StorePayload(int64_t aId, //////////////////////////////////////////////////////////////////////////////// //// AsyncCopyFavicons -AsyncCopyFavicons::AsyncCopyFavicons( - PageData& aFromPage -, PageData& aToPage -, nsIFaviconDataCallback* aCallback -) : mFromPage(aFromPage) +AsyncCopyFavicons::AsyncCopyFavicons(PageData& aFromPage, + PageData& aToPage, + nsIFaviconDataCallback* aCallback) + : Runnable("places::AsyncCopyFavicons") + , mFromPage(aFromPage) , mToPage(aToPage) , mCallback(new nsMainThreadPtrHolder( "AsyncCopyFavicons::mCallback", aCallback)) diff --git a/toolkit/components/places/Helpers.cpp b/toolkit/components/places/Helpers.cpp index 33aa89e88f06..39580041382a 100644 --- a/toolkit/components/places/Helpers.cpp +++ b/toolkit/components/places/Helpers.cpp @@ -321,7 +321,8 @@ GetHiddenState(bool aIsRedirect, //// PlacesEvent PlacesEvent::PlacesEvent(const char* aTopic) -: mTopic(aTopic) + : Runnable("places::PlacesEvent") + , mTopic(aTopic) { } diff --git a/toolkit/components/places/Helpers.h b/toolkit/components/places/Helpers.h index 854105f94004..514d679d9e82 100644 --- a/toolkit/components/places/Helpers.h +++ b/toolkit/components/places/Helpers.h @@ -193,11 +193,11 @@ public: */ FinalizeStatementCacheProxy( mozilla::storage::StatementCache& aStatementCache, - nsISupports* aOwner - ) - : mStatementCache(aStatementCache) - , mOwner(aOwner) - , mCallingThread(do_GetCurrentThread()) + nsISupports* aOwner) + : Runnable("places::FinalizeStatementCacheProxy") + , mStatementCache(aStatementCache) + , mOwner(aOwner) + , mCallingThread(do_GetCurrentThread()) { } diff --git a/toolkit/components/places/History.cpp b/toolkit/components/places/History.cpp index 3410e75e89e0..04f1b1d4cc5d 100644 --- a/toolkit/components/places/History.cpp +++ b/toolkit/components/places/History.cpp @@ -503,7 +503,10 @@ public: RefPtr cb = new VisitedQuery(aURI, callback, true); NS_ENSURE_TRUE(cb, NS_ERROR_OUT_OF_MEMORY); // As per IHistory contract, we must notify asynchronously. - NS_DispatchToMainThread(NewRunnableMethod(cb, &VisitedQuery::NotifyVisitedStatus)); + NS_DispatchToMainThread( + NewRunnableMethod("places::VisitedQuery::NotifyVisitedStatus", + cb, + &VisitedQuery::NotifyVisitedStatus)); return NS_OK; } @@ -623,8 +626,9 @@ class NotifyVisitObservers : public Runnable { public: explicit NotifyVisitObservers(VisitData& aPlace) - : mPlace(aPlace) - , mHistory(History::GetService()) + : Runnable("places::NotifyVisitObservers") + , mPlace(aPlace) + , mHistory(History::GetService()) { } @@ -700,9 +704,10 @@ public: NotifyTitleObservers(const nsCString& aSpec, const nsString& aTitle, const nsCString& aGUID) - : mSpec(aSpec) - , mTitle(aTitle) - , mGUID(aGUID) + : Runnable("places::NotifyTitleObservers") + , mSpec(aSpec) + , mTitle(aTitle) + , mGUID(aGUID) { } @@ -735,14 +740,16 @@ private: class NotifyPlaceInfoCallback : public Runnable { public: - NotifyPlaceInfoCallback(const nsMainThreadPtrHandle& aCallback, - const VisitData& aPlace, - bool aIsSingleVisit, - nsresult aResult) - : mCallback(aCallback) - , mPlace(aPlace) - , mResult(aResult) - , mIsSingleVisit(aIsSingleVisit) + NotifyPlaceInfoCallback( + const nsMainThreadPtrHandle& aCallback, + const VisitData& aPlace, + bool aIsSingleVisit, + nsresult aResult) + : Runnable("places::NotifyPlaceInfoCallback") + , mCallback(aCallback) + , mPlace(aPlace) + , mResult(aResult) + , mIsSingleVisit(aIsSingleVisit) { MOZ_ASSERT(aCallback, "Must pass a non-null callback!"); } @@ -805,10 +812,12 @@ private: class NotifyCompletion : public Runnable { public: - explicit NotifyCompletion(const nsMainThreadPtrHandle& aCallback, - uint32_t aUpdatedCount = 0) - : mCallback(aCallback) - , mUpdatedCount(aUpdatedCount) + explicit NotifyCompletion( + const nsMainThreadPtrHandle& aCallback, + uint32_t aUpdatedCount = 0) + : Runnable("places::NotifyCompletion") + , mCallback(aCallback) + , mUpdatedCount(aUpdatedCount) { MOZ_ASSERT(aCallback, "Must pass a non-null callback!"); } @@ -874,7 +883,10 @@ CanAddURI(nsIURI* aURI, class NotifyManyFrecenciesChanged final : public Runnable { public: - NotifyManyFrecenciesChanged() {} + NotifyManyFrecenciesChanged() + : Runnable("places::NotifyManyFrecenciesChanged") + { + } NS_IMETHOD Run() override { @@ -1063,20 +1075,22 @@ public: return NS_OK; } private: - InsertVisitedURIs(mozIStorageConnection* aConnection, - nsTArray& aPlaces, - const nsMainThreadPtrHandle& aCallback, - bool aGroupNotifications, - bool aIgnoreErrors, - bool aIgnoreResults, - uint32_t aInitialUpdatedCount) - : mDBConn(aConnection) - , mCallback(aCallback) - , mGroupNotifications(aGroupNotifications) - , mIgnoreErrors(aIgnoreErrors) - , mIgnoreResults(aIgnoreResults) - , mSuccessfulUpdatedCount(aInitialUpdatedCount) - , mHistory(History::GetService()) + InsertVisitedURIs( + mozIStorageConnection* aConnection, + nsTArray& aPlaces, + const nsMainThreadPtrHandle& aCallback, + bool aGroupNotifications, + bool aIgnoreErrors, + bool aIgnoreResults, + uint32_t aInitialUpdatedCount) + : Runnable("places::InsertVisitedURIs") + , mDBConn(aConnection) + , mCallback(aCallback) + , mGroupNotifications(aGroupNotifications) + , mIgnoreErrors(aIgnoreErrors) + , mIgnoreResults(aIgnoreResults) + , mSuccessfulUpdatedCount(aInitialUpdatedCount) + , mHistory(History::GetService()) { MOZ_ASSERT(NS_IsMainThread(), "This should be called on the main thread"); @@ -1400,9 +1414,9 @@ public: } private: - SetPageTitle(const nsCString& aSpec, - const nsAString& aTitle) - : mHistory(History::GetService()) + SetPageTitle(const nsCString& aSpec, const nsAString& aTitle) + : Runnable("places::SetPageTitle") + , mHistory(History::GetService()) { mPlace.spec = aSpec; mPlace.title = aTitle; @@ -1531,9 +1545,9 @@ NS_IMPL_ISUPPORTS( class NotifyRemoveVisits : public Runnable { public: - explicit NotifyRemoveVisits(nsTHashtable& aPlaces) - : mPlaces(VISITS_REMOVAL_INITIAL_HASH_LENGTH) + : Runnable("places::NotifyRemoveVisits") + , mPlaces(VISITS_REMOVAL_INITIAL_HASH_LENGTH) , mHistory(History::GetService()) { MOZ_ASSERT(!NS_IsMainThread(), @@ -1680,11 +1694,11 @@ public: } private: - RemoveVisits(mozIStorageConnection* aConnection, - RemoveVisitsFilter& aFilter) - : mDBConn(aConnection) - , mHasTransitionType(false) - , mHistory(History::GetService()) + RemoveVisits(mozIStorageConnection* aConnection, RemoveVisitsFilter& aFilter) + : Runnable("places::RemoveVisits") + , mDBConn(aConnection) + , mHasTransitionType(false) + , mHistory(History::GetService()) { MOZ_ASSERT(NS_IsMainThread(), "This should be called on the main thread"); diff --git a/toolkit/components/places/nsNavHistory.cpp b/toolkit/components/places/nsNavHistory.cpp index edf37a7ea3c4..3693c1512ab9 100644 --- a/toolkit/components/places/nsNavHistory.cpp +++ b/toolkit/components/places/nsNavHistory.cpp @@ -564,7 +564,8 @@ public: const nsACString& aGUID, bool aHidden, PRTime aLastVisitDate) - : mSpec(aSpec) + : mozilla::Runnable("FrecencyNotification") + , mSpec(aSpec) , mNewFrecency(aNewFrecency) , mGUID(aGUID) , mHidden(aHidden) @@ -675,9 +676,11 @@ nsNavHistory::GetNow() if (!mExpireNowTimer) mExpireNowTimer = do_CreateInstance("@mozilla.org/timer;1"); if (mExpireNowTimer) - mExpireNowTimer->InitWithFuncCallback(expireNowTimerCallback, this, - RENEW_CACHED_NOW_TIMEOUT, - nsITimer::TYPE_ONE_SHOT); + mExpireNowTimer->InitWithNamedFuncCallback(expireNowTimerCallback, + this, + RENEW_CACHED_NOW_TIMEOUT, + nsITimer::TYPE_ONE_SHOT, + "nsNavHistory::GetNow"); } return mCachedNow; } diff --git a/toolkit/components/places/tests/gtest/places_test_harness_tail.h b/toolkit/components/places/tests/gtest/places_test_harness_tail.h index fc363cb6a734..a6e3e0c54963 100644 --- a/toolkit/components/places/tests/gtest/places_test_harness_tail.h +++ b/toolkit/components/places/tests/gtest/places_test_harness_tail.h @@ -21,6 +21,7 @@ int gTestsIndex = 0; class RunNextTest : public mozilla::Runnable { public: + RunNextTest() : mozilla::Runnable("RunNextTest") {} NS_IMETHOD Run() override { NS_ASSERTION(NS_IsMainThread(), "Not running on the main thread?"); diff --git a/toolkit/components/satchel/nsFormFillController.cpp b/toolkit/components/satchel/nsFormFillController.cpp index b613e86a5c20..f277cce17ff2 100644 --- a/toolkit/components/satchel/nsFormFillController.cpp +++ b/toolkit/components/satchel/nsFormFillController.cpp @@ -149,8 +149,11 @@ nsFormFillController::AttributeChanged(nsIDocument* aDocument, // to avoid ending up in an endless loop due to re-registering our // mutation observer (which would notify us again for *this* event). nsCOMPtr event = - mozilla::NewRunnableMethod> - (this, &nsFormFillController::MaybeStartControllingInput, focusedInput); + mozilla::NewRunnableMethod>( + "nsFormFillController::MaybeStartControllingInput", + this, + &nsFormFillController::MaybeStartControllingInput, + focusedInput); NS_DispatchToCurrentThread(event); } diff --git a/toolkit/components/startup/nsAppStartup.cpp b/toolkit/components/startup/nsAppStartup.cpp index e824e91dedaf..75b418754773 100644 --- a/toolkit/components/startup/nsAppStartup.cpp +++ b/toolkit/components/startup/nsAppStartup.cpp @@ -103,7 +103,11 @@ private: RefPtr mService; public: - explicit nsAppExitEvent(nsAppStartup *service) : mService(service) {} + explicit nsAppExitEvent(nsAppStartup* service) + : mozilla::Runnable("nsAppExitEvent") + , mService(service) + { + } NS_IMETHOD Run() override { // Tell the appshell to exit diff --git a/toolkit/components/telemetry/Telemetry.cpp b/toolkit/components/telemetry/Telemetry.cpp index 0694633f0263..4f340facc3c1 100644 --- a/toolkit/components/telemetry/Telemetry.cpp +++ b/toolkit/components/telemetry/Telemetry.cpp @@ -553,10 +553,11 @@ public: nsFetchTelemetryData(const char* aShutdownTimeFilename, nsIFile* aFailedProfileLockFile, nsIFile* aProfileDir) - : mShutdownTimeFilename(aShutdownTimeFilename), - mFailedProfileLockFile(aFailedProfileLockFile), - mTelemetry(TelemetryImpl::sTelemetry), - mProfileDir(aProfileDir) + : mozilla::Runnable("nsFetchTelemetryData") + , mShutdownTimeFilename(aShutdownTimeFilename) + , mFailedProfileLockFile(aFailedProfileLockFile) + , mTelemetry(TelemetryImpl::sTelemetry) + , mProfileDir(aProfileDir) { } @@ -581,7 +582,9 @@ public: ReadLastShutdownDuration(mShutdownTimeFilename); mTelemetry->ReadLateWritesStacks(mProfileDir); nsCOMPtr e = - NewRunnableMethod(this, &nsFetchTelemetryData::MainThread); + NewRunnableMethod("nsFetchTelemetryData::MainThread", + this, + &nsFetchTelemetryData::MainThread); NS_ENSURE_STATE(e); NS_DispatchToMainThread(e); return NS_OK; @@ -1056,8 +1059,10 @@ class GetLoadedModulesResultRunnable final : public Runnable nsCOMPtr mWorkerThread; public: - GetLoadedModulesResultRunnable(const nsMainThreadPtrHandle& aPromise, const SharedLibraryInfo& rawModules) - : mPromise(aPromise) + GetLoadedModulesResultRunnable(const nsMainThreadPtrHandle& aPromise, + const SharedLibraryInfo& rawModules) + : mozilla::Runnable("GetLoadedModulesResultRunnable") + , mPromise(aPromise) , mRawModules(rawModules) , mWorkerThread(do_GetCurrentThread()) { @@ -1175,8 +1180,10 @@ class GetLoadedModulesRunnable final : public Runnable nsMainThreadPtrHandle mPromise; public: - explicit GetLoadedModulesRunnable(const nsMainThreadPtrHandle& aPromise) - : mPromise(aPromise) + explicit GetLoadedModulesRunnable( + const nsMainThreadPtrHandle& aPromise) + : mozilla::Runnable("GetLoadedModulesRunnable") + , mPromise(aPromise) { } NS_IMETHOD diff --git a/toolkit/components/telemetry/TelemetryCommon.cpp b/toolkit/components/telemetry/TelemetryCommon.cpp index 5d813c601aaa..77fdf77a6d51 100644 --- a/toolkit/components/telemetry/TelemetryCommon.cpp +++ b/toolkit/components/telemetry/TelemetryCommon.cpp @@ -102,8 +102,9 @@ LogToBrowserConsole(uint32_t aLogLevel, const nsAString& aMsg) { if (!NS_IsMainThread()) { nsString msg(aMsg); - nsCOMPtr task = - NS_NewRunnableFunction([aLogLevel, msg]() { LogToBrowserConsole(aLogLevel, msg); }); + nsCOMPtr task = NS_NewRunnableFunction( + "Telemetry::Common::LogToBrowserConsole", + [aLogLevel, msg]() { LogToBrowserConsole(aLogLevel, msg); }); NS_DispatchToMainThread(task.forget(), NS_DISPATCH_NORMAL); return; } diff --git a/toolkit/components/telemetry/tests/gtest/TestScalars.cpp b/toolkit/components/telemetry/tests/gtest/TestScalars.cpp index 1ce7fb758a6e..1efed54069c9 100644 --- a/toolkit/components/telemetry/tests/gtest/TestScalars.cpp +++ b/toolkit/components/telemetry/tests/gtest/TestScalars.cpp @@ -301,9 +301,11 @@ TEST_F(TelemetryTestFixture, NonMainThreadAdd) { Unused << mTelemetry->ClearScalars(); // Define the function that will be called on the testing thread. - nsCOMPtr runnable = NS_NewRunnableFunction([]() -> void { - Telemetry::ScalarAdd(Telemetry::ScalarID::TELEMETRY_TEST_UNSIGNED_INT_KIND, 37); - }); + nsCOMPtr runnable = NS_NewRunnableFunction( + "TelemetryTestFixture_NonMainThreadAdd_Test::TestBody", []() -> void { + Telemetry::ScalarAdd( + Telemetry::ScalarID::TELEMETRY_TEST_UNSIGNED_INT_KIND, 37); + }); // Spawn the testing thread and run the function. nsCOMPtr testingThread; diff --git a/toolkit/components/url-classifier/Classifier.cpp b/toolkit/components/url-classifier/Classifier.cpp index 1ee35dd593d3..aaa53dd84886 100644 --- a/toolkit/components/url-classifier/Classifier.cpp +++ b/toolkit/components/url-classifier/Classifier.cpp @@ -302,7 +302,8 @@ Classifier::Reset() return; } - nsCOMPtr r = NS_NewRunnableFunction(resetFunc); + nsCOMPtr r = + NS_NewRunnableFunction("safebrowsing::Classifier::Reset", resetFunc); SyncRunnable::DispatchToThread(mUpdateThread, r); } @@ -738,25 +739,30 @@ Classifier::AsyncApplyUpdates(nsTArray* aUpdates, nsCOMPtr callerThread = NS_GetCurrentThread(); MOZ_ASSERT(callerThread != mUpdateThread); - nsCOMPtr bgRunnable = NS_NewRunnableFunction([=] { - MOZ_ASSERT(NS_GetCurrentThread() == mUpdateThread, "MUST be on update thread"); + nsCOMPtr bgRunnable = + NS_NewRunnableFunction("safebrowsing::Classifier::AsyncApplyUpdates", [=] { + MOZ_ASSERT(NS_GetCurrentThread() == mUpdateThread, + "MUST be on update thread"); - LOG(("Step 1. ApplyUpdatesBackground on update thread.")); - nsCString failedTableName; - nsresult bgRv = ApplyUpdatesBackground(aUpdates, failedTableName); + LOG(("Step 1. ApplyUpdatesBackground on update thread.")); + nsCString failedTableName; + nsresult bgRv = ApplyUpdatesBackground(aUpdates, failedTableName); - nsCOMPtr fgRunnable = NS_NewRunnableFunction([=] { - MOZ_ASSERT(NS_GetCurrentThread() == callerThread, "MUST be on caller thread"); + nsCOMPtr fgRunnable = NS_NewRunnableFunction( + "safebrowsing::Classifier::AsyncApplyUpdates", [=] { + MOZ_ASSERT(NS_GetCurrentThread() == callerThread, + "MUST be on caller thread"); - LOG(("Step 2. ApplyUpdatesForeground on caller thread")); - nsresult rv = ApplyUpdatesForeground(bgRv, failedTableName);; + LOG(("Step 2. ApplyUpdatesForeground on caller thread")); + nsresult rv = ApplyUpdatesForeground(bgRv, failedTableName); + ; - LOG(("Step 3. Updates applied! Fire callback.")); + LOG(("Step 3. Updates applied! Fire callback.")); - aCallback(rv); + aCallback(rv); + }); + callerThread->Dispatch(fgRunnable, NS_DISPATCH_NORMAL); }); - callerThread->Dispatch(fgRunnable, NS_DISPATCH_NORMAL); - }); return mUpdateThread->Dispatch(bgRunnable, NS_DISPATCH_NORMAL); } diff --git a/toolkit/components/url-classifier/nsUrlClassifierDBService.cpp b/toolkit/components/url-classifier/nsUrlClassifierDBService.cpp index aad5fcbcb469..398929dc7b51 100644 --- a/toolkit/components/url-classifier/nsUrlClassifierDBService.cpp +++ b/toolkit/components/url-classifier/nsUrlClassifierDBService.cpp @@ -1830,39 +1830,41 @@ nsUrlClassifierDBService::AsyncClassifyLocalWithTables(nsIURI *aURI, new nsMainThreadPtrHolder( "nsIURIClassifierCallback", aCallback)); - nsCOMPtr r = - NS_NewRunnableFunction([worker, key, tables, callback, startTime] () -> void { + nsCOMPtr r = NS_NewRunnableFunction( + "nsUrlClassifierDBService::AsyncClassifyLocalWithTables", + [worker, key, tables, callback, startTime]() -> void { - nsCString matchedLists; - nsAutoPtr results(new LookupResultArray()); - if (results) { - nsresult rv = worker->DoLocalLookup(key, tables, results); - if (NS_SUCCEEDED(rv)) { - for (uint32_t i = 0; i < results->Length(); i++) { - if (i > 0) { - matchedLists.AppendLiteral(","); + nsCString matchedLists; + nsAutoPtr results(new LookupResultArray()); + if (results) { + nsresult rv = worker->DoLocalLookup(key, tables, results); + if (NS_SUCCEEDED(rv)) { + for (uint32_t i = 0; i < results->Length(); i++) { + if (i > 0) { + matchedLists.AppendLiteral(","); + } + matchedLists.Append(results->ElementAt(i).mTableName); } - matchedLists.Append(results->ElementAt(i).mTableName); } } - } - nsCOMPtr cbRunnable = - NS_NewRunnableFunction([callback, matchedLists, startTime] () -> void { - // Measure the time diff between calling and callback. - AccumulateDelta_impl::compute( - Telemetry::URLCLASSIFIER_ASYNC_CLASSIFYLOCAL_TIME, startTime); + nsCOMPtr cbRunnable = NS_NewRunnableFunction( + "nsUrlClassifierDBService::AsyncClassifyLocalWithTables", + [callback, matchedLists, startTime]() -> void { + // Measure the time diff between calling and callback. + AccumulateDelta_impl::compute( + Telemetry::URLCLASSIFIER_ASYNC_CLASSIFYLOCAL_TIME, startTime); - // |callback| is captured as const value so ... - auto cb = const_cast(callback.get()); - cb->OnClassifyComplete(NS_OK, // Not used. - matchedLists, - EmptyCString(), // provider. (Not used) - EmptyCString()); // prefix. (Not used) - }); + // |callback| is captured as const value so ... + auto cb = const_cast(callback.get()); + cb->OnClassifyComplete(NS_OK, // Not used. + matchedLists, + EmptyCString(), // provider. (Not used) + EmptyCString()); // prefix. (Not used) + }); - NS_DispatchToMainThread(cbRunnable); - }); + NS_DispatchToMainThread(cbRunnable); + }); return gDbBackgroundThread->Dispatch(r, NS_DISPATCH_NORMAL); } @@ -2266,8 +2268,10 @@ nsUrlClassifierDBService::Shutdown() // between main thread and the worker thread. (Both threads // would access Classifier::mUpdateThread.) using Worker = nsUrlClassifierDBServiceWorker; - RefPtr r = - NewRunnableMethod(mWorker, &Worker::FlushAndDisableAsyncUpdate); + RefPtr r = NewRunnableMethod( + "nsUrlClassifierDBServiceWorker::FlushAndDisableAsyncUpdate", + mWorker, + &Worker::FlushAndDisableAsyncUpdate); SyncRunnable::DispatchToThread(gDbBackgroundThread, r); // At this point the update thread has been shut down and diff --git a/toolkit/components/url-classifier/nsUrlClassifierProxies.cpp b/toolkit/components/url-classifier/nsUrlClassifierProxies.cpp index b48ae6bd666d..e5ff0dbc1604 100644 --- a/toolkit/components/url-classifier/nsUrlClassifierProxies.cpp +++ b/toolkit/components/url-classifier/nsUrlClassifierProxies.cpp @@ -113,7 +113,8 @@ NS_IMETHODIMP UrlClassifierDBServiceWorkerProxy::FinishStream() { nsCOMPtr r = - NewRunnableMethod(mTarget, + NewRunnableMethod("nsUrlClassifierDBServiceWorker::FinishStream", + mTarget, &nsUrlClassifierDBServiceWorker::FinishStream); return DispatchToWorkerThread(r); } @@ -147,7 +148,8 @@ NS_IMETHODIMP UrlClassifierDBServiceWorkerProxy::FinishUpdate() { nsCOMPtr r = - NewRunnableMethod(mTarget, + NewRunnableMethod("nsUrlClassifierDBServiceWorker::FinishUpdate", + mTarget, &nsUrlClassifierDBServiceWorker::FinishUpdate); return DispatchToWorkerThread(r); } @@ -156,7 +158,8 @@ NS_IMETHODIMP UrlClassifierDBServiceWorkerProxy::CancelUpdate() { nsCOMPtr r = - NewRunnableMethod(mTarget, + NewRunnableMethod("nsUrlClassifierDBServiceWorker::CancelUpdate", + mTarget, &nsUrlClassifierDBServiceWorker::CancelUpdate); return DispatchToWorkerThread(r); } @@ -165,7 +168,8 @@ NS_IMETHODIMP UrlClassifierDBServiceWorkerProxy::ResetDatabase() { nsCOMPtr r = - NewRunnableMethod(mTarget, + NewRunnableMethod("nsUrlClassifierDBServiceWorker::ResetDatabase", + mTarget, &nsUrlClassifierDBServiceWorker::ResetDatabase); return DispatchToWorkerThread(r); } @@ -174,7 +178,8 @@ NS_IMETHODIMP UrlClassifierDBServiceWorkerProxy::ReloadDatabase() { nsCOMPtr r = - NewRunnableMethod(mTarget, + NewRunnableMethod("nsUrlClassifierDBServiceWorker::ReloadDatabase", + mTarget, &nsUrlClassifierDBServiceWorker::ReloadDatabase); return DispatchToWorkerThread(r); } @@ -183,7 +188,8 @@ NS_IMETHODIMP UrlClassifierDBServiceWorkerProxy::ClearCache() { nsCOMPtr r = - NewRunnableMethod(mTarget, + NewRunnableMethod("nsUrlClassifierDBServiceWorker::ClearCache", + mTarget, &nsUrlClassifierDBServiceWorker::ClearCache); return DispatchToWorkerThread(r); } @@ -192,7 +198,8 @@ nsresult UrlClassifierDBServiceWorkerProxy::OpenDb() { nsCOMPtr r = - NewRunnableMethod(mTarget, + NewRunnableMethod("nsUrlClassifierDBServiceWorker::OpenDb", + mTarget, &nsUrlClassifierDBServiceWorker::OpenDb); return DispatchToWorkerThread(r); } @@ -201,7 +208,8 @@ nsresult UrlClassifierDBServiceWorkerProxy::CloseDb() { nsCOMPtr r = - NewRunnableMethod(mTarget, + NewRunnableMethod("nsUrlClassifierDBServiceWorker::CloseDb", + mTarget, &nsUrlClassifierDBServiceWorker::CloseDb); return DispatchToWorkerThread(r); } diff --git a/toolkit/components/url-classifier/nsUrlClassifierProxies.h b/toolkit/components/url-classifier/nsUrlClassifierProxies.h index cad88316657c..f337ed0fe2d2 100644 --- a/toolkit/components/url-classifier/nsUrlClassifierProxies.h +++ b/toolkit/components/url-classifier/nsUrlClassifierProxies.h @@ -35,7 +35,8 @@ public: nsIPrincipal* aPrincipal, const nsACString& aTables, nsIUrlClassifierCallback* aCB) - : mTarget(aTarget) + : mozilla::Runnable("UrlClassifierDBServiceWorkerProxy::LookupRunnable") + , mTarget(aTarget) , mPrincipal(aPrincipal) , mLookupTables(aTables) , mCB(aCB) @@ -55,7 +56,9 @@ public: public: GetTablesRunnable(nsUrlClassifierDBServiceWorker* aTarget, nsIUrlClassifierCallback* aCB) - : mTarget(aTarget) + : mozilla::Runnable( + "UrlClassifierDBServiceWorkerProxy::GetTablesRunnable") + , mTarget(aTarget) , mCB(aCB) { } @@ -72,7 +75,9 @@ public: BeginUpdateRunnable(nsUrlClassifierDBServiceWorker* aTarget, nsIUrlClassifierUpdateObserver* aUpdater, const nsACString& aTables) - : mTarget(aTarget) + : mozilla::Runnable( + "UrlClassifierDBServiceWorkerProxy::BeginUpdateRunnable") + , mTarget(aTarget) , mUpdater(aUpdater) , mTables(aTables) { } @@ -90,7 +95,9 @@ public: public: BeginStreamRunnable(nsUrlClassifierDBServiceWorker* aTarget, const nsACString& aTable) - : mTarget(aTarget) + : mozilla::Runnable( + "UrlClassifierDBServiceWorkerProxy::BeginStreamRunnable") + , mTarget(aTarget) , mTable(aTable) { } @@ -106,7 +113,9 @@ public: public: UpdateStreamRunnable(nsUrlClassifierDBServiceWorker* aTarget, const nsACString& aUpdateChunk) - : mTarget(aTarget) + : mozilla::Runnable( + "UrlClassifierDBServiceWorkerProxy::UpdateStreamRunnable") + , mTarget(aTarget) , mUpdateChunk(aUpdateChunk) { } @@ -121,8 +130,10 @@ public: { public: CacheCompletionsRunnable(nsUrlClassifierDBServiceWorker* aTarget, - mozilla::safebrowsing::CacheResultArray *aEntries) - : mTarget(aTarget) + mozilla::safebrowsing::CacheResultArray* aEntries) + : mozilla::Runnable( + "UrlClassifierDBServiceWorkerProxy::CacheCompletionsRunnable") + , mTarget(aTarget) , mEntries(aEntries) { } @@ -140,7 +151,9 @@ public: const nsACString& spec, const nsACString& tables, mozilla::safebrowsing::LookupResultArray* results) - : mTarget(aTarget) + : mozilla::Runnable( + "UrlClassifierDBServiceWorkerProxy::DoLocalLookupRunnable") + , mTarget(aTarget) , mSpec(spec) , mTables(tables) , mResults(results) @@ -159,7 +172,9 @@ public: { public: explicit ClearLastResultsRunnable(nsUrlClassifierDBServiceWorker* aTarget) - : mTarget(aTarget) + : mozilla::Runnable( + "UrlClassifierDBServiceWorkerProxy::ClearLastResultsRunnable") + , mTarget(aTarget) { } NS_DECL_NSIRUNNABLE @@ -173,9 +188,11 @@ public: explicit GetCacheInfoRunnable(nsUrlClassifierDBServiceWorker* aTarget, const nsACString& aTable, nsIUrlClassifierCacheInfo** aCache) - : mTarget(aTarget), - mTable(aTable), - mCache(aCache) + : mozilla::Runnable( + "UrlClassifierDBServiceWorkerProxy::GetCacheInfoRunnable") + , mTarget(aTarget) + , mTable(aTable) + , mCache(aCache) { } NS_DECL_NSIRUNNABLE @@ -220,9 +237,12 @@ public: class LookupCompleteRunnable : public mozilla::Runnable { public: - LookupCompleteRunnable(const nsMainThreadPtrHandle& aTarget, - mozilla::safebrowsing::LookupResultArray *aResults) - : mTarget(aTarget) + LookupCompleteRunnable( + const nsMainThreadPtrHandle& aTarget, + mozilla::safebrowsing::LookupResultArray* aResults) + : mozilla::Runnable( + "UrlClassifierLookupCallbackProxy::LookupCompleteRunnable") + , mTarget(aTarget) , mResults(aResults) { } @@ -253,9 +273,11 @@ public: class HandleEventRunnable : public mozilla::Runnable { public: - HandleEventRunnable(const nsMainThreadPtrHandle& aTarget, - const nsACString& aValue) - : mTarget(aTarget) + HandleEventRunnable( + const nsMainThreadPtrHandle& aTarget, + const nsACString& aValue) + : mozilla::Runnable("UrlClassifierCallbackProxy::HandleEventRunnable") + , mTarget(aTarget) , mValue(aValue) { } @@ -287,10 +309,13 @@ public: class UpdateUrlRequestedRunnable : public mozilla::Runnable { public: - UpdateUrlRequestedRunnable(const nsMainThreadPtrHandle& aTarget, - const nsACString& aURL, - const nsACString& aTable) - : mTarget(aTarget) + UpdateUrlRequestedRunnable( + const nsMainThreadPtrHandle& aTarget, + const nsACString& aURL, + const nsACString& aTable) + : mozilla::Runnable( + "UrlClassifierUpdateObserverProxy::UpdateUrlRequestedRunnable") + , mTarget(aTarget) , mURL(aURL) , mTable(aTable) { } @@ -305,9 +330,13 @@ public: class StreamFinishedRunnable : public mozilla::Runnable { public: - StreamFinishedRunnable(const nsMainThreadPtrHandle& aTarget, - nsresult aStatus, uint32_t aDelay) - : mTarget(aTarget) + StreamFinishedRunnable( + const nsMainThreadPtrHandle& aTarget, + nsresult aStatus, + uint32_t aDelay) + : mozilla::Runnable( + "UrlClassifierUpdateObserverProxy::StreamFinishedRunnable") + , mTarget(aTarget) , mStatus(aStatus) , mDelay(aDelay) { } @@ -323,9 +352,12 @@ public: class UpdateErrorRunnable : public mozilla::Runnable { public: - UpdateErrorRunnable(const nsMainThreadPtrHandle& aTarget, - nsresult aError) - : mTarget(aTarget) + UpdateErrorRunnable( + const nsMainThreadPtrHandle& aTarget, + nsresult aError) + : mozilla::Runnable( + "UrlClassifierUpdateObserverProxy::UpdateErrorRunnable") + , mTarget(aTarget) , mError(aError) { } @@ -339,9 +371,12 @@ public: class UpdateSuccessRunnable : public mozilla::Runnable { public: - UpdateSuccessRunnable(const nsMainThreadPtrHandle& aTarget, - uint32_t aRequestedTimeout) - : mTarget(aTarget) + UpdateSuccessRunnable( + const nsMainThreadPtrHandle& aTarget, + uint32_t aRequestedTimeout) + : mozilla::Runnable( + "UrlClassifierUpdateObserverProxy::UpdateSuccessRunnable") + , mTarget(aTarget) , mRequestedTimeout(aRequestedTimeout) { } diff --git a/toolkit/components/url-classifier/tests/gtest/Common.cpp b/toolkit/components/url-classifier/tests/gtest/Common.cpp index e8f89e854cd5..2d11cf87ccca 100644 --- a/toolkit/components/url-classifier/tests/gtest/Common.cpp +++ b/toolkit/components/url-classifier/tests/gtest/Common.cpp @@ -15,7 +15,8 @@ using namespace mozilla::safebrowsing; template void RunTestInNewThread(Function&& aFunction) { - nsCOMPtr r = NS_NewRunnableFunction(mozilla::Forward(aFunction)); + nsCOMPtr r = NS_NewRunnableFunction( + "RunTestInNewThread", mozilla::Forward(aFunction)); nsCOMPtr testingThread; nsresult rv = NS_NewNamedThread("Testing Thread", getter_AddRefs(testingThread), r); @@ -35,14 +36,15 @@ nsresult SyncApplyUpdates(Classifier* aClassifier, auto onUpdateComplete = [&done, &ret](nsresult rv) { // We are on the "ApplyUpdate" thread. Post an event to main thread // so that we can avoid busy waiting on the main thread. - nsCOMPtr r = NS_NewRunnableFunction([&done, &ret, rv] { - ret = rv; - done = true; - }); + nsCOMPtr r = + NS_NewRunnableFunction("SyncApplyUpdates", [&done, &ret, rv] { + ret = rv; + done = true; + }); NS_DispatchToMainThread(r); }; - nsCOMPtr r = NS_NewRunnableFunction([&]() { + nsCOMPtr r = NS_NewRunnableFunction("SyncApplyUpdates", [&]() { nsresult rv = aClassifier->AsyncApplyUpdates(aUpdates, onUpdateComplete); if (NS_FAILED(rv)) { onUpdateComplete(rv); diff --git a/toolkit/crashreporter/InjectCrashReporter.cpp b/toolkit/crashreporter/InjectCrashReporter.cpp index e82c8ee4d86b..22c200f1b028 100644 --- a/toolkit/crashreporter/InjectCrashReporter.cpp +++ b/toolkit/crashreporter/InjectCrashReporter.cpp @@ -17,7 +17,8 @@ using CrashReporter::GetChildNotificationPipe; namespace mozilla { InjectCrashRunnable::InjectCrashRunnable(DWORD pid) - : mPID(pid) + : Runnable("InjectCrashRunnable") + , mPID(pid) { nsCOMPtr dll; nsresult rv = NS_GetSpecialDirectory(NS_GRE_DIR, getter_AddRefs(dll)); diff --git a/toolkit/crashreporter/nsExceptionHandler.cpp b/toolkit/crashreporter/nsExceptionHandler.cpp index 01a3ff452799..b762b449bff6 100644 --- a/toolkit/crashreporter/nsExceptionHandler.cpp +++ b/toolkit/crashreporter/nsExceptionHandler.cpp @@ -318,7 +318,7 @@ static nsIThread* sInjectorThread; class ReportInjectedCrash : public Runnable { public: - explicit ReportInjectedCrash(uint32_t pid) : mPID(pid) { } + explicit ReportInjectedCrash(uint32_t pid) : Runnable("ReportInjectedCrash"), mPID(pid) { } NS_IMETHOD Run(); @@ -3427,6 +3427,7 @@ OOPInit() class ProxyToMainThread : public Runnable { public: + ProxyToMainThread() : Runnable("nsExceptionHandler::ProxyToMainThread") {} NS_IMETHOD Run() override { OOPInit(); return NS_OK; diff --git a/toolkit/crashreporter/test/gtest/TestCrashThreadAnnotation.cpp b/toolkit/crashreporter/test/gtest/TestCrashThreadAnnotation.cpp index a4325e6dd42f..7cb84905ee86 100644 --- a/toolkit/crashreporter/test/gtest/TestCrashThreadAnnotation.cpp +++ b/toolkit/crashreporter/test/gtest/TestCrashThreadAnnotation.cpp @@ -79,13 +79,14 @@ TEST(TestCrashThreadAnnotation, TestGetFlatThreadAnnotation_AfterShutdown) already_AddRefed CreateTestThread(const char* aName, Monitor& aMonitor, bool& aDone) { - nsCOMPtr setNameRunnable = NS_NewRunnableFunction([aName, &aMonitor, &aDone] () -> void { - NS_SetCurrentThreadName(aName); + nsCOMPtr setNameRunnable = NS_NewRunnableFunction( + "CrashReporter::CreateTestThread", [aName, &aMonitor, &aDone]() -> void { + NS_SetCurrentThreadName(aName); - MonitorAutoLock lock(aMonitor); - aDone = true; - aMonitor.NotifyAll(); - }); + MonitorAutoLock lock(aMonitor); + aDone = true; + aMonitor.NotifyAll(); + }); nsCOMPtr thread; mozilla::Unused << NS_NewThread(getter_AddRefs(thread), setNameRunnable); @@ -126,15 +127,18 @@ TEST(TestCrashThreadAnnotation, TestGetFlatThreadAnnotation_SetNameTwice) Monitor monitor("TestCrashThreadAnnotation"); bool threadNameSet = false; - nsCOMPtr setNameRunnable = NS_NewRunnableFunction([&] () -> void { - NS_SetCurrentThreadName("Thread1"); - // Set the name again. We should get the latest name. - NS_SetCurrentThreadName("Thread1Again"); + nsCOMPtr setNameRunnable = NS_NewRunnableFunction( + "CrashReporter::TestCrashThreadAnnotation_TestGetFlatThreadAnnotation_" + "SetNameTwice_Test::TestBody", + [&]() -> void { + NS_SetCurrentThreadName("Thread1"); + // Set the name again. We should get the latest name. + NS_SetCurrentThreadName("Thread1Again"); - MonitorAutoLock lock(monitor); - threadNameSet = true; - monitor.NotifyAll(); - }); + MonitorAutoLock lock(monitor); + threadNameSet = true; + monitor.NotifyAll(); + }); nsCOMPtr thread; nsresult rv = NS_NewThread(getter_AddRefs(thread), setNameRunnable); ASSERT_TRUE(NS_SUCCEEDED(rv)); diff --git a/toolkit/xre/ProfileReset.h b/toolkit/xre/ProfileReset.h index a164fe07513b..503ef6035086 100644 --- a/toolkit/xre/ProfileReset.h +++ b/toolkit/xre/ProfileReset.h @@ -20,7 +20,8 @@ class ProfileResetCleanupResultTask : public mozilla::Runnable { public: ProfileResetCleanupResultTask() - : mWorkerThread(do_GetCurrentThread()) + : mozilla::Runnable("ProfileResetCleanupResultTask") + , mWorkerThread(do_GetCurrentThread()) { MOZ_ASSERT(!NS_IsMainThread()); } @@ -38,9 +39,12 @@ private: class ProfileResetCleanupAsyncTask : public mozilla::Runnable { public: - ProfileResetCleanupAsyncTask(nsIFile* aProfileDir, nsIFile* aProfileLocalDir, - nsIFile* aTargetDir, const nsAString &aLeafName) - : mProfileDir(aProfileDir) + ProfileResetCleanupAsyncTask(nsIFile* aProfileDir, + nsIFile* aProfileLocalDir, + nsIFile* aTargetDir, + const nsAString& aLeafName) + : mozilla::Runnable("ProfileResetCleanupAsyncTask") + , mProfileDir(aProfileDir) , mProfileLocalDir(aProfileLocalDir) , mTargetDir(aTargetDir) , mLeafName(aLeafName) diff --git a/toolkit/xre/nsEmbedFunctions.cpp b/toolkit/xre/nsEmbedFunctions.cpp index 1fbcc961a728..8d40f84db1ed 100644 --- a/toolkit/xre/nsEmbedFunctions.cpp +++ b/toolkit/xre/nsEmbedFunctions.cpp @@ -751,10 +751,10 @@ class MainFunctionRunnable : public Runnable public: NS_DECL_NSIRUNNABLE - MainFunctionRunnable(MainFunction aFunction, - void* aData) - : mFunction(aFunction), - mData(aData) + MainFunctionRunnable(MainFunction aFunction, void* aData) + : mozilla::Runnable("MainFunctionRunnable") + , mFunction(aFunction) + , mData(aData) { NS_ASSERTION(aFunction, "Don't give me a null pointer!"); } diff --git a/toolkit/xre/nsNativeAppSupportUnix.cpp b/toolkit/xre/nsNativeAppSupportUnix.cpp index a04a79953cb0..0fb613bef33b 100644 --- a/toolkit/xre/nsNativeAppSupportUnix.cpp +++ b/toolkit/xre/nsNativeAppSupportUnix.cpp @@ -254,7 +254,10 @@ nsNativeAppSupportUnix::InteractCB(SmcConn smc_conn, SmPointer client_data) // means we won't process any more. libsm hates us if we do the InteractDone // with a pending ShutdownCancelled, and we would certainly like to handle Die // whilst a dialog is displayed - NS_DispatchToCurrentThread(NewRunnableMethod(self, &nsNativeAppSupportUnix::DoInteract)); + NS_DispatchToCurrentThread( + NewRunnableMethod("nsNativeAppSupportUnix::DoInteract", + self, + &nsNativeAppSupportUnix::DoInteract)); } void diff --git a/toolkit/xre/nsUpdateDriver.cpp b/toolkit/xre/nsUpdateDriver.cpp index 79ff15d7e277..e79a49061ef6 100644 --- a/toolkit/xre/nsUpdateDriver.cpp +++ b/toolkit/xre/nsUpdateDriver.cpp @@ -83,7 +83,8 @@ UpdateDriverSetupMacCommandLine(int& argc, char**& argv, bool restart) Monitor monitor("nsUpdateDriver SetupMacCommandLine"); nsresult rv = NS_DispatchToMainThread( - NS_NewRunnableFunction([&argc, &argv, restart, &monitor]() -> void + NS_NewRunnableFunction("UpdateDriverSetupMacCommandLine", + [&argc, &argv, restart, &monitor]() -> void { CommandLineServiceMac::SetupMacCommandLine(argc, argv, restart); MonitorAutoLock(monitor).Notify(); @@ -917,7 +918,10 @@ nsUpdateProcessor::ProcessUpdate(nsIUpdate* aUpdate) mInfo.mAppVersion = appVersion; MOZ_ASSERT(NS_IsMainThread(), "not main thread"); - nsCOMPtr r = NewRunnableMethod(this, &nsUpdateProcessor::StartStagedUpdate); + nsCOMPtr r = + NewRunnableMethod("nsUpdateProcessor::StartStagedUpdate", + this, + &nsUpdateProcessor::StartStagedUpdate); return NS_NewNamedThread("Update Watcher", getter_AddRefs(mProcessWatcher), r); } @@ -941,13 +945,19 @@ nsUpdateProcessor::StartStagedUpdate() if (mUpdaterPID) { // Track the state of the updater process while it is staging an update. - rv = NS_DispatchToCurrentThread(NewRunnableMethod(this, &nsUpdateProcessor::WaitForProcess)); + rv = NS_DispatchToCurrentThread( + NewRunnableMethod("nsUpdateProcessor::WaitForProcess", + this, + &nsUpdateProcessor::WaitForProcess)); NS_ENSURE_SUCCESS_VOID(rv); } else { // Failed to launch the updater process for some reason. // We need to shutdown the current thread as there isn't anything more for // us to do... - rv = NS_DispatchToMainThread(NewRunnableMethod(this, &nsUpdateProcessor::ShutdownWatcherThread)); + rv = NS_DispatchToMainThread( + NewRunnableMethod("nsUpdateProcessor::ShutdownWatcherThread", + this, + &nsUpdateProcessor::ShutdownWatcherThread)); NS_ENSURE_SUCCESS_VOID(rv); } } @@ -965,9 +975,13 @@ nsUpdateProcessor::WaitForProcess() { MOZ_ASSERT(!NS_IsMainThread(), "main thread"); if (ProcessHasTerminated(mUpdaterPID)) { - NS_DispatchToMainThread(NewRunnableMethod(this, &nsUpdateProcessor::UpdateDone)); + NS_DispatchToMainThread(NewRunnableMethod( + "nsUpdateProcessor::UpdateDone", this, &nsUpdateProcessor::UpdateDone)); } else { - NS_DispatchToCurrentThread(NewRunnableMethod(this, &nsUpdateProcessor::WaitForProcess)); + NS_DispatchToCurrentThread( + NewRunnableMethod("nsUpdateProcessor::WaitForProcess", + this, + &nsUpdateProcessor::WaitForProcess)); } } diff --git a/tools/profiler/core/platform.cpp b/tools/profiler/core/platform.cpp index 97b2fe426e0e..77d04fe46a0d 100644 --- a/tools/profiler/core/platform.cpp +++ b/tools/profiler/core/platform.cpp @@ -337,9 +337,10 @@ private: IOInterposer::Register(IOInterposeObserver::OpAll, mInterposeObserver); } else { RefPtr observer = mInterposeObserver; - NS_DispatchToMainThread(NS_NewRunnableFunction([=]() { - IOInterposer::Register(IOInterposeObserver::OpAll, observer); - })); + NS_DispatchToMainThread( + NS_NewRunnableFunction("ActivePS::ActivePS", [=]() { + IOInterposer::Register(IOInterposeObserver::OpAll, observer); + })); } } } @@ -353,9 +354,10 @@ private: IOInterposer::Unregister(IOInterposeObserver::OpAll, mInterposeObserver); } else { RefPtr observer = mInterposeObserver; - NS_DispatchToMainThread(NS_NewRunnableFunction([=]() { - IOInterposer::Unregister(IOInterposeObserver::OpAll, observer); - })); + NS_DispatchToMainThread( + NS_NewRunnableFunction("ActivePS::~ActivePS", [=]() { + IOInterposer::Unregister(IOInterposeObserver::OpAll, observer); + })); } } } @@ -2052,9 +2054,8 @@ NotifyObservers(const char* aTopic, nsISupports* aSubject = nullptr) // these notifications are only observed in the parent process, where the // profiler_* functions are currently only called on the main thread. nsCOMPtr subject = aSubject; - NS_DispatchToMainThread(NS_NewRunnableFunction([=] { - NotifyObservers(aTopic, subject); - })); + NS_DispatchToMainThread(NS_NewRunnableFunction( + "NotifyObservers", [=] { NotifyObservers(aTopic, subject); })); return; } diff --git a/tools/profiler/gecko/ChildProfilerController.cpp b/tools/profiler/gecko/ChildProfilerController.cpp index 9ecdf2281992..230a9cdf95b3 100644 --- a/tools/profiler/gecko/ChildProfilerController.cpp +++ b/tools/profiler/gecko/ChildProfilerController.cpp @@ -32,8 +32,11 @@ ChildProfilerController::Init(Endpoint&& aEndpoint) if (NS_SUCCEEDED(NS_NewNamedThread("ProfilerChild", getter_AddRefs(mThread)))) { // Now that mThread has been set, run SetupProfilerChild on the thread. mThread->Dispatch(NewRunnableMethod&&>( - this, &ChildProfilerController::SetupProfilerChild, Move(aEndpoint)), - NS_DISPATCH_NORMAL); + "ChildProfilerController::SetupProfilerChild", + this, + &ChildProfilerController::SetupProfilerChild, + Move(aEndpoint)), + NS_DISPATCH_NORMAL); } } @@ -56,8 +59,11 @@ ChildProfilerController::ShutdownAndMaybeGrabShutdownProfileFirst(nsCString* aOu { if (mThread) { mThread->Dispatch(NewRunnableMethod( - this, &ChildProfilerController::ShutdownProfilerChild, aOutShutdownProfile), - NS_DISPATCH_NORMAL); + "ChildProfilerController::ShutdownProfilerChild", + this, + &ChildProfilerController::ShutdownProfilerChild, + aOutShutdownProfile), + NS_DISPATCH_NORMAL); // Shut down the thread. This call will spin until all runnables (including // the ShutdownProfilerChild runnable) have been processed. mThread->Shutdown(); diff --git a/tools/profiler/gecko/ThreadResponsiveness.cpp b/tools/profiler/gecko/ThreadResponsiveness.cpp index 4f411f0754a8..8cc7d20ef359 100644 --- a/tools/profiler/gecko/ThreadResponsiveness.cpp +++ b/tools/profiler/gecko/ThreadResponsiveness.cpp @@ -18,7 +18,8 @@ class CheckResponsivenessTask : public mozilla::Runnable, public nsITimerCallback { public: CheckResponsivenessTask() - : mLastTracerTime(TimeStamp::Now()) + : mozilla::Runnable("CheckResponsivenessTask") + , mLastTracerTime(TimeStamp::Now()) , mMutex("CheckResponsivenessTask") , mTimer(nullptr) , mHasEverBeenSuccessfullyDispatched(false) diff --git a/tools/profiler/tests/gtest/GeckoProfiler.cpp b/tools/profiler/tests/gtest/GeckoProfiler.cpp index e4befc4622b8..dc883b99d5c9 100644 --- a/tools/profiler/tests/gtest/GeckoProfiler.cpp +++ b/tools/profiler/tests/gtest/GeckoProfiler.cpp @@ -184,10 +184,16 @@ TEST(GeckoProfiler, DifferentThreads) uint32_t features = ProfilerFeature::JS | ProfilerFeature::Threads; const char* filters[] = { "GeckoMain", "Compositor" }; - thread->Dispatch(NS_NewRunnableFunction([&]() { - profiler_start(PROFILER_DEFAULT_ENTRIES, PROFILER_DEFAULT_INTERVAL, - features, filters, MOZ_ARRAY_LENGTH(filters)); - }), NS_DISPATCH_SYNC); + thread->Dispatch( + NS_NewRunnableFunction("GeckoProfiler_DifferentThreads_Test::TestBody", + [&]() { + profiler_start(PROFILER_DEFAULT_ENTRIES, + PROFILER_DEFAULT_INTERVAL, + features, + filters, + MOZ_ARRAY_LENGTH(filters)); + }), + NS_DISPATCH_SYNC); ASSERT_TRUE(profiler_is_active()); ASSERT_TRUE(!profiler_feature_active(ProfilerFeature::GPU)); @@ -197,9 +203,10 @@ TEST(GeckoProfiler, DifferentThreads) ActiveParamsCheck(PROFILER_DEFAULT_ENTRIES, PROFILER_DEFAULT_INTERVAL, features, filters, MOZ_ARRAY_LENGTH(filters)); - thread->Dispatch(NS_NewRunnableFunction([&]() { - profiler_stop(); - }), NS_DISPATCH_SYNC); + thread->Dispatch( + NS_NewRunnableFunction("GeckoProfiler_DifferentThreads_Test::TestBody", + [&]() { profiler_stop(); }), + NS_DISPATCH_SYNC); InactiveFeaturesAndParamsCheck(); } @@ -213,21 +220,29 @@ TEST(GeckoProfiler, DifferentThreads) profiler_start(PROFILER_DEFAULT_ENTRIES, PROFILER_DEFAULT_INTERVAL, features, filters, MOZ_ARRAY_LENGTH(filters)); - thread->Dispatch(NS_NewRunnableFunction([&]() { - ASSERT_TRUE(profiler_is_active()); - ASSERT_TRUE(!profiler_feature_active(ProfilerFeature::GPU)); - ASSERT_TRUE(!profiler_feature_active(ProfilerFeature::Privacy)); - ASSERT_TRUE(!profiler_feature_active(ProfilerFeature::Restyle)); + thread->Dispatch( + NS_NewRunnableFunction( + "GeckoProfiler_DifferentThreads_Test::TestBody", + [&]() { + ASSERT_TRUE(profiler_is_active()); + ASSERT_TRUE(!profiler_feature_active(ProfilerFeature::GPU)); + ASSERT_TRUE(!profiler_feature_active(ProfilerFeature::Privacy)); + ASSERT_TRUE(!profiler_feature_active(ProfilerFeature::Restyle)); - ActiveParamsCheck(PROFILER_DEFAULT_ENTRIES, PROFILER_DEFAULT_INTERVAL, - features, filters, MOZ_ARRAY_LENGTH(filters)); - }), NS_DISPATCH_SYNC); + ActiveParamsCheck(PROFILER_DEFAULT_ENTRIES, + PROFILER_DEFAULT_INTERVAL, + features, + filters, + MOZ_ARRAY_LENGTH(filters)); + }), + NS_DISPATCH_SYNC); profiler_stop(); - thread->Dispatch(NS_NewRunnableFunction([&]() { - InactiveFeaturesAndParamsCheck(); - }), NS_DISPATCH_SYNC); + thread->Dispatch( + NS_NewRunnableFunction("GeckoProfiler_DifferentThreads_Test::TestBody", + [&]() { InactiveFeaturesAndParamsCheck(); }), + NS_DISPATCH_SYNC); } thread->Shutdown(); @@ -542,11 +557,15 @@ TEST(GeckoProfiler, StreamJSONForThisProcessThreaded) features, filters, MOZ_ARRAY_LENGTH(filters)); // Call profiler_stream_json_for_this_process on a background thread. - thread->Dispatch(NS_NewRunnableFunction([&]() { - w.Start(SpliceableJSONWriter::SingleLineStyle); - ASSERT_TRUE(profiler_stream_json_for_this_process(w)); - w.End(); - }), NS_DISPATCH_SYNC); + thread->Dispatch( + NS_NewRunnableFunction( + "GeckoProfiler_StreamJSONForThisProcessThreaded_Test::TestBody", + [&]() { + w.Start(SpliceableJSONWriter::SingleLineStyle); + ASSERT_TRUE(profiler_stream_json_for_this_process(w)); + w.End(); + }), + NS_DISPATCH_SYNC); UniquePtr profile = w.WriteFunc()->CopyData(); @@ -554,10 +573,14 @@ TEST(GeckoProfiler, StreamJSONForThisProcessThreaded) // Stop the profiler and call profiler_stream_json_for_this_process on a // background thread. - thread->Dispatch(NS_NewRunnableFunction([&]() { - profiler_stop(); - ASSERT_TRUE(!profiler_stream_json_for_this_process(w)); - }), NS_DISPATCH_SYNC); + thread->Dispatch( + NS_NewRunnableFunction( + "GeckoProfiler_StreamJSONForThisProcessThreaded_Test::TestBody", + [&]() { + profiler_stop(); + ASSERT_TRUE(!profiler_stream_json_for_this_process(w)); + }), + NS_DISPATCH_SYNC); thread->Shutdown(); // Call profiler_stream_json_for_this_process on the main thread. diff --git a/uriloader/prefetch/nsOfflineCacheUpdate.cpp b/uriloader/prefetch/nsOfflineCacheUpdate.cpp index 6081797bedab..ab3a57ea97e0 100644 --- a/uriloader/prefetch/nsOfflineCacheUpdate.cpp +++ b/uriloader/prefetch/nsOfflineCacheUpdate.cpp @@ -1751,8 +1751,10 @@ nsOfflineCacheUpdate::Begin() mItemsInProgress = 0; if (mState == STATE_CANCELLED) { - nsresult rv = NS_DispatchToMainThread(NewRunnableMethod(this, - &nsOfflineCacheUpdate::AsyncFinishWithError)); + nsresult rv = NS_DispatchToMainThread( + NewRunnableMethod("nsOfflineCacheUpdate::AsyncFinishWithError", + this, + &nsOfflineCacheUpdate::AsyncFinishWithError)); NS_ENSURE_SUCCESS(rv, rv); return NS_OK; diff --git a/view/nsView.cpp b/view/nsView.cpp index c1de2ecca4e1..d4e0bfb22e4f 100644 --- a/view/nsView.cpp +++ b/view/nsView.cpp @@ -134,7 +134,11 @@ class DestroyWidgetRunnable : public Runnable { public: NS_DECL_NSIRUNNABLE - explicit DestroyWidgetRunnable(nsIWidget* aWidget) : mWidget(aWidget) {} + explicit DestroyWidgetRunnable(nsIWidget* aWidget) + : mozilla::Runnable("DestroyWidgetRunnable") + , mWidget(aWidget) + { + } private: nsCOMPtr mWidget; diff --git a/widget/VsyncDispatcher.cpp b/widget/VsyncDispatcher.cpp index f6aeee54d4a0..cac138b7b08e 100644 --- a/widget/VsyncDispatcher.cpp +++ b/widget/VsyncDispatcher.cpp @@ -73,9 +73,11 @@ CompositorVsyncDispatcher::SetCompositorVsyncObserver(VsyncObserver* aVsyncObser } bool observeVsync = aVsyncObserver != nullptr; - nsCOMPtr vsyncControl = NewRunnableMethod(this, - &CompositorVsyncDispatcher::ObserveVsync, - observeVsync); + nsCOMPtr vsyncControl = + NewRunnableMethod("CompositorVsyncDispatcher::ObserveVsync", + this, + &CompositorVsyncDispatcher::ObserveVsync, + observeVsync); NS_DispatchToMainThread(vsyncControl); } @@ -164,8 +166,10 @@ void RefreshTimerVsyncDispatcher::UpdateVsyncStatus() { if (!NS_IsMainThread()) { - NS_DispatchToMainThread(NewRunnableMethod(this, - &RefreshTimerVsyncDispatcher::UpdateVsyncStatus)); + NS_DispatchToMainThread( + NewRunnableMethod("RefreshTimerVsyncDispatcher::UpdateVsyncStatus", + this, + &RefreshTimerVsyncDispatcher::UpdateVsyncStatus)); return; } diff --git a/widget/android/AndroidBridge.cpp b/widget/android/AndroidBridge.cpp index adeac2357c47..f97b2052c727 100644 --- a/widget/android/AndroidBridge.cpp +++ b/widget/android/AndroidBridge.cpp @@ -564,7 +564,7 @@ AndroidBridge::GetStaticStringField(const char *className, const char *fieldName namespace mozilla { class TracerRunnable : public Runnable{ public: - TracerRunnable() { + TracerRunnable() : Runnable("TracerRunnable") { mTracerLock = new Mutex("TracerRunnable"); mTracerCondVar = new CondVar(*mTracerLock, "TracerRunnable"); mMainThread = do_GetMainThread(); diff --git a/widget/android/AndroidJNIWrapper.cpp b/widget/android/AndroidJNIWrapper.cpp index e549c6fc7ca5..14af0e02fedc 100644 --- a/widget/android/AndroidJNIWrapper.cpp +++ b/widget/android/AndroidJNIWrapper.cpp @@ -20,6 +20,7 @@ extern "C" { class GetGlobalClassRefRunnable : public mozilla::Runnable { public: GetGlobalClassRefRunnable(const char *className, jclass *foundClass) : + mozilla::Runnable("GetGlobalClassRefRunnable"), mClassName(className), mResult(foundClass) {} NS_IMETHOD Run() override { *mResult = __jsjni_GetGlobalClassRef(mClassName); diff --git a/widget/android/AndroidUiThread.cpp b/widget/android/AndroidUiThread.cpp index 98b876b2bb29..ac97d289c370 100644 --- a/widget/android/AndroidUiThread.cpp +++ b/widget/android/AndroidUiThread.cpp @@ -105,7 +105,7 @@ NS_IMPL_ISUPPORTS(ThreadObserver, nsIThreadObserver) NS_IMETHODIMP ThreadObserver::OnDispatchedEvent(nsIThreadInternal *thread) { - AndroidBridge::Bridge()->PostTaskToUiThread(NS_NewRunnableFunction(&PumpEvents), 0); + AndroidBridge::Bridge()->PostTaskToUiThread(NS_NewRunnableFunction("PumpEvents", &PumpEvents), 0); return NS_OK; } @@ -123,7 +123,7 @@ ThreadObserver::AfterProcessNextEvent(nsIThreadInternal *thread, bool eventWasPr class CreateOnUiThread : public Runnable { public: - CreateOnUiThread() + CreateOnUiThread() : Runnable("CreateOnUiThread") {} NS_IMETHOD Run() override { @@ -141,7 +141,7 @@ public: class DestroyOnUiThread : public Runnable { public: - DestroyOnUiThread() : mDestroyed(false) + DestroyOnUiThread() : Runnable("DestroyOnUiThread"), mDestroyed(false) {} NS_IMETHOD Run() override { diff --git a/widget/android/EventDispatcher.cpp b/widget/android/EventDispatcher.cpp index 736889ba926f..d188563f5e26 100644 --- a/widget/android/EventDispatcher.cpp +++ b/widget/android/EventDispatcher.cpp @@ -650,7 +650,7 @@ public: // Invoke callbacks synchronously if we're already on Gecko thread. return aCall(); } - NS_DispatchToMainThread(NS_NewRunnableFunction(Move(aCall))); + NS_DispatchToMainThread(NS_NewRunnableFunction("OnNativeCall", Move(aCall))); } static void Finalize(const CallbackDelegate::LocalRef& aInstance) diff --git a/widget/android/fennec/ThumbnailHelper.h b/widget/android/fennec/ThumbnailHelper.h index 192e15c5271f..8908a55e85fd 100644 --- a/widget/android/fennec/ThumbnailHelper.h +++ b/widget/android/fennec/ThumbnailHelper.h @@ -206,7 +206,7 @@ public: void Run() override { MessageLoop::current()->PostIdleTask( - NS_NewRunnableFunction(Move(Base::lambda))); + NS_NewRunnableFunction("OnNativeCall", Move(Base::lambda))); } }; diff --git a/widget/android/jni/Natives.h b/widget/android/jni/Natives.h index 91e399aa786d..c889dd0d0583 100644 --- a/widget/android/jni/Natives.h +++ b/widget/android/jni/Natives.h @@ -527,7 +527,7 @@ struct Dispatcher // For a static method, do not forward the "this arg" (i.e. the class // local ref) if the implementation does not request it. This saves us // a pair of calls to add/delete global ref. - NS_DispatchToMainThread(NS_NewRunnableFunction(ProxyNativeCall< + NS_DispatchToMainThread(NS_NewRunnableFunction("ProxyNativeCall", ProxyNativeCall< Impl, typename Traits::Owner, IsStatic, HasThisArg, Args...>(HasThisArg || !IsStatic ? thisArg : nullptr, Forward(args)...))); diff --git a/widget/android/nsAppShell.cpp b/widget/android/nsAppShell.cpp index d83d07a16f1a..d896de80404b 100644 --- a/widget/android/nsAppShell.cpp +++ b/widget/android/nsAppShell.cpp @@ -149,6 +149,7 @@ public: { struct NoOpRunnable : Runnable { + NoOpRunnable() : Runnable("NoOpRunnable") {} NS_IMETHOD Run() override { return NS_OK; } }; diff --git a/widget/android/nsScreenManagerAndroid.cpp b/widget/android/nsScreenManagerAndroid.cpp index 3256a19876fd..1feafb2e9bab 100644 --- a/widget/android/nsScreenManagerAndroid.cpp +++ b/widget/android/nsScreenManagerAndroid.cpp @@ -120,6 +120,7 @@ public: int32_t screenId = -1; // return value nsCOMPtr mainThread = do_GetMainThread(); SyncRunnable::DispatchToThread(mainThread, NS_NewRunnableFunction( + "nsScreenManagerAndroid::ScreenManagerHelperSupport::AddDisplay", [&aDisplayType, &aWidth, &aHeight, &aDensity, &screenId] { MOZ_ASSERT(NS_IsMainThread()); nsCOMPtr screenMgr = @@ -141,6 +142,7 @@ public: static void RemoveDisplay(int32_t aScreenId) { nsCOMPtr mainThread = do_GetMainThread(); SyncRunnable::DispatchToThread(mainThread, NS_NewRunnableFunction( + "nsScreenManagerAndroid::ScreenManagerHelperSupport::RemoveDisplay", [&aScreenId] { MOZ_ASSERT(NS_IsMainThread()); nsCOMPtr screenMgr = diff --git a/widget/android/nsWindow.cpp b/widget/android/nsWindow.cpp index 8b9de5267c1e..51874948996c 100644 --- a/widget/android/nsWindow.cpp +++ b/widget/android/nsWindow.cpp @@ -1005,7 +1005,8 @@ public: if (!AndroidBridge::IsJavaUiThread()) { RefPtr uiThread = GetAndroidUiThread(); if (uiThread) { - uiThread->Dispatch(NewRunnableMethod(child, + uiThread->Dispatch(NewRunnableMethod("layers::UiCompositorControllerChild::InvalidateAndRender", + child, &UiCompositorControllerChild::InvalidateAndRender), nsIThread::DISPATCH_NORMAL); } @@ -1035,6 +1036,7 @@ public: RefPtr uiThread = GetAndroidUiThread(); if (uiThread) { uiThread->Dispatch(NewRunnableMethod( + "layers::UiCompositorControllerChild::SetPinned", child, &UiCompositorControllerChild::SetPinned, aPinned, aReason), nsIThread::DISPATCH_NORMAL); } @@ -1057,6 +1059,7 @@ public: RefPtr uiThread = GetAndroidUiThread(); if (uiThread) { uiThread->Dispatch(NewRunnableMethod( + "layers::UiCompositorControllerChild::ToolbarAnimatorMessageFromUI", child, &UiCompositorControllerChild::ToolbarAnimatorMessageFromUI, aMessage), nsIThread::DISPATCH_NORMAL); } diff --git a/widget/cocoa/nsChildView.mm b/widget/cocoa/nsChildView.mm index c258b673e7bc..1e07d123eef5 100644 --- a/widget/cocoa/nsChildView.mm +++ b/widget/cocoa/nsChildView.mm @@ -3224,7 +3224,7 @@ class WidgetsReleaserRunnable final : public mozilla::Runnable { public: explicit WidgetsReleaserRunnable(nsTArray>&& aWidgetArray) - : mWidgetArray(aWidgetArray) + : mozilla::Runnable("WidgetsReleaserRunnable"), mWidgetArray(aWidgetArray) { } diff --git a/widget/gtk/nsDeviceContextSpecG.cpp b/widget/gtk/nsDeviceContextSpecG.cpp index 294c7dd52d98..3dadc17d0add 100644 --- a/widget/gtk/nsDeviceContextSpecG.cpp +++ b/widget/gtk/nsDeviceContextSpecG.cpp @@ -258,7 +258,10 @@ gboolean nsDeviceContextSpecGTK::PrinterEnumerator(GtkPrinter *aPrinter, // misunderstanding what the capabilities of the printer are due to a // GTK bug (https://bugzilla.gnome.org/show_bug.cgi?id=753041). We // sidestep this by deferring the print to the next tick. - NS_DispatchToCurrentThread(NewRunnableMethod(spec, &nsDeviceContextSpecGTK::StartPrintJob)); + NS_DispatchToCurrentThread( + NewRunnableMethod("nsDeviceContextSpecGTK::StartPrintJob", + spec, + &nsDeviceContextSpecGTK::StartPrintJob)); return TRUE; } } @@ -316,7 +319,10 @@ NS_IMETHODIMP nsDeviceContextSpecGTK::EndDocument() } else { // We don't have a printer. We have to enumerate the printers and find // one with a matching name. - NS_DispatchToCurrentThread(NewRunnableMethod(this, &nsDeviceContextSpecGTK::EnumeratePrinters)); + NS_DispatchToCurrentThread( + NewRunnableMethod("nsDeviceContextSpecGTK::EnumeratePrinters", + this, + &nsDeviceContextSpecGTK::EnumeratePrinters)); } } else { // Handle print-to-file ourselves for the benefit of embedders diff --git a/widget/gtk/nsWindow.cpp b/widget/gtk/nsWindow.cpp index 19791d93fa1a..4f825b6fbfe1 100644 --- a/widget/gtk/nsWindow.cpp +++ b/widget/gtk/nsWindow.cpp @@ -2443,7 +2443,8 @@ nsWindow::OnSizeAllocate(GtkAllocation *aAllocation) // GtkWindow callers of gtk_widget_size_allocate expect the signal // handlers to return sometime in the near future. mNeedsDispatchResized = true; - NS_DispatchToCurrentThread(NewRunnableMethod(this, &nsWindow::MaybeDispatchResized)); + NS_DispatchToCurrentThread(NewRunnableMethod( + "nsWindow::MaybeDispatchResized", this, &nsWindow::MaybeDispatchResized)); } void @@ -4731,7 +4732,9 @@ nsWindow::GrabPointer(guint32 aTime) // popups don't rollup while potentially adjusting the grab for // this popup. nsCOMPtr event = - NewRunnableMethod(this, &nsWindow::CheckForRollupDuringGrab); + NewRunnableMethod("nsWindow::CheckForRollupDuringGrab", + this, + &nsWindow::CheckForRollupDuringGrab); NS_DispatchToCurrentThread(event.forget()); } } diff --git a/widget/nsBaseFilePicker.cpp b/widget/nsBaseFilePicker.cpp index 1ddfdba055a6..40d4ca69ea19 100644 --- a/widget/nsBaseFilePicker.cpp +++ b/widget/nsBaseFilePicker.cpp @@ -67,10 +67,11 @@ LocalFileToDirectoryOrBlob(nsPIDOMWindowInner* aWindow, class AsyncShowFilePicker : public mozilla::Runnable { public: - AsyncShowFilePicker(nsIFilePicker *aFilePicker, - nsIFilePickerShownCallback *aCallback) : - mFilePicker(aFilePicker), - mCallback(aCallback) + AsyncShowFilePicker(nsIFilePicker* aFilePicker, + nsIFilePickerShownCallback* aCallback) + : mozilla::Runnable("AsyncShowFilePicker") + , mFilePicker(aFilePicker) + , mCallback(aCallback) { } diff --git a/widget/nsBaseWidget.cpp b/widget/nsBaseWidget.cpp index 44a31742c897..14730cbd735f 100644 --- a/widget/nsBaseWidget.cpp +++ b/widget/nsBaseWidget.cpp @@ -926,11 +926,12 @@ void nsBaseWidget::ConfigureAPZCTreeManager() bool aPreventDefault) { MOZ_ASSERT(NS_IsMainThread()); - APZThreadUtils::RunOnControllerThread(NewRunnableMethod - (treeManager, - &IAPZCTreeManager::ContentReceivedInputBlock, - aInputBlockId, - aPreventDefault)); + APZThreadUtils::RunOnControllerThread(NewRunnableMethod( + "layers::IAPZCTreeManager::ContentReceivedInputBlock", + treeManager, + &IAPZCTreeManager::ContentReceivedInputBlock, + aInputBlockId, + aPreventDefault)); }); mAPZEventState = new APZEventState(this, mozilla::Move(callback)); @@ -938,11 +939,14 @@ void nsBaseWidget::ConfigureAPZCTreeManager() const nsTArray& aFlags) { MOZ_ASSERT(NS_IsMainThread()); - APZThreadUtils::RunOnControllerThread(NewRunnableMethod - >>(treeManager, - &IAPZCTreeManager::SetAllowedTouchBehavior, - aInputBlockId, aFlags)); + APZThreadUtils::RunOnControllerThread( + NewRunnableMethod>>( + "layers::IAPZCTreeManager::SetAllowedTouchBehavior", + treeManager, + &IAPZCTreeManager::SetAllowedTouchBehavior, + aInputBlockId, + aFlags)); }; mRootContentController = CreateRootContentController(); @@ -969,10 +973,14 @@ void nsBaseWidget::SetConfirmedTargetAPZC(uint64_t aInputBlockId, const nsTArray& aTargets) const { - APZThreadUtils::RunOnControllerThread(NewRunnableMethod - >>(mAPZC, - &IAPZCTreeManager::SetTargetAPZC, - aInputBlockId, aTargets)); + APZThreadUtils::RunOnControllerThread( + NewRunnableMethod>>( + "layers::IAPZCTreeManager::SetTargetAPZC", + mAPZC, + &IAPZCTreeManager::SetTargetAPZC, + aInputBlockId, + aTargets)); } void @@ -1077,7 +1085,8 @@ public: nsEventStatus aAPZResult, uint64_t aInputBlockId, ScrollableLayerGuid aGuid) - : mWheelInput(aWheelInput) + : mozilla::Runnable("DispatchWheelEventOnMainThread") + , mWheelInput(aWheelInput) , mWidget(aWidget) , mAPZResult(aAPZResult) , mInputBlockId(aInputBlockId) @@ -1106,7 +1115,8 @@ public: DispatchWheelInputOnControllerThread(const WidgetWheelEvent& aWheelEvent, IAPZCTreeManager* aAPZC, nsBaseWidget* aWidget) - : mMainMessageLoop(MessageLoop::current()) + : mozilla::Runnable("DispatchWheelInputOnControllerThread") + , mMainMessageLoop(MessageLoop::current()) , mWheelInput(aWheelEvent) , mAPZC(aAPZC) , mWidget(aWidget) @@ -1881,10 +1891,13 @@ nsBaseWidget::StartAsyncScrollbarDrag(const AsyncDragMetrics& aDragMetrics) uint64_t layersId = mCompositorSession->RootLayerTreeId(); ScrollableLayerGuid guid(layersId, aDragMetrics.mPresShellId, aDragMetrics.mViewId); - APZThreadUtils::RunOnControllerThread(NewRunnableMethod - (mAPZC, - &IAPZCTreeManager::StartScrollbarDrag, - guid, aDragMetrics)); + APZThreadUtils::RunOnControllerThread( + NewRunnableMethod( + "layers::IAPZCTreeManager::StartScrollbarDrag", + mAPZC, + &IAPZCTreeManager::StartScrollbarDrag, + guid, + aDragMetrics)); } already_AddRefed @@ -1943,9 +1956,12 @@ nsIWidget::SynthesizeNativeTouchTap(LayoutDeviceIntPoint aPoint, bool aLongTap, if (timeout > TOUCH_INJECT_PUMP_TIMER_MSEC) { timeout = TOUCH_INJECT_PUMP_TIMER_MSEC; } - mLongTapTimer->InitWithFuncCallback(OnLongTapTimerCallback, this, - timeout, - nsITimer::TYPE_REPEATING_SLACK); + mLongTapTimer->InitWithNamedFuncCallback( + OnLongTapTimerCallback, + this, + timeout, + nsITimer::TYPE_REPEATING_SLACK, + "nsIWidget::SynthesizeNativeTouchTap"); } // If we already have a long tap pending, cancel it. We only allow one long diff --git a/widget/nsIdleService.cpp b/widget/nsIdleService.cpp index 80392322a029..d2d9daf18447 100644 --- a/widget/nsIdleService.cpp +++ b/widget/nsIdleService.cpp @@ -143,10 +143,11 @@ nsIdleServiceDaily::Observe(nsISupports *, ("nsIdleServiceDaily: Restarting daily timer")); // Start timer for the next check in one day. - (void)mTimer->InitWithFuncCallback(DailyCallback, - this, - SECONDS_PER_DAY * PR_MSEC_PER_SEC, - nsITimer::TYPE_ONE_SHOT); + (void)mTimer->InitWithNamedFuncCallback(DailyCallback, + this, + SECONDS_PER_DAY * PR_MSEC_PER_SEC, + nsITimer::TYPE_ONE_SHOT, + "nsIdleServiceDaily::Observe"); return NS_OK; } @@ -218,10 +219,11 @@ nsIdleServiceDaily::Init() mExpectedTriggerTime = PR_Now() + (milliSecLeftUntilDaily * PR_USEC_PER_MSEC); - (void)mTimer->InitWithFuncCallback(DailyCallback, - this, - milliSecLeftUntilDaily, - nsITimer::TYPE_ONE_SHOT); + (void)mTimer->InitWithNamedFuncCallback(DailyCallback, + this, + milliSecLeftUntilDaily, + nsITimer::TYPE_ONE_SHOT, + "nsIdleServiceDaily::Init"); } // Register for when we should terminate/pause @@ -292,10 +294,12 @@ nsIdleServiceDaily::DailyCallback(nsITimer* aTimer, void* aClosure) delayTime / PR_USEC_PER_MSEC); #endif - (void)self->mTimer->InitWithFuncCallback(DailyCallback, - self, - delayTime / PR_USEC_PER_MSEC, - nsITimer::TYPE_ONE_SHOT); + (void)self->mTimer->InitWithNamedFuncCallback( + DailyCallback, + self, + delayTime / PR_USEC_PER_MSEC, + nsITimer::TYPE_ONE_SHOT, + "nsIdleServiceDaily::DailyCallback"); return; } @@ -828,11 +832,11 @@ nsIdleService::SetTimerExpiryIfBefore(TimeStamp aNextTimeout) #endif // Start the timer - mTimer->InitWithFuncCallback(StaticIdleTimerCallback, - this, - deltaTime.ToMilliseconds(), - nsITimer::TYPE_ONE_SHOT); - + mTimer->InitWithNamedFuncCallback(StaticIdleTimerCallback, + this, + deltaTime.ToMilliseconds(), + nsITimer::TYPE_ONE_SHOT, + "nsIdleService::SetTimerExpiryIfBefore"); } } diff --git a/widget/windows/AudioSession.cpp b/widget/windows/AudioSession.cpp index 5a5db2f02fc5..f077dd48a113 100644 --- a/widget/windows/AudioSession.cpp +++ b/widget/windows/AudioSession.cpp @@ -409,7 +409,8 @@ AudioSession::OnSessionDisconnected(AudioSessionDisconnectReason aReason) // Run our code asynchronously. Per MSDN we can't do anything interesting // in this callback. nsCOMPtr runnable = - NewRunnableMethod(this, &AudioSession::OnSessionDisconnectedInternal); + NewRunnableMethod("widget::AudioSession::OnSessionDisconnectedInternal", + this, &AudioSession::OnSessionDisconnectedInternal); NS_DispatchToMainThread(runnable); return S_OK; } diff --git a/widget/windows/LSPAnnotator.cpp b/widget/windows/LSPAnnotator.cpp index 9132ceb2b02f..5a36bc26d10c 100644 --- a/widget/windows/LSPAnnotator.cpp +++ b/widget/windows/LSPAnnotator.cpp @@ -29,6 +29,7 @@ class LSPAnnotationGatherer : public Runnable ~LSPAnnotationGatherer() {} public: + LSPAnnotationGatherer() : Runnable("crashreporter::LSPAnnotationGatherer") {} NS_DECL_NSIRUNNABLE void Annotate(); @@ -137,7 +138,8 @@ LSPAnnotationGatherer::Run() } mString = str; - NS_DispatchToMainThread(NewRunnableMethod(this, &LSPAnnotationGatherer::Annotate)); + NS_DispatchToMainThread(NewRunnableMethod("crashreporter::LSPAnnotationGatherer::Annotate", + this, &LSPAnnotationGatherer::Annotate)); return NS_OK; } diff --git a/widget/windows/WidgetTraceEvent.cpp b/widget/windows/WidgetTraceEvent.cpp index 4e4be3af3ca7..915a72fd7747 100644 --- a/widget/windows/WidgetTraceEvent.cpp +++ b/widget/windows/WidgetTraceEvent.cpp @@ -34,7 +34,7 @@ HANDLE sEventHandle = nullptr; // thread. class HWNDGetter : public mozilla::Runnable { public: - HWNDGetter() : hidden_window_hwnd(nullptr) {} + HWNDGetter() : Runnable("HWNDGetter"), hidden_window_hwnd(nullptr) {} HWND hidden_window_hwnd; diff --git a/widget/windows/nsColorPicker.cpp b/widget/windows/nsColorPicker.cpp index 777169f9783d..c4a9d6823ece 100644 --- a/widget/windows/nsColorPicker.cpp +++ b/widget/windows/nsColorPicker.cpp @@ -96,7 +96,8 @@ static AsyncColorChooser* gColorChooser; AsyncColorChooser::AsyncColorChooser(COLORREF aInitialColor, nsIWidget* aParentWidget, nsIColorPickerShownCallback* aCallback) - : mInitialColor(aInitialColor) + : mozilla::Runnable("AsyncColorChooser") + , mInitialColor(aInitialColor) , mColor(aInitialColor) , mParentWidget(aParentWidget) , mCallback(aCallback) diff --git a/widget/windows/nsSound.cpp b/widget/windows/nsSound.cpp index 7c8b73d65627..7086ef831936 100644 --- a/widget/windows/nsSound.cpp +++ b/widget/windows/nsSound.cpp @@ -34,13 +34,13 @@ static mozilla::LazyLogModule gWin32SoundLog("nsSound"); class nsSoundPlayer: public mozilla::Runnable { public: nsSoundPlayer(nsSound *aSound, const wchar_t* aSoundName) : - mSoundName(aSoundName), mSound(aSound) + Runnable("nsSoundPlayer"), mSoundName(aSoundName), mSound(aSound) { Init(); } nsSoundPlayer(nsSound *aSound, const nsAString& aSoundName) : - mSoundName(aSoundName), mSound(aSound) + Runnable("nsSoundPlayer"), mSoundName(aSoundName), mSound(aSound) { Init(); } @@ -62,6 +62,7 @@ protected: class SoundReleaser: public mozilla::Runnable { public: explicit SoundReleaser(nsSound* aSound) : + Runnable("SoundReleaser"), mSound(aSound) { } diff --git a/widget/windows/nsWindow.cpp b/widget/windows/nsWindow.cpp index 07f5f8dd329e..fb80898b9222 100644 --- a/widget/windows/nsWindow.cpp +++ b/widget/windows/nsWindow.cpp @@ -5328,7 +5328,8 @@ nsWindow::ProcessMessage(UINT msg, WPARAM& wParam, LPARAM& lParam, if (wParam == TRUE && !gfxEnv::DisableForcePresent() && gfxWindowsPlatform::GetPlatform()->DwmCompositionEnabled()) { - NS_DispatchToMainThread(NewRunnableMethod(this, &nsWindow::ForcePresent)); + NS_DispatchToMainThread(NewRunnableMethod("nsWindow::ForcePresent", + this, &nsWindow::ForcePresent)); } // let the dwm handle nc painting on glass diff --git a/widget/windows/nsWindowGfx.cpp b/widget/windows/nsWindowGfx.cpp index b0bb5f66c2d1..fe9523dcefb5 100644 --- a/widget/windows/nsWindowGfx.cpp +++ b/widget/windows/nsWindowGfx.cpp @@ -394,7 +394,7 @@ bool nsWindow::OnPaint(HDC aDC, uint32_t aNestingLevel) this, LayoutDeviceIntRegion::FromUnknownRegion(region)); if (!gfxEnv::DisableForcePresent() && gfxWindowsPlatform::GetPlatform()->DwmCompositionEnabled()) { nsCOMPtr event = - NewRunnableMethod(this, &nsWindow::ForcePresent); + NewRunnableMethod("nsWindow::ForcePresent", this, &nsWindow::ForcePresent); NS_DispatchToMainThread(event); } } diff --git a/xpcom/base/CycleCollectedJSContext.cpp b/xpcom/base/CycleCollectedJSContext.cpp index 8347159eeefe..0da8c5703f1f 100644 --- a/xpcom/base/CycleCollectedJSContext.cpp +++ b/xpcom/base/CycleCollectedJSContext.cpp @@ -186,9 +186,12 @@ CycleCollectedJSContext::SizeOfExcludingThis(MallocSizeOf aMallocSizeOf) const class PromiseJobRunnable final : public Runnable { public: - PromiseJobRunnable(JS::HandleObject aCallback, JS::HandleObject aAllocationSite, + PromiseJobRunnable(JS::HandleObject aCallback, + JS::HandleObject aAllocationSite, nsIGlobalObject* aIncumbentGlobal) - : mCallback(new PromiseJobCallback(aCallback, aAllocationSite, aIncumbentGlobal)) + : Runnable("PromiseJobRunnable") + , mCallback( + new PromiseJobCallback(aCallback, aAllocationSite, aIncumbentGlobal)) { } diff --git a/xpcom/base/nsConsoleService.cpp b/xpcom/base/nsConsoleService.cpp index 2283f2c9facc..125aafcad6c5 100644 --- a/xpcom/base/nsConsoleService.cpp +++ b/xpcom/base/nsConsoleService.cpp @@ -127,7 +127,9 @@ nsConsoleService::~nsConsoleService() class AddConsolePrefWatchers : public Runnable { public: - explicit AddConsolePrefWatchers(nsConsoleService* aConsole) : mConsole(aConsole) + explicit AddConsolePrefWatchers(nsConsoleService* aConsole) + : mozilla::Runnable("AddConsolePrefWatchers") + , mConsole(aConsole) { } @@ -168,7 +170,8 @@ class LogMessageRunnable : public Runnable { public: LogMessageRunnable(nsIConsoleMessage* aMessage, nsConsoleService* aService) - : mMessage(aMessage) + : mozilla::Runnable("LogMessageRunnable") + , mMessage(aMessage) , mService(aService) { } diff --git a/xpcom/base/nsCycleCollector.cpp b/xpcom/base/nsCycleCollector.cpp index 128d99a2c8e5..5fc3778651d5 100644 --- a/xpcom/base/nsCycleCollector.cpp +++ b/xpcom/base/nsCycleCollector.cpp @@ -1488,7 +1488,9 @@ struct CCGraphDescriber : public LinkedListElement class LogStringMessageAsync : public CancelableRunnable { public: - explicit LogStringMessageAsync(const nsAString& aMsg) : mMsg(aMsg) + explicit LogStringMessageAsync(const nsAString& aMsg) + : mozilla::CancelableRunnable("LogStringMessageAsync") + , mMsg(aMsg) {} NS_IMETHOD Run() override diff --git a/xpcom/base/nsDumpUtils.cpp b/xpcom/base/nsDumpUtils.cpp index c68862d08a47..8e822457ccea 100644 --- a/xpcom/base/nsDumpUtils.cpp +++ b/xpcom/base/nsDumpUtils.cpp @@ -74,7 +74,8 @@ FdWatcher::Init() nsCOMPtr os = services::GetObserverService(); os->AddObserver(this, "xpcom-shutdown", /* ownsWeak = */ false); - XRE_GetIOMessageLoop()->PostTask(NewRunnableMethod(this, &FdWatcher::StartWatching)); + XRE_GetIOMessageLoop()->PostTask(NewRunnableMethod( + "FdWatcher::StartWatching", this, &FdWatcher::StartWatching)); } // Implementations may call this function multiple times if they ensure that diff --git a/xpcom/base/nsDumpUtils.h b/xpcom/base/nsDumpUtils.h index 12a99da18dc9..86c74dbdcd6b 100644 --- a/xpcom/base/nsDumpUtils.h +++ b/xpcom/base/nsDumpUtils.h @@ -89,7 +89,8 @@ public: MOZ_ASSERT(NS_IsMainThread()); MOZ_ASSERT(!strcmp(aTopic, "xpcom-shutdown")); - XRE_GetIOMessageLoop()->PostTask(mozilla::NewRunnableMethod(this, &FdWatcher::StopWatching)); + XRE_GetIOMessageLoop()->PostTask(mozilla::NewRunnableMethod( + "FdWatcher::StopWatching", this, &FdWatcher::StopWatching)); return NS_OK; } diff --git a/xpcom/base/nsMemoryInfoDumper.cpp b/xpcom/base/nsMemoryInfoDumper.cpp index 06453b126ffd..867b9eb2ed03 100644 --- a/xpcom/base/nsMemoryInfoDumper.cpp +++ b/xpcom/base/nsMemoryInfoDumper.cpp @@ -61,8 +61,10 @@ class DumpMemoryInfoToTempDirRunnable : public Runnable { public: DumpMemoryInfoToTempDirRunnable(const nsAString& aIdentifier, - bool aAnonymize, bool aMinimizeMemoryUsage) - : mIdentifier(aIdentifier) + bool aAnonymize, + bool aMinimizeMemoryUsage) + : mozilla::Runnable("DumpMemoryInfoToTempDirRunnable") + , mIdentifier(aIdentifier) , mAnonymize(aAnonymize) , mMinimizeMemoryUsage(aMinimizeMemoryUsage) { @@ -93,7 +95,8 @@ public: GCAndCCLogDumpRunnable(const nsAString& aIdentifier, bool aDumpAllTraces, bool aDumpChildProcesses) - : mIdentifier(aIdentifier) + : mozilla::Runnable("GCAndCCLogDumpRunnable") + , mIdentifier(aIdentifier) , mDumpAllTraces(aDumpAllTraces) , mDumpChildProcesses(aDumpChildProcesses) { diff --git a/xpcom/base/nsMemoryReporterManager.cpp b/xpcom/base/nsMemoryReporterManager.cpp index 323a753f75c6..f34ba97b5628 100644 --- a/xpcom/base/nsMemoryReporterManager.cpp +++ b/xpcom/base/nsMemoryReporterManager.cpp @@ -1679,7 +1679,9 @@ nsMemoryReporterManager::GetReportsExtended( if (aMinimize) { nsCOMPtr callback = - NewRunnableMethod(this, &nsMemoryReporterManager::StartGettingReports); + NewRunnableMethod("nsMemoryReporterManager::StartGettingReports", + this, + &nsMemoryReporterManager::StartGettingReports); rv = MinimizeMemoryUsage(callback); } else { rv = StartGettingReports(); @@ -1737,9 +1739,12 @@ nsMemoryReporterManager::StartGettingReports() FinishReporting(); return NS_ERROR_FAILURE; } - rv = timer->InitWithFuncCallback(TimeoutCallback, - this, kTimeoutLengthMS, - nsITimer::TYPE_ONE_SHOT); + rv = timer->InitWithNamedFuncCallback( + TimeoutCallback, + this, + kTimeoutLengthMS, + nsITimer::TYPE_ONE_SHOT, + "nsMemoryReporterManager::StartGettingReports"); if (NS_WARN_IF(NS_FAILED(rv))) { FinishReporting(); return rv; @@ -1768,7 +1773,8 @@ nsMemoryReporterManager::DispatchReporter( nsCOMPtr handleReportData = aHandleReportData; nsCOMPtr event = NS_NewRunnableFunction( - [self, reporter, aIsAsync, handleReport, handleReportData, aAnonymize] () { + "nsMemoryReporterManager::DispatchReporter", + [self, reporter, aIsAsync, handleReport, handleReportData, aAnonymize]() { reporter->CollectReports(handleReport, handleReportData, aAnonymize); if (!aIsAsync) { self->EndReport(); @@ -2510,7 +2516,8 @@ class MinimizeMemoryUsageRunnable : public Runnable { public: explicit MinimizeMemoryUsageRunnable(nsIRunnable* aCallback) - : mCallback(aCallback) + : mozilla::Runnable("MinimizeMemoryUsageRunnable") + , mCallback(aCallback) , mRemainingIters(sNumIters) { } diff --git a/xpcom/base/nsMessageLoop.cpp b/xpcom/base/nsMessageLoop.cpp index fabf6b9f5220..52da4412a7f0 100644 --- a/xpcom/base/nsMessageLoop.cpp +++ b/xpcom/base/nsMessageLoop.cpp @@ -72,7 +72,8 @@ private: MessageLoopIdleTask::MessageLoopIdleTask(nsIRunnable* aTask, uint32_t aEnsureRunsAfterMS) - : mTask(aTask) + : mozilla::Runnable("MessageLoopIdleTask") + , mTask(aTask) { // Init() really shouldn't fail, but if it does, we schedule our runnable // immediately, because it's more important to guarantee that we run the task diff --git a/xpcom/base/nsStatusReporterManager.cpp b/xpcom/base/nsStatusReporterManager.cpp index f20d0d59e490..ccd0a21e92d9 100644 --- a/xpcom/base/nsStatusReporterManager.cpp +++ b/xpcom/base/nsStatusReporterManager.cpp @@ -32,6 +32,7 @@ class DumpStatusInfoToTempDirRunnable : public mozilla::Runnable { public: DumpStatusInfoToTempDirRunnable() + : mozilla::Runnable("DumpStatusInfoToTempDirRunnable") { } diff --git a/xpcom/ds/nsHashPropertyBag.cpp b/xpcom/ds/nsHashPropertyBag.cpp index 4dbcc6a2a687..0585e850a6c4 100644 --- a/xpcom/ds/nsHashPropertyBag.cpp +++ b/xpcom/ds/nsHashPropertyBag.cpp @@ -276,7 +276,8 @@ class ProxyHashtableDestructor final : public mozilla::Runnable public: using HashtableType = nsInterfaceHashtable; explicit ProxyHashtableDestructor(HashtableType&& aTable) - : mPropertyHash(mozilla::Move(aTable)) + : mozilla::Runnable("ProxyHashtableDestructor") + , mPropertyHash(mozilla::Move(aTable)) {} NS_IMETHODIMP diff --git a/xpcom/ds/nsObserverService.cpp b/xpcom/ds/nsObserverService.cpp index f375766c0e9d..56765a274f36 100644 --- a/xpcom/ds/nsObserverService.cpp +++ b/xpcom/ds/nsObserverService.cpp @@ -182,7 +182,10 @@ nsObserverService::Create(nsISupports* aOuter, const nsIID& aIID, // The memory reporter can not be immediately registered here because // the nsMemoryReporterManager may attempt to get the nsObserverService // during initialization, causing a recursive GetService. - NS_DispatchToCurrentThread(NewRunnableMethod(os, &nsObserverService::RegisterReporter)); + NS_DispatchToCurrentThread( + NewRunnableMethod("nsObserverService::RegisterReporter", + os, + &nsObserverService::RegisterReporter)); return os->QueryInterface(aIID, aInstancePtr); } diff --git a/xpcom/io/nsInputStreamTee.cpp b/xpcom/io/nsInputStreamTee.cpp index f6f9b7e80fe0..968282b5e612 100644 --- a/xpcom/io/nsInputStreamTee.cpp +++ b/xpcom/io/nsInputStreamTee.cpp @@ -61,8 +61,11 @@ class nsInputStreamTeeWriteEvent : public Runnable { public: // aTee's lock is held across construction of this object - nsInputStreamTeeWriteEvent(const char* aBuf, uint32_t aCount, - nsIOutputStream* aSink, nsInputStreamTee* aTee) + nsInputStreamTeeWriteEvent(const char* aBuf, + uint32_t aCount, + nsIOutputStream* aSink, + nsInputStreamTee* aTee) + : mozilla::Runnable("nsInputStreamTeeWriteEvent") { // copy the buffer - will be free'd by dtor mBuf = (char*)malloc(aCount); diff --git a/xpcom/io/nsLocalFileWin.cpp b/xpcom/io/nsLocalFileWin.cpp index 16fd575cb067..b5b7dbe184c5 100644 --- a/xpcom/io/nsLocalFileWin.cpp +++ b/xpcom/io/nsLocalFileWin.cpp @@ -114,6 +114,7 @@ class AsyncLocalFileWinDone : public Runnable { public: AsyncLocalFileWinDone() : + Runnable("AsyncLocalFileWinDone"), mWorkerThread(do_GetCurrentThread()) { // Objects of this type must only be created on worker threads @@ -143,7 +144,8 @@ class AsyncRevealOperation : public Runnable { public: explicit AsyncRevealOperation(const nsAString& aResolvedPath) - : mResolvedPath(aResolvedPath) + : Runnable("AsyncRevealOperation"), + mResolvedPath(aResolvedPath) { } diff --git a/xpcom/tests/gtest/TestMozPromise.cpp b/xpcom/tests/gtest/TestMozPromise.cpp index 0d82fc9fdad6..6038fd6dc9b6 100644 --- a/xpcom/tests/gtest/TestMozPromise.cpp +++ b/xpcom/tests/gtest/TestMozPromise.cpp @@ -43,10 +43,11 @@ public: TestPromise::Private* aPromise, const TestPromise::ResolveOrRejectValue& aValue, int aIterations) - : mTaskQueue(aTaskQueue) - , mPromise(aPromise) - , mValue(aValue) - , mIterations(aIterations) + : mozilla::Runnable("DelayedResolveOrReject") + , mTaskQueue(aTaskQueue) + , mPromise(aPromise) + , mValue(aValue) + , mIterations(aIterations) {} NS_IMETHOD Run() override @@ -85,7 +86,7 @@ template void RunOnTaskQueue(TaskQueue* aQueue, FunctionType aFun) { - nsCOMPtr r = NS_NewRunnableFunction(aFun); + nsCOMPtr r = NS_NewRunnableFunction("RunOnTaskQueue", aFun); aQueue->Dispatch(r.forget()); } diff --git a/xpcom/tests/gtest/TestRWLock.cpp b/xpcom/tests/gtest/TestRWLock.cpp index 65de524f279a..4dcd83b7ab61 100644 --- a/xpcom/tests/gtest/TestRWLock.cpp +++ b/xpcom/tests/gtest/TestRWLock.cpp @@ -22,7 +22,8 @@ static const size_t sWriteLockIteration = 10; class RWLockRunnable : public mozilla::Runnable { public: RWLockRunnable(RWLock* aRWLock, mozilla::Atomic* aSharedData) - : mRWLock(aRWLock) + : mozilla::Runnable("RWLockRunnable") + , mRWLock(aRWLock) , mSharedData(aSharedData) {} diff --git a/xpcom/tests/gtest/TestRacingServiceManager.cpp b/xpcom/tests/gtest/TestRacingServiceManager.cpp index 1309083ed853..ae5d9348dbcd 100644 --- a/xpcom/tests/gtest/TestRacingServiceManager.cpp +++ b/xpcom/tests/gtest/TestRacingServiceManager.cpp @@ -183,7 +183,11 @@ class TestRunnable : public Runnable public: NS_DECL_NSIRUNNABLE - TestRunnable() : mFirstRunnableDone(false) { } + TestRunnable() + : mozilla::Runnable("TestRacingServiceManager::TestRunnable") + , mFirstRunnableDone(false) + { + } bool mFirstRunnableDone; }; diff --git a/xpcom/tests/gtest/TestStateWatching.cpp b/xpcom/tests/gtest/TestStateWatching.cpp index 16d06a5fff5a..e083dc5e5772 100644 --- a/xpcom/tests/gtest/TestStateWatching.cpp +++ b/xpcom/tests/gtest/TestStateWatching.cpp @@ -32,11 +32,12 @@ TEST(WatchManager, Shutdown) WatchManager manager(p, queue); Watchable notifier(false, "notifier"); - queue->Dispatch(NS_NewRunnableFunction([&] () { - manager.Watch(notifier, &Foo::Notify); - notifier = true; // Trigger the call to Foo::Notify(). - manager.Shutdown(); // Shutdown() should cancel the call. - })); + queue->Dispatch(NS_NewRunnableFunction( + "TestStateWatching::WatchManager_Shutdown_Test::TestBody", [&]() { + manager.Watch(notifier, &Foo::Notify); + notifier = true; // Trigger the call to Foo::Notify(). + manager.Shutdown(); // Shutdown() should cancel the call. + })); queue->BeginShutdown(); queue->AwaitShutdownAndIdle(); diff --git a/xpcom/tests/gtest/TestTaskQueue.cpp b/xpcom/tests/gtest/TestTaskQueue.cpp index 1e764fcc1ea2..0f320f529db0 100644 --- a/xpcom/tests/gtest/TestTaskQueue.cpp +++ b/xpcom/tests/gtest/TestTaskQueue.cpp @@ -29,26 +29,39 @@ TEST(TaskQueue, EventOrder) // We expect task1 happens before task3. for (int i = 0; i < 10000; ++i) { - tq1->Dispatch(NS_NewRunnableFunction([&] () { - tq2->Dispatch(NS_NewRunnableFunction([] () { // task0 - })); - tq3->Dispatch(NS_NewRunnableFunction([&] () { // task1 - EXPECT_EQ(1, ++counter); - errored = counter != 1; - MonitorAutoLock mon(monitor); - ++sync; - mon.Notify(); - })); - tq2->Dispatch(NS_NewRunnableFunction([&] () { // task2 - tq3->Dispatch(NS_NewRunnableFunction([&] () { // task3 - EXPECT_EQ(0, --counter); - errored = counter != 0; - MonitorAutoLock mon(monitor); - ++sync; - mon.Notify(); - })); - })); - }), AbstractThread::AssertDispatchSuccess, AbstractThread::TailDispatch); + tq1->Dispatch( + NS_NewRunnableFunction( + "TestTaskQueue::TaskQueue_EventOrder_Test::TestBody", + [&]() { + tq2->Dispatch(NS_NewRunnableFunction( + "TestTaskQueue::TaskQueue_EventOrder_Test::TestBody", + []() { // task0 + })); + tq3->Dispatch(NS_NewRunnableFunction( + "TestTaskQueue::TaskQueue_EventOrder_Test::TestBody", + [&]() { // task1 + EXPECT_EQ(1, ++counter); + errored = counter != 1; + MonitorAutoLock mon(monitor); + ++sync; + mon.Notify(); + })); + tq2->Dispatch(NS_NewRunnableFunction( + "TestTaskQueue::TaskQueue_EventOrder_Test::TestBody", + [&]() { // task2 + tq3->Dispatch(NS_NewRunnableFunction( + "TestTaskQueue::TaskQueue_EventOrder_Test::TestBody", + [&]() { // task3 + EXPECT_EQ(0, --counter); + errored = counter != 0; + MonitorAutoLock mon(monitor); + ++sync; + mon.Notify(); + })); + })); + }), + AbstractThread::AssertDispatchSuccess, + AbstractThread::TailDispatch); // Ensure task1 and task3 are done before next loop. MonitorAutoLock mon(monitor); diff --git a/xpcom/tests/gtest/TestThreadPool.cpp b/xpcom/tests/gtest/TestThreadPool.cpp index 56abf7608d53..76e56236ea33 100644 --- a/xpcom/tests/gtest/TestThreadPool.cpp +++ b/xpcom/tests/gtest/TestThreadPool.cpp @@ -69,14 +69,18 @@ TEST(ThreadPool, Parallelism) EXPECT_TRUE(pool); // Dispatch and sleep to ensure we have an idle thread - nsCOMPtr r0 = new Runnable(); + nsCOMPtr r0 = new Runnable("TestRunnable"); pool->Dispatch(r0, NS_DISPATCH_SYNC); PR_Sleep(PR_SecondsToInterval(2)); class Runnable1 : public Runnable { public: Runnable1(Monitor& aMonitor, bool& aDone) - : mMonitor(aMonitor), mDone(aDone) {} + : mozilla::Runnable("Runnable1") + , mMonitor(aMonitor) + , mDone(aDone) + { + } NS_IMETHOD Run() override { MonitorAutoLock mon(mMonitor); @@ -96,7 +100,11 @@ TEST(ThreadPool, Parallelism) class Runnable2 : public Runnable { public: Runnable2(Monitor& aMonitor, bool& aDone) - : mMonitor(aMonitor), mDone(aDone) {} + : mozilla::Runnable("Runnable2") + , mMonitor(aMonitor) + , mDone(aDone) + { + } NS_IMETHOD Run() override { MonitorAutoLock mon(mMonitor); diff --git a/xpcom/tests/gtest/TestThreadPoolListener.cpp b/xpcom/tests/gtest/TestThreadPoolListener.cpp index f95106fa855f..01ecff49a73c 100644 --- a/xpcom/tests/gtest/TestThreadPoolListener.cpp +++ b/xpcom/tests/gtest/TestThreadPoolListener.cpp @@ -159,7 +159,7 @@ TEST(ThreadPoolListener, Test) ReentrantMonitorAutoEnter mon(*gReentrantMonitor); for (uint32_t i = 0; i < NUMBER_OF_THREADS; i++) { - nsCOMPtr runnable = new Runnable(); + nsCOMPtr runnable = new Runnable("TestRunnable"); ASSERT_TRUE(runnable); rv = pool->Dispatch(runnable, NS_DISPATCH_NORMAL); diff --git a/xpcom/tests/gtest/TestThreadUtils.cpp b/xpcom/tests/gtest/TestThreadUtils.cpp index a617384d47e4..ce8bcaecdff0 100644 --- a/xpcom/tests/gtest/TestThreadUtils.cpp +++ b/xpcom/tests/gtest/TestThreadUtils.cpp @@ -44,6 +44,8 @@ private: NS_IMPL_ISUPPORTS0(nsFoo) class TestSuicide : public mozilla::Runnable { +public: + TestSuicide() : mozilla::Runnable("TestSuicide") {} NS_IMETHOD Run() override { // Runs first time on thread "Suicide", then dies on MainThread if (!NS_IsMainThread()) { @@ -184,8 +186,9 @@ static void TestNewRunnableFunction(bool aNamed) nsCOMPtr trackedRunnable; { TestCopyWithNoMove tracker(©Counter); - trackedRunnable = aNamed ? NS_NewRunnableFunction("unused", tracker) : - NS_NewRunnableFunction(tracker); + trackedRunnable = + aNamed ? NS_NewRunnableFunction("unused", tracker) + : NS_NewRunnableFunction("TestNewRunnableFunction", tracker); // Original 'tracker' is destroyed here. } // Verify that the runnable contains a non-destroyed function object. @@ -201,9 +204,11 @@ static void TestNewRunnableFunction(bool aNamed) { // Passing as rvalue, but using copy. // (TestCopyWithDeletedMove wouldn't allow this.) - trackedRunnable = aNamed ? - NS_NewRunnableFunction("unused", TestCopyWithNoMove(©Counter)) : - NS_NewRunnableFunction(TestCopyWithNoMove(©Counter)); + trackedRunnable = + aNamed + ? NS_NewRunnableFunction("unused", TestCopyWithNoMove(©Counter)) + : NS_NewRunnableFunction("TestNewRunnableFunction", + TestCopyWithNoMove(©Counter)); } trackedRunnable->Run(); } @@ -216,8 +221,9 @@ static void TestNewRunnableFunction(bool aNamed) nsCOMPtr trackedRunnable; { TestCopyWithDeletedMove tracker(©Counter); - trackedRunnable = aNamed ? NS_NewRunnableFunction("unused", tracker) : - NS_NewRunnableFunction(tracker); + trackedRunnable = + aNamed ? NS_NewRunnableFunction("unused", tracker) + : NS_NewRunnableFunction("TestNewRunnableFunction", tracker); } trackedRunnable->Run(); } @@ -232,8 +238,10 @@ static void TestNewRunnableFunction(bool aNamed) nsCOMPtr trackedRunnable; { TestMove tracker(&moveCounter); - trackedRunnable = aNamed ? NS_NewRunnableFunction("unused", Move(tracker)) : - NS_NewRunnableFunction(Move(tracker)); + trackedRunnable = + aNamed + ? NS_NewRunnableFunction("unused", Move(tracker)) + : NS_NewRunnableFunction("TestNewRunnableFunction", Move(tracker)); } trackedRunnable->Run(); } @@ -245,9 +253,10 @@ static void TestNewRunnableFunction(bool aNamed) { nsCOMPtr trackedRunnable; { - trackedRunnable = aNamed ? - NS_NewRunnableFunction("unused", TestMove(&moveCounter)) : - NS_NewRunnableFunction(TestMove(&moveCounter)); + trackedRunnable = + aNamed ? NS_NewRunnableFunction("unused", TestMove(&moveCounter)) + : NS_NewRunnableFunction("TestNewRunnableFunction", + TestMove(&moveCounter)); } trackedRunnable->Run(); } @@ -263,8 +272,10 @@ static void TestNewRunnableFunction(bool aNamed) nsCOMPtr trackedRunnable; { TestCopyMove tracker(©Counter, &moveCounter); - trackedRunnable = aNamed ? NS_NewRunnableFunction("unused", Move(tracker)) : - NS_NewRunnableFunction(Move(tracker)); + trackedRunnable = + aNamed + ? NS_NewRunnableFunction("unused", Move(tracker)) + : NS_NewRunnableFunction("TestNewRunnableFunction", Move(tracker)); } trackedRunnable->Run(); } @@ -279,9 +290,12 @@ static void TestNewRunnableFunction(bool aNamed) { nsCOMPtr trackedRunnable; { - trackedRunnable = aNamed ? - NS_NewRunnableFunction("unused", TestCopyMove(©Counter, &moveCounter)) : - NS_NewRunnableFunction(TestCopyMove(©Counter, &moveCounter)); + trackedRunnable = + aNamed + ? NS_NewRunnableFunction("unused", + TestCopyMove(©Counter, &moveCounter)) + : NS_NewRunnableFunction("TestNewRunnableFunction", + TestCopyMove(©Counter, &moveCounter)); } trackedRunnable->Run(); } @@ -299,9 +313,11 @@ static void TestNewRunnableFunction(bool aNamed) { TestCopyWithNoMove tracker(©Counter); // Expect 2 copies (here -> local lambda -> runnable lambda). - trackedRunnable = aNamed ? - NS_NewRunnableFunction("unused", [tracker]() mutable { tracker(); }) : - NS_NewRunnableFunction([tracker]() mutable { tracker(); }); + trackedRunnable = + aNamed ? NS_NewRunnableFunction("unused", + [tracker]() mutable { tracker(); }) + : NS_NewRunnableFunction("TestNewRunnableFunction", + [tracker]() mutable { tracker(); }); } trackedRunnable->Run(); } @@ -315,9 +331,11 @@ static void TestNewRunnableFunction(bool aNamed) { TestCopyWithDeletedMove tracker(©Counter); // Expect 2 copies (here -> local lambda -> runnable lambda). - trackedRunnable = aNamed ? - NS_NewRunnableFunction("unused", [tracker]() mutable { tracker(); }) : - NS_NewRunnableFunction([tracker]() mutable { tracker(); }); + trackedRunnable = + aNamed ? NS_NewRunnableFunction("unused", + [tracker]() mutable { tracker(); }) + : NS_NewRunnableFunction("TestNewRunnableFunction", + [tracker]() mutable { tracker(); }); } trackedRunnable->Run(); } @@ -336,9 +354,11 @@ static void TestNewRunnableFunction(bool aNamed) nsCOMPtr trackedRunnable; { TestCopyMove tracker(©Counter, &moveCounter); - trackedRunnable = aNamed ? - NS_NewRunnableFunction("unused", [tracker]() mutable { tracker(); }) : - NS_NewRunnableFunction([tracker]() mutable { tracker(); }); + trackedRunnable = + aNamed ? NS_NewRunnableFunction("unused", + [tracker]() mutable { tracker(); }) + : NS_NewRunnableFunction("TestNewRunnableFunction", + [tracker]() mutable { tracker(); }); // Expect 1 copy (here -> local lambda) and 1 move (local -> runnable lambda). } trackedRunnable->Run(); @@ -363,7 +383,8 @@ TEST(ThreadUtils, NewNamedRunnableFunction) // Test naming. { const char* expectedName = "NamedRunnable"; - RefPtr NamedRunnable = NS_NewRunnableFunction(expectedName, []{}); + RefPtr NamedRunnable = + NS_NewRunnableFunction(expectedName, [] {}); ExpectRunnableName(NamedRunnable, expectedName); } } @@ -384,27 +405,34 @@ static void TestNewRunnableMethod(bool aNamed) // Read only string. Dereferencing in runnable method to check this works. char* message = (char*)"Test message"; - NS_DispatchToMainThread(aNamed ? - NewRunnableMethod("unused", bar, &nsBar::DoBar1) : - NewRunnableMethod(bar, &nsBar::DoBar1)); - NS_DispatchToMainThread(aNamed ? - NewRunnableMethod("unused", constBar, &nsBar::DoBar1Const) : - NewRunnableMethod(constBar, &nsBar::DoBar1Const)); - NS_DispatchToMainThread(aNamed ? - NewRunnableMethod("unused", bar, &nsBar::DoBar2) : - NewRunnableMethod(bar, &nsBar::DoBar2)); - NS_DispatchToMainThread(aNamed ? - NewRunnableMethod>("unused", bar, &nsBar::DoBar3, foo) : - NewRunnableMethod>(bar, &nsBar::DoBar3, foo)); - NS_DispatchToMainThread(aNamed ? - NewRunnableMethod>("unused", bar, &nsBar::DoBar4, foo) : - NewRunnableMethod>(bar, &nsBar::DoBar4, foo)); - NS_DispatchToMainThread(aNamed ? - NewRunnableMethod("unused", bar, &nsBar::DoBar5, rawFoo) : - NewRunnableMethod(bar, &nsBar::DoBar5, rawFoo)); - NS_DispatchToMainThread(aNamed ? - NewRunnableMethod("unused", bar, &nsBar::DoBar6, message) : - NewRunnableMethod(bar, &nsBar::DoBar6, message)); + NS_DispatchToMainThread( + aNamed ? NewRunnableMethod("unused", bar, &nsBar::DoBar1) + : NewRunnableMethod("nsBar::DoBar1", bar, &nsBar::DoBar1)); + NS_DispatchToMainThread( + aNamed ? NewRunnableMethod("unused", constBar, &nsBar::DoBar1Const) + : NewRunnableMethod( + "nsBar::DoBar1Const", constBar, &nsBar::DoBar1Const)); + NS_DispatchToMainThread( + aNamed ? NewRunnableMethod("unused", bar, &nsBar::DoBar2) + : NewRunnableMethod("nsBar::DoBar2", bar, &nsBar::DoBar2)); + NS_DispatchToMainThread( + aNamed + ? NewRunnableMethod>("unused", bar, &nsBar::DoBar3, foo) + : NewRunnableMethod>( + "nsBar::DoBar3", bar, &nsBar::DoBar3, foo)); + NS_DispatchToMainThread( + aNamed + ? NewRunnableMethod>("unused", bar, &nsBar::DoBar4, foo) + : NewRunnableMethod>( + "nsBar::DoBar4", bar, &nsBar::DoBar4, foo)); + NS_DispatchToMainThread( + aNamed ? NewRunnableMethod("unused", bar, &nsBar::DoBar5, rawFoo) + : NewRunnableMethod( + "nsBar::DoBar5", bar, &nsBar::DoBar5, rawFoo)); + NS_DispatchToMainThread( + aNamed ? NewRunnableMethod("unused", bar, &nsBar::DoBar6, message) + : NewRunnableMethod( + "nsBar::DoBar6", bar, &nsBar::DoBar6, message)); #ifdef HAVE_STDCALL NS_DispatchToMainThread(aNamed ? NewRunnableMethod("unused", bar, &nsBar::DoBar1std) : @@ -554,7 +582,7 @@ public: ASSERT_TRUE(mSetIdleDeadlineCalled); mRunnableExecuted[2] = true; mSetIdleDeadlineCalled = false; - NS_DispatchToCurrentThread(NewRunnableMethod(this, &IdleObject::Method3)); + NS_DispatchToCurrentThread(NewRunnableMethod("IdleObject::Method3", this, &IdleObject::Method3)); } void Method3() @@ -562,11 +590,13 @@ public: CheckExecutedMethods("Method3", 3); mTimer = do_CreateInstance(NS_TIMER_CONTRACTID); - mTimer->InitWithFuncCallback(Method4, this, 10, nsITimer::TYPE_ONE_SHOT); + mTimer->InitWithNamedFuncCallback( + Method4, this, 10, nsITimer::TYPE_ONE_SHOT, "IdleObject::Method3"); NS_IdleDispatchToCurrentThread( - NewIdleRunnableMethodWithTimer(this, &IdleObject::Method5), 50); + NewIdleRunnableMethodWithTimer("IdleObject::Method5", this, &IdleObject::Method5), 50); NS_IdleDispatchToCurrentThread( - NewRunnableMethod(this, &IdleObject::Method6), 100); + NewRunnableMethod("IdleObject::Method6", this, &IdleObject::Method6), + 100); PR_Sleep(PR_MillisecondsToInterval(200)); mRunnableExecuted[3] = true; @@ -620,18 +650,21 @@ TEST(ThreadUtils, IdleRunnableMethod) RefPtr idleInheritedSetDeadline = new IdleObjectInheritedSetDeadline(); - NS_DispatchToCurrentThread(NewRunnableMethod(idle, &IdleObject::Method0)); + NS_DispatchToCurrentThread( + NewRunnableMethod("IdleObject::Method0", idle, &IdleObject::Method0)); NS_IdleDispatchToCurrentThread( - NewIdleRunnableMethod(idle, &IdleObject::Method1)); + NewIdleRunnableMethod("IdleObject::Method1", idle, &IdleObject::Method1)); NS_IdleDispatchToCurrentThread( - NewIdleRunnableMethodWithTimer(idle, &IdleObject::Method2), 60000); + NewIdleRunnableMethodWithTimer("IdleObject::Method2", idle, &IdleObject::Method2), 60000); NS_IdleDispatchToCurrentThread( - NewIdleRunnableMethod(idle, &IdleObject::Method7)); + NewIdleRunnableMethod("IdleObject::Method7", idle, &IdleObject::Method7)); NS_IdleDispatchToCurrentThread(NewIdleRunnableMethod( - idle, &IdleObject::CheckExecutedMethods, "final", 8)); + "IdleObject::CheckExecutedMethods", idle, &IdleObject::CheckExecutedMethods, "final", 8)); NS_IdleDispatchToCurrentThread(NewIdleRunnableMethod( + "IdleObjectWithoutSetDeadline::Method", idleNoSetDeadline, &IdleObjectWithoutSetDeadline::Method)); NS_IdleDispatchToCurrentThread(NewIdleRunnableMethod( + "IdleObjectInheritedSetDeadline::Method", idleInheritedSetDeadline, &IdleObjectInheritedSetDeadline::Method)); NS_ProcessPendingEvents(nullptr); @@ -1002,24 +1035,34 @@ TEST(ThreadUtils, main) // Test legacy functions. nsCOMPtr r1 = - NewRunnableMethod(rpt, &ThreadUtilsObject::Test0); + NewRunnableMethod("TestThreadUtils::ThreadUtilsObject::Test0", + rpt, + &ThreadUtilsObject::Test0); r1->Run(); EXPECT_EQ(count += 1, rpt->mCount); - r1 = NewRunnableMethod(rpt, &ThreadUtilsObject::Test1i, 11); + r1 = NewRunnableMethod("TestThreadUtils::ThreadUtilsObject::Test1i", + rpt, + &ThreadUtilsObject::Test1i, + 11); r1->Run(); EXPECT_EQ(count += 2, rpt->mCount); EXPECT_EQ(11, rpt->mA0); // Test calling a method from a non-ref-counted base. - r1 = NewRunnableMethod(rpt, &ThreadUtilsObject::MethodFromNonRefCountedBase); + r1 = NewRunnableMethod("TestThreadUtils::ThreadUtilsObjectNonRefCountedBase::" + "MethodFromNonRefCountedBase", + rpt, + &ThreadUtilsObject::MethodFromNonRefCountedBase); r1->Run(); EXPECT_EQ(count, rpt->mCount); // Test variadic function with simple POD arguments. - r1 = NewRunnableMethod(rpt, &ThreadUtilsObject::Test0); + r1 = NewRunnableMethod("TestThreadUtils::ThreadUtilsObject::Test0", + rpt, + &ThreadUtilsObject::Test0); r1->Run(); EXPECT_EQ(count += 1, rpt->mCount); @@ -1032,20 +1075,31 @@ TEST(ThreadUtils, main) StoreCopyPassByValue>::value, "detail::ParameterStorage>::Type should be StoreCopyPassByValue"); - r1 = NewRunnableMethod(rpt, &ThreadUtilsObject::Test1i, 12); + r1 = NewRunnableMethod("TestThreadUtils::ThreadUtilsObject::Test1i", + rpt, + &ThreadUtilsObject::Test1i, + 12); r1->Run(); EXPECT_EQ(count += 2, rpt->mCount); EXPECT_EQ(12, rpt->mA0); - r1 = NewRunnableMethod( - rpt, &ThreadUtilsObject::Test2i, 21, 22); + r1 = NewRunnableMethod("TestThreadUtils::ThreadUtilsObject::Test2i", + rpt, + &ThreadUtilsObject::Test2i, + 21, + 22); r1->Run(); EXPECT_EQ(count += 3, rpt->mCount); EXPECT_EQ(21, rpt->mA0); EXPECT_EQ(22, rpt->mA1); r1 = NewRunnableMethod( - rpt, &ThreadUtilsObject::Test3i, 31, 32, 33); + "TestThreadUtils::ThreadUtilsObject::Test3i", + rpt, + &ThreadUtilsObject::Test3i, + 31, + 32, + 33); r1->Run(); EXPECT_EQ(count += 4, rpt->mCount); EXPECT_EQ(31, rpt->mA0); @@ -1053,7 +1107,13 @@ TEST(ThreadUtils, main) EXPECT_EQ(33, rpt->mA2); r1 = NewRunnableMethod( - rpt, &ThreadUtilsObject::Test4i, 41, 42, 43, 44); + "TestThreadUtils::ThreadUtilsObject::Test4i", + rpt, + &ThreadUtilsObject::Test4i, + 41, + 42, + 43, + 44); r1->Run(); EXPECT_EQ(count += 5, rpt->mCount); EXPECT_EQ(41, rpt->mA0); @@ -1065,7 +1125,10 @@ TEST(ThreadUtils, main) // Passing a short to make sure forwarding works with an inexact type match. short int si = 11; - r1 = NewRunnableMethod(rpt, &ThreadUtilsObject::Test1i, si); + r1 = NewRunnableMethod("TestThreadUtils::ThreadUtilsObject::Test1i", + rpt, + &ThreadUtilsObject::Test1i, + si); r1->Run(); EXPECT_EQ(count += 2, rpt->mCount); EXPECT_EQ(si, rpt->mA0); @@ -1091,7 +1154,10 @@ TEST(ThreadUtils, main) "detail::ParameterStorage::Type::passed_type should be int*"); { int i = 12; - r1 = NewRunnableMethod(rpt, &ThreadUtilsObject::Test1pi, &i); + r1 = NewRunnableMethod("TestThreadUtils::ThreadUtilsObject::Test1pi", + rpt, + &ThreadUtilsObject::Test1pi, + &i); r1->Run(); EXPECT_EQ(count += 2, rpt->mCount); EXPECT_EQ(i, rpt->mA0); @@ -1118,7 +1184,11 @@ TEST(ThreadUtils, main) "detail::ParameterStorage::Type::passed_type should be const int*"); { int i = 1201; - r1 = NewRunnableMethod(rpt, &ThreadUtilsObject::Test1pci, &i); + r1 = NewRunnableMethod( + "TestThreadUtils::ThreadUtilsObject::Test1pci", + rpt, + &ThreadUtilsObject::Test1pci, + &i); r1->Run(); EXPECT_EQ(count += 2, rpt->mCount); EXPECT_EQ(i, rpt->mA0); @@ -1134,7 +1204,10 @@ TEST(ThreadUtils, main) { int i = 1202; r1 = NewRunnableMethod>( - rpt, &ThreadUtilsObject::Test1pi, i); + "TestThreadUtils::ThreadUtilsObject::Test1pi", + rpt, + &ThreadUtilsObject::Test1pi, + i); r1->Run(); EXPECT_EQ(count += 2, rpt->mCount); EXPECT_EQ(i, rpt->mA0); @@ -1150,7 +1223,10 @@ TEST(ThreadUtils, main) { int i = 1203; r1 = NewRunnableMethod>( - rpt, &ThreadUtilsObject::Test1pci, i); + "TestThreadUtils::ThreadUtilsObject::Test1pci", + rpt, + &ThreadUtilsObject::Test1pci, + i); r1->Run(); EXPECT_EQ(count += 2, rpt->mCount); EXPECT_EQ(i, rpt->mA0); @@ -1209,7 +1285,10 @@ TEST(ThreadUtils, main) "ParameterStorage::Type::passed_type should be int&"); { int i = 13; - r1 = NewRunnableMethod(rpt, &ThreadUtilsObject::Test1ri, i); + r1 = NewRunnableMethod("TestThreadUtils::ThreadUtilsObject::Test1ri", + rpt, + &ThreadUtilsObject::Test1ri, + i); r1->Run(); EXPECT_EQ(count += 2, rpt->mCount); EXPECT_EQ(i, rpt->mA0); @@ -1230,8 +1309,11 @@ TEST(ThreadUtils, main) "ParameterStorage::Type::passed_type should be int&&"); { int i = 14; - r1 = NewRunnableMethod( - rpt, &ThreadUtilsObject::Test1rri, mozilla::Move(i)); + r1 = + NewRunnableMethod("TestThreadUtils::ThreadUtilsObject::Test1rri", + rpt, + &ThreadUtilsObject::Test1rri, + mozilla::Move(i)); } r1->Run(); EXPECT_EQ(count += 2, rpt->mCount); @@ -1253,7 +1335,10 @@ TEST(ThreadUtils, main) { mozilla::UniquePtr upi; r1 = NewRunnableMethod&&>( - rpt, &ThreadUtilsObject::Test1upi, mozilla::Move(upi)); + "TestThreadUtils::ThreadUtilsObject::Test1upi", + rpt, + &ThreadUtilsObject::Test1upi, + mozilla::Move(upi)); } r1->Run(); EXPECT_EQ(count += 2, rpt->mCount); @@ -1275,9 +1360,11 @@ TEST(ThreadUtils, main) "ParameterStorage>>::Type::passed_type should be UniquePtr&&"); { mozilla::UniquePtr upi; - r1 = NewRunnableMethod - >>( - rpt, &ThreadUtilsObject::Test1upi, mozilla::Move(upi)); + r1 = NewRunnableMethod>>( + "TestThreadUtils::ThreadUtilsObject::Test1upi", + rpt, + &ThreadUtilsObject::Test1upi, + mozilla::Move(upi)); } r1->Run(); EXPECT_EQ(count += 2, rpt->mCount); @@ -1287,7 +1374,10 @@ TEST(ThreadUtils, main) { mozilla::UniquePtr upi = mozilla::MakeUnique(1); r1 = NewRunnableMethod&&>( - rpt, &ThreadUtilsObject::Test1upi, mozilla::Move(upi)); + "TestThreadUtils::ThreadUtilsObject::Test1upi", + rpt, + &ThreadUtilsObject::Test1upi, + mozilla::Move(upi)); } r1->Run(); EXPECT_EQ(count += 2, rpt->mCount); @@ -1295,9 +1385,11 @@ TEST(ThreadUtils, main) { mozilla::UniquePtr upi = mozilla::MakeUnique(1); - r1 = NewRunnableMethod - >> - (rpt, &ThreadUtilsObject::Test1upi, mozilla::Move(upi)); + r1 = NewRunnableMethod>>( + "TestThreadUtils::ThreadUtilsObject::Test1upi", + rpt, + &ThreadUtilsObject::Test1upi, + mozilla::Move(upi)); } r1->Run(); EXPECT_EQ(count += 2, rpt->mCount); @@ -1305,7 +1397,10 @@ TEST(ThreadUtils, main) // Unique pointer as prvalue. r1 = NewRunnableMethod&&>( - rpt, &ThreadUtilsObject::Test1upi, mozilla::MakeUnique(2)); + "TestThreadUtils::ThreadUtilsObject::Test1upi", + rpt, + &ThreadUtilsObject::Test1upi, + mozilla::MakeUnique(2)); r1->Run(); EXPECT_EQ(count += 2, rpt->mCount); EXPECT_EQ(2, rpt->mA0); @@ -1314,7 +1409,10 @@ TEST(ThreadUtils, main) { mozilla::UniquePtr upi; r1 = NewRunnableMethod&>( - rpt, &ThreadUtilsObject::Test1rupi, upi); + "TestThreadUtils::ThreadUtilsObject::Test1rupi", + rpt, + &ThreadUtilsObject::Test1rupi, + upi); // Passed as lref, so Run() must be called while local upi is still alive! r1->Run(); } @@ -1334,7 +1432,10 @@ TEST(ThreadUtils, main) EXPECT_EQ(1, gAlive); if (gDebug) { printf("%d - r2 = NewRunnableMethod>(&TestByValue, s)\n", __LINE__); } r2 = NewRunnableMethod>( - rpt, &ThreadUtilsObject::TestByValue, s); + "TestThreadUtils::ThreadUtilsObject::TestByValue", + rpt, + &ThreadUtilsObject::TestByValue, + s); EXPECT_EQ(2, gAlive); EXPECT_LE(1, gCopyConstructions); // At least 1 copy-construction. Spy::ClearActions(); @@ -1360,9 +1461,11 @@ TEST(ThreadUtils, main) if (gDebug) { printf("%d - Test: Store copy from prvalue, pass by value\n", __LINE__); } { if (gDebug) { printf("%d - r3 = NewRunnableMethod>(&TestByValue, Spy(11))\n", __LINE__); } - nsCOMPtr r3 = - NewRunnableMethod>( - rpt, &ThreadUtilsObject::TestByValue, Spy(11)); + nsCOMPtr r3 = NewRunnableMethod>( + "TestThreadUtils::ThreadUtilsObject::TestByValue", + rpt, + &ThreadUtilsObject::TestByValue, + Spy(11)); EXPECT_EQ(1, gAlive); EXPECT_EQ(1, gConstructions); EXPECT_LE(1, gMoveConstructions); @@ -1389,7 +1492,10 @@ TEST(ThreadUtils, main) EXPECT_EQ(1, gAlive); Spy::ClearActions(); r4 = NewRunnableMethod>( - rpt, &ThreadUtilsObject::TestByValue, mozilla::Move(s)); + "TestThreadUtils::ThreadUtilsObject::TestByValue", + rpt, + &ThreadUtilsObject::TestByValue, + mozilla::Move(s)); EXPECT_LE(1, gMoveConstructions); EXPECT_EQ(1, gAlive); EXPECT_EQ(1, gZombies); @@ -1421,7 +1527,10 @@ TEST(ThreadUtils, main) EXPECT_EQ(1, gAlive); if (gDebug) { printf("%d - r5 = NewRunnableMethod>(&TestByConstLRef, s)\n", __LINE__); } r5 = NewRunnableMethod>( - rpt, &ThreadUtilsObject::TestByConstLRef, s); + "TestThreadUtils::ThreadUtilsObject::TestByConstLRef", + rpt, + &ThreadUtilsObject::TestByConstLRef, + s); EXPECT_EQ(2, gAlive); EXPECT_LE(1, gCopyConstructions); // At least 1 copy-construction. Spy::ClearActions(); @@ -1447,9 +1556,11 @@ TEST(ThreadUtils, main) if (gDebug) { printf("%d - Test: Store copy from prvalue, pass by const lvalue ref\n", __LINE__); } { if (gDebug) { printf("%d - r6 = NewRunnableMethod>(&TestByConstLRef, Spy(21))\n", __LINE__); } - nsCOMPtr r6 = - NewRunnableMethod>( - rpt, &ThreadUtilsObject::TestByConstLRef, Spy(21)); + nsCOMPtr r6 = NewRunnableMethod>( + "TestThreadUtils::ThreadUtilsObject::TestByConstLRef", + rpt, + &ThreadUtilsObject::TestByConstLRef, + Spy(21)); EXPECT_EQ(1, gAlive); EXPECT_EQ(1, gConstructions); EXPECT_LE(1, gMoveConstructions); @@ -1478,7 +1589,10 @@ TEST(ThreadUtils, main) EXPECT_EQ(1, gAlive); if (gDebug) { printf("%d - r7 = NewRunnableMethod>(&TestByRRef, s)\n", __LINE__); } r7 = NewRunnableMethod>( - rpt, &ThreadUtilsObject::TestByRRef, s); + "TestThreadUtils::ThreadUtilsObject::TestByRRef", + rpt, + &ThreadUtilsObject::TestByRRef, + s); EXPECT_EQ(2, gAlive); EXPECT_LE(1, gCopyConstructions); // At least 1 copy-construction. Spy::ClearActions(); @@ -1505,9 +1619,11 @@ TEST(ThreadUtils, main) if (gDebug) { printf("%d - Test: Store copy from prvalue, pass by rvalue ref\n", __LINE__); } { if (gDebug) { printf("%d - r8 = NewRunnableMethod>(&TestByRRef, Spy(31))\n", __LINE__); } - nsCOMPtr r8 = - NewRunnableMethod>( - rpt, &ThreadUtilsObject::TestByRRef, Spy(31)); + nsCOMPtr r8 = NewRunnableMethod>( + "TestThreadUtils::ThreadUtilsObject::TestByRRef", + rpt, + &ThreadUtilsObject::TestByRRef, + Spy(31)); EXPECT_EQ(1, gAlive); EXPECT_EQ(1, gConstructions); EXPECT_LE(1, gMoveConstructions); @@ -1536,8 +1652,10 @@ TEST(ThreadUtils, main) Spy::ClearActions(); if (gDebug) { printf("%d - r9 = NewRunnableMethod(&TestByLRef, s)\n", __LINE__); } nsCOMPtr r9 = - NewRunnableMethod( - rpt, &ThreadUtilsObject::TestByLRef, s); + NewRunnableMethod("TestThreadUtils::ThreadUtilsObject::TestByLRef", + rpt, + &ThreadUtilsObject::TestByLRef, + s); EXPECT_EQ(0, gAllConstructions); EXPECT_EQ(0, gDestructions); EXPECT_EQ(1, gAlive); @@ -1569,7 +1687,10 @@ TEST(ThreadUtils, main) EXPECT_EQ(1, gAlive); if (gDebug) { printf("%d - r10 = NewRunnableMethod>(&TestByRRef, s.get())\n", __LINE__); } r10 = NewRunnableMethod>( - rpt, &ThreadUtilsObject::TestByPointer, s.get()); + "TestThreadUtils::ThreadUtilsObject::TestByPointer", + rpt, + &ThreadUtilsObject::TestByPointer, + s.get()); EXPECT_LE(0, gAllConstructions); EXPECT_EQ(1, gAlive); Spy::ClearActions(); @@ -1601,9 +1722,11 @@ TEST(ThreadUtils, main) EXPECT_EQ(1, gAlive); Spy::ClearActions(); if (gDebug) { printf("%d - r11 = NewRunnableMethod(&TestByPointer, s)\n", __LINE__); } - nsCOMPtr r11 = - NewRunnableMethod( - rpt, &ThreadUtilsObject::TestByPointer, &s); + nsCOMPtr r11 = NewRunnableMethod( + "TestThreadUtils::ThreadUtilsObject::TestByPointer", + rpt, + &ThreadUtilsObject::TestByPointer, + &s); EXPECT_EQ(0, gAllConstructions); EXPECT_EQ(0, gDestructions); EXPECT_EQ(1, gAlive); @@ -1631,9 +1754,11 @@ TEST(ThreadUtils, main) EXPECT_EQ(1, gAlive); Spy::ClearActions(); if (gDebug) { printf("%d - r12 = NewRunnableMethod(&TestByPointer, s)\n", __LINE__); } - nsCOMPtr r12 = - NewRunnableMethod( - rpt, &ThreadUtilsObject::TestByPointerToConst, &s); + nsCOMPtr r12 = NewRunnableMethod( + "TestThreadUtils::ThreadUtilsObject::TestByPointerToConst", + rpt, + &ThreadUtilsObject::TestByPointerToConst, + &s); EXPECT_EQ(0, gAllConstructions); EXPECT_EQ(0, gDestructions); EXPECT_EQ(1, gAlive); diff --git a/xpcom/tests/gtest/TestTimers.cpp b/xpcom/tests/gtest/TestTimers.cpp index ce8bba028c3b..2ca87f89a2d3 100644 --- a/xpcom/tests/gtest/TestTimers.cpp +++ b/xpcom/tests/gtest/TestTimers.cpp @@ -242,15 +242,17 @@ public: timer->SetTarget(aTarget); } - timer->InitWithFuncCallback(&UnusedCallbackFunc, - nullptr, - kTimerOffset + kTimerInterval * i, - aType); + timer->InitWithNamedFuncCallback(&UnusedCallbackFunc, + nullptr, + kTimerOffset + kTimerInterval * i, + aType, + "FindExpirationTimeState::InitTimers"); } else { - timer->InitWithFuncCallback(&UnusedCallbackFunc, - nullptr, - kTimerOffset + kTimerInterval * i, - nsITimer::TYPE_ONE_SHOT); + timer->InitWithNamedFuncCallback(&UnusedCallbackFunc, + nullptr, + kTimerOffset + kTimerInterval * i, + nsITimer::TYPE_ONE_SHOT, + "FindExpirationTimeState::InitTimers"); } mTimers.push_front(timer.get()); } @@ -426,8 +428,9 @@ class FuzzTestThreadState final : public nsITimerCallback { class StartRunnable final : public mozilla::Runnable { public: - explicit StartRunnable(FuzzTestThreadState* threadState) : - mThreadState(threadState) + explicit StartRunnable(FuzzTestThreadState* threadState) + : mozilla::Runnable("FuzzTestThreadState::StartRunnable") + , mThreadState(threadState) {} NS_IMETHOD Run() override diff --git a/xpcom/threads/AbstractThread.cpp b/xpcom/threads/AbstractThread.cpp index fc0dd2ec9e89..d8f9c944a42b 100644 --- a/xpcom/threads/AbstractThread.cpp +++ b/xpcom/threads/AbstractThread.cpp @@ -104,7 +104,10 @@ public: if (!mTailDispatcher.isSome()) { mTailDispatcher.emplace(/* aIsTailDispatcher = */ true); - nsCOMPtr event = NewRunnableMethod(this, &EventTargetWrapper::FireTailDispatcher); + nsCOMPtr event = + NewRunnableMethod("EventTargetWrapper::FireTailDispatcher", + this, + &EventTargetWrapper::FireTailDispatcher); nsContentUtils::RunInStableState(event.forget()); } @@ -154,7 +157,8 @@ private: explicit Runner(EventTargetWrapper* aThread, already_AddRefed aRunnable, bool aDrainDirectTasks) - : mThread(aThread) + : CancelableRunnable("EventTargetWrapper::Runner") + , mThread(aThread) , mRunnable(aRunnable) , mDrainDirectTasks(aDrainDirectTasks) { @@ -344,7 +348,8 @@ AbstractThread::CreateXPCOMThreadWrapper(nsIThread* aThread, bool aRequireTailDi // target thread. This ensures that sCurrentThreadTLS is as expected by // AbstractThread::GetCurrent() on the target thread. nsCOMPtr r = - NS_NewRunnableFunction([wrapper]() { sCurrentThreadTLS.set(wrapper); }); + NS_NewRunnableFunction("AbstractThread::CreateXPCOMThreadWrapper", + [wrapper]() { sCurrentThreadTLS.set(wrapper); }); aThread->Dispatch(r.forget(), NS_DISPATCH_NORMAL); return wrapper.forget(); } diff --git a/xpcom/threads/BackgroundHangMonitor.cpp b/xpcom/threads/BackgroundHangMonitor.cpp index cd40198c6fa4..3e6d0694f887 100644 --- a/xpcom/threads/BackgroundHangMonitor.cpp +++ b/xpcom/threads/BackgroundHangMonitor.cpp @@ -446,7 +446,8 @@ public: BackgroundHangThread* aThread, Telemetry::HangHistogram&& aHistogram, Telemetry::NativeHangStack&& aNativeStack) - : mManager(aManager) + : CancelableRunnable("ProcessHangRunnable") + , mManager(aManager) , mNativeStack(mozilla::Move(aNativeStack)) , mThread(aThread) , mHistogram(mozilla::Move(aHistogram)) diff --git a/xpcom/threads/LazyIdleThread.cpp b/xpcom/threads/LazyIdleThread.cpp index 835ff22cc7b6..ce5d6863c547 100644 --- a/xpcom/threads/LazyIdleThread.cpp +++ b/xpcom/threads/LazyIdleThread.cpp @@ -104,7 +104,7 @@ LazyIdleThread::EnableIdleTimeout() } if (mThread) { - nsCOMPtr runnable(new Runnable()); + nsCOMPtr runnable(new Runnable("LazyIdleThreadDummyRunnable")); if (NS_FAILED(Dispatch(runnable.forget(), NS_DISPATCH_NORMAL))) { NS_WARNING("Failed to dispatch!"); } @@ -158,8 +158,8 @@ LazyIdleThread::EnsureThread() return NS_ERROR_UNEXPECTED; } - nsCOMPtr runnable = - NewRunnableMethod(this, &LazyIdleThread::InitThread); + nsCOMPtr runnable = NewRunnableMethod( + "LazyIdleThread::InitThread", this, &LazyIdleThread::InitThread); if (NS_WARN_IF(!runnable)) { return NS_ERROR_UNEXPECTED; } @@ -279,8 +279,8 @@ LazyIdleThread::ShutdownThread() } #endif - nsCOMPtr runnable = - NewRunnableMethod(this, &LazyIdleThread::CleanupThread); + nsCOMPtr runnable = NewRunnableMethod( + "LazyIdleThread::CleanupThread", this, &LazyIdleThread::CleanupThread); if (NS_WARN_IF(!runnable)) { return NS_ERROR_UNEXPECTED; } @@ -356,8 +356,8 @@ LazyIdleThread::Release() // Stabilize refcount. mRefCnt = 1; - nsCOMPtr runnable = - NewNonOwningRunnableMethod(this, &LazyIdleThread::SelfDestruct); + nsCOMPtr runnable = NewNonOwningRunnableMethod( + "LazyIdleThread::SelfDestruct", this, &LazyIdleThread::SelfDestruct); NS_WARNING_ASSERTION(runnable, "Couldn't make runnable!"); if (NS_FAILED(NS_DispatchToCurrentThread(runnable))) { @@ -597,8 +597,8 @@ LazyIdleThread::AfterProcessNextEvent(nsIThreadInternal* /* aThread */, } if (shouldNotifyIdle) { - nsCOMPtr runnable = - NewRunnableMethod(this, &LazyIdleThread::ScheduleTimer); + nsCOMPtr runnable = NewRunnableMethod( + "LazyIdleThread::ScheduleTimer", this, &LazyIdleThread::ScheduleTimer); if (NS_WARN_IF(!runnable)) { return NS_ERROR_UNEXPECTED; } diff --git a/xpcom/threads/MozPromise.h b/xpcom/threads/MozPromise.h index 9933a32a36ca..2c8011f1d43c 100644 --- a/xpcom/threads/MozPromise.h +++ b/xpcom/threads/MozPromise.h @@ -380,7 +380,9 @@ protected: { public: ResolveOrRejectRunnable(ThenValueBase* aThenValue, MozPromise* aPromise) - : mThenValue(aThenValue) + : CancelableRunnable( + "MozPromise::ThenValueBase::ResolveOrRejectRunnable") + , mThenValue(aThenValue) , mPromise(aPromise) { MOZ_DIAGNOSTIC_ASSERT(!mPromise->IsPending()); @@ -1378,9 +1380,14 @@ template* aMethodCall) - : mProxyPromise(aProxyPromise), mMethodCall(aMethodCall) {} + ProxyRunnable( + typename PromiseType::Private* aProxyPromise, + MethodCall* aMethodCall) + : CancelableRunnable("detail::ProxyRunnable") + , mProxyPromise(aProxyPromise) + , mMethodCall(aMethodCall) + { + } NS_IMETHOD Run() override { @@ -1489,11 +1496,14 @@ class ProxyFunctionRunnable : public CancelableRunnable { typedef typename Decay::Type FunctionStorage; public: - template + template ProxyFunctionRunnable(typename PromiseType::Private* aProxyPromise, F&& aFunction) - : mProxyPromise(aProxyPromise) - , mFunction(new FunctionStorage(Forward(aFunction))) {} + : CancelableRunnable("detail::ProxyFunctionRunnable") + , mProxyPromise(aProxyPromise) + , mFunction(new FunctionStorage(Forward(aFunction))) + { + } NS_IMETHOD Run() override { diff --git a/xpcom/threads/SchedulerGroup.cpp b/xpcom/threads/SchedulerGroup.cpp index 81e14d05bf7c..8bd0f60ccb57 100644 --- a/xpcom/threads/SchedulerGroup.cpp +++ b/xpcom/threads/SchedulerGroup.cpp @@ -331,8 +331,9 @@ SchedulerGroup::SetValidatingAccess(ValidationType aType) SchedulerGroup::Runnable::Runnable(already_AddRefed&& aRunnable, SchedulerGroup* aGroup) - : mRunnable(Move(aRunnable)), - mGroup(aGroup) + : mozilla::Runnable("SchedulerGroup::Runnable") + , mRunnable(Move(aRunnable)) + , mGroup(aGroup) { } diff --git a/xpcom/threads/SharedThreadPool.cpp b/xpcom/threads/SharedThreadPool.cpp index d52878c741aa..314b0cc2a0c5 100644 --- a/xpcom/threads/SharedThreadPool.cpp +++ b/xpcom/threads/SharedThreadPool.cpp @@ -143,7 +143,8 @@ NS_IMETHODIMP_(MozExternalRefCountType) SharedThreadPool::Release(void) // Dispatch an event to the main thread to call Shutdown() on // the nsIThreadPool. The Runnable here will add a refcount to the pool, // and when the Runnable releases the nsIThreadPool it will be deleted. - NS_DispatchToMainThread(NewRunnableMethod(mPool, &nsIThreadPool::Shutdown)); + NS_DispatchToMainThread(NewRunnableMethod( + "nsIThreadPool::Shutdown", mPool, &nsIThreadPool::Shutdown)); // Stabilize refcount, so that if something in the dtor QIs, it won't explode. mRefCnt = 1; diff --git a/xpcom/threads/StateMirroring.h b/xpcom/threads/StateMirroring.h index 669e928a666f..ef883f9061db 100644 --- a/xpcom/threads/StateMirroring.h +++ b/xpcom/threads/StateMirroring.h @@ -152,9 +152,11 @@ private: { MIRROR_LOG("%s [%p] Disconnecting all mirrors", mName, this); for (size_t i = 0; i < mMirrors.Length(); ++i) { - mMirrors[i]->OwnerThread()->Dispatch(NewRunnableMethod(mMirrors[i], - &AbstractMirror::NotifyDisconnected), - AbstractThread::DontAssertDispatchSuccess); + mMirrors[i]->OwnerThread()->Dispatch( + NewRunnableMethod("AbstractMirror::NotifyDisconnected", + mMirrors[i], + &AbstractMirror::NotifyDisconnected), + AbstractThread::DontAssertDispatchSuccess); } mMirrors.Clear(); } @@ -191,7 +193,8 @@ private: // we can avoid sending multiple updates, and possibly avoid sending any // updates at all if the value ends up where it started. if (!alreadyNotifying) { - AbstractThread::DispatchDirectTask(NewRunnableMethod(this, &Impl::DoNotify)); + AbstractThread::DispatchDirectTask(NewRunnableMethod( + "Canonical::Impl::DoNotify", this, &Impl::DoNotify)); } } @@ -222,7 +225,11 @@ private: already_AddRefed MakeNotifier(AbstractMirror* aMirror) { - return NewRunnableMethod(aMirror, &AbstractMirror::UpdateValue, mValue);; + return NewRunnableMethod("AbstractMirror::UpdateValue", + aMirror, + &AbstractMirror::UpdateValue, + mValue); + ; } T mValue; @@ -325,8 +332,12 @@ private: MOZ_ASSERT(!IsConnected()); MOZ_ASSERT(OwnerThread()->RequiresTailDispatch(aCanonical->OwnerThread()), "Can't get coherency without tail dispatch"); - nsCOMPtr r = NewRunnableMethod>> - (aCanonical, &AbstractCanonical::AddMirror, this); + nsCOMPtr r = + NewRunnableMethod>>( + "AbstractCanonical::AddMirror", + aCanonical, + &AbstractCanonical::AddMirror, + this); aCanonical->OwnerThread()->Dispatch(r.forget(), AbstractThread::DontAssertDispatchSuccess); mCanonical = aCanonical; } @@ -340,8 +351,12 @@ private: } MIRROR_LOG("%s [%p] Disconnecting from %p", mName, this, mCanonical.get()); - nsCOMPtr r = NewRunnableMethod>> - (mCanonical, &AbstractCanonical::RemoveMirror, this); + nsCOMPtr r = + NewRunnableMethod>>( + "AbstractCanonical::RemoveMirror", + mCanonical, + &AbstractCanonical::RemoveMirror, + this); mCanonical->OwnerThread()->Dispatch(r.forget(), AbstractThread::DontAssertDispatchSuccess); mCanonical = nullptr; } diff --git a/xpcom/threads/StateWatching.h b/xpcom/threads/StateWatching.h index 99d521603e3a..351f59915b58 100644 --- a/xpcom/threads/StateWatching.h +++ b/xpcom/threads/StateWatching.h @@ -256,7 +256,10 @@ private: mStrongRef = mOwner; // Hold the owner alive while notifying. // Queue up our notification jobs to run in a stable state. - mOwnerThread->TailDispatcher().AddDirectTask(NewRunnableMethod(this, &PerCallbackWatcher::DoNotify)); + mOwnerThread->TailDispatcher().AddDirectTask( + NewRunnableMethod("WatchManager::PerCallbackWatcher::DoNotify", + this, + &PerCallbackWatcher::DoNotify)); } bool CallbackMethodIs(CallbackMethod aMethod) const diff --git a/xpcom/threads/SyncRunnable.h b/xpcom/threads/SyncRunnable.h index d96bac7ba907..ff617e5a7069 100644 --- a/xpcom/threads/SyncRunnable.h +++ b/xpcom/threads/SyncRunnable.h @@ -34,14 +34,16 @@ class SyncRunnable : public Runnable { public: explicit SyncRunnable(nsIRunnable* aRunnable) - : mRunnable(aRunnable) + : Runnable("SyncRunnable") + , mRunnable(aRunnable) , mMonitor("SyncRunnable") , mDone(false) { } explicit SyncRunnable(already_AddRefed aRunnable) - : mRunnable(Move(aRunnable)) + : Runnable("SyncRunnable") + , mRunnable(Move(aRunnable)) , mMonitor("SyncRunnable") , mDone(false) { diff --git a/xpcom/threads/TaskDispatcher.h b/xpcom/threads/TaskDispatcher.h index 52e810ffb531..a23f017d2ca2 100644 --- a/xpcom/threads/TaskDispatcher.h +++ b/xpcom/threads/TaskDispatcher.h @@ -185,7 +185,11 @@ private: class TaskGroupRunnable : public Runnable { public: - explicit TaskGroupRunnable(UniquePtr&& aTasks) : mTasks(Move(aTasks)) {} + explicit TaskGroupRunnable(UniquePtr&& aTasks) + : Runnable("AutoTaskDispatcher::TaskGroupRunnable") + , mTasks(Move(aTasks)) + { + } NS_IMETHOD Run() override { diff --git a/xpcom/threads/TaskQueue.h b/xpcom/threads/TaskQueue.h index b5f71ec756c1..b97586c8eccb 100644 --- a/xpcom/threads/TaskQueue.h +++ b/xpcom/threads/TaskQueue.h @@ -203,7 +203,8 @@ protected: class Runner : public Runnable { public: explicit Runner(TaskQueue* aQueue) - : mQueue(aQueue) + : Runnable("TaskQueue::Runner") + , mQueue(aQueue) { } NS_IMETHOD Run() override; diff --git a/xpcom/threads/ThrottledEventQueue.cpp b/xpcom/threads/ThrottledEventQueue.cpp index 501157a1fb51..37afc70fae7a 100644 --- a/xpcom/threads/ThrottledEventQueue.cpp +++ b/xpcom/threads/ThrottledEventQueue.cpp @@ -65,7 +65,8 @@ class ThrottledEventQueue::Inner final : public nsIObserver public: explicit Executor(Inner* aInner) - : mInner(aInner) + : Runnable("ThrottledEventQueue::Inner::Executor") + , mInner(aInner) { } NS_IMETHODIMP diff --git a/xpcom/threads/TimerThread.cpp b/xpcom/threads/TimerThread.cpp index 3a889549534b..b91b27b2073a 100644 --- a/xpcom/threads/TimerThread.cpp +++ b/xpcom/threads/TimerThread.cpp @@ -58,7 +58,8 @@ class TimerObserverRunnable : public Runnable { public: explicit TimerObserverRunnable(nsIObserver* aObserver) - : mObserver(aObserver) + : mozilla::Runnable("TimerObserverRunnable") + , mObserver(aObserver) { } @@ -147,7 +148,8 @@ public: NS_IMETHOD GetName(nsACString& aName) override; nsTimerEvent() - : mTimer() + : mozilla::CancelableRunnable("nsTimerEvent") + , mTimer() , mGeneration(0) { // Note: We override operator new for this class, and the override is diff --git a/xpcom/threads/nsMemoryPressure.cpp b/xpcom/threads/nsMemoryPressure.cpp index fea9b0437888..30d27c2989e0 100644 --- a/xpcom/threads/nsMemoryPressure.cpp +++ b/xpcom/threads/nsMemoryPressure.cpp @@ -49,6 +49,6 @@ nsresult NS_DispatchMemoryPressure(MemoryPressureState aState) { NS_DispatchEventualMemoryPressure(aState); - nsCOMPtr event = new Runnable; + nsCOMPtr event = new Runnable("NS_DispatchEventualMemoryPressure"); return NS_DispatchToMainThread(event); } diff --git a/xpcom/threads/nsProcessCommon.cpp b/xpcom/threads/nsProcessCommon.cpp index 7c4a4856d57c..844139a5635a 100644 --- a/xpcom/threads/nsProcessCommon.cpp +++ b/xpcom/threads/nsProcessCommon.cpp @@ -307,7 +307,8 @@ nsProcess::Monitor(void* aArg) if (NS_IsMainThread()) { process->ProcessComplete(); } else { - NS_DispatchToMainThread(NewRunnableMethod(process, &nsProcess::ProcessComplete)); + NS_DispatchToMainThread(NewRunnableMethod( + "nsProcess::ProcessComplete", process, &nsProcess::ProcessComplete)); } if (!process->mBlocking) { diff --git a/xpcom/threads/nsThread.cpp b/xpcom/threads/nsThread.cpp index 6b8a6992e0c8..0c1934a18763 100644 --- a/xpcom/threads/nsThread.cpp +++ b/xpcom/threads/nsThread.cpp @@ -240,10 +240,11 @@ public: DelayedRunnable(already_AddRefed aTargetThread, already_AddRefed aRunnable, uint32_t aDelay) - : mTargetThread(aTargetThread), - mWrappedRunnable(aRunnable), - mDelayedFrom(TimeStamp::NowLoRes()), - mDelay(aDelay) + : mozilla::Runnable("DelayedRunnable") + , mTargetThread(aTargetThread) + , mWrappedRunnable(aRunnable) + , mDelayedFrom(TimeStamp::NowLoRes()) + , mDelay(aDelay) { } NS_DECL_ISUPPORTS_INHERITED diff --git a/xpcom/threads/nsThreadUtils.cpp b/xpcom/threads/nsThreadUtils.cpp index ec0690c40db5..01b36992bf12 100644 --- a/xpcom/threads/nsThreadUtils.cpp +++ b/xpcom/threads/nsThreadUtils.cpp @@ -343,8 +343,11 @@ public: mTimer = do_CreateInstance(NS_TIMER_CONTRACTID); if (mTimer) { mTimer->SetTarget(aTarget); - mTimer->InitWithFuncCallback(TimedOut, this, aDelay, - nsITimer::TYPE_ONE_SHOT); + mTimer->InitWithNamedFuncCallback(TimedOut, + this, + aDelay, + nsITimer::TYPE_ONE_SHOT, + "IdleRunnableWrapper::SetTimer"); } } private: diff --git a/xpcom/threads/nsThreadUtils.h b/xpcom/threads/nsThreadUtils.h index e6a3be969792..7d2cb37090ca 100644 --- a/xpcom/threads/nsThreadUtils.h +++ b/xpcom/threads/nsThreadUtils.h @@ -430,7 +430,10 @@ class IdleRunnable : public CancelableRunnable, public: NS_DECL_ISUPPORTS_INHERITED - IdleRunnable() {} + IdleRunnable() + : CancelableRunnable("IdleRunnable") + { + } explicit IdleRunnable(const char* aName) : CancelableRunnable(aName) {} protected: @@ -452,7 +455,8 @@ class RunnableFunction : public Runnable public: template explicit RunnableFunction(F&& aFunction) - : mFunction(Forward(aFunction)) + : Runnable("RunnableFunction") + , mFunction(Forward(aFunction)) { } NS_IMETHOD Run() override { @@ -571,7 +575,7 @@ ToSupports(mozilla::Runnable *p) template already_AddRefed -NS_NewRunnableFunction(Function&& aFunction) +NS_NewRunnableFunctionXXX(Function&& aFunction) { // We store a non-reference in RunnableFunction, but still forward aFunction // to move if possible. @@ -584,7 +588,7 @@ already_AddRefed NS_NewRunnableFunction(const char* aName, Function&& aFunction) { return mozilla::detail::SetRunnableName( - NS_NewRunnableFunction(mozilla::Forward(aFunction)), aName); + NS_NewRunnableFunctionXXX(mozilla::Forward(aFunction)), aName); } namespace mozilla { @@ -651,7 +655,15 @@ class nsRunnableMethod mozilla::IdleRunnable>::Type>::Type, protected mozilla::detail::TimerBehaviour { + using BaseType = typename mozilla::Conditional::Type>::Type; public: + nsRunnableMethod() : BaseType("nsRunnableMethod") {} + virtual void Revoke() = 0; // These ReturnTypeEnforcer classes set up a blacklist for return types that @@ -1168,8 +1180,11 @@ public: if (nsCOMPtr timer = GetTimer()) { timer->Cancel(); timer->SetTarget(aTarget); - timer->InitWithFuncCallback(TimedOut, this, aDelay, - nsITimer::TYPE_ONE_SHOT); + timer->InitWithNamedFuncCallback(TimedOut, + this, + aDelay, + nsITimer::TYPE_ONE_SHOT, + "detail::RunnableMethodImpl::SetTimer"); } } }; @@ -1328,7 +1343,7 @@ using NonOwningIdleRunnableMethodWithTimerImpl = RunnableMethodImpl< template already_AddRefed> -NewRunnableMethod(PtrType&& aPtr, Method aMethod) +NewRunnableMethodXXX(PtrType&& aPtr, Method aMethod) { return do_AddRef( new detail::OwningRunnableMethodImpl @@ -1340,12 +1355,12 @@ already_AddRefed> NewRunnableMethod(const char* aName, PtrType&& aPtr, Method aMethod) { return detail::SetRunnableName( - NewRunnableMethod(Forward(aPtr), aMethod), aName); + NewRunnableMethodXXX(Forward(aPtr), aMethod), aName); } template already_AddRefed> -NewCancelableRunnableMethod(PtrType&& aPtr, Method aMethod) +NewCancelableRunnableMethodXXX(PtrType&& aPtr, Method aMethod) { return do_AddRef( new detail::CancelableRunnableMethodImpl @@ -1357,12 +1372,12 @@ already_AddRefed> NewCancelableRunnableMethod(const char* aName, PtrType&& aPtr, Method aMethod) { return detail::SetRunnableName( - NewCancelableRunnableMethod(Forward(aPtr), aMethod), aName); + NewCancelableRunnableMethodXXX(Forward(aPtr), aMethod), aName); } template already_AddRefed> -NewIdleRunnableMethod(PtrType&& aPtr, Method aMethod) +NewIdleRunnableMethodXXX(PtrType&& aPtr, Method aMethod) { return do_AddRef(new detail::IdleRunnableMethodImpl( Forward(aPtr), aMethod)); @@ -1373,12 +1388,12 @@ already_AddRefed> NewIdleRunnableMethod(const char* aName, PtrType&& aPtr, Method aMethod) { return detail::SetRunnableName( - NewIdleRunnableMethod(Forward(aPtr), aMethod), aName); + NewIdleRunnableMethodXXX(Forward(aPtr), aMethod), aName); } template already_AddRefed> -NewIdleRunnableMethodWithTimer(PtrType&& aPtr, Method aMethod) +NewIdleRunnableMethodWithTimerXXX(PtrType&& aPtr, Method aMethod) { return do_AddRef(new detail::IdleRunnableMethodWithTimerImpl( Forward(aPtr), aMethod)); @@ -1391,13 +1406,13 @@ NewIdleRunnableMethodWithTimer(const char* aName, Method aMethod) { return detail::SetRunnableName( - NewIdleRunnableMethodWithTimer(Forward(aPtr), aMethod), + NewIdleRunnableMethodWithTimerXXX(Forward(aPtr), aMethod), aName); } template already_AddRefed> -NewNonOwningRunnableMethod(PtrType&& aPtr, Method aMethod) +NewNonOwningRunnableMethodXXX(PtrType&& aPtr, Method aMethod) { return do_AddRef( new detail::NonOwningRunnableMethodImpl @@ -1409,12 +1424,12 @@ already_AddRefed> NewNonOwningRunnableMethod(const char* aName, PtrType&& aPtr, Method aMethod) { return detail::SetRunnableName( - NewNonOwningRunnableMethod(Forward(aPtr), aMethod), aName); + NewNonOwningRunnableMethodXXX(Forward(aPtr), aMethod), aName); } template already_AddRefed> -NewNonOwningCancelableRunnableMethod(PtrType&& aPtr, Method aMethod) +NewNonOwningCancelableRunnableMethodXXX(PtrType&& aPtr, Method aMethod) { return do_AddRef( new detail::NonOwningCancelableRunnableMethodImpl @@ -1427,12 +1442,12 @@ NewNonOwningCancelableRunnableMethod(const char* aName, PtrType&& aPtr, Method aMethod) { return detail::SetRunnableName( - NewNonOwningCancelableRunnableMethod(Forward(aPtr), aMethod), aName); + NewNonOwningCancelableRunnableMethodXXX(Forward(aPtr), aMethod), aName); } template already_AddRefed> -NewNonOwningIdleRunnableMethod(PtrType&& aPtr, Method aMethod) +NewNonOwningIdleRunnableMethodXXX(PtrType&& aPtr, Method aMethod) { return do_AddRef( new detail::NonOwningIdleRunnableMethodImpl( @@ -1446,12 +1461,12 @@ NewNonOwningIdleRunnableMethod(const char* aName, Method aMethod) { return detail::SetRunnableName( - NewNonOwningIdleRunnableMethod(Forward(aPtr), aMethod), aName); + NewNonOwningIdleRunnableMethodXXX(Forward(aPtr), aMethod), aName); } template already_AddRefed> -NewNonOwningIdleRunnableMethodWithTimer(PtrType&& aPtr, +NewNonOwningIdleRunnableMethodWithTimerXXX(PtrType&& aPtr, Method aMethod) { return do_AddRef( @@ -1465,7 +1480,7 @@ NewNonOwningIdleRunnableMethodWithTimer(const char* aName, PtrType&& aPtr, Method aMethod) { - return detail::SetRunnableName(NewNonOwningIdleRunnableMethodWithTimer( + return detail::SetRunnableName(NewNonOwningIdleRunnableMethodWithTimerXXX( Forward(aPtr), aMethod), aName); } @@ -1476,7 +1491,7 @@ NewNonOwningIdleRunnableMethodWithTimer(const char* aName, // 'Types' are the stored type for each argument, see ParameterStorage for details. template already_AddRefed> -NewRunnableMethod(PtrType&& aPtr, Method aMethod, Args&&... aArgs) +NewRunnableMethodXXX(PtrType&& aPtr, Method aMethod, Args&&... aArgs) { static_assert(sizeof...(Storages) == sizeof...(Args), " size should be equal to number of arguments"); @@ -1492,13 +1507,13 @@ NewRunnableMethod(const char* aName, PtrType&& aPtr, Method aMethod, Args&&... a static_assert(sizeof...(Storages) == sizeof...(Args), " size should be equal to number of arguments"); return detail::SetRunnableName( - NewRunnableMethod + NewRunnableMethodXXX (Forward(aPtr), aMethod, mozilla::Forward(aArgs)...), aName); } template already_AddRefed> -NewNonOwningRunnableMethod(PtrType&& aPtr, Method aMethod, Args&&... aArgs) +NewNonOwningRunnableMethodXXX(PtrType&& aPtr, Method aMethod, Args&&... aArgs) { static_assert(sizeof...(Storages) == sizeof...(Args), " size should be equal to number of arguments"); @@ -1515,13 +1530,13 @@ NewNonOwningRunnableMethod(const char* aName, PtrType&& aPtr, Method aMethod, static_assert(sizeof...(Storages) == sizeof...(Args), " size should be equal to number of arguments"); return detail::SetRunnableName( - NewNonOwningRunnableMethod + NewNonOwningRunnableMethodXXX (Forward(aPtr), aMethod, mozilla::Forward(aArgs)...), aName); } template already_AddRefed> -NewCancelableRunnableMethod(PtrType&& aPtr, Method aMethod, Args&&... aArgs) +NewCancelableRunnableMethodXXX(PtrType&& aPtr, Method aMethod, Args&&... aArgs) { static_assert(sizeof...(Storages) == sizeof...(Args), " size should be equal to number of arguments"); @@ -1538,13 +1553,13 @@ NewCancelableRunnableMethod(const char* aName, PtrType&& aPtr, Method aMethod, static_assert(sizeof...(Storages) == sizeof...(Args), " size should be equal to number of arguments"); return detail::SetRunnableName( - NewCancelableRunnableMethod + NewCancelableRunnableMethodXXX (Forward(aPtr), aMethod, mozilla::Forward(aArgs)...), aName); } template already_AddRefed> -NewNonOwningCancelableRunnableMethod(PtrType&& aPtr, Method aMethod, +NewNonOwningCancelableRunnableMethodXXX(PtrType&& aPtr, Method aMethod, Args&&... aArgs) { static_assert(sizeof...(Storages) == sizeof...(Args), @@ -1562,7 +1577,7 @@ NewNonOwningCancelableRunnableMethod(const char* aName, PtrType&& aPtr, static_assert(sizeof...(Storages) == sizeof...(Args), " size should be equal to number of arguments"); return detail::SetRunnableName( - NewNonOwningCancelableRunnableMethod + NewNonOwningCancelableRunnableMethodXXX (Forward(aPtr), aMethod, mozilla::Forward(aArgs)...), aName); } @@ -1571,7 +1586,7 @@ template already_AddRefed> -NewIdleRunnableMethod(PtrType&& aPtr, Method aMethod, Args&&... aArgs) +NewIdleRunnableMethodXXX(PtrType&& aPtr, Method aMethod, Args&&... aArgs) { static_assert(sizeof...(Storages) == sizeof...(Args), " size should be equal to number of arguments"); @@ -1593,7 +1608,7 @@ NewIdleRunnableMethod(const char* aName, static_assert(sizeof...(Storages) == sizeof...(Args), " size should be equal to number of arguments"); return detail::SetRunnableName( - NewIdleRunnableMethod( + NewIdleRunnableMethodXXX( Forward(aPtr), aMethod, mozilla::Forward(aArgs)...), aName); } @@ -1603,7 +1618,7 @@ template already_AddRefed> -NewNonOwningIdleRunnableMethod(PtrType&& aPtr, Method aMethod, Args&&... aArgs) +NewNonOwningIdleRunnableMethodXXX(PtrType&& aPtr, Method aMethod, Args&&... aArgs) { static_assert(sizeof...(Storages) == sizeof...(Args), " size should be equal to number of arguments"); @@ -1625,7 +1640,7 @@ NewNonOwningIdleRunnableMethod(const char* aName, static_assert(sizeof...(Storages) == sizeof...(Args), " size should be equal to number of arguments"); return detail::SetRunnableName( - NewNonOwningIdleRunnableMethod( + NewNonOwningIdleRunnableMethodXXX( Forward(aPtr), aMethod, mozilla::Forward(aArgs)...), aName); } diff --git a/xpfe/appshell/nsAppShellService.cpp b/xpfe/appshell/nsAppShellService.cpp index 63aa3699e816..f93528a05b3c 100644 --- a/xpfe/appshell/nsAppShellService.cpp +++ b/xpfe/appshell/nsAppShellService.cpp @@ -404,9 +404,10 @@ WebBrowserChrome2Stub::Blur() class BrowserDestroyer final : public Runnable { public: - BrowserDestroyer(nsIWebBrowser *aBrowser, nsISupports *aContainer) : - mBrowser(aBrowser), - mContainer(aContainer) + BrowserDestroyer(nsIWebBrowser* aBrowser, nsISupports* aContainer) + : mozilla::Runnable("BrowserDestroyer") + , mBrowser(aBrowser) + , mContainer(aContainer) { } diff --git a/xpfe/appshell/nsContentTreeOwner.cpp b/xpfe/appshell/nsContentTreeOwner.cpp index d9067cea541a..1a73de11a5df 100644 --- a/xpfe/appshell/nsContentTreeOwner.cpp +++ b/xpfe/appshell/nsContentTreeOwner.cpp @@ -942,7 +942,8 @@ class nsContentTitleSettingEvent : public Runnable { public: nsContentTitleSettingEvent(dom::Element* dse, const nsAString& wtm) - : mElement(dse), + : Runnable("nsContentTitleSettingEvent"), + mElement(dse), mTitleDefault(wtm) {} NS_IMETHOD Run() override diff --git a/xpfe/components/directory/nsDirectoryViewer.cpp b/xpfe/components/directory/nsDirectoryViewer.cpp index 6acda8805c09..f1dff24fe569 100644 --- a/xpfe/components/directory/nsDirectoryViewer.cpp +++ b/xpfe/components/directory/nsDirectoryViewer.cpp @@ -863,11 +863,15 @@ nsHTTPIndex::GetTargets(nsIRDFResource *aSource, nsIRDFResource *aProperty, bool NS_ASSERTION(NS_SUCCEEDED(rv), "unable to create a timer"); if (NS_SUCCEEDED(rv)) { - mTimer->InitWithFuncCallback(nsHTTPIndex::FireTimer, this, 1, - nsITimer::TYPE_ONE_SHOT); - // Note: don't addref "this" as we'll cancel the - // timer in the httpIndex destructor - } + mTimer->InitWithNamedFuncCallback( + nsHTTPIndex::FireTimer, + this, + 1, + nsITimer::TYPE_ONE_SHOT, + "nsHTTPIndex::GetTargets"); + // Note: don't addref "this" as we'll cancel the + // timer in the httpIndex destructor + } } } } @@ -898,11 +902,14 @@ nsHTTPIndex::AddElement(nsIRDFResource *parent, nsIRDFResource *prop, nsIRDFNode NS_ASSERTION(NS_SUCCEEDED(rv), "unable to create a timer"); if (NS_FAILED(rv)) return(rv); - mTimer->InitWithFuncCallback(nsHTTPIndex::FireTimer, this, 1, - nsITimer::TYPE_ONE_SHOT); - // Note: don't addref "this" as we'll cancel the - // timer in the httpIndex destructor - } + mTimer->InitWithNamedFuncCallback(nsHTTPIndex::FireTimer, + this, + 1, + nsITimer::TYPE_ONE_SHOT, + "nsHTTPIndex::AddElement"); + // Note: don't addref "this" as we'll cancel the + // timer in the httpIndex destructor + } return(NS_OK); } @@ -1031,8 +1038,11 @@ nsHTTPIndex::FireTimer(nsITimer* aTimer, void* aClosure) httpIndex->mTimer = do_CreateInstance("@mozilla.org/timer;1"); if (httpIndex->mTimer) { - httpIndex->mTimer->InitWithFuncCallback(nsHTTPIndex::FireTimer, aClosure, 10, - nsITimer::TYPE_ONE_SHOT); + httpIndex->mTimer->InitWithNamedFuncCallback(nsHTTPIndex::FireTimer, + aClosure, + 10, + nsITimer::TYPE_ONE_SHOT, + "nsHTTPIndex::FireTimer"); // Note: don't addref "this" as we'll cancel the // timer in the httpIndex destructor } From 7d9718400d3a9a35cb1b2023619b81be98f8164e Mon Sep 17 00:00:00 2001 From: Bill McCloskey Date: Mon, 12 Jun 2017 13:39:47 -0700 Subject: [PATCH 005/106] Bug 1372405 - Delete default Runnable ctor so name must be provided (r=froydnj) MozReview-Commit-ID: 9L4UoBJWzQ3 --- xpcom/threads/nsThreadUtils.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xpcom/threads/nsThreadUtils.h b/xpcom/threads/nsThreadUtils.h index 7d2cb37090ca..63e5a5298761 100644 --- a/xpcom/threads/nsThreadUtils.h +++ b/xpcom/threads/nsThreadUtils.h @@ -382,7 +382,7 @@ public: NS_DECL_NSIRUNNABLE NS_DECL_NSINAMED - Runnable() {} + Runnable() = delete; #ifdef RELEASE_OR_BETA explicit Runnable(const char* aName) {} @@ -412,7 +412,7 @@ public: // nsICancelableRunnable virtual nsresult Cancel() override; - CancelableRunnable() {} + CancelableRunnable() = delete; explicit CancelableRunnable(const char* aName) : Runnable(aName) {} protected: From 0d3da3e6704c4f981d82dd766b3d568723407ca3 Mon Sep 17 00:00:00 2001 From: Bill McCloskey Date: Thu, 15 Jun 2017 13:30:27 -0700 Subject: [PATCH 006/106] Bug 1372405 - Remove NewRunnable functions that lack a name param (r=froydnj) MozReview-Commit-ID: vGCnkBey03 --- xpcom/threads/nsThreadUtils.h | 226 ++++++++-------------------------- 1 file changed, 49 insertions(+), 177 deletions(-) diff --git a/xpcom/threads/nsThreadUtils.h b/xpcom/threads/nsThreadUtils.h index 63e5a5298761..029239ae475e 100644 --- a/xpcom/threads/nsThreadUtils.h +++ b/xpcom/threads/nsThreadUtils.h @@ -477,12 +477,16 @@ using RunnableFunctionImpl = template inline already_AddRefed -SetRunnableName(already_AddRefed&& aObj, const char* aName) +SetRunnableName(const char* aName, T* aObj) { +#ifdef RELEASE_OR_BETA + return do_AddRef(aObj); +#else MOZ_RELEASE_ASSERT(aName); RefPtr ref(aObj); ref->SetName(aName); return ref.forget(); +#endif } } // namespace detail @@ -575,20 +579,14 @@ ToSupports(mozilla::Runnable *p) template already_AddRefed -NS_NewRunnableFunctionXXX(Function&& aFunction) +NS_NewRunnableFunction(const char* aName, Function&& aFunction) { // We store a non-reference in RunnableFunction, but still forward aFunction // to move if possible. - return do_AddRef(new mozilla::detail::RunnableFunctionImpl - (mozilla::Forward(aFunction))); -} - -template -already_AddRefed -NS_NewRunnableFunction(const char* aName, Function&& aFunction) -{ return mozilla::detail::SetRunnableName( - NS_NewRunnableFunctionXXX(mozilla::Forward(aFunction)), aName); + aName, + new mozilla::detail::RunnableFunctionImpl( + mozilla::Forward(aFunction))); } namespace mozilla { @@ -1341,30 +1339,14 @@ using NonOwningIdleRunnableMethodWithTimerImpl = RunnableMethodImpl< // these in older code. The `const char*` overload is preferred and // should be used in new code exclusively. -template -already_AddRefed> -NewRunnableMethodXXX(PtrType&& aPtr, Method aMethod) -{ - return do_AddRef( - new detail::OwningRunnableMethodImpl - (Forward(aPtr), aMethod)); -} - template already_AddRefed> NewRunnableMethod(const char* aName, PtrType&& aPtr, Method aMethod) { return detail::SetRunnableName( - NewRunnableMethodXXX(Forward(aPtr), aMethod), aName); -} - -template -already_AddRefed> -NewCancelableRunnableMethodXXX(PtrType&& aPtr, Method aMethod) -{ - return do_AddRef( - new detail::CancelableRunnableMethodImpl - (Forward(aPtr), aMethod)); + aName, + new detail::OwningRunnableMethodImpl( + Forward(aPtr), aMethod)); } template @@ -1372,15 +1354,9 @@ already_AddRefed> NewCancelableRunnableMethod(const char* aName, PtrType&& aPtr, Method aMethod) { return detail::SetRunnableName( - NewCancelableRunnableMethodXXX(Forward(aPtr), aMethod), aName); -} - -template -already_AddRefed> -NewIdleRunnableMethodXXX(PtrType&& aPtr, Method aMethod) -{ - return do_AddRef(new detail::IdleRunnableMethodImpl( - Forward(aPtr), aMethod)); + aName, + new detail::CancelableRunnableMethodImpl( + Forward(aPtr), aMethod)); } template @@ -1388,15 +1364,9 @@ already_AddRefed> NewIdleRunnableMethod(const char* aName, PtrType&& aPtr, Method aMethod) { return detail::SetRunnableName( - NewIdleRunnableMethodXXX(Forward(aPtr), aMethod), aName); -} - -template -already_AddRefed> -NewIdleRunnableMethodWithTimerXXX(PtrType&& aPtr, Method aMethod) -{ - return do_AddRef(new detail::IdleRunnableMethodWithTimerImpl( - Forward(aPtr), aMethod)); + aName, + new detail::IdleRunnableMethodImpl( + Forward(aPtr), aMethod)); } template @@ -1406,17 +1376,9 @@ NewIdleRunnableMethodWithTimer(const char* aName, Method aMethod) { return detail::SetRunnableName( - NewIdleRunnableMethodWithTimerXXX(Forward(aPtr), aMethod), - aName); -} - -template -already_AddRefed> -NewNonOwningRunnableMethodXXX(PtrType&& aPtr, Method aMethod) -{ - return do_AddRef( - new detail::NonOwningRunnableMethodImpl - (Forward(aPtr), aMethod)); + aName, + new detail::IdleRunnableMethodWithTimerImpl( + Forward(aPtr), aMethod)); } template @@ -1424,16 +1386,9 @@ already_AddRefed> NewNonOwningRunnableMethod(const char* aName, PtrType&& aPtr, Method aMethod) { return detail::SetRunnableName( - NewNonOwningRunnableMethodXXX(Forward(aPtr), aMethod), aName); -} - -template -already_AddRefed> -NewNonOwningCancelableRunnableMethodXXX(PtrType&& aPtr, Method aMethod) -{ - return do_AddRef( - new detail::NonOwningCancelableRunnableMethodImpl - (Forward(aPtr), aMethod)); + aName, + new detail::NonOwningRunnableMethodImpl( + Forward(aPtr), aMethod)); } template @@ -1442,15 +1397,8 @@ NewNonOwningCancelableRunnableMethod(const char* aName, PtrType&& aPtr, Method aMethod) { return detail::SetRunnableName( - NewNonOwningCancelableRunnableMethodXXX(Forward(aPtr), aMethod), aName); -} - -template -already_AddRefed> -NewNonOwningIdleRunnableMethodXXX(PtrType&& aPtr, Method aMethod) -{ - return do_AddRef( - new detail::NonOwningIdleRunnableMethodImpl( + aName, + new detail::NonOwningCancelableRunnableMethodImpl( Forward(aPtr), aMethod)); } @@ -1461,17 +1409,9 @@ NewNonOwningIdleRunnableMethod(const char* aName, Method aMethod) { return detail::SetRunnableName( - NewNonOwningIdleRunnableMethodXXX(Forward(aPtr), aMethod), aName); -} - -template -already_AddRefed> -NewNonOwningIdleRunnableMethodWithTimerXXX(PtrType&& aPtr, - Method aMethod) -{ - return do_AddRef( - new detail::NonOwningIdleRunnableMethodWithTimerImpl( - Forward(aPtr), aMethod)); + aName, + new detail::NonOwningIdleRunnableMethodImpl( + Forward(aPtr), aMethod)); } template @@ -1480,26 +1420,16 @@ NewNonOwningIdleRunnableMethodWithTimer(const char* aName, PtrType&& aPtr, Method aMethod) { - return detail::SetRunnableName(NewNonOwningIdleRunnableMethodWithTimerXXX( - Forward(aPtr), aMethod), - aName); + return detail::SetRunnableName( + aName, + new detail::NonOwningIdleRunnableMethodWithTimerImpl( + Forward(aPtr), aMethod)); } // Similar to NewRunnableMethod. Call like so: // nsCOMPtr event = // NewRunnableMethod(myObject, &MyClass::HandleEvent, myArg1,...); // 'Types' are the stored type for each argument, see ParameterStorage for details. -template -already_AddRefed> -NewRunnableMethodXXX(PtrType&& aPtr, Method aMethod, Args&&... aArgs) -{ - static_assert(sizeof...(Storages) == sizeof...(Args), - " size should be equal to number of arguments"); - return do_AddRef( - new detail::OwningRunnableMethodImpl - (Forward(aPtr), aMethod, mozilla::Forward(aArgs)...)); -} - template already_AddRefed> NewRunnableMethod(const char* aName, PtrType&& aPtr, Method aMethod, Args&&... aArgs) @@ -1507,19 +1437,9 @@ NewRunnableMethod(const char* aName, PtrType&& aPtr, Method aMethod, Args&&... a static_assert(sizeof...(Storages) == sizeof...(Args), " size should be equal to number of arguments"); return detail::SetRunnableName( - NewRunnableMethodXXX - (Forward(aPtr), aMethod, mozilla::Forward(aArgs)...), aName); -} - -template -already_AddRefed> -NewNonOwningRunnableMethodXXX(PtrType&& aPtr, Method aMethod, Args&&... aArgs) -{ - static_assert(sizeof...(Storages) == sizeof...(Args), - " size should be equal to number of arguments"); - return do_AddRef( - new detail::NonOwningRunnableMethodImpl - (Forward(aPtr), aMethod, mozilla::Forward(aArgs)...)); + aName, + new detail::OwningRunnableMethodImpl( + Forward(aPtr), aMethod, mozilla::Forward(aArgs)...)); } template @@ -1530,19 +1450,9 @@ NewNonOwningRunnableMethod(const char* aName, PtrType&& aPtr, Method aMethod, static_assert(sizeof...(Storages) == sizeof...(Args), " size should be equal to number of arguments"); return detail::SetRunnableName( - NewNonOwningRunnableMethodXXX - (Forward(aPtr), aMethod, mozilla::Forward(aArgs)...), aName); -} - -template -already_AddRefed> -NewCancelableRunnableMethodXXX(PtrType&& aPtr, Method aMethod, Args&&... aArgs) -{ - static_assert(sizeof...(Storages) == sizeof...(Args), - " size should be equal to number of arguments"); - return do_AddRef( - new detail::CancelableRunnableMethodImpl - (Forward(aPtr), aMethod, mozilla::Forward(aArgs)...)); + aName, + new detail::NonOwningRunnableMethodImpl( + Forward(aPtr), aMethod, mozilla::Forward(aArgs)...)); } template @@ -1553,20 +1463,9 @@ NewCancelableRunnableMethod(const char* aName, PtrType&& aPtr, Method aMethod, static_assert(sizeof...(Storages) == sizeof...(Args), " size should be equal to number of arguments"); return detail::SetRunnableName( - NewCancelableRunnableMethodXXX - (Forward(aPtr), aMethod, mozilla::Forward(aArgs)...), aName); -} - -template -already_AddRefed> -NewNonOwningCancelableRunnableMethodXXX(PtrType&& aPtr, Method aMethod, - Args&&... aArgs) -{ - static_assert(sizeof...(Storages) == sizeof...(Args), - " size should be equal to number of arguments"); - return do_AddRef( - new detail::NonOwningCancelableRunnableMethodImpl - (Forward(aPtr), aMethod, mozilla::Forward(aArgs)...)); + aName, + new detail::CancelableRunnableMethodImpl( + Forward(aPtr), aMethod, mozilla::Forward(aArgs)...)); } template @@ -1577,21 +1476,8 @@ NewNonOwningCancelableRunnableMethod(const char* aName, PtrType&& aPtr, static_assert(sizeof...(Storages) == sizeof...(Args), " size should be equal to number of arguments"); return detail::SetRunnableName( - NewNonOwningCancelableRunnableMethodXXX - (Forward(aPtr), aMethod, mozilla::Forward(aArgs)...), aName); -} - -template -already_AddRefed> -NewIdleRunnableMethodXXX(PtrType&& aPtr, Method aMethod, Args&&... aArgs) -{ - static_assert(sizeof...(Storages) == sizeof...(Args), - " size should be equal to number of arguments"); - return do_AddRef( - new detail::IdleRunnableMethodImpl( + aName, + new detail::NonOwningCancelableRunnableMethodImpl( Forward(aPtr), aMethod, mozilla::Forward(aArgs)...)); } @@ -1608,22 +1494,8 @@ NewIdleRunnableMethod(const char* aName, static_assert(sizeof...(Storages) == sizeof...(Args), " size should be equal to number of arguments"); return detail::SetRunnableName( - NewIdleRunnableMethodXXX( - Forward(aPtr), aMethod, mozilla::Forward(aArgs)...), - aName); -} - -template -already_AddRefed> -NewNonOwningIdleRunnableMethodXXX(PtrType&& aPtr, Method aMethod, Args&&... aArgs) -{ - static_assert(sizeof...(Storages) == sizeof...(Args), - " size should be equal to number of arguments"); - return do_AddRef( - new detail::NonOwningIdleRunnableMethodImpl( + aName, + new detail::IdleRunnableMethodImpl( Forward(aPtr), aMethod, mozilla::Forward(aArgs)...)); } @@ -1640,9 +1512,9 @@ NewNonOwningIdleRunnableMethod(const char* aName, static_assert(sizeof...(Storages) == sizeof...(Args), " size should be equal to number of arguments"); return detail::SetRunnableName( - NewNonOwningIdleRunnableMethodXXX( - Forward(aPtr), aMethod, mozilla::Forward(aArgs)...), - aName); + aName, + new detail::NonOwningIdleRunnableMethodImpl( + Forward(aPtr), aMethod, mozilla::Forward(aArgs)...)); } } // namespace mozilla From 997839c30fd5d7d9656d8b171f32e14e24ec21b8 Mon Sep 17 00:00:00 2001 From: Gabriel Luong Date: Fri, 16 Jun 2017 01:18:05 -0400 Subject: [PATCH 007/106] Bug 1373492 - Enable the layout view by default. r=pbro MozReview-Commit-ID: 3E81zeEUmfm --- devtools/client/framework/toolbox-options.js | 5 ----- devtools/client/inspector/boxmodel/test/head.js | 2 -- devtools/client/inspector/grids/test/head.js | 2 -- devtools/client/inspector/inspector.js | 12 +++++------- .../browser_inspector_highlighter-eyedropper-xul.js | 2 +- devtools/client/locales/en-US/layout.properties | 2 -- devtools/client/preferences/devtools.js | 3 --- 7 files changed, 6 insertions(+), 22 deletions(-) diff --git a/devtools/client/framework/toolbox-options.js b/devtools/client/framework/toolbox-options.js index 393dc217450a..affce0073b7f 100644 --- a/devtools/client/framework/toolbox-options.js +++ b/devtools/client/framework/toolbox-options.js @@ -322,11 +322,6 @@ OptionsPanel.prototype = { label: "Enable new debugger frontend", id: "devtools-new-debugger", parentId: "debugger-options" - }, { - pref: "devtools.layoutview.enabled", - label: "Enable layout panel", - id: "devtools-layout-panel", - parentId: "inspector-options" }]; let createPreferenceOption = ({pref, label, id}) => { diff --git a/devtools/client/inspector/boxmodel/test/head.js b/devtools/client/inspector/boxmodel/test/head.js index cf79833b8a92..8f0bbef6e370 100644 --- a/devtools/client/inspector/boxmodel/test/head.js +++ b/devtools/client/inspector/boxmodel/test/head.js @@ -11,10 +11,8 @@ Services.scriptloader.loadSubScript( "chrome://mochitests/content/browser/devtools/client/inspector/test/head.js", this); -Services.prefs.setBoolPref("devtools.layoutview.enabled", true); Services.prefs.setIntPref("devtools.toolbox.footer.height", 350); registerCleanupFunction(() => { - Services.prefs.clearUserPref("devtools.layoutview.enabled"); Services.prefs.clearUserPref("devtools.toolbox.footer.height"); }); diff --git a/devtools/client/inspector/grids/test/head.js b/devtools/client/inspector/grids/test/head.js index 9606513bf213..6788f638c3b9 100644 --- a/devtools/client/inspector/grids/test/head.js +++ b/devtools/client/inspector/grids/test/head.js @@ -16,11 +16,9 @@ Services.scriptloader.loadSubScript( "chrome://mochitests/content/browser/devtools/client/framework/test/shared-redux-head.js", this); -Services.prefs.setBoolPref("devtools.layoutview.enabled", true); Services.prefs.setBoolPref("devtools.promote.layoutview.showPromoteBar", false); Services.prefs.setIntPref("devtools.toolbox.footer.height", 350); registerCleanupFunction(() => { - Services.prefs.clearUserPref("devtools.layoutview.enabled"); Services.prefs.clearUserPref("devtools.promote.layoutview.showPromoteBar"); Services.prefs.clearUserPref("devtools.toolbox.footer.height"); }); diff --git a/devtools/client/inspector/inspector.js b/devtools/client/inspector/inspector.js index e02ac1a8fcd8..d0881a66797c 100644 --- a/devtools/client/inspector/inspector.js +++ b/devtools/client/inspector/inspector.js @@ -620,14 +620,12 @@ Inspector.prototype = { INSPECTOR_L10N.getStr("inspector.sidebar.computedViewTitle"), defaultTab == "computedview"); - if (Services.prefs.getBoolPref("devtools.layoutview.enabled")) { - // Grid and layout panels aren't lazy-loaded as their module end up - // calling inspector.addSidebarTab - this.gridInspector = new GridInspector(this, this.panelWin); + // Grid and layout panels aren't lazy-loaded as their module end up + // calling inspector.addSidebarTab + this.gridInspector = new GridInspector(this, this.panelWin); - const LayoutView = this.browserRequire("devtools/client/inspector/layout/layout"); - this.layoutview = new LayoutView(this, this.panelWin); - } + const LayoutView = this.browserRequire("devtools/client/inspector/layout/layout"); + this.layoutview = new LayoutView(this, this.panelWin); if (this.target.form.animationsActor) { this.sidebar.addFrameTab( diff --git a/devtools/client/inspector/test/browser_inspector_highlighter-eyedropper-xul.js b/devtools/client/inspector/test/browser_inspector_highlighter-eyedropper-xul.js index b99dfd864699..c75cd5fc13b9 100644 --- a/devtools/client/inspector/test/browser_inspector_highlighter-eyedropper-xul.js +++ b/devtools/client/inspector/test/browser_inspector_highlighter-eyedropper-xul.js @@ -31,7 +31,7 @@ add_task(function* () { swatchEl.click(); yield onColorPickerReady; - button = cPicker.tooltip.doc.querySelector("#eyedropper-button"); + button = cPicker.tooltip.container.querySelector("#eyedropper-button"); ok(isDisabled(button), "The button is disabled in the color picker"); info("Navigate to a HTML document"); diff --git a/devtools/client/locales/en-US/layout.properties b/devtools/client/locales/en-US/layout.properties index 2e868f019509..423db443b015 100644 --- a/devtools/client/locales/en-US/layout.properties +++ b/devtools/client/locales/en-US/layout.properties @@ -4,8 +4,6 @@ # LOCALIZATION NOTE This file contains the Layout Inspector strings. # The Layout Inspector is a panel accessible in the Inspector sidebar. -# The Layout Inspector may need to be enabled in about:config by setting -# devtools.layoutview.enabled to true. # LOCALIZATION NOTE (layout.cannotShowGridOutline, layout.cannotSHowGridOutline.title): # In the case where the grid outline cannot be effectively displayed. diff --git a/devtools/client/preferences/devtools.js b/devtools/client/preferences/devtools.js index 8523beb1079c..4462735471f4 100644 --- a/devtools/client/preferences/devtools.js +++ b/devtools/client/preferences/devtools.js @@ -68,9 +68,6 @@ pref("devtools.inspector.colorWidget.enabled", false); // Enable the Font Inspector pref("devtools.fontinspector.enabled", true); -// Enable the Layout View -pref("devtools.layoutview.enabled", false); - // Counter to promote the inspector layout view. // @remove after release 56 (See Bug 1355747) pref("devtools.promote.layoutview", 1); From a349ee2d0273409329becdf9b1f8c498b57b5363 Mon Sep 17 00:00:00 2001 From: "Carsten \"Tomcat\" Book" Date: Tue, 20 Jun 2017 08:26:56 +0200 Subject: [PATCH 008/106] Backed out changeset 4d33d0e50338 (bug 1372405) --- xpcom/threads/nsThreadUtils.h | 226 ++++++++++++++++++++++++++-------- 1 file changed, 177 insertions(+), 49 deletions(-) diff --git a/xpcom/threads/nsThreadUtils.h b/xpcom/threads/nsThreadUtils.h index 029239ae475e..63e5a5298761 100644 --- a/xpcom/threads/nsThreadUtils.h +++ b/xpcom/threads/nsThreadUtils.h @@ -477,16 +477,12 @@ using RunnableFunctionImpl = template inline already_AddRefed -SetRunnableName(const char* aName, T* aObj) +SetRunnableName(already_AddRefed&& aObj, const char* aName) { -#ifdef RELEASE_OR_BETA - return do_AddRef(aObj); -#else MOZ_RELEASE_ASSERT(aName); RefPtr ref(aObj); ref->SetName(aName); return ref.forget(); -#endif } } // namespace detail @@ -579,14 +575,20 @@ ToSupports(mozilla::Runnable *p) template already_AddRefed -NS_NewRunnableFunction(const char* aName, Function&& aFunction) +NS_NewRunnableFunctionXXX(Function&& aFunction) { // We store a non-reference in RunnableFunction, but still forward aFunction // to move if possible. + return do_AddRef(new mozilla::detail::RunnableFunctionImpl + (mozilla::Forward(aFunction))); +} + +template +already_AddRefed +NS_NewRunnableFunction(const char* aName, Function&& aFunction) +{ return mozilla::detail::SetRunnableName( - aName, - new mozilla::detail::RunnableFunctionImpl( - mozilla::Forward(aFunction))); + NS_NewRunnableFunctionXXX(mozilla::Forward(aFunction)), aName); } namespace mozilla { @@ -1339,14 +1341,30 @@ using NonOwningIdleRunnableMethodWithTimerImpl = RunnableMethodImpl< // these in older code. The `const char*` overload is preferred and // should be used in new code exclusively. +template +already_AddRefed> +NewRunnableMethodXXX(PtrType&& aPtr, Method aMethod) +{ + return do_AddRef( + new detail::OwningRunnableMethodImpl + (Forward(aPtr), aMethod)); +} + template already_AddRefed> NewRunnableMethod(const char* aName, PtrType&& aPtr, Method aMethod) { return detail::SetRunnableName( - aName, - new detail::OwningRunnableMethodImpl( - Forward(aPtr), aMethod)); + NewRunnableMethodXXX(Forward(aPtr), aMethod), aName); +} + +template +already_AddRefed> +NewCancelableRunnableMethodXXX(PtrType&& aPtr, Method aMethod) +{ + return do_AddRef( + new detail::CancelableRunnableMethodImpl + (Forward(aPtr), aMethod)); } template @@ -1354,9 +1372,15 @@ already_AddRefed> NewCancelableRunnableMethod(const char* aName, PtrType&& aPtr, Method aMethod) { return detail::SetRunnableName( - aName, - new detail::CancelableRunnableMethodImpl( - Forward(aPtr), aMethod)); + NewCancelableRunnableMethodXXX(Forward(aPtr), aMethod), aName); +} + +template +already_AddRefed> +NewIdleRunnableMethodXXX(PtrType&& aPtr, Method aMethod) +{ + return do_AddRef(new detail::IdleRunnableMethodImpl( + Forward(aPtr), aMethod)); } template @@ -1364,9 +1388,15 @@ already_AddRefed> NewIdleRunnableMethod(const char* aName, PtrType&& aPtr, Method aMethod) { return detail::SetRunnableName( - aName, - new detail::IdleRunnableMethodImpl( - Forward(aPtr), aMethod)); + NewIdleRunnableMethodXXX(Forward(aPtr), aMethod), aName); +} + +template +already_AddRefed> +NewIdleRunnableMethodWithTimerXXX(PtrType&& aPtr, Method aMethod) +{ + return do_AddRef(new detail::IdleRunnableMethodWithTimerImpl( + Forward(aPtr), aMethod)); } template @@ -1376,9 +1406,17 @@ NewIdleRunnableMethodWithTimer(const char* aName, Method aMethod) { return detail::SetRunnableName( - aName, - new detail::IdleRunnableMethodWithTimerImpl( - Forward(aPtr), aMethod)); + NewIdleRunnableMethodWithTimerXXX(Forward(aPtr), aMethod), + aName); +} + +template +already_AddRefed> +NewNonOwningRunnableMethodXXX(PtrType&& aPtr, Method aMethod) +{ + return do_AddRef( + new detail::NonOwningRunnableMethodImpl + (Forward(aPtr), aMethod)); } template @@ -1386,9 +1424,16 @@ already_AddRefed> NewNonOwningRunnableMethod(const char* aName, PtrType&& aPtr, Method aMethod) { return detail::SetRunnableName( - aName, - new detail::NonOwningRunnableMethodImpl( - Forward(aPtr), aMethod)); + NewNonOwningRunnableMethodXXX(Forward(aPtr), aMethod), aName); +} + +template +already_AddRefed> +NewNonOwningCancelableRunnableMethodXXX(PtrType&& aPtr, Method aMethod) +{ + return do_AddRef( + new detail::NonOwningCancelableRunnableMethodImpl + (Forward(aPtr), aMethod)); } template @@ -1397,8 +1442,15 @@ NewNonOwningCancelableRunnableMethod(const char* aName, PtrType&& aPtr, Method aMethod) { return detail::SetRunnableName( - aName, - new detail::NonOwningCancelableRunnableMethodImpl( + NewNonOwningCancelableRunnableMethodXXX(Forward(aPtr), aMethod), aName); +} + +template +already_AddRefed> +NewNonOwningIdleRunnableMethodXXX(PtrType&& aPtr, Method aMethod) +{ + return do_AddRef( + new detail::NonOwningIdleRunnableMethodImpl( Forward(aPtr), aMethod)); } @@ -1409,9 +1461,17 @@ NewNonOwningIdleRunnableMethod(const char* aName, Method aMethod) { return detail::SetRunnableName( - aName, - new detail::NonOwningIdleRunnableMethodImpl( - Forward(aPtr), aMethod)); + NewNonOwningIdleRunnableMethodXXX(Forward(aPtr), aMethod), aName); +} + +template +already_AddRefed> +NewNonOwningIdleRunnableMethodWithTimerXXX(PtrType&& aPtr, + Method aMethod) +{ + return do_AddRef( + new detail::NonOwningIdleRunnableMethodWithTimerImpl( + Forward(aPtr), aMethod)); } template @@ -1420,16 +1480,26 @@ NewNonOwningIdleRunnableMethodWithTimer(const char* aName, PtrType&& aPtr, Method aMethod) { - return detail::SetRunnableName( - aName, - new detail::NonOwningIdleRunnableMethodWithTimerImpl( - Forward(aPtr), aMethod)); + return detail::SetRunnableName(NewNonOwningIdleRunnableMethodWithTimerXXX( + Forward(aPtr), aMethod), + aName); } // Similar to NewRunnableMethod. Call like so: // nsCOMPtr event = // NewRunnableMethod(myObject, &MyClass::HandleEvent, myArg1,...); // 'Types' are the stored type for each argument, see ParameterStorage for details. +template +already_AddRefed> +NewRunnableMethodXXX(PtrType&& aPtr, Method aMethod, Args&&... aArgs) +{ + static_assert(sizeof...(Storages) == sizeof...(Args), + " size should be equal to number of arguments"); + return do_AddRef( + new detail::OwningRunnableMethodImpl + (Forward(aPtr), aMethod, mozilla::Forward(aArgs)...)); +} + template already_AddRefed> NewRunnableMethod(const char* aName, PtrType&& aPtr, Method aMethod, Args&&... aArgs) @@ -1437,9 +1507,19 @@ NewRunnableMethod(const char* aName, PtrType&& aPtr, Method aMethod, Args&&... a static_assert(sizeof...(Storages) == sizeof...(Args), " size should be equal to number of arguments"); return detail::SetRunnableName( - aName, - new detail::OwningRunnableMethodImpl( - Forward(aPtr), aMethod, mozilla::Forward(aArgs)...)); + NewRunnableMethodXXX + (Forward(aPtr), aMethod, mozilla::Forward(aArgs)...), aName); +} + +template +already_AddRefed> +NewNonOwningRunnableMethodXXX(PtrType&& aPtr, Method aMethod, Args&&... aArgs) +{ + static_assert(sizeof...(Storages) == sizeof...(Args), + " size should be equal to number of arguments"); + return do_AddRef( + new detail::NonOwningRunnableMethodImpl + (Forward(aPtr), aMethod, mozilla::Forward(aArgs)...)); } template @@ -1450,9 +1530,19 @@ NewNonOwningRunnableMethod(const char* aName, PtrType&& aPtr, Method aMethod, static_assert(sizeof...(Storages) == sizeof...(Args), " size should be equal to number of arguments"); return detail::SetRunnableName( - aName, - new detail::NonOwningRunnableMethodImpl( - Forward(aPtr), aMethod, mozilla::Forward(aArgs)...)); + NewNonOwningRunnableMethodXXX + (Forward(aPtr), aMethod, mozilla::Forward(aArgs)...), aName); +} + +template +already_AddRefed> +NewCancelableRunnableMethodXXX(PtrType&& aPtr, Method aMethod, Args&&... aArgs) +{ + static_assert(sizeof...(Storages) == sizeof...(Args), + " size should be equal to number of arguments"); + return do_AddRef( + new detail::CancelableRunnableMethodImpl + (Forward(aPtr), aMethod, mozilla::Forward(aArgs)...)); } template @@ -1463,9 +1553,20 @@ NewCancelableRunnableMethod(const char* aName, PtrType&& aPtr, Method aMethod, static_assert(sizeof...(Storages) == sizeof...(Args), " size should be equal to number of arguments"); return detail::SetRunnableName( - aName, - new detail::CancelableRunnableMethodImpl( - Forward(aPtr), aMethod, mozilla::Forward(aArgs)...)); + NewCancelableRunnableMethodXXX + (Forward(aPtr), aMethod, mozilla::Forward(aArgs)...), aName); +} + +template +already_AddRefed> +NewNonOwningCancelableRunnableMethodXXX(PtrType&& aPtr, Method aMethod, + Args&&... aArgs) +{ + static_assert(sizeof...(Storages) == sizeof...(Args), + " size should be equal to number of arguments"); + return do_AddRef( + new detail::NonOwningCancelableRunnableMethodImpl + (Forward(aPtr), aMethod, mozilla::Forward(aArgs)...)); } template @@ -1476,8 +1577,21 @@ NewNonOwningCancelableRunnableMethod(const char* aName, PtrType&& aPtr, static_assert(sizeof...(Storages) == sizeof...(Args), " size should be equal to number of arguments"); return detail::SetRunnableName( - aName, - new detail::NonOwningCancelableRunnableMethodImpl( + NewNonOwningCancelableRunnableMethodXXX + (Forward(aPtr), aMethod, mozilla::Forward(aArgs)...), aName); +} + +template +already_AddRefed> +NewIdleRunnableMethodXXX(PtrType&& aPtr, Method aMethod, Args&&... aArgs) +{ + static_assert(sizeof...(Storages) == sizeof...(Args), + " size should be equal to number of arguments"); + return do_AddRef( + new detail::IdleRunnableMethodImpl( Forward(aPtr), aMethod, mozilla::Forward(aArgs)...)); } @@ -1494,8 +1608,22 @@ NewIdleRunnableMethod(const char* aName, static_assert(sizeof...(Storages) == sizeof...(Args), " size should be equal to number of arguments"); return detail::SetRunnableName( - aName, - new detail::IdleRunnableMethodImpl( + NewIdleRunnableMethodXXX( + Forward(aPtr), aMethod, mozilla::Forward(aArgs)...), + aName); +} + +template +already_AddRefed> +NewNonOwningIdleRunnableMethodXXX(PtrType&& aPtr, Method aMethod, Args&&... aArgs) +{ + static_assert(sizeof...(Storages) == sizeof...(Args), + " size should be equal to number of arguments"); + return do_AddRef( + new detail::NonOwningIdleRunnableMethodImpl( Forward(aPtr), aMethod, mozilla::Forward(aArgs)...)); } @@ -1512,9 +1640,9 @@ NewNonOwningIdleRunnableMethod(const char* aName, static_assert(sizeof...(Storages) == sizeof...(Args), " size should be equal to number of arguments"); return detail::SetRunnableName( - aName, - new detail::NonOwningIdleRunnableMethodImpl( - Forward(aPtr), aMethod, mozilla::Forward(aArgs)...)); + NewNonOwningIdleRunnableMethodXXX( + Forward(aPtr), aMethod, mozilla::Forward(aArgs)...), + aName); } } // namespace mozilla From 0640fe35ceb1dab90296079087c531435ef48f09 Mon Sep 17 00:00:00 2001 From: "Carsten \"Tomcat\" Book" Date: Tue, 20 Jun 2017 08:26:57 +0200 Subject: [PATCH 009/106] Backed out changeset ac1e2098e59e (bug 1372405) --- xpcom/threads/nsThreadUtils.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xpcom/threads/nsThreadUtils.h b/xpcom/threads/nsThreadUtils.h index 63e5a5298761..7d2cb37090ca 100644 --- a/xpcom/threads/nsThreadUtils.h +++ b/xpcom/threads/nsThreadUtils.h @@ -382,7 +382,7 @@ public: NS_DECL_NSIRUNNABLE NS_DECL_NSINAMED - Runnable() = delete; + Runnable() {} #ifdef RELEASE_OR_BETA explicit Runnable(const char* aName) {} @@ -412,7 +412,7 @@ public: // nsICancelableRunnable virtual nsresult Cancel() override; - CancelableRunnable() = delete; + CancelableRunnable() {} explicit CancelableRunnable(const char* aName) : Runnable(aName) {} protected: From bbe9441993b39c6aa5ede2d0e5a50fff8e97cae4 Mon Sep 17 00:00:00 2001 From: "Carsten \"Tomcat\" Book" Date: Tue, 20 Jun 2017 08:27:02 +0200 Subject: [PATCH 010/106] Backed out changeset 9846de3bd954 (bug 1372405) --- accessible/generic/Accessible.cpp | 9 +- accessible/generic/DocAccessible.cpp | 9 +- accessible/ipc/win/HandlerProvider.cpp | 9 +- accessible/windows/msaa/AccessibleWrap.cpp | 3 +- accessible/xpcom/xpcAccessibilityService.cpp | 8 +- docshell/base/nsDocShell.cpp | 43 +-- docshell/base/nsDocShell.h | 6 +- docshell/base/nsDocShellTreeOwner.cpp | 8 +- docshell/shistory/nsSHEntryShared.cpp | 3 +- dom/animation/Animation.cpp | 4 +- dom/asmjscache/AsmJSCache.cpp | 11 +- dom/audiochannel/AudioChannelService.cpp | 36 +- dom/base/CustomElementRegistry.cpp | 5 +- dom/base/CustomElementRegistry.h | 7 +- dom/base/DOMRequest.cpp | 16 +- dom/base/Element.cpp | 16 +- dom/base/EventSource.cpp | 39 +- dom/base/ImageEncoder.cpp | 6 +- dom/base/PostMessageEvent.cpp | 18 +- dom/base/ScreenOrientation.cpp | 12 +- dom/base/Selection.h | 12 +- dom/base/WebSocket.cpp | 12 +- dom/base/nsContentSink.cpp | 5 +- dom/base/nsContentUtils.cpp | 14 +- dom/base/nsDOMMutationObserver.cpp | 1 - dom/base/nsDOMWindowUtils.cpp | 107 ++---- .../nsDocElementCreatedNotificationRunner.h | 3 +- dom/base/nsDocument.cpp | 75 +--- dom/base/nsFocusManager.cpp | 31 +- dom/base/nsFrameLoader.cpp | 14 +- dom/base/nsFrameMessageManager.cpp | 1 - dom/base/nsGlobalWindow.cpp | 85 ++--- dom/base/nsIGlobalObject.cpp | 1 - dom/base/nsInProcessTabChildGlobal.cpp | 12 +- dom/base/nsJSEnvironment.cpp | 12 +- dom/base/nsJSEnvironment.h | 3 +- dom/base/nsObjectLoadingContent.cpp | 6 +- dom/base/nsReferencedElement.h | 8 +- dom/base/nsTextNode.cpp | 3 +- dom/cache/Context.cpp | 13 +- dom/cache/Manager.cpp | 8 +- dom/cache/PrincipalVerifier.cpp | 3 +- dom/cache/ReadStream.cpp | 6 +- dom/canvas/CanvasRenderingContext2D.cpp | 5 +- dom/canvas/ImageBitmap.cpp | 18 +- dom/canvas/WebGLContext.cpp | 7 +- dom/canvas/WebGLQuery.cpp | 15 +- dom/events/AsyncEventDispatcher.cpp | 3 +- dom/events/AsyncEventDispatcher.h | 18 +- dom/events/DataTransferItem.cpp | 7 +- dom/events/EventStateManager.cpp | 9 +- dom/events/TextComposition.cpp | 13 +- dom/events/TextComposition.h | 4 +- dom/events/WheelHandlingHelper.cpp | 7 +- dom/fetch/Fetch.cpp | 9 +- dom/fetch/FetchDriver.cpp | 3 +- dom/file/MutableBlobStorage.cpp | 30 +- dom/file/ipc/IPCBlobInputStream.cpp | 3 +- dom/file/ipc/IPCBlobInputStreamChild.cpp | 15 +- dom/file/ipc/IPCBlobInputStreamThread.cpp | 5 +- dom/filehandle/ActorsParent.cpp | 12 +- dom/filesystem/FileSystemRequestParent.cpp | 3 +- dom/filesystem/FileSystemTaskBase.cpp | 10 +- dom/filesystem/GetFilesHelper.cpp | 1 - dom/flyweb/HttpServer.cpp | 35 +- dom/gamepad/cocoa/CocoaGamepad.cpp | 2 +- dom/gamepad/ipc/GamepadEventChannelChild.cpp | 21 +- dom/gamepad/ipc/GamepadEventChannelParent.cpp | 13 +- dom/gamepad/windows/WindowsGamepad.cpp | 8 +- dom/geolocation/nsGeolocation.cpp | 13 +- dom/html/HTMLCanvasElement.cpp | 35 +- dom/html/HTMLFormElement.h | 3 +- dom/html/HTMLImageElement.cpp | 27 +- dom/html/HTMLInputElement.cpp | 4 +- dom/html/HTMLLinkElement.cpp | 3 +- dom/html/HTMLMediaElement.cpp | 147 ++++---- dom/html/HTMLObjectElement.cpp | 7 +- dom/html/HTMLSharedObjectElement.cpp | 3 +- dom/html/HTMLStyleElement.cpp | 3 +- dom/html/HTMLTrackElement.cpp | 15 +- dom/html/ImageDocument.cpp | 8 +- dom/html/TextTrackManager.cpp | 41 +-- dom/html/nsGenericHTMLElement.cpp | 6 +- dom/html/nsHTMLDocument.cpp | 11 +- dom/html/nsTextEditorState.cpp | 16 +- dom/indexedDB/ActorsParent.cpp | 52 +-- dom/indexedDB/FileInfo.cpp | 3 +- dom/indexedDB/IDBDatabase.cpp | 6 +- dom/indexedDB/ScriptErrorHelper.cpp | 6 +- dom/ipc/ContentBridgeChild.cpp | 5 +- dom/ipc/ContentBridgeParent.cpp | 8 +- dom/ipc/ContentChild.cpp | 10 +- dom/ipc/ContentParent.cpp | 37 +- dom/ipc/FilePickerParent.cpp | 7 +- dom/ipc/PreallocatedProcessManager.cpp | 9 +- dom/ipc/ProcessHangMonitor.cpp | 75 ++-- dom/ipc/TabParent.cpp | 9 +- dom/jsurl/nsJSProtocolHandler.cpp | 3 +- dom/media/Benchmark.cpp | 14 +- dom/media/CanvasCaptureMediaStream.cpp | 6 +- dom/media/CubebUtils.cpp | 3 +- dom/media/DOMMediaStream.cpp | 52 +-- dom/media/EncodedBufferCache.cpp | 4 +- dom/media/FileBlockCache.cpp | 56 ++- dom/media/GraphDriver.cpp | 26 +- dom/media/Latency.cpp | 28 +- dom/media/MediaDecoder.cpp | 60 ++-- dom/media/MediaDecoderReader.cpp | 11 +- dom/media/MediaDecoderReaderWrapper.cpp | 11 +- dom/media/MediaDecoderStateMachine.cpp | 45 +-- dom/media/MediaDecoderStateMachine.h | 20 +- dom/media/MediaEventSource.h | 8 +- dom/media/MediaFormatReader.cpp | 34 +- dom/media/MediaManager.cpp | 97 ++--- dom/media/MediaManager.h | 10 +- dom/media/MediaRecorder.cpp | 33 +- dom/media/MediaResource.cpp | 9 +- dom/media/MediaStreamGraph.cpp | 7 +- dom/media/MediaStreamTrack.cpp | 6 +- dom/media/MediaTimer.cpp | 11 +- dom/media/TextTrack.cpp | 10 +- dom/media/TextTrackList.cpp | 3 +- dom/media/VideoUtils.cpp | 4 +- dom/media/VideoUtils.h | 13 +- dom/media/android/AndroidMediaPluginHost.cpp | 2 +- .../android/AndroidMediaResourceServer.cpp | 11 +- dom/media/eme/mediadrm/MediaDrmCDMProxy.cpp | 21 +- dom/media/eme/mediadrm/MediaDrmCDMProxy.h | 3 +- dom/media/gmp/ChromiumCDMParent.cpp | 35 +- dom/media/gmp/ChromiumCDMProxy.cpp | 57 ++- dom/media/gmp/GMPCDMCallbackProxy.cpp | 132 ++++--- dom/media/gmp/GMPCDMProxy.cpp | 35 +- dom/media/gmp/GMPCDMProxy.h | 3 +- dom/media/gmp/GMPContentParent.cpp | 7 +- dom/media/gmp/GMPCrashHelper.cpp | 8 +- dom/media/gmp/GMPDecryptorChild.cpp | 10 +- dom/media/gmp/GMPParent.cpp | 4 +- dom/media/gmp/GMPPlatform.cpp | 9 +- dom/media/gmp/GMPProcessParent.cpp | 3 +- dom/media/gmp/GMPServiceChild.cpp | 5 +- dom/media/gmp/GMPServiceParent.cpp | 64 ++-- dom/media/gmp/GMPServiceParent.h | 9 +- dom/media/gmp/GMPTimerParent.cpp | 10 +- dom/media/gmp/GMPVideoDecoderChild.cpp | 4 +- dom/media/gmp/GMPVideoDecoderParent.cpp | 15 +- dom/media/gmp/GMPVideoEncoderChild.cpp | 4 +- dom/media/gtest/GMPTestMonitor.h | 3 +- dom/media/gtest/TestGMPCrossOrigin.cpp | 146 +++----- dom/media/gtest/TestGMPRemoveAndDelete.cpp | 41 +-- dom/media/gtest/TestMP4Demuxer.cpp | 3 +- dom/media/hls/HLSDemuxer.cpp | 4 +- dom/media/imagecapture/CaptureTask.cpp | 5 +- dom/media/ipc/RemoteVideoDecoder.cpp | 35 +- dom/media/ipc/VideoDecoderChild.cpp | 35 +- dom/media/ipc/VideoDecoderManagerChild.cpp | 48 +-- dom/media/ipc/VideoDecoderManagerParent.cpp | 34 +- dom/media/mediasink/DecodedStream.cpp | 24 +- dom/media/mediasource/AsyncEventRunner.h | 3 +- dom/media/mediasource/AutoTaskQueue.h | 3 +- dom/media/mediasource/MediaSourceDemuxer.cpp | 45 ++- dom/media/mediasource/TrackBuffersManager.cpp | 49 +-- dom/media/ogg/OggDemuxer.cpp | 22 +- dom/media/platforms/PDMFactory.cpp | 2 +- .../platforms/android/RemoteDataDecoder.cpp | 12 +- dom/media/platforms/omx/OmxDataDecoder.cpp | 17 +- .../platforms/wmf/WMFAudioMFTManager.cpp | 3 +- .../platforms/wmf/WMFMediaDataDecoder.cpp | 4 +- .../platforms/wmf/WMFVideoMFTManager.cpp | 9 +- .../wrappers/MediaDataDecoderProxy.cpp | 1 - dom/media/systemservices/CamerasChild.cpp | 109 ++---- dom/media/systemservices/CamerasParent.cpp | 31 +- .../MediaSystemResourceManager.cpp | 27 +- dom/media/systemservices/MediaTaskUtils.h | 7 +- dom/media/systemservices/MediaUtils.h | 7 +- dom/media/webaudio/AnalyserNode.cpp | 6 +- dom/media/webaudio/AudioBufferSourceNode.cpp | 5 +- dom/media/webaudio/AudioDestinationNode.cpp | 15 +- dom/media/webaudio/AudioNode.cpp | 5 +- dom/media/webaudio/ConstantSourceNode.cpp | 5 +- dom/media/webaudio/DynamicsCompressorNode.cpp | 3 +- dom/media/webaudio/MediaBufferDecoder.cpp | 28 +- dom/media/webaudio/OscillatorNode.cpp | 5 +- dom/media/webaudio/PlayingRefChangeHandler.h | 3 +- dom/media/webaudio/ScriptProcessorNode.cpp | 3 +- dom/media/webaudio/WebAudioUtils.cpp | 5 +- .../webaudio/blink/HRTFDatabaseLoader.cpp | 14 +- dom/media/webaudio/blink/ReverbConvolver.cpp | 6 +- dom/media/webrtc/MediaEngineTabVideoSource.h | 20 +- .../webspeech/recognition/SpeechRecognition.h | 16 +- .../cocoa/OSXSpeechSynthesizerService.mm | 6 +- dom/media/webspeech/synth/nsSpeechTask.cpp | 12 +- .../webspeech/synth/pico/nsPicoService.cpp | 5 +- .../synth/speechd/SpeechDispatcherService.cpp | 30 +- .../synth/test/nsFakeSynthServices.cpp | 26 +- dom/messagechannel/MessagePort.cpp | 3 +- dom/network/UDPSocket.cpp | 4 +- dom/notification/DesktopNotification.cpp | 3 +- dom/performance/Performance.cpp | 3 +- dom/plugins/base/nsNPAPIPluginInstance.cpp | 9 +- dom/plugins/ipc/ChildAsyncCall.cpp | 6 +- dom/plugins/ipc/PluginInstanceChild.cpp | 17 +- dom/plugins/ipc/PluginProcessParent.cpp | 5 +- dom/plugins/ipc/PluginProcessParent.h | 7 +- dom/presentation/PresentationAvailability.cpp | 9 +- dom/presentation/PresentationCallbacks.cpp | 11 +- dom/presentation/PresentationConnection.cpp | 9 +- .../PresentationDeviceManager.cpp | 4 +- dom/presentation/PresentationReceiver.cpp | 7 +- dom/presentation/PresentationRequest.cpp | 12 +- dom/presentation/PresentationService.cpp | 13 +- dom/presentation/PresentationSessionInfo.cpp | 24 +- .../PresentationTCPSessionTransport.cpp | 27 +- .../ipc/PresentationIPCService.cpp | 14 +- .../provider/MulticastDNSDeviceProvider.cpp | 6 +- dom/promise/PromiseDebugging.cpp | 2 - dom/push/PushManager.cpp | 6 +- dom/push/PushSubscription.cpp | 6 +- dom/quota/ActorsParent.cpp | 37 +- dom/quota/QuotaManagerService.cpp | 3 +- dom/script/ScriptLoader.cpp | 21 +- dom/security/nsCSPContext.cpp | 3 +- dom/security/nsMixedContentBlocker.cpp | 9 +- dom/smil/nsSMILTimedElement.cpp | 6 +- dom/storage/LocalStorageCache.cpp | 8 +- dom/storage/StorageDBThread.cpp | 6 +- dom/storage/StorageIPC.cpp | 33 +- dom/svg/SVGFEImageElement.cpp | 4 +- dom/svg/SVGImageElement.cpp | 4 +- dom/svg/SVGStyleElement.cpp | 3 +- dom/system/nsDeviceSensors.cpp | 8 +- dom/u2f/U2F.cpp | 24 +- dom/url/URLMainThread.cpp | 4 +- dom/url/URLWorker.cpp | 3 +- dom/webauthn/U2FSoftTokenManager.cpp | 2 - .../WebBrowserPersistDocumentParent.cpp | 8 +- .../WebBrowserPersistResourcesParent.cpp | 11 +- .../WebBrowserPersistSerializeParent.cpp | 17 +- dom/webbrowserpersist/nsWebBrowserPersist.cpp | 20 +- dom/workers/RuntimeService.cpp | 5 +- dom/workers/ScriptLoader.cpp | 3 +- dom/workers/ServiceWorkerClient.cpp | 4 +- dom/workers/ServiceWorkerClients.cpp | 23 +- dom/workers/ServiceWorkerEvents.cpp | 16 +- dom/workers/ServiceWorkerInfo.cpp | 3 +- dom/workers/ServiceWorkerManager.cpp | 66 ++-- dom/workers/ServiceWorkerManagerParent.cpp | 9 +- dom/workers/ServiceWorkerManagerService.cpp | 19 +- dom/workers/ServiceWorkerPrivate.cpp | 38 +- dom/workers/ServiceWorkerPrivate.h | 2 - dom/workers/ServiceWorkerRegistrar.cpp | 14 +- dom/workers/ServiceWorkerRegistration.cpp | 20 +- dom/workers/ServiceWorkerRegistrationInfo.cpp | 28 +- dom/workers/ServiceWorkerUpdateJob.cpp | 9 +- dom/workers/ServiceWorkerWindowClient.cpp | 9 +- dom/workers/WorkerDebuggerManager.cpp | 8 +- dom/workers/WorkerPrivate.cpp | 33 +- dom/workers/WorkerRunnable.cpp | 16 +- dom/workers/WorkerScope.cpp | 6 +- dom/xbl/nsBindingManager.cpp | 8 +- dom/xhr/XMLHttpRequestMainThread.cpp | 14 +- dom/xhr/XMLHttpRequestWorker.cpp | 13 +- .../XMLStylesheetProcessingInstruction.cpp | 3 +- dom/xml/nsXMLContentSink.cpp | 6 +- dom/xml/nsXMLPrettyPrinter.cpp | 4 +- dom/xslt/xslt/txMozillaXSLTProcessor.cpp | 3 +- dom/xul/XULDocument.cpp | 18 +- dom/xul/nsXULElement.cpp | 69 ++-- dom/xul/templates/nsXULTemplateBuilder.cpp | 20 +- editor/composer/nsEditingSession.cpp | 10 +- editor/composer/nsEditorSpellCheck.cpp | 5 +- editor/libeditor/EditorBase.cpp | 3 +- editor/libeditor/HTMLEditRules.cpp | 4 +- editor/libeditor/HTMLEditor.cpp | 12 +- extensions/auth/nsHttpNegotiateAuth.cpp | 40 +-- .../spellcheck/src/mozPersonalDictionary.cpp | 15 +- gfx/ipc/GPUChild.cpp | 3 +- gfx/ipc/GPUParent.cpp | 7 +- gfx/ipc/VsyncBridgeChild.cpp | 15 +- gfx/ipc/VsyncBridgeParent.cpp | 9 +- gfx/ipc/VsyncIOThreadHolder.cpp | 3 +- gfx/layers/AsyncCanvasRenderer.cpp | 6 +- gfx/layers/ImageContainer.h | 14 +- gfx/layers/LayerScope.cpp | 7 +- gfx/layers/apz/src/APZCTreeManager.cpp | 25 +- gfx/layers/apz/src/AndroidAPZ.cpp | 3 +- .../apz/src/AndroidDynamicToolbarAnimator.cpp | 41 +-- gfx/layers/apz/src/AsyncPanZoomController.cpp | 48 +-- gfx/layers/apz/src/GenericFlingAnimation.h | 25 +- gfx/layers/apz/src/GestureEventListener.cpp | 15 +- gfx/layers/apz/src/InputQueue.cpp | 10 +- gfx/layers/apz/src/Overscroll.h | 5 +- gfx/layers/apz/util/ActiveElementManager.cpp | 8 +- .../apz/util/CheckerboardReportService.cpp | 7 +- .../apz/util/ChromeProcessController.cpp | 76 ++-- gfx/layers/basic/BasicCompositor.cpp | 6 +- gfx/layers/client/CompositableClient.cpp | 4 +- gfx/layers/client/TextureClient.cpp | 8 +- gfx/layers/client/TextureClient.h | 6 +- gfx/layers/client/TextureClientPool.cpp | 16 +- gfx/layers/d3d11/DeviceAttachmentsD3D11.cpp | 3 +- gfx/layers/ipc/APZCTreeManagerParent.cpp | 49 ++- gfx/layers/ipc/CompositorBridgeChild.cpp | 1 - gfx/layers/ipc/CompositorBridgeParent.cpp | 68 +--- gfx/layers/ipc/CompositorManagerParent.cpp | 1 - gfx/layers/ipc/CompositorVsyncScheduler.cpp | 14 +- .../CrossProcessCompositorBridgeParent.cpp | 5 +- gfx/layers/ipc/ImageBridgeChild.cpp | 6 +- gfx/layers/ipc/ImageBridgeParent.cpp | 15 +- gfx/layers/ipc/RemoteContentController.cpp | 68 ++-- gfx/layers/ipc/ShadowLayers.cpp | 7 +- ...SafeRefcountingWithMainThreadDestruction.h | 6 +- .../ipc/UiCompositorControllerChild.cpp | 20 +- .../ipc/UiCompositorControllerParent.cpp | 20 +- gfx/src/gfxCrashReporterUtils.cpp | 4 +- gfx/thebes/DeviceManagerDx.cpp | 3 +- gfx/thebes/SoftwareVsyncSource.cpp | 17 +- gfx/thebes/gfxFcPlatformFontList.cpp | 10 +- gfx/thebes/gfxFont.cpp | 10 +- gfx/thebes/gfxFontInfoLoader.cpp | 30 +- gfx/thebes/gfxPlatform.cpp | 23 +- gfx/thebes/gfxPlatformGtk.cpp | 11 +- gfx/thebes/gfxWindowsPlatform.cpp | 6 +- gfx/vr/gfxVROculus.cpp | 15 +- gfx/vr/gfxVROpenVR.cpp | 9 +- gfx/vr/ipc/VRManagerChild.cpp | 20 +- gfx/vr/ipc/VRManagerParent.cpp | 15 +- gfx/webrender_bindings/RenderThread.cpp | 27 +- image/DecodePool.cpp | 3 +- image/Image.cpp | 13 +- image/ProgressTracker.cpp | 3 +- image/RasterImage.cpp | 3 +- image/test/gtest/TestDecodeToSurface.cpp | 3 +- ipc/chromium/src/base/message_loop.h | 1 - ipc/chromium/src/base/object_watcher.cc | 2 - ipc/chromium/src/base/task.h | 36 +- ipc/chromium/src/base/thread.cc | 1 - ipc/chromium/src/base/timer.h | 7 +- .../common/process_watcher_posix_sigchld.cc | 4 +- .../src/chrome/common/process_watcher_win.cc | 2 +- ipc/glue/BackgroundImpl.cpp | 12 +- ipc/glue/BackgroundParentImpl.cpp | 6 +- ipc/glue/CrashReporterHost.cpp | 8 +- ipc/glue/GeckoChildProcessHost.cpp | 33 +- ipc/glue/IPCStreamDestination.cpp | 9 +- ipc/glue/MessageChannel.cpp | 36 +- ipc/glue/MessageLink.cpp | 29 +- ipc/glue/MessagePump.cpp | 3 +- ipc/glue/TaskFactory.h | 11 +- ipc/ipdl/test/cxx/TestCancel.cpp | 6 +- ipc/ipdl/test/cxx/TestDemon.cpp | 10 +- ipc/ipdl/test/cxx/TestEndpointBridgeMain.cpp | 4 +- ipc/ipdl/test/cxx/TestEndpointOpens.cpp | 8 +- ipc/ipdl/test/cxx/TestHangs.cpp | 4 +- ipc/ipdl/test/cxx/TestInterruptRaces.cpp | 16 +- .../test/cxx/TestInterruptShutdownRace.cpp | 7 +- ipc/ipdl/test/cxx/TestNestedLoops.cpp | 6 +- ipc/ipdl/test/cxx/TestUrgentHangs.cpp | 18 +- ipc/mscom/DispatchForwarder.cpp | 4 +- ipc/mscom/EnsureMTA.cpp | 3 +- ipc/mscom/EnsureMTA.h | 5 +- ipc/mscom/Interceptor.cpp | 2 +- ipc/mscom/InterceptorLog.cpp | 11 +- ipc/mscom/MainThreadHandoff.cpp | 5 +- ipc/mscom/MainThreadInvoker.h | 5 +- ipc/mscom/Ptr.h | 3 +- js/xpconnect/loader/ChromeScriptLoader.cpp | 14 +- js/xpconnect/loader/ScriptPreloader.cpp | 10 +- js/xpconnect/loader/mozJSSubScriptLoader.cpp | 8 +- js/xpconnect/src/XPCComponents.cpp | 6 +- js/xpconnect/src/XPCJSRuntime.cpp | 10 +- layout/base/AccessibleCaretEventHub.cpp | 16 +- layout/base/PresShell.cpp | 13 +- layout/base/ZoomConstraintsClient.cpp | 4 +- layout/base/nsLayoutUtils.cpp | 23 +- layout/base/nsPresContext.cpp | 24 +- layout/base/nsRefreshDriver.cpp | 38 +- layout/forms/nsComboboxControlFrame.cpp | 15 +- layout/forms/nsComboboxControlFrame.h | 6 +- layout/forms/nsDateTimeControlFrame.cpp | 4 +- layout/forms/nsDateTimeControlFrame.h | 3 +- layout/forms/nsFileControlFrame.h | 3 +- layout/forms/nsNumberControlFrame.cpp | 5 +- layout/forms/nsNumberControlFrame.h | 3 +- layout/forms/nsTextControlFrame.h | 14 +- layout/generic/nsGfxScrollFrame.cpp | 17 +- layout/generic/nsGfxScrollFrame.h | 12 +- layout/generic/nsPluginFrame.h | 9 +- layout/generic/nsSubDocumentFrame.cpp | 15 +- layout/generic/nsVideoFrame.cpp | 5 +- layout/ipc/VsyncParent.cpp | 3 +- layout/printing/nsPrintEngine.cpp | 6 +- layout/style/FontFaceSet.cpp | 4 +- layout/style/nsFontFaceLoader.cpp | 10 +- layout/style/nsStyleStruct.cpp | 4 +- layout/svg/SVGTextFrame.h | 6 +- layout/tables/nsTableFrame.cpp | 7 +- layout/xul/nsImageBoxFrame.cpp | 8 +- layout/xul/nsListBoxBodyFrame.h | 8 +- layout/xul/nsMenuBarFrame.cpp | 11 +- layout/xul/nsMenuFrame.cpp | 11 +- layout/xul/nsMenuPopupFrame.h | 6 +- layout/xul/nsProgressMeterFrame.cpp | 14 +- layout/xul/nsSliderFrame.cpp | 15 +- layout/xul/nsXULPopupManager.h | 50 ++- layout/xul/tree/nsTreeBodyFrame.cpp | 6 +- layout/xul/tree/nsTreeBodyFrame.h | 6 +- media/mtransport/nr_socket_prsock.cpp | 2 +- media/mtransport/runnable_utils.h | 2 - media/mtransport/test/TestSyncRunnable.cpp | 2 +- .../test/sockettransportservice_unittest.cpp | 4 +- .../src/media-conduit/WebrtcGmpVideoCodec.h | 1 - .../WebrtcMediaCodecVP8VideoCodec.cpp | 3 +- .../src/mediapipeline/MediaPipeline.cpp | 1 - .../src/mediapipeline/MediaPipeline.h | 1 - modules/libjar/nsJARChannel.cpp | 3 +- modules/libpref/Preferences.cpp | 11 +- netwerk/base/BackgroundFileSaver.cpp | 21 +- netwerk/base/Dashboard.cpp | 48 +-- netwerk/base/NetworkActivityMonitor.cpp | 3 +- netwerk/base/Predictor.cpp | 14 +- netwerk/base/TLSServerSocket.cpp | 10 +- netwerk/base/Tickler.cpp | 6 +- netwerk/base/nsAsyncStreamCopier.cpp | 10 +- netwerk/base/nsBaseChannel.cpp | 7 +- netwerk/base/nsBaseChannel.h | 4 +- netwerk/base/nsIOService.cpp | 13 +- netwerk/base/nsInputStreamPump.cpp | 4 +- netwerk/base/nsPACMan.cpp | 37 +- netwerk/base/nsPreloadedStream.cpp | 20 +- netwerk/base/nsRequestObserverProxy.cpp | 5 +- netwerk/base/nsServerSocket.cpp | 26 +- netwerk/base/nsSocketTransport2.cpp | 32 +- netwerk/base/nsSocketTransportService2.cpp | 42 +-- netwerk/base/nsStreamTransportService.cpp | 23 +- netwerk/base/nsUDPSocket.cpp | 43 +-- netwerk/cache/nsCacheEntryDescriptor.cpp | 1 - netwerk/cache/nsCacheService.cpp | 199 +++++------ netwerk/cache/nsCacheService.h | 21 +- netwerk/cache/nsCacheUtils.cpp | 10 +- netwerk/cache/nsDeleteDir.cpp | 12 +- netwerk/cache/nsDiskCacheDevice.cpp | 34 +- netwerk/cache/nsDiskCacheDeviceSQL.cpp | 12 +- netwerk/cache/nsDiskCacheMap.cpp | 10 +- netwerk/cache2/CacheEntry.cpp | 12 +- netwerk/cache2/CacheEntry.h | 6 +- netwerk/cache2/CacheFile.cpp | 12 +- netwerk/cache2/CacheFileChunk.cpp | 10 +- netwerk/cache2/CacheFileContextEvictor.cpp | 4 +- netwerk/cache2/CacheFileIOManager.cpp | 156 +++----- netwerk/cache2/CacheIndex.cpp | 30 +- netwerk/cache2/CacheIndex.h | 7 +- netwerk/cache2/CacheObserver.cpp | 12 +- netwerk/cache2/CacheStorageService.cpp | 37 +- netwerk/cache2/CacheStorageService.h | 13 +- netwerk/cache2/OldWrappers.cpp | 10 +- netwerk/dns/DNSRequestChild.cpp | 11 +- .../mdns/libmdns/MDNSResponderOperator.cpp | 17 +- .../dns/mdns/libmdns/MDNSResponderReply.cpp | 12 +- netwerk/dns/nsDNSService2.cpp | 7 +- netwerk/ipc/ChannelEventQueue.cpp | 3 +- netwerk/protocol/about/nsAboutCache.cpp | 5 +- netwerk/protocol/file/nsFileChannel.cpp | 12 +- netwerk/protocol/ftp/FTPChannelParent.cpp | 9 +- netwerk/protocol/ftp/nsFTPChannel.cpp | 18 +- .../protocol/ftp/nsFtpConnectionThread.cpp | 9 +- netwerk/protocol/ftp/nsFtpProtocolHandler.cpp | 10 +- netwerk/protocol/gio/nsGIOProtocolHandler.cpp | 6 +- netwerk/protocol/http/AlternateServices.cpp | 24 +- netwerk/protocol/http/Http2Push.cpp | 15 +- netwerk/protocol/http/Http2Session.cpp | 11 +- .../http/HttpBackgroundChannelChild.cpp | 55 +-- .../http/HttpBackgroundChannelParent.cpp | 98 ++--- netwerk/protocol/http/HttpBaseChannel.cpp | 5 +- netwerk/protocol/http/HttpBaseChannel.h | 3 +- netwerk/protocol/http/HttpChannelChild.cpp | 57 ++- netwerk/protocol/http/HttpChannelParent.cpp | 12 +- .../http/HttpChannelParentListener.cpp | 3 +- .../http/nsHttpActivityDistributor.cpp | 31 +- netwerk/protocol/http/nsHttpChannel.cpp | 15 +- netwerk/protocol/http/nsHttpConnection.cpp | 80 ++--- netwerk/protocol/http/nsHttpConnectionMgr.cpp | 25 +- netwerk/protocol/http/nsHttpHandler.cpp | 9 +- netwerk/protocol/http/nsHttpTransaction.cpp | 16 +- netwerk/protocol/http/nsHttpTransaction.h | 6 +- .../protocol/websocket/WebSocketChannel.cpp | 40 +-- .../websocket/WebSocketChannelChild.cpp | 25 +- .../websocket/WebSocketEventService.cpp | 6 +- netwerk/protocol/wyciwyg/nsWyciwygChannel.cpp | 6 +- netwerk/sctp/datachannel/DataChannel.cpp | 24 +- netwerk/sctp/datachannel/DataChannel.h | 60 ++-- netwerk/socket/nsNamedPipeIOLayer.cpp | 4 +- netwerk/socket/nsNamedPipeService.cpp | 3 +- .../system/linux/nsNotifyAddrListener_Linux.h | 7 +- netwerk/system/win32/nsNotifyAddrListener.h | 6 +- parser/html/nsHtml5StreamParser.cpp | 12 +- parser/html/nsHtml5TreeOpExecutor.cpp | 6 +- parser/htmlparser/nsParser.cpp | 3 +- security/manager/ssl/CryptoTask.h | 5 +- security/manager/ssl/DataStorage.cpp | 25 +- security/manager/ssl/PSMContentListener.cpp | 4 +- security/manager/ssl/PSMRunnable.cpp | 3 +- security/manager/ssl/PSMRunnable.h | 8 +- .../manager/ssl/SSLServerCertVerification.cpp | 32 +- security/manager/ssl/nsNSSCallbacks.cpp | 4 +- security/manager/ssl/nsNSSComponent.cpp | 11 +- security/manager/ssl/nsNSSIOLayer.cpp | 3 +- security/manager/ssl/nsNSSModule.cpp | 8 +- .../linux/reporter/SandboxReporter.cpp | 5 +- .../component/IdentityCryptoService.cpp | 14 +- storage/StorageBaseStatementInternal.cpp | 18 +- storage/mozStorageConnection.cpp | 22 +- storage/mozStoragePrivateHelpers.cpp | 5 +- storage/mozStorageService.cpp | 12 +- storage/test/gtest/storage_test_harness.h | 7 +- .../test_service_init_background_thread.cpp | 1 - storage/test/gtest/test_unlock_notify.cpp | 7 +- .../filewatcher/NativeFileWatcherWin.cpp | 18 +- .../osfile/NativeOSFileInternals.cpp | 29 +- toolkit/components/places/FaviconHelpers.cpp | 65 ++-- toolkit/components/places/Helpers.cpp | 3 +- toolkit/components/places/Helpers.h | 10 +- toolkit/components/places/History.cpp | 100 +++--- toolkit/components/places/nsNavHistory.cpp | 11 +- .../tests/gtest/places_test_harness_tail.h | 1 - .../satchel/nsFormFillController.cpp | 7 +- toolkit/components/startup/nsAppStartup.cpp | 6 +- toolkit/components/telemetry/Telemetry.cpp | 25 +- .../components/telemetry/TelemetryCommon.cpp | 5 +- .../telemetry/tests/gtest/TestScalars.cpp | 8 +- .../components/url-classifier/Classifier.cpp | 34 +- .../nsUrlClassifierDBService.cpp | 60 ++-- .../url-classifier/nsUrlClassifierProxies.cpp | 24 +- .../url-classifier/nsUrlClassifierProxies.h | 97 ++--- .../url-classifier/tests/gtest/Common.cpp | 14 +- toolkit/crashreporter/InjectCrashReporter.cpp | 3 +- toolkit/crashreporter/nsExceptionHandler.cpp | 3 +- .../test/gtest/TestCrashThreadAnnotation.cpp | 32 +- toolkit/xre/ProfileReset.h | 12 +- toolkit/xre/nsEmbedFunctions.cpp | 8 +- toolkit/xre/nsNativeAppSupportUnix.cpp | 5 +- toolkit/xre/nsUpdateDriver.cpp | 26 +- tools/profiler/core/platform.cpp | 19 +- .../gecko/ChildProfilerController.cpp | 14 +- tools/profiler/gecko/ThreadResponsiveness.cpp | 3 +- tools/profiler/tests/gtest/GeckoProfiler.cpp | 77 ++-- uriloader/prefetch/nsOfflineCacheUpdate.cpp | 6 +- view/nsView.cpp | 6 +- widget/VsyncDispatcher.cpp | 14 +- widget/android/AndroidBridge.cpp | 2 +- widget/android/AndroidJNIWrapper.cpp | 1 - widget/android/AndroidUiThread.cpp | 6 +- widget/android/EventDispatcher.cpp | 2 +- widget/android/fennec/ThumbnailHelper.h | 2 +- widget/android/jni/Natives.h | 2 +- widget/android/nsAppShell.cpp | 1 - widget/android/nsScreenManagerAndroid.cpp | 2 - widget/android/nsWindow.cpp | 5 +- widget/cocoa/nsChildView.mm | 2 +- widget/gtk/nsDeviceContextSpecG.cpp | 10 +- widget/gtk/nsWindow.cpp | 7 +- widget/nsBaseFilePicker.cpp | 9 +- widget/nsBaseWidget.cpp | 62 ++-- widget/nsIdleService.cpp | 38 +- widget/windows/AudioSession.cpp | 3 +- widget/windows/LSPAnnotator.cpp | 4 +- widget/windows/WidgetTraceEvent.cpp | 2 +- widget/windows/nsColorPicker.cpp | 3 +- widget/windows/nsSound.cpp | 5 +- widget/windows/nsWindow.cpp | 3 +- widget/windows/nsWindowGfx.cpp | 2 +- xpcom/base/CycleCollectedJSContext.cpp | 7 +- xpcom/base/nsConsoleService.cpp | 7 +- xpcom/base/nsCycleCollector.cpp | 4 +- xpcom/base/nsDumpUtils.cpp | 3 +- xpcom/base/nsDumpUtils.h | 3 +- xpcom/base/nsMemoryInfoDumper.cpp | 9 +- xpcom/base/nsMemoryReporterManager.cpp | 19 +- xpcom/base/nsMessageLoop.cpp | 3 +- xpcom/base/nsStatusReporterManager.cpp | 1 - xpcom/ds/nsHashPropertyBag.cpp | 3 +- xpcom/ds/nsObserverService.cpp | 5 +- xpcom/io/nsInputStreamTee.cpp | 7 +- xpcom/io/nsLocalFileWin.cpp | 4 +- xpcom/tests/gtest/TestMozPromise.cpp | 11 +- xpcom/tests/gtest/TestRWLock.cpp | 3 +- .../tests/gtest/TestRacingServiceManager.cpp | 6 +- xpcom/tests/gtest/TestStateWatching.cpp | 11 +- xpcom/tests/gtest/TestTaskQueue.cpp | 53 ++- xpcom/tests/gtest/TestThreadPool.cpp | 14 +- xpcom/tests/gtest/TestThreadPoolListener.cpp | 2 +- xpcom/tests/gtest/TestThreadUtils.cpp | 337 ++++++------------ xpcom/tests/gtest/TestTimers.cpp | 23 +- xpcom/threads/AbstractThread.cpp | 11 +- xpcom/threads/BackgroundHangMonitor.cpp | 3 +- xpcom/threads/LazyIdleThread.cpp | 18 +- xpcom/threads/MozPromise.h | 24 +- xpcom/threads/SchedulerGroup.cpp | 5 +- xpcom/threads/SharedThreadPool.cpp | 3 +- xpcom/threads/StateMirroring.h | 33 +- xpcom/threads/StateWatching.h | 5 +- xpcom/threads/SyncRunnable.h | 6 +- xpcom/threads/TaskDispatcher.h | 6 +- xpcom/threads/TaskQueue.h | 3 +- xpcom/threads/ThrottledEventQueue.cpp | 3 +- xpcom/threads/TimerThread.cpp | 6 +- xpcom/threads/nsMemoryPressure.cpp | 2 +- xpcom/threads/nsProcessCommon.cpp | 3 +- xpcom/threads/nsThread.cpp | 9 +- xpcom/threads/nsThreadUtils.cpp | 7 +- xpcom/threads/nsThreadUtils.h | 83 ++--- xpfe/appshell/nsAppShellService.cpp | 7 +- xpfe/appshell/nsContentTreeOwner.cpp | 3 +- .../directory/nsDirectoryViewer.cpp | 34 +- 613 files changed, 3568 insertions(+), 6338 deletions(-) diff --git a/accessible/generic/Accessible.cpp b/accessible/generic/Accessible.cpp index f08318ed180c..690d1608cec7 100644 --- a/accessible/generic/Accessible.cpp +++ b/accessible/generic/Accessible.cpp @@ -1799,13 +1799,8 @@ Accessible::DoCommand(nsIContent *aContent, uint32_t aActionIndex) class Runnable final : public mozilla::Runnable { public: - Runnable(Accessible* aAcc, nsIContent* aContent, uint32_t aIdx) - : mozilla::Runnable("Runnable") - , mAcc(aAcc) - , mContent(aContent) - , mIdx(aIdx) - { - } + Runnable(Accessible* aAcc, nsIContent* aContent, uint32_t aIdx) : + mAcc(aAcc), mContent(aContent), mIdx(aIdx) { } NS_IMETHOD Run() override { diff --git a/accessible/generic/DocAccessible.cpp b/accessible/generic/DocAccessible.cpp index 0c21507711dd..ecba61c41549 100644 --- a/accessible/generic/DocAccessible.cpp +++ b/accessible/generic/DocAccessible.cpp @@ -649,12 +649,9 @@ DocAccessible::ScrollPositionDidChange(nscoord aX, nscoord aY) mScrollWatchTimer = do_CreateInstance("@mozilla.org/timer;1"); if (mScrollWatchTimer) { NS_ADDREF_THIS(); // Kung fu death grip - mScrollWatchTimer->InitWithNamedFuncCallback( - ScrollTimerCallback, - this, - kScrollPosCheckWait, - nsITimer::TYPE_REPEATING_SLACK, - "a11y::DocAccessible::ScrollPositionDidChange"); + mScrollWatchTimer->InitWithFuncCallback(ScrollTimerCallback, this, + kScrollPosCheckWait, + nsITimer::TYPE_REPEATING_SLACK); } } mScrollPositionChangedTicks = 1; diff --git a/accessible/ipc/win/HandlerProvider.cpp b/accessible/ipc/win/HandlerProvider.cpp index f359feff3b8c..0c76d5bba1b8 100644 --- a/accessible/ipc/win/HandlerProvider.cpp +++ b/accessible/ipc/win/HandlerProvider.cpp @@ -95,8 +95,7 @@ HandlerProvider::GetAndSerializePayload(const MutexAutoLock&) IA2Payload payload{}; - if (!mscom::InvokeOnMainThread("HandlerProvider::BuildIA2Data", - this, &HandlerProvider::BuildIA2Data, + if (!mscom::InvokeOnMainThread(this, &HandlerProvider::BuildIA2Data, &payload.mData) || !payload.mData.mUniqueId) { return; @@ -237,8 +236,7 @@ HandlerProvider::put_HandlerControl(long aPid, IHandlerControl* aCtrl) auto ptrProxy = mscom::ToProxyUniquePtr(aCtrl); - if (!mscom::InvokeOnMainThread("HandlerProvider::SetHandlerControlOnMainThread", - this, + if (!mscom::InvokeOnMainThread(this, &HandlerProvider::SetHandlerControlOnMainThread, static_cast(aPid), Move(ptrProxy))) { return E_FAIL; @@ -252,8 +250,7 @@ HandlerProvider::Refresh(IA2Data* aOutData) { MOZ_ASSERT(mscom::IsCurrentThreadMTA()); - if (!mscom::InvokeOnMainThread("HandlerProvider::BuildIA2Data", - this, &HandlerProvider::BuildIA2Data, + if (!mscom::InvokeOnMainThread(this, &HandlerProvider::BuildIA2Data, aOutData)) { return E_FAIL; } diff --git a/accessible/windows/msaa/AccessibleWrap.cpp b/accessible/windows/msaa/AccessibleWrap.cpp index e3e09bb59b56..00bbcc38de10 100644 --- a/accessible/windows/msaa/AccessibleWrap.cpp +++ b/accessible/windows/msaa/AccessibleWrap.cpp @@ -841,8 +841,7 @@ AccessibleWrap::accSelect( // is happening, so we dispatch TakeFocus from the main thread to // guarantee that we are outside any IPC. nsCOMPtr runnable = - mozilla::NewRunnableMethod("Accessible::TakeFocus", - this, &Accessible::TakeFocus); + mozilla::NewRunnableMethod(this, &Accessible::TakeFocus); NS_DispatchToMainThread(runnable, NS_DISPATCH_NORMAL); return S_OK; } diff --git a/accessible/xpcom/xpcAccessibilityService.cpp b/accessible/xpcom/xpcAccessibilityService.cpp index 49c5e1082501..97c0d0e72124 100644 --- a/accessible/xpcom/xpcAccessibilityService.cpp +++ b/accessible/xpcom/xpcAccessibilityService.cpp @@ -79,12 +79,8 @@ xpcAccessibilityService::Release(void) if (count == 1 && !mShutdownTimer) { mShutdownTimer = do_CreateInstance(NS_TIMER_CONTRACTID); if (mShutdownTimer) { - mShutdownTimer->InitWithNamedFuncCallback( - ShutdownCallback, - this, - 100, - nsITimer::TYPE_ONE_SHOT, - "xpcAccessibilityService::Release"); + mShutdownTimer->InitWithFuncCallback(ShutdownCallback, this, 100, + nsITimer::TYPE_ONE_SHOT); } } diff --git a/docshell/base/nsDocShell.cpp b/docshell/base/nsDocShell.cpp index 8658916a670a..66d2b61c7266 100644 --- a/docshell/base/nsDocShell.cpp +++ b/docshell/base/nsDocShell.cpp @@ -454,12 +454,9 @@ nsPingListener::StartTimeout(DocGroup* aDocGroup) timer->SetTarget(aDocGroup->EventTargetFor(TaskCategory::Network)); if (timer) { - nsresult rv = - timer->InitWithNamedFuncCallback(OnPingTimeout, - mLoadGroup, - PING_TIMEOUT, - nsITimer::TYPE_ONE_SHOT, - "nsPingListener::StartTimeout"); + nsresult rv = timer->InitWithFuncCallback(OnPingTimeout, mLoadGroup, + PING_TIMEOUT, + nsITimer::TYPE_ONE_SHOT); if (NS_SUCCEEDED(rv)) { mTimer = timer; return NS_OK; @@ -1770,12 +1767,10 @@ nsDocShell::DispatchToTabGroup(const char* aName, NS_IMETHODIMP nsDocShell::DispatchLocationChangeEvent() { - return DispatchToTabGroup( - "nsDocShell::FireDummyOnLocationChange", - TaskCategory::Other, - NewRunnableMethod("nsDocShell::FireDummyOnLocationChange", - this, - &nsDocShell::FireDummyOnLocationChange)); + return DispatchToTabGroup("nsDocShell::FireDummyOnLocationChange", + TaskCategory::Other, + NewRunnableMethod(this, + &nsDocShell::FireDummyOnLocationChange)); } bool @@ -9648,20 +9643,13 @@ public: bool aLoadReplace, nsIURI* aReferrer, uint32_t aReferrerPolicy, nsIPrincipal* aTriggeringPrincipal, - nsIPrincipal* aPrincipalToInherit, - uint32_t aFlags, - const char* aTypeHint, - nsIInputStream* aPostData, - nsIInputStream* aHeadersData, - uint32_t aLoadType, - nsISHEntry* aSHEntry, - bool aFirstParty, - const nsAString& aSrcdoc, - nsIDocShell* aSourceDocShell, - nsIURI* aBaseURI, - bool aCheckForPrerender) - : mozilla::Runnable("InternalLoadEvent") - , mSrcdoc(aSrcdoc) + nsIPrincipal* aPrincipalToInherit, uint32_t aFlags, + const char* aTypeHint, nsIInputStream* aPostData, + nsIInputStream* aHeadersData, uint32_t aLoadType, + nsISHEntry* aSHEntry, bool aFirstParty, + const nsAString& aSrcdoc, nsIDocShell* aSourceDocShell, + nsIURI* aBaseURI, bool aCheckForPrerender) + : mSrcdoc(aSrcdoc) , mDocShell(aDocShell) , mURI(aURI) , mOriginalURI(aOriginalURI) @@ -14051,8 +14039,7 @@ OnLinkClickEvent::OnLinkClickEvent(nsDocShell* aHandler, bool aNoOpenerImplied, bool aIsTrusted, nsIPrincipal* aTriggeringPrincipal) - : mozilla::Runnable("OnLinkClickEvent") - , mHandler(aHandler) + : mHandler(aHandler) , mURI(aURI) , mTargetSpec(aTargetSpec) , mFileName(aFileName) diff --git a/docshell/base/nsDocShell.h b/docshell/base/nsDocShell.h index a48c0b9ce878..83c74efabe21 100644 --- a/docshell/base/nsDocShell.h +++ b/docshell/base/nsDocShell.h @@ -777,11 +777,7 @@ public: { public: NS_DECL_NSIRUNNABLE - explicit RestorePresentationEvent(nsDocShell* aDs) - : mozilla::Runnable("nsDocShell::RestorePresentationEvent") - , mDocShell(aDs) - { - } + explicit RestorePresentationEvent(nsDocShell* aDs) : mDocShell(aDs) {} void Revoke() { mDocShell = nullptr; } private: RefPtr mDocShell; diff --git a/docshell/base/nsDocShellTreeOwner.cpp b/docshell/base/nsDocShellTreeOwner.cpp index 4871e2df7af8..5be73d5d34f2 100644 --- a/docshell/base/nsDocShellTreeOwner.cpp +++ b/docshell/base/nsDocShellTreeOwner.cpp @@ -1260,12 +1260,10 @@ ChromeTooltipListener::MouseMove(nsIDOMEvent* aMouseEvent) } } if (mPossibleTooltipNode) { - nsresult rv = mTooltipTimer->InitWithNamedFuncCallback( - sTooltipCallback, - this, + nsresult rv = mTooltipTimer->InitWithFuncCallback( + sTooltipCallback, this, LookAndFeel::GetInt(LookAndFeel::eIntID_TooltipDelay, 500), - nsITimer::TYPE_ONE_SHOT, - "ChromeTooltipListener::MouseMove"); + nsITimer::TYPE_ONE_SHOT); if (NS_FAILED(rv)) { mPossibleTooltipNode = nullptr; } diff --git a/docshell/shistory/nsSHEntryShared.cpp b/docshell/shistory/nsSHEntryShared.cpp index a469c8687667..8625fe88efee 100644 --- a/docshell/shistory/nsSHEntryShared.cpp +++ b/docshell/shistory/nsSHEntryShared.cpp @@ -185,8 +185,7 @@ class DestroyViewerEvent : public mozilla::Runnable { public: DestroyViewerEvent(nsIContentViewer* aViewer, nsIDocument* aDocument) - : mozilla::Runnable("DestroyViewerEvent") - , mViewer(aViewer) + : mViewer(aViewer) , mDocument(aDocument) { } diff --git a/dom/animation/Animation.cpp b/dom/animation/Animation.cpp index 60cd91de9e94..846f21697f0c 100644 --- a/dom/animation/Animation.cpp +++ b/dom/animation/Animation.cpp @@ -1453,9 +1453,7 @@ Animation::DoFinishNotification(SyncNotifyFlag aSyncNotifyFlag) DoFinishNotificationImmediately(); } else if (!mFinishNotificationTask.IsPending()) { RefPtr> runnable = - NewRunnableMethod("dom::Animation::DoFinishNotificationImmediately", - this, - &Animation::DoFinishNotificationImmediately); + NewRunnableMethod(this, &Animation::DoFinishNotificationImmediately); context->DispatchToMicroTask(do_AddRef(runnable)); mFinishNotificationTask = runnable.forget(); } diff --git a/dom/asmjscache/AsmJSCache.cpp b/dom/asmjscache/AsmJSCache.cpp index 24cf08ad69d2..fa5a684e42ae 100644 --- a/dom/asmjscache/AsmJSCache.cpp +++ b/dom/asmjscache/AsmJSCache.cpp @@ -242,12 +242,11 @@ class FileDescriptorHolder : public Runnable { public: FileDescriptorHolder() - : Runnable("dom::asmjscache::FileDescriptorHolder") - , mQuotaObject(nullptr) - , mFileSize(INT64_MIN) - , mFileDesc(nullptr) - , mFileMap(nullptr) - , mMappedMemory(nullptr) + : mQuotaObject(nullptr), + mFileSize(INT64_MIN), + mFileDesc(nullptr), + mFileMap(nullptr), + mMappedMemory(nullptr) { } ~FileDescriptorHolder() override diff --git a/dom/audiochannel/AudioChannelService.cpp b/dom/audiochannel/AudioChannelService.cpp index 4bf894c9dd6d..a31934f5c0d9 100644 --- a/dom/audiochannel/AudioChannelService.cpp +++ b/dom/audiochannel/AudioChannelService.cpp @@ -85,11 +85,9 @@ private: class AudioPlaybackRunnable final : public Runnable { public: - AudioPlaybackRunnable(nsPIDOMWindowOuter* aWindow, - bool aActive, + AudioPlaybackRunnable(nsPIDOMWindowOuter* aWindow, bool aActive, AudioChannelService::AudibleChangedReasons aReason) - : mozilla::Runnable("AudioPlaybackRunnable") - , mWindow(aWindow) + : mWindow(aWindow) , mActive(aActive) , mReason(aReason) {} @@ -876,9 +874,7 @@ AudioChannelService::AudioChannelWindow::NotifyMediaBlockStop(nsPIDOMWindowOuter mShouldSendBlockStopEvent = false; // Can't use raw pointer for lamba variable capturing, use smart ptr. nsCOMPtr window = aWindow; - NS_DispatchToCurrentThread(NS_NewRunnableFunction( - "dom::AudioChannelService::AudioChannelWindow::NotifyMediaBlockStop", - [window]() -> void { + NS_DispatchToCurrentThread(NS_NewRunnableFunction([window] () -> void { nsCOMPtr observerService = services::GetObserverService(); if (NS_WARN_IF(!observerService)) { @@ -888,7 +884,8 @@ AudioChannelService::AudioChannelWindow::NotifyMediaBlockStop(nsPIDOMWindowOuter observerService->NotifyObservers(ToSupports(window), "audio-playback", u"blockStop"); - })); + }) + ); } void @@ -1052,19 +1049,18 @@ AudioChannelService::AudioChannelWindow::MaybeNotifyMediaBlockStart(AudioChannel if (!mShouldSendBlockStopEvent) { mShouldSendBlockStopEvent = true; - NS_DispatchToCurrentThread(NS_NewRunnableFunction( - "dom::AudioChannelService::AudioChannelWindow::" - "MaybeNotifyMediaBlockStart", - [window]() -> void { - nsCOMPtr observerService = - services::GetObserverService(); - if (NS_WARN_IF(!observerService)) { - return; - } + NS_DispatchToCurrentThread(NS_NewRunnableFunction([window] () -> void { + nsCOMPtr observerService = + services::GetObserverService(); + if (NS_WARN_IF(!observerService)) { + return; + } - observerService->NotifyObservers( - ToSupports(window), "audio-playback", u"blockStart"); - })); + observerService->NotifyObservers(ToSupports(window), + "audio-playback", + u"blockStart"); + }) + ); } } diff --git a/dom/base/CustomElementRegistry.cpp b/dom/base/CustomElementRegistry.cpp index 18bc269ce48f..c6eff39f12a1 100644 --- a/dom/base/CustomElementRegistry.cpp +++ b/dom/base/CustomElementRegistry.cpp @@ -454,9 +454,8 @@ CustomElementRegistry::EnqueueLifecycleCallback(nsIDocument::ElementCallbackType // should be invoked prior to returning control back to script. // Create a script runner to process the top of the processing // stack as soon as it is safe to run script. - nsCOMPtr runnable = NS_NewRunnableFunction( - "dom::CustomElementRegistry::EnqueueLifecycleCallback", - &CustomElementRegistry::ProcessTopElementQueue); + nsCOMPtr runnable = + NS_NewRunnableFunction(&CustomElementRegistry::ProcessTopElementQueue); nsContentUtils::AddScriptRunner(runnable); } } diff --git a/dom/base/CustomElementRegistry.h b/dom/base/CustomElementRegistry.h index 6faf5c6463b8..1faf0af488bf 100644 --- a/dom/base/CustomElementRegistry.h +++ b/dom/base/CustomElementRegistry.h @@ -243,11 +243,8 @@ private: private: class ProcessBackupQueueRunnable : public mozilla::Runnable { public: - explicit ProcessBackupQueueRunnable( - CustomElementReactionsStack* aReactionStack) - : Runnable( - "dom::CustomElementReactionsStack::ProcessBackupQueueRunnable") - , mReactionStack(aReactionStack) + explicit ProcessBackupQueueRunnable(CustomElementReactionsStack* aReactionStack) + : mReactionStack(aReactionStack) { MOZ_ASSERT(!mReactionStack->mIsBackupQueueProcessing, "mIsBackupQueueProcessing should be initially false"); diff --git a/dom/base/DOMRequest.cpp b/dom/base/DOMRequest.cpp index d6eee12adb34..ce6cd1dcdeaa 100644 --- a/dom/base/DOMRequest.cpp +++ b/dom/base/DOMRequest.cpp @@ -299,10 +299,10 @@ DOMRequestService::FireDetailedError(nsIDOMDOMRequest* aRequest, class FireSuccessAsyncTask : public mozilla::Runnable { - FireSuccessAsyncTask(DOMRequest* aRequest, const JS::Value& aResult) - : mozilla::Runnable("FireSuccessAsyncTask") - , mReq(aRequest) - , mResult(RootingCx(), aResult) + FireSuccessAsyncTask(DOMRequest* aRequest, + const JS::Value& aResult) : + mReq(aRequest), + mResult(RootingCx(), aResult) { } @@ -336,10 +336,10 @@ private: class FireErrorAsyncTask : public mozilla::Runnable { public: - FireErrorAsyncTask(DOMRequest* aRequest, const nsAString& aError) - : mozilla::Runnable("FireErrorAsyncTask") - , mReq(aRequest) - , mError(aError) + FireErrorAsyncTask(DOMRequest* aRequest, + const nsAString& aError) : + mReq(aRequest), + mError(aError) { } diff --git a/dom/base/Element.cpp b/dom/base/Element.cpp index 33acbcb191c1..3c6b7a365575 100644 --- a/dom/base/Element.cpp +++ b/dom/base/Element.cpp @@ -613,9 +613,7 @@ Element::WrapObject(JSContext *aCx, JS::Handle aGivenProto) binding->ExecuteAttachedHandler(); } else { nsContentUtils::AddScriptRunner( - NewRunnableMethod("nsXBLBinding::ExecuteAttachedHandler", - binding, - &nsXBLBinding::ExecuteAttachedHandler)); + NewRunnableMethod(binding, &nsXBLBinding::ExecuteAttachedHandler)); } } } @@ -1790,14 +1788,10 @@ Element::BindToTree(nsIDocument* aDocument, nsIContent* aParent, return NS_OK; } -RemoveFromBindingManagerRunnable::RemoveFromBindingManagerRunnable( - nsBindingManager* aManager, - nsIContent* aContent, - nsIDocument* aDoc) - : mozilla::Runnable("dom::RemoveFromBindingManagerRunnable") - , mManager(aManager) - , mContent(aContent) - , mDoc(aDoc) +RemoveFromBindingManagerRunnable::RemoveFromBindingManagerRunnable(nsBindingManager* aManager, + nsIContent* aContent, + nsIDocument* aDoc): + mManager(aManager), mContent(aContent), mDoc(aDoc) {} RemoveFromBindingManagerRunnable::~RemoveFromBindingManagerRunnable() {} diff --git a/dom/base/EventSource.cpp b/dom/base/EventSource.cpp index 3911b71ba7bd..518f048cf1cf 100644 --- a/dom/base/EventSource.cpp +++ b/dom/base/EventSource.cpp @@ -391,9 +391,7 @@ EventSourceImpl::Close() // Asynchronously call CloseInternal to prevent EventSourceImpl from being // synchronously destoryed while dispatching DOM event. DebugOnly rv = - Dispatch(NewRunnableMethod("dom::EventSourceImpl::CloseInternal", - this, - &EventSourceImpl::CloseInternal), + Dispatch(NewRunnableMethod(this, &EventSourceImpl::CloseInternal), NS_DISPATCH_NORMAL); MOZ_ASSERT(NS_SUCCEEDED(rv)); } @@ -685,9 +683,7 @@ EventSourceImpl::OnStartRequest(nsIRequest* aRequest, nsISupports* aCtxt) } } } - rv = Dispatch(NewRunnableMethod("dom::EventSourceImpl::AnnounceConnection", - this, - &EventSourceImpl::AnnounceConnection), + rv = Dispatch(NewRunnableMethod(this, &EventSourceImpl::AnnounceConnection), NS_DISPATCH_NORMAL); NS_ENSURE_SUCCESS(rv, rv); mStatus = PARSE_STATE_BEGIN_OF_STREAM; @@ -756,8 +752,7 @@ class DataAvailableRunnable final : public Runnable DataAvailableRunnable(EventSourceImpl* aEventSourceImpl, UniquePtr aData, uint32_t aLength) - : Runnable("dom::DataAvailableRunnable") - , mEventSourceImpl(aEventSourceImpl) + : mEventSourceImpl(aEventSourceImpl) , mData(Move(aData)) , mLength(aLength) { @@ -845,10 +840,9 @@ EventSourceImpl::OnStopRequest(nsIRequest* aRequest, nsresult rv = CheckHealthOfRequestCallback(aRequest); NS_ENSURE_SUCCESS(rv, rv); - rv = Dispatch(NewRunnableMethod("dom::EventSourceImpl::ReestablishConnection", - this, - &EventSourceImpl::ReestablishConnection), - NS_DISPATCH_NORMAL); + rv = Dispatch( + NewRunnableMethod(this, &EventSourceImpl::ReestablishConnection), + NS_DISPATCH_NORMAL); NS_ENSURE_SUCCESS(rv, rv); return NS_OK; @@ -1251,12 +1245,9 @@ EventSourceImpl::SetReconnectionTimeout() NS_ENSURE_STATE(mTimer); } - nsresult rv = mTimer->InitWithNamedFuncCallback( - TimerCallback, - this, - mReconnectionTime, - nsITimer::TYPE_ONE_SHOT, - "dom::EventSourceImpl::SetReconnectionTimeout"); + nsresult rv = mTimer->InitWithFuncCallback(TimerCallback, this, + mReconnectionTime, + nsITimer::TYPE_ONE_SHOT); NS_ENSURE_SUCCESS(rv, rv); return NS_OK; @@ -1350,9 +1341,7 @@ EventSourceImpl::DispatchFailConnection() if (NS_FAILED(rv)) { NS_WARNING("Failed to print to the console error"); } - rv = Dispatch(NewRunnableMethod("dom::EventSourceImpl::FailConnection", - this, - &EventSourceImpl::FailConnection), + rv = Dispatch(NewRunnableMethod(this, &EventSourceImpl::FailConnection), NS_DISPATCH_NORMAL); MOZ_ASSERT(NS_SUCCEEDED(rv)); } @@ -1418,9 +1407,7 @@ EventSourceImpl::Thaw() nsresult rv; if (!mGoingToDispatchAllMessages && mMessagesToDispatch.GetSize() > 0) { nsCOMPtr event = - NewRunnableMethod("dom::EventSourceImpl::DispatchAllMessageEvents", - this, - &EventSourceImpl::DispatchAllMessageEvents); + NewRunnableMethod(this, &EventSourceImpl::DispatchAllMessageEvents); NS_ENSURE_STATE(event); mGoingToDispatchAllMessages = true; @@ -1481,9 +1468,7 @@ EventSourceImpl::DispatchCurrentMessageEvent() if (!mGoingToDispatchAllMessages) { nsCOMPtr event = - NewRunnableMethod("dom::EventSourceImpl::DispatchAllMessageEvents", - this, - &EventSourceImpl::DispatchAllMessageEvents); + NewRunnableMethod(this, &EventSourceImpl::DispatchAllMessageEvents); NS_ENSURE_STATE(event); mGoingToDispatchAllMessages = true; diff --git a/dom/base/ImageEncoder.cpp b/dom/base/ImageEncoder.cpp index b263222ee751..8bed53cf7453 100644 --- a/dom/base/ImageEncoder.cpp +++ b/dom/base/ImageEncoder.cpp @@ -552,9 +552,9 @@ ImageEncoder::EnsureThreadPool() sThreadPool = threadPool; if (!NS_IsMainThread()) { - NS_DispatchToMainThread(NS_NewRunnableFunction( - "dom::ImageEncoder::EnsureThreadPool", - []() -> void { RegisterEncoderThreadPoolTerminatorObserver(); })); + NS_DispatchToMainThread(NS_NewRunnableFunction([]() -> void { + RegisterEncoderThreadPoolTerminatorObserver(); + })); } else { RegisterEncoderThreadPoolTerminatorObserver(); } diff --git a/dom/base/PostMessageEvent.cpp b/dom/base/PostMessageEvent.cpp index 06b2b55e0e2e..3d562859a14e 100644 --- a/dom/base/PostMessageEvent.cpp +++ b/dom/base/PostMessageEvent.cpp @@ -35,16 +35,14 @@ PostMessageEvent::PostMessageEvent(nsGlobalWindow* aSource, nsIPrincipal* aProvidedPrincipal, nsIDocument* aSourceDocument, bool aTrustedCaller) - : Runnable("dom::PostMessageEvent") - , StructuredCloneHolder(CloningSupported, - TransferringSupported, - StructuredCloneScope::SameProcessSameThread) - , mSource(aSource) - , mCallerOrigin(aCallerOrigin) - , mTargetWindow(aTargetWindow) - , mProvidedPrincipal(aProvidedPrincipal) - , mSourceDocument(aSourceDocument) - , mTrustedCaller(aTrustedCaller) +: StructuredCloneHolder(CloningSupported, TransferringSupported, + StructuredCloneScope::SameProcessSameThread), + mSource(aSource), + mCallerOrigin(aCallerOrigin), + mTargetWindow(aTargetWindow), + mProvidedPrincipal(aProvidedPrincipal), + mSourceDocument(aSourceDocument), + mTrustedCaller(aTrustedCaller) { } diff --git a/dom/base/ScreenOrientation.cpp b/dom/base/ScreenOrientation.cpp index 6d7d652120ac..644e5145dbaf 100644 --- a/dom/base/ScreenOrientation.cpp +++ b/dom/base/ScreenOrientation.cpp @@ -553,10 +553,8 @@ ScreenOrientation::Notify(const hal::ScreenConfiguration& aConfiguration) doc->SetOrientationPendingPromise(nullptr); } - nsCOMPtr runnable = - NewRunnableMethod("dom::ScreenOrientation::DispatchChangeEvent", - this, - &ScreenOrientation::DispatchChangeEvent); + nsCOMPtr runnable = NewRunnableMethod(this, + &ScreenOrientation::DispatchChangeEvent); rv = NS_DispatchToMainThread(runnable); NS_WARNING_ASSERTION(NS_SUCCEEDED(rv), "NS_DispatchToMainThread failed"); } @@ -642,10 +640,8 @@ ScreenOrientation::VisibleEventListener::HandleEvent(nsIDOMEvent* aEvent) doc->SetOrientationPendingPromise(nullptr); } - nsCOMPtr runnable = - NewRunnableMethod("dom::ScreenOrientation::DispatchChangeEvent", - orientation, - &ScreenOrientation::DispatchChangeEvent); + nsCOMPtr runnable = NewRunnableMethod(orientation, + &ScreenOrientation::DispatchChangeEvent); rv = NS_DispatchToMainThread(runnable); if (NS_WARN_IF(rv.Failed())) { return rv.StealNSResult(); diff --git a/dom/base/Selection.h b/dom/base/Selection.h index 980b3939a1cd..da9a573d4daa 100644 --- a/dom/base/Selection.h +++ b/dom/base/Selection.h @@ -323,13 +323,11 @@ private: nsIPresShell::ScrollAxis aVertical, nsIPresShell::ScrollAxis aHorizontal, int32_t aFlags) - : Runnable("dom::Selection::ScrollSelectionIntoViewEvent") - , mSelection(aSelection) - , mRegion(aRegion) - , mVerticalScroll(aVertical) - , mHorizontalScroll(aHorizontal) - , mFlags(aFlags) - { + : mSelection(aSelection), + mRegion(aRegion), + mVerticalScroll(aVertical), + mHorizontalScroll(aHorizontal), + mFlags(aFlags) { NS_ASSERTION(aSelection, "null parameter"); } void Revoke() { mSelection = nullptr; } diff --git a/dom/base/WebSocket.cpp b/dom/base/WebSocket.cpp index f98b09c2f5d2..b7f2235a17bc 100644 --- a/dom/base/WebSocket.cpp +++ b/dom/base/WebSocket.cpp @@ -268,8 +268,7 @@ class CallDispatchConnectionCloseEvents final : public CancelableRunnable { public: explicit CallDispatchConnectionCloseEvents(WebSocketImpl* aWebSocketImpl) - : CancelableRunnable("dom::CallDispatchConnectionCloseEvents") - , mWebSocketImpl(aWebSocketImpl) + : mWebSocketImpl(aWebSocketImpl) { aWebSocketImpl->AssertIsOnTargetThread(); } @@ -405,11 +404,9 @@ namespace { class CancelWebSocketRunnable final : public Runnable { public: - CancelWebSocketRunnable(nsIWebSocketChannel* aChannel, - uint16_t aReasonCode, + CancelWebSocketRunnable(nsIWebSocketChannel* aChannel, uint16_t aReasonCode, const nsACString& aReasonString) - : Runnable("dom::CancelWebSocketRunnable") - , mChannel(aChannel) + : mChannel(aChannel) , mReasonCode(aReasonCode) , mReasonString(aReasonString) {} @@ -461,8 +458,7 @@ public: CloseConnectionRunnable(WebSocketImpl* aImpl, uint16_t aReasonCode, const nsACString& aReasonString) - : Runnable("dom::CloseConnectionRunnable") - , mImpl(aImpl) + : mImpl(aImpl) , mReasonCode(aReasonCode) , mReasonString(aReasonString) {} diff --git a/dom/base/nsContentSink.cpp b/dom/base/nsContentSink.cpp index c0d9fcc7df7c..b98d89bfc9ce 100644 --- a/dom/base/nsContentSink.cpp +++ b/dom/base/nsContentSink.cpp @@ -285,9 +285,8 @@ nsContentSink::ProcessHTTPHeaders(nsIChannel* aChannel) "Already dispatched an event?"); mProcessLinkHeaderEvent = - NewNonOwningRunnableMethod("nsContentSink::DoProcessLinkHeader", - this, - &nsContentSink::DoProcessLinkHeader); + NewNonOwningRunnableMethod(this, + &nsContentSink::DoProcessLinkHeader); rv = NS_DispatchToCurrentThread(mProcessLinkHeaderEvent.get()); if (NS_FAILED(rv)) { mProcessLinkHeaderEvent.Forget(); diff --git a/dom/base/nsContentUtils.cpp b/dom/base/nsContentUtils.cpp index 82eef49bb7c4..2be1c33166cc 100644 --- a/dom/base/nsContentUtils.cpp +++ b/dom/base/nsContentUtils.cpp @@ -5267,16 +5267,12 @@ nsContentUtils::IsInSameAnonymousTree(const nsINode* aNode, class AnonymousContentDestroyer : public Runnable { public: - explicit AnonymousContentDestroyer(nsCOMPtr* aContent) - : mozilla::Runnable("AnonymousContentDestroyer") - { + explicit AnonymousContentDestroyer(nsCOMPtr* aContent) { mContent.swap(*aContent); mParent = mContent->GetParent(); mDoc = mContent->OwnerDoc(); } - explicit AnonymousContentDestroyer(nsCOMPtr* aElement) - : mozilla::Runnable("AnonymousContentDestroyer") - { + explicit AnonymousContentDestroyer(nsCOMPtr* aElement) { mContent = aElement->forget(); mParent = mContent->GetParent(); mDoc = mContent->OwnerDoc(); @@ -10470,9 +10466,9 @@ nsContentUtils::UserInteractionObserver::Init() // started yet. It will have started by the time we have the chance to spin // the event loop. RefPtr self = this; - NS_DispatchToMainThread( - NS_NewRunnableFunction("nsContentUtils::UserInteractionObserver::Init", - [=]() { HangMonitor::RegisterAnnotator(*self); })); + NS_DispatchToMainThread(NS_NewRunnableFunction([=] () { + HangMonitor::RegisterAnnotator(*self); + })); } void diff --git a/dom/base/nsDOMMutationObserver.cpp b/dom/base/nsDOMMutationObserver.cpp index 2798d2eeee8c..cd6894821139 100644 --- a/dom/base/nsDOMMutationObserver.cpp +++ b/dom/base/nsDOMMutationObserver.cpp @@ -867,7 +867,6 @@ nsDOMMutationObserver::HandleMutation() class AsyncMutationHandler : public mozilla::Runnable { public: - AsyncMutationHandler() : mozilla::Runnable("AsyncMutationHandler") {} NS_IMETHOD Run() override { nsDOMMutationObserver::HandleMutations(); diff --git a/dom/base/nsDOMWindowUtils.cpp b/dom/base/nsDOMWindowUtils.cpp index 7465ed8c0800..df58093bcf21 100644 --- a/dom/base/nsDOMWindowUtils.cpp +++ b/dom/base/nsDOMWindowUtils.cpp @@ -1109,21 +1109,10 @@ nsDOMWindowUtils::SendNativeKeyEvent(int32_t aNativeKeyboardLayout, if (!widget) return NS_ERROR_FAILURE; - NS_DispatchToMainThread( - NewRunnableMethod("nsIWidget::SynthesizeNativeKeyEvent", - widget, - &nsIWidget::SynthesizeNativeKeyEvent, - aNativeKeyboardLayout, - aNativeKeyCode, - aModifiers, - aCharacters, - aUnmodifiedCharacters, - aObserver)); + NS_DispatchToMainThread(NewRunnableMethod + + (widget, &nsIWidget::SynthesizeNativeKeyEvent, aNativeKeyboardLayout, + aNativeKeyCode, aModifiers, aCharacters, aUnmodifiedCharacters, aObserver)); return NS_OK; } @@ -1140,15 +1129,11 @@ nsDOMWindowUtils::SendNativeMouseEvent(int32_t aScreenX, if (!widget) return NS_ERROR_FAILURE; - NS_DispatchToMainThread( - NewRunnableMethod( - "nsIWidget::SynthesizeNativeMouseEvent", - widget, - &nsIWidget::SynthesizeNativeMouseEvent, - LayoutDeviceIntPoint(aScreenX, aScreenY), - aNativeMessage, - aModifierFlags, - aObserver)); + NS_DispatchToMainThread(NewRunnableMethod + + (widget, &nsIWidget::SynthesizeNativeMouseEvent, + LayoutDeviceIntPoint(aScreenX, aScreenY), aNativeMessage, aModifierFlags, + aObserver)); return NS_OK; } @@ -1163,12 +1148,10 @@ nsDOMWindowUtils::SendNativeMouseMove(int32_t aScreenX, if (!widget) return NS_ERROR_FAILURE; - NS_DispatchToMainThread(NewRunnableMethod( - "nsIWidget::SynthesizeNativeMouseMove", - widget, - &nsIWidget::SynthesizeNativeMouseMove, - LayoutDeviceIntPoint(aScreenX, aScreenY), - aObserver)); + NS_DispatchToMainThread(NewRunnableMethod + + (widget, &nsIWidget::SynthesizeNativeMouseMove, + LayoutDeviceIntPoint(aScreenX, aScreenY), aObserver)); return NS_OK; } @@ -1190,25 +1173,11 @@ nsDOMWindowUtils::SendNativeMouseScrollEvent(int32_t aScreenX, return NS_ERROR_FAILURE; } - NS_DispatchToMainThread(NewRunnableMethod( - "nsIWidget::SynthesizeNativeMouseScrollEvent", - widget, - &nsIWidget::SynthesizeNativeMouseScrollEvent, - LayoutDeviceIntPoint(aScreenX, aScreenY), - aNativeMessage, - aDeltaX, - aDeltaY, - aDeltaZ, - aModifierFlags, - aAdditionalFlags, - aObserver)); + NS_DispatchToMainThread(NewRunnableMethod + + (widget, &nsIWidget::SynthesizeNativeMouseScrollEvent, + LayoutDeviceIntPoint(aScreenX, aScreenY), aNativeMessage, aDeltaX, aDeltaY, + aDeltaZ, aModifierFlags, aAdditionalFlags, aObserver)); return NS_OK; } @@ -1230,21 +1199,12 @@ nsDOMWindowUtils::SendNativeTouchPoint(uint32_t aPointerId, return NS_ERROR_INVALID_ARG; } - NS_DispatchToMainThread( - NewRunnableMethod("nsIWidget::SynthesizeNativeTouchPoint", - widget, - &nsIWidget::SynthesizeNativeTouchPoint, - aPointerId, - (nsIWidget::TouchPointerState)aTouchState, - LayoutDeviceIntPoint(aScreenX, aScreenY), - aPressure, - aOrientation, - aObserver)); + NS_DispatchToMainThread(NewRunnableMethod + + (widget, &nsIWidget::SynthesizeNativeTouchPoint, aPointerId, + (nsIWidget::TouchPointerState)aTouchState, + LayoutDeviceIntPoint(aScreenX, aScreenY), + aPressure, aOrientation, aObserver)); return NS_OK; } @@ -1259,14 +1219,10 @@ nsDOMWindowUtils::SendNativeTouchTap(int32_t aScreenX, return NS_ERROR_FAILURE; } - NS_DispatchToMainThread( - NewRunnableMethod( - "nsIWidget::SynthesizeNativeTouchTap", - widget, - &nsIWidget::SynthesizeNativeTouchTap, - LayoutDeviceIntPoint(aScreenX, aScreenY), - aLongTap, - aObserver)); + NS_DispatchToMainThread(NewRunnableMethod + + (widget, &nsIWidget::SynthesizeNativeTouchTap, + LayoutDeviceIntPoint(aScreenX, aScreenY), aLongTap, aObserver)); return NS_OK; } @@ -1278,11 +1234,8 @@ nsDOMWindowUtils::ClearNativeTouchSequence(nsIObserver* aObserver) return NS_ERROR_FAILURE; } - NS_DispatchToMainThread( - NewRunnableMethod("nsIWidget::ClearNativeTouchSequence", - widget, - &nsIWidget::ClearNativeTouchSequence, - aObserver)); + NS_DispatchToMainThread(NewRunnableMethod + (widget, &nsIWidget::ClearNativeTouchSequence, aObserver)); return NS_OK; } diff --git a/dom/base/nsDocElementCreatedNotificationRunner.h b/dom/base/nsDocElementCreatedNotificationRunner.h index 5568a37bbdaf..1e53c3dd0ba7 100644 --- a/dom/base/nsDocElementCreatedNotificationRunner.h +++ b/dom/base/nsDocElementCreatedNotificationRunner.h @@ -18,8 +18,7 @@ class nsDocElementCreatedNotificationRunner : public mozilla::Runnable { public: explicit nsDocElementCreatedNotificationRunner(nsIDocument* aDoc) - : mozilla::Runnable("nsDocElementCreatedNotificationRunner") - , mDoc(aDoc) + : mDoc(aDoc) { } diff --git a/dom/base/nsDocument.cpp b/dom/base/nsDocument.cpp index 0cabfc15fcdb..27d713985d6d 100644 --- a/dom/base/nsDocument.cpp +++ b/dom/base/nsDocument.cpp @@ -4430,10 +4430,8 @@ nsDocument::SetStyleSheetApplicableState(StyleSheet* aSheet, if (!mSSApplicableStateNotificationPending) { MOZ_RELEASE_ASSERT(NS_IsMainThread()); - nsCOMPtr notification = - NewRunnableMethod("nsDocument::NotifyStyleSheetApplicableStateChanged", - this, - &nsDocument::NotifyStyleSheetApplicableStateChanged); + nsCOMPtr notification = NewRunnableMethod(this, + &nsDocument::NotifyStyleSheetApplicableStateChanged); mSSApplicableStateNotificationPending = NS_SUCCEEDED( Dispatch("nsDocument::NotifyStyleSheetApplicableStateChanged", @@ -5048,9 +5046,7 @@ nsDocument::MaybeEndOutermostXBLUpdate() } else if (!mInDestructor) { if (!mMaybeEndOutermostXBLUpdateRunner) { mMaybeEndOutermostXBLUpdateRunner = - NewRunnableMethod("nsDocument::MaybeEndOutermostXBLUpdate", - this, - &nsDocument::MaybeEndOutermostXBLUpdate); + NewRunnableMethod(this, &nsDocument::MaybeEndOutermostXBLUpdate); } nsContentUtils::AddScriptRunner(mMaybeEndOutermostXBLUpdateRunner); } @@ -5381,9 +5377,7 @@ nsDocument::UnblockDOMContentLoaded() if (!mSynchronousDOMContentLoaded) { MOZ_RELEASE_ASSERT(NS_IsMainThread()); nsCOMPtr ev = - NewRunnableMethod("nsDocument::DispatchContentLoadedEvents", - this, - &nsDocument::DispatchContentLoadedEvents); + NewRunnableMethod(this, &nsDocument::DispatchContentLoadedEvents); Dispatch("nsDocument::DispatchContentLoadedEvents", TaskCategory::Other, ev.forget()); } else { DispatchContentLoadedEvents(); @@ -7021,9 +7015,7 @@ nsDocument::NotifyPossibleTitleChange(bool aBoundTitleElement) MOZ_RELEASE_ASSERT(NS_IsMainThread()); RefPtr> event = - NewNonOwningRunnableMethod("nsDocument::DoNotifyPossibleTitleChange", - this, - &nsDocument::DoNotifyPossibleTitleChange); + NewNonOwningRunnableMethod(this, &nsDocument::DoNotifyPossibleTitleChange); nsresult rv = Dispatch("nsDocument::DoNotifyPossibleTitleChange", TaskCategory::Other, do_AddRef(event)); if (NS_SUCCEEDED(rv)) { @@ -7173,9 +7165,7 @@ nsDocument::InitializeFrameLoader(nsFrameLoader* aLoader) mInitializableFrameLoaders.AppendElement(aLoader); if (!mFrameLoaderRunner) { mFrameLoaderRunner = - NewRunnableMethod("nsDocument::MaybeInitializeFinalizeFrameLoaders", - this, - &nsDocument::MaybeInitializeFinalizeFrameLoaders); + NewRunnableMethod(this, &nsDocument::MaybeInitializeFinalizeFrameLoaders); NS_ENSURE_TRUE(mFrameLoaderRunner, NS_ERROR_OUT_OF_MEMORY); nsContentUtils::AddScriptRunner(mFrameLoaderRunner); } @@ -7193,9 +7183,7 @@ nsDocument::FinalizeFrameLoader(nsFrameLoader* aLoader, nsIRunnable* aFinalizer) mFrameLoaderFinalizers.AppendElement(aFinalizer); if (!mFrameLoaderRunner) { mFrameLoaderRunner = - NewRunnableMethod("nsDocument::MaybeInitializeFinalizeFrameLoaders", - this, - &nsDocument::MaybeInitializeFinalizeFrameLoaders); + NewRunnableMethod(this, &nsDocument::MaybeInitializeFinalizeFrameLoaders); NS_ENSURE_TRUE(mFrameLoaderRunner, NS_ERROR_OUT_OF_MEMORY); nsContentUtils::AddScriptRunner(mFrameLoaderRunner); } @@ -7219,9 +7207,7 @@ nsDocument::MaybeInitializeFinalizeFrameLoaders() (mInitializableFrameLoaders.Length() || mFrameLoaderFinalizers.Length())) { mFrameLoaderRunner = - NewRunnableMethod("nsDocument::MaybeInitializeFinalizeFrameLoaders", - this, - &nsDocument::MaybeInitializeFinalizeFrameLoaders); + NewRunnableMethod(this, &nsDocument::MaybeInitializeFinalizeFrameLoaders); nsContentUtils::AddScriptRunner(mFrameLoaderRunner); } return; @@ -8798,8 +8784,8 @@ nsDocument::BlockOnload() // block onload only when there are no script blockers. ++mAsyncOnloadBlockCount; if (mAsyncOnloadBlockCount == 1) { - nsContentUtils::AddScriptRunner(NewRunnableMethod( - "nsDocument::AsyncBlockOnload", this, &nsDocument::AsyncBlockOnload)); + nsContentUtils::AddScriptRunner( + NewRunnableMethod(this, &nsDocument::AsyncBlockOnload)); } return; } @@ -8856,11 +8842,7 @@ nsDocument::UnblockOnload(bool aFireSync) class nsUnblockOnloadEvent : public Runnable { public: - explicit nsUnblockOnloadEvent(nsDocument* aDoc) - : mozilla::Runnable("nsUnblockOnloadEvent") - , mDoc(aDoc) - { - } + explicit nsUnblockOnloadEvent(nsDocument* aDoc) : mDoc(aDoc) {} NS_IMETHOD Run() override { mDoc->DoUnblockOnload(); return NS_OK; @@ -9742,7 +9724,6 @@ class nsDelayedEventDispatcher : public Runnable { public: explicit nsDelayedEventDispatcher(nsTArray>& aDocuments) - : mozilla::Runnable("nsDelayedEventDispatcher") { mDocuments.SwapElements(aDocuments); } @@ -9989,9 +9970,7 @@ nsIDocument::RegisterPendingLinkUpdate(Link* aLink) if (!mHasLinksToUpdateRunnable) { nsCOMPtr event = - NewRunnableMethod("nsIDocument::FlushPendingLinkUpdatesFromRunnable", - this, - &nsIDocument::FlushPendingLinkUpdatesFromRunnable); + NewRunnableMethod(this, &nsIDocument::FlushPendingLinkUpdatesFromRunnable); // Do this work in a second in the worst case. nsresult rv = NS_IdleDispatchToCurrentThread(event.forget(), 1000); @@ -10913,10 +10892,7 @@ class nsCallExitFullscreen : public Runnable { public: explicit nsCallExitFullscreen(nsIDocument* aDoc) - : mozilla::Runnable("nsCallExitFullscreen") - , mDoc(aDoc) - { - } + : mDoc(aDoc) {} NS_IMETHOD Run() override final { @@ -10996,10 +10972,7 @@ class ExitFullscreenScriptRunnable : public Runnable { public: explicit ExitFullscreenScriptRunnable(nsCOMArray&& aDocuments) - : mozilla::Runnable("ExitFullscreenScriptRunnable") - , mDocuments(Move(aDocuments)) - { - } + : mDocuments(Move(aDocuments)) { } NS_IMETHOD Run() override { @@ -11193,10 +11166,7 @@ class nsCallRequestFullScreen : public Runnable { public: explicit nsCallRequestFullScreen(UniquePtr&& aRequest) - : mozilla::Runnable("nsCallRequestFullScreen") - , mRequest(Move(aRequest)) - { - } + : mRequest(Move(aRequest)) { } NS_IMETHOD Run() override { @@ -11926,8 +11896,7 @@ class PointerLockRequest final : public Runnable { public: PointerLockRequest(Element* aElement, bool aUserInputOrChromeCaller) - : mozilla::Runnable("PointerLockRequest") - , mElement(do_GetWeakReference(aElement)) + : mElement(do_GetWeakReference(aElement)) , mDocument(do_GetWeakReference(aElement->OwnerDoc())) , mUserInputOrChromeCaller(aUserInputOrChromeCaller) {} @@ -12278,9 +12247,7 @@ nsDocument::GetVisibilityState() const nsDocument::PostVisibilityUpdateEvent() { nsCOMPtr event = - NewRunnableMethod("nsDocument::UpdateVisibilityState", - this, - &nsDocument::UpdateVisibilityState); + NewRunnableMethod(this, &nsDocument::UpdateVisibilityState); Dispatch("nsDocument::UpdateVisibilityState", TaskCategory::Other, event.forget()); } @@ -12820,9 +12787,7 @@ nsDocument::ScheduleIntersectionObserverNotification() } MOZ_RELEASE_ASSERT(NS_IsMainThread()); nsCOMPtr notification = - NewRunnableMethod("nsDocument::NotifyIntersectionObservers", - this, - &nsDocument::NotifyIntersectionObservers); + NewRunnableMethod(this, &nsDocument::NotifyIntersectionObservers); Dispatch("nsDocument::IntersectionObserverNotification", TaskCategory::Other, notification.forget()); } @@ -13112,9 +13077,7 @@ nsIDocument::RebuildUserFontSet() if (!mPostedFlushUserFontSet) { MOZ_RELEASE_ASSERT(NS_IsMainThread()); nsCOMPtr ev = - NewRunnableMethod("nsIDocument::HandleRebuildUserFontSet", - this, - &nsIDocument::HandleRebuildUserFontSet); + NewRunnableMethod(this, &nsIDocument::HandleRebuildUserFontSet); if (NS_SUCCEEDED(Dispatch("nsIDocument::HandleRebuildUserFontSet", TaskCategory::Other, ev.forget()))) { mPostedFlushUserFontSet = true; diff --git a/dom/base/nsFocusManager.cpp b/dom/base/nsFocusManager.cpp index 2d0839b9d1a3..210b77a2ffa2 100644 --- a/dom/base/nsFocusManager.cpp +++ b/dom/base/nsFocusManager.cpp @@ -2021,14 +2021,10 @@ nsFocusManager::Focus(nsPIDOMWindowOuter* aWindow, class FocusBlurEvent : public Runnable { public: - FocusBlurEvent(nsISupports* aTarget, - EventMessage aEventMessage, - nsPresContext* aContext, - bool aWindowRaised, - bool aIsRefocus, - EventTarget* aRelatedTarget) - : mozilla::Runnable("FocusBlurEvent") - , mTarget(aTarget) + FocusBlurEvent(nsISupports* aTarget, EventMessage aEventMessage, + nsPresContext* aContext, bool aWindowRaised, + bool aIsRefocus, EventTarget* aRelatedTarget) + : mTarget(aTarget) , mContext(aContext) , mEventMessage(aEventMessage) , mWindowRaised(aWindowRaised) @@ -2059,14 +2055,12 @@ public: class FocusInOutEvent : public Runnable { public: - FocusInOutEvent(nsISupports* aTarget, - EventMessage aEventMessage, - nsPresContext* aContext, - nsPIDOMWindowOuter* aOriginalFocusedWindow, - nsIContent* aOriginalFocusedContent, - EventTarget* aRelatedTarget) - : mozilla::Runnable("FocusInOutEvent") - , mTarget(aTarget) + FocusInOutEvent(nsISupports* aTarget, EventMessage aEventMessage, + nsPresContext* aContext, + nsPIDOMWindowOuter* aOriginalFocusedWindow, + nsIContent* aOriginalFocusedContent, + EventTarget* aRelatedTarget) + : mTarget(aTarget) , mContext(aContext) , mEventMessage(aEventMessage) , mOriginalFocusedWindow(aOriginalFocusedWindow) @@ -2270,8 +2264,8 @@ nsFocusManager::RaiseWindow(nsPIDOMWindowOuter* aWindow) nsCOMPtr active(mActiveWindow); nsCOMPtr window(aWindow); RefPtr self(this); - NS_DispatchToCurrentThread(NS_NewRunnableFunction( - "nsFocusManager::RaiseWindow", [self, active, window]() -> void { + NS_DispatchToCurrentThread( + NS_NewRunnableFunction([self, active, window] () -> void { if (active) { self->WindowLowered(active); } @@ -3629,7 +3623,6 @@ class PointerUnlocker : public Runnable { public: PointerUnlocker() - : mozilla::Runnable("PointerUnlocker") { MOZ_ASSERT(!PointerUnlocker::sActiveUnlocker); PointerUnlocker::sActiveUnlocker = this; diff --git a/dom/base/nsFrameLoader.cpp b/dom/base/nsFrameLoader.cpp index eca46e193bd7..9857ba3a50fc 100644 --- a/dom/base/nsFrameLoader.cpp +++ b/dom/base/nsFrameLoader.cpp @@ -1985,11 +1985,7 @@ class nsFrameLoaderDestroyRunnable : public Runnable public: explicit nsFrameLoaderDestroyRunnable(nsFrameLoader* aFrameLoader) - : mozilla::Runnable("nsFrameLoaderDestroyRunnable") - , mFrameLoader(aFrameLoader) - , mPhase(eDestroyDocShell) - { - } + : mFrameLoader(aFrameLoader), mPhase(eDestroyDocShell) {} NS_IMETHOD Run() override; }; @@ -2074,10 +2070,9 @@ nsFrameLoader::StartDestroy() nsCOMPtr groupedSHistory; GetGroupedSHistory(getter_AddRefs(groupedSHistory)); if (groupedSHistory) { - NS_DispatchToCurrentThread(NS_NewRunnableFunction( - "nsFrameLoader::StartDestroy", [groupedSHistory]() { - groupedSHistory->CloseInactiveFrameLoaderOwners(); - })); + NS_DispatchToCurrentThread(NS_NewRunnableFunction([groupedSHistory] () { + groupedSHistory->CloseInactiveFrameLoaderOwners(); + })); } } @@ -3172,7 +3167,6 @@ public: JS::Handle aCpows, nsFrameLoader* aFrameLoader) : nsSameProcessAsyncMessageBase(aRootingCx, aCpows) - , mozilla::Runnable("nsAsyncMessageToChild") , mFrameLoader(aFrameLoader) { } diff --git a/dom/base/nsFrameMessageManager.cpp b/dom/base/nsFrameMessageManager.cpp index a7bc4ee8c7b7..45c769d8e9f7 100644 --- a/dom/base/nsFrameMessageManager.cpp +++ b/dom/base/nsFrameMessageManager.cpp @@ -1743,7 +1743,6 @@ public: nsAsyncMessageToSameProcessChild(JS::RootingContext* aRootingCx, JS::Handle aCpows) : nsSameProcessAsyncMessageBase(aRootingCx, aCpows) - , mozilla::Runnable("nsAsyncMessageToSameProcessChild") { } NS_IMETHOD Run() override { diff --git a/dom/base/nsGlobalWindow.cpp b/dom/base/nsGlobalWindow.cpp index 43a2ec4864e5..c0abaad8f052 100644 --- a/dom/base/nsGlobalWindow.cpp +++ b/dom/base/nsGlobalWindow.cpp @@ -3036,8 +3036,8 @@ nsGlobalWindow::SetNewDocument(nsIDocument* aDocument, happens, setting status isn't a big requirement, so don't. (Doesn't happen under normal circumstances, but bug 49615 describes a case.) */ - nsContentUtils::AddScriptRunner(NewRunnableMethod( - "nsGlobalWindow::ClearStatus", this, &nsGlobalWindow::ClearStatus)); + nsContentUtils::AddScriptRunner( + NewRunnableMethod(this, &nsGlobalWindow::ClearStatus)); // Sometimes, WouldReuseInnerWindow() returns true even if there's no inner // window (see bug 776497). Be safe. @@ -3347,8 +3347,7 @@ nsGlobalWindow::SetNewDocument(nsIDocument* aDocument, // up with the outer. See bug 969156. if (createdInnerWindow) { nsContentUtils::AddScriptRunner( - NewRunnableMethod("nsGlobalWindow::FireOnNewGlobalObject", - newInnerWindow, + NewRunnableMethod(newInnerWindow, &nsGlobalWindow::FireOnNewGlobalObject)); } @@ -3362,9 +3361,7 @@ nsGlobalWindow::SetNewDocument(nsIDocument* aDocument, nsContentUtils::IsSystemPrincipal(mDoc->NodePrincipal())) { newInnerWindow->mHasNotifiedGlobalCreated = true; nsContentUtils::AddScriptRunner( - NewRunnableMethod("nsGlobalWindow::DispatchDOMWindowCreated", - this, - &nsGlobalWindow::DispatchDOMWindowCreated)); + NewRunnableMethod(this, &nsGlobalWindow::DispatchDOMWindowCreated)); } } @@ -6875,13 +6872,10 @@ class FullscreenTransitionTask : public Runnable { public: FullscreenTransitionTask(const FullscreenTransitionDuration& aDuration, - nsGlobalWindow* aWindow, - bool aFullscreen, - nsIWidget* aWidget, - nsIScreen* aScreen, + nsGlobalWindow* aWindow, bool aFullscreen, + nsIWidget* aWidget, nsIScreen* aScreen, nsISupports* aTransitionData) - : mozilla::Runnable("FullscreenTransitionTask") - , mWindow(aWindow) + : mWindow(aWindow) , mWidget(aWidget) , mScreen(aScreen) , mTransitionData(aTransitionData) @@ -9217,9 +9211,8 @@ class nsCloseEvent : public Runnable { RefPtr mWindow; bool mIndirect; - nsCloseEvent(nsGlobalWindow* aWindow, bool aIndirect) - : mozilla::Runnable("nsCloseEvent") - , mWindow(aWindow) + nsCloseEvent(nsGlobalWindow *aWindow, bool aIndirect) + : mWindow(aWindow) , mIndirect(aIndirect) {} @@ -9648,11 +9641,11 @@ struct BrowserCompartmentMatcher : public js::CompartmentFilter { class WindowDestroyedEvent final : public Runnable { public: - WindowDestroyedEvent(nsIDOMWindow* aWindow, uint64_t aID, const char* aTopic) - : mozilla::Runnable("WindowDestroyedEvent") - , mID(aID) - , mPhase(Phase::Destroying) - , mTopic(aTopic) + WindowDestroyedEvent(nsIDOMWindow* aWindow, uint64_t aID, + const char* aTopic) : + mID(aID), + mPhase(Phase::Destroying), + mTopic(aTopic) { mWindow = do_GetWeakReference(aWindow); } @@ -10142,12 +10135,7 @@ public: ChildCommandDispatcher(nsGlobalWindow* aWindow, nsITabChild* aTabChild, const nsAString& aAction) - : mozilla::Runnable("ChildCommandDispatcher") - , mWindow(aWindow) - , mTabChild(aTabChild) - , mAction(aAction) - { - } + : mWindow(aWindow), mTabChild(aTabChild), mAction(aAction) {} NS_IMETHOD Run() override { @@ -10176,11 +10164,7 @@ class CommandDispatcher : public Runnable public: CommandDispatcher(nsIDOMXULCommandDispatcher* aDispatcher, const nsAString& aAction) - : mozilla::Runnable("CommandDispatcher") - , mDispatcher(aDispatcher) - , mAction(aAction) - { - } + : mDispatcher(aDispatcher), mAction(aAction) {} NS_IMETHOD Run() override { @@ -10972,11 +10956,10 @@ nsGlobalWindow::PageHidden() class HashchangeCallback : public Runnable { public: - HashchangeCallback(const nsAString& aOldURL, - const nsAString& aNewURL, + HashchangeCallback(const nsAString &aOldURL, + const nsAString &aNewURL, nsGlobalWindow* aWindow) - : mozilla::Runnable("HashchangeCallback") - , mWindow(aWindow) + : mWindow(aWindow) { MOZ_ASSERT(mWindow); MOZ_ASSERT(mWindow->IsInnerWindow()); @@ -11589,11 +11572,8 @@ public: uint32_t aTimeInS, bool aCallOnidle, nsGlobalWindow* aIdleWindow) - : mozilla::Runnable("NotifyIdleObserverRunnable") - , mIdleObserver(aIdleObserver) - , mTimeInS(aTimeInS) - , mIdleWindow(aIdleWindow) - , mCallOnidle(aCallOnidle) + : mIdleObserver(aIdleObserver), mTimeInS(aTimeInS), mIdleWindow(aIdleWindow), + mCallOnidle(aCallOnidle) { } NS_IMETHOD Run() override @@ -11701,12 +11681,10 @@ nsGlobalWindow::ScheduleNextIdleObserverCallback() } mIdleTimer->Cancel(); - rv = mIdleTimer->InitWithNamedFuncCallback( - IdleObserverTimerCallback, - this, - callbackTimeMS, - nsITimer::TYPE_ONE_SHOT, - "nsGlobalWindow::ScheduleNextIdleObserverCallback"); + rv = mIdleTimer->InitWithFuncCallback(IdleObserverTimerCallback, + this, + callbackTimeMS, + nsITimer::TYPE_ONE_SHOT); NS_ENSURE_SUCCESS(rv, rv); return NS_OK; @@ -11748,12 +11726,10 @@ nsGlobalWindow::ScheduleActiveTimerCallback() mIdleTimer->Cancel(); uint32_t fuzzFactorInMS = GetFuzzTimeMS(); - nsresult rv = mIdleTimer->InitWithNamedFuncCallback( - IdleActiveTimerCallback, - this, - fuzzFactorInMS, - nsITimer::TYPE_ONE_SHOT, - "nsGlobalWindow::ScheduleActiveTimerCallback"); + nsresult rv = mIdleTimer->InitWithFuncCallback(IdleActiveTimerCallback, + this, + fuzzFactorInMS, + nsITimer::TYPE_ONE_SHOT); NS_ENSURE_SUCCESS(rv, rv); return NS_OK; } @@ -12842,8 +12818,7 @@ public: ~AutoUnblockScriptClosing() { void (nsGlobalWindow::*run)() = &nsGlobalWindow::UnblockScriptedClosing; - nsCOMPtr caller = NewRunnableMethod( - "AutoUnblockScriptClosing::~AutoUnblockScriptClosing", mWin, run); + nsCOMPtr caller = NewRunnableMethod(mWin, run); mWin->Dispatch("nsGlobalWindow::UnblockScriptedClosing", TaskCategory::Other, caller.forget()); } diff --git a/dom/base/nsIGlobalObject.cpp b/dom/base/nsIGlobalObject.cpp index c3b5a51b922f..6479c947b370 100644 --- a/dom/base/nsIGlobalObject.cpp +++ b/dom/base/nsIGlobalObject.cpp @@ -43,7 +43,6 @@ class UnlinkHostObjectURIsRunnable final : public mozilla::Runnable { public: explicit UnlinkHostObjectURIsRunnable(nsTArray& aURIs) - : mozilla::Runnable("UnlinkHostObjectURIsRunnable") { mURIs.SwapElements(aURIs); } diff --git a/dom/base/nsInProcessTabChildGlobal.cpp b/dom/base/nsInProcessTabChildGlobal.cpp index ad80392b05cc..2a0aeaf7b566 100644 --- a/dom/base/nsInProcessTabChildGlobal.cpp +++ b/dom/base/nsInProcessTabChildGlobal.cpp @@ -309,15 +309,9 @@ nsInProcessTabChildGlobal::InitTabChildGlobal() class nsAsyncScriptLoad : public Runnable { public: - nsAsyncScriptLoad(nsInProcessTabChildGlobal* aTabChild, - const nsAString& aURL, - bool aRunInGlobalScope) - : mozilla::Runnable("nsAsyncScriptLoad") - , mTabChild(aTabChild) - , mURL(aURL) - , mRunInGlobalScope(aRunInGlobalScope) - { - } + nsAsyncScriptLoad(nsInProcessTabChildGlobal* aTabChild, const nsAString& aURL, + bool aRunInGlobalScope) + : mTabChild(aTabChild), mURL(aURL), mRunInGlobalScope(aRunInGlobalScope) {} NS_IMETHOD Run() override { diff --git a/dom/base/nsJSEnvironment.cpp b/dom/base/nsJSEnvironment.cpp index c342a8116cf5..b0054378c687 100644 --- a/dom/base/nsJSEnvironment.cpp +++ b/dom/base/nsJSEnvironment.cpp @@ -614,8 +614,7 @@ public: JS::RootingContext* aRootingCx, xpc::ErrorReport* aReport, JS::Handle aError) - : mozilla::Runnable("ScriptErrorEvent") - , mWindow(aWindow) + : mWindow(aWindow) , mReport(aReport) , mError(aRootingCx, aError) {} @@ -2399,11 +2398,7 @@ class NotifyGCEndRunnable : public Runnable nsString mMessage; public: - explicit NotifyGCEndRunnable(const nsString& aMessage) - : mozilla::Runnable("NotifyGCEndRunnable") - , mMessage(aMessage) - { - } + explicit NotifyGCEndRunnable(const nsString& aMessage) : mMessage(aMessage) {} NS_DECL_NSIRUNNABLE }; @@ -2728,8 +2723,7 @@ class AsyncTaskRunnable final : public Runnable public: explicit AsyncTaskRunnable(JS::AsyncTask* aTask) - : mozilla::Runnable("AsyncTaskRunnable") - , mTask(aTask) + : mTask(aTask) { MOZ_ASSERT(mTask); } diff --git a/dom/base/nsJSEnvironment.h b/dom/base/nsJSEnvironment.h index 4fa39a1977c3..65f09b3b8d94 100644 --- a/dom/base/nsJSEnvironment.h +++ b/dom/base/nsJSEnvironment.h @@ -179,8 +179,7 @@ class AsyncErrorReporter final : public mozilla::Runnable public: // aWindow may be null if this error report is not associated with a window explicit AsyncErrorReporter(xpc::ErrorReport* aReport) - : Runnable("dom::AsyncErrorReporter") - , mReport(aReport) + : mReport(aReport) {} NS_IMETHOD Run() override diff --git a/dom/base/nsObjectLoadingContent.cpp b/dom/base/nsObjectLoadingContent.cpp index 79185173e085..2c839a291353 100644 --- a/dom/base/nsObjectLoadingContent.cpp +++ b/dom/base/nsObjectLoadingContent.cpp @@ -279,8 +279,7 @@ public: } nsSimplePluginEvent(nsIDocument* aTarget, const nsAString& aEvent) - : mozilla::Runnable("nsSimplePluginEvent") - , mTarget(aTarget) + : mTarget(aTarget) , mDocument(aTarget) , mEvent(aEvent) { @@ -290,8 +289,7 @@ public: nsSimplePluginEvent(nsIContent* aTarget, nsIDocument* aDocument, const nsAString& aEvent) - : mozilla::Runnable("nsSimplePluginEvent") - , mTarget(aTarget) + : mTarget(aTarget) , mDocument(aDocument) , mEvent(aEvent) { diff --git a/dom/base/nsReferencedElement.h b/dom/base/nsReferencedElement.h index 9380d78da2c3..730a19610058 100644 --- a/dom/base/nsReferencedElement.h +++ b/dom/base/nsReferencedElement.h @@ -129,12 +129,8 @@ private: { public: ChangeNotification(nsReferencedElement* aTarget, - Element* aFrom, - Element* aTo) - : mozilla::Runnable("nsReferencedElement::ChangeNotification") - , Notification(aTarget) - , mFrom(aFrom) - , mTo(aTo) + Element* aFrom, Element* aTo) + : Notification(aTarget), mFrom(aFrom), mTo(aTo) {} NS_DECL_ISUPPORTS_INHERITED diff --git a/dom/base/nsTextNode.cpp b/dom/base/nsTextNode.cpp index 7bf2cfa2510d..25c2d3525678 100644 --- a/dom/base/nsTextNode.cpp +++ b/dom/base/nsTextNode.cpp @@ -273,8 +273,7 @@ nsAttributeTextNode::AttributeChanged(nsIDocument* aDocument, // that if we get unbound while the event is up that's ok -- we'll just // have no grandparent when it fires, and will do nothing. void (nsAttributeTextNode::*update)() = &nsAttributeTextNode::UpdateText; - nsContentUtils::AddScriptRunner( - NewRunnableMethod("nsAttributeTextNode::AttributeChanged", this, update)); + nsContentUtils::AddScriptRunner(NewRunnableMethod(this, update)); } } diff --git a/dom/cache/Context.cpp b/dom/cache/Context.cpp index ea49046f0c67..66f56a8bcfe3 100644 --- a/dom/cache/Context.cpp +++ b/dom/cache/Context.cpp @@ -736,10 +736,8 @@ Context::ThreadsafeHandle::AllowToClose() // Dispatch is guaranteed to succeed here because we block shutdown until // all Contexts have been destroyed. - nsCOMPtr runnable = NewRunnableMethod( - "dom::cache::Context::ThreadsafeHandle::AllowToCloseOnOwningThread", - this, - &ThreadsafeHandle::AllowToCloseOnOwningThread); + nsCOMPtr runnable = + NewRunnableMethod(this, &ThreadsafeHandle::AllowToCloseOnOwningThread); MOZ_ALWAYS_SUCCEEDS( mOwningEventTarget->Dispatch(runnable.forget(), nsIThread::DISPATCH_NORMAL)); } @@ -754,11 +752,8 @@ Context::ThreadsafeHandle::InvalidateAndAllowToClose() // Dispatch is guaranteed to succeed here because we block shutdown until // all Contexts have been destroyed. - nsCOMPtr runnable = NewRunnableMethod( - "dom::cache::Context::ThreadsafeHandle::" - "InvalidateAndAllowToCloseOnOwningThread", - this, - &ThreadsafeHandle::InvalidateAndAllowToCloseOnOwningThread); + nsCOMPtr runnable = + NewRunnableMethod(this, &ThreadsafeHandle::InvalidateAndAllowToCloseOnOwningThread); MOZ_ALWAYS_SUCCEEDS( mOwningEventTarget->Dispatch(runnable.forget(), nsIThread::DISPATCH_NORMAL)); } diff --git a/dom/cache/Manager.cpp b/dom/cache/Manager.cpp index b06abb073686..357a8f0820e1 100644 --- a/dom/cache/Manager.cpp +++ b/dom/cache/Manager.cpp @@ -912,10 +912,7 @@ private: // here since we are guaranteed the Action will survive until // CompleteOnInitiatingThread is called. nsCOMPtr runnable = NewNonOwningRunnableMethod( - "dom::cache::Manager::CachePutAllAction::OnAsyncCopyComplete", - this, - &CachePutAllAction::OnAsyncCopyComplete, - aRv); + this, &CachePutAllAction::OnAsyncCopyComplete, aRv); MOZ_ALWAYS_SUCCEEDS( mTarget->Dispatch(runnable.forget(), nsIThread::DISPATCH_NORMAL)); } @@ -1769,8 +1766,7 @@ Manager::~Manager() // Don't spin the event loop in the destructor waiting for the thread to // shutdown. Defer this to the main thread, instead. - MOZ_ALWAYS_SUCCEEDS(NS_DispatchToMainThread(NewRunnableMethod("nsIThread::Shutdown", - ioThread, &nsIThread::Shutdown))); + MOZ_ALWAYS_SUCCEEDS(NS_DispatchToMainThread(NewRunnableMethod(ioThread, &nsIThread::Shutdown))); } void diff --git a/dom/cache/PrincipalVerifier.cpp b/dom/cache/PrincipalVerifier.cpp index be27134d2f43..c92db4e788c2 100644 --- a/dom/cache/PrincipalVerifier.cpp +++ b/dom/cache/PrincipalVerifier.cpp @@ -65,8 +65,7 @@ PrincipalVerifier::RemoveListener(Listener* aListener) PrincipalVerifier::PrincipalVerifier(Listener* aListener, PBackgroundParent* aActor, const PrincipalInfo& aPrincipalInfo) - : Runnable("dom::cache::PrincipalVerifier") - , mActor(BackgroundParent::GetContentParent(aActor)) + : mActor(BackgroundParent::GetContentParent(aActor)) , mPrincipalInfo(aPrincipalInfo) , mInitiatingEventTarget(GetCurrentThreadSerialEventTarget()) , mResult(NS_OK) diff --git a/dom/cache/ReadStream.cpp b/dom/cache/ReadStream.cpp index e78377e953d6..70e41b31eddf 100644 --- a/dom/cache/ReadStream.cpp +++ b/dom/cache/ReadStream.cpp @@ -132,8 +132,7 @@ class ReadStream::Inner::NoteClosedRunnable final : public CancelableRunnable { public: explicit NoteClosedRunnable(ReadStream::Inner* aStream) - : CancelableRunnable("dom::cache::ReadStream::Inner::NoteClosedRunnable") - , mStream(aStream) + : mStream(aStream) { } NS_IMETHOD Run() override @@ -168,8 +167,7 @@ class ReadStream::Inner::ForgetRunnable final : public CancelableRunnable { public: explicit ForgetRunnable(ReadStream::Inner* aStream) - : CancelableRunnable("dom::cache::ReadStream::Inner::ForgetRunnable") - , mStream(aStream) + : mStream(aStream) { } NS_IMETHOD Run() override diff --git a/dom/canvas/CanvasRenderingContext2D.cpp b/dom/canvas/CanvasRenderingContext2D.cpp index 55b3b6e8ab62..a1fff6e21ecf 100644 --- a/dom/canvas/CanvasRenderingContext2D.cpp +++ b/dom/canvas/CanvasRenderingContext2D.cpp @@ -1576,9 +1576,8 @@ CanvasRenderingContext2D::ScheduleStableStateCallback() mHasPendingStableStateCallback = true; nsContentUtils::RunInStableState( - NewRunnableMethod("dom::CanvasRenderingContext2D::OnStableState", - this, - &CanvasRenderingContext2D::OnStableState)); + NewRunnableMethod(this, &CanvasRenderingContext2D::OnStableState) + ); } void diff --git a/dom/canvas/ImageBitmap.cpp b/dom/canvas/ImageBitmap.cpp index 9af236548061..f6d5d86cf698 100644 --- a/dom/canvas/ImageBitmap.cpp +++ b/dom/canvas/ImageBitmap.cpp @@ -1076,8 +1076,7 @@ class FulfillImageBitmapPromiseTask final : public Runnable, { public: FulfillImageBitmapPromiseTask(Promise* aPromise, ImageBitmap* aImageBitmap) - : Runnable("dom::FulfillImageBitmapPromiseTask") - , FulfillImageBitmapPromise(aPromise, aImageBitmap) + : FulfillImageBitmapPromise(aPromise, aImageBitmap) { } @@ -1279,8 +1278,7 @@ public: nsIGlobalObject* aGlobal, Blob& aBlob, const Maybe& aCropRect) - : Runnable("dom::CreateImageBitmapFromBlobTask") - , CreateImageBitmapFromBlob(aPromise, aGlobal, aBlob, aCropRect) + :CreateImageBitmapFromBlob(aPromise, aGlobal, aBlob, aCropRect) { } @@ -1734,18 +1732,12 @@ class MapDataIntoBufferSourceTask final : public Runnable, { public: MapDataIntoBufferSourceTask(JSContext* aCx, - Promise* aPromise, - ImageBitmap* aImageBitmap, + Promise *aPromise, + ImageBitmap *aImageBitmap, const T& aBuffer, int32_t aOffset, ImageBitmapFormat aFormat) - : Runnable("dom::MapDataIntoBufferSourceTask") - , MapDataIntoBufferSource(aCx, - aPromise, - aImageBitmap, - aBuffer, - aOffset, - aFormat) + : MapDataIntoBufferSource(aCx, aPromise, aImageBitmap, aBuffer, aOffset, aFormat) { } diff --git a/dom/canvas/WebGLContext.cpp b/dom/canvas/WebGLContext.cpp index cf1a8ff55816..d8f998f7ebf4 100644 --- a/dom/canvas/WebGLContext.cpp +++ b/dom/canvas/WebGLContext.cpp @@ -1737,10 +1737,9 @@ class UpdateContextLossStatusTask : public CancelableRunnable RefPtr mWebGL; public: - explicit UpdateContextLossStatusTask(WebGLContext* webgl) - : CancelableRunnable("UpdateContextLossStatusTask") - , mWebGL(webgl) - { + explicit UpdateContextLossStatusTask(WebGLContext* webgl) + : mWebGL(webgl) + { } NS_IMETHOD Run() override { diff --git a/dom/canvas/WebGLQuery.cpp b/dom/canvas/WebGLQuery.cpp index f6cc7d54aac2..c7cdaddfe2fe 100644 --- a/dom/canvas/WebGLQuery.cpp +++ b/dom/canvas/WebGLQuery.cpp @@ -18,16 +18,13 @@ class AvailableRunnable final : public Runnable const RefPtr mQuery; public: - explicit AvailableRunnable(WebGLQuery* query) - : Runnable("AvailableRunnable") - , mQuery(query) - { - } + explicit AvailableRunnable(WebGLQuery* query) + : mQuery(query) + { } - NS_IMETHOD Run() override - { - mQuery->mCanBeAvailable = true; - return NS_OK; + NS_IMETHOD Run() override { + mQuery->mCanBeAvailable = true; + return NS_OK; } }; diff --git a/dom/events/AsyncEventDispatcher.cpp b/dom/events/AsyncEventDispatcher.cpp index 050c2cf49c15..1455edc55d9c 100644 --- a/dom/events/AsyncEventDispatcher.cpp +++ b/dom/events/AsyncEventDispatcher.cpp @@ -22,8 +22,7 @@ using namespace dom; AsyncEventDispatcher::AsyncEventDispatcher(EventTarget* aTarget, WidgetEvent& aEvent) - : CancelableRunnable("AsyncEventDispatcher") - , mTarget(aTarget) + : mTarget(aTarget) { MOZ_ASSERT(mTarget); RefPtr event = diff --git a/dom/events/AsyncEventDispatcher.h b/dom/events/AsyncEventDispatcher.h index a2109203e60c..ea17be9977dd 100644 --- a/dom/events/AsyncEventDispatcher.h +++ b/dom/events/AsyncEventDispatcher.h @@ -34,31 +34,25 @@ public: * the event is dispatched to it, otherwise the dispatch path starts * at the first chrome ancestor of that target. */ - AsyncEventDispatcher(nsINode* aTarget, - const nsAString& aEventType, - bool aBubbles, - bool aOnlyChromeDispatch) - : CancelableRunnable("AsyncEventDispatcher") - , mTarget(aTarget) + AsyncEventDispatcher(nsINode* aTarget, const nsAString& aEventType, + bool aBubbles, bool aOnlyChromeDispatch) + : mTarget(aTarget) , mEventType(aEventType) , mBubbles(aBubbles) , mOnlyChromeDispatch(aOnlyChromeDispatch) { } - AsyncEventDispatcher(dom::EventTarget* aTarget, - const nsAString& aEventType, + AsyncEventDispatcher(dom::EventTarget* aTarget, const nsAString& aEventType, bool aBubbles) - : CancelableRunnable("AsyncEventDispatcher") - , mTarget(aTarget) + : mTarget(aTarget) , mEventType(aEventType) , mBubbles(aBubbles) { } AsyncEventDispatcher(dom::EventTarget* aTarget, nsIDOMEvent* aEvent) - : CancelableRunnable("AsyncEventDispatcher") - , mTarget(aTarget) + : mTarget(aTarget) , mEvent(aEvent) { } diff --git a/dom/events/DataTransferItem.cpp b/dom/events/DataTransferItem.cpp index 36addf0d02fd..2bb8ed8ae150 100644 --- a/dom/events/DataTransferItem.cpp +++ b/dom/events/DataTransferItem.cpp @@ -446,10 +446,9 @@ DataTransferItem::GetAsString(FunctionStringCallback* aCallback, class GASRunnable final : public Runnable { public: - GASRunnable(FunctionStringCallback* aCallback, const nsAString& aStringData) - : mozilla::Runnable("GASRunnable") - , mCallback(aCallback) - , mStringData(aStringData) + GASRunnable(FunctionStringCallback* aCallback, + const nsAString& aStringData) + : mCallback(aCallback), mStringData(aStringData) {} NS_IMETHOD Run() override diff --git a/dom/events/EventStateManager.cpp b/dom/events/EventStateManager.cpp index c3add0a51c4e..9cddab077663 100644 --- a/dom/events/EventStateManager.cpp +++ b/dom/events/EventStateManager.cpp @@ -1412,12 +1412,9 @@ EventStateManager::CreateClickHoldTimer(nsPresContext* inPresContext, int32_t clickHoldDelay = Preferences::GetInt("ui.click_hold_context_menus.delay", 500); mClickHoldTimer->SetTarget(SystemGroup::EventTargetFor(TaskCategory::Other)); - mClickHoldTimer->InitWithNamedFuncCallback( - sClickHoldCallback, - this, - clickHoldDelay, - nsITimer::TYPE_ONE_SHOT, - "EventStateManager::CreateClickHoldTimer"); + mClickHoldTimer->InitWithFuncCallback(sClickHoldCallback, this, + clickHoldDelay, + nsITimer::TYPE_ONE_SHOT); } } // CreateClickHoldTimer diff --git a/dom/events/TextComposition.cpp b/dom/events/TextComposition.cpp index f17f2dc27a01..425737606ff9 100644 --- a/dom/events/TextComposition.cpp +++ b/dom/events/TextComposition.cpp @@ -712,13 +712,12 @@ TextComposition::HasEditor() const ******************************************************************************/ TextComposition::CompositionEventDispatcher::CompositionEventDispatcher( - TextComposition* aComposition, - nsINode* aEventTarget, - EventMessage aEventMessage, - const nsAString& aData, - bool aIsSynthesizedEvent) - : Runnable("TextComposition::CompositionEventDispatcher") - , mTextComposition(aComposition) + TextComposition* aComposition, + nsINode* aEventTarget, + EventMessage aEventMessage, + const nsAString& aData, + bool aIsSynthesizedEvent) + : mTextComposition(aComposition) , mEventTarget(aEventTarget) , mData(aData) , mEventMessage(aEventMessage) diff --git a/dom/events/TextComposition.h b/dom/events/TextComposition.h index 4ca3fd0b35bd..1925a1c47d3d 100644 --- a/dom/events/TextComposition.h +++ b/dom/events/TextComposition.h @@ -433,9 +433,7 @@ private: EventMessage mEventMessage; bool mIsSynthesizedEvent; - CompositionEventDispatcher() - : Runnable("TextComposition::CompositionEventDispatcher") - , mIsSynthesizedEvent(false){}; + CompositionEventDispatcher() : mIsSynthesizedEvent(false) {}; }; /** diff --git a/dom/events/WheelHandlingHelper.cpp b/dom/events/WheelHandlingHelper.cpp index 4f773009295d..301c1803f4c2 100644 --- a/dom/events/WheelHandlingHelper.cpp +++ b/dom/events/WheelHandlingHelper.cpp @@ -332,11 +332,8 @@ WheelTransaction::SetTimeout() } sTimer->Cancel(); DebugOnly rv = - sTimer->InitWithNamedFuncCallback(OnTimeout, - nullptr, - GetTimeoutTime(), - nsITimer::TYPE_ONE_SHOT, - "WheelTransaction::SetTimeout"); + sTimer->InitWithFuncCallback(OnTimeout, nullptr, GetTimeoutTime(), + nsITimer::TYPE_ONE_SHOT); NS_WARNING_ASSERTION(NS_SUCCEEDED(rv), "nsITimer::InitWithFuncCallback failed"); } diff --git a/dom/fetch/Fetch.cpp b/dom/fetch/Fetch.cpp index f35a65623c41..08f64e95f83c 100644 --- a/dom/fetch/Fetch.cpp +++ b/dom/fetch/Fetch.cpp @@ -73,8 +73,7 @@ class FetchSignalProxy final : public FetchSignal::Follower public: explicit FetchSignalProxyRunnable(FetchSignalProxy* aProxy) - : Runnable("dom::FetchSignalProxy::FetchSignalProxyRunnable") - , mProxy(aProxy) + : mProxy(aProxy) {} NS_IMETHOD @@ -263,8 +262,7 @@ class MainThreadFetchRunnable : public Runnable public: MainThreadFetchRunnable(WorkerFetchResolver* aResolver, InternalRequest* aRequest) - : Runnable("dom::MainThreadFetchRunnable") - , mResolver(aResolver) + : mResolver(aResolver) , mRequest(aRequest) { MOZ_ASSERT(mResolver); @@ -1051,8 +1049,7 @@ class BeginConsumeBodyRunnable final : public Runnable FetchBody* mFetchBody; public: explicit BeginConsumeBodyRunnable(FetchBody* aBody) - : Runnable("dom::BeginConsumeBodyRunnable") - , mFetchBody(aBody) + : mFetchBody(aBody) { } NS_IMETHOD diff --git a/dom/fetch/FetchDriver.cpp b/dom/fetch/FetchDriver.cpp index 8963f76ddc21..4fccb249d093 100644 --- a/dom/fetch/FetchDriver.cpp +++ b/dom/fetch/FetchDriver.cpp @@ -643,8 +643,7 @@ class DataAvailableRunnable final : public Runnable public: explicit DataAvailableRunnable(FetchDriverObserver* aObserver) - : Runnable("dom::DataAvailableRunnable") - , mObserver(aObserver) + : mObserver(aObserver) { MOZ_ASSERT(aObserver); } diff --git a/dom/file/MutableBlobStorage.cpp b/dom/file/MutableBlobStorage.cpp index ee1e2db9a4ba..fb5f0f51c742 100644 --- a/dom/file/MutableBlobStorage.cpp +++ b/dom/file/MutableBlobStorage.cpp @@ -31,8 +31,7 @@ public: MutableBlobStorageCallback* aCallback, Blob* aBlob, nsresult aRv) - : Runnable("dom::BlobCreationDoneRunnable") - , mBlobStorage(aBlobStorage) + : mBlobStorage(aBlobStorage) , mCallback(aCallback) , mBlob(aBlob) , mRv(aRv) @@ -80,8 +79,7 @@ class FileCreatedRunnable final : public Runnable { public: FileCreatedRunnable(MutableBlobStorage* aBlobStorage, PRFileDesc* aFD) - : Runnable("dom::FileCreatedRunnable") - , mBlobStorage(aBlobStorage) + : mBlobStorage(aBlobStorage) , mFD(aFD) { MOZ_ASSERT(aBlobStorage); @@ -116,8 +114,7 @@ class CreateTemporaryFileRunnable final : public Runnable { public: explicit CreateTemporaryFileRunnable(MutableBlobStorage* aBlobStorage) - : Runnable("dom::CreateTemporaryFileRunnable") - , mBlobStorage(aBlobStorage) + : mBlobStorage(aBlobStorage) { MOZ_ASSERT(NS_IsMainThread()); MOZ_ASSERT(XRE_IsParentProcess()); @@ -151,8 +148,7 @@ class ErrorPropagationRunnable final : public Runnable { public: ErrorPropagationRunnable(MutableBlobStorage* aBlobStorage, nsresult aRv) - : Runnable("dom::ErrorPropagationRunnable") - , mBlobStorage(aBlobStorage) + : mBlobStorage(aBlobStorage) , mRv(aRv) {} @@ -221,12 +217,9 @@ public: } private: - WriteRunnable(MutableBlobStorage* aBlobStorage, - PRFileDesc* aFD, - void* aData, - uint32_t aLength) - : Runnable("dom::WriteRunnable") - , mBlobStorage(aBlobStorage) + WriteRunnable(MutableBlobStorage* aBlobStorage, PRFileDesc* aFD, + void* aData, uint32_t aLength) + : mBlobStorage(aBlobStorage) , mFD(aFD) , mData(aData) , mLength(aLength) @@ -254,8 +247,7 @@ class CloseFileRunnable final : public Runnable { public: explicit CloseFileRunnable(PRFileDesc* aFD) - : Runnable("dom::CloseFileRunnable") - , mFD(aFD) + : mFD(aFD) {} NS_IMETHOD @@ -287,8 +279,7 @@ public: already_AddRefed aParent, const nsACString& aContentType, already_AddRefed aCallback) - : Runnable("dom::CreateBlobRunnable") - , mBlobStorage(aBlobStorage) + : mBlobStorage(aBlobStorage) , mParent(aParent) , mContentType(aContentType) , mCallback(aCallback) @@ -336,8 +327,7 @@ public: nsISupports* aParent, const nsACString& aContentType, MutableBlobStorageCallback* aCallback) - : Runnable("dom::LastRunnable") - , mBlobStorage(aBlobStorage) + : mBlobStorage(aBlobStorage) , mParent(aParent) , mContentType(aContentType) , mCallback(aCallback) diff --git a/dom/file/ipc/IPCBlobInputStream.cpp b/dom/file/ipc/IPCBlobInputStream.cpp index b0afe07bfb61..2bd24d1c53f5 100644 --- a/dom/file/ipc/IPCBlobInputStream.cpp +++ b/dom/file/ipc/IPCBlobInputStream.cpp @@ -46,8 +46,7 @@ public: private: CallbackRunnable(nsIInputStreamCallback* aCallback, IPCBlobInputStream* aStream) - : CancelableRunnable("dom::CallbackRunnable") - , mCallback(aCallback) + : mCallback(aCallback) , mStream(aStream) { MOZ_ASSERT(mCallback); diff --git a/dom/file/ipc/IPCBlobInputStreamChild.cpp b/dom/file/ipc/IPCBlobInputStreamChild.cpp index 06098a0b37ce..4d107d2f0e58 100644 --- a/dom/file/ipc/IPCBlobInputStreamChild.cpp +++ b/dom/file/ipc/IPCBlobInputStreamChild.cpp @@ -25,8 +25,7 @@ class ShutdownRunnable final : public CancelableRunnable { public: explicit ShutdownRunnable(IPCBlobInputStreamChild* aActor) - : CancelableRunnable("dom::ShutdownRunnable") - , mActor(aActor) + : mActor(aActor) {} NS_IMETHOD @@ -46,8 +45,7 @@ class StreamNeededRunnable final : public CancelableRunnable { public: explicit StreamNeededRunnable(IPCBlobInputStreamChild* aActor) - : CancelableRunnable("dom::StreamNeededRunnable") - , mActor(aActor) + : mActor(aActor) {} NS_IMETHOD @@ -72,8 +70,7 @@ class StreamReadyRunnable final : public CancelableRunnable public: StreamReadyRunnable(IPCBlobInputStream* aDestinationStream, nsIInputStream* aCreatedStream) - : CancelableRunnable("dom::StreamReadyRunnable") - , mDestinationStream(aDestinationStream) + : mDestinationStream(aDestinationStream) , mCreatedStream(aCreatedStream) { MOZ_ASSERT(mDestinationStream); @@ -105,10 +102,8 @@ public: class ReleaseWorkerHolderRunnable final : public CancelableRunnable { public: - explicit ReleaseWorkerHolderRunnable( - UniquePtr&& aWorkerHolder) - : CancelableRunnable("dom::ReleaseWorkerHolderRunnable") - , mWorkerHolder(Move(aWorkerHolder)) + explicit ReleaseWorkerHolderRunnable(UniquePtr&& aWorkerHolder) + : mWorkerHolder(Move(aWorkerHolder)) {} NS_IMETHOD diff --git a/dom/file/ipc/IPCBlobInputStreamThread.cpp b/dom/file/ipc/IPCBlobInputStreamThread.cpp index 6c40453a6f61..29090da92ef1 100644 --- a/dom/file/ipc/IPCBlobInputStreamThread.cpp +++ b/dom/file/ipc/IPCBlobInputStreamThread.cpp @@ -27,8 +27,6 @@ bool gShutdownHasStarted = false; class ThreadInitializeRunnable final : public Runnable { public: - ThreadInitializeRunnable() : Runnable("dom::ThreadInitializeRunnable") {} - NS_IMETHOD Run() override { @@ -46,8 +44,7 @@ public: NS_DECL_ISUPPORTS_INHERITED explicit MigrateActorRunnable(IPCBlobInputStreamChild* aActor) - : Runnable("dom::MigrateActorRunnable") - , mActor(aActor) + : mActor(aActor) { MOZ_ASSERT(mActor); } diff --git a/dom/filehandle/ActorsParent.cpp b/dom/filehandle/ActorsParent.cpp index 3fbff0611c0f..9895aeef38f9 100644 --- a/dom/filehandle/ActorsParent.cpp +++ b/dom/filehandle/ActorsParent.cpp @@ -588,8 +588,7 @@ public: ProgressRunnable(CopyFileHandleOp* aCopyFileHandleOp, uint64_t aProgress, uint64_t aProgressMax) - : Runnable("dom::CopyFileHandleOp::ProgressRunnable") - , mCopyFileHandleOp(aCopyFileHandleOp) + : mCopyFileHandleOp(aCopyFileHandleOp) , mProgress(aProgress) , mProgressMax(aProgressMax) { } @@ -1082,11 +1081,10 @@ FileHandleThreadPool::MaybeFireCallback(StoragesCompleteCallback* aCallback) return true; } -FileHandleThreadPool::FileHandleQueue::FileHandleQueue( - FileHandleThreadPool* aFileHandleThreadPool, - FileHandle* aFileHandle) - : Runnable("dom::FileHandleThreadPool::FileHandleQueue") - , mOwningFileHandleThreadPool(aFileHandleThreadPool) +FileHandleThreadPool:: +FileHandleQueue::FileHandleQueue(FileHandleThreadPool* aFileHandleThreadPool, + FileHandle* aFileHandle) + : mOwningFileHandleThreadPool(aFileHandleThreadPool) , mFileHandle(aFileHandle) , mShouldFinish(false) { diff --git a/dom/filesystem/FileSystemRequestParent.cpp b/dom/filesystem/FileSystemRequestParent.cpp index 4f234a03fd9f..a7ff9ba39baf 100644 --- a/dom/filesystem/FileSystemRequestParent.cpp +++ b/dom/filesystem/FileSystemRequestParent.cpp @@ -82,8 +82,7 @@ public: FileSystemRequestParent* aActor, FileSystemTaskParentBase* aTask, const nsAString& aPath) - : Runnable("dom::CheckPermissionRunnable") - , mContentParent(aParent) + : mContentParent(aParent) , mActor(aActor) , mTask(aTask) , mPath(aPath) diff --git a/dom/filesystem/FileSystemTaskBase.cpp b/dom/filesystem/FileSystemTaskBase.cpp index 307e8648993c..4b28529d7518 100644 --- a/dom/filesystem/FileSystemTaskBase.cpp +++ b/dom/filesystem/FileSystemTaskBase.cpp @@ -231,12 +231,10 @@ FileSystemTaskChildBase::SetError(const nsresult& aErrorValue) * FileSystemTaskParentBase class */ -FileSystemTaskParentBase::FileSystemTaskParentBase( - FileSystemBase* aFileSystem, - const FileSystemParams& aParam, - FileSystemRequestParent* aParent) - : Runnable("dom::FileSystemTaskParentBase") - , mErrorValue(NS_OK) +FileSystemTaskParentBase::FileSystemTaskParentBase(FileSystemBase* aFileSystem, + const FileSystemParams& aParam, + FileSystemRequestParent* aParent) + : mErrorValue(NS_OK) , mFileSystem(aFileSystem) , mRequestParent(aParent) , mBackgroundEventTarget(GetCurrentThreadEventTarget()) diff --git a/dom/filesystem/GetFilesHelper.cpp b/dom/filesystem/GetFilesHelper.cpp index 7d77e241d2b6..f2e0d5333c9b 100644 --- a/dom/filesystem/GetFilesHelper.cpp +++ b/dom/filesystem/GetFilesHelper.cpp @@ -61,7 +61,6 @@ private: nsTArray>& aCallbacks, Sequence>& aFiles, already_AddRefed aGlobal) - : Runnable("dom::ReleaseRunnable") { mPromises.SwapElements(aPromises); mCallbacks.SwapElements(aCallbacks); diff --git a/dom/flyweb/HttpServer.cpp b/dom/flyweb/HttpServer.cpp index 776d5b0ca43e..83ad916294ea 100644 --- a/dom/flyweb/HttpServer.cpp +++ b/dom/flyweb/HttpServer.cpp @@ -89,9 +89,10 @@ void HttpServer::NotifyStarted(nsresult aStatus) { RefPtr listener = mListener; - nsCOMPtr event = NS_NewRunnableFunction( - "dom::HttpServer::NotifyStarted", - [listener, aStatus]() { listener->OnServerStarted(aStatus); }); + nsCOMPtr event = NS_NewRunnableFunction([listener, aStatus] () + { + listener->OnServerStarted(aStatus); + }); NS_DispatchToCurrentThread(event); } @@ -287,12 +288,12 @@ HttpServer::TransportProvider::MaybeNotify() { if (mTransport && mListener) { RefPtr self = this; - nsCOMPtr event = NS_NewRunnableFunction( - "dom::HttpServer::TransportProvider::MaybeNotify", [self, this]() { - DebugOnly rv = - mListener->OnTransportAvailable(mTransport, mInput, mOutput); - MOZ_ASSERT(NS_SUCCEEDED(rv)); - }); + nsCOMPtr event = NS_NewRunnableFunction([self, this] () + { + DebugOnly rv = mListener->OnTransportAvailable(mTransport, + mInput, mOutput); + MOZ_ASSERT(NS_SUCCEEDED(rv)); + }); NS_DispatchToCurrentThread(event); } } @@ -632,9 +633,11 @@ HttpServer::Connection::ConsumeLine(const char* aBuffer, RefPtr listener = mServer->mListener; RefPtr request = mPendingWebSocketRequest; - nsCOMPtr event = NS_NewRunnableFunction( - "dom::HttpServer::Connection::ConsumeLine", - [listener, request]() { listener->OnWebSocket(request); }); + nsCOMPtr event = + NS_NewRunnableFunction([listener, request] () + { + listener->OnWebSocket(request); + }); NS_DispatchToCurrentThread(event); return NS_OK; @@ -699,9 +702,11 @@ HttpServer::Connection::ConsumeLine(const char* aBuffer, RefPtr listener = mServer->mListener; RefPtr request = mPendingReq.forget(); - nsCOMPtr event = NS_NewRunnableFunction( - "dom::HttpServer::Connection::ConsumeLine", - [listener, request]() { listener->OnRequest(request); }); + nsCOMPtr event = + NS_NewRunnableFunction([listener, request] () + { + listener->OnRequest(request); + }); NS_DispatchToCurrentThread(event); mPendingReqVersion = 0; diff --git a/dom/gamepad/cocoa/CocoaGamepad.cpp b/dom/gamepad/cocoa/CocoaGamepad.cpp index 76208303f811..9520ef454e84 100644 --- a/dom/gamepad/cocoa/CocoaGamepad.cpp +++ b/dom/gamepad/cocoa/CocoaGamepad.cpp @@ -235,7 +235,7 @@ class DarwinGamepadServiceStartupRunnable final : public Runnable DarwinGamepadService MOZ_NON_OWNING_REF *mService; public: explicit DarwinGamepadServiceStartupRunnable(DarwinGamepadService *service) - : Runnable("DarwinGamepadServiceStartupRunnable"), mService(service) {} + : mService(service) {} NS_IMETHOD Run() override { MOZ_ASSERT(mService); diff --git a/dom/gamepad/ipc/GamepadEventChannelChild.cpp b/dom/gamepad/ipc/GamepadEventChannelChild.cpp index efeb11505794..a7e4e4ddc87c 100644 --- a/dom/gamepad/ipc/GamepadEventChannelChild.cpp +++ b/dom/gamepad/ipc/GamepadEventChannelChild.cpp @@ -12,18 +12,15 @@ namespace { class GamepadUpdateRunnable final : public Runnable { public: - explicit GamepadUpdateRunnable(const GamepadChangeEvent& aGamepadEvent) - : Runnable("dom::GamepadUpdateRunnable") - , mEvent(aGamepadEvent) - { - } - NS_IMETHOD Run() override - { - RefPtr svc(GamepadManager::GetService()); - if (svc) { - svc->Update(mEvent); - } - return NS_OK; + explicit GamepadUpdateRunnable(const GamepadChangeEvent& aGamepadEvent) + : mEvent(aGamepadEvent) {} + NS_IMETHOD Run() override + { + RefPtr svc(GamepadManager::GetService()); + if (svc) { + svc->Update(mEvent); + } + return NS_OK; } protected: GamepadChangeEvent mEvent; diff --git a/dom/gamepad/ipc/GamepadEventChannelParent.cpp b/dom/gamepad/ipc/GamepadEventChannelParent.cpp index c50ed7e68437..9af3b8a3707b 100644 --- a/dom/gamepad/ipc/GamepadEventChannelParent.cpp +++ b/dom/gamepad/ipc/GamepadEventChannelParent.cpp @@ -20,13 +20,12 @@ class SendGamepadUpdateRunnable final : public Runnable RefPtr mParent; GamepadChangeEvent mEvent; public: - SendGamepadUpdateRunnable(GamepadEventChannelParent* aParent, - GamepadChangeEvent aEvent) - : Runnable("dom::SendGamepadUpdateRunnable") - , mEvent(aEvent) - { - MOZ_ASSERT(aParent); - mParent = aParent; + SendGamepadUpdateRunnable(GamepadEventChannelParent* aParent, + GamepadChangeEvent aEvent) + : mEvent(aEvent) + { + MOZ_ASSERT(aParent); + mParent = aParent; } NS_IMETHOD Run() override { diff --git a/dom/gamepad/windows/WindowsGamepad.cpp b/dom/gamepad/windows/WindowsGamepad.cpp index bfe712b962c8..6a8b595e248b 100644 --- a/dom/gamepad/windows/WindowsGamepad.cpp +++ b/dom/gamepad/windows/WindowsGamepad.cpp @@ -1002,9 +1002,7 @@ GamepadWindowProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) class StartWindowsGamepadServiceRunnable final : public Runnable { public: - StartWindowsGamepadServiceRunnable() - : Runnable("StartWindowsGamepadServiceRunnable") - {} + StartWindowsGamepadServiceRunnable() {} NS_IMETHOD Run() override { @@ -1042,9 +1040,7 @@ private: class StopWindowsGamepadServiceRunnable final : public Runnable { public: - StopWindowsGamepadServiceRunnable() - : Runnable("StopWindowsGamepadServiceRunnable") - {} + StopWindowsGamepadServiceRunnable() {} NS_IMETHOD Run() override { diff --git a/dom/geolocation/nsGeolocation.cpp b/dom/geolocation/nsGeolocation.cpp index 50b3dd9620ff..2440015b51bd 100644 --- a/dom/geolocation/nsGeolocation.cpp +++ b/dom/geolocation/nsGeolocation.cpp @@ -147,8 +147,7 @@ class RequestPromptEvent : public Runnable { public: RequestPromptEvent(nsGeolocationRequest* aRequest, nsWeakPtr aWindow) - : mozilla::Runnable("RequestPromptEvent") - , mRequest(aRequest) + : mRequest(aRequest) , mWindow(aWindow) { } @@ -169,9 +168,8 @@ class RequestAllowEvent : public Runnable { public: RequestAllowEvent(int allow, nsGeolocationRequest* request) - : mozilla::Runnable("RequestAllowEvent") - , mAllow(allow) - , mRequest(request) + : mAllow(allow), + mRequest(request) { } @@ -194,9 +192,8 @@ class RequestSendLocationEvent : public Runnable public: RequestSendLocationEvent(nsIDOMGeoPosition* aPosition, nsGeolocationRequest* aRequest) - : mozilla::Runnable("RequestSendLocationEvent") - , mPosition(aPosition) - , mRequest(aRequest) + : mPosition(aPosition), + mRequest(aRequest) { } diff --git a/dom/html/HTMLCanvasElement.cpp b/dom/html/HTMLCanvasElement.cpp index d1f6f491ff65..5daf4b67935e 100644 --- a/dom/html/HTMLCanvasElement.cpp +++ b/dom/html/HTMLCanvasElement.cpp @@ -241,10 +241,8 @@ HTMLCanvasPrintState::Done() if (mCanvas) { mCanvas->InvalidateCanvas(); } - RefPtr> doneEvent = - NewRunnableMethod("dom::HTMLCanvasPrintState::NotifyDone", - this, - &HTMLCanvasPrintState::NotifyDone); + RefPtr > doneEvent = + NewRunnableMethod(this, &HTMLCanvasPrintState::NotifyDone); if (NS_SUCCEEDED(NS_DispatchToCurrentThread(doneEvent))) { mPendingNotify = true; } @@ -523,10 +521,8 @@ HTMLCanvasElement::DispatchPrintCallback(nsITimerCallback* aCallback) } mPrintState = new HTMLCanvasPrintState(this, mCurrentContext, aCallback); - RefPtr> renderEvent = - NewRunnableMethod("dom::HTMLCanvasElement::CallPrintCallback", - this, - &HTMLCanvasElement::CallPrintCallback); + RefPtr > renderEvent = + NewRunnableMethod(this, &HTMLCanvasElement::CallPrintCallback); return OwnerDoc()->Dispatch("HTMLCanvasElement::CallPrintCallback", TaskCategory::Other, renderEvent.forget()); @@ -848,16 +844,13 @@ HTMLCanvasElement::ToBlob(JSContext* aCx, // According to spec, blob should return null if either its horizontal // dimension or its vertical dimension is zero. See link below. // https://html.spec.whatwg.org/multipage/scripting.html#dom-canvas-toblob - OwnerDoc()->Dispatch( - "FireNullBlobEvent", - TaskCategory::Other, - NewRunnableMethod( - "dom::HTMLCanvasElement::ToBlob", - &aCallback, - static_cast( - &BlobCallback::Call), - nullptr, - nullptr)); + OwnerDoc()->Dispatch("FireNullBlobEvent", + TaskCategory::Other, + NewRunnableMethod( + &aCallback, + static_cast(&BlobCallback::Call), + nullptr, nullptr)); return; } @@ -1360,8 +1353,7 @@ HTMLCanvasElement::OnVisibilityChange() { public: explicit Runnable(AsyncCanvasRenderer* aRenderer) - : mozilla::CancelableRunnable("Runnable") - , mRenderer(aRenderer) + : mRenderer(aRenderer) {} NS_IMETHOD Run() override @@ -1403,8 +1395,7 @@ HTMLCanvasElement::OnMemoryPressure() { public: explicit Runnable(AsyncCanvasRenderer* aRenderer) - : mozilla::CancelableRunnable("Runnable") - , mRenderer(aRenderer) + : mRenderer(aRenderer) {} NS_IMETHOD Run() override diff --git a/dom/html/HTMLFormElement.h b/dom/html/HTMLFormElement.h index 74a993be7c19..284d3a6925b7 100644 --- a/dom/html/HTMLFormElement.h +++ b/dom/html/HTMLFormElement.h @@ -426,8 +426,7 @@ protected: class RemoveElementRunnable : public Runnable { public: explicit RemoveElementRunnable(HTMLFormElement* aForm) - : Runnable("dom::HTMLFormElement::RemoveElementRunnable") - , mForm(aForm) + : mForm(aForm) {} NS_IMETHOD Run() override { diff --git a/dom/html/HTMLImageElement.cpp b/dom/html/HTMLImageElement.cpp index 13151bdc303c..de50d2250008 100644 --- a/dom/html/HTMLImageElement.cpp +++ b/dom/html/HTMLImageElement.cpp @@ -79,11 +79,9 @@ namespace dom { class ImageLoadTask : public Runnable { public: - ImageLoadTask(HTMLImageElement* aElement, - bool aAlwaysLoad, + ImageLoadTask(HTMLImageElement *aElement, bool aAlwaysLoad, bool aUseUrgentStartForChannel) - : Runnable("dom::ImageLoadTask") - , mElement(aElement) + : mElement(aElement) , mAlwaysLoad(aAlwaysLoad) , mUseUrgentStartForChannel(aUseUrgentStartForChannel) { @@ -678,10 +676,7 @@ HTMLImageElement::BindToTree(nsIDocument* aDocument, nsIContent* aParent, if (LoadingEnabled() && OwnerDoc()->IsCurrentActiveDocument()) { nsContentUtils::AddScriptRunner( - NewRunnableMethod("dom::HTMLImageElement::MaybeLoadImage", - this, - &HTMLImageElement::MaybeLoadImage, - false)); + NewRunnableMethod(this, &HTMLImageElement::MaybeLoadImage, false)); } } @@ -774,14 +769,9 @@ HTMLImageElement::NodeInfoChanged(nsIDocument* aOldDoc) // Bug 1076583 - We still behave synchronously in the non-responsive case nsContentUtils::AddScriptRunner( (InResponsiveMode()) - ? NewRunnableMethod("dom::HTMLImageElement::QueueImageLoadTask", - this, - &HTMLImageElement::QueueImageLoadTask, - true) - : NewRunnableMethod("dom::HTMLImageElement::MaybeLoadImage", - this, - &HTMLImageElement::MaybeLoadImage, - true)); + ? NewRunnableMethod(this, &HTMLImageElement::QueueImageLoadTask, true) + : NewRunnableMethod(this, &HTMLImageElement::MaybeLoadImage, true) + ); } } @@ -904,10 +894,7 @@ HTMLImageElement::CopyInnerTo(Element* aDest, bool aPreallocateChildren) mUseUrgentStartForChannel = EventStateManager::IsHandlingUserInput(); nsContentUtils::AddScriptRunner( - NewRunnableMethod("dom::HTMLImageElement::MaybeLoadImage", - dest, - &HTMLImageElement::MaybeLoadImage, - false)); + NewRunnableMethod(dest, &HTMLImageElement::MaybeLoadImage, false)); } } diff --git a/dom/html/HTMLInputElement.cpp b/dom/html/HTMLInputElement.cpp index 50f79e45284e..ee4f8d4ce89a 100644 --- a/dom/html/HTMLInputElement.cpp +++ b/dom/html/HTMLInputElement.cpp @@ -4876,9 +4876,7 @@ HTMLInputElement::BindToTree(nsIDocument* aDocument, nsIContent* aParent, ClearBrokenState(); RemoveStatesSilently(NS_EVENT_STATE_BROKEN); nsContentUtils::AddScriptRunner( - NewRunnableMethod("dom::HTMLInputElement::MaybeLoadImage", - this, - &HTMLInputElement::MaybeLoadImage)); + NewRunnableMethod(this, &HTMLInputElement::MaybeLoadImage)); } } diff --git a/dom/html/HTMLLinkElement.cpp b/dom/html/HTMLLinkElement.cpp index feba468c9196..a28d5f57c172 100644 --- a/dom/html/HTMLLinkElement.cpp +++ b/dom/html/HTMLLinkElement.cpp @@ -171,8 +171,7 @@ HTMLLinkElement::BindToTree(nsIDocument* aDocument, nsIContent* aParent, } void (HTMLLinkElement::*update)() = &HTMLLinkElement::UpdateStyleSheetInternal; - nsContentUtils::AddScriptRunner( - NewRunnableMethod("dom::HTMLLinkElement::BindToTree", this, update)); + nsContentUtils::AddScriptRunner(NewRunnableMethod(this, update)); CreateAndDispatchEvent(aDocument, NS_LITERAL_STRING("DOMLinkAdded")); diff --git a/dom/html/HTMLMediaElement.cpp b/dom/html/HTMLMediaElement.cpp index 16da96903dde..3544bc57a8da 100644 --- a/dom/html/HTMLMediaElement.cpp +++ b/dom/html/HTMLMediaElement.cpp @@ -232,12 +232,10 @@ RejectPromises(const nsTArray>& aPromises, nsresult aError) class nsMediaEvent : public Runnable { public: - explicit nsMediaEvent(HTMLMediaElement* aElement) - : Runnable("dom::nsMediaEvent") - , mElement(aElement) - , mLoadID(mElement->GetCurrentLoadID()) - { - } + + explicit nsMediaEvent(HTMLMediaElement* aElement) : + mElement(aElement), + mLoadID(mElement->GetCurrentLoadID()) {} ~nsMediaEvent() {} NS_IMETHOD Run() = 0; @@ -407,11 +405,9 @@ public: for (VideoSegment::ConstChunkIterator c(video); !c.IsEnded(); c.Next()) { if (c->mFrame.GetIntrinsicSize() != gfx::IntSize(0,0)) { mInitialSizeFound = true; - nsCOMPtr event = NewRunnableMethod( - "dom::HTMLMediaElement::StreamSizeListener::ReceivedSize", - this, - &StreamSizeListener::ReceivedSize, - c->mFrame.GetIntrinsicSize()); + nsCOMPtr event = + NewRunnableMethod(this, &StreamSizeListener::ReceivedSize, + c->mFrame.GetIntrinsicSize()); // This is fine to dispatch straight to main thread (instead of via // ...AfterStreamUpdate()) since it reflects state of the element, // not the stream. Events reflecting stream or track state should be @@ -974,26 +970,24 @@ private: } uint64_t windowID = mAudioChannelAgent->WindowID(); - NS_DispatchToMainThread(NS_NewRunnableFunction( - "dom::HTMLMediaElement::AudioChannelAgentCallback::" - "MaybeNotifyMediaResumed", - [windowID]() -> void { - nsCOMPtr observerService = - services::GetObserverService(); - if (NS_WARN_IF(!observerService)) { - return; - } + NS_DispatchToMainThread(NS_NewRunnableFunction([windowID]() -> void { + nsCOMPtr observerService = + services::GetObserverService(); + if (NS_WARN_IF(!observerService)) { + return; + } - nsCOMPtr wrapper = - do_CreateInstance(NS_SUPPORTS_PRUINT64_CONTRACTID); - if (NS_WARN_IF(!wrapper)) { - return; - } + nsCOMPtr wrapper = + do_CreateInstance(NS_SUPPORTS_PRUINT64_CONTRACTID); + if (NS_WARN_IF(!wrapper)) { + return; + } - wrapper->SetData(windowID); - observerService->NotifyObservers( - wrapper, "media-playback-resumed", u"active"); - })); + wrapper->SetData(windowID); + observerService->NotifyObservers(wrapper, + "media-playback-resumed", + u"active"); + })); } bool @@ -4096,12 +4090,8 @@ HTMLMediaElement::WakeLockBoolWrapper::UpdateWakeLock() int timeout = Preferences::GetInt("media.wakelock_timeout", 2000); mTimer = do_CreateInstance("@mozilla.org/timer;1"); if (mTimer) { - mTimer->InitWithNamedFuncCallback( - TimerCallback, - this, - timeout, - nsITimer::TYPE_ONE_SHOT, - "dom::HTMLMediaElement::WakeLockBoolWrapper::UpdateWakeLock"); + mTimer->InitWithFuncCallback(TimerCallback, this, timeout, + nsITimer::TYPE_ONE_SHOT); } } } @@ -4541,12 +4531,11 @@ void HTMLMediaElement::UnbindFromTree(bool aDeep, NotifyDecoderActivityChanges(); RefPtr self(this); - nsCOMPtr task = - NS_NewRunnableFunction("dom::HTMLMediaElement::UnbindFromTree", [self]() { - if (self->mUnboundFromTree) { - self->Pause(); - } - }); + nsCOMPtr task = NS_NewRunnableFunction([self] () { + if (self->mUnboundFromTree) { + self->Pause(); + } + }); RunInStableState(task); } @@ -4855,15 +4844,9 @@ public: { nsCOMPtr event; if (aBlocked == BLOCKED) { - event = NewRunnableMethod( - "dom::HTMLMediaElement::StreamListener::DoNotifyBlocked", - this, - &StreamListener::DoNotifyBlocked); + event = NewRunnableMethod(this, &StreamListener::DoNotifyBlocked); } else { - event = NewRunnableMethod( - "dom::HTMLMediaElement::StreamListener::DoNotifyUnblocked", - this, - &StreamListener::DoNotifyUnblocked); + event = NewRunnableMethod(this, &StreamListener::DoNotifyUnblocked); } aGraph->DispatchToMainThreadAfterStreamStateUpdate(mAbstractMainThread, event.forget()); @@ -4873,10 +4856,7 @@ public: MutexAutoLock lock(mMutex); aGraph->DispatchToMainThreadAfterStreamStateUpdate( mAbstractMainThread, - NewRunnableMethod( - "dom::HTMLMediaElement::StreamListener::DoNotifyHaveCurrentData", - this, - &StreamListener::DoNotifyHaveCurrentData)); + NewRunnableMethod(this, &StreamListener::DoNotifyHaveCurrentData)); } virtual void NotifyOutput(MediaStreamGraph* aGraph, GraphTime aCurrentTime) override @@ -4887,9 +4867,7 @@ public: mPendingNotifyOutput = true; aGraph->DispatchToMainThreadAfterStreamStateUpdate( mAbstractMainThread, - NewRunnableMethod("dom::HTMLMediaElement::StreamListener::DoNotifyOutput", - this, - &StreamListener::DoNotifyOutput)); + NewRunnableMethod(this, &StreamListener::DoNotifyOutput)); } private: @@ -6318,9 +6296,7 @@ void HTMLMediaElement::AddRemoveSelfReference() // Dispatch Release asynchronously so that we don't destroy this object // inside a call stack of method calls on this object nsCOMPtr event = - NewRunnableMethod("dom::HTMLMediaElement::DoRemoveSelfReference", - this, - &HTMLMediaElement::DoRemoveSelfReference); + NewRunnableMethod(this, &HTMLMediaElement::DoRemoveSelfReference); NS_DispatchToMainThread(event); } } @@ -7517,9 +7493,9 @@ HTMLMediaElement::AsyncResolveSeekDOMPromiseIfExists() MOZ_ASSERT(NS_IsMainThread()); if (mSeekDOMPromise) { RefPtr promise = mSeekDOMPromise.forget(); - nsCOMPtr r = NS_NewRunnableFunction( - "dom::HTMLMediaElement::AsyncResolveSeekDOMPromiseIfExists", - [=]() { promise->MaybeResolveWithUndefined(); }); + nsCOMPtr r = NS_NewRunnableFunction([=] () { + promise->MaybeResolveWithUndefined(); + }); mAbstractMainThread->Dispatch(r.forget()); mSeekDOMPromise = nullptr; } @@ -7531,9 +7507,9 @@ HTMLMediaElement::AsyncRejectSeekDOMPromiseIfExists() MOZ_ASSERT(NS_IsMainThread()); if (mSeekDOMPromise) { RefPtr promise = mSeekDOMPromise.forget(); - nsCOMPtr r = NS_NewRunnableFunction( - "dom::HTMLMediaElement::AsyncRejectSeekDOMPromiseIfExists", - [=]() { promise->MaybeReject(NS_ERROR_DOM_ABORT_ERR); }); + nsCOMPtr r = NS_NewRunnableFunction([=] () { + promise->MaybeReject(NS_ERROR_DOM_ABORT_ERR); + }); mAbstractMainThread->Dispatch(r.forget()); mSeekDOMPromise = nullptr; } @@ -7551,32 +7527,29 @@ HTMLMediaElement::ReportCanPlayTelemetry() } thread->Dispatch( - NS_NewRunnableFunction( - "dom::HTMLMediaElement::ReportCanPlayTelemetry", - [thread]() { + NS_NewRunnableFunction([thread]() { #if XP_WIN - // Windows Media Foundation requires MSCOM to be inited. - HRESULT hr = CoInitializeEx(0, COINIT_MULTITHREADED); - MOZ_ASSERT(hr == S_OK); + // Windows Media Foundation requires MSCOM to be inited. + HRESULT hr = CoInitializeEx(0, COINIT_MULTITHREADED); + MOZ_ASSERT(hr == S_OK); #endif - bool aac = MP4Decoder::IsSupportedType( - MediaContainerType(MEDIAMIMETYPE("audio/mp4")), nullptr); - bool h264 = MP4Decoder::IsSupportedType( - MediaContainerType(MEDIAMIMETYPE("video/mp4")), nullptr); + bool aac = MP4Decoder::IsSupportedType( + MediaContainerType(MEDIAMIMETYPE("audio/mp4")), nullptr); + bool h264 = MP4Decoder::IsSupportedType( + MediaContainerType(MEDIAMIMETYPE("video/mp4")), nullptr); #if XP_WIN - CoUninitialize(); + CoUninitialize(); #endif - AbstractThread::MainThread()->Dispatch(NS_NewRunnableFunction( - "dom::HTMLMediaElement::ReportCanPlayTelemetry", - [thread, aac, h264]() { - LOG(LogLevel::Debug, ("MediaTelemetry aac=%d h264=%d", aac, h264)); - Telemetry::Accumulate( - Telemetry::HistogramID::VIDEO_CAN_CREATE_AAC_DECODER, aac); - Telemetry::Accumulate( - Telemetry::HistogramID::VIDEO_CAN_CREATE_H264_DECODER, h264); - thread->AsyncShutdown(); - })); - }), + AbstractThread::MainThread()->Dispatch( + NS_NewRunnableFunction([thread, aac, h264]() { + LOG(LogLevel::Debug, ("MediaTelemetry aac=%d h264=%d", aac, h264)); + Telemetry::Accumulate( + Telemetry::HistogramID::VIDEO_CAN_CREATE_AAC_DECODER, aac); + Telemetry::Accumulate( + Telemetry::HistogramID::VIDEO_CAN_CREATE_H264_DECODER, h264); + thread->AsyncShutdown(); + })); + }), NS_DISPATCH_NORMAL); } diff --git a/dom/html/HTMLObjectElement.cpp b/dom/html/HTMLObjectElement.cpp index 100f022ce9ce..b06133d9b5b4 100644 --- a/dom/html/HTMLObjectElement.cpp +++ b/dom/html/HTMLObjectElement.cpp @@ -131,9 +131,7 @@ class PluginFocusSetter : public Runnable { public: PluginFocusSetter(nsIWidget* aWidget, Element* aElement) - : Runnable("PluginFocusSetter") - , mWidget(aWidget) - , mElement(aElement) + : mWidget(aWidget), mElement(aElement) { } @@ -271,8 +269,7 @@ HTMLObjectElement::BindToTree(nsIDocument *aDocument, // If we already have all the children, start the load. if (mIsDoneAddingChildren && !pluginDoc) { void (HTMLObjectElement::*start)() = &HTMLObjectElement::StartObjectLoad; - nsContentUtils::AddScriptRunner( - NewRunnableMethod("dom::HTMLObjectElement::BindToTree", this, start)); + nsContentUtils::AddScriptRunner(NewRunnableMethod(this, start)); } return NS_OK; diff --git a/dom/html/HTMLSharedObjectElement.cpp b/dom/html/HTMLSharedObjectElement.cpp index 1f02624f1679..4897ee516393 100644 --- a/dom/html/HTMLSharedObjectElement.cpp +++ b/dom/html/HTMLSharedObjectElement.cpp @@ -139,8 +139,7 @@ HTMLSharedObjectElement::BindToTree(nsIDocument *aDocument, if (mIsDoneAddingChildren && !pluginDoc) { void (HTMLSharedObjectElement::*start)() = &HTMLSharedObjectElement::StartObjectLoad; - nsContentUtils::AddScriptRunner(NewRunnableMethod( - "dom::HTMLSharedObjectElement::BindToTree", this, start)); + nsContentUtils::AddScriptRunner(NewRunnableMethod(this, start)); } return NS_OK; diff --git a/dom/html/HTMLStyleElement.cpp b/dom/html/HTMLStyleElement.cpp index 908bf95895ff..743f4addb96e 100644 --- a/dom/html/HTMLStyleElement.cpp +++ b/dom/html/HTMLStyleElement.cpp @@ -146,8 +146,7 @@ HTMLStyleElement::BindToTree(nsIDocument* aDocument, nsIContent* aParent, NS_ENSURE_SUCCESS(rv, rv); void (HTMLStyleElement::*update)() = &HTMLStyleElement::UpdateStyleSheetInternal; - nsContentUtils::AddScriptRunner( - NewRunnableMethod("dom::HTMLStyleElement::BindToTree", this, update)); + nsContentUtils::AddScriptRunner(NewRunnableMethod(this, update)); return rv; } diff --git a/dom/html/HTMLTrackElement.cpp b/dom/html/HTMLTrackElement.cpp index 30fb5038fe30..09b86398fef1 100644 --- a/dom/html/HTMLTrackElement.cpp +++ b/dom/html/HTMLTrackElement.cpp @@ -265,10 +265,7 @@ void HTMLTrackElement::DispatchLoadResource() { if (!mLoadResourceDispatched) { - RefPtr r = - NewRunnableMethod("dom::HTMLTrackElement::LoadResource", - this, - &HTMLTrackElement::LoadResource); + RefPtr r = NewRunnableMethod(this, &HTMLTrackElement::LoadResource); nsContentUtils::RunInStableState(r.forget()); mLoadResourceDispatched = true; } @@ -440,11 +437,11 @@ HTMLTrackElement::DispatchTrackRunnable(const nsString& aEventName) if (!doc) { return; } - nsCOMPtr runnable = NewRunnableMethod( - "dom::HTMLTrackElement::DispatchTrustedEvent", - this, - &HTMLTrackElement::DispatchTrustedEvent, - aEventName); + nsCOMPtr runnable = + NewRunnableMethod + (this, + &HTMLTrackElement::DispatchTrustedEvent, + aEventName); doc->Dispatch("HTMLTrackElement::DispatchTrackRunnable", TaskCategory::Other, runnable.forget()); } diff --git a/dom/html/ImageDocument.cpp b/dom/html/ImageDocument.cpp index 4d3d3b841f82..4b7008e57583 100644 --- a/dom/html/ImageDocument.cpp +++ b/dom/html/ImageDocument.cpp @@ -493,9 +493,7 @@ ImageDocument::Notify(imgIRequest* aRequest, int32_t aType, const nsIntRect* aDa // come during painting and this will trigger invalidation. if (aType == imgINotificationObserver::HAS_TRANSPARENCY) { nsCOMPtr runnable = - NewRunnableMethod("dom::ImageDocument::OnHasTransparency", - this, - &ImageDocument::OnHasTransparency); + NewRunnableMethod(this, &ImageDocument::OnHasTransparency); nsContentUtils::AddScriptRunner(runnable); } @@ -568,9 +566,7 @@ ImageDocument::OnSizeAvailable(imgIRequest* aRequest, imgIContainer* aImage) } nsCOMPtr runnable = - NewRunnableMethod("dom::ImageDocument::DefaultCheckOverflowing", - this, - &ImageDocument::DefaultCheckOverflowing); + NewRunnableMethod(this, &ImageDocument::DefaultCheckOverflowing); nsContentUtils::AddScriptRunner(runnable); UpdateTitleAndCharset(); diff --git a/dom/html/TextTrackManager.cpp b/dom/html/TextTrackManager.cpp index 37009773e0da..4d3ccf365217 100644 --- a/dom/html/TextTrackManager.cpp +++ b/dom/html/TextTrackManager.cpp @@ -170,10 +170,8 @@ TextTrackManager::AddTextTrack(TextTrackKind aKind, const nsAString& aLabel, ReportTelemetryForTrack(track); if (aTextTrackSource == TextTrackSource::Track) { - RefPtr task = NewRunnableMethod( - "dom::TextTrackManager::HonorUserPreferencesForTrackSelection", - this, - &TextTrackManager::HonorUserPreferencesForTrackSelection); + RefPtr task = + NewRunnableMethod(this, &TextTrackManager::HonorUserPreferencesForTrackSelection); nsContentUtils::RunInStableState(task.forget()); } @@ -192,10 +190,8 @@ TextTrackManager::AddTextTrack(TextTrack* aTextTrack) ReportTelemetryForTrack(aTextTrack); if (aTextTrack->GetTextTrackSource() == TextTrackSource::Track) { - RefPtr task = NewRunnableMethod( - "dom::TextTrackManager::HonorUserPreferencesForTrackSelection", - this, - &TextTrackManager::HonorUserPreferencesForTrackSelection); + RefPtr task = + NewRunnableMethod(this, &TextTrackManager::HonorUserPreferencesForTrackSelection); nsContentUtils::RunInStableState(task.forget()); } } @@ -487,15 +483,12 @@ class SimpleTextTrackEvent : public Runnable { public: friend class CompareSimpleTextTrackEvents; - SimpleTextTrackEvent(const nsAString& aEventName, - double aTime, - TextTrack* aTrack, - TextTrackCue* aCue) - : Runnable("dom::SimpleTextTrackEvent") - , mName(aEventName) - , mTime(aTime) - , mTrack(aTrack) - , mCue(aCue) + SimpleTextTrackEvent(const nsAString& aEventName, double aTime, + TextTrack* aTrack, TextTrackCue* aCue) + : mName(aEventName), + mTime(aTime), + mTrack(aTrack), + mCue(aCue) {} NS_IMETHOD Run() { @@ -631,11 +624,8 @@ TextTrackManager::DispatchUpdateCueDisplay() nsPIDOMWindowInner* win = mMediaElement->OwnerDoc()->GetInnerWindow(); if (win) { nsGlobalWindow::Cast(win)->Dispatch( - "TextTrackManager::UpdateCueDisplay", - TaskCategory::Other, - NewRunnableMethod("dom::TextTrackManager::UpdateCueDisplay", - this, - &TextTrackManager::UpdateCueDisplay)); + "TextTrackManager::UpdateCueDisplay", TaskCategory::Other, + NewRunnableMethod(this, &TextTrackManager::UpdateCueDisplay)); mUpdateCueDisplayDispatched = true; } } @@ -654,11 +644,8 @@ TextTrackManager::DispatchTimeMarchesOn() nsPIDOMWindowInner* win = mMediaElement->OwnerDoc()->GetInnerWindow(); if (win) { nsGlobalWindow::Cast(win)->Dispatch( - "TextTrackManager::TimeMarchesOn", - TaskCategory::Other, - NewRunnableMethod("dom::TextTrackManager::TimeMarchesOn", - this, - &TextTrackManager::TimeMarchesOn)); + "TextTrackManager::TimeMarchesOn", TaskCategory::Other, + NewRunnableMethod(this, &TextTrackManager::TimeMarchesOn)); mTimeMarchesOnDispatched = true; } } diff --git a/dom/html/nsGenericHTMLElement.cpp b/dom/html/nsGenericHTMLElement.cpp index bc23b0e637dd..e4a10840c718 100644 --- a/dom/html/nsGenericHTMLElement.cpp +++ b/dom/html/nsGenericHTMLElement.cpp @@ -120,11 +120,7 @@ using namespace mozilla::dom; class nsAutoFocusEvent : public Runnable { public: - explicit nsAutoFocusEvent(nsGenericHTMLFormElement* aElement) - : mozilla::Runnable("nsAutoFocusEvent") - , mElement(aElement) - { - } + explicit nsAutoFocusEvent(nsGenericHTMLFormElement* aElement) : mElement(aElement) {} NS_IMETHOD Run() override { nsFocusManager* fm = nsFocusManager::GetFocusManager(); diff --git a/dom/html/nsHTMLDocument.cpp b/dom/html/nsHTMLDocument.cpp index ac69848f9d12..66e8eb6cc9b4 100644 --- a/dom/html/nsHTMLDocument.cpp +++ b/dom/html/nsHTMLDocument.cpp @@ -2505,9 +2505,7 @@ nsHTMLDocument::MaybeEditingStateChanged() EditingStateChanged(); } else if (!mInDestructor) { nsContentUtils::AddScriptRunner( - NewRunnableMethod("nsHTMLDocument::MaybeEditingStateChanged", - this, - &nsHTMLDocument::MaybeEditingStateChanged)); + NewRunnableMethod(this, &nsHTMLDocument::MaybeEditingStateChanged)); } } } @@ -2538,10 +2536,9 @@ nsHTMLDocument::SetMayStartLayout(bool aMayStartLayout) class DeferredContentEditableCountChangeEvent : public Runnable { public: - DeferredContentEditableCountChangeEvent(nsHTMLDocument* aDoc, - nsIContent* aElement) - : mozilla::Runnable("DeferredContentEditableCountChangeEvent") - , mDoc(aDoc) + DeferredContentEditableCountChangeEvent(nsHTMLDocument *aDoc, + nsIContent *aElement) + : mDoc(aDoc) , mElement(aElement) { } diff --git a/dom/html/nsTextEditorState.cpp b/dom/html/nsTextEditorState.cpp index 58a7fcbd9894..bdf7c560b752 100644 --- a/dom/html/nsTextEditorState.cpp +++ b/dom/html/nsTextEditorState.cpp @@ -86,10 +86,9 @@ private: class RestoreSelectionState : public Runnable { public: - RestoreSelectionState(nsTextEditorState* aState, nsTextControlFrame* aFrame) - : mozilla::Runnable("RestoreSelectionState") - , mFrame(aFrame) - , mTextEditorState(aState) + RestoreSelectionState(nsTextEditorState *aState, nsTextControlFrame *aFrame) + : mFrame(aFrame), + mTextEditorState(aState) { } @@ -1250,11 +1249,10 @@ nsTextEditorState::GetSelectionController() const // Helper class, used below in BindToFrame(). class PrepareEditorEvent : public Runnable { public: - PrepareEditorEvent(nsTextEditorState& aState, - nsIContent* aOwnerContent, - const nsAString& aCurrentValue) - : mozilla::Runnable("PrepareEditorEvent") - , mState(&aState) + PrepareEditorEvent(nsTextEditorState &aState, + nsIContent *aOwnerContent, + const nsAString &aCurrentValue) + : mState(&aState) , mOwnerContent(aOwnerContent) , mCurrentValue(aCurrentValue) { diff --git a/dom/indexedDB/ActorsParent.cpp b/dom/indexedDB/ActorsParent.cpp index 1c34898becee..8e9522e92b10 100644 --- a/dom/indexedDB/ActorsParent.cpp +++ b/dom/indexedDB/ActorsParent.cpp @@ -5994,8 +5994,7 @@ public: protected: DatabaseOperationBase(const nsID& aBackgroundChildLoggingId, uint64_t aLoggingSerialNumber) - : Runnable("dom::indexedDB::DatabaseOperationBase") - , mOwningEventTarget(GetCurrentThreadEventTarget()) + : mOwningEventTarget(GetCurrentThreadEventTarget()) , mBackgroundChildLoggingId(aBackgroundChildLoggingId) , mLoggingSerialNumber(aLoggingSerialNumber) , mResultCode(NS_OK) @@ -6351,8 +6350,7 @@ class WaitForTransactionsHelper final public: WaitForTransactionsHelper(const nsCString& aDatabaseId, nsIRunnable* aCallback) - : Runnable("dom::indexedDB::WaitForTransactionsHelper") - , mDatabaseId(aDatabaseId) + : mDatabaseId(aDatabaseId) , mCallback(aCallback) , mState(State::Initial) { @@ -9001,8 +8999,7 @@ public: const nsACString& aOrigin, const nsAString& aDatabaseName, int64_t aFileId) - : Runnable("dom::indexedDB::GetFileReferencesHelper") - , mPersistenceType(aPersistenceType) + : mPersistenceType(aPersistenceType) , mOrigin(aOrigin) , mDatabaseName(aDatabaseName) , mFileId(aFileId) @@ -9030,9 +9027,6 @@ private: class FlushPendingFileDeletionsRunnable final : public Runnable { -public: - FlushPendingFileDeletionsRunnable() : Runnable("FlushPendingFileDeletionsRunnable") {} - private: ~FlushPendingFileDeletionsRunnable() override = default; @@ -9371,8 +9365,7 @@ class Maintenance final public: explicit Maintenance(QuotaClient* aQuotaClient) - : Runnable("dom::indexedDB::Maintenance") - , mQuotaClient(aQuotaClient) + : mQuotaClient(aQuotaClient) , mStartTime(PR_Now()) , mResultCode(NS_OK) , mAborted(false) @@ -9588,8 +9581,7 @@ public: const nsCString& aGroup, const nsCString& aOrigin, const nsString& aDatabasePath) - : Runnable("dom::indexedDB::DatabaseMaintenance") - , mMaintenance(aMaintenance) + : mMaintenance(aMaintenance) , mGroup(aGroup) , mOrigin(aOrigin) , mDatabasePath(aDatabasePath) @@ -12639,7 +12631,7 @@ ConnectionPool::ShutdownThread(ThreadInfo& aThreadInfo) NS_DISPATCH_NORMAL)); MOZ_ALWAYS_SUCCEEDS(NS_DispatchToMainThread( - NewRunnableMethod("nsIThread::Shutdown", thread, &nsIThread::Shutdown))); + NewRunnableMethod(thread, &nsIThread::Shutdown))); mTotalThreadCount--; } @@ -12747,7 +12739,7 @@ ConnectionPool::ScheduleTransaction(TransactionInfo* aTransactionInfo, // We need a thread right now so force all idle processing to stop by // posting a dummy runnable to each thread that might be doing idle // maintenance. - nsCOMPtr runnable = new Runnable("IndexedDBDummyRunnable"); + nsCOMPtr runnable = new Runnable(); for (uint32_t index = mDatabasesPerformingIdleMaintenance.Length(); index > 0; @@ -13191,8 +13183,7 @@ ConnectionPool::CloseDatabaseWhenIdleInternal(const nsACString& aDatabaseId) ConnectionPool:: ConnectionRunnable::ConnectionRunnable(DatabaseInfo* aDatabaseInfo) - : Runnable("dom::indexedDB::ConnectionPool::ConnectionRunnable") - , mDatabaseInfo(aDatabaseInfo) + : mDatabaseInfo(aDatabaseInfo) , mOwningEventTarget(GetCurrentThreadEventTarget()) { AssertIsOnBackgroundThread(); @@ -13354,12 +13345,11 @@ DatabasesCompleteCallback::~DatabasesCompleteCallback() MOZ_COUNT_DTOR(ConnectionPool::DatabasesCompleteCallback); } -ConnectionPool::FinishCallbackWrapper::FinishCallbackWrapper( - ConnectionPool* aConnectionPool, - uint64_t aTransactionId, - FinishCallback* aCallback) - : Runnable("dom::indexedDB::ConnectionPool::FinishCallbackWrapper") - , mConnectionPool(aConnectionPool) +ConnectionPool:: +FinishCallbackWrapper::FinishCallbackWrapper(ConnectionPool* aConnectionPool, + uint64_t aTransactionId, + FinishCallback* aCallback) + : mConnectionPool(aConnectionPool) , mCallback(aCallback) , mOwningEventTarget(GetCurrentThreadEventTarget()) , mTransactionId(aTransactionId) @@ -13422,9 +13412,9 @@ FinishCallbackWrapper::Run() uint32_t ConnectionPool::ThreadRunnable::sNextSerialNumber = 0; -ConnectionPool::ThreadRunnable::ThreadRunnable() - : Runnable("dom::indexedDB::ConnectionPool::ThreadRunnable") - , mSerialNumber(++sNextSerialNumber) +ConnectionPool:: +ThreadRunnable::ThreadRunnable() + : mSerialNumber(++sNextSerialNumber) , mFirstRun(true) , mContinueRunning(true) { @@ -14487,9 +14477,7 @@ Database::MaybeCloseConnection() IsClosed() && mDirectoryLock) { nsCOMPtr callback = - NewRunnableMethod("dom::indexedDB::Database::ConnectionClosedCallback", - this, - &Database::ConnectionClosedCallback); + NewRunnableMethod(this, &Database::ConnectionClosedCallback); RefPtr helper = new WaitForTransactionsHelper(Id(), callback); @@ -22691,10 +22679,8 @@ OpenDatabaseOp::SendResults() // Make sure to release the database on this thread. mDatabase = nullptr; } else if (mDirectoryLock) { - nsCOMPtr callback = NewRunnableMethod( - "dom::indexedDB::OpenDatabaseOp::ConnectionClosedCallback", - this, - &OpenDatabaseOp::ConnectionClosedCallback); + nsCOMPtr callback = + NewRunnableMethod(this, &OpenDatabaseOp::ConnectionClosedCallback); RefPtr helper = new WaitForTransactionsHelper(mDatabaseId, callback); diff --git a/dom/indexedDB/FileInfo.cpp b/dom/indexedDB/FileInfo.cpp index f4f515c20ae6..471007273a1e 100644 --- a/dom/indexedDB/FileInfo.cpp +++ b/dom/indexedDB/FileInfo.cpp @@ -60,8 +60,7 @@ public: DoCleanup(FileManager* aFileManager, int64_t aFileId); CleanupFileRunnable(FileManager* aFileManager, int64_t aFileId) - : Runnable("dom::indexedDB::CleanupFileRunnable") - , mFileManager(aFileManager) + : mFileManager(aFileManager) , mFileId(aFileId) { MOZ_ASSERT(aFileManager); diff --git a/dom/indexedDB/IDBDatabase.cpp b/dom/indexedDB/IDBDatabase.cpp index 19936161e685..02f40b477847 100644 --- a/dom/indexedDB/IDBDatabase.cpp +++ b/dom/indexedDB/IDBDatabase.cpp @@ -73,9 +73,9 @@ class CancelableRunnableWrapper final nsCOMPtr mRunnable; public: - explicit CancelableRunnableWrapper(nsIRunnable* aRunnable) - : CancelableRunnable("dom::CancelableRunnableWrapper") - , mRunnable(aRunnable) + explicit + CancelableRunnableWrapper(nsIRunnable* aRunnable) + : mRunnable(aRunnable) { MOZ_ASSERT(aRunnable); } diff --git a/dom/indexedDB/ScriptErrorHelper.cpp b/dom/indexedDB/ScriptErrorHelper.cpp index b643154e9591..7a4740641753 100644 --- a/dom/indexedDB/ScriptErrorHelper.cpp +++ b/dom/indexedDB/ScriptErrorHelper.cpp @@ -36,8 +36,7 @@ public: uint32_t aSeverityFlag, bool aIsChrome, uint64_t aInnerWindowID) - : mozilla::Runnable("ScriptErrorRunnable") - , mMessage(aMessage) + : mMessage(aMessage) , mFilename(aFilename) , mLineNumber(aLineNumber) , mColumnNumber(aColumnNumber) @@ -56,8 +55,7 @@ public: uint32_t aSeverityFlag, bool aIsChrome, uint64_t aInnerWindowID) - : mozilla::Runnable("ScriptErrorRunnable") - , mMessageName(aMessageName) + : mMessageName(aMessageName) , mFilename(aFilename) , mLineNumber(aLineNumber) , mColumnNumber(aColumnNumber) diff --git a/dom/ipc/ContentBridgeChild.cpp b/dom/ipc/ContentBridgeChild.cpp index 740f8f04e881..4f875a2deed9 100644 --- a/dom/ipc/ContentBridgeChild.cpp +++ b/dom/ipc/ContentBridgeChild.cpp @@ -32,10 +32,7 @@ ContentBridgeChild::~ContentBridgeChild() void ContentBridgeChild::ActorDestroy(ActorDestroyReason aWhy) { - MessageLoop::current()->PostTask( - NewRunnableMethod("dom::ContentBridgeChild::DeferredDestroy", - this, - &ContentBridgeChild::DeferredDestroy)); + MessageLoop::current()->PostTask(NewRunnableMethod(this, &ContentBridgeChild::DeferredDestroy)); } /*static*/ void diff --git a/dom/ipc/ContentBridgeParent.cpp b/dom/ipc/ContentBridgeParent.cpp index 4cbc78f51545..3f8ee5ca8216 100644 --- a/dom/ipc/ContentBridgeParent.cpp +++ b/dom/ipc/ContentBridgeParent.cpp @@ -36,10 +36,7 @@ ContentBridgeParent::ActorDestroy(ActorDestroyReason aWhy) if (os) { os->RemoveObserver(this, "content-child-shutdown"); } - MessageLoop::current()->PostTask( - NewRunnableMethod("dom::ContentBridgeParent::DeferredDestroy", - this, - &ContentBridgeParent::DeferredDestroy)); + MessageLoop::current()->PostTask(NewRunnableMethod(this, &ContentBridgeParent::DeferredDestroy)); } /*static*/ ContentBridgeParent* @@ -176,8 +173,7 @@ ContentBridgeParent::NotifyTabDestroyed() { int32_t numLiveTabs = ManagedPBrowserParent().Count(); if (numLiveTabs == 1) { - MessageLoop::current()->PostTask(NewRunnableMethod( - "dom::ContentBridgeParent::Close", this, &ContentBridgeParent::Close)); + MessageLoop::current()->PostTask(NewRunnableMethod(this, &ContentBridgeParent::Close)); } } diff --git a/dom/ipc/ContentChild.cpp b/dom/ipc/ContentChild.cpp index 16fed34a73aa..247b3c21960b 100644 --- a/dom/ipc/ContentChild.cpp +++ b/dom/ipc/ContentChild.cpp @@ -2776,12 +2776,10 @@ ContentChild::StartForceKillTimer() if (timeoutSecs > 0) { mForceKillTimer = do_CreateInstance("@mozilla.org/timer;1"); MOZ_ASSERT(mForceKillTimer); - mForceKillTimer->InitWithNamedFuncCallback( - ContentChild::ForceKillTimerCallback, + mForceKillTimer->InitWithFuncCallback(ContentChild::ForceKillTimerCallback, this, timeoutSecs * 1000, - nsITimer::TYPE_ONE_SHOT, - "dom::ContentChild::StartForceKillTimer"); + nsITimer::TYPE_ONE_SHOT); } } @@ -2811,9 +2809,7 @@ ContentChild::RecvShutdown() // time (100ms) in the hopes that the event loop will have finished by // then. MessageLoop::current()->PostDelayedTask( - NewRunnableMethod( - "dom::ContentChild::RecvShutdown", this, &ContentChild::RecvShutdown), - 100); + NewRunnableMethod(this, &ContentChild::RecvShutdown), 100); return IPC_OK(); } } diff --git a/dom/ipc/ContentParent.cpp b/dom/ipc/ContentParent.cpp index 323793b86280..329a5055d0fc 100644 --- a/dom/ipc/ContentParent.cpp +++ b/dom/ipc/ContentParent.cpp @@ -1711,11 +1711,7 @@ DelayedDeleteSubprocess(GeckoChildProcessHost* aSubprocess) // system. struct DelayedDeleteContentParentTask : public Runnable { - explicit DelayedDeleteContentParentTask(ContentParent* aObj) - : Runnable("dom::DelayedDeleteContentParentTask") - , mObj(aObj) - { - } + explicit DelayedDeleteContentParentTask(ContentParent* aObj) : mObj(aObj) { } // No-op NS_IMETHOD Run() override { return NS_OK; } @@ -1847,11 +1843,10 @@ ContentParent::ActorDestroy(ActorDestroyReason why) // Destroy any processes created by this ContentParent for(uint32_t i = 0; i < childIDArray.Length(); i++) { ContentParent* cp = cpm->GetContentProcessById(childIDArray[i]); - MessageLoop::current()->PostTask( - NewRunnableMethod("dom::ContentParent::ShutDownProcess", - cp, - &ContentParent::ShutDownProcess, - SEND_SHUTDOWN_MESSAGE)); + MessageLoop::current()->PostTask(NewRunnableMethod + (cp, + &ContentParent::ShutDownProcess, + SEND_SHUTDOWN_MESSAGE)); } cpm->RemoveContentProcess(this->ChildID()); @@ -1977,12 +1972,10 @@ ContentParent::StartForceKillTimer() if (timeoutSecs > 0) { mForceKillTimer = do_CreateInstance("@mozilla.org/timer;1"); MOZ_ASSERT(mForceKillTimer); - mForceKillTimer->InitWithNamedFuncCallback( - ContentParent::ForceKillTimerCallback, - this, - timeoutSecs * 1000, - nsITimer::TYPE_ONE_SHOT, - "dom::ContentParent::StartForceKillTimer"); + mForceKillTimer->InitWithFuncCallback(ContentParent::ForceKillTimerCallback, + this, + timeoutSecs * 1000, + nsITimer::TYPE_ONE_SHOT); } } @@ -2011,11 +2004,10 @@ ContentParent::NotifyTabDestroyed(const TabId& aTabId, if (tabIds.Length() == 1 && !ShouldKeepProcessAlive() && !TryToRecycle()) { // In the case of normal shutdown, send a shutdown message to child to // allow it to perform shutdown tasks. - MessageLoop::current()->PostTask( - NewRunnableMethod("dom::ContentParent::ShutDownProcess", - this, - &ContentParent::ShutDownProcess, - SEND_SHUTDOWN_MESSAGE)); + MessageLoop::current()->PostTask(NewRunnableMethod + (this, + &ContentParent::ShutDownProcess, + SEND_SHUTDOWN_MESSAGE)); } } @@ -4102,8 +4094,7 @@ class AnonymousTemporaryFileRequestor final : public Runnable { public: AnonymousTemporaryFileRequestor(ContentParent* aCP, const uint64_t& aID) - : Runnable("dom::AnonymousTemporaryFileRequestor") - , mCP(aCP) + : mCP(aCP) , mID(aID) , mRv(NS_OK) , mPRFD(nullptr) diff --git a/dom/ipc/FilePickerParent.cpp b/dom/ipc/FilePickerParent.cpp index 9448a1afd2dd..ad1ff208be08 100644 --- a/dom/ipc/FilePickerParent.cpp +++ b/dom/ipc/FilePickerParent.cpp @@ -49,12 +49,11 @@ FilePickerParent::~FilePickerParent() // 2. The stream transport thread stat()s the file in Run() and then dispatches // the same runnable on the main thread. // 3. The main thread sends the results over IPC. -FilePickerParent::IORunnable::IORunnable(FilePickerParent* aFPParent, +FilePickerParent::IORunnable::IORunnable(FilePickerParent *aFPParent, nsTArray>& aFiles, bool aIsDirectory) - : mozilla::Runnable("dom::FilePickerParent::IORunnable") - , mFilePickerParent(aFPParent) - , mIsDirectory(aIsDirectory) + : mFilePickerParent(aFPParent) + , mIsDirectory(aIsDirectory) { mFiles.SwapElements(aFiles); MOZ_ASSERT_IF(aIsDirectory, mFiles.Length() == 1); diff --git a/dom/ipc/PreallocatedProcessManager.cpp b/dom/ipc/PreallocatedProcessManager.cpp index 77fc8beb8269..39ba78d0b982 100644 --- a/dom/ipc/PreallocatedProcessManager.cpp +++ b/dom/ipc/PreallocatedProcessManager.cpp @@ -206,9 +206,7 @@ PreallocatedProcessManagerImpl::AllocateAfterDelay() // message loop in practice never goes idle, that didn't work out well. // Let's just launch the process after the delay. NS_DelayedDispatchToCurrentThread( - NewRunnableMethod("PreallocatedProcessManagerImpl::AllocateNow", - this, - &PreallocatedProcessManagerImpl::AllocateNow), + NewRunnableMethod(this, &PreallocatedProcessManagerImpl::AllocateNow), Preferences::GetUint("dom.ipc.processPrelaunch.delayMs", DEFAULT_ALLOCATE_DELAY)); } @@ -220,10 +218,7 @@ PreallocatedProcessManagerImpl::AllocateOnIdle() return; } - NS_IdleDispatchToCurrentThread( - NewRunnableMethod("PreallocatedProcessManagerImpl::AllocateNow", - this, - &PreallocatedProcessManagerImpl::AllocateNow)); + NS_IdleDispatchToCurrentThread(NewRunnableMethod(this, &PreallocatedProcessManagerImpl::AllocateNow)); } void diff --git a/dom/ipc/ProcessHangMonitor.cpp b/dom/ipc/ProcessHangMonitor.cpp index 2f8fcfe2d256..91f605cb8b0e 100644 --- a/dom/ipc/ProcessHangMonitor.cpp +++ b/dom/ipc/ProcessHangMonitor.cpp @@ -369,9 +369,7 @@ HangMonitorChild::ActorDestroy(ActorDestroyReason aWhy) // We use a task here to ensure that IPDL is finished with this // HangMonitorChild before it gets deleted on the main thread. - Dispatch(NewNonOwningRunnableMethod("HangMonitorChild::ShutdownOnThread", - this, - &HangMonitorChild::ShutdownOnThread)); + Dispatch(NewNonOwningRunnableMethod(this, &HangMonitorChild::ShutdownOnThread)); } mozilla::ipc::IPCResult @@ -482,12 +480,10 @@ HangMonitorChild::NotifySlowScript(nsITabChild* aTabChild, } nsAutoCString filename(aFileName); - Dispatch(NewNonOwningRunnableMethod( - "HangMonitorChild::NotifySlowScriptAsync", - this, - &HangMonitorChild::NotifySlowScriptAsync, - id, - filename)); + Dispatch(NewNonOwningRunnableMethod + (this, + &HangMonitorChild::NotifySlowScriptAsync, + id, filename)); return SlowScriptAction::Continue; } @@ -515,11 +511,9 @@ HangMonitorChild::NotifyPluginHang(uint32_t aPluginId) mSentReport = true; // bounce to background thread - Dispatch(NewNonOwningRunnableMethod( - "HangMonitorChild::NotifyPluginHangAsync", - this, - &HangMonitorChild::NotifyPluginHangAsync, - aPluginId)); + Dispatch(NewNonOwningRunnableMethod(this, + &HangMonitorChild::NotifyPluginHangAsync, + aPluginId)); } void @@ -541,9 +535,7 @@ HangMonitorChild::ClearHang() if (mSentReport) { // bounce to background thread - Dispatch(NewNonOwningRunnableMethod("HangMonitorChild::ClearHangAsync", - this, - &HangMonitorChild::ClearHangAsync)); + Dispatch(NewNonOwningRunnableMethod(this, &HangMonitorChild::ClearHangAsync)); MonitorAutoLock lock(mMonitor); mSentReport = false; @@ -611,8 +603,7 @@ HangMonitorParent::Shutdown() mProcess = nullptr; } - Dispatch(NewNonOwningRunnableMethod("HangMonitorParent::ShutdownOnThread", - this, + Dispatch(NewNonOwningRunnableMethod(this, &HangMonitorParent::ShutdownOnThread)); while (!mShutdownDone) { @@ -643,12 +634,8 @@ HangMonitorParent::ForcePaint(dom::TabParent* aTab, uint64_t aLayerObserverEpoch MOZ_RELEASE_ASSERT(NS_IsMainThread()); if (sShouldForcePaint) { TabId id = aTab->GetTabId(); - Dispatch(NewNonOwningRunnableMethod( - "HangMonitorParent::ForcePaintOnThread", - this, - &HangMonitorParent::ForcePaintOnThread, - id, - aLayerObserverEpoch)); + Dispatch(NewNonOwningRunnableMethod + (this, &HangMonitorParent::ForcePaintOnThread, id, aLayerObserverEpoch)); } } @@ -957,10 +944,8 @@ HangMonitoredProcess::TerminateScript() return NS_ERROR_UNEXPECTED; } - ProcessHangMonitor::Get()->Dispatch( - NewNonOwningRunnableMethod("HangMonitorParent::TerminateScript", - mActor, - &HangMonitorParent::TerminateScript)); + ProcessHangMonitor::Get()->Dispatch(NewNonOwningRunnableMethod(mActor, + &HangMonitorParent::TerminateScript)); return NS_OK; } @@ -976,10 +961,8 @@ HangMonitoredProcess::BeginStartingDebugger() return NS_ERROR_UNEXPECTED; } - ProcessHangMonitor::Get()->Dispatch( - NewNonOwningRunnableMethod("HangMonitorParent::BeginStartingDebugger", - mActor, - &HangMonitorParent::BeginStartingDebugger)); + ProcessHangMonitor::Get()->Dispatch(NewNonOwningRunnableMethod(mActor, + &HangMonitorParent::BeginStartingDebugger)); return NS_OK; } @@ -995,10 +978,8 @@ HangMonitoredProcess::EndStartingDebugger() return NS_ERROR_UNEXPECTED; } - ProcessHangMonitor::Get()->Dispatch( - NewNonOwningRunnableMethod("HangMonitorParent::EndStartingDebugger", - mActor, - &HangMonitorParent::EndStartingDebugger)); + ProcessHangMonitor::Get()->Dispatch(NewNonOwningRunnableMethod(mActor, + &HangMonitorParent::EndStartingDebugger)); return NS_OK; } @@ -1178,12 +1159,10 @@ CreateHangMonitorParent(ContentParent* aContentParent, auto* process = new HangMonitoredProcess(parent, aContentParent); parent->SetProcess(process); - monitor->Dispatch( - NewNonOwningRunnableMethod&&>( - "HangMonitorParent::Bind", - parent, - &HangMonitorParent::Bind, - Move(aEndpoint))); + monitor->Dispatch(NewNonOwningRunnableMethod + &&>(parent, + &HangMonitorParent::Bind, + Move(aEndpoint))); return parent; } @@ -1199,12 +1178,10 @@ mozilla::CreateHangMonitorChild(Endpoint&& aEndpoint) ProcessHangMonitor* monitor = ProcessHangMonitor::GetOrCreate(); auto* child = new HangMonitorChild(monitor); - monitor->Dispatch( - NewNonOwningRunnableMethod&&>( - "HangMonitorChild::Bind", - child, - &HangMonitorChild::Bind, - Move(aEndpoint))); + monitor->Dispatch(NewNonOwningRunnableMethod + &&>(child, + &HangMonitorChild::Bind, + Move(aEndpoint))); } void diff --git a/dom/ipc/TabParent.cpp b/dom/ipc/TabParent.cpp index 8870ef7f46cc..093075f06f90 100644 --- a/dom/ipc/TabParent.cpp +++ b/dom/ipc/TabParent.cpp @@ -2781,13 +2781,8 @@ class LayerTreeUpdateRunnable final bool mActive; public: - explicit LayerTreeUpdateRunnable(uint64_t aLayersId, - uint64_t aEpoch, - bool aActive) - : Runnable("dom::LayerTreeUpdateRunnable") - , mLayersId(aLayersId) - , mEpoch(aEpoch) - , mActive(aActive) + explicit LayerTreeUpdateRunnable(uint64_t aLayersId, uint64_t aEpoch, bool aActive) + : mLayersId(aLayersId), mEpoch(aEpoch), mActive(aActive) { MOZ_ASSERT(!NS_IsMainThread()); } diff --git a/dom/jsurl/nsJSProtocolHandler.cpp b/dom/jsurl/nsJSProtocolHandler.cpp index 845fc2b8a158..beb8f30e6a1c 100644 --- a/dom/jsurl/nsJSProtocolHandler.cpp +++ b/dom/jsurl/nsJSProtocolHandler.cpp @@ -663,8 +663,7 @@ nsJSChannel::AsyncOpen(nsIStreamListener *aListener, nsISupports *aContext) name = "nsJSChannel::NotifyListener"; } - nsresult rv = NS_DispatchToCurrentThread( - mozilla::NewRunnableMethod(name, this, method)); + nsresult rv = NS_DispatchToCurrentThread(mozilla::NewRunnableMethod(name, this, method)); if (NS_FAILED(rv)) { loadGroup->RemoveRequest(this, nullptr, rv); diff --git a/dom/media/Benchmark.cpp b/dom/media/Benchmark.cpp index 2846a74470bb..7a1782766584 100644 --- a/dom/media/Benchmark.cpp +++ b/dom/media/Benchmark.cpp @@ -111,8 +111,8 @@ Benchmark::Run() RefPtr p = mPromise.Ensure(__func__); RefPtr self = this; - mPlaybackState.Dispatch(NS_NewRunnableFunction( - "Benchmark::Run", [self]() { self->mPlaybackState.DemuxSamples(); })); + mPlaybackState.Dispatch( + NS_NewRunnableFunction([self]() { self->mPlaybackState.DemuxSamples(); })); return p; } @@ -196,8 +196,7 @@ BenchmarkPlayback::DemuxNextSample() && mSamples.Length() == (size_t)ref->mParameters.mStopAtFrame.ref()) { InitDecoder(Move(*mTrackDemuxer->GetInfo())); } else { - Dispatch(NS_NewRunnableFunction("BenchmarkPlayback::DemuxNextSample", - [this, ref]() { DemuxNextSample(); })); + Dispatch(NS_NewRunnableFunction([this, ref]() { DemuxNextSample(); })); } }, [this, ref](const MediaResult& aError) { @@ -292,10 +291,9 @@ BenchmarkPlayback::Output(const MediaDataDecoder::DecodedData& aResults) || mDrained)) { uint32_t decodeFps = frames / elapsedTime.ToSeconds(); MainThreadShutdown(); - ref->Dispatch( - NS_NewRunnableFunction("BenchmarkPlayback::Output", [ref, decodeFps]() { - ref->ReturnResult(decodeFps); - })); + ref->Dispatch(NS_NewRunnableFunction([ref, decodeFps]() { + ref->ReturnResult(decodeFps); + })); } } diff --git a/dom/media/CanvasCaptureMediaStream.cpp b/dom/media/CanvasCaptureMediaStream.cpp index 2f24540d0a46..c30f2f3f4351 100644 --- a/dom/media/CanvasCaptureMediaStream.cpp +++ b/dom/media/CanvasCaptureMediaStream.cpp @@ -142,11 +142,7 @@ public: if (!mTimer) { return; } - mTimer->InitWithNamedFuncCallback(&TimerTick, - this, - int(1000 / mFPS), - nsITimer::TYPE_REPEATING_SLACK, - "dom::TimerDriver::TimerDriver"); + mTimer->InitWithFuncCallback(&TimerTick, this, int(1000 / mFPS), nsITimer::TYPE_REPEATING_SLACK); } static void TimerTick(nsITimer* aTimer, void* aClosure) diff --git a/dom/media/CubebUtils.cpp b/dom/media/CubebUtils.cpp index a885274cd325..29f8a870dad3 100644 --- a/dom/media/CubebUtils.cpp +++ b/dom/media/CubebUtils.cpp @@ -421,8 +421,7 @@ void InitLibrary() Preferences::RegisterCallbackAndCall(PrefChanged, PREF_CUBEB_BACKEND); Preferences::RegisterCallbackAndCall(PrefChanged, PREF_CUBEB_LOG_LEVEL); #ifndef MOZ_WIDGET_ANDROID - NS_DispatchToMainThread( - NS_NewRunnableFunction("CubebUtils::InitLibrary", &InitBrandName)); + NS_DispatchToMainThread(NS_NewRunnableFunction(&InitBrandName)); #endif } diff --git a/dom/media/DOMMediaStream.cpp b/dom/media/DOMMediaStream.cpp index 9afd2ec409ac..0ad0e9aa4d6a 100644 --- a/dom/media/DOMMediaStream.cpp +++ b/dom/media/DOMMediaStream.cpp @@ -185,10 +185,7 @@ public: RefPtr newTrack = mStream->CreateDOMTrack(aTrackID, aType, source); NS_DispatchToMainThread(NewRunnableMethod>( - "DOMMediaStream::AddTrackInternal", - mStream, - &DOMMediaStream::AddTrackInternal, - newTrack)); + mStream, &DOMMediaStream::AddTrackInternal, newTrack)); } void DoNotifyTrackEnded(MediaStream* aInputStream, TrackID aInputTrackID, @@ -206,10 +203,8 @@ public: if (track) { LOG(LogLevel::Debug, ("DOMMediaStream %p MediaStreamTrack %p ended at the source. Marking it ended.", mStream, track.get())); - NS_DispatchToMainThread( - NewRunnableMethod("dom::MediaStreamTrack::OverrideEnded", - track, - &MediaStreamTrack::OverrideEnded)); + NS_DispatchToMainThread(NewRunnableMethod( + track, &MediaStreamTrack::OverrideEnded)); } } @@ -222,27 +217,15 @@ public: if (aTrackEvents & TrackEventCommand::TRACK_EVENT_CREATED) { aGraph->DispatchToMainThreadAfterStreamStateUpdate( mAbstractMainThread, - NewRunnableMethod, - TrackID>( - "DOMMediaStream::OwnedStreamListener::DoNotifyTrackCreated", - this, - &OwnedStreamListener::DoNotifyTrackCreated, - aID, - aQueuedMedia.GetType(), - aInputStream, - aInputTrackID)); + NewRunnableMethod, TrackID>( + this, &OwnedStreamListener::DoNotifyTrackCreated, + aID, aQueuedMedia.GetType(), aInputStream, aInputTrackID)); } else if (aTrackEvents & TrackEventCommand::TRACK_EVENT_ENDED) { aGraph->DispatchToMainThreadAfterStreamStateUpdate( mAbstractMainThread, NewRunnableMethod, TrackID, TrackID>( - "DOMMediaStream::OwnedStreamListener::DoNotifyTrackEnded", - this, - &OwnedStreamListener::DoNotifyTrackEnded, - aInputStream, - aInputTrackID, - aID)); + this, &OwnedStreamListener::DoNotifyTrackEnded, + aInputStream, aInputTrackID, aID)); } } @@ -283,9 +266,7 @@ public: // dispatch. We have to do the same to notify of created tracks to stay // in sync. (Or NotifyTracksCreated is called before tracks are added). NS_DispatchToMainThread( - NewRunnableMethod("DOMMediaStream::NotifyTracksCreated", - mStream, - &DOMMediaStream::NotifyTracksCreated)); + NewRunnableMethod(mStream, &DOMMediaStream::NotifyTracksCreated)); } void DoNotifyFinished() @@ -296,9 +277,8 @@ public: return; } - NS_DispatchToMainThread(NewRunnableMethod("DOMMediaStream::NotifyFinished", - mStream, - &DOMMediaStream::NotifyFinished)); + NS_DispatchToMainThread(NewRunnableMethod( + mStream, &DOMMediaStream::NotifyFinished)); } // The methods below are called on the MediaStreamGraph thread. @@ -307,10 +287,7 @@ public: { aGraph->DispatchToMainThreadAfterStreamStateUpdate( mAbstractMainThread, - NewRunnableMethod( - "DOMMediaStream::PlaybackStreamListener::DoNotifyFinishedTrackCreation", - this, - &PlaybackStreamListener::DoNotifyFinishedTrackCreation)); + NewRunnableMethod(this, &PlaybackStreamListener::DoNotifyFinishedTrackCreation)); } @@ -320,10 +297,7 @@ public: if (event == MediaStreamGraphEvent::EVENT_FINISHED) { aGraph->DispatchToMainThreadAfterStreamStateUpdate( mAbstractMainThread, - NewRunnableMethod( - "DOMMediaStream::PlaybackStreamListener::DoNotifyFinished", - this, - &PlaybackStreamListener::DoNotifyFinished)); + NewRunnableMethod(this, &PlaybackStreamListener::DoNotifyFinished)); } } diff --git a/dom/media/EncodedBufferCache.cpp b/dom/media/EncodedBufferCache.cpp index 0e3c3ed46f00..31fb99dd8283 100644 --- a/dom/media/EncodedBufferCache.cpp +++ b/dom/media/EncodedBufferCache.cpp @@ -50,9 +50,7 @@ EncodedBufferCache::AppendBuffer(nsTArray & aBuf) Monitor monitor("EncodeBufferCache::AppendBuffer"); RefPtr cc = dom::ContentChild::GetSingleton(); nsCOMPtr runnable = - NewRunnableMethod( - "dom::ContentChild::AsyncOpenAnonymousTemporaryFile", - cc, + NewRunnableMethod(cc, &dom::ContentChild::AsyncOpenAnonymousTemporaryFile, [&](PRFileDesc* aFile) { rv = aFile ? NS_OK : NS_ERROR_FAILURE; diff --git a/dom/media/FileBlockCache.cpp b/dom/media/FileBlockCache.cpp index cfeedefb7319..a0d044703c08 100644 --- a/dom/media/FileBlockCache.cpp +++ b/dom/media/FileBlockCache.cpp @@ -95,18 +95,15 @@ FileBlockCache::Init() if (XRE_IsParentProcess()) { RefPtr self = this; - rv = mThread->Dispatch( - NS_NewRunnableFunction("FileBlockCache::Init", - [self] { - PRFileDesc* fd = nullptr; - nsresult rv = NS_OpenAnonymousTemporaryFile(&fd); - if (NS_SUCCEEDED(rv)) { - self->SetCacheFile(fd); - } else { - self->Close(); - } - }), - NS_DISPATCH_NORMAL); + rv = mThread->Dispatch(NS_NewRunnableFunction([self] { + PRFileDesc* fd = nullptr; + nsresult rv = NS_OpenAnonymousTemporaryFile(&fd); + if (NS_SUCCEEDED(rv)) { + self->SetCacheFile(fd); + } else { + self->Close(); + } + }), NS_DISPATCH_NORMAL); } else { // We must request a temporary file descriptor from the parent process. RefPtr self = this; @@ -160,28 +157,19 @@ FileBlockCache::Close() // Let the thread close the FD, and then trigger its own shutdown. // Note that mThread is now empty, so no other task will be posted there. // Also mThread and mFD are empty and therefore can be reused immediately. - nsresult rv = thread->Dispatch( - NS_NewRunnableFunction("FileBlockCache::Close", - [thread, fd] { - if (fd) { - CloseFD(fd); - } - // We must shut down the thread in another - // runnable. This is called - // while we're shutting down the media cache, and - // nsIThread::Shutdown() - // can cause events to run before it completes, - // which could end up - // opening more streams, while the media cache is - // shutting down and - // releasing memory etc! - nsCOMPtr event = - new ShutdownThreadEvent(thread); - SystemGroup::Dispatch("ShutdownThreadEvent", - TaskCategory::Other, - event.forget()); - }), - NS_DISPATCH_NORMAL); + nsresult rv = thread->Dispatch(NS_NewRunnableFunction([thread, fd] { + if (fd) { + CloseFD(fd); + } + // We must shut down the thread in another runnable. This is called + // while we're shutting down the media cache, and nsIThread::Shutdown() + // can cause events to run before it completes, which could end up + // opening more streams, while the media cache is shutting down and + // releasing memory etc! + nsCOMPtr event = new ShutdownThreadEvent(thread); + SystemGroup::Dispatch( + "ShutdownThreadEvent", TaskCategory::Other, event.forget()); + }), NS_DISPATCH_NORMAL); NS_ENSURE_SUCCESS_VOID(rv); } diff --git a/dom/media/GraphDriver.cpp b/dom/media/GraphDriver.cpp index a19bc1fbec2c..ee39c442fa56 100644 --- a/dom/media/GraphDriver.cpp +++ b/dom/media/GraphDriver.cpp @@ -141,10 +141,8 @@ ThreadedDriver::ThreadedDriver(MediaStreamGraphImpl* aGraphImpl) class MediaStreamGraphShutdownThreadRunnable : public Runnable { public: - explicit MediaStreamGraphShutdownThreadRunnable( - already_AddRefed aThread) - : Runnable("MediaStreamGraphShutdownThreadRunnable") - , mThread(aThread) + explicit MediaStreamGraphShutdownThreadRunnable(already_AddRefed aThread) + : mThread(aThread) { } NS_IMETHOD Run() override @@ -175,8 +173,7 @@ ThreadedDriver::~ThreadedDriver() class MediaStreamGraphInitThreadRunnable : public Runnable { public: explicit MediaStreamGraphInitThreadRunnable(ThreadedDriver* aDriver) - : Runnable("MediaStreamGraphInitThreadRunnable") - , mDriver(aDriver) + : mDriver(aDriver) { } NS_IMETHOD Run() override @@ -470,12 +467,10 @@ OfflineClockDriver::WakeUp() MOZ_ASSERT(false, "An offline graph should not have to wake up."); } -AsyncCubebTask::AsyncCubebTask(AudioCallbackDriver* aDriver, - AsyncCubebOperation aOperation) - : Runnable("AsyncCubebTask") - , mDriver(aDriver) - , mOperation(aOperation) - , mShutdownGrip(aDriver->GraphImpl()) +AsyncCubebTask::AsyncCubebTask(AudioCallbackDriver* aDriver, AsyncCubebOperation aOperation) + : mDriver(aDriver), + mOperation(aOperation), + mShutdownGrip(aDriver->GraphImpl()) { NS_WARNING_ASSERTION(mDriver->mAudioStream || aOperation == INIT, "No audio stream!"); @@ -497,10 +492,9 @@ AsyncCubebTask::EnsureThread() // since we don't know the order that the shutdown-threads observers // will run. ClearOnShutdown guarantees it runs first. if (!NS_IsMainThread()) { - NS_DispatchToMainThread( - NS_NewRunnableFunction("AsyncCubebTask::EnsureThread", []() -> void { - ClearOnShutdown(&sThreadPool, ShutdownPhase::ShutdownThreads); - })); + NS_DispatchToMainThread(NS_NewRunnableFunction([]() -> void { + ClearOnShutdown(&sThreadPool, ShutdownPhase::ShutdownThreads); + })); } else { ClearOnShutdown(&sThreadPool, ShutdownPhase::ShutdownThreads); } diff --git a/dom/media/Latency.cpp b/dom/media/Latency.cpp index cdc3af87c47e..c42c3178aac0 100644 --- a/dom/media/Latency.cpp +++ b/dom/media/Latency.cpp @@ -47,24 +47,18 @@ GetLatencyLog() class LogEvent : public Runnable { public: - LogEvent(AsyncLatencyLogger::LatencyLogIndex aIndex, - uint64_t aID, - int64_t aValue, - TimeStamp aTimeStamp) - : mozilla::Runnable("LogEvent") - , mIndex(aIndex) - , mID(aID) - , mValue(aValue) - , mTimeStamp(aTimeStamp) + LogEvent(AsyncLatencyLogger::LatencyLogIndex aIndex, uint64_t aID, int64_t aValue, + TimeStamp aTimeStamp) : + mIndex(aIndex), + mID(aID), + mValue(aValue), + mTimeStamp(aTimeStamp) {} - LogEvent(AsyncLatencyLogger::LatencyLogIndex aIndex, - uint64_t aID, - int64_t aValue) - : mozilla::Runnable("LogEvent") - , mIndex(aIndex) - , mID(aID) - , mValue(aValue) - , mTimeStamp(TimeStamp()) + LogEvent(AsyncLatencyLogger::LatencyLogIndex aIndex, uint64_t aID, int64_t aValue) : + mIndex(aIndex), + mID(aID), + mValue(aValue), + mTimeStamp(TimeStamp()) {} ~LogEvent() {} diff --git a/dom/media/MediaDecoder.cpp b/dom/media/MediaDecoder.cpp index 5000df764101..2bd9fc6855e6 100644 --- a/dom/media/MediaDecoder.cpp +++ b/dom/media/MediaDecoder.cpp @@ -214,36 +214,30 @@ MediaDecoder::ResourceCallback::NotifyDataArrived() // calls to MediaDecoder::NotifyDataArrived() which will update the buffer // ranges of the reader. mTimerArmed = true; - mTimer->InitWithNamedFuncCallback( - TimerCallback, - this, - sDelay, - nsITimer::TYPE_ONE_SHOT, - "MediaDecoder::ResourceCallback::NotifyDataArrived"); + mTimer->InitWithFuncCallback( + TimerCallback, this, sDelay, nsITimer::TYPE_ONE_SHOT); } void MediaDecoder::ResourceCallback::NotifyDataEnded(nsresult aStatus) { RefPtr self = this; - nsCOMPtr r = NS_NewRunnableFunction( - "MediaDecoder::ResourceCallback::NotifyDataEnded", [=]() { - if (!self->mDecoder) { - return; - } - self->mDecoder->NotifyDownloadEnded(aStatus); - if (NS_SUCCEEDED(aStatus)) { - MediaDecoderOwner* owner = self->GetMediaOwner(); - MOZ_ASSERT(owner); - owner->DownloadSuspended(); + nsCOMPtr r = NS_NewRunnableFunction([=] () { + if (!self->mDecoder) { + return; + } + self->mDecoder->NotifyDownloadEnded(aStatus); + if (NS_SUCCEEDED(aStatus)) { + MediaDecoderOwner* owner = self->GetMediaOwner(); + MOZ_ASSERT(owner); + owner->DownloadSuspended(); - // NotifySuspendedStatusChanged will tell the element that download - // has been suspended "by the cache", which is true since we never - // download anything. The element can then transition to - // HAVE_ENOUGH_DATA. - self->mDecoder->NotifySuspendedStatusChanged(); - } - }); + // NotifySuspendedStatusChanged will tell the element that download + // has been suspended "by the cache", which is true since we never + // download anything. The element can then transition to HAVE_ENOUGH_DATA. + self->mDecoder->NotifySuspendedStatusChanged(); + } + }); mAbstractMainThread->Dispatch(r.forget()); } @@ -270,12 +264,11 @@ MediaDecoder::ResourceCallback::NotifyBytesConsumed(int64_t aBytes, int64_t aOffset) { RefPtr self = this; - nsCOMPtr r = NS_NewRunnableFunction( - "MediaDecoder::ResourceCallback::NotifyBytesConsumed", [=]() { - if (self->mDecoder) { - self->mDecoder->NotifyBytesConsumed(aBytes, aOffset); - } - }); + nsCOMPtr r = NS_NewRunnableFunction([=] () { + if (self->mDecoder) { + self->mDecoder->NotifyBytesConsumed(aBytes, aOffset); + } + }); mAbstractMainThread->Dispatch(r.forget()); } @@ -478,11 +471,10 @@ MediaDecoder::Shutdown() // Ensure we always unregister asynchronously in order not to disrupt // the hashtable iterating in MediaShutdownManager::Shutdown(). RefPtr self = this; - nsCOMPtr r = - NS_NewRunnableFunction("MediaDecoder::Shutdown", [self]() { - self->mVideoFrameContainer = nullptr; - MediaShutdownManager::Instance().Unregister(self); - }); + nsCOMPtr r = NS_NewRunnableFunction([self] () { + self->mVideoFrameContainer = nullptr; + MediaShutdownManager::Instance().Unregister(self); + }); mAbstractMainThread->Dispatch(r.forget()); } diff --git a/dom/media/MediaDecoderReader.cpp b/dom/media/MediaDecoderReader.cpp index b9133f8d367f..d192ab5df2f3 100644 --- a/dom/media/MediaDecoderReader.cpp +++ b/dom/media/MediaDecoderReader.cpp @@ -92,10 +92,7 @@ MediaDecoderReader::Init() mTaskQueue, this, &MediaDecoderReader::NotifyDataArrived); } // Dispatch initialization that needs to happen on that task queue. - mTaskQueue->Dispatch( - NewRunnableMethod("MediaDecoderReader::InitializationTask", - this, - &MediaDecoderReader::InitializationTask)); + mTaskQueue->Dispatch(NewRunnableMethod(this, &MediaDecoderReader::InitializationTask)); return InitInternal(); } @@ -247,8 +244,7 @@ class ReRequestVideoWithSkipTask : public Runnable public: ReRequestVideoWithSkipTask(MediaDecoderReader* aReader, const media::TimeUnit& aTimeThreshold) - : Runnable("ReRequestVideoWithSkipTask") - , mReader(aReader) + : mReader(aReader) , mTimeThreshold(aTimeThreshold) { } @@ -274,8 +270,7 @@ class ReRequestAudioTask : public Runnable { public: explicit ReRequestAudioTask(MediaDecoderReader* aReader) - : Runnable("ReRequestAudioTask") - , mReader(aReader) + : mReader(aReader) { } diff --git a/dom/media/MediaDecoderReaderWrapper.cpp b/dom/media/MediaDecoderReaderWrapper.cpp index 7e4b776dfa64..48a136707807 100644 --- a/dom/media/MediaDecoderReaderWrapper.cpp +++ b/dom/media/MediaDecoderReaderWrapper.cpp @@ -111,9 +111,7 @@ MediaDecoderReaderWrapper::ReleaseResources() { MOZ_ASSERT(mOwnerThread->IsCurrentThreadIn()); nsCOMPtr r = - NewRunnableMethod("MediaDecoderReader::ReleaseResources", - mReader, - &MediaDecoderReader::ReleaseResources); + NewRunnableMethod(mReader, &MediaDecoderReader::ReleaseResources); mReader->OwnerThread()->Dispatch(r.forget()); } @@ -122,8 +120,7 @@ MediaDecoderReaderWrapper::ResetDecode(TrackSet aTracks) { MOZ_ASSERT(mOwnerThread->IsCurrentThreadIn()); nsCOMPtr r = - NewRunnableMethod("MediaDecoderReader::ResetDecode", - mReader, + NewRunnableMethod(mReader, &MediaDecoderReader::ResetDecode, aTracks); mReader->OwnerThread()->Dispatch(r.forget()); @@ -164,9 +161,7 @@ MediaDecoderReaderWrapper::SetVideoBlankDecode(bool aIsBlankDecode) { MOZ_ASSERT(mOwnerThread->IsCurrentThreadIn()); nsCOMPtr r = - NewRunnableMethod("MediaDecoderReader::SetVideoNullDecode", - mReader, - &MediaDecoderReader::SetVideoNullDecode, + NewRunnableMethod(mReader, &MediaDecoderReader::SetVideoNullDecode, aIsBlankDecode); mReader->OwnerThread()->Dispatch(r.forget()); } diff --git a/dom/media/MediaDecoderStateMachine.cpp b/dom/media/MediaDecoderStateMachine.cpp index 0185f3a9d4b7..9292301a9692 100644 --- a/dom/media/MediaDecoderStateMachine.cpp +++ b/dom/media/MediaDecoderStateMachine.cpp @@ -1663,9 +1663,7 @@ private: { public: explicit AysncNextFrameSeekTask(NextFrameSeekingState* aStateObject) - : Runnable("MediaDecoderStateMachine::NextFrameSeekingState::" - "AysncNextFrameSeekTask") - , mStateObj(aStateObject) + : mStateObj(aStateObject) { } @@ -2895,10 +2893,7 @@ nsresult MediaDecoderStateMachine::Init(MediaDecoder* aDecoder) // Dispatch initialization that needs to happen on that task queue. nsCOMPtr r = NewRunnableMethod>( - "MediaDecoderStateMachine::InitializationTask", - this, - &MediaDecoderStateMachine::InitializationTask, - aDecoder); + this, &MediaDecoderStateMachine::InitializationTask, aDecoder); mTaskQueue->DispatchStateChange(r.forget()); mAudioQueueListener = AudioQueue().PopEvent().Connect( @@ -3105,11 +3100,10 @@ void MediaDecoderStateMachine::PlayStateChanged() void MediaDecoderStateMachine::SetVideoDecodeMode(VideoDecodeMode aMode) { - nsCOMPtr r = NewRunnableMethod( - "MediaDecoderStateMachine::SetVideoDecodeModeInternal", - this, - &MediaDecoderStateMachine::SetVideoDecodeModeInternal, - aMode); + nsCOMPtr r = + NewRunnableMethod(this, + &MediaDecoderStateMachine::SetVideoDecodeModeInternal, + aMode); OwnerThread()->DispatchStateChange(r.forget()); } @@ -3658,9 +3652,7 @@ MediaDecoderStateMachine::ScheduleStateMachine() mDispatchedStateMachine = true; OwnerThread()->Dispatch( - NewRunnableMethod("MediaDecoderStateMachine::RunStateMachine", - this, - &MediaDecoderStateMachine::RunStateMachine)); + NewRunnableMethod(this, &MediaDecoderStateMachine::RunStateMachine)); } void @@ -3895,12 +3887,9 @@ MediaDecoderStateMachine::RequestDebugInfo() using PromiseType = MediaDecoder::DebugInfoPromise; RefPtr p = new PromiseType::Private(__func__); RefPtr self = this; - OwnerThread()->Dispatch( - NS_NewRunnableFunction( - "MediaDecoderStateMachine::RequestDebugInfo", - [self, p]() { p->Resolve(self->GetDebugInfo(), __func__); }), - AbstractThread::AssertDispatchSuccess, - AbstractThread::TailDispatch); + OwnerThread()->Dispatch(NS_NewRunnableFunction([self, p] () { + p->Resolve(self->GetDebugInfo(), __func__); + }), AbstractThread::AssertDispatchSuccess, AbstractThread::TailDispatch); return p.forget(); } @@ -3910,11 +3899,8 @@ void MediaDecoderStateMachine::AddOutputStream(ProcessedMediaStream* aStream, MOZ_ASSERT(NS_IsMainThread()); LOG("AddOutputStream aStream=%p!", aStream); mOutputStreamManager->Add(aStream, aFinishWhenEnded); - nsCOMPtr r = - NewRunnableMethod("MediaDecoderStateMachine::SetAudioCaptured", - this, - &MediaDecoderStateMachine::SetAudioCaptured, - true); + nsCOMPtr r = NewRunnableMethod( + this, &MediaDecoderStateMachine::SetAudioCaptured, true); OwnerThread()->Dispatch(r.forget()); } @@ -3924,11 +3910,8 @@ void MediaDecoderStateMachine::RemoveOutputStream(MediaStream* aStream) LOG("RemoveOutputStream=%p!", aStream); mOutputStreamManager->Remove(aStream); if (mOutputStreamManager->IsEmpty()) { - nsCOMPtr r = - NewRunnableMethod("MediaDecoderStateMachine::SetAudioCaptured", - this, - &MediaDecoderStateMachine::SetAudioCaptured, - false); + nsCOMPtr r = NewRunnableMethod( + this, &MediaDecoderStateMachine::SetAudioCaptured, false); OwnerThread()->Dispatch(r.forget()); } } diff --git a/dom/media/MediaDecoderStateMachine.h b/dom/media/MediaDecoderStateMachine.h index d911f57f16db..17fdc126ba96 100644 --- a/dom/media/MediaDecoderStateMachine.h +++ b/dom/media/MediaDecoderStateMachine.h @@ -184,11 +184,8 @@ public: void DispatchSetPlaybackRate(double aPlaybackRate) { - OwnerThread()->DispatchStateChange( - NewRunnableMethod("MediaDecoderStateMachine::SetPlaybackRate", - this, - &MediaDecoderStateMachine::SetPlaybackRate, - aPlaybackRate)); + OwnerThread()->DispatchStateChange(NewRunnableMethod( + this, &MediaDecoderStateMachine::SetPlaybackRate, aPlaybackRate)); } RefPtr BeginShutdown(); @@ -197,14 +194,11 @@ public: void DispatchSetFragmentEndTime(const media::TimeUnit& aEndTime) { RefPtr self = this; - nsCOMPtr r = NS_NewRunnableFunction( - "MediaDecoderStateMachine::DispatchSetFragmentEndTime", - [self, aEndTime]() { - // A negative number means we don't have a fragment end time at all. - self->mFragmentEndTime = aEndTime >= media::TimeUnit::Zero() - ? aEndTime - : media::TimeUnit::Invalid(); - }); + nsCOMPtr r = NS_NewRunnableFunction([self, aEndTime] () { + // A negative number means we don't have a fragment end time at all. + self->mFragmentEndTime = aEndTime >= media::TimeUnit::Zero() + ? aEndTime : media::TimeUnit::Invalid(); + }); OwnerThread()->Dispatch(r.forget()); } diff --git a/dom/media/MediaEventSource.h b/dom/media/MediaEventSource.h index 1c34a415597c..ee59ed689cc8 100644 --- a/dom/media/MediaEventSource.h +++ b/dom/media/MediaEventSource.h @@ -135,13 +135,9 @@ public: { if (CanTakeArgs()) { DispatchTask(NewRunnableMethod::Type&&...>( - "detail::Listener::ApplyWithArgs", - this, - &Listener::ApplyWithArgs, - Forward(aEvents)...)); + this, &Listener::ApplyWithArgs, Forward(aEvents)...)); } else { - DispatchTask(NewRunnableMethod( - "detail::Listener::ApplyWithNoArgs", this, &Listener::ApplyWithNoArgs)); + DispatchTask(NewRunnableMethod(this, &Listener::ApplyWithNoArgs)); } } diff --git a/dom/media/MediaFormatReader.cpp b/dom/media/MediaFormatReader.cpp index 00dc94f0400e..4d2d81bcc8ed 100644 --- a/dom/media/MediaFormatReader.cpp +++ b/dom/media/MediaFormatReader.cpp @@ -120,9 +120,10 @@ GlobalAllocPolicy::GlobalAllocPolicy() SystemGroup::Dispatch( "GlobalAllocPolicy::ClearOnShutdown", TaskCategory::Other, - NS_NewRunnableFunction("GlobalAllocPolicy::GlobalAllocPolicy", [this]() { + NS_NewRunnableFunction([this] () { ClearOnShutdown(this, ShutdownPhase::ShutdownThreads); - })); + }) + ); } GlobalAllocPolicy::~GlobalAllocPolicy() @@ -925,9 +926,9 @@ public: void Reset() override { RefPtr self = this; - mTaskQueue->Dispatch( - NS_NewRunnableFunction("MediaFormatReader::DemuxerProxy::Wrapper::Reset", - [self]() { self->mTrackDemuxer->Reset(); })); + mTaskQueue->Dispatch(NS_NewRunnableFunction([self]() { + self->mTrackDemuxer->Reset(); + })); } nsresult GetNextRandomAccessPoint(TimeUnit* aTime) override @@ -985,7 +986,6 @@ private: { RefPtr trackDemuxer = mTrackDemuxer.forget(); mTaskQueue->Dispatch(NS_NewRunnableFunction( - "MediaFormatReader::DemuxerProxy::Wrapper::~Wrapper", [trackDemuxer]() { trackDemuxer->BreakCycles(); })); } @@ -1268,8 +1268,7 @@ public: DispatchKeyNeededEvent(AbstractMediaDecoder* aDecoder, nsTArray& aInitData, const nsString& aInitDataType) - : Runnable("DispatchKeyNeededEvent") - , mDecoder(aDecoder) + : mDecoder(aDecoder) , mInitData(aInitData) , mInitDataType(aInitDataType) { @@ -1296,11 +1295,10 @@ MediaFormatReader::SetCDMProxy(CDMProxy* aProxy) { RefPtr proxy = aProxy; RefPtr self = this; - nsCOMPtr r = - NS_NewRunnableFunction("MediaFormatReader::SetCDMProxy", [=]() { - MOZ_ASSERT(self->OnTaskQueue()); - self->mCDMProxy = proxy; - }); + nsCOMPtr r = NS_NewRunnableFunction([=] () { + MOZ_ASSERT(self->OnTaskQueue()); + self->mCDMProxy = proxy; + }); OwnerThread()->Dispatch(r.forget()); } @@ -1469,7 +1467,7 @@ MediaFormatReader::OnDemuxerInitDone(const MediaResult& aResult) if (aResult != NS_OK && mDecoder) { RefPtr decoder = mDecoder; mDecoder->AbstractMainThread()->Dispatch(NS_NewRunnableFunction( - "MediaFormatReader::OnDemuxerInitDone", [decoder, aResult]() { + [decoder, aResult] () { if (decoder->GetOwner()) { decoder->GetOwner()->DecodeWarning(aResult); } @@ -1856,8 +1854,8 @@ MediaFormatReader::ScheduleUpdate(TrackType aTrack) } LOGV("SchedulingUpdate(%s)", TrackTypeToStr(aTrack)); decoder.mUpdateScheduled = true; - RefPtr task(NewRunnableMethod( - "MediaFormatReader::Update", this, &MediaFormatReader::Update, aTrack)); + RefPtr task( + NewRunnableMethod(this, &MediaFormatReader::Update, aTrack)); OwnerThread()->Dispatch(task.forget()); } @@ -2711,8 +2709,8 @@ MediaFormatReader::ScheduleSeek() return; } mSeekScheduled = true; - OwnerThread()->Dispatch(NewRunnableMethod( - "MediaFormatReader::AttemptSeek", this, &MediaFormatReader::AttemptSeek)); + OwnerThread()->Dispatch( + NewRunnableMethod(this, &MediaFormatReader::AttemptSeek)); } void diff --git a/dom/media/MediaManager.cpp b/dom/media/MediaManager.cpp index 45362ace508d..697f44e4765d 100644 --- a/dom/media/MediaManager.cpp +++ b/dom/media/MediaManager.cpp @@ -651,12 +651,12 @@ template class ErrorCallbackRunnable : public Runnable { public: - ErrorCallbackRunnable(nsCOMPtr&& aOnSuccess, - nsCOMPtr&& aOnFailure, - MediaMgrError& aError, - uint64_t aWindowID) - : Runnable("ErrorCallbackRunnable") - , mError(&aError) + ErrorCallbackRunnable( + nsCOMPtr&& aOnSuccess, + nsCOMPtr&& aOnFailure, + MediaMgrError& aError, + uint64_t aWindowID) + : mError(&aError) , mWindowID(aWindowID) , mManager(MediaManager::GetInstance()) { @@ -991,8 +991,7 @@ public: AudioDevice* aAudioDevice, VideoDevice* aVideoDevice, PeerIdentity* aPeerIdentity) - : Runnable("GetUserMediaStreamRunnable") - , mConstraints(aConstraints) + : mConstraints(aConstraints) , mAudioDevice(aAudioDevice) , mVideoDevice(aVideoDevice) , mWindowID(aWindowID) @@ -1291,8 +1290,7 @@ public: callback.forget(), self->mWindowID, self->mOnFailure.forget()))); - NS_DispatchToMainThread(NS_NewRunnableFunction("MediaManager::SendPendingGUMRequest", - []() -> void { + NS_DispatchToMainThread(NS_NewRunnableFunction([]() -> void { RefPtr manager = MediaManager::GetInstance(); manager->SendPendingGUMRequest(); })); @@ -1449,15 +1447,12 @@ public: const MediaStreamConstraints& aConstraints, already_AddRefed aOnSuccess, already_AddRefed aOnFailure, - uint64_t aWindowID, - GetUserMediaWindowListener* aWindowListener, - SourceListener* aSourceListener, - MediaEnginePrefs& aPrefs, + uint64_t aWindowID, GetUserMediaWindowListener *aWindowListener, + SourceListener *aSourceListener, MediaEnginePrefs &aPrefs, const ipc::PrincipalInfo& aPrincipalInfo, bool aIsChrome, MediaManager::SourceSet* aSourceSet) - : Runnable("GetUserMediaTask") - , mConstraints(aConstraints) + : mConstraints(aConstraints) , mOnSuccess(aOnSuccess) , mOnFailure(aOnFailure) , mWindowID(aWindowID) @@ -1488,10 +1483,7 @@ public: NS_DispatchToMainThread(errorRunnable.forget()); // Do after ErrorCallbackRunnable Run()s, as it checks active window list NS_DispatchToMainThread(NewRunnableMethod>( - "GetUserMediaWindowListener::Remove", - mWindowListener, - &GetUserMediaWindowListener::Remove, - mSourceListener)); + mWindowListener, &GetUserMediaWindowListener::Remove, mSourceListener)); } NS_IMETHOD @@ -1550,8 +1542,7 @@ public: Fail(NS_LITERAL_STRING("NotReadableError"), NS_ConvertUTF8toUTF16(errorMsg)); } - NS_DispatchToMainThread(NS_NewRunnableFunction("MediaManager::SendPendingGUMRequest", - []() -> void { + NS_DispatchToMainThread(NS_NewRunnableFunction([]() -> void { RefPtr manager = MediaManager::GetInstance(); manager->SendPendingGUMRequest(); })); @@ -1668,9 +1659,8 @@ class GetUserMediaRunnableWrapper : public Runnable { public: // This object must take ownership of task - GetUserMediaRunnableWrapper(GetUserMediaTask* task) - : Runnable("GetUserMediaRunnableWrapper") - , mTask(task) { + GetUserMediaRunnableWrapper(GetUserMediaTask* task) : + mTask(task) { } ~GetUserMediaRunnableWrapper() { @@ -2984,13 +2974,10 @@ MediaManager::Shutdown() class ShutdownTask : public Runnable { public: - ShutdownTask(MediaManager* aManager, already_AddRefed aReply) - : mozilla::Runnable("ShutdownTask") - , mManager(aManager) - , mReply(aReply) - { - } - + ShutdownTask(MediaManager* aManager, + already_AddRefed aReply) + : mManager(aManager) + , mReply(aReply) {} private: NS_IMETHOD Run() override @@ -3724,9 +3711,7 @@ SourceListener::NotifyEvent(MediaStreamGraph* aGraph, NotifyFinished(); return; } - target->Dispatch(NewRunnableMethod("SourceListener::NotifyFinished", - this, - &SourceListener::NotifyFinished), + target->Dispatch(NewRunnableMethod(this, &SourceListener::NotifyFinished), NS_DISPATCH_NORMAL); break; case MediaStreamGraphEvent::EVENT_REMOVED: @@ -3738,9 +3723,7 @@ SourceListener::NotifyEvent(MediaStreamGraph* aGraph, NotifyRemoved(); return; } - target->Dispatch(NewRunnableMethod("SourceListener::NotifyRemoved", - this, - &SourceListener::NotifyRemoved), + target->Dispatch(NewRunnableMethod(this, &SourceListener::NotifyRemoved), NS_DISPATCH_NORMAL); break; case MediaStreamGraphEvent::EVENT_HAS_DIRECT_LISTENERS: @@ -3989,9 +3972,7 @@ GetUserMediaWindowListener::NotifySourceTrackStopped() } nsCOMPtr runnable = - NewRunnableMethod("GetUserMediaWindowListener::NotifyChromeOfTrackStops", - this, - &GetUserMediaWindowListener::NotifyChromeOfTrackStops); + NewRunnableMethod(this, &GetUserMediaWindowListener::NotifyChromeOfTrackStops); nsContentUtils::RunInStableState(runnable.forget()); mChromeNotificationTaskPosted = true; } @@ -4007,29 +3988,21 @@ GetUserMediaWindowListener::NotifyChromeOfTrackStops() } GetUserMediaNotificationEvent::GetUserMediaNotificationEvent( - GetUserMediaStatus aStatus, - uint64_t aWindowID) - : Runnable("GetUserMediaNotificationEvent") - , mStatus(aStatus) - , mWindowID(aWindowID) -{ -} + GetUserMediaStatus aStatus, + uint64_t aWindowID) +: mStatus(aStatus), mWindowID(aWindowID) {} GetUserMediaNotificationEvent::GetUserMediaNotificationEvent( - GetUserMediaStatus aStatus, - already_AddRefed aStream, - already_AddRefed>> - aOnTracksAvailableCallback, - uint64_t aWindowID, - already_AddRefed aError) - : Runnable("GetUserMediaNotificationEvent") - , mStream(aStream) - , mOnTracksAvailableCallback(aOnTracksAvailableCallback) - , mStatus(aStatus) - , mWindowID(aWindowID) - , mOnFailure(aError) -{ -} + GetUserMediaStatus aStatus, + already_AddRefed aStream, + already_AddRefed>> aOnTracksAvailableCallback, + uint64_t aWindowID, + already_AddRefed aError) +: mStream(aStream), + mOnTracksAvailableCallback(aOnTracksAvailableCallback), + mStatus(aStatus), + mWindowID(aWindowID), + mOnFailure(aError) {} GetUserMediaNotificationEvent::~GetUserMediaNotificationEvent() { } diff --git a/dom/media/MediaManager.h b/dom/media/MediaManager.h index 4136130c05c0..d02490830ba3 100644 --- a/dom/media/MediaManager.h +++ b/dom/media/MediaManager.h @@ -168,13 +168,9 @@ class ReleaseMediaOperationResource : public Runnable public: ReleaseMediaOperationResource( already_AddRefed aStream, - already_AddRefed>> - aOnTracksAvailableCallback) - : Runnable("ReleaseMediaOperationResource") - , mStream(aStream) - , mOnTracksAvailableCallback(aOnTracksAvailableCallback) - { - } + already_AddRefed>> aOnTracksAvailableCallback): + mStream(aStream), + mOnTracksAvailableCallback(aOnTracksAvailableCallback) {} NS_IMETHOD Run() override {return NS_OK;} private: RefPtr mStream; diff --git a/dom/media/MediaRecorder.cpp b/dom/media/MediaRecorder.cpp index 06e3191962b1..ea8c93309b19 100644 --- a/dom/media/MediaRecorder.cpp +++ b/dom/media/MediaRecorder.cpp @@ -177,8 +177,7 @@ class MediaRecorder::Session: public nsIObserver, { public: explicit PushBlobRunnable(Session* aSession) - : Runnable("dom::MediaRecorder::Session::PushBlobRunnable") - , mSession(aSession) + : mSession(aSession) { } NS_IMETHOD Run() override @@ -208,8 +207,7 @@ class MediaRecorder::Session: public nsIObserver, { public: explicit EncoderErrorNotifierRunnable(Session* aSession) - : Runnable("dom::MediaRecorder::Session::EncoderErrorNotifierRunnable") - , mSession(aSession) + : mSession(aSession) { } NS_IMETHOD Run() override @@ -236,9 +234,8 @@ class MediaRecorder::Session: public nsIObserver, class DispatchStartEventRunnable : public Runnable { public: - DispatchStartEventRunnable(Session* aSession, const nsAString& aEventName) - : Runnable("dom::MediaRecorder::Session::DispatchStartEventRunnable") - , mSession(aSession) + DispatchStartEventRunnable(Session* aSession, const nsAString & aEventName) + : mSession(aSession) , mEventName(aEventName) { } @@ -267,10 +264,7 @@ class MediaRecorder::Session: public nsIObserver, { public: explicit ExtractRunnable(Session* aSession) - : Runnable("dom::MediaRecorder::Session::ExtractRunnable") - , mSession(aSession) - { - } + : mSession(aSession) {} ~ExtractRunnable() {} @@ -370,16 +364,10 @@ class MediaRecorder::Session: public nsIObserver, { public: explicit DestroyRunnable(Session* aSession) - : Runnable("dom::MediaRecorder::Session::DestroyRunnable") - , mSession(aSession) - { - } + : mSession(aSession) {} explicit DestroyRunnable(already_AddRefed aSession) - : Runnable("dom::MediaRecorder::Session::DestroyRunnable") - , mSession(aSession) - { - } + : mSession(aSession) {} NS_IMETHOD Run() override { @@ -812,11 +800,8 @@ private: new DispatchStartEventRunnable(this, NS_LITERAL_STRING("start"))); if (NS_FAILED(rv)) { - NS_DispatchToMainThread( - NewRunnableMethod("dom::MediaRecorder::NotifyError", - mRecorder, - &MediaRecorder::NotifyError, - rv)); + NS_DispatchToMainThread(NewRunnableMethod(mRecorder, + &MediaRecorder::NotifyError, rv)); } if (NS_FAILED(NS_DispatchToMainThread(new EncoderErrorNotifierRunnable(this)))) { MOZ_ASSERT(false, "NS_DispatchToMainThread EncoderErrorNotifierRunnable failed"); diff --git a/dom/media/MediaResource.cpp b/dom/media/MediaResource.cpp index 316b850dfca6..045c43bba86a 100644 --- a/dom/media/MediaResource.cpp +++ b/dom/media/MediaResource.cpp @@ -67,11 +67,10 @@ MediaResource::Destroy() delete this; return; } - nsresult rv = SystemGroup::Dispatch( - "MediaResource::Destroy", - TaskCategory::Other, - NewNonOwningRunnableMethod( - "MediaResource::Destroy", this, &MediaResource::Destroy)); + nsresult rv = + SystemGroup::Dispatch("MediaResource::Destroy", + TaskCategory::Other, + NewNonOwningRunnableMethod(this, &MediaResource::Destroy)); MOZ_ALWAYS_SUCCEEDS(rv); } diff --git a/dom/media/MediaStreamGraph.cpp b/dom/media/MediaStreamGraph.cpp index ba4719b58cb6..93939231628e 100644 --- a/dom/media/MediaStreamGraph.cpp +++ b/dom/media/MediaStreamGraph.cpp @@ -3638,10 +3638,9 @@ MediaStreamGraphImpl::CollectSizesForMemoryReport( { public: explicit FinishCollectRunnable( - already_AddRefed aHandleReport, - already_AddRefed aHandlerData) - : mozilla::Runnable("FinishCollectRunnable") - , mHandleReport(aHandleReport) + already_AddRefed aHandleReport, + already_AddRefed aHandlerData) + : mHandleReport(aHandleReport) , mHandlerData(aHandlerData) {} diff --git a/dom/media/MediaStreamTrack.cpp b/dom/media/MediaStreamTrack.cpp index 1ec6df7a4ba5..853f9159adce 100644 --- a/dom/media/MediaStreamTrack.cpp +++ b/dom/media/MediaStreamTrack.cpp @@ -111,11 +111,7 @@ public: aGraph->DispatchToMainThreadAfterStreamStateUpdate( mAbstractMainThread, NewRunnableMethod>( - "dom::MediaStreamTrack::PrincipalHandleListener::" - "DoNotifyPrincipalHandleChanged", - this, - &PrincipalHandleListener::DoNotifyPrincipalHandleChanged, - aNewPrincipalHandle)); + this, &PrincipalHandleListener::DoNotifyPrincipalHandleChanged, aNewPrincipalHandle)); } protected: diff --git a/dom/media/MediaTimer.cpp b/dom/media/MediaTimer.cpp index 61b37c28eaaa..4baab3114328 100644 --- a/dom/media/MediaTimer.cpp +++ b/dom/media/MediaTimer.cpp @@ -42,10 +42,8 @@ MediaTimer::DispatchDestroy() // Destroy(), which may run completely before the stack if Dispatch() begins // to unwind. nsCOMPtr thread = mThread; - nsresult rv = - thread->Dispatch(NewNonOwningRunnableMethod( - "MediaTimer::Destroy", this, &MediaTimer::Destroy), - NS_DISPATCH_NORMAL); + nsresult rv = thread->Dispatch(NewNonOwningRunnableMethod(this, &MediaTimer::Destroy), + NS_DISPATCH_NORMAL); MOZ_DIAGNOSTIC_ASSERT(NS_SUCCEEDED(rv)); (void) rv; } @@ -99,9 +97,8 @@ MediaTimer::ScheduleUpdate() } mUpdateScheduled = true; - nsresult rv = mThread->Dispatch( - NewRunnableMethod("MediaTimer::Update", this, &MediaTimer::Update), - NS_DISPATCH_NORMAL); + nsresult rv = mThread->Dispatch(NewRunnableMethod(this, &MediaTimer::Update), + NS_DISPATCH_NORMAL); MOZ_DIAGNOSTIC_ASSERT(NS_SUCCEEDED(rv)); (void) rv; } diff --git a/dom/media/TextTrack.cpp b/dom/media/TextTrack.cpp index 7d0951eac463..19c38a2597d9 100644 --- a/dom/media/TextTrack.cpp +++ b/dom/media/TextTrack.cpp @@ -337,11 +337,11 @@ TextTrack::DispatchAsyncTrustedEvent(const nsString& aEventName) } RefPtr self = this; nsGlobalWindow::Cast(win)->Dispatch( - "TextTrack::DispatchAsyncTrustedEvent", - TaskCategory::Other, - NS_NewRunnableFunction( - "dom::TextTrack::DispatchAsyncTrustedEvent", - [self, aEventName]() { self->DispatchTrustedEvent(aEventName); })); + "TextTrack::DispatchAsyncTrustedEvent", TaskCategory::Other, + NS_NewRunnableFunction([self, aEventName]() { + self->DispatchTrustedEvent(aEventName); + }) + ); } bool diff --git a/dom/media/TextTrackList.cpp b/dom/media/TextTrackList.cpp index abe6e5599d91..47daa6ca77de 100644 --- a/dom/media/TextTrackList.cpp +++ b/dom/media/TextTrackList.cpp @@ -141,8 +141,7 @@ class TrackEventRunner : public Runnable { public: TrackEventRunner(TextTrackList* aList, nsIDOMEvent* aEvent) - : Runnable("dom::TrackEventRunner") - , mList(aList) + : mList(aList) , mEvent(aEvent) {} diff --git a/dom/media/VideoUtils.cpp b/dom/media/VideoUtils.cpp index 73eb65d3d04d..9b9e6f8b39fe 100644 --- a/dom/media/VideoUtils.cpp +++ b/dom/media/VideoUtils.cpp @@ -396,8 +396,8 @@ LogToBrowserConsole(const nsAString& aMsg) { if (!NS_IsMainThread()) { nsString msg(aMsg); - nsCOMPtr task = NS_NewRunnableFunction( - "LogToBrowserConsole", [msg]() { LogToBrowserConsole(msg); }); + nsCOMPtr task = + NS_NewRunnableFunction([msg]() { LogToBrowserConsole(msg); }); SystemGroup::Dispatch("LogToBrowserConsole", TaskCategory::Other, task.forget()); return; } diff --git a/dom/media/VideoUtils.h b/dom/media/VideoUtils.h index 4f7b88b93122..2aeba950aaaf 100644 --- a/dom/media/VideoUtils.h +++ b/dom/media/VideoUtils.h @@ -92,11 +92,7 @@ private: class ShutdownThreadEvent : public Runnable { public: - explicit ShutdownThreadEvent(nsIThread* aThread) - : Runnable("ShutdownThreadEvent") - , mThread(aThread) - { - } + explicit ShutdownThreadEvent(nsIThread* aThread) : mThread(aThread) {} ~ShutdownThreadEvent() {} NS_IMETHOD Run() override { mThread->Shutdown(); @@ -271,11 +267,8 @@ RefPtr InvokeUntil(Work aWork, Condition aCondition) { } else if (aLocalCondition()) { aPromise->Resolve(true, __func__); } else { - nsCOMPtr r = NS_NewRunnableFunction( - "InvokeUntil::Helper::Iteration", - [aPromise, aLocalWork, aLocalCondition]() { - Iteration(aPromise, aLocalWork, aLocalCondition); - }); + nsCOMPtr r = + NS_NewRunnableFunction([aPromise, aLocalWork, aLocalCondition] () { Iteration(aPromise, aLocalWork, aLocalCondition); }); AbstractThread::GetCurrent()->Dispatch(r.forget()); } } diff --git a/dom/media/android/AndroidMediaPluginHost.cpp b/dom/media/android/AndroidMediaPluginHost.cpp index 9d8842daba54..c7088ce32661 100644 --- a/dom/media/android/AndroidMediaPluginHost.cpp +++ b/dom/media/android/AndroidMediaPluginHost.cpp @@ -46,7 +46,7 @@ static char* GetResource(Decoder *aDecoder) class GetIntPrefEvent : public Runnable { public: GetIntPrefEvent(const char* aPref, int32_t* aResult) - : Runnable("GetIntPrefEvent"), mPref(aPref), mResult(aResult) {} + : mPref(aPref), mResult(aResult) {} NS_IMETHOD Run() override { return Preferences::GetInt(mPref, mResult); } diff --git a/dom/media/android/AndroidMediaResourceServer.cpp b/dom/media/android/AndroidMediaResourceServer.cpp index 8fe7ba5e36e6..37681b26cc70 100644 --- a/dom/media/android/AndroidMediaResourceServer.cpp +++ b/dom/media/android/AndroidMediaResourceServer.cpp @@ -124,11 +124,7 @@ private: public: ServeResourceEvent(nsIInputStream* aInput, nsIOutputStream* aOutput, AndroidMediaResourceServer* aServer) - : Runnable("ServeResourceEvent") - , mInput(aInput) - , mOutput(aOutput) - , mServer(aServer) - {} + : mInput(aInput), mOutput(aOutput), mServer(aServer) {} // This method runs on the thread and exits when it has completed the // HTTP request. @@ -392,9 +388,8 @@ ResourceSocketListener::OnStopListening(nsIServerSocket* aServ, nsresult aStatus return NS_OK; } -AndroidMediaResourceServer::AndroidMediaResourceServer() - : Runnable("AndroidMediaResourceServer") - , mMutex("AndroidMediaResourceServer") +AndroidMediaResourceServer::AndroidMediaResourceServer() : + mMutex("AndroidMediaResourceServer") { } diff --git a/dom/media/eme/mediadrm/MediaDrmCDMProxy.cpp b/dom/media/eme/mediadrm/MediaDrmCDMProxy.cpp index c9b73809d65c..c042219d5c08 100644 --- a/dom/media/eme/mediadrm/MediaDrmCDMProxy.cpp +++ b/dom/media/eme/mediadrm/MediaDrmCDMProxy.cpp @@ -69,8 +69,7 @@ MediaDrmCDMProxy::Init(PromiseId aPromiseId, } mCDM = mozilla::MakeUnique(mKeySystem); - nsCOMPtr task(NewRunnableMethod("MediaDrmCDMProxy::md_Init", - this, + nsCOMPtr task(NewRunnableMethod(this, &MediaDrmCDMProxy::md_Init, aPromiseId)); mOwnerThread->Dispatch(task, NS_DISPATCH_NORMAL); @@ -94,8 +93,7 @@ MediaDrmCDMProxy::CreateSession(uint32_t aCreateSessionToken, data->mInitData = Move(aInitData); nsCOMPtr task( - NewRunnableMethod&&>("MediaDrmCDMProxy::md_CreateSession", - this, + NewRunnableMethod&&>(this, &MediaDrmCDMProxy::md_CreateSession, Move(data))); mOwnerThread->Dispatch(task, NS_DISPATCH_NORMAL); @@ -135,8 +133,7 @@ MediaDrmCDMProxy::UpdateSession(const nsAString& aSessionId, data->mResponse = Move(aResponse); nsCOMPtr task( - NewRunnableMethod&&>("MediaDrmCDMProxy::md_UpdateSession", - this, + NewRunnableMethod&&>(this, &MediaDrmCDMProxy::md_UpdateSession, Move(data))); mOwnerThread->Dispatch(task, NS_DISPATCH_NORMAL); @@ -155,8 +152,7 @@ MediaDrmCDMProxy::CloseSession(const nsAString& aSessionId, data->mSessionId = NS_ConvertUTF16toUTF8(aSessionId); nsCOMPtr task( - NewRunnableMethod&&>("MediaDrmCDMProxy::md_CloseSession", - this, + NewRunnableMethod&&>(this, &MediaDrmCDMProxy::md_CloseSession, Move(data))); mOwnerThread->Dispatch(task, NS_DISPATCH_NORMAL); @@ -177,8 +173,7 @@ MediaDrmCDMProxy::Shutdown() MOZ_ASSERT(NS_IsMainThread()); MOZ_ASSERT(mOwnerThread); nsCOMPtr task( - NewRunnableMethod("MediaDrmCDMProxy::md_Shutdown", - this, &MediaDrmCDMProxy::md_Shutdown)); + NewRunnableMethod(this, &MediaDrmCDMProxy::md_Shutdown)); mOwnerThread->Dispatch(task, NS_DISPATCH_NORMAL); mOwnerThread->Shutdown(); @@ -331,8 +326,7 @@ MediaDrmCDMProxy::ResolvePromise(PromiseId aId) } } else { nsCOMPtr task; - task = NewRunnableMethod("MediaDrmCDMProxy::ResolvePromise", - this, + task = NewRunnableMethod(this, &MediaDrmCDMProxy::ResolvePromise, aId); mMainThread->Dispatch(task.forget(), NS_DISPATCH_NORMAL); @@ -414,8 +408,7 @@ MediaDrmCDMProxy::md_Init(uint32_t aPromiseId) mCallback.reset(new MediaDrmCDMCallbackProxy(this)); mCDM->Init(mCallback.get()); nsCOMPtr task( - NewRunnableMethod("MediaDrmCDMProxy::OnCDMCreated", - this, + NewRunnableMethod(this, &MediaDrmCDMProxy::OnCDMCreated, aPromiseId)); mMainThread->Dispatch(task.forget(), NS_DISPATCH_NORMAL); diff --git a/dom/media/eme/mediadrm/MediaDrmCDMProxy.h b/dom/media/eme/mediadrm/MediaDrmCDMProxy.h index 23be97cc396f..2989f63165bc 100644 --- a/dom/media/eme/mediadrm/MediaDrmCDMProxy.h +++ b/dom/media/eme/mediadrm/MediaDrmCDMProxy.h @@ -151,8 +151,7 @@ private: PromiseId aId, nsresult aCode, const nsCString& aReason) - : Runnable("RejectPromiseTask") - , mProxy(aProxy) + : mProxy(aProxy) , mId(aId) , mCode(aCode) , mReason(aReason) diff --git a/dom/media/gmp/ChromiumCDMParent.cpp b/dom/media/gmp/ChromiumCDMParent.cpp index 92ccdf5278fe..57cbc9c80e44 100644 --- a/dom/media/gmp/ChromiumCDMParent.cpp +++ b/dom/media/gmp/ChromiumCDMParent.cpp @@ -287,8 +287,7 @@ ChromiumCDMParent::RecvOnResolveNewSessionPromise(const uint32_t& aPromiseId, } RefPtr task = - NewRunnableMethod("ChromiumCDMProxy::OnSetSessionId", - mProxy, + NewRunnableMethod(mProxy, &ChromiumCDMProxy::OnSetSessionId, token.value(), NS_ConvertUTF8toUTF16(aSessionId)); @@ -313,7 +312,6 @@ ChromiumCDMParent::RecvResolveLoadSessionPromise(const uint32_t& aPromiseId, } NS_DispatchToMainThread(NewRunnableMethod( - "ChromiumCDMProxy::OnResolveLoadSessionPromise", mProxy, &ChromiumCDMProxy::OnResolveLoadSessionPromise, aPromiseId, @@ -331,11 +329,8 @@ ChromiumCDMParent::ResolvePromise(uint32_t aPromiseId) if (!mProxy || mIsShutdown) { return; } - NS_DispatchToMainThread( - NewRunnableMethod("ChromiumCDMProxy::ResolvePromise", - mProxy, - &ChromiumCDMProxy::ResolvePromise, - aPromiseId)); + NS_DispatchToMainThread(NewRunnableMethod( + mProxy, &ChromiumCDMProxy::ResolvePromise, aPromiseId)); } ipc::IPCResult @@ -385,7 +380,6 @@ ChromiumCDMParent::RejectPromise(uint32_t aPromiseId, return; } NS_DispatchToMainThread(NewRunnableMethod( - "ChromiumCDMProxy::RejectPromise", mProxy, &ChromiumCDMProxy::RejectPromise, aPromiseId, @@ -434,10 +428,9 @@ ChromiumCDMParent::RecvOnSessionMessage(const nsCString& aSessionId, dom::MediaKeyMessageType messageType = ToDOMMessageType(aMessageType); nsTArray msg(Move(aMessage)); NS_DispatchToMainThread( - NS_NewRunnableFunction("gmp::ChromiumCDMParent::RecvOnSessionMessage", - [proxy, sid, messageType, msg]() mutable { - proxy->OnSessionMessage(sid, messageType, msg); - })); + NS_NewRunnableFunction([proxy, sid, messageType, msg]() mutable { + proxy->OnSessionMessage(sid, messageType, msg); + })); return IPC_OK(); } @@ -486,8 +479,7 @@ ChromiumCDMParent::RecvOnSessionKeysChange( } if (keyStatusesChange) { NS_DispatchToMainThread( - NewRunnableMethod("ChromiumCDMProxy::OnKeyStatusesChange", - mProxy, + NewRunnableMethod(mProxy, &ChromiumCDMProxy::OnKeyStatusesChange, NS_ConvertUTF8toUTF16(aSessionId))); } @@ -505,7 +497,6 @@ ChromiumCDMParent::RecvOnExpirationChange(const nsCString& aSessionId, return IPC_OK(); } NS_DispatchToMainThread(NewRunnableMethod( - "ChromiumCDMProxy::OnExpirationChange", mProxy, &ChromiumCDMProxy::OnExpirationChange, NS_ConvertUTF8toUTF16(aSessionId), @@ -521,8 +512,7 @@ ChromiumCDMParent::RecvOnSessionClosed(const nsCString& aSessionId) return IPC_OK(); } NS_DispatchToMainThread( - NewRunnableMethod("ChromiumCDMProxy::OnSessionClosed", - mProxy, + NewRunnableMethod(mProxy, &ChromiumCDMProxy::OnSessionClosed, NS_ConvertUTF8toUTF16(aSessionId))); return IPC_OK(); @@ -540,7 +530,6 @@ ChromiumCDMParent::RecvOnLegacySessionError(const nsCString& aSessionId, } NS_DispatchToMainThread( NewRunnableMethod( - "ChromiumCDMProxy::OnSessionError", mProxy, &ChromiumCDMProxy::OnSessionError, NS_ConvertUTF8toUTF16(aSessionId), @@ -905,8 +894,8 @@ ChromiumCDMParent::ActorDestroy(ActorDestroyReason aWhy) } bool abnormalShutdown = (aWhy == AbnormalShutdown); if (abnormalShutdown && proxy) { - RefPtr task = NewRunnableMethod( - "ChromiumCDMProxy::Terminated", proxy, &ChromiumCDMProxy::Terminated); + RefPtr task = + NewRunnableMethod(proxy, &ChromiumCDMProxy::Terminated); NS_DispatchToMainThread(task); } MaybeDisconnect(abnormalShutdown); @@ -1137,8 +1126,8 @@ ChromiumCDMParent::Shutdown() // collection, and that will not shut down cleanly as the GMP thread will be // shutdown by then. if (mProxy) { - RefPtr task = NewRunnableMethod( - "ChromiumCDMProxy::Shutdown", mProxy, &ChromiumCDMProxy::Shutdown); + RefPtr task = + NewRunnableMethod(mProxy, &ChromiumCDMProxy::Shutdown); NS_DispatchToMainThread(task.forget()); } diff --git a/dom/media/gmp/ChromiumCDMProxy.cpp b/dom/media/gmp/ChromiumCDMProxy.cpp index 7fa79a5120d8..8b78e82b5b6c 100644 --- a/dom/media/gmp/ChromiumCDMProxy.cpp +++ b/dom/media/gmp/ChromiumCDMProxy.cpp @@ -74,7 +74,6 @@ ChromiumCDMProxy::Init(PromiseId aPromiseId, RefPtr self(this); nsCString keySystem = NS_ConvertUTF16toUTF8(mKeySystem); RefPtr task(NS_NewRunnableFunction( - "ChromiumCDMProxy::Init", [self, nodeId, helper, aPromiseId, thread, keySystem]() -> void { MOZ_ASSERT(self->IsOnOwnerThread()); @@ -126,12 +125,9 @@ ChromiumCDMProxy::OnCDMCreated(uint32_t aPromiseId) this); if (!NS_IsMainThread()) { - mMainThread->Dispatch( - NewRunnableMethod("ChromiumCDMProxy::OnCDMCreated", - this, - &ChromiumCDMProxy::OnCDMCreated, - aPromiseId), - NS_DISPATCH_NORMAL); + mMainThread->Dispatch(NewRunnableMethod( + this, &ChromiumCDMProxy::OnCDMCreated, aPromiseId), + NS_DISPATCH_NORMAL); return; } MOZ_ASSERT(NS_IsMainThread()); @@ -213,19 +209,18 @@ ChromiumCDMProxy::CreateSession(uint32_t aCreateSessionToken, return; } - mGMPThread->Dispatch(NewRunnableMethod>( - "gmp::ChromiumCDMParent::CreateSession", - cdm, - &gmp::ChromiumCDMParent::CreateSession, - aCreateSessionToken, - sessionType, - initDataType, - aPromiseId, - Move(aInitData))); + mGMPThread->Dispatch( + NewRunnableMethod>(cdm, + &gmp::ChromiumCDMParent::CreateSession, + aCreateSessionToken, + sessionType, + initDataType, + aPromiseId, + Move(aInitData))); } void @@ -244,7 +239,6 @@ ChromiumCDMProxy::LoadSession(PromiseId aPromiseId, } mGMPThread->Dispatch(NewRunnableMethod( - "gmp::ChromiumCDMParent::LoadSession", cdm, &gmp::ChromiumCDMParent::LoadSession, aPromiseId, @@ -270,7 +264,6 @@ ChromiumCDMProxy::SetServerCertificate(PromiseId aPromiseId, } mGMPThread->Dispatch(NewRunnableMethod>( - "gmp::ChromiumCDMParent::SetServerCertificate", cdm, &gmp::ChromiumCDMParent::SetServerCertificate, aPromiseId, @@ -297,7 +290,6 @@ ChromiumCDMProxy::UpdateSession(const nsAString& aSessionId, } mGMPThread->Dispatch( NewRunnableMethod>( - "gmp::ChromiumCDMParent::UpdateSession", cdm, &gmp::ChromiumCDMParent::UpdateSession, NS_ConvertUTF16toUTF8(aSessionId), @@ -322,7 +314,6 @@ ChromiumCDMProxy::CloseSession(const nsAString& aSessionId, return; } mGMPThread->Dispatch(NewRunnableMethod( - "gmp::ChromiumCDMParent::CloseSession", cdm, &gmp::ChromiumCDMParent::CloseSession, NS_ConvertUTF16toUTF8(aSessionId), @@ -346,7 +337,6 @@ ChromiumCDMProxy::RemoveSession(const nsAString& aSessionId, return; } mGMPThread->Dispatch(NewRunnableMethod( - "gmp::ChromiumCDMParent::RemoveSession", cdm, &gmp::ChromiumCDMParent::RemoveSession, NS_ConvertUTF16toUTF8(aSessionId), @@ -368,8 +358,8 @@ ChromiumCDMProxy::Shutdown() // We need to keep this proxy alive until the parent has finished its // Shutdown (as it may still try to use the proxy until then). RefPtr self(this); - nsCOMPtr task = NS_NewRunnableFunction( - "ChromiumCDMProxy::Shutdown", [self, cdm]() { cdm->Shutdown(); }); + nsCOMPtr task = + NS_NewRunnableFunction([self, cdm]() { cdm->Shutdown(); }); mGMPThread->Dispatch(task.forget()); } } @@ -382,12 +372,7 @@ ChromiumCDMProxy::RejectPromise(PromiseId aId, if (!NS_IsMainThread()) { nsCOMPtr task; task = NewRunnableMethod( - "ChromiumCDMProxy::RejectPromise", - this, - &ChromiumCDMProxy::RejectPromise, - aId, - aCode, - aReason); + this, &ChromiumCDMProxy::RejectPromise, aId, aCode, aReason); NS_DispatchToMainThread(task); return; } @@ -405,10 +390,8 @@ ChromiumCDMProxy::ResolvePromise(PromiseId aId) { if (!NS_IsMainThread()) { nsCOMPtr task; - task = NewRunnableMethod("ChromiumCDMProxy::ResolvePromise", - this, - &ChromiumCDMProxy::ResolvePromise, - aId); + task = NewRunnableMethod( + this, &ChromiumCDMProxy::ResolvePromise, aId); NS_DispatchToMainThread(task); return; } diff --git a/dom/media/gmp/GMPCDMCallbackProxy.cpp b/dom/media/gmp/GMPCDMCallbackProxy.cpp index 12d27e6a65db..10f4770d6066 100644 --- a/dom/media/gmp/GMPCDMCallbackProxy.cpp +++ b/dom/media/gmp/GMPCDMCallbackProxy.cpp @@ -30,9 +30,12 @@ GMPCDMCallbackProxy::SetDecryptorId(uint32_t aId) RefPtr proxy = mProxy; mMainThread->Dispatch( - NS_NewRunnableFunction("GMPCDMCallbackProxy::SetDecryptorId", - [proxy, aId]() { proxy->OnSetDecryptorId(aId); }), - NS_DISPATCH_NORMAL); + NS_NewRunnableFunction([proxy, aId] () + { + proxy->OnSetDecryptorId(aId); + }), + NS_DISPATCH_NORMAL + ); } void @@ -44,10 +47,14 @@ GMPCDMCallbackProxy::SetSessionId(uint32_t aToken, RefPtr proxy = mProxy; auto sid = NS_ConvertUTF8toUTF16(aSessionId); mMainThread->Dispatch( - NS_NewRunnableFunction( - "GMPCDMCallbackProxy::SetSessionId", - [proxy, aToken, sid]() { proxy->OnSetSessionId(aToken, sid); }), - NS_DISPATCH_NORMAL); + NS_NewRunnableFunction([proxy, + aToken, + sid] () + { + proxy->OnSetSessionId(aToken, sid); + }), + NS_DISPATCH_NORMAL + ); } void @@ -58,12 +65,12 @@ GMPCDMCallbackProxy::ResolveLoadSessionPromise(uint32_t aPromiseId, RefPtr proxy = mProxy; mMainThread->Dispatch( - NS_NewRunnableFunction("GMPCDMCallbackProxy::ResolveLoadSessionPromise", - [proxy, aPromiseId, aSuccess]() { - proxy->OnResolveLoadSessionPromise(aPromiseId, - aSuccess); - }), - NS_DISPATCH_NORMAL); + NS_NewRunnableFunction([proxy, aPromiseId, aSuccess] () + { + proxy->OnResolveLoadSessionPromise(aPromiseId, aSuccess); + }), + NS_DISPATCH_NORMAL + ); } void @@ -84,12 +91,15 @@ GMPCDMCallbackProxy::RejectPromise(uint32_t aPromiseId, RefPtr proxy = mProxy; mMainThread->Dispatch( - NS_NewRunnableFunction("GMPCDMCallbackProxy::RejectPromise", - [proxy, aPromiseId, aException, aMessage]() { - proxy->OnRejectPromise( - aPromiseId, aException, aMessage); - }), - NS_DISPATCH_NORMAL); + NS_NewRunnableFunction([proxy, + aPromiseId, + aException, + aMessage] () + { + proxy->OnRejectPromise(aPromiseId, aException, aMessage); + }), + NS_DISPATCH_NORMAL + ); } void @@ -103,11 +113,15 @@ GMPCDMCallbackProxy::SessionMessage(const nsCString& aSessionId, auto sid = NS_ConvertUTF8toUTF16(aSessionId); nsTArray msg(aMessage); mMainThread->Dispatch( - NS_NewRunnableFunction("GMPCDMCallbackProxy::SessionMessage", - [proxy, sid, aMessageType, msg]() mutable { - proxy->OnSessionMessage(sid, aMessageType, msg); - }), - NS_DISPATCH_NORMAL); + NS_NewRunnableFunction([proxy, + sid, + aMessageType, + msg] () mutable + { + proxy->OnSessionMessage(sid, aMessageType, msg); + }), + NS_DISPATCH_NORMAL + ); } void @@ -119,11 +133,14 @@ GMPCDMCallbackProxy::ExpirationChange(const nsCString& aSessionId, RefPtr proxy = mProxy; auto sid = NS_ConvertUTF8toUTF16(aSessionId); mMainThread->Dispatch( - NS_NewRunnableFunction("GMPCDMCallbackProxy::ExpirationChange", - [proxy, sid, aExpiryTime]() { - proxy->OnExpirationChange(sid, aExpiryTime); - }), - NS_DISPATCH_NORMAL); + NS_NewRunnableFunction([proxy, + sid, + aExpiryTime] () + { + proxy->OnExpirationChange(sid, aExpiryTime); + }), + NS_DISPATCH_NORMAL + ); } void @@ -140,17 +157,22 @@ GMPCDMCallbackProxy::SessionClosed(const nsCString& aSessionId) if (keyStatusesChange) { RefPtr proxy = mProxy; mMainThread->Dispatch( - NS_NewRunnableFunction( - "GMPCDMCallbackProxy::SessionClosed", - [proxy, sid]() { proxy->OnKeyStatusesChange(sid); }), - NS_DISPATCH_NORMAL); + NS_NewRunnableFunction([proxy, sid] () + { + proxy->OnKeyStatusesChange(sid); + }), + NS_DISPATCH_NORMAL + ); } RefPtr proxy = mProxy; mMainThread->Dispatch( - NS_NewRunnableFunction("GMPCDMCallbackProxy::SessionClosed", - [proxy, sid]() { proxy->OnSessionClosed(sid); }), - NS_DISPATCH_NORMAL); + NS_NewRunnableFunction([proxy, sid] () + { + proxy->OnSessionClosed(sid); + }), + NS_DISPATCH_NORMAL + ); } void @@ -165,12 +187,19 @@ GMPCDMCallbackProxy::SessionError(const nsCString& aSessionId, auto sid = NS_ConvertUTF8toUTF16(aSessionId); auto msg = NS_ConvertUTF8toUTF16(aMessage); mMainThread->Dispatch( - NS_NewRunnableFunction("GMPCDMCallbackProxy::SessionError", - [proxy, sid, aException, aSystemCode, msg]() { - proxy->OnSessionError( - sid, aException, aSystemCode, msg); - }), - NS_DISPATCH_NORMAL); + NS_NewRunnableFunction([proxy, + sid, + aException, + aSystemCode, + msg] () + { + proxy->OnSessionError(sid, + aException, + aSystemCode, + msg); + }), + NS_DISPATCH_NORMAL + ); } void @@ -199,10 +228,12 @@ GMPCDMCallbackProxy::BatchedKeyStatusChangedInternal(const nsCString& aSessionId RefPtr proxy = mProxy; auto sid = NS_ConvertUTF8toUTF16(aSessionId); mMainThread->Dispatch( - NS_NewRunnableFunction( - "GMPCDMCallbackProxy::BatchedKeyStatusChangedInternal", - [proxy, sid]() { proxy->OnKeyStatusesChange(sid); }), - NS_DISPATCH_NORMAL); + NS_NewRunnableFunction([proxy, sid] () + { + proxy->OnKeyStatusesChange(sid); + }), + NS_DISPATCH_NORMAL + ); } } @@ -223,9 +254,12 @@ GMPCDMCallbackProxy::Terminated() RefPtr proxy = mProxy; mMainThread->Dispatch( - NS_NewRunnableFunction("GMPCDMCallbackProxy::Terminated", - [proxy]() { proxy->Terminated(); }), - NS_DISPATCH_NORMAL); + NS_NewRunnableFunction([proxy] () + { + proxy->Terminated(); + }), + NS_DISPATCH_NORMAL + ); } } // namespace mozilla diff --git a/dom/media/gmp/GMPCDMProxy.cpp b/dom/media/gmp/GMPCDMProxy.cpp index 78074ddb95bd..63ca56b302b4 100644 --- a/dom/media/gmp/GMPCDMProxy.cpp +++ b/dom/media/gmp/GMPCDMProxy.cpp @@ -92,8 +92,7 @@ GMPCDMProxy::Init(PromiseId aPromiseId, data->mGMPName = aGMPName; data->mCrashHelper = mCrashHelper; nsCOMPtr task( - NewRunnableMethod&&>("GMPCDMProxy::gmp_Init", - this, + NewRunnableMethod&&>(this, &GMPCDMProxy::gmp_Init, Move(data))); mOwnerThread->EventTarget()->Dispatch(task.forget(), NS_DISPATCH_NORMAL); @@ -140,8 +139,7 @@ void GMPCDMProxy::OnSetDecryptorId(uint32_t aId) MOZ_ASSERT(mCreatePromiseId); mDecryptorId = aId; nsCOMPtr task( - NewRunnableMethod("GMPCDMProxy::OnCDMCreated", - this, + NewRunnableMethod(this, &GMPCDMProxy::OnCDMCreated, mCreatePromiseId)); mMainThread->Dispatch(task.forget(), NS_DISPATCH_NORMAL); @@ -296,8 +294,7 @@ GMPCDMProxy::CreateSession(uint32_t aCreateSessionToken, data->mInitData = Move(aInitData); nsCOMPtr task( - NewRunnableMethod&&>("GMPCDMProxy::gmp_CreateSession", - this, + NewRunnableMethod&&>(this, &GMPCDMProxy::gmp_CreateSession, Move(data))); mOwnerThread->EventTarget()->Dispatch(task.forget(), NS_DISPATCH_NORMAL); @@ -340,8 +337,7 @@ GMPCDMProxy::LoadSession(PromiseId aPromiseId, data->mPromiseId = aPromiseId; data->mSessionId = NS_ConvertUTF16toUTF8(aSessionId); nsCOMPtr task( - NewRunnableMethod&&>("GMPCDMProxy::gmp_LoadSession", - this, + NewRunnableMethod&&>(this, &GMPCDMProxy::gmp_LoadSession, Move(data))); mOwnerThread->EventTarget()->Dispatch(task.forget(), NS_DISPATCH_NORMAL); @@ -371,8 +367,7 @@ GMPCDMProxy::SetServerCertificate(PromiseId aPromiseId, data->mPromiseId = aPromiseId; data->mCert = Move(aCert); nsCOMPtr task( - NewRunnableMethod&&>("GMPCDMProxy::gmp_SetServerCertificate", - this, + NewRunnableMethod&&>(this, &GMPCDMProxy::gmp_SetServerCertificate, Move(data))); mOwnerThread->EventTarget()->Dispatch(task.forget(), NS_DISPATCH_NORMAL); @@ -404,8 +399,7 @@ GMPCDMProxy::UpdateSession(const nsAString& aSessionId, data->mSessionId = NS_ConvertUTF16toUTF8(aSessionId); data->mResponse = Move(aResponse); nsCOMPtr task( - NewRunnableMethod&&>("GMPCDMProxy::gmp_UpdateSession", - this, + NewRunnableMethod&&>(this, &GMPCDMProxy::gmp_UpdateSession, Move(data))); mOwnerThread->EventTarget()->Dispatch(task.forget(), NS_DISPATCH_NORMAL); @@ -436,8 +430,7 @@ GMPCDMProxy::CloseSession(const nsAString& aSessionId, data->mPromiseId = aPromiseId; data->mSessionId = NS_ConvertUTF16toUTF8(aSessionId); nsCOMPtr task( - NewRunnableMethod&&>("GMPCDMProxy::gmp_CloseSession", - this, + NewRunnableMethod&&>(this, &GMPCDMProxy::gmp_CloseSession, Move(data))); mOwnerThread->EventTarget()->Dispatch(task.forget(), NS_DISPATCH_NORMAL); @@ -466,8 +459,7 @@ GMPCDMProxy::RemoveSession(const nsAString& aSessionId, data->mPromiseId = aPromiseId; data->mSessionId = NS_ConvertUTF16toUTF8(aSessionId); nsCOMPtr task( - NewRunnableMethod&&>("GMPCDMProxy::gmp_RemoveSession", - this, + NewRunnableMethod&&>(this, &GMPCDMProxy::gmp_RemoveSession, Move(data))); mOwnerThread->EventTarget()->Dispatch(task.forget(), NS_DISPATCH_NORMAL); @@ -491,8 +483,7 @@ GMPCDMProxy::Shutdown() MOZ_ASSERT(NS_IsMainThread()); mKeys.Clear(); // Note: This may end up being the last owning reference to the GMPCDMProxy. - nsCOMPtr task(NewRunnableMethod( - "GMPCDMProxy::gmp_Shutdown", this, &GMPCDMProxy::gmp_Shutdown)); + nsCOMPtr task(NewRunnableMethod(this, &GMPCDMProxy::gmp_Shutdown)); if (mOwnerThread) { mOwnerThread->EventTarget()->Dispatch(task.forget(), NS_DISPATCH_NORMAL); } @@ -544,8 +535,9 @@ GMPCDMProxy::ResolvePromise(PromiseId aId) } } else { nsCOMPtr task; - task = NewRunnableMethod( - "GMPCDMProxy::ResolvePromise", this, &GMPCDMProxy::ResolvePromise, aId); + task = NewRunnableMethod(this, + &GMPCDMProxy::ResolvePromise, + aId); mMainThread->Dispatch(task.forget(), NS_DISPATCH_NORMAL); } } @@ -692,8 +684,7 @@ GMPCDMProxy::Decrypt(MediaRawData* aSample) RefPtr promise(job->Ensure()); nsCOMPtr task( - NewRunnableMethod>("GMPCDMProxy::gmp_Decrypt", - this, &GMPCDMProxy::gmp_Decrypt, job)); + NewRunnableMethod>(this, &GMPCDMProxy::gmp_Decrypt, job)); mOwnerThread->EventTarget()->Dispatch(task.forget(), NS_DISPATCH_NORMAL); return promise; } diff --git a/dom/media/gmp/GMPCDMProxy.h b/dom/media/gmp/GMPCDMProxy.h index 3a5a2e559739..a1ec05960395 100644 --- a/dom/media/gmp/GMPCDMProxy.h +++ b/dom/media/gmp/GMPCDMProxy.h @@ -191,8 +191,7 @@ private: PromiseId aId, nsresult aCode, const nsCString& aReason) - : Runnable("GMPCDMProxy::RejectPromiseTask") - , mProxy(aProxy) + : mProxy(aProxy) , mId(aId) , mCode(aCode) , mReason(aReason) diff --git a/dom/media/gmp/GMPContentParent.cpp b/dom/media/gmp/GMPContentParent.cpp index 2c5da871714b..8ae313eb9956 100644 --- a/dom/media/gmp/GMPContentParent.cpp +++ b/dom/media/gmp/GMPContentParent.cpp @@ -50,8 +50,7 @@ class ReleaseGMPContentParent : public Runnable { public: explicit ReleaseGMPContentParent(GMPContentParent* aToRelease) - : Runnable("gmp::ReleaseGMPContentParent") - , mToRelease(aToRelease) + : mToRelease(aToRelease) { } @@ -146,8 +145,8 @@ GMPContentParent::CloseIfUnused() GeckoMediaPluginServiceChild::GetSingleton()); gmp->RemoveGMPContentParent(toClose); } - NS_DispatchToCurrentThread(NewRunnableMethod( - "gmp::GMPContentParent::Close", toClose, &GMPContentParent::Close)); + NS_DispatchToCurrentThread(NewRunnableMethod(toClose, + &GMPContentParent::Close)); } } diff --git a/dom/media/gmp/GMPCrashHelper.cpp b/dom/media/gmp/GMPCrashHelper.cpp index 74fa5bfde324..f46c4e833719 100644 --- a/dom/media/gmp/GMPCrashHelper.cpp +++ b/dom/media/gmp/GMPCrashHelper.cpp @@ -19,11 +19,9 @@ GMPCrashHelper::Destroy() delete this; } else { // Don't addref, as then we'd end up releasing after the detele runs! - SystemGroup::Dispatch("GMPCrashHelper::Destroy", - TaskCategory::Other, - NewNonOwningRunnableMethod("GMPCrashHelper::Destroy", - this, - &GMPCrashHelper::Destroy)); + SystemGroup::Dispatch( + "GMPCrashHelper::Destroy", TaskCategory::Other, + NewNonOwningRunnableMethod(this, &GMPCrashHelper::Destroy)); } } diff --git a/dom/media/gmp/GMPDecryptorChild.cpp b/dom/media/gmp/GMPDecryptorChild.cpp index 532457694b6b..2cc46de05b48 100644 --- a/dom/media/gmp/GMPDecryptorChild.cpp +++ b/dom/media/gmp/GMPDecryptorChild.cpp @@ -196,12 +196,10 @@ GMPDecryptorChild::Decrypted(GMPBuffer* aBuffer, GMPErr aResult) if (!ON_GMP_THREAD()) { // We should run this whole method on the GMP thread since the buffer needs // to be deleted after the SendDecrypted call. - mPlugin->GMPMessageLoop()->PostTask( - NewRunnableMethod("gmp::GMPDecryptorChild::Decrypted", - this, - &GMPDecryptorChild::Decrypted, - aBuffer, - aResult)); + mPlugin->GMPMessageLoop()->PostTask(NewRunnableMethod + (this, + &GMPDecryptorChild::Decrypted, + aBuffer, aResult)); return; } diff --git a/dom/media/gmp/GMPParent.cpp b/dom/media/gmp/GMPParent.cpp index fdd070ce46ca..1d7fe33676f9 100644 --- a/dom/media/gmp/GMPParent.cpp +++ b/dom/media/gmp/GMPParent.cpp @@ -334,7 +334,6 @@ GMPParent::ChildTerminated() LOGD("%s::%s: GMPEventTarget() returned nullptr.", __CLASS__, __FUNCTION__); } else { gmpEventTarget->Dispatch(NewRunnableMethod>( - "gmp::GeckoMediaPluginServiceParent::PluginTerminated", mService, &GeckoMediaPluginServiceParent::PluginTerminated, self), @@ -353,8 +352,7 @@ GMPParent::DeleteProcess() mState = GMPStateClosing; Close(); } - mProcess->Delete(NewRunnableMethod( - "gmp::GMPParent::ChildTerminated", this, &GMPParent::ChildTerminated)); + mProcess->Delete(NewRunnableMethod(this, &GMPParent::ChildTerminated)); LOGD("%s: Shut down process", __FUNCTION__); mProcess = nullptr; mState = GMPStateNotLoaded; diff --git a/dom/media/gmp/GMPPlatform.cpp b/dom/media/gmp/GMPPlatform.cpp index 269f16c68e7a..9e8b02cb7cec 100644 --- a/dom/media/gmp/GMPPlatform.cpp +++ b/dom/media/gmp/GMPPlatform.cpp @@ -77,8 +77,7 @@ public: // main thread tries to do a sync call back to the calling thread. MOZ_ASSERT(!IsOnChildMainThread()); - mMessageLoop->PostTask(NewRunnableMethod( - "gmp::GMPSyncRunnable::Run", this, &GMPSyncRunnable::Run)); + mMessageLoop->PostTask(NewRunnableMethod(this, &GMPSyncRunnable::Run)); MonitorAutoLock lock(mMonitor); while (!mDone) { lock.Wait(); @@ -141,8 +140,7 @@ RunOnMainThread(GMPTask* aTask) } RefPtr r = new GMPRunnable(aTask); - sMainLoop->PostTask( - NewRunnableMethod("gmp::GMPRunnable::Run", r, &GMPRunnable::Run)); + sMainLoop->PostTask(NewRunnableMethod(r, &GMPRunnable::Run)); return GMPNoErr; } @@ -276,8 +274,7 @@ GMPThreadImpl::Post(GMPTask* aTask) } RefPtr r = new GMPRunnable(aTask); - mThread.message_loop()->PostTask( - NewRunnableMethod("gmp::GMPRunnable::Run", r.get(), &GMPRunnable::Run)); + mThread.message_loop()->PostTask(NewRunnableMethod(r.get(), &GMPRunnable::Run)); } void diff --git a/dom/media/gmp/GMPProcessParent.cpp b/dom/media/gmp/GMPProcessParent.cpp index aad88b3ab145..8c6cd7a0d323 100644 --- a/dom/media/gmp/GMPProcessParent.cpp +++ b/dom/media/gmp/GMPProcessParent.cpp @@ -85,8 +85,7 @@ void GMPProcessParent::Delete(nsCOMPtr aCallback) { mDeletedCallback = aCallback; - XRE_GetIOMessageLoop()->PostTask(NewNonOwningRunnableMethod( - "gmp::GMPProcessParent::DoDelete", this, &GMPProcessParent::DoDelete)); + XRE_GetIOMessageLoop()->PostTask(NewNonOwningRunnableMethod(this, &GMPProcessParent::DoDelete)); } void diff --git a/dom/media/gmp/GMPServiceChild.cpp b/dom/media/gmp/GMPServiceChild.cpp index 02f0c097f06d..8fec2d90c3a5 100644 --- a/dom/media/gmp/GMPServiceChild.cpp +++ b/dom/media/gmp/GMPServiceChild.cpp @@ -490,9 +490,8 @@ class OpenPGMPServiceChild : public mozilla::Runnable public: OpenPGMPServiceChild(UniquePtr&& aGMPServiceChild, ipc::Endpoint&& aEndpoint) - : Runnable("gmp::OpenPGMPServiceChild") - , mGMPServiceChild(Move(aGMPServiceChild)) - , mEndpoint(Move(aEndpoint)) + : mGMPServiceChild(Move(aGMPServiceChild)), + mEndpoint(Move(aEndpoint)) { } diff --git a/dom/media/gmp/GMPServiceParent.cpp b/dom/media/gmp/GMPServiceParent.cpp index 2b66e2622eb1..31fcb158070c 100644 --- a/dom/media/gmp/GMPServiceParent.cpp +++ b/dom/media/gmp/GMPServiceParent.cpp @@ -141,10 +141,8 @@ GeckoMediaPluginServiceParent::Init() int32_t expected = Preferences::GetInt("media.gmp.storage.version.expected", 0); if (version != expected) { Preferences::SetInt("media.gmp.storage.version.observed", expected); - return GMPDispatch( - NewRunnableMethod("gmp::GeckoMediaPluginServiceParent::ClearStorage", - this, - &GeckoMediaPluginServiceParent::ClearStorage)); + return GMPDispatch(NewRunnableMethod( + this, &GeckoMediaPluginServiceParent::ClearStorage)); } return NS_OK; } @@ -300,8 +298,7 @@ GeckoMediaPluginServiceParent::Observe(nsISupports* aSubject, LOGD(("%s::%s Starting to unload plugins, waiting for sync shutdown..." , __CLASS__, __FUNCTION__)); gmpThread->Dispatch( - NewRunnableMethod("gmp::GeckoMediaPluginServiceParent::UnloadPlugins", - this, + NewRunnableMethod(this, &GeckoMediaPluginServiceParent::UnloadPlugins), NS_DISPATCH_NORMAL); @@ -326,10 +323,8 @@ GeckoMediaPluginServiceParent::Observe(nsISupports* aSubject, } else if (!strcmp("browser:purge-session-history", aTopic)) { // Clear everything! if (!aSomeData || nsDependentString(aSomeData).IsEmpty()) { - return GMPDispatch( - NewRunnableMethod("gmp::GeckoMediaPluginServiceParent::ClearStorage", - this, - &GeckoMediaPluginServiceParent::ClearStorage)); + return GMPDispatch(NewRunnableMethod( + this, &GeckoMediaPluginServiceParent::ClearStorage)); } // Clear nodeIds/records modified after |t|. @@ -339,10 +334,8 @@ GeckoMediaPluginServiceParent::Observe(nsISupports* aSubject, return rv; } return GMPDispatch(NewRunnableMethod( - "gmp::GeckoMediaPluginServiceParent::ClearRecentHistoryOnGMPThread", - this, - &GeckoMediaPluginServiceParent::ClearRecentHistoryOnGMPThread, - t)); + this, &GeckoMediaPluginServiceParent::ClearRecentHistoryOnGMPThread, + t)); } return NS_OK; @@ -734,7 +727,7 @@ GeckoMediaPluginServiceParent::EnsurePluginsOnDiskScanned() // cause an event to be dispatched to which scans for plugins. We // dispatch a sync event to the GMP thread here in order to wait until // after the GMP thread has scanned any paths in MOZ_GMP_PATH. - nsresult rv = GMPDispatch(new mozilla::Runnable("GMPDummyRunnable"), NS_DISPATCH_SYNC); + nsresult rv = GMPDispatch(new mozilla::Runnable(), NS_DISPATCH_SYNC); NS_ENSURE_SUCCESS(rv, rv); MOZ_ASSERT(mScannedPluginOnDisk, "Should have scanned MOZ_GMP_PATH by now"); } @@ -1604,13 +1597,9 @@ GeckoMediaPluginServiceParent::ForgetThisSiteNative(const nsAString& aSite, { MOZ_ASSERT(NS_IsMainThread()); - return GMPDispatch( - NewRunnableMethod( - "gmp::GeckoMediaPluginServiceParent::ForgetThisSiteOnGMPThread", - this, - &GeckoMediaPluginServiceParent::ForgetThisSiteOnGMPThread, - NS_ConvertUTF16toUTF8(aSite), - aPattern)); + return GMPDispatch(NewRunnableMethod( + this, &GeckoMediaPluginServiceParent::ForgetThisSiteOnGMPThread, + NS_ConvertUTF16toUTF8(aSite), aPattern)); } static bool IsNodeIdValid(GMPParent* aParent) { @@ -1838,8 +1827,7 @@ class DeleteGMPServiceParent : public mozilla::Runnable { public: explicit DeleteGMPServiceParent(GMPServiceParent* aToDelete) - : Runnable("gmp::DeleteGMPServiceParent") - , mToDelete(aToDelete) + : mToDelete(aToDelete) { } @@ -1873,12 +1861,11 @@ GMPServiceParent::ActorDestroy(ActorDestroyReason aWhy) // Make sure the IPC channel is closed before destroying mToDelete. MonitorAutoLock lock(monitor); - RefPtr task = NewNonOwningRunnableMethod( - "gmp::GMPServiceParent::CloseTransport", - this, - &GMPServiceParent::CloseTransport, - &monitor, - &completed); + RefPtr task = + NewNonOwningRunnableMethod(this, + &GMPServiceParent::CloseTransport, + &monitor, + &completed); XRE_GetIOMessageLoop()->PostTask(Move(task.forget())); while (!completed) { @@ -1889,12 +1876,12 @@ GMPServiceParent::ActorDestroy(ActorDestroyReason aWhy) // GMPServiceParent until the current calling context is finished with // the object. GMPServiceParent* self = this; - NS_DispatchToCurrentThread( - NS_NewRunnableFunction("gmp::GMPServiceParent::ActorDestroy", [self]() { - // The GMPServiceParent must be destroyed on the main thread. - NS_DispatchToMainThread(NS_NewRunnableFunction( - "gmp::GMPServiceParent::ActorDestroy", [self]() { delete self; })); + NS_DispatchToCurrentThread(NS_NewRunnableFunction([self]() { + // The GMPServiceParent must be destroyed on the main thread. + NS_DispatchToMainThread(NS_NewRunnableFunction([self]() { + delete self; })); + })); } class OpenPGMPServiceParent : public mozilla::Runnable @@ -1903,10 +1890,9 @@ public: OpenPGMPServiceParent(GMPServiceParent* aGMPServiceParent, ipc::Endpoint&& aEndpoint, bool* aResult) - : Runnable("gmp::OpenPGMPServiceParent") - , mGMPServiceParent(aGMPServiceParent) - , mEndpoint(Move(aEndpoint)) - , mResult(aResult) + : mGMPServiceParent(aGMPServiceParent), + mEndpoint(Move(aEndpoint)), + mResult(aResult) { } diff --git a/dom/media/gmp/GMPServiceParent.h b/dom/media/gmp/GMPServiceParent.h index 846683cf65e6..86a0a8d5cf16 100644 --- a/dom/media/gmp/GMPServiceParent.h +++ b/dom/media/gmp/GMPServiceParent.h @@ -145,12 +145,9 @@ private: REMOVE_AND_DELETE_FROM_DISK, }; - PathRunnable(GeckoMediaPluginServiceParent* aService, - const nsAString& aPath, - EOperation aOperation, - bool aDefer = false) - : Runnable("gmp::GeckoMediaPluginServiceParent::PathRunnable") - , mService(aService) + PathRunnable(GeckoMediaPluginServiceParent* aService, const nsAString& aPath, + EOperation aOperation, bool aDefer = false) + : mService(aService) , mPath(aPath) , mOperation(aOperation) , mDefer(aDefer) diff --git a/dom/media/gmp/GMPTimerParent.cpp b/dom/media/gmp/GMPTimerParent.cpp index f8cc29315ce1..3a0c9c52a816 100644 --- a/dom/media/gmp/GMPTimerParent.cpp +++ b/dom/media/gmp/GMPTimerParent.cpp @@ -54,12 +54,10 @@ GMPTimerParent::RecvSetTimer(const uint32_t& aTimerId, NS_ENSURE_SUCCESS(rv, IPC_OK()); ctx->mParent = this; - rv = - ctx->mTimer->InitWithNamedFuncCallback(&GMPTimerParent::GMPTimerExpired, - ctx, - aTimeoutMs, - nsITimer::TYPE_ONE_SHOT, - "gmp::GMPTimerParent::RecvSetTimer"); + rv = ctx->mTimer->InitWithFuncCallback(&GMPTimerParent::GMPTimerExpired, + ctx, + aTimeoutMs, + nsITimer::TYPE_ONE_SHOT); NS_ENSURE_SUCCESS(rv, IPC_OK()); mTimers.PutEntry(ctx.forget()); diff --git a/dom/media/gmp/GMPVideoDecoderChild.cpp b/dom/media/gmp/GMPVideoDecoderChild.cpp index 001aa3091e54..6c6cd9dc08f0 100644 --- a/dom/media/gmp/GMPVideoDecoderChild.cpp +++ b/dom/media/gmp/GMPVideoDecoderChild.cpp @@ -228,9 +228,7 @@ GMPVideoDecoderChild::Alloc(size_t aSize, if (mPendingDecodeComplete && mNeedShmemIntrCount == 0) { mPendingDecodeComplete = false; mPlugin->GMPMessageLoop()->PostTask( - NewRunnableMethod("gmp::GMPVideoDecoderChild::RecvDecodingComplete", - this, - &GMPVideoDecoderChild::RecvDecodingComplete)); + NewRunnableMethod(this, &GMPVideoDecoderChild::RecvDecodingComplete)); } #else #ifdef GMP_SAFE_SHMEM diff --git a/dom/media/gmp/GMPVideoDecoderParent.cpp b/dom/media/gmp/GMPVideoDecoderParent.cpp index 27c565bfa406..872c4a8975c6 100644 --- a/dom/media/gmp/GMPVideoDecoderParent.cpp +++ b/dom/media/gmp/GMPVideoDecoderParent.cpp @@ -202,15 +202,12 @@ GMPVideoDecoderParent::Reset() mIsAwaitingResetComplete = true; RefPtr self(this); - nsCOMPtr task = NS_NewRunnableFunction( - "gmp::GMPVideoDecoderParent::Reset", [self]() -> void { - LOGD(("GMPVideoDecoderParent[%p]::ResetCompleteTimeout() timed out " - "waiting for ResetComplete", - self.get())); - self->mResetCompleteTimeout = nullptr; - LogToBrowserConsole(NS_LITERAL_STRING( - "GMPVideoDecoderParent timed out waiting for ResetComplete()")); - }); + nsCOMPtr task = NS_NewRunnableFunction([self]() -> void + { + LOGD(("GMPVideoDecoderParent[%p]::ResetCompleteTimeout() timed out waiting for ResetComplete", self.get())); + self->mResetCompleteTimeout = nullptr; + LogToBrowserConsole(NS_LITERAL_STRING("GMPVideoDecoderParent timed out waiting for ResetComplete()")); + }); CancelResetCompleteTimeout(); nsCOMPtr target = mPlugin->GMPEventTarget(); mResetCompleteTimeout = SimpleTimer::Create(task, 5000, target); diff --git a/dom/media/gmp/GMPVideoEncoderChild.cpp b/dom/media/gmp/GMPVideoEncoderChild.cpp index 2ad82a6d9ef3..e46769e7f32f 100644 --- a/dom/media/gmp/GMPVideoEncoderChild.cpp +++ b/dom/media/gmp/GMPVideoEncoderChild.cpp @@ -209,9 +209,7 @@ GMPVideoEncoderChild::Alloc(size_t aSize, if (mPendingEncodeComplete && mNeedShmemIntrCount == 0) { mPendingEncodeComplete = false; mPlugin->GMPMessageLoop()->PostTask( - NewRunnableMethod("gmp::GMPVideoEncoderChild::RecvEncodingComplete", - this, - &GMPVideoEncoderChild::RecvEncodingComplete)); + NewRunnableMethod(this, &GMPVideoEncoderChild::RecvEncodingComplete)); } #else #ifdef GMP_SAFE_SHMEM diff --git a/dom/media/gtest/GMPTestMonitor.h b/dom/media/gtest/GMPTestMonitor.h index 2c5f89e6784e..6b736e06a5e3 100644 --- a/dom/media/gtest/GMPTestMonitor.h +++ b/dom/media/gtest/GMPTestMonitor.h @@ -37,8 +37,7 @@ public: mozilla::SystemGroup::Dispatch( "GMPTestMonitor::SetFinished", mozilla::TaskCategory::Other, - mozilla::NewNonOwningRunnableMethod( - "GMPTestMonitor::MarkFinished", this, &GMPTestMonitor::MarkFinished)); + mozilla::NewNonOwningRunnableMethod(this, &GMPTestMonitor::MarkFinished)); } private: diff --git a/dom/media/gtest/TestGMPCrossOrigin.cpp b/dom/media/gtest/TestGMPCrossOrigin.cpp index 87517531b29e..ca8be7924155 100644 --- a/dom/media/gtest/TestGMPCrossOrigin.cpp +++ b/dom/media/gtest/TestGMPCrossOrigin.cpp @@ -355,8 +355,7 @@ NS_IMPL_ISUPPORTS(GMPShutdownObserver, nsIRunnable, nsIObserver) class NotifyObserversTask : public Runnable { public: explicit NotifyObserversTask(const char* aTopic) - : mozilla::Runnable("NotifyObserversTask") - , mTopic(aTopic) + : mTopic(aTopic) {} NS_IMETHOD Run() override { MOZ_ASSERT(NS_IsMainThread()); @@ -533,8 +532,7 @@ class GMPStorageTest : public GMPDecryptorProxyCallback void DoTest(void (GMPStorageTest::*aTestMethod)()) { EnsureNSSInitializedChromeOrContent(); nsCOMPtr thread(GetGMPThread()); - ClearGMPStorage( - NewRunnableMethod("GMPStorageTest::DoTest", this, aTestMethod), thread); + ClearGMPStorage(NewRunnableMethod(this, aTestMethod), thread); AwaitFinished(); } @@ -587,12 +585,8 @@ class GMPStorageTest : public GMPDecryptorProxyCallback EXPECT_TRUE(!PBnodeId2.Equals(nodeId2)); nsCOMPtr thread(GetGMPThread()); - ClearGMPStorage( - NewRunnableMethod("GMPStorageTest::TestGetNodeId_Continuation", - this, - &GMPStorageTest::TestGetNodeId_Continuation, - nodeId1), - thread); + ClearGMPStorage(NewRunnableMethod( + this, &GMPStorageTest::TestGetNodeId_Continuation, nodeId1), thread); } void TestGetNodeId_Continuation(nsCString aNodeId1) { @@ -652,9 +646,8 @@ class GMPStorageTest : public GMPDecryptorProxyCallback { public: Updates(GMPStorageTest* aRunner, nsTArray&& aUpdates) - : mozilla::Runnable("GMPStorageTest::Updates") - , mRunner(aRunner) - , mUpdates(Move(aUpdates)) + : mRunner(aRunner), + mUpdates(Move(aUpdates)) { } @@ -714,9 +707,7 @@ class GMPStorageTest : public GMPDecryptorProxyCallback // It sends us a "test-storage complete" message when its passed, or // some other message if its tests fail. Expect(NS_LITERAL_CSTRING("test-storage complete"), - NewRunnableMethod("GMPStorageTest::SetFinished", - this, - &GMPStorageTest::SetFinished)); + NewRunnableMethod(this, &GMPStorageTest::SetFinished)); CreateDecryptor(NS_LITERAL_STRING("http://example1.com"), NS_LITERAL_STRING("http://example2.com"), @@ -735,10 +726,8 @@ class GMPStorageTest : public GMPDecryptorProxyCallback EXPECT_TRUE(IsGMPStorageIsEmpty()); // Generate storage data for some site. - nsCOMPtr r = - NewRunnableMethod("GMPStorageTest::TestForgetThisSite_AnotherSite", - this, - &GMPStorageTest::TestForgetThisSite_AnotherSite); + nsCOMPtr r = NewRunnableMethod( + this, &GMPStorageTest::TestForgetThisSite_AnotherSite); Expect(NS_LITERAL_CSTRING("test-storage complete"), r.forget()); CreateDecryptor(NS_LITERAL_STRING("http://example1.com"), @@ -751,10 +740,8 @@ class GMPStorageTest : public GMPDecryptorProxyCallback Shutdown(); // Generate storage data for another site. - nsCOMPtr r = - NewRunnableMethod("GMPStorageTest::TestForgetThisSite_CollectSiteInfo", - this, - &GMPStorageTest::TestForgetThisSite_CollectSiteInfo); + nsCOMPtr r = NewRunnableMethod( + this, &GMPStorageTest::TestForgetThisSite_CollectSiteInfo); Expect(NS_LITERAL_CSTRING("test-storage complete"), r.forget()); CreateDecryptor(NS_LITERAL_STRING("http://example3.com"), @@ -799,13 +786,11 @@ class GMPStorageTest : public GMPDecryptorProxyCallback EnumerateGMPStorageDir(NS_LITERAL_CSTRING("id"), NodeIdCollector(siteInfo.get())); // Invoke "Forget this site" on the main thread. - SystemGroup::Dispatch("TestForgetThisSite_Forget", - TaskCategory::Other, - NewRunnableMethod&&>( - "GMPStorageTest::TestForgetThisSite_Forget", - this, - &GMPStorageTest::TestForgetThisSite_Forget, - Move(siteInfo))); + SystemGroup::Dispatch( + "TestForgetThisSite_Forget", + TaskCategory::Other, + NewRunnableMethod&&>( + this, &GMPStorageTest::TestForgetThisSite_Forget, Move(siteInfo))); } void TestForgetThisSite_Forget(UniquePtr&& aSiteInfo) { @@ -818,14 +803,11 @@ class GMPStorageTest : public GMPDecryptorProxyCallback service->GetThread(getter_AddRefs(thread)); nsCOMPtr r = NewRunnableMethod&&>( - "GMPStorageTest::TestForgetThisSite_Verify", - this, - &GMPStorageTest::TestForgetThisSite_Verify, - Move(aSiteInfo)); + this, &GMPStorageTest::TestForgetThisSite_Verify, Move(aSiteInfo)); thread->Dispatch(r, NS_DISPATCH_NORMAL); nsCOMPtr f = NewRunnableMethod( - "GMPStorageTest::SetFinished", this, &GMPStorageTest::SetFinished); + this, &GMPStorageTest::SetFinished); thread->Dispatch(f, NS_DISPATCH_NORMAL); } @@ -890,10 +872,8 @@ class GMPStorageTest : public GMPDecryptorProxyCallback EXPECT_TRUE(IsGMPStorageIsEmpty()); // Generate storage data for some site. - nsCOMPtr r = - NewRunnableMethod("GMPStorageTest::TestClearRecentHistory1_Clear", - this, - &GMPStorageTest::TestClearRecentHistory1_Clear); + nsCOMPtr r = NewRunnableMethod( + this, &GMPStorageTest::TestClearRecentHistory1_Clear); Expect(NS_LITERAL_CSTRING("test-storage complete"), r.forget()); CreateDecryptor(NS_LITERAL_STRING("http://example1.com"), @@ -914,10 +894,8 @@ class GMPStorageTest : public GMPDecryptorProxyCallback EXPECT_TRUE(IsGMPStorageIsEmpty()); // Generate storage data for some site. - nsCOMPtr r = - NewRunnableMethod("GMPStorageTest::TestClearRecentHistory2_Clear", - this, - &GMPStorageTest::TestClearRecentHistory2_Clear); + nsCOMPtr r = NewRunnableMethod( + this, &GMPStorageTest::TestClearRecentHistory2_Clear); Expect(NS_LITERAL_CSTRING("test-storage complete"), r.forget()); CreateDecryptor(NS_LITERAL_STRING("http://example1.com"), @@ -938,10 +916,8 @@ class GMPStorageTest : public GMPDecryptorProxyCallback EXPECT_TRUE(IsGMPStorageIsEmpty()); // Generate storage data for some site. - nsCOMPtr r = - NewRunnableMethod("GMPStorageTest::TestClearRecentHistory3_Clear", - this, - &GMPStorageTest::TestClearRecentHistory3_Clear); + nsCOMPtr r = NewRunnableMethod( + this, &GMPStorageTest::TestClearRecentHistory3_Clear); Expect(NS_LITERAL_CSTRING("test-storage complete"), r.forget()); CreateDecryptor(NS_LITERAL_STRING("http://example1.com"), @@ -971,10 +947,8 @@ class GMPStorageTest : public GMPDecryptorProxyCallback nsresult rv = EnumerateGMPStorageDir(NS_LITERAL_CSTRING("id"), f); EXPECT_TRUE(NS_SUCCEEDED(rv)); - nsCOMPtr r = - NewRunnableMethod("GMPStorageTest::TestClearRecentHistory_CheckEmpty", - this, - &GMPStorageTest::TestClearRecentHistory_CheckEmpty); + nsCOMPtr r = NewRunnableMethod( + this, &GMPStorageTest::TestClearRecentHistory_CheckEmpty); nsCOMPtr t(GetGMPThread()); ClearGMPStorage(r.forget(), t, f.GetResult()); } @@ -984,10 +958,8 @@ class GMPStorageTest : public GMPDecryptorProxyCallback nsresult rv = EnumerateGMPStorageDir(NS_LITERAL_CSTRING("storage"), f); EXPECT_TRUE(NS_SUCCEEDED(rv)); - nsCOMPtr r = - NewRunnableMethod("GMPStorageTest::TestClearRecentHistory_CheckEmpty", - this, - &GMPStorageTest::TestClearRecentHistory_CheckEmpty); + nsCOMPtr r = NewRunnableMethod( + this, &GMPStorageTest::TestClearRecentHistory_CheckEmpty); nsCOMPtr t(GetGMPThread()); ClearGMPStorage(r.forget(), t, f.GetResult()); } @@ -997,10 +969,8 @@ class GMPStorageTest : public GMPDecryptorProxyCallback nsresult rv = EnumerateGMPStorageDir(NS_LITERAL_CSTRING("storage"), f); EXPECT_TRUE(NS_SUCCEEDED(rv)); - nsCOMPtr r = - NewRunnableMethod("GMPStorageTest::TestClearRecentHistory_CheckNonEmpty", - this, - &GMPStorageTest::TestClearRecentHistory_CheckNonEmpty); + nsCOMPtr r = NewRunnableMethod( + this, &GMPStorageTest::TestClearRecentHistory_CheckNonEmpty); nsCOMPtr t(GetGMPThread()); ClearGMPStorage(r.forget(), t, f.GetResult() + 1); } @@ -1056,11 +1026,8 @@ class GMPStorageTest : public GMPDecryptorProxyCallback auto t = time(0); nsCString response("stored crossOriginTestRecordId "); response.AppendInt((int64_t)t); - Expect(response, - NewRunnableMethod( - "GMPStorageTest::TestCrossOriginStorage_RecordStoredContinuation", - this, - &GMPStorageTest::TestCrossOriginStorage_RecordStoredContinuation)); + Expect(response, NewRunnableMethod(this, + &GMPStorageTest::TestCrossOriginStorage_RecordStoredContinuation)); nsCString update("store crossOriginTestRecordId "); update.AppendInt((int64_t)t); @@ -1078,11 +1045,8 @@ class GMPStorageTest : public GMPDecryptorProxyCallback // and try to read the record. Shutdown(); - Expect(NS_LITERAL_CSTRING( - "retrieve crossOriginTestRecordId succeeded (length 0 bytes)"), - NewRunnableMethod("GMPStorageTest::SetFinished", - this, - &GMPStorageTest::SetFinished)); + Expect(NS_LITERAL_CSTRING("retrieve crossOriginTestRecordId succeeded (length 0 bytes)"), + NewRunnableMethod(this, &GMPStorageTest::SetFinished)); CreateDecryptor(NS_LITERAL_STRING("http://example5.com"), NS_LITERAL_STRING("http://example6.com"), @@ -1094,11 +1058,8 @@ class GMPStorageTest : public GMPDecryptorProxyCallback // Send the decryptor the message "store recordid $time" // Wait for the decrytor to send us "stored recordid $time" nsCString response("stored pbdata test-pb-data"); - Expect(response, - NewRunnableMethod( - "GMPStorageTest::TestPBStorage_RecordStoredContinuation", - this, - &GMPStorageTest::TestPBStorage_RecordStoredContinuation)); + Expect(response, NewRunnableMethod(this, + &GMPStorageTest::TestPBStorage_RecordStoredContinuation)); // Open decryptor on one, origin, write a record, close decryptor, // open another, and test that record can be read, close decryptor, @@ -1114,10 +1075,8 @@ class GMPStorageTest : public GMPDecryptorProxyCallback Shutdown(); Expect(NS_LITERAL_CSTRING("retrieve pbdata succeeded (length 12 bytes)"), - NewRunnableMethod( - "GMPStorageTest::TestPBStorage_RecordRetrievedContinuation", - this, - &GMPStorageTest::TestPBStorage_RecordRetrievedContinuation)); + NewRunnableMethod(this, + &GMPStorageTest::TestPBStorage_RecordRetrievedContinuation)); CreateDecryptor(NS_LITERAL_STRING("http://pb1.com"), NS_LITERAL_STRING("http://pb2.com"), @@ -1130,9 +1089,8 @@ class GMPStorageTest : public GMPDecryptorProxyCallback SimulatePBModeExit(); Expect(NS_LITERAL_CSTRING("retrieve pbdata succeeded (length 0 bytes)"), - NewRunnableMethod("GMPStorageTest::SetFinished", - this, - &GMPStorageTest::SetFinished)); + NewRunnableMethod(this, + &GMPStorageTest::SetFinished)); CreateDecryptor(NS_LITERAL_STRING("http://pb1.com"), NS_LITERAL_STRING("http://pb2.com"), @@ -1145,8 +1103,7 @@ class GMPStorageTest : public GMPDecryptorProxyCallback Shutdown(); Expect(NS_LITERAL_CSTRING("OP tests completed"), - NewRunnableMethod("GMPStorageTest::SetFinished", - this, &GMPStorageTest::SetFinished)); + NewRunnableMethod(this, &GMPStorageTest::SetFinished)); CreateDecryptor(NS_LITERAL_STRING("http://example15.com"), NS_LITERAL_STRING("http://example16.com"), @@ -1184,10 +1141,7 @@ class GMPStorageTest : public GMPDecryptorProxyCallback response.Append(longRecordName); response.AppendLiteral(" "); response.Append(data); - Expect(response, - NewRunnableMethod("GMPStorageTest::SetFinished", - this, - &GMPStorageTest::SetFinished)); + Expect(response, NewRunnableMethod(this, &GMPStorageTest::SetFinished)); nsCString update("store "); update.Append(longRecordName); @@ -1214,11 +1168,9 @@ class GMPStorageTest : public GMPDecryptorProxyCallback return; } EXPECT_FALSE(mNodeId.IsEmpty()); - RefPtr task(new GMPShutdownObserver( - NewRunnableMethod( - "GMPStorageTest::Shutdown", this, &GMPStorageTest::Shutdown), - Move(aContinuation), - mNodeId)); + RefPtr task( + new GMPShutdownObserver(NewRunnableMethod(this, &GMPStorageTest::Shutdown), + Move(aContinuation), mNodeId)); SystemGroup::Dispatch("GMPShutdownObserver", TaskCategory::Other, task.forget()); } @@ -1236,8 +1188,7 @@ class GMPStorageTest : public GMPDecryptorProxyCallback void SetFinished() { mFinished = true; Shutdown(); - nsCOMPtr task = - NewRunnableMethod("GMPStorageTest::Dummy", this, &GMPStorageTest::Dummy); + nsCOMPtr task = NewRunnableMethod(this, &GMPStorageTest::Dummy); SystemGroup::Dispatch("GMPStorageTest::Dummy", TaskCategory::Other, task.forget()); } @@ -1327,8 +1278,9 @@ GMPTestRunner::DoTest(void (GMPTestRunner::*aTestMethod)(GMPTestMonitor&)) nsCOMPtr thread(GetGMPThread()); GMPTestMonitor monitor; - thread->Dispatch(NewRunnableMethod( - "GMPTestRunner::DoTest", this, aTestMethod, monitor), + thread->Dispatch(NewRunnableMethod(this, + aTestMethod, + monitor), NS_DISPATCH_NORMAL); monitor.AwaitFinished(); } diff --git a/dom/media/gtest/TestGMPRemoveAndDelete.cpp b/dom/media/gtest/TestGMPRemoveAndDelete.cpp index 20d715c7eb99..4ac92e34e566 100644 --- a/dom/media/gtest/TestGMPRemoveAndDelete.cpp +++ b/dom/media/gtest/TestGMPRemoveAndDelete.cpp @@ -263,16 +263,10 @@ GMPRemoveTest::CreateVideoDecoder(nsCString aNodeId) GMPVideoHost* host; GMPVideoDecoderProxy* decoder = nullptr; - mGMPThread->Dispatch(NewNonOwningRunnableMethod( - "GMPRemoveTest::gmp_GetVideoDecoder", - this, - &GMPRemoveTest::gmp_GetVideoDecoder, - aNodeId, - &decoder, - &host), - NS_DISPATCH_NORMAL); + mGMPThread->Dispatch( + NewNonOwningRunnableMethod( + this, &GMPRemoveTest::gmp_GetVideoDecoder, aNodeId, &decoder, &host), + NS_DISPATCH_NORMAL); mTestMonitor.AwaitFinished(); @@ -286,16 +280,9 @@ GMPRemoveTest::CreateVideoDecoder(nsCString aNodeId) nsTArray empty; mGMPThread->Dispatch( - NewNonOwningRunnableMethod&, - GMPVideoDecoderCallbackProxy*, - int32_t>("GMPVideoDecoderProxy::InitDecode", - decoder, - &GMPVideoDecoderProxy::InitDecode, - codec, - empty, - this, - 1 /* core count */), + NewNonOwningRunnableMethod&, GMPVideoDecoderCallbackProxy*, int32_t>( + decoder, &GMPVideoDecoderProxy::InitDecode, + codec, empty, this, 1 /* core count */), NS_DISPATCH_SYNC); if (mDecoder) { @@ -344,10 +331,9 @@ GMPRemoveTest::gmp_GetVideoDecoder(nsCString aNodeId, void GMPRemoveTest::CloseVideoDecoder() { - mGMPThread->Dispatch(NewNonOwningRunnableMethod("GMPVideoDecoderProxy::Close", - mDecoder, - &GMPVideoDecoderProxy::Close), - NS_DISPATCH_SYNC); + mGMPThread->Dispatch( + NewNonOwningRunnableMethod(mDecoder, &GMPVideoDecoderProxy::Close), + NS_DISPATCH_SYNC); mDecoder = nullptr; mHost = nullptr; @@ -362,10 +348,9 @@ GMPRemoveTest::DeletePluginDirectory(bool aCanDefer) GMPErr GMPRemoveTest::Decode() { - mGMPThread->Dispatch(NewNonOwningRunnableMethod("GMPRemoveTest::gmp_Decode", - this, - &GMPRemoveTest::gmp_Decode), - NS_DISPATCH_NORMAL); + mGMPThread->Dispatch( + NewNonOwningRunnableMethod(this, &GMPRemoveTest::gmp_Decode), + NS_DISPATCH_NORMAL); mTestMonitor.AwaitFinished(); return mDecodeResult; diff --git a/dom/media/gtest/TestMP4Demuxer.cpp b/dom/media/gtest/TestMP4Demuxer.cpp index 0a213f62269c..231dba0386cf 100644 --- a/dom/media/gtest/TestMP4Demuxer.cpp +++ b/dom/media/gtest/TestMP4Demuxer.cpp @@ -148,8 +148,7 @@ private: void DispatchTask(FunctionType aFun) { - RefPtr r = - NS_NewRunnableFunction("MP4DemuxerBinding::DispatchTask", aFun); + RefPtr r = NS_NewRunnableFunction(aFun); mTaskQueue->Dispatch(r.forget()); } diff --git a/dom/media/hls/HLSDemuxer.cpp b/dom/media/hls/HLSDemuxer.cpp index f13a3f6f1cb6..cfcbf6a225a9 100644 --- a/dom/media/hls/HLSDemuxer.cpp +++ b/dom/media/hls/HLSDemuxer.cpp @@ -88,7 +88,6 @@ public: if (!mDemuxer) { return; } RefPtr self = this; mDemuxer->GetTaskQueue()->Dispatch(NS_NewRunnableFunction( - "HLSDemuxer::HLSDemuxerCallbacksSupport::OnInitialized", [=] () { MutexAutoLock lock(self->mMutex); if (self->mDemuxer) { @@ -639,8 +638,7 @@ HLSTrackDemuxer::BreakCycles() { RefPtr self = this; nsCOMPtr task = - NS_NewRunnableFunction("HLSTrackDemuxer::BreakCycles", - [self]() { + NS_NewRunnableFunction([self]() { self->mParent = nullptr; } ); mParent->GetTaskQueue()->Dispatch(task.forget()); diff --git a/dom/media/imagecapture/CaptureTask.cpp b/dom/media/imagecapture/CaptureTask.cpp index 29832429d792..95aeb8478f24 100644 --- a/dom/media/imagecapture/CaptureTask.cpp +++ b/dom/media/imagecapture/CaptureTask.cpp @@ -176,10 +176,7 @@ CaptureTask::PostTrackEndEvent() { public: explicit TrackEndRunnable(CaptureTask* aTask) - : mozilla::Runnable("TrackEndRunnable") - , mTask(aTask) - { - } + : mTask(aTask) {} NS_IMETHOD Run() override { diff --git a/dom/media/ipc/RemoteVideoDecoder.cpp b/dom/media/ipc/RemoteVideoDecoder.cpp index d4e1df158882..28953829bf97 100644 --- a/dom/media/ipc/RemoteVideoDecoder.cpp +++ b/dom/media/ipc/RemoteVideoDecoder.cpp @@ -34,11 +34,10 @@ RemoteVideoDecoder::~RemoteVideoDecoder() // it alive until we send the delete message. RefPtr actor = mActor; - RefPtr task = NS_NewRunnableFunction( - "dom::RemoteVideoDecoder::~RemoteVideoDecoder", [actor]() { - MOZ_ASSERT(actor); - actor->DestroyIPDL(); - }); + RefPtr task = NS_NewRunnableFunction([actor]() { + MOZ_ASSERT(actor); + actor->DestroyIPDL(); + }); // Drop out references to the actor so that the last ref // always gets released on the manager thread. @@ -104,13 +103,10 @@ RemoteVideoDecoder::SetSeekThreshold(const media::TimeUnit& aTime) { RefPtr self = this; media::TimeUnit time = aTime; - VideoDecoderManagerChild::GetManagerThread()->Dispatch( - NS_NewRunnableFunction("dom::RemoteVideoDecoder::SetSeekThreshold", - [=]() { - MOZ_ASSERT(self->mActor); - self->mActor->SetSeekThreshold(time); - }), - NS_DISPATCH_NORMAL); + VideoDecoderManagerChild::GetManagerThread()->Dispatch(NS_NewRunnableFunction([=]() { + MOZ_ASSERT(self->mActor); + self->mActor->SetSeekThreshold(time); + }), NS_DISPATCH_NORMAL); } MediaDataDecoder::ConversionRequired @@ -164,16 +160,11 @@ RemoteDecoderModule::CreateVideoDecoder(const CreateDecoderParams& aParams) SynchronousTask task("InitIPDL"); bool success; - VideoDecoderManagerChild::GetManagerThread()->Dispatch( - NS_NewRunnableFunction( - "dom::RemoteDecoderModule::CreateVideoDecoder", - [&]() { - AutoCompleteTask complete(&task); - success = object->mActor->InitIPDL( - aParams.VideoConfig(), - aParams.mKnowsCompositor->GetTextureFactoryIdentifier()); - }), - NS_DISPATCH_NORMAL); + VideoDecoderManagerChild::GetManagerThread()->Dispatch(NS_NewRunnableFunction([&]() { + AutoCompleteTask complete(&task); + success = object->mActor->InitIPDL(aParams.VideoConfig(), + aParams.mKnowsCompositor->GetTextureFactoryIdentifier()); + }), NS_DISPATCH_NORMAL); task.Wait(); if (!success) { diff --git a/dom/media/ipc/VideoDecoderChild.cpp b/dom/media/ipc/VideoDecoderChild.cpp index 46392b343f3a..600272aa8830 100644 --- a/dom/media/ipc/VideoDecoderChild.cpp +++ b/dom/media/ipc/VideoDecoderChild.cpp @@ -124,24 +124,23 @@ VideoDecoderChild::ActorDestroy(ActorDestroyReason aWhy) // Defer reporting an error until we've recreated the manager so that // it'll be safe for MediaFormatReader to recreate decoders RefPtr ref = this; - GetManager()->RunWhenRecreated( - NS_NewRunnableFunction("dom::VideoDecoderChild::ActorDestroy", [=]() { - if (ref->mInitialized) { - mDecodedData.Clear(); - mDecodePromise.RejectIfExists(NS_ERROR_DOM_MEDIA_NEED_NEW_DECODER, - __func__); - mDrainPromise.RejectIfExists(NS_ERROR_DOM_MEDIA_NEED_NEW_DECODER, - __func__); - mFlushPromise.RejectIfExists(NS_ERROR_DOM_MEDIA_NEED_NEW_DECODER, - __func__); - // Make sure the next request will be rejected accordingly if ever - // called. - mNeedNewDecoder = true; - } else { - ref->mInitPromise.RejectIfExists(NS_ERROR_DOM_MEDIA_NEED_NEW_DECODER, - __func__); - } - })); + GetManager()->RunWhenRecreated(NS_NewRunnableFunction([=]() { + if (ref->mInitialized) { + mDecodedData.Clear(); + mDecodePromise.RejectIfExists(NS_ERROR_DOM_MEDIA_NEED_NEW_DECODER, + __func__); + mDrainPromise.RejectIfExists(NS_ERROR_DOM_MEDIA_NEED_NEW_DECODER, + __func__); + mFlushPromise.RejectIfExists(NS_ERROR_DOM_MEDIA_NEED_NEW_DECODER, + __func__); + // Make sure the next request will be rejected accordingly if ever + // called. + mNeedNewDecoder = true; + } else { + ref->mInitPromise.RejectIfExists(NS_ERROR_DOM_MEDIA_NEED_NEW_DECODER, + __func__); + } + })); } mCanSend = false; } diff --git a/dom/media/ipc/VideoDecoderManagerChild.cpp b/dom/media/ipc/VideoDecoderManagerChild.cpp index 3dab09c91a28..7749f56aaa92 100644 --- a/dom/media/ipc/VideoDecoderManagerChild.cpp +++ b/dom/media/ipc/VideoDecoderManagerChild.cpp @@ -61,16 +61,12 @@ VideoDecoderManagerChild::Shutdown() MOZ_ASSERT(NS_IsMainThread()); if (sVideoDecoderChildThread) { - sVideoDecoderChildThread->Dispatch( - NS_NewRunnableFunction("dom::VideoDecoderManagerChild::Shutdown", - []() { - if (sDecoderManager && - sDecoderManager->CanSend()) { - sDecoderManager->Close(); - sDecoderManager = nullptr; - } - }), - NS_DISPATCH_NORMAL); + sVideoDecoderChildThread->Dispatch(NS_NewRunnableFunction([]() { + if (sDecoderManager && sDecoderManager->CanSend()) { + sDecoderManager->Close(); + sDecoderManager = nullptr; + } + }), NS_DISPATCH_NORMAL); sVideoDecoderChildAbstractThread = nullptr; sVideoDecoderChildThread->Shutdown(); @@ -181,15 +177,12 @@ VideoDecoderManagerChild::DeallocShmem(mozilla::ipc::Shmem& aShmem) if (NS_GetCurrentThread() != sVideoDecoderChildThread) { RefPtr self = this; mozilla::ipc::Shmem shmem = aShmem; - sVideoDecoderChildThread->Dispatch( - NS_NewRunnableFunction("dom::VideoDecoderManagerChild::DeallocShmem", - [self, shmem]() { - if (self->CanSend()) { - mozilla::ipc::Shmem shmemCopy = shmem; - self->DeallocShmem(shmemCopy); - } - }), - NS_DISPATCH_NORMAL); + sVideoDecoderChildThread->Dispatch(NS_NewRunnableFunction([self, shmem]() { + if (self->CanSend()) { + mozilla::ipc::Shmem shmemCopy = shmem; + self->DeallocShmem(shmemCopy); + } + }), NS_DISPATCH_NORMAL); return true; } return PVideoDecoderManagerChild::DeallocShmem(aShmem); @@ -226,8 +219,7 @@ VideoDecoderManagerChild::Readback(const SurfaceDescriptorGPUVideo& aSD) RefPtr ref = this; SurfaceDescriptor sd; - if (NS_FAILED(sVideoDecoderChildThread->Dispatch(NS_NewRunnableFunction("VideoDecoderManagerChild::Readback", - [&]() { + if (NS_FAILED(sVideoDecoderChildThread->Dispatch(NS_NewRunnableFunction([&]() { AutoCompleteTask complete(&task); if (ref->CanSend()) { ref->SendReadback(aSD, &sd); @@ -262,15 +254,11 @@ VideoDecoderManagerChild::DeallocateSurfaceDescriptorGPUVideo(const SurfaceDescr { RefPtr ref = this; SurfaceDescriptorGPUVideo sd = Move(aSD); - sVideoDecoderChildThread->Dispatch( - NS_NewRunnableFunction( - "dom::VideoDecoderManagerChild::DeallocateSurfaceDescriptorGPUVideo", - [ref, sd]() { - if (ref->CanSend()) { - ref->SendDeallocateSurfaceDescriptorGPUVideo(sd); - } - }), - NS_DISPATCH_NORMAL); + sVideoDecoderChildThread->Dispatch(NS_NewRunnableFunction([ref, sd]() { + if (ref->CanSend()) { + ref->SendDeallocateSurfaceDescriptorGPUVideo(sd); + } + }), NS_DISPATCH_NORMAL); } void diff --git a/dom/media/ipc/VideoDecoderManagerParent.cpp b/dom/media/ipc/VideoDecoderManagerParent.cpp index a80d8310f4d6..e1a50b2400d1 100644 --- a/dom/media/ipc/VideoDecoderManagerParent.cpp +++ b/dom/media/ipc/VideoDecoderManagerParent.cpp @@ -51,12 +51,10 @@ public: private: ~VideoDecoderManagerThreadHolder() { - NS_DispatchToMainThread(NS_NewRunnableFunction( - "dom::VideoDecoderManagerThreadHolder::~VideoDecoderManagerThreadHolder", - []() -> void { - sVideoDecoderManagerThread->Shutdown(); - sVideoDecoderManagerThread = nullptr; - })); + NS_DispatchToMainThread(NS_NewRunnableFunction([]() -> void { + sVideoDecoderManagerThread->Shutdown(); + sVideoDecoderManagerThread = nullptr; + })); } }; StaticRefPtr sVideoDecoderManagerThreadHolder; @@ -102,16 +100,14 @@ VideoDecoderManagerParent::StartupThreads() sVideoDecoderManagerThread = managerThread; sVideoDecoderManagerThreadHolder = new VideoDecoderManagerThreadHolder(); #if XP_WIN - sVideoDecoderManagerThread->Dispatch(NS_NewRunnableFunction("VideoDecoderManagerParent::StartupThreads", - []() { + sVideoDecoderManagerThread->Dispatch(NS_NewRunnableFunction([]() { HRESULT hr = CoInitializeEx(0, COINIT_MULTITHREADED); MOZ_ASSERT(hr == S_OK); }), NS_DISPATCH_NORMAL); #endif - sVideoDecoderManagerThread->Dispatch( - NS_NewRunnableFunction("dom::VideoDecoderManagerParent::StartupThreads", - []() { layers::VideoBridgeChild::Startup(); }), - NS_DISPATCH_NORMAL); + sVideoDecoderManagerThread->Dispatch(NS_NewRunnableFunction([]() { + layers::VideoBridgeChild::Startup(); + }), NS_DISPATCH_NORMAL); sManagerTaskQueue = new TaskQueue( managerThread.forget(), "VideoDecoderManagerParent::sManagerTaskQueue"); @@ -137,9 +133,9 @@ void VideoDecoderManagerParent::ShutdownVideoBridge() { if (sVideoDecoderManagerThread) { - RefPtr task = NS_NewRunnableFunction( - "dom::VideoDecoderManagerParent::ShutdownVideoBridge", - []() { VideoBridgeChild::Shutdown(); }); + RefPtr task = NS_NewRunnableFunction([]() { + VideoBridgeChild::Shutdown(); + }); SyncRunnable::DispatchToThread(sVideoDecoderManagerThread, task); } } @@ -164,12 +160,8 @@ VideoDecoderManagerParent::CreateForContent(Endpoint RefPtr parent = new VideoDecoderManagerParent(sVideoDecoderManagerThreadHolder); - RefPtr task = - NewRunnableMethod&&>( - "dom::VideoDecoderManagerParent::Open", - parent, - &VideoDecoderManagerParent::Open, - Move(aEndpoint)); + RefPtr task = NewRunnableMethod&&>( + parent, &VideoDecoderManagerParent::Open, Move(aEndpoint)); sVideoDecoderManagerThread->Dispatch(task.forget(), NS_DISPATCH_NORMAL); return true; } diff --git a/dom/media/mediasink/DecodedStream.cpp b/dom/media/mediasink/DecodedStream.cpp index 39e7bf08e033..3ae885dc1415 100644 --- a/dom/media/mediasink/DecodedStream.cpp +++ b/dom/media/mediasink/DecodedStream.cpp @@ -60,9 +60,7 @@ public: if (event == MediaStreamGraphEvent::EVENT_FINISHED) { aGraph->DispatchToMainThreadAfterStreamStateUpdate( mAbstractMainThread, - NewRunnableMethod("DecodedStreamGraphListener::DoNotifyFinished", - this, - &DecodedStreamGraphListener::DoNotifyFinished)); + NewRunnableMethod(this, &DecodedStreamGraphListener::DoNotifyFinished)); } } @@ -75,11 +73,10 @@ public: void Forget() { RefPtr self = this; - mAbstractMainThread->Dispatch( - NS_NewRunnableFunction("DecodedStreamGraphListener::Forget", [self]() { - MOZ_ASSERT(NS_IsMainThread()); - self->mFinishPromise.ResolveIfExists(true, __func__); - })); + mAbstractMainThread->Dispatch(NS_NewRunnableFunction([self] () { + MOZ_ASSERT(NS_IsMainThread()); + self->mFinishPromise.ResolveIfExists(true, __func__); + })); MutexAutoLock lock(mMutex); mStream = nullptr; } @@ -113,11 +110,9 @@ UpdateStreamSuspended(AbstractThread* aMainThread, MediaStream* aStream, bool aB } else { nsCOMPtr r; if (aBlocking) { - r = NewRunnableMethod( - "MediaStream::Suspend", aStream, &MediaStream::Suspend); + r = NewRunnableMethod(aStream, &MediaStream::Suspend); } else { - r = - NewRunnableMethod("MediaStream::Resume", aStream, &MediaStream::Resume); + r = NewRunnableMethod(aStream, &MediaStream::Resume); } aMainThread->Dispatch(r.forget()); } @@ -411,8 +406,9 @@ DecodedStream::DestroyData(UniquePtr aData) DecodedStreamData* data = aData.release(); data->Forget(); - nsCOMPtr r = NS_NewRunnableFunction("DecodedStream::DestroyData", - [=]() { delete data; }); + nsCOMPtr r = NS_NewRunnableFunction([=] () { + delete data; + }); mAbstractMainThread->Dispatch(r.forget()); } diff --git a/dom/media/mediasource/AsyncEventRunner.h b/dom/media/mediasource/AsyncEventRunner.h index 5b506523b998..a1b6265f7111 100644 --- a/dom/media/mediasource/AsyncEventRunner.h +++ b/dom/media/mediasource/AsyncEventRunner.h @@ -16,8 +16,7 @@ class AsyncEventRunner : public Runnable { public: AsyncEventRunner(T* aTarget, const char* aName) - : Runnable("AsyncEventRunner") - , mTarget(aTarget) + : mTarget(aTarget) , mName(aName) {} diff --git a/dom/media/mediasource/AutoTaskQueue.h b/dom/media/mediasource/AutoTaskQueue.h index 5f0a62c2d872..225bd6102c3a 100644 --- a/dom/media/mediasource/AutoTaskQueue.h +++ b/dom/media/mediasource/AutoTaskQueue.h @@ -60,8 +60,7 @@ private: { RefPtr taskqueue = mTaskQueue; nsCOMPtr task = - NS_NewRunnableFunction("AutoTaskQueue::~AutoTaskQueue", - [taskqueue]() { taskqueue->BeginShutdown(); }); + NS_NewRunnableFunction([taskqueue]() { taskqueue->BeginShutdown(); }); SystemGroup::Dispatch("~AutoTaskQueue", TaskCategory::Other, task.forget()); } RefPtr mTaskQueue; diff --git a/dom/media/mediasource/MediaSourceDemuxer.cpp b/dom/media/mediasource/MediaSourceDemuxer.cpp index e1cdbecc521f..7a48c82c765f 100644 --- a/dom/media/mediasource/MediaSourceDemuxer.cpp +++ b/dom/media/mediasource/MediaSourceDemuxer.cpp @@ -56,8 +56,8 @@ MediaSourceDemuxer::AddSizeOfResources( // NB: The track buffers must only be accessed on the TaskQueue. RefPtr self = this; RefPtr sizes = aSizes; - nsCOMPtr task = NS_NewRunnableFunction( - "MediaSourceDemuxer::AddSizeOfResources", [self, sizes]() { + nsCOMPtr task = + NS_NewRunnableFunction([self, sizes] () { for (TrackBuffersManager* manager : self->mSourceBuffers) { manager->AddSizeOfResources(sizes); } @@ -69,15 +69,14 @@ MediaSourceDemuxer::AddSizeOfResources( void MediaSourceDemuxer::NotifyInitDataArrived() { RefPtr self = this; - nsCOMPtr task = NS_NewRunnableFunction( - "MediaSourceDemuxer::NotifyInitDataArrived", [self]() { - if (self->mInitPromise.IsEmpty()) { - return; - } - if (self->ScanSourceBuffersForContent()) { - self->mInitPromise.ResolveIfExists(NS_OK, __func__); - } - }); + nsCOMPtr task = NS_NewRunnableFunction([self]() { + if (self->mInitPromise.IsEmpty()) { + return; + } + if (self->ScanSourceBuffersForContent()) { + self->mInitPromise.ResolveIfExists(NS_OK, __func__); + } + }); GetTaskQueue()->Dispatch(task.forget()); } @@ -169,11 +168,10 @@ MediaSourceDemuxer::GetCrypto() void MediaSourceDemuxer::AttachSourceBuffer(TrackBuffersManager* aSourceBuffer) { - nsCOMPtr task = NewRunnableMethod( - "MediaSourceDemuxer::DoAttachSourceBuffer", - this, - &MediaSourceDemuxer::DoAttachSourceBuffer, - aSourceBuffer); + nsCOMPtr task = + NewRunnableMethod( + this, &MediaSourceDemuxer::DoAttachSourceBuffer, + aSourceBuffer); GetTaskQueue()->Dispatch(task.forget()); } @@ -188,11 +186,10 @@ MediaSourceDemuxer::DoAttachSourceBuffer(mozilla::TrackBuffersManager* aSourceBu void MediaSourceDemuxer::DetachSourceBuffer(TrackBuffersManager* aSourceBuffer) { - nsCOMPtr task = NewRunnableMethod( - "MediaSourceDemuxer::DoDetachSourceBuffer", - this, - &MediaSourceDemuxer::DoDetachSourceBuffer, - aSourceBuffer); + nsCOMPtr task = + NewRunnableMethod( + this, &MediaSourceDemuxer::DoDetachSourceBuffer, + aSourceBuffer); GetTaskQueue()->Dispatch(task.forget()); } @@ -345,7 +342,7 @@ MediaSourceTrackDemuxer::Reset() MOZ_ASSERT(mParent, "Called after BreackCycle()"); RefPtr self = this; nsCOMPtr task = - NS_NewRunnableFunction("MediaSourceTrackDemuxer::Reset", [self]() { + NS_NewRunnableFunction([self] () { self->mNextSample.reset(); self->mReset = true; self->mManager->Seek(self->mType, TimeUnit::Zero(), TimeUnit::Zero()); @@ -387,10 +384,10 @@ MediaSourceTrackDemuxer::BreakCycles() { RefPtr self = this; nsCOMPtr task = - NS_NewRunnableFunction("MediaSourceTrackDemuxer::BreakCycles", [self]() { + NS_NewRunnableFunction([self]() { self->mParent = nullptr; self->mManager = nullptr; - }); + } ); mParent->GetTaskQueue()->Dispatch(task.forget()); } diff --git a/dom/media/mediasource/TrackBuffersManager.cpp b/dom/media/mediasource/TrackBuffersManager.cpp index b9abcfb1d546..ee258a37aab3 100644 --- a/dom/media/mediasource/TrackBuffersManager.cpp +++ b/dom/media/mediasource/TrackBuffersManager.cpp @@ -65,8 +65,7 @@ public: DispatchKeyNeededEvent(AbstractMediaDecoder* aDecoder, nsTArray& aInitData, const nsString& aInitDataType) - : Runnable("DispatchKeyNeededEvent") - , mDecoder(aDecoder) + : mDecoder(aDecoder) , mInitData(aInitData) , mInitDataType(aInitDataType) { @@ -148,10 +147,7 @@ TrackBuffersManager::QueueTask(SourceBufferTask* aTask) { if (!OnTaskQueue()) { GetTaskQueue()->Dispatch(NewRunnableMethod>( - "TrackBuffersManager::QueueTask", - this, - &TrackBuffersManager::QueueTask, - aTask)); + this, &TrackBuffersManager::QueueTask, aTask)); return; } MOZ_ASSERT(OnTaskQueue()); @@ -216,10 +212,7 @@ TrackBuffersManager::ProcessTasks() default: NS_WARNING("Invalid Task"); } - GetTaskQueue()->Dispatch( - NewRunnableMethod("TrackBuffersManager::ProcessTasks", - this, - &TrackBuffersManager::ProcessTasks)); + GetTaskQueue()->Dispatch(NewRunnableMethod(this, &TrackBuffersManager::ProcessTasks)); } // The MSE spec requires that we abort the current SegmentParserLoop @@ -797,10 +790,7 @@ TrackBuffersManager::RejectAppend(const MediaResult& aRejectValue, const char* a void TrackBuffersManager::ScheduleSegmentParserLoop() { - GetTaskQueue()->Dispatch( - NewRunnableMethod("TrackBuffersManager::SegmentParserLoop", - this, - &TrackBuffersManager::SegmentParserLoop)); + GetTaskQueue()->Dispatch(NewRunnableMethod(this, &TrackBuffersManager::SegmentParserLoop)); } void @@ -884,12 +874,11 @@ TrackBuffersManager::OnDemuxerResetDone(const MediaResult& aResult) if (aResult != NS_OK && mParentDecoder) { RefPtr self = this; - mAbstractMainThread->Dispatch(NS_NewRunnableFunction( - "TrackBuffersManager::OnDemuxerResetDone", [self, aResult]() { - if (self->mParentDecoder && self->mParentDecoder->GetOwner()) { - self->mParentDecoder->GetOwner()->DecodeWarning(aResult); - } - })); + mAbstractMainThread->Dispatch(NS_NewRunnableFunction([self, aResult] () { + if (self->mParentDecoder && self->mParentDecoder->GetOwner()) { + self->mParentDecoder->GetOwner()->DecodeWarning(aResult); + } + })); } // Recreate track demuxers. @@ -1010,11 +999,10 @@ TrackBuffersManager::OnDemuxerInitDone(const MediaResult& aResult) int64_t duration = std::max(videoDuration, audioDuration); // 1. Update the duration attribute if it currently equals NaN. // Those steps are performed by the MediaSourceDecoder::SetInitialDuration - mAbstractMainThread->Dispatch( - NewRunnableMethod("MediaSourceDecoder::SetInitialDuration", - mParentDecoder.get(), - &MediaSourceDecoder::SetInitialDuration, - duration ? duration : -1)); + mAbstractMainThread->Dispatch(NewRunnableMethod + (mParentDecoder.get(), + &MediaSourceDecoder::SetInitialDuration, + duration ? duration : -1)); // 2. If the initialization segment has no audio, video, or text tracks, then // run the append error algorithm with the decode error parameter set to true @@ -1171,12 +1159,11 @@ TrackBuffersManager::OnDemuxerInitDone(const MediaResult& aResult) if (aResult != NS_OK && mParentDecoder) { RefPtr self = this; - mAbstractMainThread->Dispatch(NS_NewRunnableFunction( - "TrackBuffersManager::OnDemuxerInitDone", [self, aResult]() { - if (self->mParentDecoder && self->mParentDecoder->GetOwner()) { - self->mParentDecoder->GetOwner()->DecodeWarning(aResult); - } - })); + mAbstractMainThread->Dispatch(NS_NewRunnableFunction([self, aResult] () { + if (self->mParentDecoder && self->mParentDecoder->GetOwner()) { + self->mParentDecoder->GetOwner()->DecodeWarning(aResult); + } + })); } } diff --git a/dom/media/ogg/OggDemuxer.cpp b/dom/media/ogg/OggDemuxer.cpp index 26cc97fda18d..cc0017d53fa8 100644 --- a/dom/media/ogg/OggDemuxer.cpp +++ b/dom/media/ogg/OggDemuxer.cpp @@ -129,20 +129,14 @@ OggDemuxer::~OggDemuxer() // a chained stream or not. bool isChained = mIsChained; void* ptr = this; - nsCOMPtr task = NS_NewRunnableFunction( - "OggDemuxer::~OggDemuxer", [ptr, isChained]() -> void { - // We can't use OGG_DEBUG here because it implicitly refers to `this`, - // which we can't capture in this runnable. - MOZ_LOG(gMediaDemuxerLog, - mozilla::LogLevel::Debug, - ("OggDemuxer(%p)::%s: Reporting telemetry " - "MEDIA_OGG_LOADED_IS_CHAINED=%d", - ptr, - __func__, - isChained)); - Telemetry::Accumulate( - Telemetry::HistogramID::MEDIA_OGG_LOADED_IS_CHAINED, isChained); - }); + nsCOMPtr task = NS_NewRunnableFunction([ptr, isChained]() -> void { + // We can't use OGG_DEBUG here because it implicitly refers to `this`, + // which we can't capture in this runnable. + MOZ_LOG(gMediaDemuxerLog, mozilla::LogLevel::Debug, + ("OggDemuxer(%p)::%s: Reporting telemetry MEDIA_OGG_LOADED_IS_CHAINED=%d", + ptr, __func__, isChained)); + Telemetry::Accumulate(Telemetry::HistogramID::MEDIA_OGG_LOADED_IS_CHAINED, isChained); + }); SystemGroup::Dispatch("~OggDemuxer::report_telemetry", TaskCategory::Other, task.forget()); diff --git a/dom/media/platforms/PDMFactory.cpp b/dom/media/platforms/PDMFactory.cpp index 5105957d33c9..afc040eabc53 100644 --- a/dom/media/platforms/PDMFactory.cpp +++ b/dom/media/platforms/PDMFactory.cpp @@ -191,7 +191,7 @@ PDMFactory::EnsureInit() const // Not on the main thread -> Sync-dispatch creation to main thread. nsCOMPtr mainTarget = GetMainThreadEventTarget(); nsCOMPtr runnable = - NS_NewRunnableFunction("PDMFactory::EnsureInit", []() { + NS_NewRunnableFunction([]() { StaticMutexAutoLock mon(sMonitor); if (!sInstance) { sInstance = new PDMFactoryImpl(); diff --git a/dom/media/platforms/android/RemoteDataDecoder.cpp b/dom/media/platforms/android/RemoteDataDecoder.cpp index ed57b99a8226..20dac82cfbc5 100644 --- a/dom/media/platforms/android/RemoteDataDecoder.cpp +++ b/dom/media/platforms/android/RemoteDataDecoder.cpp @@ -555,8 +555,7 @@ RemoteDataDecoder::UpdateInputStatus(int64_t aTimestamp, bool aProcessed) { if (!mTaskQueue->IsCurrentThreadIn()) { mTaskQueue->Dispatch( - NewRunnableMethod("RemoteDataDecoder::UpdateInputStatus", - this, + NewRunnableMethod(this, &RemoteDataDecoder::UpdateInputStatus, aTimestamp, aProcessed)); @@ -584,8 +583,7 @@ RemoteDataDecoder::UpdateOutputStatus(MediaData* aSample) { if (!mTaskQueue->IsCurrentThreadIn()) { mTaskQueue->Dispatch( - NewRunnableMethod("RemoteDataDecoder::UpdateOutputStatus", - this, + NewRunnableMethod(this, &RemoteDataDecoder::UpdateOutputStatus, aSample)); return; @@ -619,8 +617,7 @@ RemoteDataDecoder::DrainComplete() { if (!mTaskQueue->IsCurrentThreadIn()) { mTaskQueue->Dispatch( - NewRunnableMethod("RemoteDataDecoder::DrainComplete", - this, &RemoteDataDecoder::DrainComplete)); + NewRunnableMethod(this, &RemoteDataDecoder::DrainComplete)); return; } AssertOnTaskQueue(); @@ -638,8 +635,7 @@ RemoteDataDecoder::Error(const MediaResult& aError) { if (!mTaskQueue->IsCurrentThreadIn()) { mTaskQueue->Dispatch( - NewRunnableMethod("RemoteDataDecoder::Error", - this, &RemoteDataDecoder::Error, aError)); + NewRunnableMethod(this, &RemoteDataDecoder::Error, aError)); return; } AssertOnTaskQueue(); diff --git a/dom/media/platforms/omx/OmxDataDecoder.cpp b/dom/media/platforms/omx/OmxDataDecoder.cpp index 885366f99aa5..011e23cc861e 100644 --- a/dom/media/platforms/omx/OmxDataDecoder.cpp +++ b/dom/media/platforms/omx/OmxDataDecoder.cpp @@ -386,17 +386,16 @@ OmxDataDecoder::EmptyBufferDone(BufferData* aData) mCheckingInputExhausted = true; RefPtr self = this; - nsCOMPtr r = - NS_NewRunnableFunction("OmxDataDecoder::EmptyBufferDone", [self, this]() { - mCheckingInputExhausted = false; + nsCOMPtr r = NS_NewRunnableFunction([self, this]() { + mCheckingInputExhausted = false; - if (mMediaRawDatas.Length()) { - return; - } + if (mMediaRawDatas.Length()) { + return; + } - mDecodePromise.ResolveIfExists(mDecodedData, __func__); - mDecodedData.Clear(); - }); + mDecodePromise.ResolveIfExists(mDecodedData, __func__); + mDecodedData.Clear(); + }); mOmxTaskQueue->Dispatch(r.forget()); } diff --git a/dom/media/platforms/wmf/WMFAudioMFTManager.cpp b/dom/media/platforms/wmf/WMFAudioMFTManager.cpp index 46aa556b7cbf..e0cad38baa5c 100644 --- a/dom/media/platforms/wmf/WMFAudioMFTManager.cpp +++ b/dom/media/platforms/wmf/WMFAudioMFTManager.cpp @@ -252,8 +252,7 @@ WMFAudioMFTManager::Output(int64_t aStreamOffset, if (!sample) { LOG("Audio MFTDecoder returned success but null output."); - nsCOMPtr task = NS_NewRunnableFunction("WMFAudioMFTManager::Output", - []() -> void { + nsCOMPtr task = NS_NewRunnableFunction([]() -> void { LOG("Reporting telemetry AUDIO_MFT_OUTPUT_NULL_SAMPLES"); Telemetry::Accumulate(Telemetry::HistogramID::AUDIO_MFT_OUTPUT_NULL_SAMPLES, 1); }); diff --git a/dom/media/platforms/wmf/WMFMediaDataDecoder.cpp b/dom/media/platforms/wmf/WMFMediaDataDecoder.cpp index 79a6dbf4bfa5..e06ecee2f0c2 100644 --- a/dom/media/platforms/wmf/WMFMediaDataDecoder.cpp +++ b/dom/media/platforms/wmf/WMFMediaDataDecoder.cpp @@ -62,7 +62,6 @@ SendTelemetry(unsigned long hr) } nsCOMPtr runnable = NS_NewRunnableFunction( - "SendTelemetry", [sample] { Telemetry::Accumulate(Telemetry::MEDIA_WMF_DECODE_ERROR, sample); }); @@ -231,8 +230,7 @@ WMFMediaDataDecoder::SetSeekThreshold(const media::TimeUnit& aTime) RefPtr self = this; nsCOMPtr runnable = - NS_NewRunnableFunction("WMFMediaDataDecoder::SetSeekThreshold", - [self, aTime]() { + NS_NewRunnableFunction([self, aTime]() { media::TimeUnit threshold = aTime; self->mMFTManager->SetSeekThreshold(threshold); }); diff --git a/dom/media/platforms/wmf/WMFVideoMFTManager.cpp b/dom/media/platforms/wmf/WMFVideoMFTManager.cpp index 9de254f16c42..04b3f11d9014 100644 --- a/dom/media/platforms/wmf/WMFVideoMFTManager.cpp +++ b/dom/media/platforms/wmf/WMFVideoMFTManager.cpp @@ -151,8 +151,7 @@ WMFVideoMFTManager::~WMFVideoMFTManager() ? 2 : mGotValidOutputAfterNullOutput ? 3 : 4; - nsCOMPtr task = NS_NewRunnableFunction("WMFVideoMFTManager::~WMFVideoMFTManager", - [=]() -> void { + nsCOMPtr task = NS_NewRunnableFunction([=]() -> void { LOG(nsPrintfCString("Reporting telemetry VIDEO_MFT_OUTPUT_NULL_SAMPLES=%d", telemetry) .get()); @@ -389,8 +388,7 @@ class CreateDXVAManagerEvent : public Runnable public: CreateDXVAManagerEvent(layers::KnowsCompositor* aKnowsCompositor, nsCString& aFailureReason) - : Runnable("CreateDXVAManagerEvent") - , mBackend(LayersBackend::LAYERS_D3D11) + : mBackend(LayersBackend::LAYERS_D3D11) , mKnowsCompositor(aKnowsCompositor) , mFailureReason(aFailureReason) { @@ -693,8 +691,7 @@ public: SupportsConfigEvent(DXVA2Manager* aDXVA2Manager, IMFMediaType* aMediaType, float aFramerate) - : Runnable("SupportsConfigEvent") - , mDXVA2Manager(aDXVA2Manager) + : mDXVA2Manager(aDXVA2Manager) , mMediaType(aMediaType) , mFramerate(aFramerate) , mSupportsConfig(false) diff --git a/dom/media/platforms/wrappers/MediaDataDecoderProxy.cpp b/dom/media/platforms/wrappers/MediaDataDecoderProxy.cpp index 374cacfa2b70..099b7957ca7e 100644 --- a/dom/media/platforms/wrappers/MediaDataDecoderProxy.cpp +++ b/dom/media/platforms/wrappers/MediaDataDecoderProxy.cpp @@ -107,7 +107,6 @@ MediaDataDecoderProxy::SetSeekThreshold(const media::TimeUnit& aTime) RefPtr self = this; media::TimeUnit time = aTime; mProxyThread->Dispatch(NS_NewRunnableFunction( - "MediaDataDecoderProxy::SetSeekThreshold", [self, time] { self->mProxyDecoder->SetSeekThreshold(time); })); } diff --git a/dom/media/systemservices/CamerasChild.cpp b/dom/media/systemservices/CamerasChild.cpp index f932d87df09c..b955881291ff 100644 --- a/dom/media/systemservices/CamerasChild.cpp +++ b/dom/media/systemservices/CamerasChild.cpp @@ -46,10 +46,7 @@ class FakeOnDeviceChangeEventRunnable : public Runnable { public: explicit FakeOnDeviceChangeEventRunnable(uint8_t counter) - : Runnable("camera::FakeOnDeviceChangeEventRunnable") - , mCounter(counter) - { - } + : mCounter(counter) {} NS_IMETHOD Run() override { @@ -77,10 +74,7 @@ class InitializeIPCThread : public Runnable { public: InitializeIPCThread() - : Runnable("camera::InitializeIPCThread") - , mCamerasChild(nullptr) - { - } + : mCamerasChild(nullptr) {} NS_IMETHOD Run() override { // Try to get the PBackground handle @@ -291,12 +285,8 @@ CamerasChild::NumberOfCapabilities(CaptureEngine aCapEngine, LOG(("NumberOfCapabilities for %s", deviceUniqueIdUTF8)); nsCString unique_id(deviceUniqueIdUTF8); nsCOMPtr runnable = - mozilla::NewNonOwningRunnableMethod( - "camera::PCamerasChild::SendNumberOfCapabilities", - this, - &CamerasChild::SendNumberOfCapabilities, - aCapEngine, - unique_id); + mozilla::NewNonOwningRunnableMethod + (this, &CamerasChild::SendNumberOfCapabilities, aCapEngine, unique_id); LockAndDispatch<> dispatcher(this, __func__, runnable, 0, mReplyInteger); LOG(("Capture capability count: %d", dispatcher.ReturnValue())); return dispatcher.ReturnValue(); @@ -307,11 +297,8 @@ CamerasChild::NumberOfCaptureDevices(CaptureEngine aCapEngine) { LOG((__PRETTY_FUNCTION__)); nsCOMPtr runnable = - mozilla::NewNonOwningRunnableMethod( - "camera::PCamerasChild::SendNumberOfCaptureDevices", - this, - &CamerasChild::SendNumberOfCaptureDevices, - aCapEngine); + mozilla::NewNonOwningRunnableMethod + (this, &CamerasChild::SendNumberOfCaptureDevices, aCapEngine); LockAndDispatch<> dispatcher(this, __func__, runnable, 0, mReplyInteger); LOG(("Capture Devices: %d", dispatcher.ReturnValue())); return dispatcher.ReturnValue(); @@ -334,11 +321,8 @@ CamerasChild::EnsureInitialized(CaptureEngine aCapEngine) { LOG((__PRETTY_FUNCTION__)); nsCOMPtr runnable = - mozilla::NewNonOwningRunnableMethod( - "camera::PCamerasChild::SendEnsureInitialized", - this, - &CamerasChild::SendEnsureInitialized, - aCapEngine); + mozilla::NewNonOwningRunnableMethod + (this, &CamerasChild::SendEnsureInitialized, aCapEngine); LockAndDispatch<> dispatcher(this, __func__, runnable, 0, mReplyInteger); LOG(("Capture Devices: %d", dispatcher.ReturnValue())); return dispatcher.ReturnValue(); @@ -353,13 +337,8 @@ CamerasChild::GetCaptureCapability(CaptureEngine aCapEngine, LOG(("GetCaptureCapability: %s %d", unique_idUTF8, capability_number)); nsCString unique_id(unique_idUTF8); nsCOMPtr runnable = - mozilla::NewNonOwningRunnableMethod( - "camera::PCamerasChild::SendGetCaptureCapability", - this, - &CamerasChild::SendGetCaptureCapability, - aCapEngine, - unique_id, - capability_number); + mozilla::NewNonOwningRunnableMethod + (this, &CamerasChild::SendGetCaptureCapability, aCapEngine, unique_id, capability_number); LockAndDispatch<> dispatcher(this, __func__, runnable); if (dispatcher.Success()) { capability = mReplyCapability; @@ -395,12 +374,8 @@ CamerasChild::GetCaptureDevice(CaptureEngine aCapEngine, { LOG((__PRETTY_FUNCTION__)); nsCOMPtr runnable = - mozilla::NewNonOwningRunnableMethod( - "camera::PCamerasChild::SendGetCaptureDevice", - this, - &CamerasChild::SendGetCaptureDevice, - aCapEngine, - list_number); + mozilla::NewNonOwningRunnableMethod + (this, &CamerasChild::SendGetCaptureDevice, aCapEngine, list_number); LockAndDispatch<> dispatcher(this, __func__, runnable); if (dispatcher.Success()) { base::strlcpy(device_nameUTF8, mReplyDeviceName.get(), device_nameUTF8Length); @@ -439,15 +414,8 @@ CamerasChild::AllocateCaptureDevice(CaptureEngine aCapEngine, LOG((__PRETTY_FUNCTION__)); nsCString unique_id(unique_idUTF8); nsCOMPtr runnable = - mozilla::NewNonOwningRunnableMethod( - "camera::PCamerasChild::SendAllocateCaptureDevice", - this, - &CamerasChild::SendAllocateCaptureDevice, - aCapEngine, - unique_id, - aPrincipalInfo); + mozilla::NewNonOwningRunnableMethod + (this, &CamerasChild::SendAllocateCaptureDevice, aCapEngine, unique_id, aPrincipalInfo); LockAndDispatch<> dispatcher(this, __func__, runnable); if (dispatcher.Success()) { LOG(("Capture Device allocated: %d", mReplyInteger)); @@ -475,12 +443,8 @@ CamerasChild::ReleaseCaptureDevice(CaptureEngine aCapEngine, { LOG((__PRETTY_FUNCTION__)); nsCOMPtr runnable = - mozilla::NewNonOwningRunnableMethod( - "camera::PCamerasChild::SendReleaseCaptureDevice", - this, - &CamerasChild::SendReleaseCaptureDevice, - aCapEngine, - capture_id); + mozilla::NewNonOwningRunnableMethod + (this, &CamerasChild::SendReleaseCaptureDevice, aCapEngine, capture_id); LockAndDispatch<> dispatcher(this, __func__, runnable); return dispatcher.ReturnValue(); } @@ -525,14 +489,9 @@ CamerasChild::StartCapture(CaptureEngine aCapEngine, webrtcCaps.rawType, webrtcCaps.codecType, webrtcCaps.interlaced); - nsCOMPtr runnable = mozilla:: - NewNonOwningRunnableMethod( - "camera::PCamerasChild::SendStartCapture", - this, - &CamerasChild::SendStartCapture, - aCapEngine, - capture_id, - capCap); + nsCOMPtr runnable = + mozilla::NewNonOwningRunnableMethod + (this, &CamerasChild::SendStartCapture, aCapEngine, capture_id, capCap); LockAndDispatch<> dispatcher(this, __func__, runnable); return dispatcher.ReturnValue(); } @@ -542,12 +501,8 @@ CamerasChild::StopCapture(CaptureEngine aCapEngine, const int capture_id) { LOG((__PRETTY_FUNCTION__)); nsCOMPtr runnable = - mozilla::NewNonOwningRunnableMethod( - "camera::PCamerasChild::SendStopCapture", - this, - &CamerasChild::SendStopCapture, - aCapEngine, - capture_id); + mozilla::NewNonOwningRunnableMethod + (this, &CamerasChild::SendStopCapture, aCapEngine, capture_id); LockAndDispatch<> dispatcher(this, __func__, runnable); if (dispatcher.Success()) { RemoveCallback(aCapEngine, capture_id); @@ -571,9 +526,9 @@ Shutdown(void) class ShutdownRunnable : public Runnable { public: - explicit ShutdownRunnable(already_AddRefed&& aReplyEvent) - : Runnable("camera::ShutdownRunnable") - , mReplyEvent(aReplyEvent){}; + explicit + ShutdownRunnable(already_AddRefed&& aReplyEvent) + : mReplyEvent(aReplyEvent) {}; NS_IMETHOD Run() override { LOG(("Closing BackgroundChild")); @@ -610,8 +565,8 @@ CamerasChild::ShutdownParent() // Delete the parent actor. // CamerasChild (this) will remain alive and is only deleted by the // IPC layer when SendAllDone returns. - nsCOMPtr deleteRunnable = mozilla::NewNonOwningRunnableMethod( - "camera::PCamerasChild::SendAllDone", this, &CamerasChild::SendAllDone); + nsCOMPtr deleteRunnable = + mozilla::NewNonOwningRunnableMethod(this, &CamerasChild::SendAllDone); CamerasSingleton::Thread()->Dispatch(deleteRunnable, NS_DISPATCH_NORMAL); } else { LOG(("ShutdownParent called without PBackground thread")); @@ -626,8 +581,9 @@ CamerasChild::ShutdownChild() LOG(("PBackground thread exists, dispatching close")); // Dispatch closing the IPC thread back to us when the // BackgroundChild is closed. - RefPtr runnable = new ShutdownRunnable(NewRunnableMethod( - "nsIThread::Shutdown", CamerasSingleton::Thread(), &nsIThread::Shutdown)); + RefPtr runnable = + new ShutdownRunnable(NewRunnableMethod(CamerasSingleton::Thread(), + &nsIThread::Shutdown)); CamerasSingleton::Thread()->Dispatch(runnable.forget(), NS_DISPATCH_NORMAL); } else { LOG(("Shutdown called without PBackground thread")); @@ -637,10 +593,9 @@ CamerasChild::ShutdownChild() CamerasSingleton::Thread() = nullptr; if (CamerasSingleton::FakeDeviceChangeEventThread()) { - RefPtr runnable = new ShutdownRunnable( - NewRunnableMethod("nsIThread::Shutdown", - CamerasSingleton::FakeDeviceChangeEventThread(), - &nsIThread::Shutdown)); + RefPtr runnable = + new ShutdownRunnable(NewRunnableMethod(CamerasSingleton::FakeDeviceChangeEventThread(), + &nsIThread::Shutdown)); CamerasSingleton::FakeDeviceChangeEventThread()->Dispatch(runnable.forget(), NS_DISPATCH_NORMAL); } CamerasSingleton::FakeDeviceChangeEventThread() = nullptr; diff --git a/dom/media/systemservices/CamerasParent.cpp b/dom/media/systemservices/CamerasParent.cpp index 54f45e931c33..5be8ff338669 100644 --- a/dom/media/systemservices/CamerasParent.cpp +++ b/dom/media/systemservices/CamerasParent.cpp @@ -70,16 +70,11 @@ void InputObserver::OnDeviceChange() { class DeliverFrameRunnable : public ::mozilla::Runnable { public: - DeliverFrameRunnable(CamerasParent* aParent, - CaptureEngine aEngine, - uint32_t aStreamId, - const webrtc::VideoFrame& aFrame, - const VideoFrameProperties& aProperties) - : Runnable("camera::DeliverFrameRunnable") - , mParent(aParent) - , mCapEngine(aEngine) - , mStreamId(aStreamId) - , mProperties(aProperties) + DeliverFrameRunnable(CamerasParent *aParent, CaptureEngine aEngine, + uint32_t aStreamId, const webrtc::VideoFrame& aFrame, + const VideoFrameProperties& aProperties) + : mParent(aParent), mCapEngine(aEngine), mStreamId(aStreamId), + mProperties(aProperties) { // No ShmemBuffer (of the right size) was available, so make an // extra buffer here. We have no idea when we are going to run and @@ -92,17 +87,11 @@ public: aProperties.bufferSize(), aFrame); } - DeliverFrameRunnable(CamerasParent* aParent, - CaptureEngine aEngine, - uint32_t aStreamId, - ShmemBuffer aBuffer, - VideoFrameProperties& aProperties) - : Runnable("camera::DeliverFrameRunnable") - , mParent(aParent) - , mCapEngine(aEngine) - , mStreamId(aStreamId) - , mBuffer(Move(aBuffer)) - , mProperties(aProperties){}; + DeliverFrameRunnable(CamerasParent* aParent, CaptureEngine aEngine, + uint32_t aStreamId, ShmemBuffer aBuffer, VideoFrameProperties& aProperties) + : mParent(aParent), mCapEngine(aEngine), mStreamId(aStreamId), + mBuffer(Move(aBuffer)), mProperties(aProperties) + {}; NS_IMETHOD Run() override { if (mParent->IsShuttingDown()) { diff --git a/dom/media/systemservices/MediaSystemResourceManager.cpp b/dom/media/systemservices/MediaSystemResourceManager.cpp index e4e2ca2cb95d..29db0ef3eaed 100644 --- a/dom/media/systemservices/MediaSystemResourceManager.cpp +++ b/dom/media/systemservices/MediaSystemResourceManager.cpp @@ -65,7 +65,7 @@ MediaSystemResourceManager::Init() bool done = false; RefPtr runnable = - NS_NewRunnableFunction("MediaSystemResourceManager::Init", [&]() { + NS_NewRunnableFunction([&]() { if (!sSingleton) { sSingleton = new MediaSystemResourceManager(); } @@ -199,10 +199,10 @@ MediaSystemResourceManager::Acquire(MediaSystemResourceClient* aClient) } aClient->mResourceState = MediaSystemResourceClient::RESOURCE_STATE_WAITING; ImageBridgeChild::GetSingleton()->GetMessageLoop()->PostTask( - NewRunnableMethod("MediaSystemResourceManager::DoAcquire", - this, - &MediaSystemResourceManager::DoAcquire, - aClient->mId)); + NewRunnableMethod( + this, + &MediaSystemResourceManager::DoAcquire, + aClient->mId)); } bool @@ -242,10 +242,10 @@ MediaSystemResourceManager::AcquireSyncNoWait(MediaSystemResourceClient* aClient } ImageBridgeChild::GetSingleton()->GetMessageLoop()->PostTask( - NewRunnableMethod("MediaSystemResourceManager::DoAcquire", - this, - &MediaSystemResourceManager::DoAcquire, - aClient->mId)); + NewRunnableMethod( + this, + &MediaSystemResourceManager::DoAcquire, + aClient->mId)); // should stop the thread until done. while (!done) { @@ -309,10 +309,10 @@ MediaSystemResourceManager::ReleaseResource(MediaSystemResourceClient* aClient) aClient->mResourceState = MediaSystemResourceClient::RESOURCE_STATE_END; ImageBridgeChild::GetSingleton()->GetMessageLoop()->PostTask( - NewRunnableMethod("MediaSystemResourceManager::DoRelease", - this, - &MediaSystemResourceManager::DoRelease, - aClient->mId)); + NewRunnableMethod( + this, + &MediaSystemResourceManager::DoRelease, + aClient->mId)); } } @@ -338,7 +338,6 @@ MediaSystemResourceManager::HandleAcquireResult(uint32_t aId, bool aSuccess) if (!InImageBridgeChildThread()) { ImageBridgeChild::GetSingleton()->GetMessageLoop()->PostTask( NewRunnableMethod( - "MediaSystemResourceManager::HandleAcquireResult", this, &MediaSystemResourceManager::HandleAcquireResult, aId, diff --git a/dom/media/systemservices/MediaTaskUtils.h b/dom/media/systemservices/MediaTaskUtils.h index a6c43c57e007..c9b64fd2a4d5 100644 --- a/dom/media/systemservices/MediaTaskUtils.h +++ b/dom/media/systemservices/MediaTaskUtils.h @@ -24,12 +24,7 @@ template class LambdaTask : public Runnable { public: - explicit LambdaTask(OnRunType&& aOnRun) - : Runnable("media::LambdaTask") - , mOnRun(Move(aOnRun)) - { - } - + explicit LambdaTask(OnRunType&& aOnRun) : mOnRun(Move(aOnRun)) {} private: NS_IMETHOD Run() override diff --git a/dom/media/systemservices/MediaUtils.h b/dom/media/systemservices/MediaUtils.h index 61cbbd7a5089..c208147aaafc 100644 --- a/dom/media/systemservices/MediaUtils.h +++ b/dom/media/systemservices/MediaUtils.h @@ -186,12 +186,7 @@ template class LambdaRunnable : public Runnable { public: - explicit LambdaRunnable(OnRunType&& aOnRun) - : Runnable("media::LambdaRunnable") - , mOnRun(Move(aOnRun)) - { - } - + explicit LambdaRunnable(OnRunType&& aOnRun) : mOnRun(Move(aOnRun)) {} private: NS_IMETHODIMP Run() override diff --git a/dom/media/webaudio/AnalyserNode.cpp b/dom/media/webaudio/AnalyserNode.cpp index 0bfd4138198f..ba9d10b4cc69 100644 --- a/dom/media/webaudio/AnalyserNode.cpp +++ b/dom/media/webaudio/AnalyserNode.cpp @@ -29,9 +29,9 @@ class AnalyserNodeEngine final : public AudioNodeEngine class TransferBuffer final : public Runnable { public: - TransferBuffer(AudioNodeStream* aStream, const AudioChunk& aChunk) - : Runnable("dom::AnalyserNodeEngine::TransferBuffer") - , mStream(aStream) + TransferBuffer(AudioNodeStream* aStream, + const AudioChunk& aChunk) + : mStream(aStream) , mChunk(aChunk) { } diff --git a/dom/media/webaudio/AudioBufferSourceNode.cpp b/dom/media/webaudio/AudioBufferSourceNode.cpp index 6c61af54ef2a..5bde3cf099e3 100644 --- a/dom/media/webaudio/AudioBufferSourceNode.cpp +++ b/dom/media/webaudio/AudioBufferSourceNode.cpp @@ -809,10 +809,7 @@ AudioBufferSourceNode::NotifyMainThreadStreamFinished() { public: explicit EndedEventDispatcher(AudioBufferSourceNode* aNode) - : mozilla::Runnable("EndedEventDispatcher") - , mNode(aNode) - { - } + : mNode(aNode) {} NS_IMETHOD Run() override { // If it's not safe to run scripts right now, schedule this to run later diff --git a/dom/media/webaudio/AudioDestinationNode.cpp b/dom/media/webaudio/AudioDestinationNode.cpp index ed55031b238a..abe357e3264e 100644 --- a/dom/media/webaudio/AudioDestinationNode.cpp +++ b/dom/media/webaudio/AudioDestinationNode.cpp @@ -125,8 +125,7 @@ public: { public: OnCompleteTask(AudioContext* aAudioContext, AudioBuffer* aRenderedBuffer) - : Runnable("dom::OfflineDestinationNodeEngine::OnCompleteTask") - , mAudioContext(aAudioContext) + : mAudioContext(aAudioContext) , mRenderedBuffer(aRenderedBuffer) {} @@ -205,9 +204,9 @@ private: class InputMutedRunnable final : public Runnable { public: - InputMutedRunnable(AudioNodeStream* aStream, bool aInputMuted) - : Runnable("dom::InputMutedRunnable") - , mStream(aStream) + InputMutedRunnable(AudioNodeStream* aStream, + bool aInputMuted) + : mStream(aStream) , mInputMuted(aInputMuted) { } @@ -413,10 +412,8 @@ AudioDestinationNode::NotifyMainThreadStreamFinished() MOZ_ASSERT(mStream->IsFinished()); if (mIsOffline) { - NS_DispatchToCurrentThread( - NewRunnableMethod("dom::AudioDestinationNode::FireOfflineCompletionEvent", - this, - &AudioDestinationNode::FireOfflineCompletionEvent)); + NS_DispatchToCurrentThread(NewRunnableMethod(this, + &AudioDestinationNode::FireOfflineCompletionEvent)); } } diff --git a/dom/media/webaudio/AudioNode.cpp b/dom/media/webaudio/AudioNode.cpp index 33ad902ee1a3..068a447ae879 100644 --- a/dom/media/webaudio/AudioNode.cpp +++ b/dom/media/webaudio/AudioNode.cpp @@ -340,10 +340,7 @@ AudioNode::DisconnectFromOutputIfConnected(uint32_t aOutputNodeIndex, { public: explicit RunnableRelease(already_AddRefed aNode) - : mozilla::Runnable("RunnableRelease") - , mNode(aNode) - { - } + : mNode(aNode) {} NS_IMETHOD Run() override { diff --git a/dom/media/webaudio/ConstantSourceNode.cpp b/dom/media/webaudio/ConstantSourceNode.cpp index 1615233510dc..b3af764b4ab6 100644 --- a/dom/media/webaudio/ConstantSourceNode.cpp +++ b/dom/media/webaudio/ConstantSourceNode.cpp @@ -257,10 +257,7 @@ ConstantSourceNode::NotifyMainThreadStreamFinished() { public: explicit EndedEventDispatcher(ConstantSourceNode* aNode) - : mozilla::Runnable("EndedEventDispatcher") - , mNode(aNode) - { - } + : mNode(aNode) {} NS_IMETHOD Run() override { // If it's not safe to run scripts right now, schedule this to run later diff --git a/dom/media/webaudio/DynamicsCompressorNode.cpp b/dom/media/webaudio/DynamicsCompressorNode.cpp index 974405ec05f7..46e14c79a334 100644 --- a/dom/media/webaudio/DynamicsCompressorNode.cpp +++ b/dom/media/webaudio/DynamicsCompressorNode.cpp @@ -148,8 +148,7 @@ private: { public: Command(AudioNodeStream* aStream, float aReduction) - : mozilla::Runnable("Command") - , mStream(aStream) + : mStream(aStream) , mReduction(aReduction) { } diff --git a/dom/media/webaudio/MediaBufferDecoder.cpp b/dom/media/webaudio/MediaBufferDecoder.cpp index 4ef2f9328d93..c8791dfe470f 100644 --- a/dom/media/webaudio/MediaBufferDecoder.cpp +++ b/dom/media/webaudio/MediaBufferDecoder.cpp @@ -42,8 +42,7 @@ public: ReportResultTask(WebAudioDecodeJob& aDecodeJob, WebAudioDecodeJob::ResultFn aFunction, WebAudioDecodeJob::ErrorCode aErrorCode) - : Runnable("ReportResultTask") - , mDecodeJob(aDecodeJob) + : mDecodeJob(aDecodeJob) , mFunction(aFunction) , mErrorCode(aErrorCode) { @@ -79,12 +78,10 @@ enum class PhaseEnum : int class MediaDecodeTask final : public Runnable { public: - MediaDecodeTask(const MediaContainerType& aContainerType, - uint8_t* aBuffer, + MediaDecodeTask(const MediaContainerType& aContainerType, uint8_t* aBuffer, uint32_t aLength, WebAudioDecodeJob& aDecodeJob) - : Runnable("MediaDecodeTask") - , mContainerType(aContainerType) + : mContainerType(aContainerType) , mBuffer(aBuffer) , mLength(aLength) , mDecodeJob(aDecodeJob) @@ -106,8 +103,8 @@ private: mDecodeJob.OnFailure(aErrorCode); } else { // Take extra care to cleanup on the main thread - mMainThread->Dispatch(NewRunnableMethod( - "MediaDecodeTask::Cleanup", this, &MediaDecodeTask::Cleanup)); + mMainThread->Dispatch(NewRunnableMethod(this, &MediaDecodeTask::Cleanup)); + nsCOMPtr event = new ReportResultTask(mDecodeJob, &WebAudioDecodeJob::OnFailure, aErrorCode); @@ -269,14 +266,13 @@ MediaDecodeTask::OnMetadataRead(MetadataHolder&& aMetadata) mContainerType.Type().AsString().Data()); } - nsCOMPtr task = NS_NewRunnableFunction( - "MediaDecodeTask::OnMetadataRead", [codec]() -> void { - MOZ_ASSERT(!codec.IsEmpty()); - MOZ_LOG(gMediaDecoderLog, - LogLevel::Debug, - ("Telemetry (WebAudio) MEDIA_CODEC_USED= '%s'", codec.get())); - Telemetry::Accumulate(Telemetry::HistogramID::MEDIA_CODEC_USED, codec); - }); + nsCOMPtr task = NS_NewRunnableFunction([codec]() -> void { + MOZ_ASSERT(!codec.IsEmpty()); + MOZ_LOG(gMediaDecoderLog, + LogLevel::Debug, + ("Telemetry (WebAudio) MEDIA_CODEC_USED= '%s'", codec.get())); + Telemetry::Accumulate(Telemetry::HistogramID::MEDIA_CODEC_USED, codec); + }); SystemGroup::Dispatch("MediaDecodeTask::OnMetadataRead()::report_telemetry", TaskCategory::Other, task.forget()); diff --git a/dom/media/webaudio/OscillatorNode.cpp b/dom/media/webaudio/OscillatorNode.cpp index 66485092d756..7bc61fe62a2e 100644 --- a/dom/media/webaudio/OscillatorNode.cpp +++ b/dom/media/webaudio/OscillatorNode.cpp @@ -580,10 +580,7 @@ OscillatorNode::NotifyMainThreadStreamFinished() { public: explicit EndedEventDispatcher(OscillatorNode* aNode) - : mozilla::Runnable("EndedEventDispatcher") - , mNode(aNode) - { - } + : mNode(aNode) {} NS_IMETHOD Run() override { // If it's not safe to run scripts right now, schedule this to run later diff --git a/dom/media/webaudio/PlayingRefChangeHandler.h b/dom/media/webaudio/PlayingRefChangeHandler.h index 6a832c243a81..6436d1dbc304 100644 --- a/dom/media/webaudio/PlayingRefChangeHandler.h +++ b/dom/media/webaudio/PlayingRefChangeHandler.h @@ -18,8 +18,7 @@ class PlayingRefChangeHandler final : public Runnable public: enum ChangeType { ADDREF, RELEASE }; PlayingRefChangeHandler(AudioNodeStream* aStream, ChangeType aChange) - : Runnable("dom::PlayingRefChangeHandler") - , mStream(aStream) + : mStream(aStream) , mChange(aChange) { } diff --git a/dom/media/webaudio/ScriptProcessorNode.cpp b/dom/media/webaudio/ScriptProcessorNode.cpp index a3a8370d5e42..41a3c99930ae 100644 --- a/dom/media/webaudio/ScriptProcessorNode.cpp +++ b/dom/media/webaudio/ScriptProcessorNode.cpp @@ -375,8 +375,7 @@ private: Command(AudioNodeStream* aStream, already_AddRefed aInputBuffer, double aPlaybackTime) - : mozilla::Runnable("Command") - , mStream(aStream) + : mStream(aStream) , mInputBuffer(aInputBuffer) , mPlaybackTime(aPlaybackTime) { diff --git a/dom/media/webaudio/WebAudioUtils.cpp b/dom/media/webaudio/WebAudioUtils.cpp index 9bf3465b642b..6289f803b3c2 100644 --- a/dom/media/webaudio/WebAudioUtils.cpp +++ b/dom/media/webaudio/WebAudioUtils.cpp @@ -101,9 +101,8 @@ WebAudioUtils::LogToDeveloperConsole(uint64_t aWindowID, const char* aKey) // It is similar to ContentUtils::ReportToConsole, but also works off main // thread. if (!NS_IsMainThread()) { - nsCOMPtr task = NS_NewRunnableFunction( - "dom::WebAudioUtils::LogToDeveloperConsole", - [aWindowID, aKey]() { LogToDeveloperConsole(aWindowID, aKey); }); + nsCOMPtr task = + NS_NewRunnableFunction([aWindowID, aKey]() { LogToDeveloperConsole(aWindowID, aKey); }); NS_DispatchToMainThread(task.forget(), NS_DISPATCH_NORMAL); return; } diff --git a/dom/media/webaudio/blink/HRTFDatabaseLoader.cpp b/dom/media/webaudio/blink/HRTFDatabaseLoader.cpp index 9ad7e9b65e81..b4aee7b484b4 100644 --- a/dom/media/webaudio/blink/HRTFDatabaseLoader.cpp +++ b/dom/media/webaudio/blink/HRTFDatabaseLoader.cpp @@ -111,15 +111,11 @@ size_t HRTFDatabaseLoader::sizeOfIncludingThis(mozilla::MallocSizeOf aMallocSize class HRTFDatabaseLoader::ProxyReleaseEvent final : public Runnable { public: - explicit ProxyReleaseEvent(HRTFDatabaseLoader* loader) - : mozilla::Runnable("WebCore::HRTFDatabaseLoader::ProxyReleaseEvent") - , mLoader(loader) - { - } - NS_IMETHOD Run() override - { - mLoader->MainThreadRelease(); - return NS_OK; + explicit ProxyReleaseEvent(HRTFDatabaseLoader* loader) : mLoader(loader) {} + NS_IMETHOD Run() override + { + mLoader->MainThreadRelease(); + return NS_OK; } private: HRTFDatabaseLoader* mLoader; diff --git a/dom/media/webaudio/blink/ReverbConvolver.cpp b/dom/media/webaudio/blink/ReverbConvolver.cpp index 988209fa6c73..e739400aee35 100644 --- a/dom/media/webaudio/blink/ReverbConvolver.cpp +++ b/dom/media/webaudio/blink/ReverbConvolver.cpp @@ -151,10 +151,8 @@ ReverbConvolver::ReverbConvolver(const float* impulseResponseData, NS_WARNING("Cannot start convolver thread."); return; } - m_backgroundThread.message_loop()->PostTask(NewNonOwningRunnableMethod( - "WebCore::ReverbConvolver::backgroundThreadEntry", - this, - &ReverbConvolver::backgroundThreadEntry)); + m_backgroundThread.message_loop()->PostTask(NewNonOwningRunnableMethod(this, + &ReverbConvolver::backgroundThreadEntry)); } } diff --git a/dom/media/webrtc/MediaEngineTabVideoSource.h b/dom/media/webrtc/MediaEngineTabVideoSource.h index 16a4574259c0..afd65f48c825 100644 --- a/dom/media/webrtc/MediaEngineTabVideoSource.h +++ b/dom/media/webrtc/MediaEngineTabVideoSource.h @@ -62,40 +62,28 @@ class MediaEngineTabVideoSource : public MediaEngineVideoSource, nsIDOMEventList class StartRunnable : public Runnable { public: - explicit StartRunnable(MediaEngineTabVideoSource *videoSource) - : Runnable("MediaEngineTabVideoSource::StartRunnable") - , mVideoSource(videoSource) - {} + explicit StartRunnable(MediaEngineTabVideoSource *videoSource) : mVideoSource(videoSource) {} NS_IMETHOD Run(); RefPtr mVideoSource; }; class StopRunnable : public Runnable { public: - explicit StopRunnable(MediaEngineTabVideoSource *videoSource) - : Runnable("MediaEngineTabVideoSource::StopRunnable") - , mVideoSource(videoSource) - {} + explicit StopRunnable(MediaEngineTabVideoSource *videoSource) : mVideoSource(videoSource) {} NS_IMETHOD Run(); RefPtr mVideoSource; }; class InitRunnable : public Runnable { public: - explicit InitRunnable(MediaEngineTabVideoSource *videoSource) - : Runnable("MediaEngineTabVideoSource::InitRunnable") - , mVideoSource(videoSource) - {} + explicit InitRunnable(MediaEngineTabVideoSource *videoSource) : mVideoSource(videoSource) {} NS_IMETHOD Run(); RefPtr mVideoSource; }; class DestroyRunnable : public Runnable { public: - explicit DestroyRunnable(MediaEngineTabVideoSource* videoSource) - : Runnable("MediaEngineTabVideoSource::DestroyRunnable") - , mVideoSource(videoSource) - {} + explicit DestroyRunnable(MediaEngineTabVideoSource* videoSource) : mVideoSource(videoSource) {} NS_IMETHOD Run(); RefPtr mVideoSource; }; diff --git a/dom/media/webspeech/recognition/SpeechRecognition.h b/dom/media/webspeech/recognition/SpeechRecognition.h index 806d4a8d6f7d..08866041a8ac 100644 --- a/dom/media/webspeech/recognition/SpeechRecognition.h +++ b/dom/media/webspeech/recognition/SpeechRecognition.h @@ -257,15 +257,13 @@ private: class SpeechEvent : public Runnable { public: - SpeechEvent(SpeechRecognition* aRecognition, - SpeechRecognition::EventType aType) - : Runnable("dom::SpeechEvent") - , mAudioSegment(0) - , mRecognitionResultList(nullptr) - , mError(nullptr) - , mRecognition(aRecognition) - , mType(aType) - , mTrackRate(0) + SpeechEvent(SpeechRecognition* aRecognition, SpeechRecognition::EventType aType) + : mAudioSegment(0) + , mRecognitionResultList(nullptr) + , mError(nullptr) + , mRecognition(aRecognition) + , mType(aType) + , mTrackRate(0) { } diff --git a/dom/media/webspeech/synth/cocoa/OSXSpeechSynthesizerService.mm b/dom/media/webspeech/synth/cocoa/OSXSpeechSynthesizerService.mm index 78e16be1a2be..557c1e945211 100644 --- a/dom/media/webspeech/synth/cocoa/OSXSpeechSynthesizerService.mm +++ b/dom/media/webspeech/synth/cocoa/OSXSpeechSynthesizerService.mm @@ -224,8 +224,7 @@ class RegisterVoicesRunnable final : public Runnable public: RegisterVoicesRunnable(OSXSpeechSynthesizerService* aSpeechService, nsTArray& aList) - : Runnable("RegisterVoicesRunnable") - , mSpeechService(aSpeechService) + : mSpeechService(aSpeechService) , mVoices(aList) { } @@ -270,8 +269,7 @@ class EnumVoicesRunnable final : public Runnable { public: explicit EnumVoicesRunnable(OSXSpeechSynthesizerService* aSpeechService) - : Runnable("EnumVoicesRunnable") - , mSpeechService(aSpeechService) + : mSpeechService(aSpeechService) { } diff --git a/dom/media/webspeech/synth/nsSpeechTask.cpp b/dom/media/webspeech/synth/nsSpeechTask.cpp index 4c6204edea49..8c02ff95192f 100644 --- a/dom/media/webspeech/synth/nsSpeechTask.cpp +++ b/dom/media/webspeech/synth/nsSpeechTask.cpp @@ -66,16 +66,12 @@ public: mStarted = true; aGraph->DispatchToMainThreadAfterStreamStateUpdate( mAbstractMainThread, - NewRunnableMethod("dom::SynthStreamListener::DoNotifyStarted", - this, - &SynthStreamListener::DoNotifyStarted)); + NewRunnableMethod(this, &SynthStreamListener::DoNotifyStarted)); } aGraph->DispatchToMainThreadAfterStreamStateUpdate( mAbstractMainThread, - NewRunnableMethod("dom::SynthStreamListener::DoNotifyFinished", - this, - &SynthStreamListener::DoNotifyFinished)); + NewRunnableMethod(this, &SynthStreamListener::DoNotifyFinished)); } break; case MediaStreamGraphEvent::EVENT_REMOVED: @@ -94,9 +90,7 @@ public: mStarted = true; aGraph->DispatchToMainThreadAfterStreamStateUpdate( mAbstractMainThread, - NewRunnableMethod("dom::SynthStreamListener::DoNotifyStarted", - this, - &SynthStreamListener::DoNotifyStarted)); + NewRunnableMethod(this, &SynthStreamListener::DoNotifyStarted)); } } diff --git a/dom/media/webspeech/synth/pico/nsPicoService.cpp b/dom/media/webspeech/synth/pico/nsPicoService.cpp index 559a0232d7be..c3cf812fcc45 100644 --- a/dom/media/webspeech/synth/pico/nsPicoService.cpp +++ b/dom/media/webspeech/synth/pico/nsPicoService.cpp @@ -469,7 +469,7 @@ nsPicoService::Observe(nsISupports* aSubject, const char* aTopic, DebugOnly rv = NS_NewNamedThread("Pico Worker", getter_AddRefs(mThread)); MOZ_ASSERT(NS_SUCCEEDED(rv)); return mThread->Dispatch( - NewRunnableMethod("nsPicoService::Init", this, &nsPicoService::Init), NS_DISPATCH_NORMAL); + NewRunnableMethod(this, &nsPicoService::Init), NS_DISPATCH_NORMAL); } // nsISpeechService @@ -579,8 +579,7 @@ nsPicoService::Init() rv = dirIterator->HasMoreElements(&hasMoreElements); } - NS_DispatchToMainThread(NewRunnableMethod("nsPicoService::RegisterVoices", - this, &nsPicoService::RegisterVoices)); + NS_DispatchToMainThread(NewRunnableMethod(this, &nsPicoService::RegisterVoices)); } void diff --git a/dom/media/webspeech/synth/speechd/SpeechDispatcherService.cpp b/dom/media/webspeech/synth/speechd/SpeechDispatcherService.cpp index ecfbd25c9caa..77a8f7cd9394 100644 --- a/dom/media/webspeech/synth/speechd/SpeechDispatcherService.cpp +++ b/dom/media/webspeech/synth/speechd/SpeechDispatcherService.cpp @@ -273,12 +273,10 @@ speechd_cb(size_t msg_id, size_t client_id, SPDNotificationType state) SpeechDispatcherService* service = SpeechDispatcherService::GetInstance(false); if (service) { - NS_DispatchToMainThread(NewRunnableMethod( - "dom::SpeechDispatcherService::EventNotify", - service, - &SpeechDispatcherService::EventNotify, - static_cast(msg_id), - state)); + NS_DispatchToMainThread( + NewRunnableMethod( + service, &SpeechDispatcherService::EventNotify, + static_cast(msg_id), state)); } } @@ -313,10 +311,7 @@ SpeechDispatcherService::Init() getter_AddRefs(mInitThread)); MOZ_ASSERT(NS_SUCCEEDED(rv)); rv = mInitThread->Dispatch( - NewRunnableMethod("dom::SpeechDispatcherService::Setup", - this, - &SpeechDispatcherService::Setup), - NS_DISPATCH_NORMAL); + NewRunnableMethod(this, &SpeechDispatcherService::Setup), NS_DISPATCH_NORMAL); MOZ_ASSERT(NS_SUCCEEDED(rv)); } @@ -424,10 +419,7 @@ SpeechDispatcherService::Setup() } } - NS_DispatchToMainThread( - NewRunnableMethod("dom::SpeechDispatcherService::RegisterVoices", - this, - &SpeechDispatcherService::RegisterVoices)); + NS_DispatchToMainThread(NewRunnableMethod(this, &SpeechDispatcherService::RegisterVoices)); //mInitialized = true; } @@ -534,16 +526,10 @@ SpeechDispatcherService::Speak(const nsAString& aText, const nsAString& aUri, // In that case, don't send empty string to speechd, // and just emulate a speechd start and end event. NS_DispatchToMainThread(NewRunnableMethod( - "dom::SpeechDispatcherCallback::OnSpeechEvent", - callback, - &SpeechDispatcherCallback::OnSpeechEvent, - SPD_EVENT_BEGIN)); + callback, &SpeechDispatcherCallback::OnSpeechEvent, SPD_EVENT_BEGIN)); NS_DispatchToMainThread(NewRunnableMethod( - "dom::SpeechDispatcherCallback::OnSpeechEvent", - callback, - &SpeechDispatcherCallback::OnSpeechEvent, - SPD_EVENT_END)); + callback, &SpeechDispatcherCallback::OnSpeechEvent, SPD_EVENT_END)); } return NS_OK; diff --git a/dom/media/webspeech/synth/test/nsFakeSynthServices.cpp b/dom/media/webspeech/synth/test/nsFakeSynthServices.cpp index ed3e1402e5f4..582ff35510af 100644 --- a/dom/media/webspeech/synth/test/nsFakeSynthServices.cpp +++ b/dom/media/webspeech/synth/test/nsFakeSynthServices.cpp @@ -141,10 +141,8 @@ FakeDirectAudioSynth::Speak(const nsAString& aText, const nsAString& aUri, class Runnable final : public mozilla::Runnable { public: - Runnable(nsISpeechTask* aTask, const nsAString& aText) - : mozilla::Runnable("Runnable") - , mTask(aTask) - , mText(aText) + Runnable(nsISpeechTask* aTask, const nsAString& aText) : + mTask(aTask), mText(aText) { } @@ -206,9 +204,8 @@ FakeIndirectAudioSynth::Speak(const nsAString& aText, const nsAString& aUri, class DispatchStart final : public Runnable { public: - explicit DispatchStart(nsISpeechTask* aTask) - : mozilla::Runnable("DispatchStart") - , mTask(aTask) + explicit DispatchStart(nsISpeechTask* aTask) : + mTask(aTask) { } @@ -226,10 +223,8 @@ FakeIndirectAudioSynth::Speak(const nsAString& aText, const nsAString& aUri, class DispatchEnd final : public Runnable { public: - DispatchEnd(nsISpeechTask* aTask, const nsAString& aText) - : mozilla::Runnable("DispatchEnd") - , mTask(aTask) - , mText(aText) + DispatchEnd(nsISpeechTask* aTask, const nsAString& aText) : + mTask(aTask), mText(aText) { } @@ -248,10 +243,8 @@ FakeIndirectAudioSynth::Speak(const nsAString& aText, const nsAString& aUri, class DispatchError final : public Runnable { public: - DispatchError(nsISpeechTask* aTask, const nsAString& aText) - : mozilla::Runnable("DispatchError") - , mTask(aTask) - , mText(aText) + DispatchError(nsISpeechTask* aTask, const nsAString& aText) : + mTask(aTask), mText(aText) { } @@ -363,8 +356,7 @@ nsFakeSynthServices::Observe(nsISupports* aSubject, const char* aTopic, } if (Preferences::GetBool("media.webspeech.synth.test")) { - NS_DispatchToMainThread(NewRunnableMethod( - "dom::nsFakeSynthServices::Init", this, &nsFakeSynthServices::Init)); + NS_DispatchToMainThread(NewRunnableMethod(this, &nsFakeSynthServices::Init)); } return NS_OK; diff --git a/dom/messagechannel/MessagePort.cpp b/dom/messagechannel/MessagePort.cpp index 0aa457883437..37d77b5f1b83 100644 --- a/dom/messagechannel/MessagePort.cpp +++ b/dom/messagechannel/MessagePort.cpp @@ -53,8 +53,7 @@ class PostMessageRunnable final : public CancelableRunnable public: PostMessageRunnable(MessagePort* aPort, SharedMessagePortMessage* aData) - : CancelableRunnable("dom::PostMessageRunnable") - , mPort(aPort) + : mPort(aPort) , mData(aData) { MOZ_ASSERT(aPort); diff --git a/dom/network/UDPSocket.cpp b/dom/network/UDPSocket.cpp index dbb8f25fe5e9..e460428c7120 100644 --- a/dom/network/UDPSocket.cpp +++ b/dom/network/UDPSocket.cpp @@ -551,9 +551,7 @@ UDPSocket::Init(const nsString& aLocalAddress, class OpenSocketRunnable final : public Runnable { public: - explicit OpenSocketRunnable(UDPSocket* aSocket) - : mozilla::Runnable("OpenSocketRunnable") - , mSocket(aSocket) + explicit OpenSocketRunnable(UDPSocket* aSocket) : mSocket(aSocket) { } NS_IMETHOD Run() override diff --git a/dom/notification/DesktopNotification.cpp b/dom/notification/DesktopNotification.cpp index f3a59e36feb4..76f1c5afb030 100644 --- a/dom/notification/DesktopNotification.cpp +++ b/dom/notification/DesktopNotification.cpp @@ -37,8 +37,7 @@ public: NS_DECL_NSICONTENTPERMISSIONREQUEST explicit DesktopNotificationRequest(DesktopNotification* aNotification) - : Runnable("dom::DesktopNotificationRequest") - , mDesktopNotification(aNotification) + : mDesktopNotification(aNotification) { mRequester = new nsContentPermissionRequester(mDesktopNotification->GetOwner()); } diff --git a/dom/performance/Performance.cpp b/dom/performance/Performance.cpp index a835b92b8e9d..95bfe933af9a 100644 --- a/dom/performance/Performance.cpp +++ b/dom/performance/Performance.cpp @@ -516,8 +516,7 @@ class NotifyObserversTask final : public CancelableRunnable { public: explicit NotifyObserversTask(Performance* aPerformance) - : CancelableRunnable("dom::NotifyObserversTask") - , mPerformance(aPerformance) + : mPerformance(aPerformance) { MOZ_ASSERT(mPerformance); } diff --git a/dom/plugins/base/nsNPAPIPluginInstance.cpp b/dom/plugins/base/nsNPAPIPluginInstance.cpp index 1dc92619b926..00223651cb9d 100644 --- a/dom/plugins/base/nsNPAPIPluginInstance.cpp +++ b/dom/plugins/base/nsNPAPIPluginInstance.cpp @@ -887,8 +887,7 @@ java::GeckoSurface::LocalRef nsNPAPIPluginInstance::CreateSurface() return nullptr; } - nsCOMPtr frameCallback = NewRunnableMethod("nsNPAPIPluginInstance::OnSurfaceTextureFrameAvailable", - this, &nsNPAPIPluginInstance::OnSurfaceTextureFrameAvailable); + nsCOMPtr frameCallback = NewRunnableMethod(this, &nsNPAPIPluginInstance::OnSurfaceTextureFrameAvailable); java::SurfaceTextureListener::LocalRef listener = java::SurfaceTextureListener::New(); @@ -1448,11 +1447,7 @@ nsNPAPIPluginInstance::ScheduleTimer(uint32_t interval, NPBool repeat, void (*ti return 0; } const short timerType = (repeat ? (short)nsITimer::TYPE_REPEATING_SLACK : (short)nsITimer::TYPE_ONE_SHOT); - xpcomTimer->InitWithNamedFuncCallback(PluginTimerCallback, - newTimer, - interval, - timerType, - "nsNPAPIPluginInstance::ScheduleTimer"); + xpcomTimer->InitWithFuncCallback(PluginTimerCallback, newTimer, interval, timerType); newTimer->timer = xpcomTimer; // save callback function diff --git a/dom/plugins/ipc/ChildAsyncCall.cpp b/dom/plugins/ipc/ChildAsyncCall.cpp index ded84607df71..6adc05d55998 100644 --- a/dom/plugins/ipc/ChildAsyncCall.cpp +++ b/dom/plugins/ipc/ChildAsyncCall.cpp @@ -12,10 +12,8 @@ namespace mozilla { namespace plugins { ChildAsyncCall::ChildAsyncCall(PluginInstanceChild* instance, - PluginThreadCallback aFunc, - void* aUserData) - : CancelableRunnable("plugins::ChildAsyncCall") - , mInstance(instance) + PluginThreadCallback aFunc, void* aUserData) + : mInstance(instance) , mFunc(aFunc) , mData(aUserData) { diff --git a/dom/plugins/ipc/PluginInstanceChild.cpp b/dom/plugins/ipc/PluginInstanceChild.cpp index 770fdd2f3e5c..21b2c1dbf8dc 100644 --- a/dom/plugins/ipc/PluginInstanceChild.cpp +++ b/dom/plugins/ipc/PluginInstanceChild.cpp @@ -3020,15 +3020,8 @@ PluginInstanceChild::RecvAsyncSetWindow(const gfxSurfaceType& aSurfaceType, // RPC call, and both Flash and Java don't expect to receive setwindow calls // at arbitrary times. mCurrentAsyncSetWindowTask = - NewNonOwningCancelableRunnableMethod( - "plugins::PluginInstanceChild::DoAsyncSetWindow", - this, - &PluginInstanceChild::DoAsyncSetWindow, - aSurfaceType, - aWindow, - true); + NewNonOwningCancelableRunnableMethod + (this, &PluginInstanceChild::DoAsyncSetWindow, aSurfaceType, aWindow, true); RefPtr addrefedTask = mCurrentAsyncSetWindowTask; MessageLoop::current()->PostTask(addrefedTask.forget()); @@ -3954,10 +3947,8 @@ PluginInstanceChild::AsyncShowPluginFrame(void) return; } - mCurrentInvalidateTask = NewNonOwningCancelableRunnableMethod( - "plugins::PluginInstanceChild::InvalidateRectDelayed", - this, - &PluginInstanceChild::InvalidateRectDelayed); + mCurrentInvalidateTask = + NewNonOwningCancelableRunnableMethod(this, &PluginInstanceChild::InvalidateRectDelayed); RefPtr addrefedTask = mCurrentInvalidateTask; MessageLoop::current()->PostTask(addrefedTask.forget()); } diff --git a/dom/plugins/ipc/PluginProcessParent.cpp b/dom/plugins/ipc/PluginProcessParent.cpp index 4a24abc802f5..14d1f50b9dc1 100644 --- a/dom/plugins/ipc/PluginProcessParent.cpp +++ b/dom/plugins/ipc/PluginProcessParent.cpp @@ -124,10 +124,7 @@ PluginProcessParent::Delete() return; } - ioLoop->PostTask( - NewNonOwningRunnableMethod("plugins::PluginProcessParent::Delete", - this, - &PluginProcessParent::Delete)); + ioLoop->PostTask(NewNonOwningRunnableMethod(this, &PluginProcessParent::Delete)); } void diff --git a/dom/plugins/ipc/PluginProcessParent.h b/dom/plugins/ipc/PluginProcessParent.h index 89f1675627b4..2644c60a32b7 100644 --- a/dom/plugins/ipc/PluginProcessParent.h +++ b/dom/plugins/ipc/PluginProcessParent.h @@ -27,10 +27,9 @@ namespace plugins { class LaunchCompleteTask : public Runnable { public: - LaunchCompleteTask() - : Runnable("plugins::LaunchCompleteTask") - , mLaunchSucceeded(false) - { + LaunchCompleteTask() + : mLaunchSucceeded(false) + { } void SetLaunchSucceeded() { mLaunchSucceeded = true; } diff --git a/dom/presentation/PresentationAvailability.cpp b/dom/presentation/PresentationAvailability.cpp index e6c1e094433c..93f27dfbfc5c 100644 --- a/dom/presentation/PresentationAvailability.cpp +++ b/dom/presentation/PresentationAvailability.cpp @@ -172,11 +172,10 @@ PresentationAvailability::NotifyAvailableChange(const nsTArray& aAvail available |= mAvailabilityOfUrl[i]; } - return NS_DispatchToCurrentThread(NewRunnableMethod( - "dom::PresentationAvailability::UpdateAvailabilityAndDispatchEvent", - this, - &PresentationAvailability::UpdateAvailabilityAndDispatchEvent, - available)); + return NS_DispatchToCurrentThread(NewRunnableMethod + (this, + &PresentationAvailability::UpdateAvailabilityAndDispatchEvent, + available)); } void diff --git a/dom/presentation/PresentationCallbacks.cpp b/dom/presentation/PresentationCallbacks.cpp index 16813f757614..fd0ffee31cae 100644 --- a/dom/presentation/PresentationCallbacks.cpp +++ b/dom/presentation/PresentationCallbacks.cpp @@ -137,12 +137,11 @@ PresentationReconnectCallback::NotifySuccess(const nsAString& aUrl) } nsString sessionId = nsString(mSessionId); - return NS_DispatchToMainThread(NS_NewRunnableFunction( - "dom::PresentationReconnectCallback::NotifySuccess", - [sessionId, service]() -> void { - service->BuildTransport(sessionId, - nsIPresentationService::ROLE_CONTROLLER); - })); + return NS_DispatchToMainThread( + NS_NewRunnableFunction([sessionId, service]() -> void { + service->BuildTransport(sessionId, + nsIPresentationService::ROLE_CONTROLLER); + })); } NS_IMETHODIMP diff --git a/dom/presentation/PresentationConnection.cpp b/dom/presentation/PresentationConnection.cpp index b7b6504bffb2..f36b506d1e97 100644 --- a/dom/presentation/PresentationConnection.cpp +++ b/dom/presentation/PresentationConnection.cpp @@ -641,9 +641,7 @@ NS_IMETHODIMP PresentationConnection::Cancel(nsresult aStatus) { nsCOMPtr event = - NewRunnableMethod("dom::PresentationConnection::ProcessConnectionWentAway", - this, - &PresentationConnection::ProcessConnectionWentAway); + NewRunnableMethod(this, &PresentationConnection::ProcessConnectionWentAway); return NS_DispatchToCurrentThread(event); } NS_IMETHODIMP @@ -738,9 +736,8 @@ PresentationConnection::AsyncCloseConnectionWithErrorMsg(const nsAString& aMessa nsString message = nsString(aMessage); RefPtr self = this; - nsCOMPtr r = NS_NewRunnableFunction( - "dom::PresentationConnection::AsyncCloseConnectionWithErrorMsg", - [self, message]() -> void { + nsCOMPtr r = + NS_NewRunnableFunction([self, message]() -> void { // Set |mState| to |PresentationConnectionState::Closed| here to avoid // calling |ProcessStateChanged|. self->mState = PresentationConnectionState::Closed; diff --git a/dom/presentation/PresentationDeviceManager.cpp b/dom/presentation/PresentationDeviceManager.cpp index a1a76276c7c8..7e5a4700c898 100644 --- a/dom/presentation/PresentationDeviceManager.cpp +++ b/dom/presentation/PresentationDeviceManager.cpp @@ -157,9 +157,7 @@ PresentationDeviceManager::GetAvailableDevices(nsIArray* aPresentationUrls, nsIA // Bug 1194049: some providers may discontinue discovery after timeout. // Call |ForceDiscovery()| here to make sure device lists are updated. NS_DispatchToMainThread( - NewRunnableMethod("dom::PresentationDeviceManager::ForceDiscovery", - this, - &PresentationDeviceManager::ForceDiscovery)); + NewRunnableMethod(this, &PresentationDeviceManager::ForceDiscovery)); nsTArray presentationUrls; if (aPresentationUrls) { diff --git a/dom/presentation/PresentationReceiver.cpp b/dom/presentation/PresentationReceiver.cpp index 0b9aaa40cc82..738b3758b801 100644 --- a/dom/presentation/PresentationReceiver.cpp +++ b/dom/presentation/PresentationReceiver.cpp @@ -135,9 +135,10 @@ PresentationReceiver::GetConnectionList(ErrorResult& aRv) } RefPtr self = this; - nsresult rv = NS_DispatchToMainThread(NS_NewRunnableFunction( - "dom::PresentationReceiver::GetConnectionList", - [self]() -> void { self->CreateConnectionList(); })); + nsresult rv = + NS_DispatchToMainThread(NS_NewRunnableFunction([self] () -> void { + self->CreateConnectionList(); + })); if (NS_FAILED(rv)) { aRv.Throw(rv); return nullptr; diff --git a/dom/presentation/PresentationRequest.cpp b/dom/presentation/PresentationRequest.cpp index 2a7d7705b19a..b5820221c0f9 100644 --- a/dom/presentation/PresentationRequest.cpp +++ b/dom/presentation/PresentationRequest.cpp @@ -281,12 +281,12 @@ PresentationRequest::Reconnect(const nsAString& aPresentationId, } nsString presentationId = nsString(aPresentationId); - nsCOMPtr r = NewRunnableMethod>( - "dom::PresentationRequest::FindOrCreatePresentationConnection", - this, - &PresentationRequest::FindOrCreatePresentationConnection, - presentationId, - promise); + nsCOMPtr r = + NewRunnableMethod>( + this, + &PresentationRequest::FindOrCreatePresentationConnection, + presentationId, + promise); if (NS_WARN_IF(NS_FAILED(NS_DispatchToMainThread(r)))) { promise->MaybeReject(NS_ERROR_DOM_OPERATION_ERR); diff --git a/dom/presentation/PresentationService.cpp b/dom/presentation/PresentationService.cpp index 6a3751ab768a..34030cfdb813 100644 --- a/dom/presentation/PresentationService.cpp +++ b/dom/presentation/PresentationService.cpp @@ -1119,14 +1119,13 @@ PresentationService::UntrackSessionInfo(const nsAString& aSessionId, uint64_t windowId; nsresult rv = GetWindowIdBySessionIdInternal(aSessionId, aRole, &windowId); if (NS_SUCCEEDED(rv)) { - NS_DispatchToMainThread(NS_NewRunnableFunction( - "dom::PresentationService::UntrackSessionInfo", [windowId]() -> void { - PRES_DEBUG("Attempt to close window[%" PRIu64 "]\n", windowId); + NS_DispatchToMainThread(NS_NewRunnableFunction([windowId]() -> void { + PRES_DEBUG("Attempt to close window[%" PRIu64 "]\n", windowId); - if (auto* window = nsGlobalWindow::GetInnerWindowWithId(windowId)) { - window->Close(); - } - })); + if (auto* window = nsGlobalWindow::GetInnerWindowWithId(windowId)) { + window->Close(); + } + })); } mSessionInfoAtReceiver.Remove(aSessionId); diff --git a/dom/presentation/PresentationSessionInfo.cpp b/dom/presentation/PresentationSessionInfo.cpp index 88dac827ac14..8208d073ce09 100644 --- a/dom/presentation/PresentationSessionInfo.cpp +++ b/dom/presentation/PresentationSessionInfo.cpp @@ -111,8 +111,7 @@ PresentationNetworkHelper::OnGetWifiIPAddress(const nsACString& aIPAddress) MOZ_ASSERT(mFunc); NS_DispatchToMainThread( - NewRunnableMethod("dom::PresentationNetworkHelper::OnGetWifiIPAddress", - mInfo, + NewRunnableMethod(mInfo, mFunc, aIPAddress)); return NS_OK; @@ -685,7 +684,6 @@ PresentationControllingInfo::GetAddress() // into main thread instead of calling it directly. NS_DispatchToMainThread( NewRunnableMethod( - "dom::PresentationControllingInfo::OnGetAddress", this, &PresentationControllingInfo::OnGetAddress, NS_ConvertUTF16toUTF8(ip))); @@ -1111,11 +1109,11 @@ PresentationControllingInfo::OnListedNetworkAddresses(const char** aAddressArray // On Firefox desktop, the IP address is retrieved from a callback function. // To make consistent code sequence, following function call is dispatched // into main thread instead of calling it directly. - NS_DispatchToMainThread(NewRunnableMethod( - "dom::PresentationControllingInfo::OnGetAddress", - this, - &PresentationControllingInfo::OnGetAddress, - ip)); + NS_DispatchToMainThread( + NewRunnableMethod( + this, + &PresentationControllingInfo::OnGetAddress, + ip)); return NS_OK; } @@ -1127,11 +1125,11 @@ PresentationControllingInfo::OnListNetworkAddressesFailed() // In 1-UA case, transport channel can still be established // on loopback interface even if no network address available. - NS_DispatchToMainThread(NewRunnableMethod( - "dom::PresentationControllingInfo::OnGetAddress", - this, - &PresentationControllingInfo::OnGetAddress, - "127.0.0.1")); + NS_DispatchToMainThread( + NewRunnableMethod( + this, + &PresentationControllingInfo::OnGetAddress, + "127.0.0.1")); return NS_OK; } diff --git a/dom/presentation/PresentationTCPSessionTransport.cpp b/dom/presentation/PresentationTCPSessionTransport.cpp index 103d388cddeb..3af39e6e4232 100644 --- a/dom/presentation/PresentationTCPSessionTransport.cpp +++ b/dom/presentation/PresentationTCPSessionTransport.cpp @@ -112,19 +112,17 @@ PresentationTCPSessionTransport::BuildTCPSenderTransport(nsISocketTransport* aTr nsCOMPtr sessionTransport = do_QueryObject(this); nsCOMPtr onSessionTransportRunnable = - NewRunnableMethod( - "nsIPresentationSessionTransportBuilderListener::OnSessionTransport", - mListener, - &nsIPresentationSessionTransportBuilderListener::OnSessionTransport, - sessionTransport); + NewRunnableMethod + (mListener, + &nsIPresentationSessionTransportBuilderListener::OnSessionTransport, + sessionTransport); NS_DispatchToCurrentThread(onSessionTransportRunnable.forget()); - nsCOMPtr setReadyStateRunnable = NewRunnableMethod( - "dom::PresentationTCPSessionTransport::SetReadyState", - this, - &PresentationTCPSessionTransport::SetReadyState, - ReadyState::OPEN); + nsCOMPtr setReadyStateRunnable = + NewRunnableMethod(this, + &PresentationTCPSessionTransport::SetReadyState, + ReadyState::OPEN); return NS_DispatchToCurrentThread(setReadyStateRunnable.forget()); } @@ -194,11 +192,10 @@ PresentationTCPSessionTransport::BuildTCPReceiverTransport(nsIPresentationChanne nsCOMPtr sessionTransport = do_QueryObject(this); nsCOMPtr runnable = - NewRunnableMethod( - "nsIPresentationSessionTransportBuilderListener::OnSessionTransport", - mListener, - &nsIPresentationSessionTransportBuilderListener::OnSessionTransport, - sessionTransport); + NewRunnableMethod + (mListener, + &nsIPresentationSessionTransportBuilderListener::OnSessionTransport, + sessionTransport); return NS_DispatchToCurrentThread(runnable.forget()); } diff --git a/dom/presentation/ipc/PresentationIPCService.cpp b/dom/presentation/ipc/PresentationIPCService.cpp index 8f0460fe2780..5e2273c3c871 100644 --- a/dom/presentation/ipc/PresentationIPCService.cpp +++ b/dom/presentation/ipc/PresentationIPCService.cpp @@ -485,15 +485,13 @@ PresentationIPCService::UntrackSessionInfo(const nsAString& aSessionId, if (NS_SUCCEEDED(GetWindowIdBySessionIdInternal(aSessionId, aRole, &windowId))) { - NS_DispatchToMainThread(NS_NewRunnableFunction( - "dom::PresentationIPCService::UntrackSessionInfo", - [windowId]() -> void { - PRES_DEBUG("Attempt to close window[%" PRIu64 "]\n", windowId); + NS_DispatchToMainThread(NS_NewRunnableFunction([windowId]() -> void { + PRES_DEBUG("Attempt to close window[%" PRIu64 "]\n", windowId); - if (auto* window = nsGlobalWindow::GetInnerWindowWithId(windowId)) { - window->Close(); - } - })); + if (auto* window = nsGlobalWindow::GetInnerWindowWithId(windowId)) { + window->Close(); + } + })); } } diff --git a/dom/presentation/provider/MulticastDNSDeviceProvider.cpp b/dom/presentation/provider/MulticastDNSDeviceProvider.cpp index 701599a980eb..ddd5939bb4dd 100644 --- a/dom/presentation/provider/MulticastDNSDeviceProvider.cpp +++ b/dom/presentation/provider/MulticastDNSDeviceProvider.cpp @@ -834,10 +834,8 @@ MulticastDNSDeviceProvider::OnRegistrationFailed(nsIDNSServiceInfo* aServiceInfo mRegisterRequest = nullptr; if (aErrorCode == nsIDNSRegistrationListener::ERROR_SERVICE_NOT_RUNNING) { - return NS_DispatchToMainThread(NewRunnableMethod( - "dom::presentation::MulticastDNSDeviceProvider::RegisterMDNSService", - this, - &MulticastDNSDeviceProvider::RegisterMDNSService)); + return NS_DispatchToMainThread( + NewRunnableMethod(this, &MulticastDNSDeviceProvider::RegisterMDNSService)); } return NS_OK; diff --git a/dom/promise/PromiseDebugging.cpp b/dom/promise/PromiseDebugging.cpp index 6ed901256280..f3ec33e8bfe8 100644 --- a/dom/promise/PromiseDebugging.cpp +++ b/dom/promise/PromiseDebugging.cpp @@ -24,8 +24,6 @@ namespace dom { class FlushRejections: public CancelableRunnable { public: - FlushRejections() : CancelableRunnable("dom::FlushRejections") {} - static void Init() { if (!sDispatched.init()) { MOZ_CRASH("Could not initialize FlushRejections::sDispatched"); diff --git a/dom/push/PushManager.cpp b/dom/push/PushManager.cpp index d150a8daff50..ef7823c0515c 100644 --- a/dom/push/PushManager.cpp +++ b/dom/push/PushManager.cpp @@ -272,8 +272,7 @@ public: const nsAString& aScope, PushManager::SubscriptionAction aAction, nsTArray&& aAppServerKey) - : Runnable("dom::GetSubscriptionRunnable") - , mProxy(aProxy) + : mProxy(aProxy) , mScope(aScope) , mAction(aAction) , mAppServerKey(Move(aAppServerKey)) @@ -401,8 +400,7 @@ class PermissionStateRunnable final : public Runnable { public: explicit PermissionStateRunnable(PromiseWorkerProxy* aProxy) - : Runnable("dom::PermissionStateRunnable") - , mProxy(aProxy) + : mProxy(aProxy) {} NS_IMETHOD diff --git a/dom/push/PushSubscription.cpp b/dom/push/PushSubscription.cpp index 660d1c580cf1..bfe8b5dd9730 100644 --- a/dom/push/PushSubscription.cpp +++ b/dom/push/PushSubscription.cpp @@ -141,9 +141,9 @@ NS_IMPL_ISUPPORTS(WorkerUnsubscribeResultCallback, nsIUnsubscribeResultCallback) class UnsubscribeRunnable final : public Runnable { public: - UnsubscribeRunnable(PromiseWorkerProxy* aProxy, const nsAString& aScope) - : Runnable("dom::UnsubscribeRunnable") - , mProxy(aProxy) + UnsubscribeRunnable(PromiseWorkerProxy* aProxy, + const nsAString& aScope) + : mProxy(aProxy) , mScope(aScope) { MOZ_ASSERT(aProxy); diff --git a/dom/quota/ActorsParent.cpp b/dom/quota/ActorsParent.cpp index 0beef549ca93..32acf1f131d7 100644 --- a/dom/quota/ActorsParent.cpp +++ b/dom/quota/ActorsParent.cpp @@ -378,8 +378,7 @@ class QuotaObject::StoragePressureRunnable final public: explicit StoragePressureRunnable(uint64_t aUsage) - : Runnable("dom::quota::QuotaObject::StoragePressureRunnable") - , mUsage(aUsage) + : mUsage(aUsage) { } private: @@ -411,8 +410,7 @@ class QuotaManager::CreateRunnable final public: CreateRunnable() - : Runnable("dom::quota::QuotaManager::CreateRunnable") - , mResultCode(NS_OK) + : mResultCode(NS_OK) , mState(State::Initial) { AssertIsOnBackgroundThread(); @@ -457,8 +455,7 @@ class QuotaManager::ShutdownRunnable final public: explicit ShutdownRunnable(bool& aDone) - : Runnable("dom::quota::QuotaManager::ShutdownRunnable") - , mDone(aDone) + : mDone(aDone) { MOZ_ASSERT(NS_IsMainThread()); } @@ -792,9 +789,8 @@ public: protected: explicit OriginOperationBase( - nsIEventTarget* aOwningThread = GetCurrentThreadEventTarget()) + nsIEventTarget* aOwningThread = GetCurrentThreadEventTarget()) : BackgroundThreadObject(aOwningThread) - , Runnable("dom::quota::OriginOperationBase") , mResultCode(NS_OK) , mState(State_Initial) , mActorDestroyed(false) @@ -1564,9 +1560,9 @@ protected: const bool mPersistent; public: - StorageDirectoryHelper(nsIFile* aDirectory, bool aPersistent) - : Runnable("dom::quota::StorageDirectoryHelper") - , mMutex("StorageDirectoryHelper::mMutex") + StorageDirectoryHelper(nsIFile* aDirectory, + bool aPersistent) + : mMutex("StorageDirectoryHelper::mMutex") , mCondVar(mMutex, "StorageDirectoryHelper::mCondVar") , mMainThreadResultCode(NS_OK) , mWaiting(true) @@ -3653,9 +3649,7 @@ QuotaManager::Shutdown() // QuotaManager on the IO thread. This should probably use // NewNonOwningRunnableMethod ... RefPtr runnable = - NewRunnableMethod("dom::quota::QuotaManager::ReleaseIOThreadObjects", - this, - &QuotaManager::ReleaseIOThreadObjects); + NewRunnableMethod(this, &QuotaManager::ReleaseIOThreadObjects); MOZ_ASSERT(runnable); // Give clients a chance to cleanup IO thread only objects. @@ -5891,12 +5885,11 @@ GroupInfoPair::GetGroupInfoForPersistenceType(PersistenceType aPersistenceType) CollectOriginsHelper::CollectOriginsHelper(mozilla::Mutex& aMutex, uint64_t aMinSizeToBeFreed) - : Runnable("dom::quota::CollectOriginsHelper") - , mMinSizeToBeFreed(aMinSizeToBeFreed) - , mMutex(aMutex) - , mCondVar(aMutex, "CollectOriginsHelper::mCondVar") - , mSizeToBeFreed(0) - , mWaiting(true) +: mMinSizeToBeFreed(aMinSizeToBeFreed), + mMutex(aMutex), + mCondVar(aMutex, "CollectOriginsHelper::mCondVar"), + mSizeToBeFreed(0), + mWaiting(true) { MOZ_ASSERT(!NS_IsMainThread(), "Wrong thread!"); mMutex.AssertCurrentThreadOwns(); @@ -6515,9 +6508,7 @@ Quota::RecvStartIdleMaintenance() QuotaManager* quotaManager = QuotaManager::Get(); if (!quotaManager) { nsCOMPtr callback = - NewRunnableMethod("dom::quota::Quota::StartIdleMaintenance", - this, - &Quota::StartIdleMaintenance); + NewRunnableMethod(this, &Quota::StartIdleMaintenance); QuotaManager::GetOrCreate(callback); return IPC_OK(); diff --git a/dom/quota/QuotaManagerService.cpp b/dom/quota/QuotaManagerService.cpp index eb2dbf8c21bd..01be3f87e203 100644 --- a/dom/quota/QuotaManagerService.cpp +++ b/dom/quota/QuotaManagerService.cpp @@ -86,8 +86,7 @@ class AbortOperationsRunnable final public: explicit AbortOperationsRunnable(ContentParentId aContentParentId) - : Runnable("dom::quota::AbortOperationsRunnable") - , mContentParentId(aContentParentId) + : mContentParentId(aContentParentId) { } private: diff --git a/dom/script/ScriptLoader.cpp b/dom/script/ScriptLoader.cpp index 250848d03383..f3ff678d6db0 100644 --- a/dom/script/ScriptLoader.cpp +++ b/dom/script/ScriptLoader.cpp @@ -997,9 +997,9 @@ private: RefPtr mLoader; RefPtr mRequest; public: - ScriptRequestProcessor(ScriptLoader* aLoader, ScriptLoadRequest* aRequest) - : Runnable("dom::ScriptRequestProcessor") - , mLoader(aLoader) + ScriptRequestProcessor(ScriptLoader* aLoader, + ScriptLoadRequest* aRequest) + : mLoader(aLoader) , mRequest(aRequest) {} NS_IMETHOD Run() override @@ -1154,8 +1154,7 @@ ScriptLoader::ProcessScriptElement(nsIScriptElement* aElement) if (!scriptURI) { // Asynchronously report the failure to create a URI object NS_DispatchToCurrentThread( - NewRunnableMethod("nsIScriptElement::FireErrorEvent", - aElement, + NewRunnableMethod(aElement, &nsIScriptElement::FireErrorEvent)); return false; } @@ -1245,8 +1244,7 @@ ScriptLoader::ProcessScriptElement(nsIScriptElement* aElement) // Asynchronously report the load failure NS_DispatchToCurrentThread( - NewRunnableMethod("nsIScriptElement::FireErrorEvent", - aElement, + NewRunnableMethod(aElement, &nsIScriptElement::FireErrorEvent)); return false; } @@ -1430,8 +1428,7 @@ class NotifyOffThreadScriptLoadCompletedRunnable : public Runnable public: NotifyOffThreadScriptLoadCompletedRunnable(ScriptLoadRequest* aRequest, ScriptLoader* aLoader) - : Runnable("dom::NotifyOffThreadScriptLoadCompletedRunnable") - , mRequest(aRequest) + : mRequest(aRequest) , mLoader(aLoader) , mDocGroup(aLoader->GetDocGroup()) , mToken(nullptr) @@ -2324,10 +2321,8 @@ void ScriptLoader::ProcessPendingRequestsAsync() { if (HasPendingRequests()) { - nsCOMPtr task = - NewRunnableMethod("dom::ScriptLoader::ProcessPendingRequests", - this, - &ScriptLoader::ProcessPendingRequests); + nsCOMPtr task = NewRunnableMethod(this, + &ScriptLoader::ProcessPendingRequests); if (mDocument) { mDocument->Dispatch("ScriptLoader", TaskCategory::Other, task.forget()); } else { diff --git a/dom/security/nsCSPContext.cpp b/dom/security/nsCSPContext.cpp index c1f00a6bfbfa..e844ab9cd395 100644 --- a/dom/security/nsCSPContext.cpp +++ b/dom/security/nsCSPContext.cpp @@ -1075,8 +1075,7 @@ class CSPReportSenderRunnable final : public Runnable const nsAString& aScriptSample, uint32_t aLineNum, nsCSPContext* aCSPContext) - : mozilla::Runnable("CSPReportSenderRunnable") - , mBlockedContentSource(aBlockedContentSource) + : mBlockedContentSource(aBlockedContentSource) , mOriginalURI(aOriginalURI) , mViolatedPolicyIndex(aViolatedPolicyIndex) , mReportOnlyFlag(aReportOnlyFlag) diff --git a/dom/security/nsMixedContentBlocker.cpp b/dom/security/nsMixedContentBlocker.cpp index be648e2175c1..ba61c7f79378 100644 --- a/dom/security/nsMixedContentBlocker.cpp +++ b/dom/security/nsMixedContentBlocker.cpp @@ -119,13 +119,8 @@ enum MixedContentHSTSPrimingState { class nsMixedContentEvent : public Runnable { public: - nsMixedContentEvent(nsISupports* aContext, - MixedContentTypes aType, - bool aRootHasSecureConnection) - : mozilla::Runnable("nsMixedContentEvent") - , mContext(aContext) - , mType(aType) - , mRootHasSecureConnection(aRootHasSecureConnection) + nsMixedContentEvent(nsISupports *aContext, MixedContentTypes aType, bool aRootHasSecureConnection) + : mContext(aContext), mType(aType), mRootHasSecureConnection(aRootHasSecureConnection) {} NS_IMETHOD Run() override diff --git a/dom/smil/nsSMILTimedElement.cpp b/dom/smil/nsSMILTimedElement.cpp index bfa5d0eb74a5..120536be0747 100644 --- a/dom/smil/nsSMILTimedElement.cpp +++ b/dom/smil/nsSMILTimedElement.cpp @@ -87,11 +87,9 @@ namespace int32_t mDetail; public: - AsyncTimeEventRunner(nsIContent* aTarget, - EventMessage aMsg, + AsyncTimeEventRunner(nsIContent* aTarget, EventMessage aMsg, int32_t aDetail) - : mozilla::Runnable("AsyncTimeEventRunner") - , mTarget(aTarget) + : mTarget(aTarget) , mMsg(aMsg) , mDetail(aDetail) { diff --git a/dom/storage/LocalStorageCache.cpp b/dom/storage/LocalStorageCache.cpp index 8f785266ccd0..2a4a34b79a45 100644 --- a/dom/storage/LocalStorageCache.cpp +++ b/dom/storage/LocalStorageCache.cpp @@ -111,9 +111,8 @@ LocalStorageCache::Release(void) return; } - RefPtr> event = - NewNonOwningRunnableMethod("dom::LocalStorageCacheBridge::Release", - static_cast(this), + RefPtr > event = + NewNonOwningRunnableMethod(static_cast(this), &LocalStorageCacheBridge::Release); nsresult rv = NS_DispatchToMainThread(event); @@ -626,8 +625,7 @@ class LoadUsageRunnable : public Runnable { public: LoadUsageRunnable(int64_t* aUsage, const int64_t aDelta) - : Runnable("dom::LoadUsageRunnable") - , mTarget(aUsage) + : mTarget(aUsage) , mDelta(aDelta) {} diff --git a/dom/storage/StorageDBThread.cpp b/dom/storage/StorageDBThread.cpp index 5de22c50b96f..a85ee56a3e75 100644 --- a/dom/storage/StorageDBThread.cpp +++ b/dom/storage/StorageDBThread.cpp @@ -723,10 +723,8 @@ StorageDBThread::NotifyFlushCompletion() { #ifdef DOM_STORAGE_TESTS if (!NS_IsMainThread()) { - RefPtr> event = - NewNonOwningRunnableMethod("dom::StorageDBThread::NotifyFlushCompletion", - this, - &StorageDBThread::NotifyFlushCompletion); + RefPtr > event = + NewNonOwningRunnableMethod(this, &StorageDBThread::NotifyFlushCompletion); NS_DispatchToMainThread(event); return; } diff --git a/dom/storage/StorageIPC.cpp b/dom/storage/StorageIPC.cpp index 928354114d86..603d578918bd 100644 --- a/dom/storage/StorageIPC.cpp +++ b/dom/storage/StorageIPC.cpp @@ -315,8 +315,7 @@ class SendInitialChildDataRunnable : public Runnable { public: explicit SendInitialChildDataRunnable(StorageDBParent* aParent) - : Runnable("dom::SendInitialChildDataRunnable") - , mParent(aParent) + : mParent(aParent) {} private: @@ -646,13 +645,12 @@ public: const nsACString& aOriginNoSuffix, const nsAString& aKey = EmptyString(), const nsAString& aValue = EmptyString()) - : Runnable("dom::LoadRunnable") - , mParent(aParent) - , mType(aType) - , mSuffix(aOriginSuffix) - , mOrigin(aOriginNoSuffix) - , mKey(aKey) - , mValue(aValue) + : mParent(aParent) + , mType(aType) + , mSuffix(aOriginSuffix) + , mOrigin(aOriginNoSuffix) + , mKey(aKey) + , mValue(aValue) { } LoadRunnable(StorageDBParent* aParent, @@ -660,12 +658,11 @@ public: const nsACString& aOriginSuffix, const nsACString& aOriginNoSuffix, nsresult aRv) - : Runnable("dom::LoadRunnable") - , mParent(aParent) - , mType(aType) - , mSuffix(aOriginSuffix) - , mOrigin(aOriginNoSuffix) - , mRv(aRv) + : mParent(aParent) + , mType(aType) + , mSuffix(aOriginSuffix) + , mOrigin(aOriginNoSuffix) + , mRv(aRv) { } private: @@ -753,11 +750,9 @@ namespace { class UsageRunnable : public Runnable { public: - UsageRunnable(StorageDBParent* aParent, - const nsACString& aOriginScope, + UsageRunnable(StorageDBParent* aParent, const nsACString& aOriginScope, const int64_t& aUsage) - : Runnable("dom::UsageRunnable") - , mParent(aParent) + : mParent(aParent) , mOriginScope(aOriginScope) , mUsage(aUsage) {} diff --git a/dom/svg/SVGFEImageElement.cpp b/dom/svg/SVGFEImageElement.cpp index 75854739e41b..ed6d2cca1539 100644 --- a/dom/svg/SVGFEImageElement.cpp +++ b/dom/svg/SVGFEImageElement.cpp @@ -172,9 +172,7 @@ SVGFEImageElement::BindToTree(nsIDocument* aDocument, nsIContent* aParent, ClearBrokenState(); RemoveStatesSilently(NS_EVENT_STATE_BROKEN); nsContentUtils::AddScriptRunner( - NewRunnableMethod("dom::SVGFEImageElement::MaybeLoadSVGImage", - this, - &SVGFEImageElement::MaybeLoadSVGImage)); + NewRunnableMethod(this, &SVGFEImageElement::MaybeLoadSVGImage)); } return rv; diff --git a/dom/svg/SVGImageElement.cpp b/dom/svg/SVGImageElement.cpp index 8dea0ca89a67..6f3ffd7847c8 100644 --- a/dom/svg/SVGImageElement.cpp +++ b/dom/svg/SVGImageElement.cpp @@ -203,9 +203,7 @@ SVGImageElement::BindToTree(nsIDocument* aDocument, nsIContent* aParent, ClearBrokenState(); RemoveStatesSilently(NS_EVENT_STATE_BROKEN); nsContentUtils::AddScriptRunner( - NewRunnableMethod("dom::SVGImageElement::MaybeLoadSVGImage", - this, - &SVGImageElement::MaybeLoadSVGImage)); + NewRunnableMethod(this, &SVGImageElement::MaybeLoadSVGImage)); } return rv; diff --git a/dom/svg/SVGStyleElement.cpp b/dom/svg/SVGStyleElement.cpp index f0332a892318..22fb204dff95 100644 --- a/dom/svg/SVGStyleElement.cpp +++ b/dom/svg/SVGStyleElement.cpp @@ -78,8 +78,7 @@ SVGStyleElement::BindToTree(nsIDocument* aDocument, nsIContent* aParent, NS_ENSURE_SUCCESS(rv, rv); void (SVGStyleElement::*update)() = &SVGStyleElement::UpdateStyleSheetInternal; - nsContentUtils::AddScriptRunner( - NewRunnableMethod("dom::SVGStyleElement::BindToTree", this, update)); + nsContentUtils::AddScriptRunner(NewRunnableMethod(this, update)); return rv; } diff --git a/dom/system/nsDeviceSensors.cpp b/dom/system/nsDeviceSensors.cpp index bb8b28068f04..739f67a07aa7 100644 --- a/dom/system/nsDeviceSensors.cpp +++ b/dom/system/nsDeviceSensors.cpp @@ -139,10 +139,10 @@ NS_IMETHODIMP nsDeviceSensors::HasWindowListener(uint32_t aType, nsIDOMWindow *a class DeviceSensorTestEvent : public Runnable { public: - DeviceSensorTestEvent(nsDeviceSensors* aTarget, uint32_t aType) - : mozilla::Runnable("DeviceSensorTestEvent") - , mTarget(aTarget) - , mType(aType) + DeviceSensorTestEvent(nsDeviceSensors* aTarget, + uint32_t aType) + : mTarget(aTarget) + , mType(aType) { } diff --git a/dom/u2f/U2F.cpp b/dom/u2f/U2F.cpp index f0a216a69a94..0d1aaaaba88f 100644 --- a/dom/u2f/U2F.cpp +++ b/dom/u2f/U2F.cpp @@ -163,12 +163,10 @@ U2FStatus::GetResponse() return mResponse; } -U2FTask::U2FTask(const nsAString& aOrigin, - const nsAString& aAppId, +U2FTask::U2FTask(const nsAString& aOrigin, const nsAString& aAppId, const Authenticator& aAuthenticator, nsISerialEventTarget* aEventTarget) - : Runnable("dom::U2FTask") - , mOrigin(aOrigin) + : mOrigin(aOrigin) , mAppId(aAppId) , mAuthenticator(aAuthenticator) , mEventTarget(aEventTarget) @@ -192,8 +190,7 @@ U2FTask::Execute() U2FPrepTask::U2FPrepTask(const Authenticator& aAuthenticator, nsISerialEventTarget* aEventTarget) - : Runnable("dom::U2FPrepTask") - , mAuthenticator(aAuthenticator) + : mAuthenticator(aAuthenticator) , mEventTarget(aEventTarget) {} @@ -447,8 +444,7 @@ U2FSignTask::Run() U2FRunnable::U2FRunnable(const nsAString& aOrigin, const nsAString& aAppId, nsISerialEventTarget* aEventTarget) - : Runnable("dom::U2FRunnable") - , mOrigin(aOrigin) + : mOrigin(aOrigin) , mAppId(aAppId) , mEventTarget(aEventTarget) {} @@ -681,14 +677,14 @@ U2FRegisterRunnable::Run() if (status->IsStopped()) { status->WaitGroupAdd(); mEventTarget->Dispatch(NS_NewRunnableFunction( - "dom::U2FRegisterRunnable::Run", [&status, this] () { RegisterResponse response; response.mErrorCode.Construct( static_cast(status->GetErrorCode())); SendResponse(response); status->WaitGroupDone(); - })); + } + )); // Don't exit until the main thread runnable completes status->WaitGroupWait(); @@ -744,7 +740,6 @@ U2FRegisterRunnable::Run() // Transmit back to the JS engine from the Main Thread status->WaitGroupAdd(); mEventTarget->Dispatch(NS_NewRunnableFunction( - "dom::U2FRegisterRunnable::Run", [&status, this] () { RegisterResponse response; if (status->GetErrorCode() == ErrorCode::OK) { @@ -755,7 +750,8 @@ U2FRegisterRunnable::Run() } SendResponse(response); status->WaitGroupDone(); - })); + } + )); // TODO: Add timeouts, Bug 1301793 status->WaitGroupWait(); @@ -927,7 +923,6 @@ U2FSignRunnable::Run() // Transmit back to the JS engine from the Main Thread status->WaitGroupAdd(); mEventTarget->Dispatch(NS_NewRunnableFunction( - "dom::U2FSignRunnable::Run", [&status, this] () { SignResponse response; if (status->GetErrorCode() == ErrorCode::OK) { @@ -938,7 +933,8 @@ U2FSignRunnable::Run() } SendResponse(response); status->WaitGroupDone(); - })); + } + )); // TODO: Add timeouts, Bug 1301793 status->WaitGroupWait(); diff --git a/dom/url/URLMainThread.cpp b/dom/url/URLMainThread.cpp index 7d33c2bb30c9..39f5bd3a6963 100644 --- a/dom/url/URLMainThread.cpp +++ b/dom/url/URLMainThread.cpp @@ -125,8 +125,8 @@ URLMainThread::CreateObjectURL(const GlobalObject& aGlobal, return; } - nsCOMPtr revocation = - NS_NewRunnableFunction("dom::URLMainThread::CreateObjectURL", [url] { + nsCOMPtr revocation = NS_NewRunnableFunction( + [url] { nsHostObjectProtocolHandler::RemoveDataEntry(url); }); diff --git a/dom/url/URLWorker.cpp b/dom/url/URLWorker.cpp index 0e66489033e1..0fc8f86d609b 100644 --- a/dom/url/URLWorker.cpp +++ b/dom/url/URLWorker.cpp @@ -279,8 +279,7 @@ class TeardownURLRunnable : public Runnable { public: explicit TeardownURLRunnable(URLWorker::URLProxy* aURLProxy) - : Runnable("dom::TeardownURLRunnable") - , mURLProxy(aURLProxy) + : mURLProxy(aURLProxy) { } diff --git a/dom/webauthn/U2FSoftTokenManager.cpp b/dom/webauthn/U2FSoftTokenManager.cpp index a92c642853fe..0de3b2fac972 100644 --- a/dom/webauthn/U2FSoftTokenManager.cpp +++ b/dom/webauthn/U2FSoftTokenManager.cpp @@ -234,7 +234,6 @@ U2FSoftTokenManager::GetOrCreateWrappingKey(const UniquePK11SlotInfo& aSlot, ("Key stored, nickname set to %s.", mSecretNickname.get())); GetMainThreadEventTarget()->Dispatch(NS_NewRunnableFunction( - "dom::U2FSoftTokenManager::GetOrCreateWrappingKey", [] () { MOZ_ASSERT(NS_IsMainThread()); Preferences::SetUint(PREF_U2F_NSSTOKEN_COUNTER, 0); @@ -798,7 +797,6 @@ U2FSoftTokenManager::Sign(const nsTArray& aApplication, counterItem.data[3] = (mCounter >> 0) & 0xFF; uint32_t counter = mCounter; GetMainThreadEventTarget()->Dispatch(NS_NewRunnableFunction( - "dom::U2FSoftTokenManager::Sign", [counter] () { MOZ_ASSERT(NS_IsMainThread()); Preferences::SetUint(PREF_U2F_NSSTOKEN_COUNTER, counter); diff --git a/dom/webbrowserpersist/WebBrowserPersistDocumentParent.cpp b/dom/webbrowserpersist/WebBrowserPersistDocumentParent.cpp index 66073c0aed3b..a54b1f4f2d5f 100644 --- a/dom/webbrowserpersist/WebBrowserPersistDocumentParent.cpp +++ b/dom/webbrowserpersist/WebBrowserPersistDocumentParent.cpp @@ -44,11 +44,9 @@ WebBrowserPersistDocumentParent::ActorDestroy(ActorDestroyReason aWhy) // dropping the last reference to another document's // WebBrowserPersistRemoteDocument. To avoid that, defer the // callback until after the entire subtree is destroyed. - nsCOMPtr errorLater = NewRunnableMethod( - "nsIWebBrowserPersistDocumentReceiver::OnError", - mOnReady, - &nsIWebBrowserPersistDocumentReceiver::OnError, - NS_ERROR_FAILURE); + nsCOMPtr errorLater = NewRunnableMethod + (mOnReady, &nsIWebBrowserPersistDocumentReceiver::OnError, + NS_ERROR_FAILURE); NS_DispatchToCurrentThread(errorLater); mOnReady = nullptr; } diff --git a/dom/webbrowserpersist/WebBrowserPersistResourcesParent.cpp b/dom/webbrowserpersist/WebBrowserPersistResourcesParent.cpp index 2c5194dce888..94e0b2c91908 100644 --- a/dom/webbrowserpersist/WebBrowserPersistResourcesParent.cpp +++ b/dom/webbrowserpersist/WebBrowserPersistResourcesParent.cpp @@ -31,13 +31,10 @@ WebBrowserPersistResourcesParent::ActorDestroy(ActorDestroyReason aWhy) if (aWhy != Deletion && mVisitor) { // See comment in WebBrowserPersistDocumentParent::ActorDestroy // (or bug 1202887) for why this is deferred. - nsCOMPtr errorLater = - NewRunnableMethod, nsresult>( - "nsIWebBrowserPersistResourceVisitor::EndVisit", - mVisitor, - &nsIWebBrowserPersistResourceVisitor::EndVisit, - mDocument, - NS_ERROR_FAILURE); + nsCOMPtr errorLater = NewRunnableMethod + , nsresult> + (mVisitor, &nsIWebBrowserPersistResourceVisitor::EndVisit, + mDocument, NS_ERROR_FAILURE); NS_DispatchToCurrentThread(errorLater); } mVisitor = nullptr; diff --git a/dom/webbrowserpersist/WebBrowserPersistSerializeParent.cpp b/dom/webbrowserpersist/WebBrowserPersistSerializeParent.cpp index c4b179d29286..f723145e29e2 100644 --- a/dom/webbrowserpersist/WebBrowserPersistSerializeParent.cpp +++ b/dom/webbrowserpersist/WebBrowserPersistSerializeParent.cpp @@ -75,18 +75,11 @@ WebBrowserPersistSerializeParent::ActorDestroy(ActorDestroyReason aWhy) MOZ_ASSERT(aWhy != Deletion); // See comment in WebBrowserPersistDocumentParent::ActorDestroy // (or bug 1202887) for why this is deferred. - nsCOMPtr errorLater = - NewRunnableMethod, - nsCOMPtr, - nsCString, - nsresult>( - "nsIWebBrowserPersistWriteCompletion::OnFinish", - mFinish, - &nsIWebBrowserPersistWriteCompletion::OnFinish, - mDocument, - mStream, - EmptyCString(), - NS_ERROR_FAILURE); + nsCOMPtr errorLater = NewRunnableMethod + , nsCOMPtr, + nsCString, nsresult> + (mFinish, &nsIWebBrowserPersistWriteCompletion::OnFinish, + mDocument, mStream, EmptyCString(), NS_ERROR_FAILURE); NS_DispatchToCurrentThread(errorLater); mFinish = nullptr; } diff --git a/dom/webbrowserpersist/nsWebBrowserPersist.cpp b/dom/webbrowserpersist/nsWebBrowserPersist.cpp index fdde2e56e24b..20d9a21ee4db 100644 --- a/dom/webbrowserpersist/nsWebBrowserPersist.cpp +++ b/dom/webbrowserpersist/nsWebBrowserPersist.cpp @@ -675,10 +675,8 @@ nsWebBrowserPersist::SerializeNextFile() // Finish and clean things up. Defer this because the caller // may have been expecting to use the listeners that that // method will clear. - NS_DispatchToCurrentThread( - NewRunnableMethod("nsWebBrowserPersist::FinishDownload", - this, - &nsWebBrowserPersist::FinishDownload)); + NS_DispatchToCurrentThread(NewRunnableMethod(this, + &nsWebBrowserPersist::FinishDownload)); return; } @@ -789,10 +787,8 @@ nsWebBrowserPersist::OnWrite::OnFinish(nsIWebBrowserPersistDocument* aDoc, return NS_OK; } } - NS_DispatchToCurrentThread( - NewRunnableMethod("nsWebBrowserPersist::SerializeNextFile", - mParent, - &nsWebBrowserPersist::SerializeNextFile)); + NS_DispatchToCurrentThread(NewRunnableMethod(mParent, + &nsWebBrowserPersist::SerializeNextFile)); return NS_OK; } @@ -1794,11 +1790,9 @@ nsWebBrowserPersist::FinishSaveDocumentInternal(nsIURI* aFile, // Bounce this off the event loop to avoid stack overflow. typedef StoreCopyPassByRRef WalkStorage; auto saveMethod = &nsWebBrowserPersist::SaveDocumentDeferred; - nsCOMPtr saveLater = NewRunnableMethod( - "nsWebBrowserPersist::FinishSaveDocumentInternal", - this, - saveMethod, - mozilla::Move(toWalk)); + nsCOMPtr saveLater = + NewRunnableMethod(this, saveMethod, + mozilla::Move(toWalk)); NS_DispatchToCurrentThread(saveLater); } else { // Done walking DOMs; on to the serialization phase. diff --git a/dom/workers/RuntimeService.cpp b/dom/workers/RuntimeService.cpp index a52e83df1c69..2e2d4f3bf5a3 100644 --- a/dom/workers/RuntimeService.cpp +++ b/dom/workers/RuntimeService.cpp @@ -1254,10 +1254,7 @@ public: WorkerThreadPrimaryRunnable(WorkerPrivate* aWorkerPrivate, WorkerThread* aThread, JSRuntime* aParentRuntime) - : mozilla::Runnable("WorkerThreadPrimaryRunnable") - , mWorkerPrivate(aWorkerPrivate) - , mThread(aThread) - , mParentRuntime(aParentRuntime) + : mWorkerPrivate(aWorkerPrivate), mThread(aThread), mParentRuntime(aParentRuntime) { MOZ_ASSERT(aWorkerPrivate); MOZ_ASSERT(aThread); diff --git a/dom/workers/ScriptLoader.cpp b/dom/workers/ScriptLoader.cpp index 8a612804ca6b..5bbb428bbc5b 100644 --- a/dom/workers/ScriptLoader.cpp +++ b/dom/workers/ScriptLoader.cpp @@ -762,8 +762,7 @@ private: mCanceled = true; MOZ_ALWAYS_SUCCEEDS( - NS_DispatchToMainThread(NewRunnableMethod("ScriptLoaderRunnable::CancelMainThreadWithBindingAborted", - this, + NS_DispatchToMainThread(NewRunnableMethod(this, &ScriptLoaderRunnable::CancelMainThreadWithBindingAborted))); } diff --git a/dom/workers/ServiceWorkerClient.cpp b/dom/workers/ServiceWorkerClient.cpp index 68d4a7ec5680..07ed5d07394c 100644 --- a/dom/workers/ServiceWorkerClient.cpp +++ b/dom/workers/ServiceWorkerClient.cpp @@ -137,9 +137,7 @@ public: ServiceWorkerClientPostMessageRunnable(uint64_t aSourceID, const nsACString& aSourceScope, uint64_t aWindowId) - : mozilla::Runnable("ServiceWorkerClientPostMessageRunnable") - , StructuredCloneHolder(CloningSupported, - TransferringSupported, + : StructuredCloneHolder(CloningSupported, TransferringSupported, StructuredCloneScope::SameProcessDifferentThread) , mSourceID(aSourceID) , mSourceScope(aSourceScope) diff --git a/dom/workers/ServiceWorkerClients.cpp b/dom/workers/ServiceWorkerClients.cpp index a9b8c6efe5e4..e32a6e98e7f3 100644 --- a/dom/workers/ServiceWorkerClients.cpp +++ b/dom/workers/ServiceWorkerClients.cpp @@ -111,10 +111,10 @@ class GetRunnable final : public Runnable RefPtr mPromiseProxy; nsString mClientId; public: - GetRunnable(PromiseWorkerProxy* aPromiseProxy, const nsAString& aClientId) - : mozilla::Runnable("GetRunnable") - , mPromiseProxy(aPromiseProxy) - , mClientId(aClientId) + GetRunnable(PromiseWorkerProxy* aPromiseProxy, + const nsAString& aClientId) + : mPromiseProxy(aPromiseProxy), + mClientId(aClientId) { } @@ -201,11 +201,10 @@ public: const nsCString& aScope, uint64_t aServiceWorkerID, bool aIncludeUncontrolled) - : mozilla::Runnable("MatchAllRunnable") - , mPromiseProxy(aPromiseProxy) - , mScope(aScope) - , mServiceWorkerID(aServiceWorkerID) - , mIncludeUncontrolled(aIncludeUncontrolled) + : mPromiseProxy(aPromiseProxy), + mScope(aScope), + mServiceWorkerID(aServiceWorkerID), + mIncludeUncontrolled(aIncludeUncontrolled) { MOZ_ASSERT(mPromiseProxy); } @@ -280,8 +279,7 @@ class ClaimRunnable final : public Runnable public: ClaimRunnable(PromiseWorkerProxy* aPromiseProxy, const nsCString& aScope) - : mozilla::Runnable("ClaimRunnable") - , mPromiseProxy(aPromiseProxy) + : mPromiseProxy(aPromiseProxy) , mScope(aScope) // Safe to call GetWorkerPrivate() since we are being called on the worker // thread via script (so no clean up has occured yet). @@ -510,8 +508,7 @@ public: OpenWindowRunnable(PromiseWorkerProxy* aPromiseProxy, const nsAString& aUrl, const nsAString& aScope) - : mozilla::Runnable("OpenWindowRunnable") - , mPromiseProxy(aPromiseProxy) + : mPromiseProxy(aPromiseProxy) , mUrl(aUrl) , mScope(aScope) { diff --git a/dom/workers/ServiceWorkerEvents.cpp b/dom/workers/ServiceWorkerEvents.cpp index 6d317a492b5e..e0f25e6cfab0 100644 --- a/dom/workers/ServiceWorkerEvents.cpp +++ b/dom/workers/ServiceWorkerEvents.cpp @@ -95,12 +95,10 @@ AsyncLog(nsIInterceptedChannel* aInterceptedChannel, BEGIN_WORKERS_NAMESPACE -CancelChannelRunnable::CancelChannelRunnable( - nsMainThreadPtrHandle& aChannel, - nsMainThreadPtrHandle& aRegistration, - nsresult aStatus) - : Runnable("dom::workers::CancelChannelRunnable") - , mChannel(aChannel) +CancelChannelRunnable::CancelChannelRunnable(nsMainThreadPtrHandle& aChannel, + nsMainThreadPtrHandle& aRegistration, + nsresult aStatus) + : mChannel(aChannel) , mRegistration(aRegistration) , mStatus(aStatus) { @@ -179,8 +177,7 @@ public: const ChannelInfo& aWorkerChannelInfo, const nsACString& aScriptSpec, const nsACString& aResponseURLSpec) - : Runnable("dom::workers::FinishResponse") - , mChannel(aChannel) + : mChannel(aChannel) , mInternalResponse(aInternalResponse) , mWorkerChannelInfo(aWorkerChannelInfo) , mScriptSpec(aScriptSpec) @@ -884,8 +881,7 @@ public: } MOZ_ALWAYS_SUCCEEDS(mWorkerPrivate->DispatchToMainThread( - NewRunnableMethod("WaitUntilHandler::ReportOnMainThread", - this, &WaitUntilHandler::ReportOnMainThread))); + NewRunnableMethod(this, &WaitUntilHandler::ReportOnMainThread))); } void diff --git a/dom/workers/ServiceWorkerInfo.cpp b/dom/workers/ServiceWorkerInfo.cpp index f0e281e1673a..6beba301b811 100644 --- a/dom/workers/ServiceWorkerInfo.cpp +++ b/dom/workers/ServiceWorkerInfo.cpp @@ -144,8 +144,7 @@ class ChangeStateUpdater final : public Runnable public: ChangeStateUpdater(const nsTArray& aInstances, ServiceWorkerState aState) - : Runnable("dom::workers::ChangeStateUpdater") - , mState(aState) + : mState(aState) { for (size_t i = 0; i < aInstances.Length(); ++i) { mInstances.AppendElement(aInstances[i]); diff --git a/dom/workers/ServiceWorkerManager.cpp b/dom/workers/ServiceWorkerManager.cpp index c2c3069da563..8c61727affe6 100644 --- a/dom/workers/ServiceWorkerManager.cpp +++ b/dom/workers/ServiceWorkerManager.cpp @@ -206,8 +206,7 @@ class TeardownRunnable final : public Runnable { public: explicit TeardownRunnable(ServiceWorkerManagerChild* aActor) - : Runnable("dom::workers::TeardownRunnable") - , mActor(aActor) + : mActor(aActor) { MOZ_ASSERT(mActor); } @@ -387,8 +386,7 @@ class PropagateSoftUpdateRunnable final : public Runnable public: PropagateSoftUpdateRunnable(const OriginAttributes& aOriginAttributes, const nsAString& aScope) - : Runnable("dom::workers::PropagateSoftUpdateRunnable") - , mOriginAttributes(aOriginAttributes) + : mOriginAttributes(aOriginAttributes) , mScope(aScope) {} @@ -418,8 +416,7 @@ public: PropagateUnregisterRunnable(nsIPrincipal* aPrincipal, nsIServiceWorkerUnregisterCallback* aCallback, const nsAString& aScope) - : Runnable("dom::workers::PropagateUnregisterRunnable") - , mPrincipal(aPrincipal) + : mPrincipal(aPrincipal) , mCallback(aCallback) , mScope(aScope) { @@ -451,9 +448,7 @@ class RemoveRunnable final : public Runnable { public: explicit RemoveRunnable(const nsACString& aHost) - : Runnable("dom::workers::RemoveRunnable") - { - } + {} NS_IMETHOD Run() override { @@ -478,9 +473,7 @@ class PropagateRemoveRunnable final : public Runnable { public: explicit PropagateRemoveRunnable(const nsACString& aHost) - : Runnable("dom::workers::PropagateRemoveRunnable") - { - } + {} NS_IMETHOD Run() override { @@ -505,9 +498,7 @@ class PropagateRemoveAllRunnable final : public Runnable { public: PropagateRemoveAllRunnable() - : Runnable("dom::workers::PropagateRemoveAllRunnable") - { - } + {} NS_IMETHOD Run() override { @@ -587,11 +578,9 @@ class SoftUpdateRunnable final : public CancelableRunnable { public: SoftUpdateRunnable(const OriginAttributes& aOriginAttributes, - const nsACString& aScope, - bool aInternalMethod, + const nsACString& aScope, bool aInternalMethod, GenericPromise::Private* aPromise) - : CancelableRunnable("dom::workers::SoftUpdateRunnable") - , mAttrs(aOriginAttributes) + : mAttrs(aOriginAttributes) , mScope(aScope) , mInternalMethod(aInternalMethod) , mPromise(aPromise) @@ -661,8 +650,7 @@ public: ServiceWorkerUpdateFinishCallback* aCallback, Type aType, GenericPromise::Private* aPromise) - : CancelableRunnable("dom::workers::UpdateRunnable") - , mPrincipal(aPrincipal) + : mPrincipal(aPrincipal) , mScope(aScope) , mCallback(aCallback) , mType(aType) @@ -726,8 +714,7 @@ class ResolvePromiseRunnable final : public CancelableRunnable { public: explicit ResolvePromiseRunnable(GenericPromise::Private* aPromise) - : CancelableRunnable("dom::workers::ResolvePromiseRunnable") - , mPromise(aPromise) + : mPromise(aPromise) {} NS_IMETHOD @@ -972,9 +959,7 @@ class GetRegistrationsRunnable final : public Runnable RefPtr mPromise; public: GetRegistrationsRunnable(nsPIDOMWindowInner* aWindow, Promise* aPromise) - : Runnable("dom::workers::GetRegistrationsRunnable") - , mWindow(aWindow) - , mPromise(aPromise) + : mWindow(aWindow), mPromise(aPromise) {} NS_IMETHOD @@ -1100,13 +1085,9 @@ class GetRegistrationRunnable final : public Runnable nsString mDocumentURL; public: - GetRegistrationRunnable(nsPIDOMWindowInner* aWindow, - Promise* aPromise, + GetRegistrationRunnable(nsPIDOMWindowInner* aWindow, Promise* aPromise, const nsAString& aDocumentURL) - : Runnable("dom::workers::GetRegistrationRunnable") - , mWindow(aWindow) - , mPromise(aPromise) - , mDocumentURL(aDocumentURL) + : mWindow(aWindow), mPromise(aPromise), mDocumentURL(aDocumentURL) {} NS_IMETHOD @@ -1210,9 +1191,7 @@ class GetReadyPromiseRunnable final : public Runnable public: GetReadyPromiseRunnable(nsPIDOMWindowInner* aWindow, Promise* aPromise) - : Runnable("dom::workers::GetReadyPromiseRunnable") - , mWindow(aWindow) - , mPromise(aPromise) + : mWindow(aWindow), mPromise(aPromise) {} NS_IMETHOD @@ -2640,14 +2619,12 @@ class ContinueDispatchFetchEventRunnable : public Runnable nsString mDocumentId; bool mIsReload; public: - ContinueDispatchFetchEventRunnable( - ServiceWorkerPrivate* aServiceWorkerPrivate, - nsIInterceptedChannel* aChannel, - nsILoadGroup* aLoadGroup, - const nsAString& aDocumentId, - bool aIsReload) - : Runnable("dom::workers::ContinueDispatchFetchEventRunnable") - , mServiceWorkerPrivate(aServiceWorkerPrivate) + ContinueDispatchFetchEventRunnable(ServiceWorkerPrivate* aServiceWorkerPrivate, + nsIInterceptedChannel* aChannel, + nsILoadGroup* aLoadGroup, + const nsAString& aDocumentId, + bool aIsReload) + : mServiceWorkerPrivate(aServiceWorkerPrivate) , mChannel(aChannel) , mLoadGroup(aLoadGroup) , mDocumentId(aDocumentId) @@ -2788,8 +2765,7 @@ ServiceWorkerManager::DispatchFetchEvent(const OriginAttributes& aOriginAttribut // When this service worker was registered, we also sent down the permissions // for the runnable. They should have arrived by now, but we still need to // wait for them if they have not. - nsCOMPtr permissionsRunnable = NS_NewRunnableFunction( - "dom::workers::ServiceWorkerManager::DispatchFetchEvent", [=]() { + nsCOMPtr permissionsRunnable = NS_NewRunnableFunction([=] () { nsCOMPtr permMgr = services::GetPermissionManager(); MOZ_ALWAYS_SUCCEEDS(permMgr->WhenPermissionsAvailable(serviceWorker->Principal(), continueRunnable)); diff --git a/dom/workers/ServiceWorkerManagerParent.cpp b/dom/workers/ServiceWorkerManagerParent.cpp index a4d21c10b071..41f106b083d9 100644 --- a/dom/workers/ServiceWorkerManagerParent.cpp +++ b/dom/workers/ServiceWorkerManagerParent.cpp @@ -30,8 +30,7 @@ class RegisterServiceWorkerCallback final : public Runnable public: RegisterServiceWorkerCallback(const ServiceWorkerRegistrationData& aData, uint64_t aParentID) - : Runnable("dom::workers::RegisterServiceWorkerCallback") - , mData(aData) + : mData(aData) , mParentID(aParentID) { AssertIsInMainProcess(); @@ -75,8 +74,7 @@ public: UnregisterServiceWorkerCallback(const PrincipalInfo& aPrincipalInfo, const nsString& aScope, uint64_t aParentID) - : Runnable("dom::workers::UnregisterServiceWorkerCallback") - , mPrincipalInfo(aPrincipalInfo) + : mPrincipalInfo(aPrincipalInfo) , mScope(aScope) , mParentID(aParentID) { @@ -124,8 +122,7 @@ public: CheckPrincipalWithCallbackRunnable(already_AddRefed aParent, const PrincipalInfo& aPrincipalInfo, Runnable* aCallback) - : Runnable("dom::workers::CheckPrincipalWithCallbackRunnable") - , mContentParent(aParent) + : mContentParent(aParent) , mPrincipalInfo(aPrincipalInfo) , mCallback(aCallback) , mBackgroundEventTarget(GetCurrentThreadEventTarget()) diff --git a/dom/workers/ServiceWorkerManagerService.cpp b/dom/workers/ServiceWorkerManagerService.cpp index b622b4f8901d..e3d474648f0f 100644 --- a/dom/workers/ServiceWorkerManagerService.cpp +++ b/dom/workers/ServiceWorkerManagerService.cpp @@ -109,17 +109,16 @@ ServiceWorkerManagerService::PropagateRegistration( // Send permissions fot the newly registered service worker to all of the // content processes. PrincipalInfo pi = aData.principal(); - NS_DispatchToMainThread(NS_NewRunnableFunction( - "dom::workers::ServiceWorkerManagerService::PropagateRegistration", [pi]() { - nsTArray cps; - ContentParent::GetAll(cps); - for (auto* cp : cps) { - nsCOMPtr principal = PrincipalInfoToPrincipal(pi); - if (principal) { - cp->TransmitPermissionsForPrincipal(principal); + NS_DispatchToMainThread(NS_NewRunnableFunction([pi] () { + nsTArray cps; + ContentParent::GetAll(cps); + for (auto* cp : cps) { + nsCOMPtr principal = PrincipalInfoToPrincipal(pi); + if (principal) { + cp->TransmitPermissionsForPrincipal(principal); + } } - } - })); + })); #ifdef DEBUG MOZ_ASSERT(parentFound); diff --git a/dom/workers/ServiceWorkerPrivate.cpp b/dom/workers/ServiceWorkerPrivate.cpp index ca5af769dd39..d52f2a598e33 100644 --- a/dom/workers/ServiceWorkerPrivate.cpp +++ b/dom/workers/ServiceWorkerPrivate.cpp @@ -146,11 +146,8 @@ public: aWorkerPrivate->AssertIsOnWorkerThread(); bool fetchHandlerWasAdded = aWorkerPrivate->FetchHandlerWasAdded(); - nsCOMPtr runnable = NewRunnableMethod( - "dom::workers::CheckScriptEvaluationWithCallback::ReportFetchFlag", - this, - &CheckScriptEvaluationWithCallback::ReportFetchFlag, - fetchHandlerWasAdded); + nsCOMPtr runnable = NewRunnableMethod(this, + &CheckScriptEvaluationWithCallback::ReportFetchFlag, fetchHandlerWasAdded); aWorkerPrivate->DispatchToMainThread(runnable.forget()); ReportScriptEvaluationResult(aWorkerPrivate->WorkerScriptExecutedSuccessfully()); @@ -379,10 +376,7 @@ private: CycleCollectedJSContext* cx = CycleCollectedJSContext::Get(); MOZ_ASSERT(cx); - RefPtr r = - NewRunnableMethod("dom::workers::KeepAliveHandler::MaybeDone", - this, - &KeepAliveHandler::MaybeDone); + RefPtr r = NewRunnableMethod(this, &KeepAliveHandler::MaybeDone); cx->DispatchToMicroTask(r.forget()); } }; @@ -395,11 +389,9 @@ class RegistrationUpdateRunnable : public Runnable const bool mNeedTimeCheck; public: - RegistrationUpdateRunnable( - nsMainThreadPtrHandle& aRegistration, - bool aNeedTimeCheck) - : Runnable("dom::workers::RegistrationUpdateRunnable") - , mRegistration(aRegistration) + RegistrationUpdateRunnable(nsMainThreadPtrHandle& aRegistration, + bool aNeedTimeCheck) + : mRegistration(aRegistration) , mNeedTimeCheck(aNeedTimeCheck) { MOZ_DIAGNOSTIC_ASSERT(mRegistration); @@ -872,11 +864,9 @@ public: mMessageId.IsEmpty()) { return; } - nsCOMPtr runnable = NewRunnableMethod( - "dom::workers::PushErrorReporter::ReportOnMainThread", - this, - &PushErrorReporter::ReportOnMainThread, - aReason); + nsCOMPtr runnable = + NewRunnableMethod(this, + &PushErrorReporter::ReportOnMainThread, aReason); MOZ_ALWAYS_TRUE(NS_SUCCEEDED( workerPrivate->DispatchToMainThread(runnable.forget()))); } @@ -1522,10 +1512,8 @@ private: class ResumeRequest final : public Runnable { nsMainThreadPtrHandle mChannel; public: - explicit ResumeRequest( - nsMainThreadPtrHandle& aChannel) - : Runnable("dom::workers::FetchEventRunnable::ResumeRequest") - , mChannel(aChannel) + explicit ResumeRequest(nsMainThreadPtrHandle& aChannel) + : mChannel(aChannel) { mChannel->SetFinishResponseStart(TimeStamp::Now()); } @@ -1684,9 +1672,7 @@ ServiceWorkerPrivate::SendFetchEvent(nsIInterceptedChannel* aChannel, // if the ServiceWorker script fails to load for some reason, just resume // the original channel. nsCOMPtr failRunnable = - NewRunnableMethod("nsIInterceptedChannel::ResetInterception", - aChannel, - &nsIInterceptedChannel::ResetInterception); + NewRunnableMethod(aChannel, &nsIInterceptedChannel::ResetInterception); aChannel->SetLaunchServiceWorkerStart(TimeStamp::Now()); aChannel->SetDispatchFetchEventStart(TimeStamp::Now()); diff --git a/dom/workers/ServiceWorkerPrivate.h b/dom/workers/ServiceWorkerPrivate.h index 76ddb6e2ec87..fcd32c6c8344 100644 --- a/dom/workers/ServiceWorkerPrivate.h +++ b/dom/workers/ServiceWorkerPrivate.h @@ -27,8 +27,6 @@ class KeepAliveToken; class LifeCycleEventCallback : public Runnable { public: - LifeCycleEventCallback() : Runnable("dom::workers::LifeCycleEventCallback") {} - // Called on the worker thread. virtual void SetResult(bool aResult) = 0; diff --git a/dom/workers/ServiceWorkerRegistrar.cpp b/dom/workers/ServiceWorkerRegistrar.cpp index 0006c3832c0a..264b0b3ce583 100644 --- a/dom/workers/ServiceWorkerRegistrar.cpp +++ b/dom/workers/ServiceWorkerRegistrar.cpp @@ -707,8 +707,7 @@ class ServiceWorkerRegistrarSaveDataRunnable final : public Runnable { public: ServiceWorkerRegistrarSaveDataRunnable() - : Runnable("dom::ServiceWorkerRegistrarSaveDataRunnable") - , mEventTarget(GetCurrentThreadEventTarget()) + : mEventTarget(GetCurrentThreadEventTarget()) { AssertIsOnBackgroundThread(); } @@ -722,8 +721,7 @@ public: service->SaveData(); RefPtr runnable = - NewRunnableMethod("ServiceWorkerRegistrar::DataSaved", - service, &ServiceWorkerRegistrar::DataSaved); + NewRunnableMethod(service, &ServiceWorkerRegistrar::DataSaved); nsresult rv = mEventTarget->Dispatch(runnable, NS_DISPATCH_NORMAL); if (NS_WARN_IF(NS_FAILED(rv))) { return rv; @@ -797,9 +795,7 @@ ServiceWorkerRegistrar::MaybeScheduleShutdownCompleted() } RefPtr runnable = - NewRunnableMethod("dom::ServiceWorkerRegistrar::ShutdownCompleted", - this, - &ServiceWorkerRegistrar::ShutdownCompleted); + NewRunnableMethod(this, &ServiceWorkerRegistrar::ShutdownCompleted); nsresult rv = NS_DispatchToMainThread(runnable); if (NS_WARN_IF(NS_FAILED(rv))) { return; @@ -961,9 +957,7 @@ ServiceWorkerRegistrar::ProfileStarted() MOZ_ASSERT(target, "Must have stream transport service"); nsCOMPtr runnable = - NewRunnableMethod("dom::ServiceWorkerRegistrar::LoadData", - this, - &ServiceWorkerRegistrar::LoadData); + NewRunnableMethod(this, &ServiceWorkerRegistrar::LoadData); rv = target->Dispatch(runnable, NS_DISPATCH_NORMAL); if (NS_FAILED(rv)) { NS_WARNING("Failed to dispatch the LoadDataRunnable."); diff --git a/dom/workers/ServiceWorkerRegistration.cpp b/dom/workers/ServiceWorkerRegistration.cpp index 30fdcf7303cf..53b25ecbf2be 100644 --- a/dom/workers/ServiceWorkerRegistration.cpp +++ b/dom/workers/ServiceWorkerRegistration.cpp @@ -492,9 +492,9 @@ public: class UpdateRunnable final : public Runnable { public: - UpdateRunnable(PromiseWorkerProxy* aPromiseProxy, const nsAString& aScope) - : Runnable("dom::UpdateRunnable") - , mPromiseProxy(aPromiseProxy) + UpdateRunnable(PromiseWorkerProxy* aPromiseProxy, + const nsAString& aScope) + : mPromiseProxy(aPromiseProxy) , mScope(aScope) {} @@ -663,9 +663,9 @@ class StartUnregisterRunnable final : public Runnable const nsString mScope; public: - StartUnregisterRunnable(PromiseWorkerProxy* aProxy, const nsAString& aScope) - : Runnable("dom::StartUnregisterRunnable") - , mPromiseWorkerProxy(aProxy) + StartUnregisterRunnable(PromiseWorkerProxy* aProxy, + const nsAString& aScope) + : mPromiseWorkerProxy(aProxy) , mScope(aScope) { MOZ_ASSERT(aProxy); @@ -1188,9 +1188,7 @@ ServiceWorkerRegistrationWorkerThread::InitListener() } nsCOMPtr r = - NewRunnableMethod("dom::WorkerListener::StartListeningForEvents", - mListener, - &WorkerListener::StartListeningForEvents); + NewRunnableMethod(mListener, &WorkerListener::StartListeningForEvents); MOZ_ALWAYS_SUCCEEDS(worker->DispatchToMainThread(r.forget())); } @@ -1212,9 +1210,7 @@ ServiceWorkerRegistrationWorkerThread::ReleaseListener() mListener->ClearRegistration(); nsCOMPtr r = - NewRunnableMethod("dom::WorkerListener::StopListeningForEvents", - mListener, - &WorkerListener::StopListeningForEvents); + NewRunnableMethod(mListener, &WorkerListener::StopListeningForEvents); MOZ_ALWAYS_SUCCEEDS(mWorkerPrivate->DispatchToMainThread(r.forget())); mListener = nullptr; diff --git a/dom/workers/ServiceWorkerRegistrationInfo.cpp b/dom/workers/ServiceWorkerRegistrationInfo.cpp index 3a0f50d2ccad..57a41c3f075b 100644 --- a/dom/workers/ServiceWorkerRegistrationInfo.cpp +++ b/dom/workers/ServiceWorkerRegistrationInfo.cpp @@ -228,8 +228,7 @@ void ServiceWorkerRegistrationInfo::TryToActivateAsync() { MOZ_ALWAYS_SUCCEEDS( - NS_DispatchToMainThread(NewRunnableMethod("ServiceWorkerRegistrationInfo::TryToActivate", - this, + NS_DispatchToMainThread(NewRunnableMethod(this, &ServiceWorkerRegistrationInfo::TryToActivate))); } @@ -268,17 +267,13 @@ ServiceWorkerRegistrationInfo::Activate() // "Queue a task to fire a simple event named controllerchange..." nsCOMPtr controllerChangeRunnable = NewRunnableMethod>( - "dom::workers::ServiceWorkerManager::FireControllerChange", - swm, - &ServiceWorkerManager::FireControllerChange, - this); + swm, &ServiceWorkerManager::FireControllerChange, this); NS_DispatchToMainThread(controllerChangeRunnable); - nsCOMPtr failRunnable = NewRunnableMethod( - "dom::workers::ServiceWorkerRegistrationInfo::FinishActivate", - this, - &ServiceWorkerRegistrationInfo::FinishActivate, - false /* success */); + nsCOMPtr failRunnable = + NewRunnableMethod(this, + &ServiceWorkerRegistrationInfo::FinishActivate, + false /* success */); nsMainThreadPtrHandle handle( new nsMainThreadPtrHolder( @@ -380,14 +375,9 @@ ServiceWorkerRegistrationInfo::UpdateRegistrationStateProperties(WhichServiceWor { AssertIsOnMainThread(); - nsCOMPtr runnable = - NewRunnableMethod( - "dom::workers::ServiceWorkerRegistrationInfo::" - "AsyncUpdateRegistrationStateProperties", - this, - &ServiceWorkerRegistrationInfo::AsyncUpdateRegistrationStateProperties, - aWorker, - aTransition); + nsCOMPtr runnable = NewRunnableMethod( + this, + &ServiceWorkerRegistrationInfo::AsyncUpdateRegistrationStateProperties, aWorker, aTransition); MOZ_ALWAYS_SUCCEEDS(NS_DispatchToMainThread(runnable.forget())); } diff --git a/dom/workers/ServiceWorkerUpdateJob.cpp b/dom/workers/ServiceWorkerUpdateJob.cpp index 110cbc1d892a..7f56d9d0518c 100644 --- a/dom/workers/ServiceWorkerUpdateJob.cpp +++ b/dom/workers/ServiceWorkerUpdateJob.cpp @@ -509,8 +509,6 @@ ServiceWorkerUpdateJob::Install(ServiceWorkerManager* aSWM) // fire the updatefound event nsCOMPtr upr = NewRunnableMethod>( - "dom::workers::ServiceWorkerManager::" - "FireUpdateFoundOnServiceWorkerRegistrations", aSWM, &ServiceWorkerManager::FireUpdateFoundOnServiceWorkerRegistrations, mRegistration); @@ -518,11 +516,8 @@ ServiceWorkerUpdateJob::Install(ServiceWorkerManager* aSWM) // Call ContinueAfterInstallEvent(false) on main thread if the SW // script fails to load. - nsCOMPtr failRunnable = NewRunnableMethod( - "dom::workers::ServiceWorkerUpdateJob::ContinueAfterInstallEvent", - this, - &ServiceWorkerUpdateJob::ContinueAfterInstallEvent, - false); + nsCOMPtr failRunnable = NewRunnableMethod + (this, &ServiceWorkerUpdateJob::ContinueAfterInstallEvent, false); nsMainThreadPtrHandle handle( new nsMainThreadPtrHolder( diff --git a/dom/workers/ServiceWorkerWindowClient.cpp b/dom/workers/ServiceWorkerWindowClient.cpp index 5689ac727a18..530c51ca7448 100644 --- a/dom/workers/ServiceWorkerWindowClient.cpp +++ b/dom/workers/ServiceWorkerWindowClient.cpp @@ -111,8 +111,7 @@ class ClientFocusRunnable final : public Runnable public: ClientFocusRunnable(uint64_t aWindowId, PromiseWorkerProxy* aPromiseProxy) - : mozilla::Runnable("ClientFocusRunnable") - , mWindowId(aWindowId) + : mWindowId(aWindowId) , mPromiseProxy(aPromiseProxy) { MOZ_ASSERT(mPromiseProxy); @@ -339,12 +338,10 @@ class ClientNavigateRunnable final : public Runnable MOZ_INIT_OUTSIDE_CTOR WorkerPrivate* mWorkerPrivate; public: - ClientNavigateRunnable(uint64_t aWindowId, - const nsAString& aUrl, + ClientNavigateRunnable(uint64_t aWindowId, const nsAString& aUrl, const nsAString& aScope, PromiseWorkerProxy* aPromiseProxy) - : mozilla::Runnable("ClientNavigateRunnable") - , mWindowId(aWindowId) + : mWindowId(aWindowId) , mUrl(aUrl) , mScope(aScope) , mPromiseProxy(aPromiseProxy) diff --git a/dom/workers/WorkerDebuggerManager.cpp b/dom/workers/WorkerDebuggerManager.cpp index 210c3a0b1f3c..dfd7e5acc350 100644 --- a/dom/workers/WorkerDebuggerManager.cpp +++ b/dom/workers/WorkerDebuggerManager.cpp @@ -24,9 +24,8 @@ class RegisterDebuggerMainThreadRunnable final : public mozilla::Runnable public: RegisterDebuggerMainThreadRunnable(WorkerPrivate* aWorkerPrivate, bool aNotifyListeners) - : mozilla::Runnable("RegisterDebuggerMainThreadRunnable") - , mWorkerPrivate(aWorkerPrivate) - , mNotifyListeners(aNotifyListeners) + : mWorkerPrivate(aWorkerPrivate), + mNotifyListeners(aNotifyListeners) { } private: @@ -50,8 +49,7 @@ class UnregisterDebuggerMainThreadRunnable final : public mozilla::Runnable public: explicit UnregisterDebuggerMainThreadRunnable(WorkerPrivate* aWorkerPrivate) - : mozilla::Runnable("UnregisterDebuggerMainThreadRunnable") - , mWorkerPrivate(aWorkerPrivate) + : mWorkerPrivate(aWorkerPrivate) { } private: diff --git a/dom/workers/WorkerPrivate.cpp b/dom/workers/WorkerPrivate.cpp index 711645a4abfd..e50a456c9785 100644 --- a/dom/workers/WorkerPrivate.cpp +++ b/dom/workers/WorkerPrivate.cpp @@ -353,7 +353,6 @@ class MainThreadReleaseRunnable final : public Runnable public: MainThreadReleaseRunnable(nsTArray>& aDoomed, nsCOMPtr& aLoadGroupToCancel) - : mozilla::Runnable("MainThreadReleaseRunnable") { mDoomed.SwapElements(aDoomed); mLoadGroupToCancel.swap(aLoadGroupToCancel); @@ -428,8 +427,7 @@ class TopLevelWorkerFinishedRunnable final : public Runnable public: explicit TopLevelWorkerFinishedRunnable(WorkerPrivate* aFinishedWorker) - : mozilla::Runnable("TopLevelWorkerFinishedRunnable") - , mFinishedWorker(aFinishedWorker) + : mFinishedWorker(aFinishedWorker) { aFinishedWorker->AssertIsOnWorkerThread(); } @@ -2580,13 +2578,11 @@ WorkerPrivate::MemoryReporter::FinishCollectRunnable::FinishCollectRunnable( nsISupports* aHandlerData, bool aAnonymize, const nsACString& aPath) - : mozilla::Runnable( - "dom::workers::WorkerPrivate::MemoryReporter::FinishCollectRunnable") - , mHandleReport(aHandleReport) - , mHandlerData(aHandlerData) - , mAnonymize(aAnonymize) - , mSuccess(false) - , mCxStats(aPath) + : mHandleReport(aHandleReport), + mHandlerData(aHandlerData), + mAnonymize(aAnonymize), + mSuccess(false), + mCxStats(aPath) { } NS_IMETHODIMP @@ -4096,9 +4092,8 @@ class PostDebuggerMessageRunnable final : public Runnable public: PostDebuggerMessageRunnable(WorkerDebugger* aDebugger, const nsAString& aMessage) - : mozilla::Runnable("PostDebuggerMessageRunnable") - , mDebugger(aDebugger) - , mMessage(aMessage) + : mDebugger(aDebugger), + mMessage(aMessage) { } @@ -4124,14 +4119,12 @@ class ReportDebuggerErrorRunnable final : public Runnable public: ReportDebuggerErrorRunnable(WorkerDebugger* aDebugger, - const nsAString& aFilename, - uint32_t aLineno, + const nsAString& aFilename, uint32_t aLineno, const nsAString& aMessage) - : mozilla::Runnable("ReportDebuggerErrorRunnable") - , mDebugger(aDebugger) - , mFilename(aFilename) - , mLineno(aLineno) - , mMessage(aMessage) + : mDebugger(aDebugger), + mFilename(aFilename), + mLineno(aLineno), + mMessage(aMessage) { } diff --git a/dom/workers/WorkerRunnable.cpp b/dom/workers/WorkerRunnable.cpp index e6b6ca775574..fd998b24e7e1 100644 --- a/dom/workers/WorkerRunnable.cpp +++ b/dom/workers/WorkerRunnable.cpp @@ -559,12 +559,10 @@ WorkerControlRunnable::DispatchInternal() NS_IMPL_ISUPPORTS_INHERITED0(WorkerControlRunnable, WorkerRunnable) -WorkerMainThreadRunnable::WorkerMainThreadRunnable( - WorkerPrivate* aWorkerPrivate, - const nsACString& aTelemetryKey) - : mozilla::Runnable("dom::workers::WorkerMainThreadRunnable") - , mWorkerPrivate(aWorkerPrivate) - , mTelemetryKey(aTelemetryKey) +WorkerMainThreadRunnable::WorkerMainThreadRunnable(WorkerPrivate* aWorkerPrivate, + const nsACString& aTelemetryKey) +: mWorkerPrivate(aWorkerPrivate) +, mTelemetryKey(aTelemetryKey) { mWorkerPrivate->AssertIsOnWorkerThread(); } @@ -663,10 +661,8 @@ WorkerSameThreadRunnable::PostDispatch(WorkerPrivate* aWorkerPrivate, } } -WorkerProxyToMainThreadRunnable::WorkerProxyToMainThreadRunnable( - WorkerPrivate* aWorkerPrivate) - : mozilla::Runnable("dom::workers::WorkerProxyToMainThreadRunnable") - , mWorkerPrivate(aWorkerPrivate) +WorkerProxyToMainThreadRunnable::WorkerProxyToMainThreadRunnable(WorkerPrivate* aWorkerPrivate) + : mWorkerPrivate(aWorkerPrivate) { MOZ_ASSERT(mWorkerPrivate); mWorkerPrivate->AssertIsOnWorkerThread(); diff --git a/dom/workers/WorkerScope.cpp b/dom/workers/WorkerScope.cpp index 5f978d4774d1..fd3e0ed7e1e1 100644 --- a/dom/workers/WorkerScope.cpp +++ b/dom/workers/WorkerScope.cpp @@ -651,8 +651,7 @@ class ReportFetchListenerWarningRunnable final : public Runnable public: explicit ReportFetchListenerWarningRunnable(const nsString& aScope) - : mozilla::Runnable("ReportFetchListenerWarningRunnable") - , mScope(NS_ConvertUTF16toUTF8(aScope)) + : mScope(NS_ConvertUTF16toUTF8(aScope)) { WorkerPrivate* workerPrivate = GetCurrentThreadWorkerPrivate(); MOZ_ASSERT(workerPrivate); @@ -760,8 +759,7 @@ class WorkerScopeSkipWaitingRunnable final : public Runnable public: WorkerScopeSkipWaitingRunnable(PromiseWorkerProxy* aPromiseProxy, const nsCString& aScope) - : mozilla::Runnable("WorkerScopeSkipWaitingRunnable") - , mPromiseProxy(aPromiseProxy) + : mPromiseProxy(aPromiseProxy) , mScope(aScope) { MOZ_ASSERT(aPromiseProxy); diff --git a/dom/xbl/nsBindingManager.cpp b/dom/xbl/nsBindingManager.cpp index 9102ebcfebee..03b492cc4942 100644 --- a/dom/xbl/nsBindingManager.cpp +++ b/dom/xbl/nsBindingManager.cpp @@ -390,12 +390,8 @@ nsBindingManager::DoProcessAttachedQueue() nsresult rv = NS_ERROR_FAILURE; nsCOMPtr timer = do_CreateInstance(NS_TIMER_CONTRACTID); if (timer) { - rv = timer->InitWithNamedFuncCallback( - PostPAQEventCallback, - this, - 100, - nsITimer::TYPE_ONE_SHOT, - "nsBindingManager::DoProcessAttachedQueue"); + rv = timer->InitWithFuncCallback(PostPAQEventCallback, this, + 100, nsITimer::TYPE_ONE_SHOT); } if (NS_SUCCEEDED(rv)) { NS_ADDREF_THIS(); diff --git a/dom/xhr/XMLHttpRequestMainThread.cpp b/dom/xhr/XMLHttpRequestMainThread.cpp index e2741136098b..79ebe8d8c9b0 100644 --- a/dom/xhr/XMLHttpRequestMainThread.cpp +++ b/dom/xhr/XMLHttpRequestMainThread.cpp @@ -145,11 +145,7 @@ NS_IMPL_ISUPPORTS(nsXHRParseEndListener, nsIDOMEventListener) class nsResumeTimeoutsEvent : public Runnable { public: - explicit nsResumeTimeoutsEvent(nsPIDOMWindowInner* aWindow) - : Runnable("dom::nsResumeTimeoutsEvent") - , mWindow(aWindow) - { - } + explicit nsResumeTimeoutsEvent(nsPIDOMWindowInner* aWindow) : mWindow(aWindow) {} NS_IMETHOD Run() override { @@ -3127,11 +3123,9 @@ XMLHttpRequestMainThread::SendInternal(const BodyExtractorBase* aBody) } else { // Defer the actual sending of async events just in case listeners // are attached after the send() method is called. - return DispatchToMainThread(NewRunnableMethod( - "dom::XMLHttpRequestMainThread::CloseRequestWithError", - this, - &XMLHttpRequestMainThread::CloseRequestWithError, - ProgressEventType::error)); + return DispatchToMainThread(NewRunnableMethod(this, + &XMLHttpRequestMainThread::CloseRequestWithError, + ProgressEventType::error)); } } diff --git a/dom/xhr/XMLHttpRequestWorker.cpp b/dom/xhr/XMLHttpRequestWorker.cpp index 722361a15583..f9cd680fce3e 100644 --- a/dom/xhr/XMLHttpRequestWorker.cpp +++ b/dom/xhr/XMLHttpRequestWorker.cpp @@ -357,8 +357,7 @@ class AsyncTeardownRunnable final : public Runnable public: explicit AsyncTeardownRunnable(Proxy* aProxy) - : Runnable("dom::AsyncTeardownRunnable") - , mProxy(aProxy) + : mProxy(aProxy) { MOZ_ASSERT(aProxy); } @@ -439,13 +438,9 @@ class LoadStartDetectionRunnable final : public Runnable, public: LoadStartDetectionRunnable(Proxy* aProxy, XMLHttpRequestWorker* aXHRPrivate) - : Runnable("dom::LoadStartDetectionRunnable") - , mWorkerPrivate(aProxy->mWorkerPrivate) - , mProxy(aProxy) - , mXHR(aProxy->mXHR) - , mXMLHttpRequestPrivate(aXHRPrivate) - , mChannelId(mProxy->mInnerChannelId) - , mReceivedLoadStart(false) + : mWorkerPrivate(aProxy->mWorkerPrivate), mProxy(aProxy), mXHR(aProxy->mXHR), + mXMLHttpRequestPrivate(aXHRPrivate), mChannelId(mProxy->mInnerChannelId), + mReceivedLoadStart(false) { AssertIsOnMainThread(); mEventType.AssignWithConversion(sEventStrings[STRING_loadstart]); diff --git a/dom/xml/XMLStylesheetProcessingInstruction.cpp b/dom/xml/XMLStylesheetProcessingInstruction.cpp index 7c407eb98da4..3d94e179b48a 100644 --- a/dom/xml/XMLStylesheetProcessingInstruction.cpp +++ b/dom/xml/XMLStylesheetProcessingInstruction.cpp @@ -63,8 +63,7 @@ XMLStylesheetProcessingInstruction::BindToTree(nsIDocument* aDocument, void (XMLStylesheetProcessingInstruction::*update)() = &XMLStylesheetProcessingInstruction::UpdateStyleSheetInternal; - nsContentUtils::AddScriptRunner(NewRunnableMethod( - "dom::XMLStylesheetProcessingInstruction::BindToTree", this, update)); + nsContentUtils::AddScriptRunner(NewRunnableMethod(this, update)); return rv; } diff --git a/dom/xml/nsXMLContentSink.cpp b/dom/xml/nsXMLContentSink.cpp index 3bd8a5dff95d..19b0cc8ee8ec 100644 --- a/dom/xml/nsXMLContentSink.cpp +++ b/dom/xml/nsXMLContentSink.cpp @@ -1583,10 +1583,8 @@ nsXMLContentSink::ContinueInterruptedParsingIfEnabled() void nsXMLContentSink::ContinueInterruptedParsingAsync() { - nsCOMPtr ev = - NewRunnableMethod("nsXMLContentSink::ContinueInterruptedParsingIfEnabled", - this, - &nsXMLContentSink::ContinueInterruptedParsingIfEnabled); + nsCOMPtr ev = NewRunnableMethod(this, + &nsXMLContentSink::ContinueInterruptedParsingIfEnabled); NS_DispatchToCurrentThread(ev); } diff --git a/dom/xml/nsXMLPrettyPrinter.cpp b/dom/xml/nsXMLPrettyPrinter.cpp index 3393335de92d..1582cd92a2a8 100644 --- a/dom/xml/nsXMLPrettyPrinter.cpp +++ b/dom/xml/nsXMLPrettyPrinter.cpp @@ -193,8 +193,8 @@ nsXMLPrettyPrinter::MaybeUnhook(nsIContent* aContent) // since AddScriptRunner _could_ in theory run us // synchronously mUnhookPending = true; - nsContentUtils::AddScriptRunner(NewRunnableMethod( - "nsXMLPrettyPrinter::Unhook", this, &nsXMLPrettyPrinter::Unhook)); + nsContentUtils::AddScriptRunner( + NewRunnableMethod(this, &nsXMLPrettyPrinter::Unhook)); } } diff --git a/dom/xslt/xslt/txMozillaXSLTProcessor.cpp b/dom/xslt/xslt/txMozillaXSLTProcessor.cpp index c3f4c289a717..9424d1110593 100644 --- a/dom/xslt/xslt/txMozillaXSLTProcessor.cpp +++ b/dom/xslt/xslt/txMozillaXSLTProcessor.cpp @@ -546,8 +546,7 @@ public: RefPtr mProcessor; explicit nsTransformBlockerEvent(txMozillaXSLTProcessor* processor) - : mozilla::Runnable("nsTransformBlockerEvent") - , mProcessor(processor) + : mProcessor(processor) {} ~nsTransformBlockerEvent() diff --git a/dom/xul/XULDocument.cpp b/dom/xul/XULDocument.cpp index 5106b595c362..1fdc38052edc 100644 --- a/dom/xul/XULDocument.cpp +++ b/dom/xul/XULDocument.cpp @@ -1039,14 +1039,10 @@ XULDocument::AttributeChanged(nsIDocument* aDocument, if (ShouldPersistAttribute(aElement, aAttribute) && !persist.IsEmpty() && // XXXldb This should check that it's a token, not just a substring. persist.Find(nsDependentAtomString(aAttribute)) >= 0) { - nsContentUtils::AddScriptRunner( - NewRunnableMethod( - "dom::XULDocument::DoPersist", - this, - &XULDocument::DoPersist, - aElement, - kNameSpaceID_None, - aAttribute)); + nsContentUtils::AddScriptRunner(NewRunnableMethod + + (this, &XULDocument::DoPersist, aElement, kNameSpaceID_None, + aAttribute)); } } @@ -3148,10 +3144,8 @@ XULDocument::MaybeBroadcast() mDelayedBroadcasters.Length())) { if (!nsContentUtils::IsSafeToRunScript()) { if (!mInDestructor) { - nsContentUtils::AddScriptRunner( - NewRunnableMethod("dom::XULDocument::MaybeBroadcast", - this, - &XULDocument::MaybeBroadcast)); + nsContentUtils::AddScriptRunner( + NewRunnableMethod(this, &XULDocument::MaybeBroadcast)); } return; } diff --git a/dom/xul/nsXULElement.cpp b/dom/xul/nsXULElement.cpp index ee57baf89f04..80b7a33b4f19 100644 --- a/dom/xul/nsXULElement.cpp +++ b/dom/xul/nsXULElement.cpp @@ -793,11 +793,7 @@ IsInFeedSubscribeLine(nsXULElement* aElement) class XULInContentErrorReporter : public Runnable { public: - explicit XULInContentErrorReporter(nsIDocument* aDocument) - : mozilla::Runnable("XULInContentErrorReporter") - , mDocument(aDocument) - { - } + explicit XULInContentErrorReporter(nsIDocument* aDocument) : mDocument(aDocument) {} NS_IMETHOD Run() override { @@ -1877,8 +1873,7 @@ class SetDrawInTitleBarEvent : public Runnable { public: SetDrawInTitleBarEvent(nsIWidget* aWidget, bool aState) - : mozilla::Runnable("SetDrawInTitleBarEvent") - , mWidget(aWidget) + : mWidget(aWidget) , mState(aState) {} @@ -1933,25 +1928,19 @@ nsXULElement::UpdateBrightTitlebarForeground(nsIDocument* aDoc) class MarginSetter : public Runnable { public: - explicit MarginSetter(nsIWidget* aWidget) - : mozilla::Runnable("MarginSetter") - , mWidget(aWidget) - , mMargin(-1, -1, -1, -1) - { - } - MarginSetter(nsIWidget* aWidget, const LayoutDeviceIntMargin& aMargin) - : mozilla::Runnable("MarginSetter") - , mWidget(aWidget) - , mMargin(aMargin) - { - } + explicit MarginSetter(nsIWidget* aWidget) : + mWidget(aWidget), mMargin(-1, -1, -1, -1) + {} + MarginSetter(nsIWidget *aWidget, const LayoutDeviceIntMargin& aMargin) : + mWidget(aWidget), mMargin(aMargin) + {} - NS_IMETHOD Run() override - { - // SetNonClientMargins can dispatch native events, hence doing - // it off a script runner. - mWidget->SetNonClientMargins(mMargin); - return NS_OK; + NS_IMETHOD Run() override + { + // SetNonClientMargins can dispatch native events, hence doing + // it off a script runner. + mWidget->SetNonClientMargins(mMargin); + return NS_OK; } private: @@ -2640,25 +2629,21 @@ class NotifyOffThreadScriptCompletedRunnable : public Runnable void *mToken; public: - NotifyOffThreadScriptCompletedRunnable(nsIOffThreadScriptReceiver* aReceiver, - void* aToken) - : mozilla::Runnable("NotifyOffThreadScriptCompletedRunnable") - , mReceiver(aReceiver) - , mToken(aToken) - { - } + NotifyOffThreadScriptCompletedRunnable(nsIOffThreadScriptReceiver* aReceiver, + void *aToken) + : mReceiver(aReceiver), mToken(aToken) + {} - static void NoteReceiver(nsIOffThreadScriptReceiver* aReceiver) - { - if (!sSetupClearOnShutdown) { - ClearOnShutdown(&sReceivers); - sSetupClearOnShutdown = true; - sReceivers = new nsTArray>(); - } + static void NoteReceiver(nsIOffThreadScriptReceiver* aReceiver) { + if (!sSetupClearOnShutdown) { + ClearOnShutdown(&sReceivers); + sSetupClearOnShutdown = true; + sReceivers = new nsTArray>(); + } - // If we ever crash here, it's because we tried to lazy compile script - // too late in shutdown. - sReceivers->AppendElement(aReceiver); + // If we ever crash here, it's because we tried to lazy compile script + // too late in shutdown. + sReceivers->AppendElement(aReceiver); } NS_DECL_NSIRUNNABLE diff --git a/dom/xul/templates/nsXULTemplateBuilder.cpp b/dom/xul/templates/nsXULTemplateBuilder.cpp index eb6c8b43797c..7d3317f41e41 100644 --- a/dom/xul/templates/nsXULTemplateBuilder.cpp +++ b/dom/xul/templates/nsXULTemplateBuilder.cpp @@ -1206,18 +1206,14 @@ nsXULTemplateBuilder::AttributeChanged(nsIDocument* aDocument, // case we may need to nuke and rebuild the entire content model // beneath the element. if (aAttribute == nsGkAtoms::ref) - nsContentUtils::AddScriptRunner( - NewRunnableMethod("nsXULTemplateBuilder::RunnableRebuild", - this, - &nsXULTemplateBuilder::RunnableRebuild)); + nsContentUtils::AddScriptRunner( + NewRunnableMethod(this, &nsXULTemplateBuilder::RunnableRebuild)); // Check for a change to the 'datasources' attribute. If so, setup // mDB by parsing the new value and rebuild. else if (aAttribute == nsGkAtoms::datasources) { - nsContentUtils::AddScriptRunner( - NewRunnableMethod("nsXULTemplateBuilder::RunnableLoadAndRebuild", - this, - &nsXULTemplateBuilder::RunnableLoadAndRebuild)); + nsContentUtils::AddScriptRunner( + NewRunnableMethod(this, &nsXULTemplateBuilder::RunnableLoadAndRebuild)); } } } @@ -1237,9 +1233,7 @@ nsXULTemplateBuilder::ContentRemoved(nsIDocument* aDocument, // Pass false to Uninit since content is going away anyway nsContentUtils::AddScriptRunner( - NewRunnableMethod("nsXULTemplateBuilder::UninitFalse", - this, - &nsXULTemplateBuilder::UninitFalse)); + NewRunnableMethod(this, &nsXULTemplateBuilder::UninitFalse)); MOZ_ASSERT(aDocument == mObservedDocument); StopObserving(); @@ -1278,9 +1272,7 @@ nsXULTemplateBuilder::NodeWillBeDestroyed(const nsINode* aNode) mCompDB = nullptr; nsContentUtils::AddScriptRunner( - NewRunnableMethod("nsXULTemplateBuilder::UninitTrue", - this, - &nsXULTemplateBuilder::UninitTrue)); + NewRunnableMethod(this, &nsXULTemplateBuilder::UninitTrue)); } diff --git a/editor/composer/nsEditingSession.cpp b/editor/composer/nsEditingSession.cpp index e00405a4a417..b95621b61d8a 100644 --- a/editor/composer/nsEditingSession.cpp +++ b/editor/composer/nsEditingSession.cpp @@ -974,12 +974,10 @@ nsEditingSession::EndDocumentLoad(nsIWebProgress *aWebProgress, NS_ENSURE_SUCCESS(rv, rv); mEditorStatus = eEditorCreationInProgress; - mLoadBlankDocTimer->InitWithNamedFuncCallback( - nsEditingSession::TimerCallback, - static_cast(mDocShell.get()), - 10, - nsITimer::TYPE_ONE_SHOT, - "nsEditingSession::EndDocumentLoad"); + mLoadBlankDocTimer->InitWithFuncCallback( + nsEditingSession::TimerCallback, + static_cast (mDocShell.get()), + 10, nsITimer::TYPE_ONE_SHOT); } } } diff --git a/editor/composer/nsEditorSpellCheck.cpp b/editor/composer/nsEditorSpellCheck.cpp index 26b81b7b0a94..afcf48c54ab6 100644 --- a/editor/composer/nsEditorSpellCheck.cpp +++ b/editor/composer/nsEditorSpellCheck.cpp @@ -301,10 +301,7 @@ class CallbackCaller final : public Runnable { public: explicit CallbackCaller(nsIEditorSpellCheckCallback* aCallback) - : mozilla::Runnable("CallbackCaller") - , mCallback(aCallback) - { - } + : mCallback(aCallback) {} ~CallbackCaller() { diff --git a/editor/libeditor/EditorBase.cpp b/editor/libeditor/EditorBase.cpp index f72d31ec2dd8..22a9f0ffdc65 100644 --- a/editor/libeditor/EditorBase.cpp +++ b/editor/libeditor/EditorBase.cpp @@ -1832,8 +1832,7 @@ public: EditorInputEventDispatcher(EditorBase* aEditorBase, nsIContent* aTarget, bool aIsComposing) - : Runnable("EditorInputEventDispatcher") - , mEditorBase(aEditorBase) + : mEditorBase(aEditorBase) , mTarget(aTarget) , mIsComposing(aIsComposing) { diff --git a/editor/libeditor/HTMLEditRules.cpp b/editor/libeditor/HTMLEditRules.cpp index f9617ff08b6c..84ba73db4cca 100644 --- a/editor/libeditor/HTMLEditRules.cpp +++ b/editor/libeditor/HTMLEditRules.cpp @@ -8955,9 +8955,7 @@ NS_IMETHODIMP HTMLEditRules::DocumentModified() { nsContentUtils::AddScriptRunner( - NewRunnableMethod("HTMLEditRules::DocumentModifiedWorker", - this, - &HTMLEditRules::DocumentModifiedWorker)); + NewRunnableMethod(this, &HTMLEditRules::DocumentModifiedWorker)); return NS_OK; } diff --git a/editor/libeditor/HTMLEditor.cpp b/editor/libeditor/HTMLEditor.cpp index 4576027d688b..c8692c0e1924 100644 --- a/editor/libeditor/HTMLEditor.cpp +++ b/editor/libeditor/HTMLEditor.cpp @@ -3257,10 +3257,8 @@ HTMLEditor::DoContentInserted(nsIDocument* aDocument, nsCOMPtr kungFuDeathGrip(this); if (ShouldReplaceRootElement()) { - nsContentUtils::AddScriptRunner( - NewRunnableMethod("HTMLEditor::ResetRootElementAndEventTarget", - this, - &HTMLEditor::ResetRootElementAndEventTarget)); + nsContentUtils::AddScriptRunner(NewRunnableMethod( + this, &HTMLEditor::ResetRootElementAndEventTarget)); } // We don't need to handle our own modifications else if (!mAction && (aContainer ? aContainer->IsEditable() : aDocument->IsEditable())) { @@ -3307,10 +3305,8 @@ HTMLEditor::ContentRemoved(nsIDocument* aDocument, nsCOMPtr kungFuDeathGrip(this); if (SameCOMIdentity(aChild, mRootElement)) { - nsContentUtils::AddScriptRunner( - NewRunnableMethod("HTMLEditor::ResetRootElementAndEventTarget", - this, - &HTMLEditor::ResetRootElementAndEventTarget)); + nsContentUtils::AddScriptRunner(NewRunnableMethod( + this, &HTMLEditor::ResetRootElementAndEventTarget)); } // We don't need to handle our own modifications else if (!mAction && (aContainer ? aContainer->IsEditable() : aDocument->IsEditable())) { diff --git a/extensions/auth/nsHttpNegotiateAuth.cpp b/extensions/auth/nsHttpNegotiateAuth.cpp index e1fd1af9ac83..1f7f241cade1 100644 --- a/extensions/auth/nsHttpNegotiateAuth.cpp +++ b/extensions/auth/nsHttpNegotiateAuth.cpp @@ -330,26 +330,26 @@ class GetNextTokenRunnable final : public mozilla::Runnable { ~GetNextTokenRunnable() override = default; public: - GetNextTokenRunnable(nsIHttpAuthenticableChannel* authChannel, - const char* challenge, - bool isProxyAuth, - const char16_t* domain, - const char16_t* username, - const char16_t* password, - nsISupports* sessionState, - nsISupports* continuationState, - GetNextTokenCompleteEvent* aCompleteEvent) - : mozilla::Runnable("GetNextTokenRunnable") - , mAuthChannel(authChannel) - , mChallenge(challenge) - , mIsProxyAuth(isProxyAuth) - , mDomain(domain) - , mUsername(username) - , mPassword(password) - , mSessionState(sessionState) - , mContinuationState(continuationState) - , mCompleteEvent(aCompleteEvent) - { + GetNextTokenRunnable(nsIHttpAuthenticableChannel *authChannel, + const char *challenge, + bool isProxyAuth, + const char16_t *domain, + const char16_t *username, + const char16_t *password, + nsISupports *sessionState, + nsISupports *continuationState, + GetNextTokenCompleteEvent *aCompleteEvent + ) + : mAuthChannel(authChannel) + , mChallenge(challenge) + , mIsProxyAuth(isProxyAuth) + , mDomain(domain) + , mUsername(username) + , mPassword(password) + , mSessionState(sessionState) + , mContinuationState(continuationState) + , mCompleteEvent(aCompleteEvent) + { } NS_IMETHODIMP Run() override diff --git a/extensions/spellcheck/src/mozPersonalDictionary.cpp b/extensions/spellcheck/src/mozPersonalDictionary.cpp index 0f3bff145e9a..19a0af4b0ab1 100644 --- a/extensions/spellcheck/src/mozPersonalDictionary.cpp +++ b/extensions/spellcheck/src/mozPersonalDictionary.cpp @@ -53,9 +53,7 @@ NS_INTERFACE_MAP_END class mozPersonalDictionaryLoader final : public mozilla::Runnable { public: - explicit mozPersonalDictionaryLoader(mozPersonalDictionary* dict) - : mozilla::Runnable("mozPersonalDictionaryLoader") - , mDict(dict) + explicit mozPersonalDictionaryLoader(mozPersonalDictionary *dict) : mDict(dict) { } @@ -78,13 +76,12 @@ private: class mozPersonalDictionarySave final : public mozilla::Runnable { public: - explicit mozPersonalDictionarySave(mozPersonalDictionary* aDict, + explicit mozPersonalDictionarySave(mozPersonalDictionary *aDict, nsCOMPtr aFile, - nsTArray&& aDictWords) - : mozilla::Runnable("mozPersonalDictionarySave") - , mDictWords(aDictWords) - , mFile(aFile) - , mDict(aDict) + nsTArray &&aDictWords) + : mDictWords(aDictWords), + mFile(aFile), + mDict(aDict) { } diff --git a/gfx/ipc/GPUChild.cpp b/gfx/ipc/GPUChild.cpp index f40cf163304b..4fdaa2ad220e 100644 --- a/gfx/ipc/GPUChild.cpp +++ b/gfx/ipc/GPUChild.cpp @@ -269,8 +269,7 @@ class DeferredDeleteGPUChild : public Runnable { public: explicit DeferredDeleteGPUChild(UniquePtr&& aChild) - : Runnable("gfx::DeferredDeleteGPUChild") - , mChild(Move(aChild)) + : mChild(Move(aChild)) { } diff --git a/gfx/ipc/GPUParent.cpp b/gfx/ipc/GPUParent.cpp index bb5713b03bf1..2bb0057e791f 100644 --- a/gfx/ipc/GPUParent.cpp +++ b/gfx/ipc/GPUParent.cpp @@ -127,10 +127,9 @@ void GPUParent::NotifyDeviceReset() { if (!NS_IsMainThread()) { - NS_DispatchToMainThread( - NS_NewRunnableFunction("gfx::GPUParent::NotifyDeviceReset", []() -> void { - GPUParent::GetSingleton()->NotifyDeviceReset(); - })); + NS_DispatchToMainThread(NS_NewRunnableFunction([] () -> void { + GPUParent::GetSingleton()->NotifyDeviceReset(); + })); return; } diff --git a/gfx/ipc/VsyncBridgeChild.cpp b/gfx/ipc/VsyncBridgeChild.cpp index a5bff3725301..a4be827ef9ac 100644 --- a/gfx/ipc/VsyncBridgeChild.cpp +++ b/gfx/ipc/VsyncBridgeChild.cpp @@ -29,10 +29,7 @@ VsyncBridgeChild::Create(RefPtr aThread, RefPtr child = new VsyncBridgeChild(aThread, aProcessToken); RefPtr task = NewRunnableMethod&&>( - "gfx::VsyncBridgeChild::Open", - child, - &VsyncBridgeChild::Open, - Move(aEndpoint)); + child, &VsyncBridgeChild::Open, Move(aEndpoint)); aThread->GetThread()->Dispatch(task.forget(), nsIThread::DISPATCH_NORMAL); return child; @@ -61,10 +58,9 @@ public: NotifyVsyncTask(RefPtr aVsyncBridge, TimeStamp aTimeStamp, const uint64_t& aLayersId) - : Runnable("gfx::NotifyVsyncTask") - , mVsyncBridge(aVsyncBridge) - , mTimeStamp(aTimeStamp) - , mLayersId(aLayersId) + : mVsyncBridge(aVsyncBridge), + mTimeStamp(aTimeStamp), + mLayersId(aLayersId) {} NS_IMETHOD Run() override { @@ -110,8 +106,7 @@ void VsyncBridgeChild::Close() { if (!IsOnVsyncIOThread()) { - mLoop->PostTask(NewRunnableMethod( - "gfx::VsyncBridgeChild::Close", this, &VsyncBridgeChild::Close)); + mLoop->PostTask(NewRunnableMethod(this, &VsyncBridgeChild::Close)); return; } diff --git a/gfx/ipc/VsyncBridgeParent.cpp b/gfx/ipc/VsyncBridgeParent.cpp index 995c461b477e..5b59f538a99e 100644 --- a/gfx/ipc/VsyncBridgeParent.cpp +++ b/gfx/ipc/VsyncBridgeParent.cpp @@ -15,10 +15,7 @@ VsyncBridgeParent::Start(Endpoint&& aEndpoint) RefPtr parent = new VsyncBridgeParent(); RefPtr task = NewRunnableMethod&&>( - "gfx::VsyncBridgeParent::Open", - parent, - &VsyncBridgeParent::Open, - Move(aEndpoint)); + parent, &VsyncBridgeParent::Open, Move(aEndpoint)); CompositorThreadHolder::Loop()->PostTask(task.forget()); return parent; @@ -59,9 +56,7 @@ VsyncBridgeParent::Shutdown() { MessageLoop* ccloop = CompositorThreadHolder::Loop(); if (MessageLoop::current() != ccloop) { - ccloop->PostTask(NewRunnableMethod("gfx::VsyncBridgeParent::ShutdownImpl", - this, - &VsyncBridgeParent::ShutdownImpl)); + ccloop->PostTask(NewRunnableMethod(this, &VsyncBridgeParent::ShutdownImpl)); return; } diff --git a/gfx/ipc/VsyncIOThreadHolder.cpp b/gfx/ipc/VsyncIOThreadHolder.cpp index 5c9df5efc998..8730b72131eb 100644 --- a/gfx/ipc/VsyncIOThreadHolder.cpp +++ b/gfx/ipc/VsyncIOThreadHolder.cpp @@ -25,8 +25,7 @@ VsyncIOThreadHolder::~VsyncIOThreadHolder() if (NS_IsMainThread()) { mThread->AsyncShutdown(); } else { - NS_DispatchToMainThread(NewRunnableMethod( - "nsIThread::AsyncShutdown", mThread, &nsIThread::AsyncShutdown)); + NS_DispatchToMainThread(NewRunnableMethod(mThread, &nsIThread::AsyncShutdown)); } } diff --git a/gfx/layers/AsyncCanvasRenderer.cpp b/gfx/layers/AsyncCanvasRenderer.cpp index 188b11cf713d..b1e37e752311 100644 --- a/gfx/layers/AsyncCanvasRenderer.cpp +++ b/gfx/layers/AsyncCanvasRenderer.cpp @@ -47,8 +47,7 @@ AsyncCanvasRenderer::NotifyElementAboutAttributesChanged() { public: explicit Runnable(AsyncCanvasRenderer* aRenderer) - : mozilla::Runnable("Runnable") - , mRenderer(aRenderer) + : mRenderer(aRenderer) {} NS_IMETHOD Run() override @@ -83,8 +82,7 @@ AsyncCanvasRenderer::NotifyElementAboutInvalidation() { public: explicit Runnable(AsyncCanvasRenderer* aRenderer) - : mozilla::Runnable("Runnable") - , mRenderer(aRenderer) + : mRenderer(aRenderer) {} NS_IMETHOD Run() override diff --git a/gfx/layers/ImageContainer.h b/gfx/layers/ImageContainer.h index 66d645051b60..3e01b01b7cc3 100644 --- a/gfx/layers/ImageContainer.h +++ b/gfx/layers/ImageContainer.h @@ -58,12 +58,7 @@ public: */ class SurfaceReleaser : public mozilla::Runnable { public: - explicit SurfaceReleaser(RawRef aRef) - : mozilla::Runnable( - "nsAutoRefTraits::SurfaceReleaser") - , mRef(aRef) - { - } + explicit SurfaceReleaser(RawRef aRef) : mRef(aRef) {} NS_IMETHOD Run() override { mRef->Release(); return NS_OK; @@ -101,12 +96,7 @@ public: */ class SurfaceReleaser : public mozilla::Runnable { public: - explicit SurfaceReleaser(RawRef aRef) - : mozilla::Runnable( - "nsAutoRefTraits::SurfaceReleaser") - , mRef(aRef) - { - } + explicit SurfaceReleaser(RawRef aRef) : mRef(aRef) {} NS_IMETHOD Run() override { mRef->Release(); return NS_OK; diff --git a/gfx/layers/LayerScope.cpp b/gfx/layers/LayerScope.cpp index 71dcc33fe0b5..d959b64eea9c 100644 --- a/gfx/layers/LayerScope.cpp +++ b/gfx/layers/LayerScope.cpp @@ -344,10 +344,9 @@ private: class CreateServerSocketRunnable : public Runnable { public: - explicit CreateServerSocketRunnable(LayerScopeManager* aLayerScopeManager) - : Runnable("layers::LayerScopeManager::CreateServerSocketRunnable") - , mLayerScopeManager(aLayerScopeManager) - { + explicit CreateServerSocketRunnable(LayerScopeManager *aLayerScopeManager) + : mLayerScopeManager(aLayerScopeManager) + { } NS_IMETHOD Run() override { mLayerScopeManager->mWebSocketManager = diff --git a/gfx/layers/apz/src/APZCTreeManager.cpp b/gfx/layers/apz/src/APZCTreeManager.cpp index 1fea90b789d8..10a99cccb7d3 100644 --- a/gfx/layers/apz/src/APZCTreeManager.cpp +++ b/gfx/layers/apz/src/APZCTreeManager.cpp @@ -176,10 +176,9 @@ APZCTreeManager::APZCTreeManager() mApzcTreeLog("apzctree") { RefPtr self(this); - NS_DispatchToMainThread( - NS_NewRunnableFunction("layers::APZCTreeManager::APZCTreeManager", [self] { - self->mFlushObserver = new CheckerboardFlushObserver(self); - })); + NS_DispatchToMainThread(NS_NewRunnableFunction([self] { + self->mFlushObserver = new CheckerboardFlushObserver(self); + })); AsyncPanZoomController::InitializeGlobalState(); mApzcTreeLog.ConditionOnPrefFunction(gfxPrefs::APZPrintTree); #if defined(MOZ_WIDGET_ANDROID) @@ -855,10 +854,8 @@ APZCTreeManager::FlushApzRepaints(uint64_t aLayersId) const LayerTreeState* state = CompositorBridgeParent::GetIndirectShadowTree(aLayersId); MOZ_ASSERT(state && state->mController); - state->mController->DispatchToRepaintThread( - NewRunnableMethod("layers::GeckoContentController::NotifyFlushComplete", - state->mController, - &GeckoContentController::NotifyFlushComplete)); + state->mController->DispatchToRepaintThread(NewRunnableMethod( + state->mController, &GeckoContentController::NotifyFlushComplete)); } nsEventStatus @@ -1583,8 +1580,7 @@ APZCTreeManager::ClearTree() // Ensure that no references to APZCs are alive in any lingering input // blocks. This breaks cycles from InputBlockState::mTargetApzc back to // the InputQueue. - APZThreadUtils::RunOnControllerThread(NewRunnableMethod( - "layers::InputQueue::Clear", mInputQueue, &InputQueue::Clear)); + APZThreadUtils::RunOnControllerThread(NewRunnableMethod(mInputQueue, &InputQueue::Clear)); MutexAutoLock lock(mTreeLock); @@ -1605,11 +1601,10 @@ APZCTreeManager::ClearTree() mRootNode = nullptr; RefPtr self(this); - NS_DispatchToMainThread( - NS_NewRunnableFunction("layers::APZCTreeManager::ClearTree", [self] { - self->mFlushObserver->Unregister(); - self->mFlushObserver = nullptr; - })); + NS_DispatchToMainThread(NS_NewRunnableFunction([self] { + self->mFlushObserver->Unregister(); + self->mFlushObserver = nullptr; + })); } RefPtr diff --git a/gfx/layers/apz/src/AndroidAPZ.cpp b/gfx/layers/apz/src/AndroidAPZ.cpp index 1b43962f4d65..da8b89a3e052 100644 --- a/gfx/layers/apz/src/AndroidAPZ.cpp +++ b/gfx/layers/apz/src/AndroidAPZ.cpp @@ -245,8 +245,7 @@ AndroidFlingAnimation::DeferHandleFlingOverscroll(ParentLayerPoint& aVelocity) mDeferredTasks.AppendElement( NewRunnableMethod, - RefPtr>("layers::AsyncPanZoomController::HandleFlingOverscroll", - &mApzc, + RefPtr>(&mApzc, &AsyncPanZoomController::HandleFlingOverscroll, aVelocity, mOverscrollHandoffChain, diff --git a/gfx/layers/apz/src/AndroidDynamicToolbarAnimator.cpp b/gfx/layers/apz/src/AndroidDynamicToolbarAnimator.cpp index 5c88e54e3fa3..08548f5980df 100644 --- a/gfx/layers/apz/src/AndroidDynamicToolbarAnimator.cpp +++ b/gfx/layers/apz/src/AndroidDynamicToolbarAnimator.cpp @@ -536,8 +536,7 @@ AndroidDynamicToolbarAnimator::GetToolbarEffect(CompositorOGL* gl) // Send notification that texture is ready after the current composition has completed. if (mCompositorToolbarTexture && mCompositorSendResponseForSnapshotUpdate) { mCompositorSendResponseForSnapshotUpdate = false; - CompositorThreadHolder::Loop()->PostTask(NewRunnableMethod("AndroidDynamicToolbarAnimator::PostToolbarReady", - this, &AndroidDynamicToolbarAnimator::PostToolbarReady)); + CompositorThreadHolder::Loop()->PostTask(NewRunnableMethod(this, &AndroidDynamicToolbarAnimator::PostToolbarReady)); } } @@ -747,8 +746,7 @@ void AndroidDynamicToolbarAnimator::UpdateCompositorToolbarHeight(ScreenIntCoord aHeight) { if (!CompositorThreadHolder::IsInCompositorThread()) { - CompositorThreadHolder::Loop()->PostTask(NewRunnableMethod("AndroidDynamicToolbarAnimator::UpdateCompositorToolbarHeight", - this, &AndroidDynamicToolbarAnimator::UpdateCompositorToolbarHeight, aHeight)); + CompositorThreadHolder::Loop()->PostTask(NewRunnableMethod(this, &AndroidDynamicToolbarAnimator::UpdateCompositorToolbarHeight, aHeight)); return; } @@ -760,8 +758,7 @@ void AndroidDynamicToolbarAnimator::UpdateControllerToolbarHeight(ScreenIntCoord aHeight, ScreenIntCoord aMaxHeight) { if (!APZThreadUtils::IsControllerThread()) { - APZThreadUtils::RunOnControllerThread(NewRunnableMethod("AndroidDynamicToolbarAnimator::UpdateControllerToolbarHeight", - this, &AndroidDynamicToolbarAnimator::UpdateControllerToolbarHeight, aHeight, aMaxHeight)); + APZThreadUtils::RunOnControllerThread(NewRunnableMethod(this, &AndroidDynamicToolbarAnimator::UpdateControllerToolbarHeight, aHeight, aMaxHeight)); return; } @@ -775,8 +772,7 @@ void AndroidDynamicToolbarAnimator::UpdateControllerSurfaceHeight(ScreenIntCoord aHeight) { if (!APZThreadUtils::IsControllerThread()) { - APZThreadUtils::RunOnControllerThread(NewRunnableMethod("AndroidDynamicToolbarAnimator::UpdateControllerSurfaceHeight", - this, &AndroidDynamicToolbarAnimator::UpdateControllerSurfaceHeight, aHeight)); + APZThreadUtils::RunOnControllerThread(NewRunnableMethod(this, &AndroidDynamicToolbarAnimator::UpdateControllerSurfaceHeight, aHeight)); return; } @@ -787,8 +783,7 @@ void AndroidDynamicToolbarAnimator::UpdateControllerCompositionHeight(ScreenIntCoord aHeight) { if (!APZThreadUtils::IsControllerThread()) { - APZThreadUtils::RunOnControllerThread(NewRunnableMethod("AndroidDynamicToolbarAnimator::UpdateControllerCompositionHeight", - this, &AndroidDynamicToolbarAnimator::UpdateControllerCompositionHeight, aHeight)); + APZThreadUtils::RunOnControllerThread(NewRunnableMethod(this, &AndroidDynamicToolbarAnimator::UpdateControllerCompositionHeight, aHeight)); return; } @@ -825,8 +820,7 @@ void AndroidDynamicToolbarAnimator::NotifyControllerPendingAnimation(int32_t aDirection, AnimationStyle aAnimationStyle) { if (!APZThreadUtils::IsControllerThread()) { - APZThreadUtils::RunOnControllerThread(NewRunnableMethod("AndroidDynamicToolbarAnimator::NotifyControllerPendingAnimation", - this, &AndroidDynamicToolbarAnimator::NotifyControllerPendingAnimation, aDirection, aAnimationStyle)); + APZThreadUtils::RunOnControllerThread(NewRunnableMethod(this, &AndroidDynamicToolbarAnimator::NotifyControllerPendingAnimation, aDirection, aAnimationStyle)); return; } @@ -853,7 +847,6 @@ AndroidDynamicToolbarAnimator::StartCompositorAnimation(int32_t aDirection, Anim if (!CompositorThreadHolder::IsInCompositorThread()) { mControllerState = eAnimationStartPending; CompositorThreadHolder::Loop()->PostTask(NewRunnableMethod( - "AndroidDynamicToolbarAnimator::StartCompositorAnimation", this, &AndroidDynamicToolbarAnimator::StartCompositorAnimation, aDirection, aAnimationStyle, aHeight, aWaitForPageResize)); return; } @@ -896,8 +889,7 @@ void AndroidDynamicToolbarAnimator::NotifyControllerAnimationStarted() { if (!APZThreadUtils::IsControllerThread()) { - APZThreadUtils::RunOnControllerThread(NewRunnableMethod("AndroidDynamicToolbarAnimator::NotifyControllerAnimationStarted", - this, &AndroidDynamicToolbarAnimator::NotifyControllerAnimationStarted)); + APZThreadUtils::RunOnControllerThread(NewRunnableMethod(this, &AndroidDynamicToolbarAnimator::NotifyControllerAnimationStarted)); return; } @@ -913,8 +905,7 @@ AndroidDynamicToolbarAnimator::StopCompositorAnimation() { if (!CompositorThreadHolder::IsInCompositorThread()) { mControllerState = eAnimationStopPending; - CompositorThreadHolder::Loop()->PostTask(NewRunnableMethod("AndroidDynamicToolbarAnimator::StopCompositorAnimation", - this, &AndroidDynamicToolbarAnimator::StopCompositorAnimation)); + CompositorThreadHolder::Loop()->PostTask(NewRunnableMethod(this, &AndroidDynamicToolbarAnimator::StopCompositorAnimation)); return; } @@ -940,8 +931,7 @@ void AndroidDynamicToolbarAnimator::NotifyControllerAnimationStopped(ScreenIntCoord aHeight) { if (!APZThreadUtils::IsControllerThread()) { - APZThreadUtils::RunOnControllerThread(NewRunnableMethod("AndroidDynamicToolbarAnimator::NotifyControllerAnimationStopped", - this, &AndroidDynamicToolbarAnimator::NotifyControllerAnimationStopped, aHeight)); + APZThreadUtils::RunOnControllerThread(NewRunnableMethod(this, &AndroidDynamicToolbarAnimator::NotifyControllerAnimationStopped, aHeight)); return; } @@ -956,8 +946,7 @@ void AndroidDynamicToolbarAnimator::RequestComposite() { if (!CompositorThreadHolder::IsInCompositorThread()) { - CompositorThreadHolder::Loop()->PostTask(NewRunnableMethod("AndroidDynamicToolbarAnimator::RequestComposite", - this, &AndroidDynamicToolbarAnimator::RequestComposite)); + CompositorThreadHolder::Loop()->PostTask(NewRunnableMethod(this, &AndroidDynamicToolbarAnimator::RequestComposite)); return; } @@ -1004,8 +993,7 @@ AndroidDynamicToolbarAnimator::UpdateFrameMetrics(ScreenPoint aScrollOffset, CSSRect aCssPageRect) { if (!APZThreadUtils::IsControllerThread()) { - APZThreadUtils::RunOnControllerThread(NewRunnableMethod("AndroidDynamicToolbarAnimator::UpdateFrameMetrics", - this, &AndroidDynamicToolbarAnimator::UpdateFrameMetrics, aScrollOffset, aScale, aCssPageRect)); + APZThreadUtils::RunOnControllerThread(NewRunnableMethod(this, &AndroidDynamicToolbarAnimator::UpdateFrameMetrics, aScrollOffset, aScale, aCssPageRect)); return; } @@ -1023,7 +1011,6 @@ AndroidDynamicToolbarAnimator::UpdateFrameMetrics(ScreenPoint aScrollOffset, RefPtr uiController = UiCompositorControllerParent::GetFromRootLayerTreeId(mRootLayerTreeId); MOZ_ASSERT(uiController); CompositorThreadHolder::Loop()->PostTask(NewRunnableMethod( - "UiCompositorControllerParent::SendRootFrameMetrics", uiController, &UiCompositorControllerParent::SendRootFrameMetrics, aScrollOffset, aScale, aCssPageRect)); } @@ -1099,8 +1086,7 @@ void AndroidDynamicToolbarAnimator::NotifyControllerSnapshotFailed() { if (!APZThreadUtils::IsControllerThread()) { - APZThreadUtils::RunOnControllerThread(NewRunnableMethod("AndroidDynamicToolbarAnimator::NotifyControllerSnapshotFailed", - this, &AndroidDynamicToolbarAnimator::NotifyControllerSnapshotFailed)); + APZThreadUtils::RunOnControllerThread(NewRunnableMethod(this, &AndroidDynamicToolbarAnimator::NotifyControllerSnapshotFailed)); return; } @@ -1147,8 +1133,7 @@ void AndroidDynamicToolbarAnimator::QueueMessage(int32_t aMessage) { if (!CompositorThreadHolder::IsInCompositorThread()) { - CompositorThreadHolder::Loop()->PostTask(NewRunnableMethod("AndroidDynamicToolbarAnimator::QueueMessage", - this, &AndroidDynamicToolbarAnimator::QueueMessage, aMessage)); + CompositorThreadHolder::Loop()->PostTask(NewRunnableMethod(this, &AndroidDynamicToolbarAnimator::QueueMessage, aMessage)); return; } diff --git a/gfx/layers/apz/src/AsyncPanZoomController.cpp b/gfx/layers/apz/src/AsyncPanZoomController.cpp index 33261aaccd8d..0c049d5bb2b0 100644 --- a/gfx/layers/apz/src/AsyncPanZoomController.cpp +++ b/gfx/layers/apz/src/AsyncPanZoomController.cpp @@ -636,11 +636,10 @@ public: // HandleSmoothScrollOverscroll() (which acquires the tree lock) would violate // the lock ordering. Instead we schedule HandleSmoothScrollOverscroll() to be // called after mMonitor is released. - mDeferredTasks.AppendElement(NewRunnableMethod( - "layers::AsyncPanZoomController::HandleSmoothScrollOverscroll", - &mApzc, - &AsyncPanZoomController::HandleSmoothScrollOverscroll, - velocity)); + mDeferredTasks.AppendElement( + NewRunnableMethod(&mApzc, + &AsyncPanZoomController::HandleSmoothScrollOverscroll, + velocity)); return false; } @@ -1384,11 +1383,8 @@ nsEventStatus AsyncPanZoomController::OnScale(const PinchGestureInput& aEvent) { if (RefPtr controller = GetGeckoContentController()) { mPinchPaintTimerSet = true; controller->PostDelayedTask( - NewRunnableMethod( - "layers::AsyncPanZoomController::" - "DoDelayedRequestContentRepaint", - this, - &AsyncPanZoomController::DoDelayedRequestContentRepaint), + NewRunnableMethod(this, + &AsyncPanZoomController::DoDelayedRequestContentRepaint), delay); } } @@ -2118,18 +2114,12 @@ nsEventStatus AsyncPanZoomController::GenerateSingleTap(TapType aType, // schedule the singletap message to run on the next spin of the event loop. // See bug 965381 for the issue this was causing. RefPtr runnable = - NewRunnableMethod("layers::GeckoContentController::HandleTap", - controller, - &GeckoContentController::HandleTap, - aType, - geckoScreenPoint, - aModifiers, - GetGuid(), - touch ? touch->GetBlockId() : 0); + NewRunnableMethod(controller, + &GeckoContentController::HandleTap, + aType, geckoScreenPoint, + aModifiers, GetGuid(), + touch ? touch->GetBlockId() : 0); controller->PostDelayedTask(runnable.forget(), 0); return nsEventStatus_eConsumeNoDefault; @@ -2976,11 +2966,7 @@ void AsyncPanZoomController::RequestContentRepaint(bool aUserAction) { // use the local variable to resolve the function overload. auto func = static_cast (&AsyncPanZoomController::RequestContentRepaint); - controller->DispatchToRepaintThread(NewRunnableMethod( - "layers::AsyncPanZoomController::RequestContentRepaint", - this, - func, - aUserAction)); + controller->DispatchToRepaintThread(NewRunnableMethod(this, func, aUserAction)); return; } @@ -3764,12 +3750,8 @@ void AsyncPanZoomController::ZoomToRect(CSSRect aRect, const uint32_t aFlags) { auto func = static_cast (&AsyncPanZoomController::RequestContentRepaint); controller->DispatchToRepaintThread( - NewRunnableMethod( - "layers::AsyncPanZoomController::ZoomToRect", - this, - func, - endZoomToMetrics, - velocity)); + NewRunnableMethod( + this, func, endZoomToMetrics, velocity)); } } } diff --git a/gfx/layers/apz/src/GenericFlingAnimation.h b/gfx/layers/apz/src/GenericFlingAnimation.h index a3c9b3454f59..930937c4551a 100644 --- a/gfx/layers/apz/src/GenericFlingAnimation.h +++ b/gfx/layers/apz/src/GenericFlingAnimation.h @@ -111,11 +111,10 @@ public: // while holding mMonitor, because otherwise, if the overscrolled APZC // is this one, then the SetState(NOTHING) in UpdateAnimation will // stomp on the SetState(SNAP_BACK) it does. - mDeferredTasks.AppendElement(NewRunnableMethod( - "layers::OverscrollHandoffChain::SnapBackOverscrolledApzc", - mOverscrollHandoffChain.get(), - &OverscrollHandoffChain::SnapBackOverscrolledApzc, - &mApzc)); + mDeferredTasks.AppendElement( + NewRunnableMethod(mOverscrollHandoffChain.get(), + &OverscrollHandoffChain::SnapBackOverscrolledApzc, + &mApzc)); return false; } @@ -165,15 +164,13 @@ public: // called after mMonitor is released. FLING_LOG("%p fling went into overscroll, handing off with velocity %s\n", &mApzc, Stringify(velocity).c_str()); mDeferredTasks.AppendElement( - NewRunnableMethod, - RefPtr>( - "layers::AsyncPanZoomController::HandleFlingOverscroll", - &mApzc, - &AsyncPanZoomController::HandleFlingOverscroll, - velocity, - mOverscrollHandoffChain, - mScrolledApzc)); + NewRunnableMethod, + RefPtr>(&mApzc, + &AsyncPanZoomController::HandleFlingOverscroll, + velocity, + mOverscrollHandoffChain, + mScrolledApzc)); // If there is a remaining velocity on this APZC, continue this fling // as well. (This fling and the handed-off fling will run concurrently.) diff --git a/gfx/layers/apz/src/GestureEventListener.cpp b/gfx/layers/apz/src/GestureEventListener.cpp index 4b162fbee2ce..b9efbb26e270 100644 --- a/gfx/layers/apz/src/GestureEventListener.cpp +++ b/gfx/layers/apz/src/GestureEventListener.cpp @@ -595,10 +595,8 @@ void GestureEventListener::CancelLongTapTimeoutTask() void GestureEventListener::CreateLongTapTimeoutTask() { - RefPtr task = NewCancelableRunnableMethod( - "layers::GestureEventListener::HandleInputTimeoutLongTap", - this, - &GestureEventListener::HandleInputTimeoutLongTap); + RefPtr task = + NewCancelableRunnableMethod(this, &GestureEventListener::HandleInputTimeoutLongTap); mLongTapTimeoutTask = task; mAsyncPanZoomController->PostDelayedTask( @@ -625,11 +623,10 @@ void GestureEventListener::CreateMaxTapTimeoutTask() TouchBlockState* block = mAsyncPanZoomController->GetInputQueue()->GetCurrentTouchBlock(); MOZ_ASSERT(block); - RefPtr task = NewCancelableRunnableMethod( - "layers::GestureEventListener::HandleInputTimeoutMaxTap", - this, - &GestureEventListener::HandleInputTimeoutMaxTap, - block->IsDuringFastFling()); + RefPtr task = + NewCancelableRunnableMethod(this, + &GestureEventListener::HandleInputTimeoutMaxTap, + block->IsDuringFastFling()); mMaxTapTimeoutTask = task; mAsyncPanZoomController->PostDelayedTask( diff --git a/gfx/layers/apz/src/InputQueue.cpp b/gfx/layers/apz/src/InputQueue.cpp index aead4f0bd771..8c9b222adefb 100644 --- a/gfx/layers/apz/src/InputQueue.cpp +++ b/gfx/layers/apz/src/InputQueue.cpp @@ -509,12 +509,10 @@ InputQueue::ScheduleMainThreadTimeout(const RefPtr& aTar CancelableBlockState* aBlock) { INPQ_LOG("scheduling main thread timeout for target %p\n", aTarget.get()); aBlock->StartContentResponseTimer(); - aTarget->PostDelayedTask( - NewRunnableMethod("layers::InputQueue::MainThreadTimeout", - this, - &InputQueue::MainThreadTimeout, - aBlock->GetBlockId()), - gfxPrefs::APZContentResponseTimeout()); + aTarget->PostDelayedTask(NewRunnableMethod(this, + &InputQueue::MainThreadTimeout, + aBlock->GetBlockId()), + gfxPrefs::APZContentResponseTimeout()); } CancelableBlockState* diff --git a/gfx/layers/apz/src/Overscroll.h b/gfx/layers/apz/src/Overscroll.h index d620db28f271..586f104cc227 100644 --- a/gfx/layers/apz/src/Overscroll.h +++ b/gfx/layers/apz/src/Overscroll.h @@ -48,10 +48,7 @@ public: // The scroll snapping is done in a deferred task, otherwise the state // change to NOTHING caused by the overscroll animation ending would // clobber a possible state change to SMOOTH_SCROLL in ScrollSnap(). - mDeferredTasks.AppendElement( - NewRunnableMethod("layers::AsyncPanZoomController::ScrollSnap", - &mApzc, - &AsyncPanZoomController::ScrollSnap)); + mDeferredTasks.AppendElement(NewRunnableMethod(&mApzc, &AsyncPanZoomController::ScrollSnap)); return false; } return true; diff --git a/gfx/layers/apz/util/ActiveElementManager.cpp b/gfx/layers/apz/util/ActiveElementManager.cpp index e7c3bc3afa8e..20d34aa2bb1a 100644 --- a/gfx/layers/apz/util/ActiveElementManager.cpp +++ b/gfx/layers/apz/util/ActiveElementManager.cpp @@ -95,11 +95,9 @@ ActiveElementManager::TriggerElementActivation() MOZ_ASSERT(mSetActiveTask == nullptr); RefPtr task = - NewCancelableRunnableMethod>( - "layers::ActiveElementManager::SetActiveTask", - this, - &ActiveElementManager::SetActiveTask, - mTarget); + NewCancelableRunnableMethod>(this, + &ActiveElementManager::SetActiveTask, + mTarget); mSetActiveTask = task; MessageLoop::current()->PostDelayedTask(task.forget(), sActivationDelayMs); AEM_LOG("Scheduling mSetActiveTask %p\n", mSetActiveTask); diff --git a/gfx/layers/apz/util/CheckerboardReportService.cpp b/gfx/layers/apz/util/CheckerboardReportService.cpp index a8c89152ef25..7e4a9d93e1d1 100644 --- a/gfx/layers/apz/util/CheckerboardReportService.cpp +++ b/gfx/layers/apz/util/CheckerboardReportService.cpp @@ -42,10 +42,9 @@ void CheckerboardEventStorage::Report(uint32_t aSeverity, const std::string& aLog) { if (!NS_IsMainThread()) { - RefPtr task = NS_NewRunnableFunction( - "layers::CheckerboardEventStorage::Report", [aSeverity, aLog]() -> void { - CheckerboardEventStorage::Report(aSeverity, aLog); - }); + RefPtr task = NS_NewRunnableFunction([aSeverity, aLog] () -> void { + CheckerboardEventStorage::Report(aSeverity, aLog); + }); NS_DispatchToMainThread(task.forget()); return; } diff --git a/gfx/layers/apz/util/ChromeProcessController.cpp b/gfx/layers/apz/util/ChromeProcessController.cpp index dc4a6ddbaaa8..22f597bc020b 100644 --- a/gfx/layers/apz/util/ChromeProcessController.cpp +++ b/gfx/layers/apz/util/ChromeProcessController.cpp @@ -36,10 +36,7 @@ ChromeProcessController::ChromeProcessController(nsIWidget* aWidget, MOZ_ASSERT(aAPZEventState); MOZ_ASSERT(aAPZCTreeManager); - mUILoop->PostTask( - NewRunnableMethod("layers::ChromeProcessController::InitializeRoot", - this, - &ChromeProcessController::InitializeRoot)); + mUILoop->PostTask(NewRunnableMethod(this, &ChromeProcessController::InitializeRoot)); } ChromeProcessController::~ChromeProcessController() {} @@ -85,10 +82,7 @@ void ChromeProcessController::Destroy() { if (MessageLoop::current() != mUILoop) { - mUILoop->PostTask( - NewRunnableMethod("layers::ChromeProcessController::Destroy", - this, - &ChromeProcessController::Destroy)); + mUILoop->PostTask(NewRunnableMethod(this, &ChromeProcessController::Destroy)); return; } @@ -170,19 +164,10 @@ ChromeProcessController::HandleTap(TapType aType, uint64_t aInputBlockId) { if (MessageLoop::current() != mUILoop) { - mUILoop->PostTask( - NewRunnableMethod("layers::ChromeProcessController::HandleTap", - this, - &ChromeProcessController::HandleTap, - aType, - aPoint, - aModifiers, - aGuid, - aInputBlockId)); + mUILoop->PostTask(NewRunnableMethod(this, + &ChromeProcessController::HandleTap, + aType, aPoint, aModifiers, aGuid, aInputBlockId)); return; } @@ -232,17 +217,13 @@ ChromeProcessController::NotifyPinchGesture(PinchGestureInput::PinchGestureType Modifiers aModifiers) { if (MessageLoop::current() != mUILoop) { - mUILoop->PostTask(NewRunnableMethod( - "layers::ChromeProcessController::NotifyPinchGesture", - this, - &ChromeProcessController::NotifyPinchGesture, - aType, - aGuid, - aSpanChange, - aModifiers)); + mUILoop->PostTask(NewRunnableMethod + (this, + &ChromeProcessController::NotifyPinchGesture, + aType, aGuid, aSpanChange, aModifiers)); return; } @@ -257,14 +238,11 @@ ChromeProcessController::NotifyAPZStateChange(const ScrollableLayerGuid& aGuid, int aArg) { if (MessageLoop::current() != mUILoop) { - mUILoop->PostTask( - NewRunnableMethod( - "layers::ChromeProcessController::NotifyAPZStateChange", - this, - &ChromeProcessController::NotifyAPZStateChange, - aGuid, - aChange, - aArg)); + mUILoop->PostTask(NewRunnableMethod + (this, &ChromeProcessController::NotifyAPZStateChange, + aGuid, aChange, aArg)); return; } @@ -279,12 +257,10 @@ void ChromeProcessController::NotifyMozMouseScrollEvent(const FrameMetrics::ViewID& aScrollId, const nsString& aEvent) { if (MessageLoop::current() != mUILoop) { - mUILoop->PostTask(NewRunnableMethod( - "layers::ChromeProcessController::NotifyMozMouseScrollEvent", - this, - &ChromeProcessController::NotifyMozMouseScrollEvent, - aScrollId, - aEvent)); + mUILoop->PostTask(NewRunnableMethod + (this, &ChromeProcessController::NotifyMozMouseScrollEvent, + aScrollId, aEvent)); return; } @@ -303,11 +279,9 @@ void ChromeProcessController::NotifyAsyncScrollbarDragRejected(const FrameMetrics::ViewID& aScrollId) { if (MessageLoop::current() != mUILoop) { - mUILoop->PostTask(NewRunnableMethod( - "layers::ChromeProcessController::NotifyAsyncScrollbarDragRejected", - this, - &ChromeProcessController::NotifyAsyncScrollbarDragRejected, - aScrollId)); + mUILoop->PostTask(NewRunnableMethod(this, + &ChromeProcessController::NotifyAsyncScrollbarDragRejected, + aScrollId)); return; } diff --git a/gfx/layers/basic/BasicCompositor.cpp b/gfx/layers/basic/BasicCompositor.cpp index 68003d99aa4a..71633c2c00a3 100644 --- a/gfx/layers/basic/BasicCompositor.cpp +++ b/gfx/layers/basic/BasicCompositor.cpp @@ -1027,9 +1027,9 @@ BasicCompositor::TryToEndRemoteDrawing(bool aForceToEnd) const uint32_t retryMs = 2; RefPtr self = this; - RefPtr runnable = - NS_NewRunnableFunction("layers::BasicCompositor::TryToEndRemoteDrawing", - [self]() { self->TryToEndRemoteDrawing(); }); + RefPtr runnable = NS_NewRunnableFunction([self]() { + self->TryToEndRemoteDrawing(); + }); MessageLoop::current()->PostDelayedTask(runnable.forget(), retryMs); return; } diff --git a/gfx/layers/client/CompositableClient.cpp b/gfx/layers/client/CompositableClient.cpp index cedcc176b6ee..785cd8d59067 100644 --- a/gfx/layers/client/CompositableClient.cpp +++ b/gfx/layers/client/CompositableClient.cpp @@ -194,8 +194,8 @@ CompositableClient::GetTextureClientRecycler() ReentrantMonitorAutoEnter mainThreadAutoMon(barrier); bool done = false; - RefPtr runnable = NS_NewRunnableFunction( - "layers::CompositableClient::GetTextureClientRecycler", [&]() { + RefPtr runnable = + NS_NewRunnableFunction([&]() { if (!mTextureClientRecycler) { mTextureClientRecycler = new layers::TextureClientRecycleAllocator(mForwarder); } diff --git a/gfx/layers/client/TextureClient.cpp b/gfx/layers/client/TextureClient.cpp index 666e3a033d11..0989c5a4633a 100644 --- a/gfx/layers/client/TextureClient.cpp +++ b/gfx/layers/client/TextureClient.cpp @@ -234,11 +234,9 @@ static void DestroyTextureData(TextureData* aTextureData, LayersIPCChannel* aAll if (aMainThreadOnly && !NS_IsMainThread()) { RefPtr allocatorRef = aAllocator; - NS_DispatchToMainThread(NS_NewRunnableFunction( - "layers::DestroyTextureData", - [aTextureData, allocatorRef, aDeallocate]() -> void { - DestroyTextureData(aTextureData, allocatorRef, aDeallocate, true); - })); + NS_DispatchToMainThread(NS_NewRunnableFunction([aTextureData, allocatorRef, aDeallocate]() -> void { + DestroyTextureData(aTextureData, allocatorRef, aDeallocate, true); + })); return; } diff --git a/gfx/layers/client/TextureClient.h b/gfx/layers/client/TextureClient.h index 68f8fb8483e6..edea3e076204 100644 --- a/gfx/layers/client/TextureClient.h +++ b/gfx/layers/client/TextureClient.h @@ -776,10 +776,8 @@ public: class TextureClientReleaseTask : public Runnable { public: - explicit TextureClientReleaseTask(TextureClient* aClient) - : Runnable("layers::TextureClientReleaseTask") - , mTextureClient(aClient) - { + explicit TextureClientReleaseTask(TextureClient* aClient) + : mTextureClient(aClient) { } NS_IMETHOD Run() override diff --git a/gfx/layers/client/TextureClientPool.cpp b/gfx/layers/client/TextureClientPool.cpp index 0f7aab8185e7..f7ccad92d02f 100644 --- a/gfx/layers/client/TextureClientPool.cpp +++ b/gfx/layers/client/TextureClientPool.cpp @@ -179,23 +179,15 @@ TextureClientPool::ResetTimers() if (mShrinkTimeoutMsec && mTextureClients.size() + mTextureClientsDeferred.size() > mPoolUnusedSize) { TCP_LOG("TexturePool %p scheduling a shrink-to-max-size\n", this); - mShrinkTimer->InitWithNamedFuncCallback( - ShrinkCallback, - this, - mShrinkTimeoutMsec, - nsITimer::TYPE_ONE_SHOT, - "layers::TextureClientPool::ResetTimers"); + mShrinkTimer->InitWithFuncCallback(ShrinkCallback, this, mShrinkTimeoutMsec, + nsITimer::TYPE_ONE_SHOT); } // Clear pool after a period of inactivity to reduce memory consumption if (mClearTimeoutMsec) { TCP_LOG("TexturePool %p scheduling a clear\n", this); - mClearTimer->InitWithNamedFuncCallback( - ClearCallback, - this, - mClearTimeoutMsec, - nsITimer::TYPE_ONE_SHOT, - "layers::TextureClientPool::ResetTimers"); + mClearTimer->InitWithFuncCallback(ClearCallback, this, mClearTimeoutMsec, + nsITimer::TYPE_ONE_SHOT); } } diff --git a/gfx/layers/d3d11/DeviceAttachmentsD3D11.cpp b/gfx/layers/d3d11/DeviceAttachmentsD3D11.cpp index 44199395914f..80f0e937f28d 100644 --- a/gfx/layers/d3d11/DeviceAttachmentsD3D11.cpp +++ b/gfx/layers/d3d11/DeviceAttachmentsD3D11.cpp @@ -247,8 +247,7 @@ DeviceAttachmentsD3D11::InitSyncObject() if (FAILED(hr) || !mSyncHandle) { gfxCriticalError() << "Failed to get SharedHandle for sync texture. Result: " << hexa(hr); - NS_DispatchToMainThread(NS_NewRunnableFunction("DeviceAttachmentsD3D11::InitSyncObject", - [] () -> void { + NS_DispatchToMainThread(NS_NewRunnableFunction([] () -> void { Accumulate(Telemetry::D3D11_SYNC_HANDLE_FAILURE, 1); })); return false; diff --git a/gfx/layers/ipc/APZCTreeManagerParent.cpp b/gfx/layers/ipc/APZCTreeManagerParent.cpp index 4ac60b740092..940cdf630f1d 100644 --- a/gfx/layers/ipc/APZCTreeManagerParent.cpp +++ b/gfx/layers/ipc/APZCTreeManagerParent.cpp @@ -165,12 +165,11 @@ APZCTreeManagerParent::RecvContentReceivedInputBlock( const uint64_t& aInputBlockId, const bool& aPreventDefault) { - APZThreadUtils::RunOnControllerThread(NewRunnableMethod( - "layers::IAPZCTreeManager::ContentReceivedInputBlock", - mTreeManager, - &IAPZCTreeManager::ContentReceivedInputBlock, - aInputBlockId, - aPreventDefault)); + APZThreadUtils::RunOnControllerThread( + NewRunnableMethod(mTreeManager, + &IAPZCTreeManager::ContentReceivedInputBlock, + aInputBlockId, + aPreventDefault)); return IPC_OK(); } @@ -187,14 +186,10 @@ APZCTreeManagerParent::RecvSetTargetAPZC( return IPC_FAIL_NO_REASON(this); } } - APZThreadUtils::RunOnControllerThread( - NewRunnableMethod>>( - "layers::IAPZCTreeManager::SetTargetAPZC", - mTreeManager, - &IAPZCTreeManager::SetTargetAPZC, - aInputBlockId, - aTargets)); + APZThreadUtils::RunOnControllerThread(NewRunnableMethod + >> + (mTreeManager, &IAPZCTreeManager::SetTargetAPZC, aInputBlockId, aTargets)); return IPC_OK(); } @@ -239,14 +234,12 @@ APZCTreeManagerParent::RecvSetAllowedTouchBehavior( const uint64_t& aInputBlockId, nsTArray&& aValues) { - APZThreadUtils::RunOnControllerThread( - NewRunnableMethod>>( - "layers::IAPZCTreeManager::SetAllowedTouchBehavior", - mTreeManager, - &IAPZCTreeManager::SetAllowedTouchBehavior, - aInputBlockId, - Move(aValues))); + APZThreadUtils::RunOnControllerThread(NewRunnableMethod + >> + (mTreeManager, + &IAPZCTreeManager::SetAllowedTouchBehavior, + aInputBlockId, Move(aValues))); return IPC_OK(); } @@ -262,13 +255,11 @@ APZCTreeManagerParent::RecvStartScrollbarDrag( return IPC_FAIL_NO_REASON(this); } - APZThreadUtils::RunOnControllerThread( - NewRunnableMethod( - "layers::IAPZCTreeManager::StartScrollbarDrag", - mTreeManager, - &IAPZCTreeManager::StartScrollbarDrag, - aGuid, - aDragMetrics)); + APZThreadUtils::RunOnControllerThread( + NewRunnableMethod( + mTreeManager, + &IAPZCTreeManager::StartScrollbarDrag, + aGuid, aDragMetrics)); return IPC_OK(); } diff --git a/gfx/layers/ipc/CompositorBridgeChild.cpp b/gfx/layers/ipc/CompositorBridgeChild.cpp index 59115d80665d..1f1dd9b72775 100644 --- a/gfx/layers/ipc/CompositorBridgeChild.cpp +++ b/gfx/layers/ipc/CompositorBridgeChild.cpp @@ -463,7 +463,6 @@ static void ScheduleSendAllPluginsCaptured(CompositorBridgeChild* aThis, MessageLoop* aLoop) { aLoop->PostTask(NewNonOwningRunnableMethod( - "CompositorBridgeChild::SendAllPluginsCaptured", aThis, &CompositorBridgeChild::SendAllPluginsCaptured)); } #endif diff --git a/gfx/layers/ipc/CompositorBridgeParent.cpp b/gfx/layers/ipc/CompositorBridgeParent.cpp index ef7e802574ee..4879c4455431 100644 --- a/gfx/layers/ipc/CompositorBridgeParent.cpp +++ b/gfx/layers/ipc/CompositorBridgeParent.cpp @@ -667,30 +667,21 @@ CompositorBridgeParent::ActorDestroy(ActorDestroyReason why) // We must keep the compositor parent alive untill the code handling message // reception is finished on this thread. mSelfRef = this; - MessageLoop::current()->PostTask( - NewRunnableMethod("layers::CompositorBridgeParent::DeferredDestroy", - this, - &CompositorBridgeParent::DeferredDestroy)); + MessageLoop::current()->PostTask(NewRunnableMethod(this, &CompositorBridgeParent::DeferredDestroy)); } void CompositorBridgeParent::ScheduleRenderOnCompositorThread() { MOZ_ASSERT(CompositorLoop()); - CompositorLoop()->PostTask( - NewRunnableMethod("layers::CompositorBridgeParent::ScheduleComposition", - this, - &CompositorBridgeParent::ScheduleComposition)); + CompositorLoop()->PostTask(NewRunnableMethod(this, &CompositorBridgeParent::ScheduleComposition)); } void CompositorBridgeParent::InvalidateOnCompositorThread() { MOZ_ASSERT(CompositorLoop()); - CompositorLoop()->PostTask( - NewRunnableMethod("layers::CompositorBridgeParent::Invalidate", - this, - &CompositorBridgeParent::Invalidate)); + CompositorLoop()->PostTask(NewRunnableMethod(this, &CompositorBridgeParent::Invalidate)); } void @@ -786,10 +777,7 @@ CompositorBridgeParent::SchedulePauseOnCompositorThread() MonitorAutoLock lock(mPauseCompositionMonitor); MOZ_ASSERT(CompositorLoop()); - CompositorLoop()->PostTask( - NewRunnableMethod("layers::CompositorBridgeParent::PauseComposition", - this, - &CompositorBridgeParent::PauseComposition)); + CompositorLoop()->PostTask(NewRunnableMethod(this, &CompositorBridgeParent::PauseComposition)); // Wait until the pause has actually been processed by the compositor thread lock.Wait(); @@ -801,10 +789,7 @@ CompositorBridgeParent::ScheduleResumeOnCompositorThread() MonitorAutoLock lock(mResumeCompositionMonitor); MOZ_ASSERT(CompositorLoop()); - CompositorLoop()->PostTask( - NewRunnableMethod("layers::CompositorBridgeParent::ResumeComposition", - this, - &CompositorBridgeParent::ResumeComposition)); + CompositorLoop()->PostTask(NewRunnableMethod(this, &CompositorBridgeParent::ResumeComposition)); // Wait until the resume has actually been processed by the compositor thread lock.Wait(); @@ -818,12 +803,10 @@ CompositorBridgeParent::ScheduleResumeOnCompositorThread(int width, int height) MonitorAutoLock lock(mResumeCompositionMonitor); MOZ_ASSERT(CompositorLoop()); - CompositorLoop()->PostTask(NewRunnableMethod( - "layers::CompositorBridgeParent::ResumeCompositionAndResize", - this, - &CompositorBridgeParent::ResumeCompositionAndResize, - width, - height)); + CompositorLoop()->PostTask(NewRunnableMethod + (this, + &CompositorBridgeParent::ResumeCompositionAndResize, + width, height)); // Wait until the resume has actually been processed by the compositor thread lock.Wait(); @@ -1199,10 +1182,8 @@ CompositorBridgeParent::ScheduleRotationOnCompositorThread(const TargetConfig& a if (mForceCompositionTask != nullptr) { mForceCompositionTask->Cancel(); } - RefPtr task = NewCancelableRunnableMethod( - "layers::CompositorBridgeParent::ForceComposition", - this, - &CompositorBridgeParent::ForceComposition); + RefPtr task = + NewCancelableRunnableMethod(this, &CompositorBridgeParent::ForceComposition); mForceCompositionTask = task; ScheduleTask(task.forget(), gfxPrefs::OrientationSyncMillis()); } @@ -1352,9 +1333,9 @@ CompositorBridgeParent::FlushApzRepaints(const uint64_t& aLayersId) layersId = mRootLayerTreeID; } RefPtr self = this; - APZThreadUtils::RunOnControllerThread(NS_NewRunnableFunction( - "layers::CompositorBridgeParent::FlushApzRepaints", - [=]() { self->mApzcTreeManager->FlushApzRepaints(layersId); })); + APZThreadUtils::RunOnControllerThread(NS_NewRunnableFunction([=] () { + self->mApzcTreeManager->FlushApzRepaints(layersId); + })); } void @@ -1378,14 +1359,9 @@ CompositorBridgeParent::SetConfirmedTargetAPZC(const uint64_t& aLayersId, void (APZCTreeManager::*setTargetApzcFunc) (uint64_t, const nsTArray&) = &APZCTreeManager::SetTargetAPZC; - RefPtr task = - NewRunnableMethod>>( - "layers::CompositorBridgeParent::SetConfirmedTargetAPZC", - mApzcTreeManager.get(), - setTargetApzcFunc, - aInputBlockId, - aTargets); + RefPtr task = NewRunnableMethod + >> + (mApzcTreeManager.get(), setTargetApzcFunc, aInputBlockId, aTargets); APZThreadUtils::RunOnControllerThread(task.forget()); } @@ -2181,10 +2157,7 @@ void CompositorBridgeParent::ScheduleShowAllPluginWindows() { MOZ_ASSERT(CompositorLoop()); - CompositorLoop()->PostTask( - NewRunnableMethod("layers::CompositorBridgeParent::ShowAllPluginWindows", - this, - &CompositorBridgeParent::ShowAllPluginWindows)); + CompositorLoop()->PostTask(NewRunnableMethod(this, &CompositorBridgeParent::ShowAllPluginWindows)); } void @@ -2199,10 +2172,7 @@ void CompositorBridgeParent::ScheduleHideAllPluginWindows() { MOZ_ASSERT(CompositorLoop()); - CompositorLoop()->PostTask( - NewRunnableMethod("layers::CompositorBridgeParent::HideAllPluginWindows", - this, - &CompositorBridgeParent::HideAllPluginWindows)); + CompositorLoop()->PostTask(NewRunnableMethod(this, &CompositorBridgeParent::HideAllPluginWindows)); } void diff --git a/gfx/layers/ipc/CompositorManagerParent.cpp b/gfx/layers/ipc/CompositorManagerParent.cpp index f95da86256e5..369839fe581d 100644 --- a/gfx/layers/ipc/CompositorManagerParent.cpp +++ b/gfx/layers/ipc/CompositorManagerParent.cpp @@ -57,7 +57,6 @@ CompositorManagerParent::Create(Endpoint&& aEndpoint) RefPtr bridge = new CompositorManagerParent(); RefPtr runnable = NewRunnableMethod&&>( - "CompositorManagerParent::Bind", bridge, &CompositorManagerParent::Bind, Move(aEndpoint)); diff --git a/gfx/layers/ipc/CompositorVsyncScheduler.cpp b/gfx/layers/ipc/CompositorVsyncScheduler.cpp index 829087efd1ee..40e913c2cc0f 100644 --- a/gfx/layers/ipc/CompositorVsyncScheduler.cpp +++ b/gfx/layers/ipc/CompositorVsyncScheduler.cpp @@ -122,11 +122,9 @@ CompositorVsyncScheduler::PostCompositeTask(TimeStamp aCompositeTimestamp) // can be called from the compositor or vsync thread MonitorAutoLock lock(mCurrentCompositeTaskMonitor); if (mCurrentCompositeTask == nullptr && CompositorThreadHolder::Loop()) { - RefPtr task = NewCancelableRunnableMethod( - "layers::CompositorVsyncScheduler::Composite", - this, - &CompositorVsyncScheduler::Composite, - aCompositeTimestamp); + RefPtr task = + NewCancelableRunnableMethod(this, &CompositorVsyncScheduler::Composite, + aCompositeTimestamp); mCurrentCompositeTask = task; ScheduleTask(task.forget(), 0); } @@ -183,10 +181,8 @@ CompositorVsyncScheduler::SetNeedsComposite() { if (!CompositorThreadHolder::IsInCompositorThread()) { MonitorAutoLock lock(mSetNeedsCompositeMonitor); - RefPtr task = NewCancelableRunnableMethod( - "layers::CompositorVsyncScheduler::SetNeedsComposite", - this, - &CompositorVsyncScheduler::SetNeedsComposite); + RefPtr task = + NewCancelableRunnableMethod(this, &CompositorVsyncScheduler::SetNeedsComposite); mSetNeedsCompositeTask = task; ScheduleTask(task.forget(), 0); return; diff --git a/gfx/layers/ipc/CrossProcessCompositorBridgeParent.cpp b/gfx/layers/ipc/CrossProcessCompositorBridgeParent.cpp index 81d200ab4a45..e5a870c020ab 100644 --- a/gfx/layers/ipc/CrossProcessCompositorBridgeParent.cpp +++ b/gfx/layers/ipc/CrossProcessCompositorBridgeParent.cpp @@ -58,10 +58,7 @@ CrossProcessCompositorBridgeParent::ActorDestroy(ActorDestroyReason aWhy) // We must keep this object alive untill the code handling message // reception is finished on this thread. - MessageLoop::current()->PostTask(NewRunnableMethod( - "layers::CrossProcessCompositorBridgeParent::DeferredDestroy", - this, - &CrossProcessCompositorBridgeParent::DeferredDestroy)); + MessageLoop::current()->PostTask(NewRunnableMethod(this, &CrossProcessCompositorBridgeParent::DeferredDestroy)); } PLayerTransactionParent* diff --git a/gfx/layers/ipc/ImageBridgeChild.cpp b/gfx/layers/ipc/ImageBridgeChild.cpp index 48c357899159..ade05fb76773 100644 --- a/gfx/layers/ipc/ImageBridgeChild.cpp +++ b/gfx/layers/ipc/ImageBridgeChild.cpp @@ -578,7 +578,6 @@ ImageBridgeChild::InitForContent(Endpoint&& aEndpoint, uint32 RefPtr child = new ImageBridgeChild(aNamespace); RefPtr runnable = NewRunnableMethod&&>( - "layers::ImageBridgeChild::Bind", child, &ImageBridgeChild::Bind, Move(aEndpoint)); @@ -734,10 +733,7 @@ ImageBridgeChild::InitWithGPUProcess(Endpoint&& aEndpoint, ui MessageLoop* loop = child->GetMessageLoop(); loop->PostTask(NewRunnableMethod&&>( - "layers::ImageBridgeChild::Bind", - child, - &ImageBridgeChild::Bind, - Move(aEndpoint))); + child, &ImageBridgeChild::Bind, Move(aEndpoint))); // Assign this after so other threads can't post messages before we connect to IPDL. { diff --git a/gfx/layers/ipc/ImageBridgeParent.cpp b/gfx/layers/ipc/ImageBridgeParent.cpp index 6553075d37ed..3dc62d69e967 100644 --- a/gfx/layers/ipc/ImageBridgeParent.cpp +++ b/gfx/layers/ipc/ImageBridgeParent.cpp @@ -106,10 +106,7 @@ ImageBridgeParent::CreateForGPUProcess(Endpoint&& aEndpoint) RefPtr parent = new ImageBridgeParent(loop, aEndpoint.OtherPid()); loop->PostTask(NewRunnableMethod&&>( - "layers::ImageBridgeParent::Bind", - parent, - &ImageBridgeParent::Bind, - Move(aEndpoint))); + parent, &ImageBridgeParent::Bind, Move(aEndpoint))); sImageBridgeParentSingleton = parent; return true; @@ -125,10 +122,7 @@ ImageBridgeParent::ActorDestroy(ActorDestroyReason aWhy) MonitorAutoLock lock(*sImageBridgesLock); sImageBridges.erase(OtherPid()); } - MessageLoop::current()->PostTask( - NewRunnableMethod("layers::ImageBridgeParent::DeferredDestroy", - this, - &ImageBridgeParent::DeferredDestroy)); + MessageLoop::current()->PostTask(NewRunnableMethod(this, &ImageBridgeParent::DeferredDestroy)); // It is very important that this method gets called at shutdown (be it a clean // or an abnormal shutdown), because DeferredDestroy is what clears mSelfRef. @@ -216,10 +210,7 @@ ImageBridgeParent::CreateForContent(Endpoint&& aEndpoint) RefPtr bridge = new ImageBridgeParent(loop, aEndpoint.OtherPid()); loop->PostTask(NewRunnableMethod&&>( - "layers::ImageBridgeParent::Bind", - bridge, - &ImageBridgeParent::Bind, - Move(aEndpoint))); + bridge, &ImageBridgeParent::Bind, Move(aEndpoint))); return true; } diff --git a/gfx/layers/ipc/RemoteContentController.cpp b/gfx/layers/ipc/RemoteContentController.cpp index d6d23df98c8e..dd7f7547b901 100644 --- a/gfx/layers/ipc/RemoteContentController.cpp +++ b/gfx/layers/ipc/RemoteContentController.cpp @@ -89,19 +89,8 @@ RemoteContentController::HandleTap(TapType aTapType, } else { // We don't want to get the TabParent or call TabParent::SendHandleTap() from a non-main thread (this might happen // on Android, where this is called from the Java UI thread) - NS_DispatchToMainThread(NewRunnableMethod( - "layers::RemoteContentController::HandleTapOnMainThread", - this, - &RemoteContentController::HandleTapOnMainThread, - aTapType, - aPoint, - aModifiers, - aGuid, - aInputBlockId)); + NS_DispatchToMainThread(NewRunnableMethod + (this, &RemoteContentController::HandleTapOnMainThread, aTapType, aPoint, aModifiers, aGuid, aInputBlockId)); } } @@ -170,14 +159,11 @@ RemoteContentController::NotifyAPZStateChange(const ScrollableLayerGuid& aGuid, { if (MessageLoop::current() != mCompositorThread) { // We have to send messages from the compositor thread - mCompositorThread->PostTask( - NewRunnableMethod( - "layers::RemoteContentController::NotifyAPZStateChange", - this, - &RemoteContentController::NotifyAPZStateChange, - aGuid, - aChange, - aArg)); + mCompositorThread->PostTask(NewRunnableMethod(this, + &RemoteContentController::NotifyAPZStateChange, + aGuid, aChange, aArg)); return; } @@ -190,13 +176,10 @@ void RemoteContentController::UpdateOverscrollVelocity(float aX, float aY, bool aIsRootContent) { if (MessageLoop::current() != mCompositorThread) { - mCompositorThread->PostTask(NewRunnableMethod( - "layers::RemoteContentController::UpdateOverscrollVelocity", - this, - &RemoteContentController::UpdateOverscrollVelocity, - aX, - aY, - aIsRootContent)); + mCompositorThread->PostTask(NewRunnableMethod(this, + &RemoteContentController::UpdateOverscrollVelocity, + aX, aY, aIsRootContent)); return; } if (mCanSend) { @@ -208,13 +191,10 @@ void RemoteContentController::UpdateOverscrollOffset(float aX, float aY, bool aIsRootContent) { if (MessageLoop::current() != mCompositorThread) { - mCompositorThread->PostTask(NewRunnableMethod( - "layers::RemoteContentController::UpdateOverscrollOffset", - this, - &RemoteContentController::UpdateOverscrollOffset, - aX, - aY, - aIsRootContent)); + mCompositorThread->PostTask(NewRunnableMethod(this, + &RemoteContentController::UpdateOverscrollOffset, + aX, aY, aIsRootContent)); return; } if (mCanSend) { @@ -228,13 +208,10 @@ RemoteContentController::NotifyMozMouseScrollEvent(const FrameMetrics::ViewID& a { if (MessageLoop::current() != mCompositorThread) { // We have to send messages from the compositor thread - mCompositorThread->PostTask( - NewRunnableMethod( - "layers::RemoteContentController::NotifyMozMouseScrollEvent", - this, - &RemoteContentController::NotifyMozMouseScrollEvent, - aScrollId, - aEvent)); + mCompositorThread->PostTask(NewRunnableMethod(this, + &RemoteContentController::NotifyMozMouseScrollEvent, + aScrollId, aEvent)); return; } @@ -258,11 +235,8 @@ RemoteContentController::NotifyAsyncScrollbarDragRejected(const FrameMetrics::Vi { if (MessageLoop::current() != mCompositorThread) { // We have to send messages from the compositor thread - mCompositorThread->PostTask(NewRunnableMethod( - "layers::RemoteContentController::NotifyAsyncScrollbarDragRejected", - this, - &RemoteContentController::NotifyAsyncScrollbarDragRejected, - aScrollId)); + mCompositorThread->PostTask(NewRunnableMethod(this, + &RemoteContentController::NotifyAsyncScrollbarDragRejected, aScrollId)); return; } diff --git a/gfx/layers/ipc/ShadowLayers.cpp b/gfx/layers/ipc/ShadowLayers.cpp index 6c59f4df4ef0..8ebf761cad2a 100644 --- a/gfx/layers/ipc/ShadowLayers.cpp +++ b/gfx/layers/ipc/ShadowLayers.cpp @@ -208,8 +208,7 @@ struct ReleaseOnMainThreadTask : public Runnable UniquePtr mObj; explicit ReleaseOnMainThreadTask(UniquePtr& aObj) - : Runnable("layers::ReleaseOnMainThreadTask") - , mObj(Move(aObj)) + : mObj(Move(aObj)) {} NS_IMETHOD Run() override { @@ -234,9 +233,7 @@ ShadowLayerForwarder::~ShadowLayerForwarder() nsIEventTarget::DISPATCH_NORMAL); } else { NS_DispatchToMainThread( - NewRunnableMethod("layers::LayerTransactionChild::Destroy", - mShadowManager, - &LayerTransactionChild::Destroy)); + NewRunnableMethod(mShadowManager, &LayerTransactionChild::Destroy)); } } } diff --git a/gfx/layers/ipc/ThreadSafeRefcountingWithMainThreadDestruction.h b/gfx/layers/ipc/ThreadSafeRefcountingWithMainThreadDestruction.h index e86702fccec5..e64705478e7e 100644 --- a/gfx/layers/ipc/ThreadSafeRefcountingWithMainThreadDestruction.h +++ b/gfx/layers/ipc/ThreadSafeRefcountingWithMainThreadDestruction.h @@ -42,11 +42,7 @@ template struct DeleteOnMainThreadTask : public Runnable { T* mToDelete; - explicit DeleteOnMainThreadTask(T* aToDelete) - : Runnable("layers::DeleteOnMainThreadTask") - , mToDelete(aToDelete) - { - } + explicit DeleteOnMainThreadTask(T* aToDelete) : mToDelete(aToDelete) {} NS_IMETHOD Run() override { MOZ_ASSERT(NS_IsMainThread()); mToDelete->DeleteToBeCalledOnMainThread(); diff --git a/gfx/layers/ipc/UiCompositorControllerChild.cpp b/gfx/layers/ipc/UiCompositorControllerChild.cpp index 47e16bf2f13e..60836734a089 100644 --- a/gfx/layers/ipc/UiCompositorControllerChild.cpp +++ b/gfx/layers/ipc/UiCompositorControllerChild.cpp @@ -48,11 +48,7 @@ UiCompositorControllerChild::CreateForSameProcess(const int64_t& aRootLayerTreeI { RefPtr child = new UiCompositorControllerChild(0); child->mParent = new UiCompositorControllerParent(aRootLayerTreeId); - GetUiThread()->Dispatch( - NewRunnableMethod("layers::UiCompositorControllerChild::OpenForSameProcess", - child, - &UiCompositorControllerChild::OpenForSameProcess), - nsIThread::DISPATCH_NORMAL); + GetUiThread()->Dispatch(NewRunnableMethod(child, &UiCompositorControllerChild::OpenForSameProcess), nsIThread::DISPATCH_NORMAL); return child; } @@ -62,12 +58,8 @@ UiCompositorControllerChild::CreateForGPUProcess(const uint64_t& aProcessToken, { RefPtr child = new UiCompositorControllerChild(aProcessToken); - RefPtr task = - NewRunnableMethod&&>( - "layers::UiCompositorControllerChild::OpenForGPUProcess", - child, - &UiCompositorControllerChild::OpenForGPUProcess, - Move(aEndpoint)); + RefPtr task = NewRunnableMethod&&>( + child, &UiCompositorControllerChild::OpenForGPUProcess, Move(aEndpoint)); GetUiThread()->Dispatch(task.forget(), nsIThread::DISPATCH_NORMAL); return child; @@ -194,11 +186,7 @@ void UiCompositorControllerChild::Destroy() { if (!IsOnUiThread()) { - GetUiThread()->Dispatch( - NewRunnableMethod("layers::UiCompositorControllerChild::Destroy", - this, - &UiCompositorControllerChild::Destroy), - nsIThread::DISPATCH_NORMAL); + GetUiThread()->Dispatch(NewRunnableMethod(this, &UiCompositorControllerChild::Destroy), nsIThread::DISPATCH_NORMAL); return; } diff --git a/gfx/layers/ipc/UiCompositorControllerParent.cpp b/gfx/layers/ipc/UiCompositorControllerParent.cpp index a316f79cef28..34da062950ee 100644 --- a/gfx/layers/ipc/UiCompositorControllerParent.cpp +++ b/gfx/layers/ipc/UiCompositorControllerParent.cpp @@ -34,12 +34,8 @@ UiCompositorControllerParent::Start(const uint64_t& aRootLayerTreeId, Endpoint

parent = new UiCompositorControllerParent(aRootLayerTreeId); - RefPtr task = - NewRunnableMethod&&>( - "layers::UiCompositorControllerParent::Open", - parent, - &UiCompositorControllerParent::Open, - Move(aEndpoint)); + RefPtr task = NewRunnableMethod&&>( + parent, &UiCompositorControllerParent::Open, Move(aEndpoint)); CompositorThreadHolder::Loop()->PostTask(task.forget()); return parent; @@ -213,12 +209,7 @@ UiCompositorControllerParent::ToolbarAnimatorMessageFromCompositor(int32_t aMess { // This function can be call from ether compositor or controller thread. if (!CompositorThreadHolder::IsInCompositorThread()) { - CompositorThreadHolder::Loop()->PostTask(NewRunnableMethod( - "layers::UiCompositorControllerParent::" - "ToolbarAnimatorMessageFromCompositor", - this, - &UiCompositorControllerParent::ToolbarAnimatorMessageFromCompositor, - aMessage)); + CompositorThreadHolder::Loop()->PostTask(NewRunnableMethod(this, &UiCompositorControllerParent::ToolbarAnimatorMessageFromCompositor, aMessage)); return; } @@ -250,10 +241,7 @@ UiCompositorControllerParent::InitializeForSameProcess() // This function is called by UiCompositorControllerChild in the main thread. // So dispatch to the compositor thread to Initialize. if (!CompositorThreadHolder::IsInCompositorThread()) { - CompositorThreadHolder::Loop()->PostTask(NewRunnableMethod( - "layers::UiCompositorControllerParent::InitializeForSameProcess", - this, - &UiCompositorControllerParent::InitializeForSameProcess)); + CompositorThreadHolder::Loop()->PostTask(NewRunnableMethod(this, &UiCompositorControllerParent::InitializeForSameProcess)); return; } diff --git a/gfx/src/gfxCrashReporterUtils.cpp b/gfx/src/gfxCrashReporterUtils.cpp index 085420a091d9..20215963c868 100644 --- a/gfx/src/gfxCrashReporterUtils.cpp +++ b/gfx/src/gfxCrashReporterUtils.cpp @@ -68,7 +68,6 @@ ObserverToDestroyFeaturesAlreadyReported::Observe(nsISupports* aSubject, class RegisterObserverRunnable : public Runnable { public: - RegisterObserverRunnable() : Runnable("RegisterObserverRunnable") {} NS_IMETHOD Run() override { // LeakLog made me do this. Basically, I just wanted gFeaturesAlreadyReported to be a static nsTArray, // and LeakLog was complaining about leaks like this: @@ -88,8 +87,7 @@ public: class AppendAppNotesRunnable : public CancelableRunnable { public: explicit AppendAppNotesRunnable(const nsACString& aFeatureStr) - : CancelableRunnable("AppendAppNotesRunnable") - , mFeatureString(aFeatureStr) + : mFeatureString(aFeatureStr) { } diff --git a/gfx/thebes/DeviceManagerDx.cpp b/gfx/thebes/DeviceManagerDx.cpp index 9077d285219f..dc05a4ef76cc 100644 --- a/gfx/thebes/DeviceManagerDx.cpp +++ b/gfx/thebes/DeviceManagerDx.cpp @@ -976,8 +976,7 @@ DeviceManagerDx::PreloadAttachmentsOnCompositorThread() return; } - RefPtr task = NS_NewRunnableFunction("DeviceManagerDx::PreloadAttachmentsOnCompositorThread", - []() -> void { + RefPtr task = NS_NewRunnableFunction([]() -> void { if (DeviceManagerDx* dm = DeviceManagerDx::Get()) { RefPtr device; RefPtr attachments; diff --git a/gfx/thebes/SoftwareVsyncSource.cpp b/gfx/thebes/SoftwareVsyncSource.cpp index 5776270a85fa..7e92b89ec462 100644 --- a/gfx/thebes/SoftwareVsyncSource.cpp +++ b/gfx/thebes/SoftwareVsyncSource.cpp @@ -46,8 +46,8 @@ SoftwareDisplay::EnableVsync() } mVsyncEnabled = true; - mVsyncThread->message_loop()->PostTask(NewRunnableMethod( - "SoftwareDisplay::EnableVsync", this, &SoftwareDisplay::EnableVsync)); + mVsyncThread->message_loop()->PostTask( + NewRunnableMethod(this, &SoftwareDisplay::EnableVsync)); return; } @@ -65,8 +65,8 @@ SoftwareDisplay::DisableVsync() } mVsyncEnabled = false; - mVsyncThread->message_loop()->PostTask(NewRunnableMethod( - "SoftwareDisplay::DisableVsync", this, &SoftwareDisplay::DisableVsync)); + mVsyncThread->message_loop()->PostTask( + NewRunnableMethod(this, &SoftwareDisplay::DisableVsync)); return; } @@ -129,11 +129,10 @@ SoftwareDisplay::ScheduleNextVsync(mozilla::TimeStamp aVsyncTimestamp) nextVsync = mozilla::TimeStamp::Now(); } - mCurrentVsyncTask = NewCancelableRunnableMethod( - "SoftwareDisplay::NotifyVsync", - this, - &SoftwareDisplay::NotifyVsync, - nextVsync); + mCurrentVsyncTask = + NewCancelableRunnableMethod(this, + &SoftwareDisplay::NotifyVsync, + nextVsync); RefPtr addrefedTask = mCurrentVsyncTask; mVsyncThread->message_loop()->PostDelayedTask( diff --git a/gfx/thebes/gfxFcPlatformFontList.cpp b/gfx/thebes/gfxFcPlatformFontList.cpp index a01c4928598a..9d4298dd3249 100644 --- a/gfx/thebes/gfxFcPlatformFontList.cpp +++ b/gfx/thebes/gfxFcPlatformFontList.cpp @@ -1181,12 +1181,10 @@ gfxFcPlatformFontList::gfxFcPlatformFontList() mLastConfig = FcConfigGetCurrent(); mCheckFontUpdatesTimer = do_CreateInstance("@mozilla.org/timer;1"); if (mCheckFontUpdatesTimer) { - mCheckFontUpdatesTimer->InitWithNamedFuncCallback( - CheckFontUpdates, - this, - (rescanInterval + 1) * 1000, - nsITimer::TYPE_REPEATING_SLACK, - "gfxFcPlatformFontList::gfxFcPlatformFontList"); + mCheckFontUpdatesTimer-> + InitWithFuncCallback(CheckFontUpdates, this, + (rescanInterval + 1) * 1000, + nsITimer::TYPE_REPEATING_SLACK); } else { NS_WARNING("Failure to create font updates timer"); } diff --git a/gfx/thebes/gfxFont.cpp b/gfx/thebes/gfxFont.cpp index 0863584d8c5d..5aaba73517ee 100644 --- a/gfx/thebes/gfxFont.cpp +++ b/gfx/thebes/gfxFont.cpp @@ -189,12 +189,10 @@ gfxFontCache::gfxFontCache(nsIEventTarget* aEventTarget) if (XRE_IsContentProcess() && NS_IsMainThread()) { mWordCacheExpirationTimer->SetTarget(aEventTarget); } - mWordCacheExpirationTimer->InitWithNamedFuncCallback( - WordCacheExpirationTimerCallback, - this, - SHAPED_WORD_TIMEOUT_SECONDS * 1000, - nsITimer::TYPE_REPEATING_SLACK, - "gfxFontCache::gfxFontCache"); + mWordCacheExpirationTimer-> + InitWithFuncCallback(WordCacheExpirationTimerCallback, this, + SHAPED_WORD_TIMEOUT_SECONDS * 1000, + nsITimer::TYPE_REPEATING_SLACK); } #endif } diff --git a/gfx/thebes/gfxFontInfoLoader.cpp b/gfx/thebes/gfxFontInfoLoader.cpp index 47efd180f998..a53c96369b3d 100644 --- a/gfx/thebes/gfxFontInfoLoader.cpp +++ b/gfx/thebes/gfxFontInfoLoader.cpp @@ -44,9 +44,8 @@ class FontInfoLoadCompleteEvent : public Runnable { NS_DECL_ISUPPORTS_INHERITED - explicit FontInfoLoadCompleteEvent(FontInfoData* aFontInfo) - : mozilla::Runnable("FontInfoLoadCompleteEvent") - , mFontInfo(aFontInfo) + explicit FontInfoLoadCompleteEvent(FontInfoData *aFontInfo) : + mFontInfo(aFontInfo) {} NS_IMETHOD Run() override; @@ -59,9 +58,8 @@ class AsyncFontInfoLoader : public Runnable { NS_DECL_ISUPPORTS_INHERITED - explicit AsyncFontInfoLoader(FontInfoData* aFontInfo) - : mozilla::Runnable("AsyncFontInfoLoader") - , mFontInfo(aFontInfo) + explicit AsyncFontInfoLoader(FontInfoData *aFontInfo) : + mFontInfo(aFontInfo) { mCompleteEvent = new FontInfoLoadCompleteEvent(aFontInfo); } @@ -77,11 +75,7 @@ class ShutdownThreadEvent : public Runnable { NS_DECL_ISUPPORTS_INHERITED - explicit ShutdownThreadEvent(nsIThread* aThread) - : mozilla::Runnable("ShutdownThreadEvent") - , mThread(aThread) - { - } + explicit ShutdownThreadEvent(nsIThread* aThread) : mThread(aThread) {} NS_IMETHOD Run() override { mThread->Shutdown(); return NS_OK; @@ -164,11 +158,8 @@ gfxFontInfoLoader::StartLoader(uint32_t aDelay, uint32_t aInterval) // delay? ==> start async thread after a delay if (aDelay) { mState = stateTimerOnDelay; - mTimer->InitWithNamedFuncCallback(DelayedStartCallback, - this, - aDelay, - nsITimer::TYPE_ONE_SHOT, - "gfxFontInfoLoader::StartLoader"); + mTimer->InitWithFuncCallback(DelayedStartCallback, this, aDelay, + nsITimer::TYPE_ONE_SHOT); return; } @@ -218,11 +209,8 @@ gfxFontInfoLoader::FinalizeLoader(FontInfoData *aFontInfo) // not all work completed ==> run load on interval mState = stateTimerOnInterval; - mTimer->InitWithNamedFuncCallback(LoadFontInfoCallback, - this, - mInterval, - nsITimer::TYPE_REPEATING_SLACK, - "gfxFontInfoLoader::FinalizeLoader"); + mTimer->InitWithFuncCallback(LoadFontInfoCallback, this, mInterval, + nsITimer::TYPE_REPEATING_SLACK); } void diff --git a/gfx/thebes/gfxPlatform.cpp b/gfx/thebes/gfxPlatform.cpp index 9b1708170b05..9fae40928bff 100644 --- a/gfx/thebes/gfxPlatform.cpp +++ b/gfx/thebes/gfxPlatform.cpp @@ -309,11 +309,7 @@ class LogForwarderEvent : public Runnable NS_DECL_ISUPPORTS_INHERITED - explicit LogForwarderEvent(const nsCString& aMessage) - : mozilla::Runnable("LogForwarderEvent") - , mMessage(aMessage) - { - } + explicit LogForwarderEvent(const nsCString& aMessage) : mMessage(aMessage) {} NS_IMETHOD Run() override { MOZ_ASSERT(NS_IsMainThread() && (XRE_IsContentProcess() || XRE_IsGPUProcess())); @@ -367,11 +363,7 @@ class CrashTelemetryEvent : public Runnable NS_DECL_ISUPPORTS_INHERITED - explicit CrashTelemetryEvent(uint32_t aReason) - : mozilla::Runnable("CrashTelemetryEvent") - , mReason(aReason) - { - } + explicit CrashTelemetryEvent(uint32_t aReason) : mReason(aReason) {} NS_IMETHOD Run() override { MOZ_ASSERT(NS_IsMainThread()); @@ -2704,12 +2696,11 @@ gfxPlatform::NotifyCompositorCreated(LayersBackend aBackend) mCompositorBackend = aBackend; // Notify that we created a compositor, so telemetry can update. - NS_DispatchToMainThread( - NS_NewRunnableFunction("gfxPlatform::NotifyCompositorCreated", [] { - if (nsCOMPtr obsvc = services::GetObserverService()) { - obsvc->NotifyObservers(nullptr, "compositor:created", nullptr); - } - })); + NS_DispatchToMainThread(NS_NewRunnableFunction([] { + if (nsCOMPtr obsvc = services::GetObserverService()) { + obsvc->NotifyObservers(nullptr, "compositor:created", nullptr); + } + })); } /* static */ void diff --git a/gfx/thebes/gfxPlatformGtk.cpp b/gfx/thebes/gfxPlatformGtk.cpp index 6aa208d827fa..efa5ac154989 100644 --- a/gfx/thebes/gfxPlatformGtk.cpp +++ b/gfx/thebes/gfxPlatformGtk.cpp @@ -652,10 +652,7 @@ public: if (!mVsyncThread.Start()) return false; - RefPtr vsyncSetup = - NewRunnableMethod("GLXVsyncSource::GLXDisplay::SetupGLContext", - this, - &GLXDisplay::SetupGLContext); + RefPtr vsyncSetup = NewRunnableMethod(this, &GLXDisplay::SetupGLContext); mVsyncThread.message_loop()->PostTask(vsyncSetup.forget()); // Wait until the setup has completed. lock.Wait(); @@ -727,8 +724,7 @@ public: // If the task has not nulled itself out, it hasn't yet realized // that vsync was disabled earlier, so continue its execution. if (!mVsyncTask) { - mVsyncTask = NewRunnableMethod( - "GLXVsyncSource::GLXDisplay::RunVsync", this, &GLXDisplay::RunVsync); + mVsyncTask = NewRunnableMethod(this, &GLXDisplay::RunVsync); RefPtr addrefedTask = mVsyncTask; mVsyncThread.message_loop()->PostTask(addrefedTask.forget()); } @@ -752,8 +748,7 @@ public: DisableVsync(); // Cleanup thread-specific resources before shutting down. - RefPtr shutdownTask = NewRunnableMethod( - "GLXVsyncSource::GLXDisplay::Cleanup", this, &GLXDisplay::Cleanup); + RefPtr shutdownTask = NewRunnableMethod(this, &GLXDisplay::Cleanup); mVsyncThread.message_loop()->PostTask(shutdownTask.forget()); // Stop, waiting for the cleanup task to finish execution. diff --git a/gfx/thebes/gfxWindowsPlatform.cpp b/gfx/thebes/gfxWindowsPlatform.cpp index 2379dd6ee45c..90b2f6240c56 100755 --- a/gfx/thebes/gfxWindowsPlatform.cpp +++ b/gfx/thebes/gfxWindowsPlatform.cpp @@ -1684,8 +1684,7 @@ public: } mVsyncThread->message_loop()->PostTask( - NewRunnableMethod("D3DVsyncDisplay::VBlankLoop", - this, &D3DVsyncDisplay::VBlankLoop)); + NewRunnableMethod(this, &D3DVsyncDisplay::VBlankLoop)); } virtual void DisableVsync() override @@ -1723,8 +1722,7 @@ public: } mVsyncThread->message_loop()->PostDelayedTask( - NewRunnableMethod("D3DVsyncDisplay::VBlankLoop", - this, &D3DVsyncDisplay::VBlankLoop), + NewRunnableMethod(this, &D3DVsyncDisplay::VBlankLoop), delay.ToMilliseconds()); } diff --git a/gfx/vr/gfxVROculus.cpp b/gfx/vr/gfxVROculus.cpp index 91788a901366..a58151504313 100644 --- a/gfx/vr/gfxVROculus.cpp +++ b/gfx/vr/gfxVROculus.cpp @@ -996,10 +996,9 @@ VRControllerOculus::UpdateVibrateHaptic(ovrSession aSession, MOZ_ASSERT(mVibrateThread); RefPtr runnable = - NewRunnableMethod( - "VRControllerOculus::UpdateVibrateHaptic", - this, &VRControllerOculus::UpdateVibrateHaptic, aSession, - aHapticIndex, aIntensity, (duration > kVibrateRate) ? remainingTime : 0, aVibrateIndex, aPromiseID); + NewRunnableMethod + (this, &VRControllerOculus::UpdateVibrateHaptic, aSession, + aHapticIndex, aIntensity, (duration > kVibrateRate) ? remainingTime : 0, aVibrateIndex, aPromiseID); NS_DelayedDispatchToCurrentThread(runnable.forget(), (duration > kVibrateRate) ? kVibrateRate : remainingTime); } else { @@ -1036,9 +1035,8 @@ VRControllerOculus::VibrateHapticComplete(ovrSession aSession, uint32_t aPromise VRManager *vm = VRManager::Get(); MOZ_ASSERT(vm); - CompositorThreadHolder::Loop()->PostTask(NewRunnableMethod( - "VRManager::NotifyVibrateHapticCompleted", - vm, &VRManager::NotifyVibrateHapticCompleted, aPromiseID)); + CompositorThreadHolder::Loop()->PostTask(NewRunnableMethod + (vm, &VRManager::NotifyVibrateHapticCompleted, aPromiseID)); } void @@ -1062,8 +1060,7 @@ VRControllerOculus::VibrateHaptic(ovrSession aSession, RefPtr runnable = NewRunnableMethod - ("VRControllerOculus::UpdateVibrateHaptic", - this, &VRControllerOculus::UpdateVibrateHaptic, aSession, + (this, &VRControllerOculus::UpdateVibrateHaptic, aSession, aHapticIndex, aIntensity, aDuration, mVibrateIndex, aPromiseID); mVibrateThread->Dispatch(runnable.forget(), NS_DISPATCH_NORMAL); } diff --git a/gfx/vr/gfxVROpenVR.cpp b/gfx/vr/gfxVROpenVR.cpp index cd1ab0ffe7d7..e43294f2c3d0 100644 --- a/gfx/vr/gfxVROpenVR.cpp +++ b/gfx/vr/gfxVROpenVR.cpp @@ -454,8 +454,7 @@ VRControllerOpenVR::UpdateVibrateHaptic(::vr::IVRSystem* aVRSystem, RefPtr runnable = NewRunnableMethod<::vr::IVRSystem*, uint32_t, double, double, uint64_t, uint32_t> - ("VRControllerOpenVR::UpdateVibrateHaptic", - this, &VRControllerOpenVR::UpdateVibrateHaptic, aVRSystem, + (this, &VRControllerOpenVR::UpdateVibrateHaptic, aVRSystem, aHapticIndex, aIntensity, duration - kVibrateRate, aVibrateIndex, aPromiseID); NS_DelayedDispatchToCurrentThread(runnable.forget(), kVibrateRate); } else { @@ -471,8 +470,7 @@ VRControllerOpenVR::VibrateHapticComplete(uint32_t aPromiseID) MOZ_ASSERT(vm); CompositorThreadHolder::Loop()->PostTask(NewRunnableMethod - ("VRManager::NotifyVibrateHapticCompleted", - vm, &VRManager::NotifyVibrateHapticCompleted, aPromiseID)); + (vm, &VRManager::NotifyVibrateHapticCompleted, aPromiseID)); } void @@ -496,8 +494,7 @@ VRControllerOpenVR::VibrateHaptic(::vr::IVRSystem* aVRSystem, RefPtr runnable = NewRunnableMethod<::vr::IVRSystem*, uint32_t, double, double, uint64_t, uint32_t> - ("VRControllerOpenVR::UpdateVibrateHaptic", - this, &VRControllerOpenVR::UpdateVibrateHaptic, aVRSystem, + (this, &VRControllerOpenVR::UpdateVibrateHaptic, aVRSystem, aHapticIndex, aIntensity, aDuration, mVibrateIndex, aPromiseID); mVibrateThread->Dispatch(runnable.forget(), NS_DISPATCH_NORMAL); } diff --git a/gfx/vr/ipc/VRManagerChild.cpp b/gfx/vr/ipc/VRManagerChild.cpp index 9807422b1c90..20869f38f1cf 100644 --- a/gfx/vr/ipc/VRManagerChild.cpp +++ b/gfx/vr/ipc/VRManagerChild.cpp @@ -544,9 +544,7 @@ VRManagerChild::RunFrameRequestCallbacks() void VRManagerChild::FireDOMVRDisplayMountedEvent(uint32_t aDisplayID) { - nsContentUtils::AddScriptRunner(NewRunnableMethod( - "gfx::VRManagerChild::FireDOMVRDisplayMountedEventInternal", - this, + nsContentUtils::AddScriptRunner(NewRunnableMethod(this, &VRManagerChild::FireDOMVRDisplayMountedEventInternal, aDisplayID)); } @@ -554,9 +552,7 @@ VRManagerChild::FireDOMVRDisplayMountedEvent(uint32_t aDisplayID) void VRManagerChild::FireDOMVRDisplayUnmountedEvent(uint32_t aDisplayID) { - nsContentUtils::AddScriptRunner(NewRunnableMethod( - "gfx::VRManagerChild::FireDOMVRDisplayUnmountedEventInternal", - this, + nsContentUtils::AddScriptRunner(NewRunnableMethod(this, &VRManagerChild::FireDOMVRDisplayUnmountedEventInternal, aDisplayID)); } @@ -564,9 +560,7 @@ VRManagerChild::FireDOMVRDisplayUnmountedEvent(uint32_t aDisplayID) void VRManagerChild::FireDOMVRDisplayConnectEvent(uint32_t aDisplayID) { - nsContentUtils::AddScriptRunner(NewRunnableMethod( - "gfx::VRManagerChild::FireDOMVRDisplayConnectEventInternal", - this, + nsContentUtils::AddScriptRunner(NewRunnableMethod(this, &VRManagerChild::FireDOMVRDisplayConnectEventInternal, aDisplayID)); } @@ -574,9 +568,7 @@ VRManagerChild::FireDOMVRDisplayConnectEvent(uint32_t aDisplayID) void VRManagerChild::FireDOMVRDisplayDisconnectEvent(uint32_t aDisplayID) { - nsContentUtils::AddScriptRunner(NewRunnableMethod( - "gfx::VRManagerChild::FireDOMVRDisplayDisconnectEventInternal", - this, + nsContentUtils::AddScriptRunner(NewRunnableMethod(this, &VRManagerChild::FireDOMVRDisplayDisconnectEventInternal, aDisplayID)); } @@ -584,9 +576,7 @@ VRManagerChild::FireDOMVRDisplayDisconnectEvent(uint32_t aDisplayID) void VRManagerChild::FireDOMVRDisplayPresentChangeEvent(uint32_t aDisplayID) { - nsContentUtils::AddScriptRunner(NewRunnableMethod( - "gfx::VRManagerChild::FireDOMVRDisplayPresentChangeEventInternal", - this, + nsContentUtils::AddScriptRunner(NewRunnableMethod(this, &VRManagerChild::FireDOMVRDisplayPresentChangeEventInternal, aDisplayID)); } diff --git a/gfx/vr/ipc/VRManagerParent.cpp b/gfx/vr/ipc/VRManagerParent.cpp index a10b234a136e..6b0dfefa216c 100644 --- a/gfx/vr/ipc/VRManagerParent.cpp +++ b/gfx/vr/ipc/VRManagerParent.cpp @@ -165,10 +165,7 @@ VRManagerParent::CreateForContent(Endpoint&& aEndpoint) RefPtr vmp = new VRManagerParent(aEndpoint.OtherPid(), true); loop->PostTask(NewRunnableMethod&&>( - "gfx::VRManagerParent::Bind", - vmp, - &VRManagerParent::Bind, - Move(aEndpoint))); + vmp, &VRManagerParent::Bind, Move(aEndpoint))); return true; } @@ -209,10 +206,7 @@ VRManagerParent::CreateForGPUProcess(Endpoint&& aEndpoint) RefPtr vmp = new VRManagerParent(aEndpoint.OtherPid(), false); vmp->mCompositorThreadHolder = layers::CompositorThreadHolder::GetSingleton(); loop->PostTask(NewRunnableMethod&&>( - "gfx::VRManagerParent::Bind", - vmp, - &VRManagerParent::Bind, - Move(aEndpoint))); + vmp, &VRManagerParent::Bind, Move(aEndpoint))); return true; } @@ -227,10 +221,7 @@ void VRManagerParent::ActorDestroy(ActorDestroyReason why) { UnregisterFromManager(); - MessageLoop::current()->PostTask( - NewRunnableMethod("gfx::VRManagerParent::DeferredDestroy", - this, - &VRManagerParent::DeferredDestroy)); + MessageLoop::current()->PostTask(NewRunnableMethod(this, &VRManagerParent::DeferredDestroy)); } void diff --git a/gfx/webrender_bindings/RenderThread.cpp b/gfx/webrender_bindings/RenderThread.cpp index b555c4c93c73..20ab91f90edd 100644 --- a/gfx/webrender_bindings/RenderThread.cpp +++ b/gfx/webrender_bindings/RenderThread.cpp @@ -124,11 +124,9 @@ void RenderThread::NewFrameReady(wr::WindowId aWindowId) { if (!IsInRenderThread()) { - Loop()->PostTask( - NewRunnableMethod("wr::RenderThread::NewFrameReady", - this, - &RenderThread::NewFrameReady, - aWindowId)); + Loop()->PostTask(NewRunnableMethod( + this, &RenderThread::NewFrameReady, aWindowId + )); return; } @@ -141,11 +139,8 @@ RenderThread::NewScrollFrameReady(wr::WindowId aWindowId, bool aCompositeNeeded) { if (!IsInRenderThread()) { Loop()->PostTask(NewRunnableMethod( - "wr::RenderThread::NewScrollFrameReady", - this, - &RenderThread::NewScrollFrameReady, - aWindowId, - aCompositeNeeded)); + this, &RenderThread::NewScrollFrameReady, aWindowId, aCompositeNeeded + )); return; } @@ -156,13 +151,10 @@ void RenderThread::RunEvent(wr::WindowId aWindowId, UniquePtr aEvent) { if (!IsInRenderThread()) { - Loop()->PostTask( - NewRunnableMethod&&>( - "wr::RenderThread::RunEvent", - this, - &RenderThread::RunEvent, - aWindowId, - Move(aEvent))); + Loop()->PostTask(NewRunnableMethod&&>( + this, &RenderThread::RunEvent, + aWindowId, Move(aEvent) + )); return; } @@ -310,7 +302,6 @@ RenderThread::UnregisterExternalImage(uint64_t aExternalImageId) RefPtr texture = mRenderTextures.Get(aExternalImageId); mRenderTextures.Remove(aExternalImageId); Loop()->PostTask(NewRunnableMethod>( - "RenderThread::DeferredRenderTextureHostDestroy", this, &RenderThread::DeferredRenderTextureHostDestroy, Move(texture) )); } else { diff --git a/image/DecodePool.cpp b/image/DecodePool.cpp index b6db3a2d0cfe..92e38404600e 100644 --- a/image/DecodePool.cpp +++ b/image/DecodePool.cpp @@ -160,8 +160,7 @@ class DecodePoolWorker : public Runnable { public: explicit DecodePoolWorker(DecodePoolImpl* aImpl) - : Runnable("image::DecodePoolWorker") - , mImpl(aImpl) + : mImpl(aImpl) { } NS_IMETHOD Run() override diff --git a/image/Image.cpp b/image/Image.cpp index b2faa61a9c6a..5436cbb93464 100644 --- a/image/Image.cpp +++ b/image/Image.cpp @@ -157,13 +157,12 @@ ImageResource::SendOnUnlockedDraw(uint32_t aFlags) mProgressTracker->OnUnlockedDraw(); } else { NotNull> image = WrapNotNull(this); - NS_DispatchToMainThread(NS_NewRunnableFunction( - "image::ImageResource::SendOnUnlockedDraw", [=]() -> void { - RefPtr tracker = image->GetProgressTracker(); - if (tracker) { - tracker->OnUnlockedDraw(); - } - })); + NS_DispatchToMainThread(NS_NewRunnableFunction([=]() -> void { + RefPtr tracker = image->GetProgressTracker(); + if (tracker) { + tracker->OnUnlockedDraw(); + } + })); } } diff --git a/image/ProgressTracker.cpp b/image/ProgressTracker.cpp index 936d37af352d..1f51cce3e24f 100644 --- a/image/ProgressTracker.cpp +++ b/image/ProgressTracker.cpp @@ -204,8 +204,7 @@ class AsyncNotifyCurrentStateRunnable : public Runnable public: AsyncNotifyCurrentStateRunnable(ProgressTracker* aProgressTracker, IProgressObserver* aObserver) - : Runnable("image::AsyncNotifyCurrentStateRunnable") - , mProgressTracker(aProgressTracker) + : mProgressTracker(aProgressTracker) , mObserver(aObserver) { MOZ_ASSERT(NS_IsMainThread(), "Should be created on the main thread"); diff --git a/image/RasterImage.cpp b/image/RasterImage.cpp index 01e8dfbbe50e..8585272ab49c 100644 --- a/image/RasterImage.cpp +++ b/image/RasterImage.cpp @@ -1610,8 +1610,7 @@ RasterImage::HandleErrorWorker::DispatchIfNeeded(RasterImage* aImage) } RasterImage::HandleErrorWorker::HandleErrorWorker(RasterImage* aImage) - : Runnable("image::RasterImage::HandleErrorWorker") - , mImage(aImage) + : mImage(aImage) { MOZ_ASSERT(mImage, "Should have image"); } diff --git a/image/test/gtest/TestDecodeToSurface.cpp b/image/test/gtest/TestDecodeToSurface.cpp index c2628c8c6665..f5762d84c172 100644 --- a/image/test/gtest/TestDecodeToSurface.cpp +++ b/image/test/gtest/TestDecodeToSurface.cpp @@ -29,8 +29,7 @@ public: nsIInputStream* aInputStream, ImageOps::ImageBuffer* aImageBuffer, const ImageTestCase& aTestCase) - : mozilla::Runnable("DecodeToSurfaceRunnable") - , mSurface(aSurface) + : mSurface(aSurface) , mInputStream(aInputStream) , mImageBuffer(aImageBuffer) , mTestCase(aTestCase) diff --git a/ipc/chromium/src/base/message_loop.h b/ipc/chromium/src/base/message_loop.h index 91e2a0fb62ca..d16aa0cbebec 100644 --- a/ipc/chromium/src/base/message_loop.h +++ b/ipc/chromium/src/base/message_loop.h @@ -140,7 +140,6 @@ public: // arbitrary MessageLoop to Quit. class QuitTask : public mozilla::Runnable { public: - QuitTask() : mozilla::Runnable("QuitTask") {} NS_IMETHOD Run() override { MessageLoop::current()->Quit(); return NS_OK; diff --git a/ipc/chromium/src/base/object_watcher.cc b/ipc/chromium/src/base/object_watcher.cc index 4308fa42a162..ced911fa2079 100644 --- a/ipc/chromium/src/base/object_watcher.cc +++ b/ipc/chromium/src/base/object_watcher.cc @@ -21,8 +21,6 @@ public: Delegate* delegate; // Delegate to notify when signaled bool did_signal; // DoneWaiting was called - Watch() : mozilla::Runnable("ObjectWatcher::Watch") {} - NS_IMETHOD Run() override { // The watcher may have already been torn down, in which case we need to // just get out of dodge. diff --git a/ipc/chromium/src/base/task.h b/ipc/chromium/src/base/task.h index e66e51fe9054..10dc9c488bbc 100644 --- a/ipc/chromium/src/base/task.h +++ b/ipc/chromium/src/base/task.h @@ -159,16 +159,12 @@ class ScopedRunnableMethodFactory : public RevocableStore { template class RunnableMethod : public mozilla::Runnable { public: - RunnableMethod() - : mozilla::Runnable("ScopedRunnableMethodFactory::RunnableMethod") - { - } + RunnableMethod() { } - void Init(T* obj, Method meth, Params&& params) - { - obj_ = obj; - meth_ = meth; - params_ = mozilla::Forward(params); + void Init(T* obj, Method meth, Params&& params) { + obj_ = obj; + meth_ = meth; + params_ = mozilla::Forward(params); } NS_IMETHOD Run() override { @@ -197,10 +193,7 @@ class ScopedRunnableMethodFactory : public RevocableStore { template class DeleteTask : public mozilla::CancelableRunnable { public: - explicit DeleteTask(T* obj) - : mozilla::CancelableRunnable("DeleteTask") - , obj_(obj) - { + explicit DeleteTask(T* obj) : obj_(obj) { } NS_IMETHOD Run() override { delete obj_; @@ -277,13 +270,9 @@ template class RunnableMethod : public mozilla::CancelableRunnable, public RunnableMethodTraits { public: - RunnableMethod(T* obj, Method meth, Params&& params) - : mozilla::CancelableRunnable("RunnableMethod") - , obj_(obj) - , meth_(meth) - , params_(mozilla::Forward(params)) - { - this->RetainCallee(obj_); + RunnableMethod(T* obj, Method meth, Params&& params) + : obj_(obj), meth_(meth), params_(mozilla::Forward(params)) { + this->RetainCallee(obj_); } ~RunnableMethod() { ReleaseCallee(); @@ -335,11 +324,8 @@ NewRunnableMethod(T* object, Method method, Args&&... args) { template class RunnableFunction : public mozilla::CancelableRunnable { public: - RunnableFunction(Function function, Params&& params) - : mozilla::CancelableRunnable("RunnableFunction") - , function_(function) - , params_(mozilla::Forward(params)) - { + RunnableFunction(Function function, Params&& params) + : function_(function), params_(mozilla::Forward(params)) { } ~RunnableFunction() { diff --git a/ipc/chromium/src/base/thread.cc b/ipc/chromium/src/base/thread.cc index f15de139818e..d5f0eef35463 100644 --- a/ipc/chromium/src/base/thread.cc +++ b/ipc/chromium/src/base/thread.cc @@ -22,7 +22,6 @@ namespace base { // This task is used to trigger the message loop to exit. class ThreadQuitTask : public mozilla::Runnable { public: - ThreadQuitTask() : mozilla::Runnable("ThreadQuitTask") {} NS_IMETHOD Run() override { MessageLoop::current()->Quit(); Thread::SetThreadWasQuitProperly(true); diff --git a/ipc/chromium/src/base/timer.h b/ipc/chromium/src/base/timer.h index 5703707ca8d7..b65f89392e98 100644 --- a/ipc/chromium/src/base/timer.h +++ b/ipc/chromium/src/base/timer.h @@ -87,11 +87,8 @@ class BaseTimer_Helper { // We have access to the timer_ member so we can orphan this task. class TimerTask : public mozilla::Runnable { public: - explicit TimerTask(TimeDelta delay) - : mozilla::Runnable("base::BaseTimer_Helper::TimerTask") - , delay_(delay) - { - // timer_ is set in InitiateDelayedTask. + explicit TimerTask(TimeDelta delay) : delay_(delay) { + // timer_ is set in InitiateDelayedTask. } virtual ~TimerTask() {} BaseTimer_Helper* timer_; diff --git a/ipc/chromium/src/chrome/common/process_watcher_posix_sigchld.cc b/ipc/chromium/src/chrome/common/process_watcher_posix_sigchld.cc index 1b0e62639712..5abe143c15db 100644 --- a/ipc/chromium/src/chrome/common/process_watcher_posix_sigchld.cc +++ b/ipc/chromium/src/chrome/common/process_watcher_posix_sigchld.cc @@ -79,9 +79,7 @@ class ChildGrimReaper : public ChildReaper, public mozilla::Runnable { public: - explicit ChildGrimReaper(pid_t process) - : ChildReaper(process) - , mozilla::Runnable("ChildGrimReaper") + explicit ChildGrimReaper(pid_t process) : ChildReaper(process) { } diff --git a/ipc/chromium/src/chrome/common/process_watcher_win.cc b/ipc/chromium/src/chrome/common/process_watcher_win.cc index 37d2632fd85d..fccb83999e36 100644 --- a/ipc/chromium/src/chrome/common/process_watcher_win.cc +++ b/ipc/chromium/src/chrome/common/process_watcher_win.cc @@ -20,7 +20,7 @@ class ChildReaper : public mozilla::Runnable, public MessageLoop::DestructionObserver { public: explicit ChildReaper(base::ProcessHandle process, bool force) - : mozilla::Runnable("ChildReaper"), process_(process), force_(force) { + : process_(process), force_(force) { watcher_.StartWatching(process_, this); } diff --git a/ipc/glue/BackgroundImpl.cpp b/ipc/glue/BackgroundImpl.cpp index 93f5310c2743..c37f4b2413a9 100644 --- a/ipc/glue/BackgroundImpl.cpp +++ b/ipc/glue/BackgroundImpl.cpp @@ -428,8 +428,7 @@ private: threadLocalInfo->mActor.forget(&actor); MOZ_ALWAYS_SUCCEEDS( - NS_DispatchToMainThread(NewNonOwningRunnableMethod("ChildImpl::Release", - actor, &ChildImpl::Release))); + NS_DispatchToMainThread(NewNonOwningRunnableMethod(actor, &ChildImpl::Release))); } } delete threadLocalInfo; @@ -955,8 +954,7 @@ ParentImpl::GetContentParent(PBackgroundParent* aBackgroundActor) // will run before the reference we hand out can be released, and the // ContentParent can't die as long as the existing reference is maintained. MOZ_ALWAYS_SUCCEEDS( - NS_DispatchToMainThread(NewNonOwningRunnableMethod("ContentParent::AddRef", - actor->mContent, &ContentParent::AddRef))); + NS_DispatchToMainThread(NewNonOwningRunnableMethod(actor->mContent, &ContentParent::AddRef))); } return already_AddRefed(actor->mContent.get()); @@ -1235,8 +1233,7 @@ ParentImpl::Destroy() AssertIsInMainProcess(); MOZ_ALWAYS_SUCCEEDS( - NS_DispatchToMainThread(NewNonOwningRunnableMethod("ParentImpl::MainThreadActorDestroy", - this, &ParentImpl::MainThreadActorDestroy))); + NS_DispatchToMainThread(NewNonOwningRunnableMethod(this, &ParentImpl::MainThreadActorDestroy))); } void @@ -1282,8 +1279,7 @@ ParentImpl::ActorDestroy(ActorDestroyReason aWhy) // long enough to be cleared in this call stack. MOZ_ALWAYS_SUCCEEDS( - NS_DispatchToCurrentThread(NewNonOwningRunnableMethod("ParentImpl::Destroy", - this, &ParentImpl::Destroy))); + NS_DispatchToCurrentThread(NewNonOwningRunnableMethod(this, &ParentImpl::Destroy))); } NS_IMPL_ISUPPORTS(ParentImpl::ShutdownObserver, nsIObserver) diff --git a/ipc/glue/BackgroundParentImpl.cpp b/ipc/glue/BackgroundParentImpl.cpp index b9cc273c79ff..319787b3d885 100644 --- a/ipc/glue/BackgroundParentImpl.cpp +++ b/ipc/glue/BackgroundParentImpl.cpp @@ -404,8 +404,7 @@ class InitUDPSocketParentCallback final : public Runnable public: InitUDPSocketParentCallback(UDPSocketParent* aActor, const nsACString& aFilter) - : Runnable("ipc::InitUDPSocketParentCallback") - , mActor(aActor) + : mActor(aActor) , mFilter(aFilter) { AssertIsInMainProcess(); @@ -529,8 +528,7 @@ public: CheckPrincipalRunnable(already_AddRefed aParent, const PrincipalInfo& aPrincipalInfo, const nsCString& aOrigin) - : Runnable("ipc::CheckPrincipalRunnable") - , mContentParent(aParent) + : mContentParent(aParent) , mPrincipalInfo(aPrincipalInfo) , mOrigin(aOrigin) { diff --git a/ipc/glue/CrashReporterHost.cpp b/ipc/glue/CrashReporterHost.cpp index 75c436e2224a..ba9af7424887 100644 --- a/ipc/glue/CrashReporterHost.cpp +++ b/ipc/glue/CrashReporterHost.cpp @@ -109,11 +109,9 @@ CrashReporterHost::NotifyCrashService(GeckoProcessType aProcessType, const AnnotationTable* aNotes) { if (!NS_IsMainThread()) { - RefPtr runnable = NS_NewRunnableFunction( - "ipc::CrashReporterHost::NotifyCrashService", [=]() -> void { - CrashReporterHost::NotifyCrashService( - aProcessType, aChildDumpID, aNotes); - }); + RefPtr runnable = NS_NewRunnableFunction([=] () -> void { + CrashReporterHost::NotifyCrashService(aProcessType, aChildDumpID, aNotes); + }); RefPtr mainThread = do_GetMainThread(); SyncRunnable::DispatchToThread(mainThread, runnable); return; diff --git a/ipc/glue/GeckoChildProcessHost.cpp b/ipc/glue/GeckoChildProcessHost.cpp index 70279c5356c7..098b27a5852b 100644 --- a/ipc/glue/GeckoChildProcessHost.cpp +++ b/ipc/glue/GeckoChildProcessHost.cpp @@ -359,13 +359,10 @@ GeckoChildProcessHost::SyncLaunch(std::vector aExtraOpts, int aTime MessageLoop* ioLoop = XRE_GetIOMessageLoop(); NS_ASSERTION(MessageLoop::current() != ioLoop, "sync launch from the IO thread NYI"); - ioLoop->PostTask(NewNonOwningRunnableMethod, - base::ProcessArchitecture>( - "ipc::GeckoChildProcessHost::RunPerformAsyncLaunch", - this, - &GeckoChildProcessHost::RunPerformAsyncLaunch, - aExtraOpts, - arch)); + ioLoop->PostTask(NewNonOwningRunnableMethod + , base::ProcessArchitecture> + (this, &GeckoChildProcessHost::RunPerformAsyncLaunch, + aExtraOpts, arch)); return WaitUntilConnected(aTimeoutMs); } @@ -378,13 +375,10 @@ GeckoChildProcessHost::AsyncLaunch(std::vector aExtraOpts, MessageLoop* ioLoop = XRE_GetIOMessageLoop(); - ioLoop->PostTask(NewNonOwningRunnableMethod, - base::ProcessArchitecture>( - "ipc::GeckoChildProcessHost::RunPerformAsyncLaunch", - this, - &GeckoChildProcessHost::RunPerformAsyncLaunch, - aExtraOpts, - arch)); + ioLoop->PostTask(NewNonOwningRunnableMethod + , base::ProcessArchitecture> + (this, &GeckoChildProcessHost::RunPerformAsyncLaunch, + aExtraOpts, arch)); // This may look like the sync launch wait, but we only delay as // long as it takes to create the channel. @@ -440,13 +434,10 @@ GeckoChildProcessHost::LaunchAndWaitForProcessHandle(StringVector aExtraOpts) PrepareLaunch(); MessageLoop* ioLoop = XRE_GetIOMessageLoop(); - ioLoop->PostTask(NewNonOwningRunnableMethod, - base::ProcessArchitecture>( - "ipc::GeckoChildProcessHost::RunPerformAsyncLaunch", - this, - &GeckoChildProcessHost::RunPerformAsyncLaunch, - aExtraOpts, - base::GetCurrentProcessArchitecture())); + ioLoop->PostTask(NewNonOwningRunnableMethod + , base::ProcessArchitecture> + (this, &GeckoChildProcessHost::RunPerformAsyncLaunch, + aExtraOpts, base::GetCurrentProcessArchitecture())); MonitorAutoLock lock(mMonitor); while (mProcessState < PROCESS_CREATED) { diff --git a/ipc/glue/IPCStreamDestination.cpp b/ipc/glue/IPCStreamDestination.cpp index be61f321c649..8c1757f60a08 100644 --- a/ipc/glue/IPCStreamDestination.cpp +++ b/ipc/glue/IPCStreamDestination.cpp @@ -177,12 +177,9 @@ public: eCloseDestination, }; - HelperRunnable( - IPCStreamDestination::DelayedStartInputStream* aDelayedStartInputStream, - Op aOp) - : Runnable( - "ipc::IPCStreamDestination::DelayedStartInputStream::HelperRunnable") - , mDelayedStartInputStream(aDelayedStartInputStream) + HelperRunnable(IPCStreamDestination::DelayedStartInputStream* aDelayedStartInputStream, + Op aOp) + : mDelayedStartInputStream(aDelayedStartInputStream) , mOp(aOp) { MOZ_ASSERT(aDelayedStartInputStream); diff --git a/ipc/glue/MessageChannel.cpp b/ipc/glue/MessageChannel.cpp index b20185d35788..3f874ef0e481 100644 --- a/ipc/glue/MessageChannel.cpp +++ b/ipc/glue/MessageChannel.cpp @@ -546,10 +546,8 @@ MessageChannel::MessageChannel(const char* aName, mIsSyncWaitingOnNonMainThread = false; #endif - mOnChannelConnectedTask = NewNonOwningCancelableRunnableMethod( - "ipc::MessageChannel::DispatchOnChannelConnected", - this, - &MessageChannel::DispatchOnChannelConnected); + mOnChannelConnectedTask = + NewNonOwningCancelableRunnableMethod(this, &MessageChannel::DispatchOnChannelConnected); #ifdef OS_WIN mEvent = CreateEventW(nullptr, TRUE, FALSE, nullptr); @@ -801,12 +799,10 @@ MessageChannel::Open(MessageChannel *aTargetChan, MessageLoop *aTargetLoop, Side MonitorAutoLock lock(*mMonitor); mChannelState = ChannelOpening; - aTargetLoop->PostTask(NewNonOwningRunnableMethod( - "ipc::MessageChannel::OnOpenAsSlave", - aTargetChan, - &MessageChannel::OnOpenAsSlave, - this, - oppSide)); + aTargetLoop->PostTask(NewNonOwningRunnableMethod + (aTargetChan, + &MessageChannel::OnOpenAsSlave, + this, oppSide)); while (ChannelOpening == mChannelState) mMonitor->Wait(); @@ -2528,14 +2524,12 @@ MessageChannel::OnNotifyMaybeChannelError() } if (IsOnCxxStack()) { - mChannelErrorTask = NewNonOwningCancelableRunnableMethod( - "ipc::MessageChannel::OnNotifyMaybeChannelError", - this, - &MessageChannel::OnNotifyMaybeChannelError); - RefPtr task = mChannelErrorTask; - // 10 ms delay is completely arbitrary - mWorkerLoop->PostDelayedTask(task.forget(), 10); - return; + mChannelErrorTask = + NewNonOwningCancelableRunnableMethod(this, &MessageChannel::OnNotifyMaybeChannelError); + RefPtr task = mChannelErrorTask; + // 10 ms delay is completely arbitrary + mWorkerLoop->PostDelayedTask(task.forget(), 10); + return; } NotifyMaybeChannelError(); @@ -2550,10 +2544,8 @@ MessageChannel::PostErrorNotifyTask() return; // This must be the last code that runs on this thread! - mChannelErrorTask = NewNonOwningCancelableRunnableMethod( - "ipc::MessageChannel::OnNotifyMaybeChannelError", - this, - &MessageChannel::OnNotifyMaybeChannelError); + mChannelErrorTask = + NewNonOwningCancelableRunnableMethod(this, &MessageChannel::OnNotifyMaybeChannelError); RefPtr task = mChannelErrorTask; mWorkerLoop->PostTask(task.forget()); } diff --git a/ipc/glue/MessageLink.cpp b/ipc/glue/MessageLink.cpp index 4bc46d11c2a4..9bc1a1165e11 100644 --- a/ipc/glue/MessageLink.cpp +++ b/ipc/glue/MessageLink.cpp @@ -102,11 +102,8 @@ ProcessLink::Open(mozilla::ipc::Transport* aTransport, MessageLoop *aIOLoop, Sid // If we were never able to open the transport, immediately post an error message. if (mTransport->Unsound_IsClosed()) { - mIOLoop->PostTask( - NewNonOwningRunnableMethod("ipc::ProcessLink::OnChannelConnectError", - this, - &ProcessLink::OnChannelConnectError)); - return; + mIOLoop->PostTask(NewNonOwningRunnableMethod(this, &ProcessLink::OnChannelConnectError)); + return; } { @@ -116,18 +113,12 @@ ProcessLink::Open(mozilla::ipc::Transport* aTransport, MessageLoop *aIOLoop, Sid // Transport::Connect() has not been called. Call it so // we start polling our pipe and processing outgoing // messages. - mIOLoop->PostTask( - NewNonOwningRunnableMethod("ipc::ProcessLink::OnChannelOpened", - this, - &ProcessLink::OnChannelOpened)); + mIOLoop->PostTask(NewNonOwningRunnableMethod(this, &ProcessLink::OnChannelOpened)); } else { // Transport::Connect() has already been called. Take // over the channel from the previous listener and process // any queued messages. - mIOLoop->PostTask(NewNonOwningRunnableMethod( - "ipc::ProcessLink::OnTakeConnectedChannel", - this, - &ProcessLink::OnTakeConnectedChannel)); + mIOLoop->PostTask(NewNonOwningRunnableMethod(this, &ProcessLink::OnTakeConnectedChannel)); } // Should not wait here if something goes wrong with the channel. @@ -143,11 +134,7 @@ ProcessLink::EchoMessage(Message *msg) mChan->AssertWorkerThread(); mChan->mMonitor->AssertCurrentThreadOwns(); - mIOLoop->PostTask( - NewNonOwningRunnableMethod("ipc::ProcessLink::OnEchoMessage", - this, - &ProcessLink::OnEchoMessage, - msg)); + mIOLoop->PostTask(NewNonOwningRunnableMethod(this, &ProcessLink::OnEchoMessage, msg)); // OnEchoMessage takes ownership of |msg| } @@ -165,8 +152,7 @@ ProcessLink::SendMessage(Message *msg) mChan->AssertWorkerThread(); mChan->mMonitor->AssertCurrentThreadOwns(); - mIOLoop->PostTask(NewNonOwningRunnableMethod( - "IPC::Channel::Send", mTransport, &Transport::Send, msg)); + mIOLoop->PostTask(NewNonOwningRunnableMethod(mTransport, &Transport::Send, msg)); } void @@ -175,8 +161,7 @@ ProcessLink::SendClose() mChan->AssertWorkerThread(); mChan->mMonitor->AssertCurrentThreadOwns(); - mIOLoop->PostTask(NewNonOwningRunnableMethod( - "ipc::ProcessLink::OnCloseChannel", this, &ProcessLink::OnCloseChannel)); + mIOLoop->PostTask(NewNonOwningRunnableMethod(this, &ProcessLink::OnCloseChannel)); } ThreadLink::ThreadLink(MessageChannel *aChan, MessageChannel *aTargetChan) diff --git a/ipc/glue/MessagePump.cpp b/ipc/glue/MessagePump.cpp index 42aeb699d4fa..c4d2da790929 100644 --- a/ipc/glue/MessagePump.cpp +++ b/ipc/glue/MessagePump.cpp @@ -42,8 +42,7 @@ class DoWorkRunnable final : public CancelableRunnable, { public: explicit DoWorkRunnable(MessagePump* aPump) - : CancelableRunnable("ipc::DoWorkRunnable") - , mPump(aPump) + : mPump(aPump) { MOZ_ASSERT(aPump); } diff --git a/ipc/glue/TaskFactory.h b/ipc/glue/TaskFactory.h index 80b767ed9b6f..4852e369cae0 100644 --- a/ipc/glue/TaskFactory.h +++ b/ipc/glue/TaskFactory.h @@ -76,12 +76,11 @@ protected: template class RunnableMethod : public Runnable { public: - RunnableMethod(T* obj, Method meth, const Params& params) - : Runnable("ipc::TaskFactory::RunnableMethod") - , obj_(obj) - , meth_(meth) - , params_(params) - { + RunnableMethod(T* obj, Method meth, const Params& params) + : obj_(obj) + , meth_(meth) + , params_(params) { + } NS_IMETHOD Run() override { diff --git a/ipc/ipdl/test/cxx/TestCancel.cpp b/ipc/ipdl/test/cxx/TestCancel.cpp index 719a41f81d88..854eb51eec7f 100644 --- a/ipc/ipdl/test/cxx/TestCancel.cpp +++ b/ipc/ipdl/test/cxx/TestCancel.cpp @@ -76,9 +76,9 @@ TestCancelParent::RecvTest3_2() mozilla::ipc::IPCResult TestCancelParent::RecvDone() { - MessageLoop::current()->PostTask(NewNonOwningRunnableMethod( - "ipc::IToplevelProtocol::Close", this, &TestCancelParent::Close)); - return IPC_OK(); + MessageLoop::current()->PostTask( + NewNonOwningRunnableMethod(this, &TestCancelParent::Close)); + return IPC_OK(); } mozilla::ipc::IPCResult diff --git a/ipc/ipdl/test/cxx/TestDemon.cpp b/ipc/ipdl/test/cxx/TestDemon.cpp index 160cd424516a..ef87b3b25b0f 100644 --- a/ipc/ipdl/test/cxx/TestDemon.cpp +++ b/ipc/ipdl/test/cxx/TestDemon.cpp @@ -176,10 +176,7 @@ TestDemonParent::RunUnlimitedSequence() gFlushStack = false; DoAction(); - MessageLoop::current()->PostTask(NewNonOwningRunnableMethod( - "_ipdltest::TestDemonParent::RunUnlimitedSequence", - this, - &TestDemonParent::RunUnlimitedSequence)); + MessageLoop::current()->PostTask(NewNonOwningRunnableMethod(this, &TestDemonParent::RunUnlimitedSequence)); } void @@ -323,10 +320,7 @@ TestDemonChild::RunUnlimitedSequence() gFlushStack = false; DoAction(); - MessageLoop::current()->PostTask(NewNonOwningRunnableMethod( - "_ipdltest::TestDemonChild::RunUnlimitedSequence", - this, - &TestDemonChild::RunUnlimitedSequence)); + MessageLoop::current()->PostTask(NewNonOwningRunnableMethod(this, &TestDemonChild::RunUnlimitedSequence)); } void diff --git a/ipc/ipdl/test/cxx/TestEndpointBridgeMain.cpp b/ipc/ipdl/test/cxx/TestEndpointBridgeMain.cpp index b01c4b81472a..412077884493 100644 --- a/ipc/ipdl/test/cxx/TestEndpointBridgeMain.cpp +++ b/ipc/ipdl/test/cxx/TestEndpointBridgeMain.cpp @@ -232,9 +232,7 @@ TestEndpointBridgeMainSubChild::RecvHi() // Need to close the channel without message-processing frames on // the C++ stack MessageLoop::current()->PostTask( - NewNonOwningRunnableMethod("ipc::IToplevelProtocol::Close", - this, - &TestEndpointBridgeMainSubChild::Close)); + NewNonOwningRunnableMethod(this, &TestEndpointBridgeMainSubChild::Close)); return IPC_OK(); } diff --git a/ipc/ipdl/test/cxx/TestEndpointOpens.cpp b/ipc/ipdl/test/cxx/TestEndpointOpens.cpp index 51bd176d8a79..b99dccb199ca 100644 --- a/ipc/ipdl/test/cxx/TestEndpointOpens.cpp +++ b/ipc/ipdl/test/cxx/TestEndpointOpens.cpp @@ -232,9 +232,7 @@ TestEndpointOpensOpenedChild::RecvHi() // Need to close the channel without message-processing frames on // the C++ stack MessageLoop::current()->PostTask( - NewNonOwningRunnableMethod("ipc::IToplevelProtocol::Close", - this, - &TestEndpointOpensOpenedChild::Close)); + NewNonOwningRunnableMethod(this, &TestEndpointOpensOpenedChild::Close)); return IPC_OK(); } @@ -255,9 +253,7 @@ ShutdownTestEndpointOpensOpenedChild(TestEndpointOpensOpenedChild* child, // Kick off main-thread shutdown. gMainThread->PostTask( - NewNonOwningRunnableMethod("ipc::IToplevelProtocol::Close", - gOpensChild, - &TestEndpointOpensChild::Close)); + NewNonOwningRunnableMethod(gOpensChild, &TestEndpointOpensChild::Close)); } void diff --git a/ipc/ipdl/test/cxx/TestHangs.cpp b/ipc/ipdl/test/cxx/TestHangs.cpp index 9f639e077774..178e5fc184d3 100644 --- a/ipc/ipdl/test/cxx/TestHangs.cpp +++ b/ipc/ipdl/test/cxx/TestHangs.cpp @@ -76,8 +76,8 @@ TestHangsParent::ShouldContinueFromReplyTimeout() // reply should be here; we'll post a task to shut things down. // This must be after OnMaybeDequeueOne() in the event queue. - MessageLoop::current()->PostTask(NewNonOwningRunnableMethod( - "_ipdltest::TestHangsParent::CleanUp", this, &TestHangsParent::CleanUp)); + MessageLoop::current()->PostTask( + NewNonOwningRunnableMethod(this, &TestHangsParent::CleanUp)); GetIPCChannel()->CloseWithTimeout(); diff --git a/ipc/ipdl/test/cxx/TestInterruptRaces.cpp b/ipc/ipdl/test/cxx/TestInterruptRaces.cpp index 52306b8eafa8..4de6dc75996d 100644 --- a/ipc/ipdl/test/cxx/TestInterruptRaces.cpp +++ b/ipc/ipdl/test/cxx/TestInterruptRaces.cpp @@ -27,11 +27,9 @@ TestInterruptRacesParent::Main() mozilla::ipc::IPCResult TestInterruptRacesParent::RecvStartRace() { - MessageLoop::current()->PostTask(NewNonOwningRunnableMethod( - "_ipdltest::TestInterruptRacesParent::OnRaceTime", - this, - &TestInterruptRacesParent::OnRaceTime)); - return IPC_OK(); + MessageLoop::current()->PostTask( + NewNonOwningRunnableMethod(this, &TestInterruptRacesParent::OnRaceTime)); + return IPC_OK(); } void @@ -46,9 +44,7 @@ TestInterruptRacesParent::OnRaceTime() mHasReply = true; MessageLoop::current()->PostTask( - NewNonOwningRunnableMethod("_ipdltest::TestInterruptRacesParent::Test2", - this, - &TestInterruptRacesParent::Test2)); + NewNonOwningRunnableMethod(this, &TestInterruptRacesParent::Test2)); } mozilla::ipc::IPCResult @@ -75,9 +71,7 @@ TestInterruptRacesParent::Test2() puts(" passed"); MessageLoop::current()->PostTask( - NewNonOwningRunnableMethod("_ipdltest::TestInterruptRacesParent::Test3", - this, - &TestInterruptRacesParent::Test3)); + NewNonOwningRunnableMethod(this, &TestInterruptRacesParent::Test3)); } mozilla::ipc::IPCResult diff --git a/ipc/ipdl/test/cxx/TestInterruptShutdownRace.cpp b/ipc/ipdl/test/cxx/TestInterruptShutdownRace.cpp index 5252f538617c..650fb985b9b8 100644 --- a/ipc/ipdl/test/cxx/TestInterruptShutdownRace.cpp +++ b/ipc/ipdl/test/cxx/TestInterruptShutdownRace.cpp @@ -51,10 +51,9 @@ TestInterruptShutdownRaceParent::RecvStartDeath() { // this will be ordered before the OnMaybeDequeueOne event of // Orphan in the queue - MessageLoop::current()->PostTask(NewNonOwningRunnableMethod( - "_ipdltest::TestInterruptShutdownRaceParent::StartShuttingDown", - this, - &TestInterruptShutdownRaceParent::StartShuttingDown)); + MessageLoop::current()->PostTask( + NewNonOwningRunnableMethod(this, + &TestInterruptShutdownRaceParent::StartShuttingDown)); return IPC_OK(); } diff --git a/ipc/ipdl/test/cxx/TestNestedLoops.cpp b/ipc/ipdl/test/cxx/TestNestedLoops.cpp index 09a6ca1eabaf..3ea4f00ddfce 100644 --- a/ipc/ipdl/test/cxx/TestNestedLoops.cpp +++ b/ipc/ipdl/test/cxx/TestNestedLoops.cpp @@ -45,10 +45,8 @@ TestNestedLoopsParent::RecvNonce() // if we have an OnMaybeDequeueOne waiting for us (we may not, due // to the inherent race condition in this test, then this event // must be ordered after it in the queue - MessageLoop::current()->PostTask(NewNonOwningRunnableMethod( - "_ipdltest::TestNestedLoopsParent::BreakNestedLoop", - this, - &TestNestedLoopsParent::BreakNestedLoop)); + MessageLoop::current()->PostTask( + NewNonOwningRunnableMethod(this, &TestNestedLoopsParent::BreakNestedLoop)); // sigh ... spin for a while to let the reply to R arrive puts(" (sleeping to wait for reply to R ... sorry)"); diff --git a/ipc/ipdl/test/cxx/TestUrgentHangs.cpp b/ipc/ipdl/test/cxx/TestUrgentHangs.cpp index 91a4f0e9ad1a..5b3d6093d4db 100644 --- a/ipc/ipdl/test/cxx/TestUrgentHangs.cpp +++ b/ipc/ipdl/test/cxx/TestUrgentHangs.cpp @@ -49,11 +49,8 @@ TestUrgentHangsParent::Main() // Do a second round of testing once the reply to Test2 comes back. MessageLoop::current()->PostDelayedTask( - NewNonOwningRunnableMethod( - "_ipdltest::TestUrgentHangsParent::SecondStage", - this, - &TestUrgentHangsParent::SecondStage), - 3000); + NewNonOwningRunnableMethod(this, &TestUrgentHangsParent::SecondStage), + 3000); } void @@ -70,10 +67,8 @@ TestUrgentHangsParent::SecondStage() fail("sending Test4_1"); MessageLoop::current()->PostDelayedTask( - NewNonOwningRunnableMethod("_ipdltest::TestUrgentHangsParent::ThirdStage", - this, - &TestUrgentHangsParent::ThirdStage), - 3000); + NewNonOwningRunnableMethod(this, &TestUrgentHangsParent::ThirdStage), + 3000); } void @@ -95,9 +90,8 @@ TestUrgentHangsParent::ThirdStage() // Close the channel after the child finishes its work in RecvTest5. MessageLoop::current()->PostDelayedTask( - NewNonOwningRunnableMethod( - "ipc::IToplevelProtocol::Close", this, &TestUrgentHangsParent::Close), - 3000); + NewNonOwningRunnableMethod(this, &TestUrgentHangsParent::Close), + 3000); } mozilla::ipc::IPCResult diff --git a/ipc/mscom/DispatchForwarder.cpp b/ipc/mscom/DispatchForwarder.cpp index 5cc5b3d15824..552229b4de65 100644 --- a/ipc/mscom/DispatchForwarder.cpp +++ b/ipc/mscom/DispatchForwarder.cpp @@ -109,7 +109,7 @@ DispatchForwarder::GetTypeInfo(UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo) hr = mTarget->GetTypeInfo(iTInfo, lcid, ppTInfo); }; MainThreadInvoker invoker; - if (!invoker.Invoke(NS_NewRunnableFunction("DispatchForwarder::GetTypeInfo", fn))) { + if (!invoker.Invoke(NS_NewRunnableFunction(fn))) { return E_UNEXPECTED; } if (FAILED(hr)) { @@ -128,7 +128,7 @@ DispatchForwarder::GetIDsOfNames(REFIID riid, LPOLESTR *rgszNames, UINT cNames, hr = mTarget->GetIDsOfNames(riid, rgszNames, cNames, lcid, rgDispId); }; MainThreadInvoker invoker; - if (!invoker.Invoke(NS_NewRunnableFunction("DispatchForwarder::GetIDsOfNames", fn))) { + if (!invoker.Invoke(NS_NewRunnableFunction(fn))) { return E_UNEXPECTED; } return hr; diff --git a/ipc/mscom/EnsureMTA.cpp b/ipc/mscom/EnsureMTA.cpp index 0c543fd88ab2..f4bc911e9b21 100644 --- a/ipc/mscom/EnsureMTA.cpp +++ b/ipc/mscom/EnsureMTA.cpp @@ -17,7 +17,6 @@ namespace { class EnterMTARunnable : public mozilla::Runnable { public: - EnterMTARunnable() : mozilla::Runnable("EnterMTARunnable") {} NS_IMETHOD Run() override { mozilla::DebugOnly hr = ::CoInitializeEx(nullptr, @@ -42,7 +41,7 @@ public: ~BackgroundMTAData() { if (mThread) { - mThread->Dispatch(NS_NewRunnableFunction("BackgroundMTAData::~BackgroundMTAData", &::CoUninitialize), + mThread->Dispatch(NS_NewRunnableFunction(&::CoUninitialize), NS_DISPATCH_NORMAL); mThread->Shutdown(); } diff --git a/ipc/mscom/EnsureMTA.h b/ipc/mscom/EnsureMTA.h index 8f03942d4389..c0e1b06cb1cb 100644 --- a/ipc/mscom/EnsureMTA.h +++ b/ipc/mscom/EnsureMTA.h @@ -82,7 +82,7 @@ public: }; nsresult rv = - thread->Dispatch(NS_NewRunnableFunction("EnsureMTA", eventSetter), NS_DISPATCH_NORMAL); + thread->Dispatch(NS_NewRunnableFunction(eventSetter), NS_DISPATCH_NORMAL); MOZ_ASSERT(NS_SUCCEEDED(rv)); if (NS_FAILED(rv)) { return; @@ -117,8 +117,7 @@ private: } DebugOnly rv = thread->Dispatch( - NS_NewRunnableFunction("mscom::EnsureMTA::AsyncOperation", - aClosure), NS_DISPATCH_NORMAL); + NS_NewRunnableFunction(aClosure), NS_DISPATCH_NORMAL); MOZ_ASSERT(NS_SUCCEEDED(rv)); } diff --git a/ipc/mscom/Interceptor.cpp b/ipc/mscom/Interceptor.cpp index 913bafbbfc4d..4c18bbe26701 100644 --- a/ipc/mscom/Interceptor.cpp +++ b/ipc/mscom/Interceptor.cpp @@ -558,7 +558,7 @@ Interceptor::QueryInterfaceTarget(REFIID aIid, void** aOutput) MOZ_ASSERT(NS_IsMainThread()); hr = mTarget->QueryInterface(aIid, aOutput); }; - if (!invoker.Invoke(NS_NewRunnableFunction("Interceptor::QueryInterface", runOnMainThread))) { + if (!invoker.Invoke(NS_NewRunnableFunction(runOnMainThread))) { return E_FAIL; } return hr; diff --git a/ipc/mscom/InterceptorLog.cpp b/ipc/mscom/InterceptorLog.cpp index b1ec185b8c5c..7a2944d6108f 100644 --- a/ipc/mscom/InterceptorLog.cpp +++ b/ipc/mscom/InterceptorLog.cpp @@ -133,7 +133,7 @@ Logger::Logger(const nsACString& aLeafBaseName) } nsCOMPtr openRunnable( - NewNonOwningRunnableMethod("Logger::OpenFile", this, &Logger::OpenFile)); + NewNonOwningRunnableMethod(this, &Logger::OpenFile)); rv = NS_NewNamedThread("COM Intcpt Log", getter_AddRefs(mThread), openRunnable); if (NS_FAILED(rv)) { @@ -181,8 +181,7 @@ nsresult Logger::Shutdown() { MOZ_ASSERT(NS_IsMainThread()); - nsresult rv = mThread->Dispatch(NewNonOwningRunnableMethod("Logger::CloseFile", - this, + nsresult rv = mThread->Dispatch(NewNonOwningRunnableMethod(this, &Logger::CloseFile), NS_DISPATCH_NORMAL); NS_WARNING_ASSERTION(NS_SUCCEEDED(rv), "Dispatch failed"); @@ -284,8 +283,7 @@ Logger::LogQI(HRESULT aResult, IUnknown* aTarget, REFIID aIid, IUnknown* aInterf MutexAutoLock lock(mMutex); mEntries.AppendElement(line); - mThread->Dispatch(NewNonOwningRunnableMethod("Logger::Flush", - this, &Logger::Flush), + mThread->Dispatch(NewNonOwningRunnableMethod(this, &Logger::Flush), NS_DISPATCH_NORMAL); } @@ -395,8 +393,7 @@ Logger::LogEvent(ICallFrame* aCallFrame, IUnknown* aTargetInterface) // (3) Enqueue event for logging MutexAutoLock lock(mMutex); mEntries.AppendElement(line); - mThread->Dispatch(NewNonOwningRunnableMethod("Logger::Flush", - this, &Logger::Flush), + mThread->Dispatch(NewNonOwningRunnableMethod(this, &Logger::Flush), NS_DISPATCH_NORMAL); } diff --git a/ipc/mscom/MainThreadHandoff.cpp b/ipc/mscom/MainThreadHandoff.cpp index 8eec137d5be1..dad9161bd62d 100644 --- a/ipc/mscom/MainThreadHandoff.cpp +++ b/ipc/mscom/MainThreadHandoff.cpp @@ -122,8 +122,7 @@ class HandoffRunnable : public mozilla::Runnable { public: explicit HandoffRunnable(ICallFrame* aCallFrame, IUnknown* aTargetInterface) - : Runnable("HandoffRunnable") - , mCallFrame(aCallFrame) + : mCallFrame(aCallFrame) , mTargetInterface(aTargetInterface) , mResult(E_UNEXPECTED) { @@ -549,7 +548,7 @@ MainThreadHandoff::OnWalkInterface(REFIID aIid, PVOID* aInterface, }; MainThreadInvoker invoker; - invoker.Invoke(NS_NewRunnableFunction("MainThreadHandoff::OnWalkInterface", checkFn)); + invoker.Invoke(NS_NewRunnableFunction(checkFn)); } if (areTargetsEqual) { diff --git a/ipc/mscom/MainThreadInvoker.h b/ipc/mscom/MainThreadInvoker.h index e087412cbe26..b81a1eef91b7 100644 --- a/ipc/mscom/MainThreadInvoker.h +++ b/ipc/mscom/MainThreadInvoker.h @@ -37,12 +37,11 @@ private: template inline bool -InvokeOnMainThread(const char* aName, - Class* aObject, void (Class::*aMethod)(Args...), +InvokeOnMainThread(Class* aObject, void (Class::*aMethod)(Args...), Args... aArgs) { nsCOMPtr runnable( - NewNonOwningRunnableMethod(aName, aObject, aMethod, + NewNonOwningRunnableMethod(aObject, aMethod, Forward(aArgs)...)); MainThreadInvoker invoker; diff --git a/ipc/mscom/Ptr.h b/ipc/mscom/Ptr.h index c4fc2d3b6f85..8b83cc7a371a 100644 --- a/ipc/mscom/Ptr.h +++ b/ipc/mscom/Ptr.h @@ -41,8 +41,7 @@ struct MainThreadRelease return; } DebugOnly rv = - NS_DispatchToMainThread(NewNonOwningRunnableMethod("mscom::MainThreadRelease", - aPtr, + NS_DispatchToMainThread(NewNonOwningRunnableMethod(aPtr, &T::Release)); MOZ_ASSERT(NS_SUCCEEDED(rv)); } diff --git a/js/xpconnect/loader/ChromeScriptLoader.cpp b/js/xpconnect/loader/ChromeScriptLoader.cpp index fb771bcf9a20..6bda60fee844 100644 --- a/js/xpconnect/loader/ChromeScriptLoader.cpp +++ b/js/xpconnect/loader/ChromeScriptLoader.cpp @@ -37,17 +37,15 @@ public: NS_DECL_NSIINCREMENTALSTREAMLOADEROBSERVER NS_DECL_NSIRUNNABLE - AsyncScriptCompiler(JSContext* aCx, - nsIGlobalObject* aGlobal, + AsyncScriptCompiler(JSContext* aCx, nsIGlobalObject* aGlobal, const nsACString& aURL, const CompileScriptOptionsDictionary& aOptions, Promise* aPromise) - : mozilla::Runnable("AsyncScriptCompiler") - , mOptions(aCx) - , mURL(aURL) - , mGlobalObject(aGlobal) - , mPromise(aPromise) - , mCharset(aOptions.mCharset) + : mOptions(aCx) + , mURL(aURL) + , mGlobalObject(aGlobal) + , mPromise(aPromise) + , mCharset(aOptions.mCharset) { mOptions.setVersion(JSVERSION_DEFAULT) .setNoScriptRval(!aOptions.mHasReturnValue) diff --git a/js/xpconnect/loader/ScriptPreloader.cpp b/js/xpconnect/loader/ScriptPreloader.cpp index ca33e3a1aa5e..3152a2335756 100644 --- a/js/xpconnect/loader/ScriptPreloader.cpp +++ b/js/xpconnect/loader/ScriptPreloader.cpp @@ -571,10 +571,8 @@ ScriptPreloader::WriteCache() MonitorAutoUnlock mau(mSaveMonitor); NS_DispatchToMainThread( - NewRunnableMethod("ScriptPreloader::PrepareCacheWrite", - this, - &ScriptPreloader::PrepareCacheWrite), - NS_DISPATCH_SYNC); + NewRunnableMethod(this, &ScriptPreloader::PrepareCacheWrite), + NS_DISPATCH_SYNC); } if (mSaveComplete) { @@ -804,9 +802,7 @@ ScriptPreloader::OffThreadDecodeCallback(void* token, void* context) if (cache->mToken && !cache->mFinishDecodeRunnablePending) { cache->mFinishDecodeRunnablePending = true; NS_DispatchToMainThread( - NewRunnableMethod("ScriptPreloader::DoFinishOffThreadDecode", - cache, - &ScriptPreloader::DoFinishOffThreadDecode)); + NewRunnableMethod(cache, &ScriptPreloader::DoFinishOffThreadDecode)); } } diff --git a/js/xpconnect/loader/mozJSSubScriptLoader.cpp b/js/xpconnect/loader/mozJSSubScriptLoader.cpp index d813908725ab..47777a15c36c 100644 --- a/js/xpconnect/loader/mozJSSubScriptLoader.cpp +++ b/js/xpconnect/loader/mozJSSubScriptLoader.cpp @@ -762,11 +762,9 @@ class NotifyPrecompilationCompleteRunnable : public Runnable public: NS_DECL_NSIRUNNABLE - explicit NotifyPrecompilationCompleteRunnable( - ScriptPrecompiler* aPrecompiler) - : mozilla::Runnable("NotifyPrecompilationCompleteRunnable") - , mPrecompiler(aPrecompiler) - , mToken(nullptr) + explicit NotifyPrecompilationCompleteRunnable(ScriptPrecompiler* aPrecompiler) + : mPrecompiler(aPrecompiler) + , mToken(nullptr) {} void SetToken(void* aToken) { diff --git a/js/xpconnect/src/XPCComponents.cpp b/js/xpconnect/src/XPCComponents.cpp index 95cf5f8796d3..933a91850628 100644 --- a/js/xpconnect/src/XPCComponents.cpp +++ b/js/xpconnect/src/XPCComponents.cpp @@ -2635,11 +2635,7 @@ class PreciseGCRunnable : public Runnable { public: PreciseGCRunnable(ScheduledGCCallback* aCallback, bool aShrinking) - : mozilla::Runnable("PreciseGCRunnable") - , mCallback(aCallback) - , mShrinking(aShrinking) - { - } + : mCallback(aCallback), mShrinking(aShrinking) {} NS_IMETHOD Run() override { diff --git a/js/xpconnect/src/XPCJSRuntime.cpp b/js/xpconnect/src/XPCJSRuntime.cpp index f7f2d3d98707..972f72ad04da 100644 --- a/js/xpconnect/src/XPCJSRuntime.cpp +++ b/js/xpconnect/src/XPCJSRuntime.cpp @@ -746,8 +746,7 @@ XPCJSRuntime::DoCycleCollectionCallback(JSContext* cx) // The GC has detected that a CC at this point would collect a tremendous // amount of garbage that is being revivified unnecessarily. NS_DispatchToCurrentThread( - NS_NewRunnableFunction("XPCJSRuntime::DoCycleCollectionCallback", - []() { nsJSContext::CycleCollectNow(nullptr); })); + NS_NewRunnableFunction([](){nsJSContext::CycleCollectNow(nullptr);})); XPCJSRuntime* self = nsXPConnect::GetRuntimeInstance(); if (!self) @@ -963,10 +962,9 @@ class LargeAllocationFailureRunnable final : public Runnable public: LargeAllocationFailureRunnable() - : mozilla::Runnable("LargeAllocationFailureRunnable") - , mMutex("LargeAllocationFailureRunnable::mMutex") - , mCondVar(mMutex, "LargeAllocationFailureRunnable::mCondVar") - , mWaiting(true) + : mMutex("LargeAllocationFailureRunnable::mMutex"), + mCondVar(mMutex, "LargeAllocationFailureRunnable::mCondVar"), + mWaiting(true) { MOZ_ASSERT(!NS_IsMainThread()); } diff --git a/layout/base/AccessibleCaretEventHub.cpp b/layout/base/AccessibleCaretEventHub.cpp index 2c777396c857..dded3f6335f4 100644 --- a/layout/base/AccessibleCaretEventHub.cpp +++ b/layout/base/AccessibleCaretEventHub.cpp @@ -655,12 +655,8 @@ AccessibleCaretEventHub::LaunchLongTapInjector() } int32_t longTapDelay = gfxPrefs::UiClickHoldContextMenusDelay(); - mLongTapInjectorTimer->InitWithNamedFuncCallback( - FireLongTap, - this, - longTapDelay, - nsITimer::TYPE_ONE_SHOT, - "AccessibleCaretEventHub::LaunchLongTapInjector"); + mLongTapInjectorTimer->InitWithFuncCallback(FireLongTap, this, longTapDelay, + nsITimer::TYPE_ONE_SHOT); } void @@ -757,12 +753,8 @@ AccessibleCaretEventHub::LaunchScrollEndInjector() return; } - mScrollEndInjectorTimer->InitWithNamedFuncCallback( - FireScrollEnd, - this, - kScrollEndTimerDelay, - nsITimer::TYPE_ONE_SHOT, - "AccessibleCaretEventHub::LaunchScrollEndInjector"); + mScrollEndInjectorTimer->InitWithFuncCallback( + FireScrollEnd, this, kScrollEndTimerDelay, nsITimer::TYPE_ONE_SHOT); } void diff --git a/layout/base/PresShell.cpp b/layout/base/PresShell.cpp index 6ba4c4c75f91..3a9e3b56d680 100644 --- a/layout/base/PresShell.cpp +++ b/layout/base/PresShell.cpp @@ -542,10 +542,7 @@ class nsBeforeFirstPaintDispatcher : public Runnable { public: explicit nsBeforeFirstPaintDispatcher(nsIDocument* aDocument) - : mozilla::Runnable("nsBeforeFirstPaintDispatcher") - , mDocument(aDocument) - { - } + : mDocument(aDocument) {} // Fires the "before-first-paint" event so that interested parties (right now, the // mobile browser) are aware of it. @@ -2022,8 +2019,8 @@ PresShell::ResizeReflowIgnoreOverride(nscoord aWidth, nscoord aHeight, nscoord a "AsyncResizeEventCallback"); } } else { - RefPtr> event = NewRunnableMethod( - "PresShell::FireResizeEvent", this, &PresShell::FireResizeEvent); + RefPtr> event = + NewRunnableMethod(this, &PresShell::FireResizeEvent); nsresult rv = mDocument->Dispatch("PresShell::FireResizeEvent", TaskCategory::Other, do_AddRef(event)); @@ -6200,9 +6197,7 @@ PresShell::ScheduleApproximateFrameVisibilityUpdateNow() } RefPtr> event = - NewRunnableMethod("PresShell::UpdateApproximateFrameVisibility", - this, - &PresShell::UpdateApproximateFrameVisibility); + NewRunnableMethod(this, &PresShell::UpdateApproximateFrameVisibility); nsresult rv = mDocument->Dispatch("PresShell::UpdateApproximateFrameVisibility", TaskCategory::Other, diff --git a/layout/base/ZoomConstraintsClient.cpp b/layout/base/ZoomConstraintsClient.cpp index 77ccd80eb22b..b2bdc4cc4870 100644 --- a/layout/base/ZoomConstraintsClient.cpp +++ b/layout/base/ZoomConstraintsClient.cpp @@ -160,9 +160,7 @@ ZoomConstraintsClient::Observe(nsISupports* aSubject, const char* aTopic, const // returns the updated value. RefPtr> event = - NewRunnableMethod("ZoomConstraintsClient::RefreshZoomConstraints", - this, - &ZoomConstraintsClient::RefreshZoomConstraints); + NewRunnableMethod(this, &ZoomConstraintsClient::RefreshZoomConstraints); mDocument->Dispatch("ZoomConstraintsClient::RefreshZoomConstraints", TaskCategory::Other, event.forget()); diff --git a/layout/base/nsLayoutUtils.cpp b/layout/base/nsLayoutUtils.cpp index 0971e5cf5b16..4150155dc445 100644 --- a/layout/base/nsLayoutUtils.cpp +++ b/layout/base/nsLayoutUtils.cpp @@ -7927,23 +7927,19 @@ nsLayoutUtils::PostRestyleEvent(Element* aElement, } } -nsSetAttrRunnable::nsSetAttrRunnable(nsIContent* aContent, - nsIAtom* aAttrName, +nsSetAttrRunnable::nsSetAttrRunnable(nsIContent* aContent, nsIAtom* aAttrName, const nsAString& aValue) - : mozilla::Runnable("nsSetAttrRunnable") - , mContent(aContent) - , mAttrName(aAttrName) - , mValue(aValue) + : mContent(aContent), + mAttrName(aAttrName), + mValue(aValue) { NS_ASSERTION(aContent && aAttrName, "Missing stuff, prepare to crash"); } -nsSetAttrRunnable::nsSetAttrRunnable(nsIContent* aContent, - nsIAtom* aAttrName, +nsSetAttrRunnable::nsSetAttrRunnable(nsIContent* aContent, nsIAtom* aAttrName, int32_t aValue) - : mozilla::Runnable("nsSetAttrRunnable") - , mContent(aContent) - , mAttrName(aAttrName) + : mContent(aContent), + mAttrName(aAttrName) { NS_ASSERTION(aContent && aAttrName, "Missing stuff, prepare to crash"); mValue.AppendInt(aValue); @@ -7957,9 +7953,8 @@ nsSetAttrRunnable::Run() nsUnsetAttrRunnable::nsUnsetAttrRunnable(nsIContent* aContent, nsIAtom* aAttrName) - : mozilla::Runnable("nsUnsetAttrRunnable") - , mContent(aContent) - , mAttrName(aAttrName) + : mContent(aContent), + mAttrName(aAttrName) { NS_ASSERTION(aContent && aAttrName, "Missing stuff, prepare to crash"); } diff --git a/layout/base/nsPresContext.cpp b/layout/base/nsPresContext.cpp index 4fe3c11fbb23..b8215e9e2ffd 100644 --- a/layout/base/nsPresContext.cpp +++ b/layout/base/nsPresContext.cpp @@ -1798,9 +1798,7 @@ nsPresContext::ThemeChanged() sThemeChanged = true; nsCOMPtr ev = - NewRunnableMethod("nsPresContext::ThemeChangedInternal", - this, - &nsPresContext::ThemeChangedInternal); + NewRunnableMethod(this, &nsPresContext::ThemeChangedInternal); nsresult rv = Document()->Dispatch("nsPresContext::ThemeChangedInternal", TaskCategory::Other, ev.forget()); @@ -1863,9 +1861,7 @@ nsPresContext::SysColorChanged() if (!mPendingSysColorChanged) { sLookAndFeelChanged = true; nsCOMPtr ev = - NewRunnableMethod("nsPresContext::SysColorChangedInternal", - this, - &nsPresContext::SysColorChangedInternal); + NewRunnableMethod(this, &nsPresContext::SysColorChangedInternal); nsresult rv = Document()->Dispatch("nsPresContext::SysColorChangedInternal", TaskCategory::Other, ev.forget()); @@ -1900,9 +1896,7 @@ nsPresContext::UIResolutionChanged() { if (!mPendingUIResolutionChanged) { nsCOMPtr ev = - NewRunnableMethod("nsPresContext::UIResolutionChangedInternal", - this, - &nsPresContext::UIResolutionChangedInternal); + NewRunnableMethod(this, &nsPresContext::UIResolutionChangedInternal); nsresult rv = Document()->Dispatch("nsPresContext::UIResolutionChangedInternal", TaskCategory::Other, @@ -2668,13 +2662,11 @@ nsPresContext::NotifyDidPaintSubdocumentCallback(nsIDocument* aDocument, void* a class DelayedFireDOMPaintEvent : public Runnable { public: - DelayedFireDOMPaintEvent( - nsPresContext* aPresContext, - nsTArray* aList, - uint64_t aTransactionId, - const mozilla::TimeStamp& aTimeStamp = mozilla::TimeStamp()) - : mozilla::Runnable("DelayedFireDOMPaintEvent") - , mPresContext(aPresContext) + DelayedFireDOMPaintEvent(nsPresContext* aPresContext, + nsTArray* aList, + uint64_t aTransactionId, + const mozilla::TimeStamp& aTimeStamp = mozilla::TimeStamp()) + : mPresContext(aPresContext) , mTransactionId(aTransactionId) , mTimeStamp(aTimeStamp) { diff --git a/layout/base/nsRefreshDriver.cpp b/layout/base/nsRefreshDriver.cpp index df8a42bde400..e5f7bad37f2f 100644 --- a/layout/base/nsRefreshDriver.cpp +++ b/layout/base/nsRefreshDriver.cpp @@ -397,12 +397,7 @@ protected: mTargetTime = mLastFireTime + mRateDuration; uint32_t delay = static_cast(mRateMilliseconds); - mTimer->InitWithNamedFuncCallback( - TimerTick, - this, - delay, - nsITimer::TYPE_ONE_SHOT, - "SimpleTimerBasedRefreshDriverTimer::StartTimer"); + mTimer->InitWithFuncCallback(TimerTick, this, delay, nsITimer::TYPE_ONE_SHOT); } void StopTimer() override @@ -494,12 +489,7 @@ private: public: ParentProcessVsyncNotifier(RefreshDriverVsyncObserver* aObserver, TimeStamp aVsyncTimestamp) - : Runnable("VsyncRefreshDriverTimer::RefreshDriverVsyncObserver::" - "ParentProcessVsyncNotifier") - , mObserver(aObserver) - , mVsyncTimestamp(aVsyncTimestamp) - { - } + : mObserver(aObserver), mVsyncTimestamp(aVsyncTimestamp) {} NS_DECL_ISUPPORTS_INHERITED @@ -804,12 +794,7 @@ protected: // that we tick at consistent intervals. TimeStamp newTarget = aNowTime + mRateDuration; uint32_t delay = static_cast((newTarget - aNowTime).ToMilliseconds()); - mTimer->InitWithNamedFuncCallback( - TimerTick, - this, - delay, - nsITimer::TYPE_ONE_SHOT, - "StartupRefreshDriverTimer::ScheduleNextTick"); + mTimer->InitWithFuncCallback(TimerTick, this, delay, nsITimer::TYPE_ONE_SHOT); mTargetTime = newTarget; } }; @@ -884,11 +869,7 @@ protected: mTargetTime = mLastFireTime + mRateDuration; uint32_t delay = static_cast(mRateMilliseconds); - mTimer->InitWithNamedFuncCallback(TimerTickOne, - this, - delay, - nsITimer::TYPE_ONE_SHOT, - "InactiveRefreshDriverTimer::StartTimer"); + mTimer->InitWithFuncCallback(TimerTickOne, this, delay, nsITimer::TYPE_ONE_SHOT); } void StopTimer() override @@ -915,12 +896,7 @@ protected: // this doesn't need to be precise; do a simple schedule uint32_t delay = static_cast(mNextTickDuration); - mTimer->InitWithNamedFuncCallback( - TimerTickOne, - this, - delay, - nsITimer::TYPE_ONE_SHOT, - "InactiveRefreshDriverTimer::ScheduleNextTick"); + mTimer->InitWithFuncCallback(TimerTickOne, this, delay, nsITimer::TYPE_ONE_SHOT); LOG("[%p] inactive timer next tick in %f ms [index %d/%d]", this, mNextTickDuration, mNextDriverIndex, GetRefreshDriverCount()); @@ -2128,8 +2104,8 @@ nsRefreshDriver::Thaw() // updates our mMostRecentRefresh, but the DoRefresh call won't run // and notify our observers until we get back to the event loop. // Thus MostRecentRefresh() will lie between now and the DoRefresh. - RefPtr> event = NewRunnableMethod( - "nsRefreshDriver::DoRefresh", this, &nsRefreshDriver::DoRefresh); + RefPtr> event = + NewRunnableMethod(this, &nsRefreshDriver::DoRefresh); nsPresContext* pc = GetPresContext(); if (pc) { pc->Document()->Dispatch("nsRefreshDriver::DoRefresh", diff --git a/layout/forms/nsComboboxControlFrame.cpp b/layout/forms/nsComboboxControlFrame.cpp index 191f16177cac..77eea317de40 100644 --- a/layout/forms/nsComboboxControlFrame.cpp +++ b/layout/forms/nsComboboxControlFrame.cpp @@ -383,8 +383,7 @@ class nsResizeDropdownAtFinalPosition final { public: explicit nsResizeDropdownAtFinalPosition(nsComboboxControlFrame* aFrame) - : mozilla::Runnable("nsResizeDropdownAtFinalPosition") - , mFrame(aFrame) + : mFrame(aFrame) { } @@ -520,11 +519,7 @@ nsComboboxControlFrame::GetCSSTransformTranslation() class nsAsyncRollup : public Runnable { public: - explicit nsAsyncRollup(nsComboboxControlFrame* aFrame) - : mozilla::Runnable("nsAsyncRollup") - , mFrame(aFrame) - { - } + explicit nsAsyncRollup(nsComboboxControlFrame* aFrame) : mFrame(aFrame) {} NS_IMETHOD Run() override { if (mFrame.IsAlive()) { @@ -539,11 +534,7 @@ public: class nsAsyncResize : public Runnable { public: - explicit nsAsyncResize(nsComboboxControlFrame* aFrame) - : mozilla::Runnable("nsAsyncResize") - , mFrame(aFrame) - { - } + explicit nsAsyncResize(nsComboboxControlFrame* aFrame) : mFrame(aFrame) {} NS_IMETHOD Run() override { if (mFrame.IsAlive()) { diff --git a/layout/forms/nsComboboxControlFrame.h b/layout/forms/nsComboboxControlFrame.h index 93eb683b7244..81e76e22c6d2 100644 --- a/layout/forms/nsComboboxControlFrame.h +++ b/layout/forms/nsComboboxControlFrame.h @@ -253,11 +253,7 @@ protected: class RedisplayTextEvent : public mozilla::Runnable { public: NS_DECL_NSIRUNNABLE - explicit RedisplayTextEvent(nsComboboxControlFrame* c) - : mozilla::Runnable("nsComboboxControlFrame::RedisplayTextEvent") - , mControlFrame(c) - { - } + explicit RedisplayTextEvent(nsComboboxControlFrame *c) : mControlFrame(c) {} void Revoke() { mControlFrame = nullptr; } private: nsComboboxControlFrame *mControlFrame; diff --git a/layout/forms/nsDateTimeControlFrame.cpp b/layout/forms/nsDateTimeControlFrame.cpp index 58f661b5c734..d896ba9308df 100644 --- a/layout/forms/nsDateTimeControlFrame.cpp +++ b/layout/forms/nsDateTimeControlFrame.cpp @@ -403,9 +403,7 @@ nsDateTimeControlFrame::AttributeChanged(int32_t aNameSpaceID, do_QueryInterface(mInputAreaContent); if (aAttribute == nsGkAtoms::value) { if (inputAreaContent) { - nsContentUtils::AddScriptRunner(NewRunnableMethod( - "nsIDateTimeInputArea::NotifyInputElementValueChanged", - inputAreaContent, + nsContentUtils::AddScriptRunner(NewRunnableMethod(inputAreaContent, &nsIDateTimeInputArea::NotifyInputElementValueChanged)); } } else { diff --git a/layout/forms/nsDateTimeControlFrame.h b/layout/forms/nsDateTimeControlFrame.h index 20f65aca2d69..2e71f86f4d6f 100644 --- a/layout/forms/nsDateTimeControlFrame.h +++ b/layout/forms/nsDateTimeControlFrame.h @@ -87,8 +87,7 @@ private: { public: explicit SyncDisabledStateEvent(nsDateTimeControlFrame* aFrame) - : mozilla::Runnable("nsDateTimeControlFrame::SyncDisabledStateEvent") - , mFrame(aFrame) + : mFrame(aFrame) {} NS_IMETHOD Run() override diff --git a/layout/forms/nsFileControlFrame.h b/layout/forms/nsFileControlFrame.h index efc778c375f3..57f96ac0f447 100644 --- a/layout/forms/nsFileControlFrame.h +++ b/layout/forms/nsFileControlFrame.h @@ -95,8 +95,7 @@ protected: { public: explicit SyncDisabledStateEvent(nsFileControlFrame* aFrame) - : mozilla::Runnable("nsFileControlFrame::SyncDisabledStateEvent") - , mFrame(aFrame) + : mFrame(aFrame) {} NS_IMETHOD Run() override { diff --git a/layout/forms/nsNumberControlFrame.cpp b/layout/forms/nsNumberControlFrame.cpp index c2c31ef40998..ab7d3d5a193c 100644 --- a/layout/forms/nsNumberControlFrame.cpp +++ b/layout/forms/nsNumberControlFrame.cpp @@ -303,9 +303,8 @@ class FocusTextField : public Runnable { public: FocusTextField(nsIContent* aNumber, nsIContent* aTextField) - : mozilla::Runnable("FocusTextField") - , mNumber(aNumber) - , mTextField(aTextField) + : mNumber(aNumber), + mTextField(aTextField) {} NS_IMETHOD Run() override diff --git a/layout/forms/nsNumberControlFrame.h b/layout/forms/nsNumberControlFrame.h index b7a53489fd53..826a0119f052 100644 --- a/layout/forms/nsNumberControlFrame.h +++ b/layout/forms/nsNumberControlFrame.h @@ -174,8 +174,7 @@ private: { public: explicit SyncDisabledStateEvent(nsNumberControlFrame* aFrame) - : mozilla::Runnable("nsNumberControlFrame::SyncDisabledStateEvent") - , mFrame(aFrame) + : mFrame(aFrame) {} NS_IMETHOD Run() override diff --git a/layout/forms/nsTextControlFrame.h b/layout/forms/nsTextControlFrame.h index b657ce3f2064..3b04fdb622d9 100644 --- a/layout/forms/nsTextControlFrame.h +++ b/layout/forms/nsTextControlFrame.h @@ -233,11 +233,8 @@ protected: class EditorInitializer : public mozilla::Runnable { public: - explicit EditorInitializer(nsTextControlFrame* aFrame) - : mozilla::Runnable("nsTextControlFrame::EditorInitializer") - , mFrame(aFrame) - { - } + explicit EditorInitializer(nsTextControlFrame* aFrame) : + mFrame(aFrame) {} NS_IMETHOD Run() override; @@ -255,11 +252,8 @@ protected: class ScrollOnFocusEvent : public mozilla::Runnable { public: - explicit ScrollOnFocusEvent(nsTextControlFrame* aFrame) - : mozilla::Runnable("nsTextControlFrame::ScrollOnFocusEvent") - , mFrame(aFrame) - { - } + explicit ScrollOnFocusEvent(nsTextControlFrame* aFrame) : + mFrame(aFrame) {} NS_DECL_NSIRUNNABLE diff --git a/layout/generic/nsGfxScrollFrame.cpp b/layout/generic/nsGfxScrollFrame.cpp index b051f93f735c..cc581b1fe05c 100644 --- a/layout/generic/nsGfxScrollFrame.cpp +++ b/layout/generic/nsGfxScrollFrame.cpp @@ -2548,12 +2548,9 @@ void ScrollFrameHelper::MarkRecentlyScrolled() void ScrollFrameHelper::ResetDisplayPortExpiryTimer() { if (mDisplayPortExpiryTimer) { - mDisplayPortExpiryTimer->InitWithNamedFuncCallback( - RemoveDisplayPortCallback, - this, - gfxPrefs::APZDisplayPortExpiryTime(), - nsITimer::TYPE_ONE_SHOT, - "ScrollFrameHelper::ResetDisplayPortExpiryTimer"); + mDisplayPortExpiryTimer->InitWithFuncCallback( + RemoveDisplayPortCallback, this, + gfxPrefs::APZDisplayPortExpiryTime(), nsITimer::TYPE_ONE_SHOT); } } @@ -2713,12 +2710,8 @@ ScrollFrameHelper::ScheduleSyntheticMouseMove() } } - mScrollActivityTimer->InitWithNamedFuncCallback( - ScrollActivityCallback, - this, - 100, - nsITimer::TYPE_ONE_SHOT, - "ScrollFrameHelper::ScheduleSyntheticMouseMove"); + mScrollActivityTimer->InitWithFuncCallback( + ScrollActivityCallback, this, 100, nsITimer::TYPE_ONE_SHOT); } void diff --git a/layout/generic/nsGfxScrollFrame.h b/layout/generic/nsGfxScrollFrame.h index 9531cc839f81..4a641b362241 100644 --- a/layout/generic/nsGfxScrollFrame.h +++ b/layout/generic/nsGfxScrollFrame.h @@ -137,11 +137,7 @@ public: class AsyncScrollPortEvent : public Runnable { public: NS_DECL_NSIRUNNABLE - explicit AsyncScrollPortEvent(ScrollFrameHelper* helper) - : Runnable("ScrollFrameHelper::AsyncScrollPortEvent") - , mHelper(helper) - { - } + explicit AsyncScrollPortEvent(ScrollFrameHelper *helper) : mHelper(helper) {} void Revoke() { mHelper = nullptr; } private: ScrollFrameHelper *mHelper; @@ -150,11 +146,7 @@ public: class ScrolledAreaEvent : public Runnable { public: NS_DECL_NSIRUNNABLE - explicit ScrolledAreaEvent(ScrollFrameHelper* helper) - : Runnable("ScrollFrameHelper::ScrolledAreaEvent") - , mHelper(helper) - { - } + explicit ScrolledAreaEvent(ScrollFrameHelper *helper) : mHelper(helper) {} void Revoke() { mHelper = nullptr; } private: ScrollFrameHelper *mHelper; diff --git a/layout/generic/nsPluginFrame.h b/layout/generic/nsPluginFrame.h index 44373bd527c4..14484223b952 100644 --- a/layout/generic/nsPluginFrame.h +++ b/layout/generic/nsPluginFrame.h @@ -292,12 +292,9 @@ private: class PluginEventNotifier : public mozilla::Runnable { public: - explicit PluginEventNotifier(const nsString& aEventType) - : mozilla::Runnable("nsPluginFrame::PluginEventNotifier") - , mEventType(aEventType) - { - } - + explicit PluginEventNotifier(const nsString &aEventType) : + mEventType(aEventType) {} + NS_IMETHOD Run() override; private: nsString mEventType; diff --git a/layout/generic/nsSubDocumentFrame.cpp b/layout/generic/nsSubDocumentFrame.cpp index 6fa63a387f85..9bf63a21ea87 100644 --- a/layout/generic/nsSubDocumentFrame.cpp +++ b/layout/generic/nsSubDocumentFrame.cpp @@ -84,11 +84,7 @@ NS_QUERYFRAME_TAIL_INHERITING(nsAtomicContainerFrame) class AsyncFrameInit : public Runnable { public: - explicit AsyncFrameInit(nsIFrame* aFrame) - : mozilla::Runnable("AsyncFrameInit") - , mFrame(aFrame) - { - } + explicit AsyncFrameInit(nsIFrame* aFrame) : mFrame(aFrame) {} NS_IMETHOD Run() override { PROFILER_LABEL("mozilla", "AsyncFrameInit::Run", js::ProfileEntry::Category::OTHER); @@ -912,11 +908,10 @@ public: nsFrameLoader* aFrameLoader, nsIPresShell* aPresShell, bool aHideViewerIfFrameless) - : mozilla::Runnable("nsHideViewer") - , mFrameElement(aFrameElement) - , mFrameLoader(aFrameLoader) - , mPresShell(aPresShell) - , mHideViewerIfFrameless(aHideViewerIfFrameless) + : mFrameElement(aFrameElement), + mFrameLoader(aFrameLoader), + mPresShell(aPresShell), + mHideViewerIfFrameless(aHideViewerIfFrameless) { NS_ASSERTION(mFrameElement, "Must have a frame element"); NS_ASSERTION(mFrameLoader, "Must have a frame loader"); diff --git a/layout/generic/nsVideoFrame.cpp b/layout/generic/nsVideoFrame.cpp index a9d235f199d5..6ba2cd8705e1 100644 --- a/layout/generic/nsVideoFrame.cpp +++ b/layout/generic/nsVideoFrame.cpp @@ -265,10 +265,7 @@ class DispatchResizeToControls : public Runnable { public: explicit DispatchResizeToControls(nsIContent* aContent) - : mozilla::Runnable("DispatchResizeToControls") - , mContent(aContent) - { - } + : mContent(aContent) {} NS_IMETHOD Run() override { nsContentUtils::DispatchTrustedEvent(mContent->OwnerDoc(), mContent, NS_LITERAL_STRING("resizevideocontrols"), diff --git a/layout/ipc/VsyncParent.cpp b/layout/ipc/VsyncParent.cpp index d15e71d41d56..e0d20101c84c 100644 --- a/layout/ipc/VsyncParent.cpp +++ b/layout/ipc/VsyncParent.cpp @@ -50,8 +50,7 @@ VsyncParent::NotifyVsync(TimeStamp aTimeStamp) // Called on hardware vsync thread. We should post to current ipc thread. MOZ_ASSERT(!IsOnBackgroundThread()); nsCOMPtr vsyncEvent = - NewRunnableMethod("layout::VsyncParent::DispatchVsyncEvent", - this, + NewRunnableMethod(this, &VsyncParent::DispatchVsyncEvent, aTimeStamp); MOZ_ALWAYS_SUCCEEDS(mBackgroundThread->Dispatch(vsyncEvent, NS_DISPATCH_NORMAL)); diff --git a/layout/printing/nsPrintEngine.cpp b/layout/printing/nsPrintEngine.cpp index 711429e23e84..82ba2dc215d1 100644 --- a/layout/printing/nsPrintEngine.cpp +++ b/layout/printing/nsPrintEngine.cpp @@ -3690,10 +3690,8 @@ nsPrintEngine::Observe(nsISupports *aSubject, const char *aTopic, const char16_t //--------------------------------------------------------------- class nsPrintCompletionEvent : public Runnable { public: - explicit nsPrintCompletionEvent(nsIDocumentViewerPrint* docViewerPrint) - : mozilla::Runnable("nsPrintCompletionEvent") - , mDocViewerPrint(docViewerPrint) - { + explicit nsPrintCompletionEvent(nsIDocumentViewerPrint *docViewerPrint) + : mDocViewerPrint(docViewerPrint) { NS_ASSERTION(mDocViewerPrint, "mDocViewerPrint is null."); } diff --git a/layout/style/FontFaceSet.cpp b/layout/style/FontFaceSet.cpp index 7de79d532ecc..44eaded56a60 100644 --- a/layout/style/FontFaceSet.cpp +++ b/layout/style/FontFaceSet.cpp @@ -1498,9 +1498,7 @@ FontFaceSet::DispatchCheckLoadingFinishedAfterDelay() } nsCOMPtr checkTask = - NewRunnableMethod("dom::FontFaceSet::CheckLoadingFinishedAfterDelay", - this, - &FontFaceSet::CheckLoadingFinishedAfterDelay); + NewRunnableMethod(this, &FontFaceSet::CheckLoadingFinishedAfterDelay); mDocument->Dispatch("FontFaceSet::CheckLoadingFinishedAfterDelay", TaskCategory::Other, checkTask.forget()); } diff --git a/layout/style/nsFontFaceLoader.cpp b/layout/style/nsFontFaceLoader.cpp index ddc1068a2b7b..d8bdee0dd063 100644 --- a/layout/style/nsFontFaceLoader.cpp +++ b/layout/style/nsFontFaceLoader.cpp @@ -141,12 +141,10 @@ nsFontFaceLoader::LoadTimerCallback(nsITimer* aTimer, void* aClosure) ufe->mFontDataLoadingState = gfxUserFontEntry::LOADING_ALMOST_DONE; uint32_t delay; loader->mLoadTimer->GetDelay(&delay); - loader->mLoadTimer->InitWithNamedFuncCallback( - LoadTimerCallback, - static_cast(loader), - delay >> 1, - nsITimer::TYPE_ONE_SHOT, - "nsFontFaceLoader::LoadTimerCallback"); + loader->mLoadTimer->InitWithFuncCallback(LoadTimerCallback, + static_cast(loader), + delay >> 1, + nsITimer::TYPE_ONE_SHOT); updateUserFontSet = false; LOG(("userfonts (%p) 75%% done, resetting timer\n", loader)); } diff --git a/layout/style/nsStyleStruct.cpp b/layout/style/nsStyleStruct.cpp index e4d7d4e21b7d..47b8fad406a7 100644 --- a/layout/style/nsStyleStruct.cpp +++ b/layout/style/nsStyleStruct.cpp @@ -1937,8 +1937,7 @@ public: already_AddRefed aRequestProxy, already_AddRefed aImageValue, already_AddRefed aImageTracker) - : mozilla::Runnable("StyleImageRequestCleanupTask") - , mModeFlags(aModeFlags) + : mModeFlags(aModeFlags) , mRequestProxy(aRequestProxy) , mImageValue(aImageValue) , mImageTracker(aImageTracker) @@ -2128,7 +2127,6 @@ CachedBorderImageData::GetCachedSVGViewportSize() struct PurgeCachedImagesTask : mozilla::Runnable { - PurgeCachedImagesTask() : mozilla::Runnable("PurgeCachedImagesTask") {} NS_IMETHOD Run() final { mSubImages.Clear(); diff --git a/layout/svg/SVGTextFrame.h b/layout/svg/SVGTextFrame.h index bd4c450f8e3e..6ceb82cf22dd 100644 --- a/layout/svg/SVGTextFrame.h +++ b/layout/svg/SVGTextFrame.h @@ -130,11 +130,7 @@ private: class GlyphMetricsUpdater : public Runnable { public: NS_DECL_NSIRUNNABLE - explicit GlyphMetricsUpdater(SVGTextFrame* aFrame) - : Runnable("GlyphMetricsUpdater") - , mFrame(aFrame) - { - } + explicit GlyphMetricsUpdater(SVGTextFrame* aFrame) : mFrame(aFrame) { } static void Run(SVGTextFrame* aFrame); void Revoke() { mFrame = nullptr; } private: diff --git a/layout/tables/nsTableFrame.cpp b/layout/tables/nsTableFrame.cpp index 9f56979bdd20..35da37222846 100644 --- a/layout/tables/nsTableFrame.cpp +++ b/layout/tables/nsTableFrame.cpp @@ -5035,11 +5035,8 @@ GetPaintStyleInfo(const nsIFrame* aFrame, class nsDelayedCalcBCBorders : public Runnable { public: - explicit nsDelayedCalcBCBorders(nsIFrame* aFrame) - : mozilla::Runnable("nsDelayedCalcBCBorders") - , mFrame(aFrame) - { - } + explicit nsDelayedCalcBCBorders(nsIFrame* aFrame) : + mFrame(aFrame) {} NS_IMETHOD Run() override { if (mFrame) { diff --git a/layout/xul/nsImageBoxFrame.cpp b/layout/xul/nsImageBoxFrame.cpp index bbb3e721ee61..f43a3d1476f6 100644 --- a/layout/xul/nsImageBoxFrame.cpp +++ b/layout/xul/nsImageBoxFrame.cpp @@ -64,12 +64,8 @@ using namespace mozilla::layers; class nsImageBoxFrameEvent : public Runnable { public: - nsImageBoxFrameEvent(nsIContent* content, EventMessage message) - : mozilla::Runnable("nsImageBoxFrameEvent") - , mContent(content) - , mMessage(message) - { - } + nsImageBoxFrameEvent(nsIContent *content, EventMessage message) + : mContent(content), mMessage(message) {} NS_IMETHOD Run() override; diff --git a/layout/xul/nsListBoxBodyFrame.h b/layout/xul/nsListBoxBodyFrame.h index f1b4e394c063..6d60b9c3ad3c 100644 --- a/layout/xul/nsListBoxBodyFrame.h +++ b/layout/xul/nsListBoxBodyFrame.h @@ -152,11 +152,9 @@ protected: class nsPositionChangedEvent : public mozilla::Runnable { public: - nsPositionChangedEvent(nsListBoxBodyFrame* aFrame, bool aUp, int32_t aDelta) - : mozilla::Runnable("nsListBoxBodyFrame::nsPositionChangedEvent") - , mFrame(aFrame) - , mUp(aUp) - , mDelta(aDelta) + nsPositionChangedEvent(nsListBoxBodyFrame* aFrame, + bool aUp, int32_t aDelta) : + mFrame(aFrame), mUp(aUp), mDelta(aDelta) {} NS_IMETHOD Run() override diff --git a/layout/xul/nsMenuBarFrame.cpp b/layout/xul/nsMenuBarFrame.cpp index a169f18a9cc4..1687128cb7bd 100644 --- a/layout/xul/nsMenuBarFrame.cpp +++ b/layout/xul/nsMenuBarFrame.cpp @@ -257,14 +257,11 @@ class nsMenuBarSwitchMenu : public Runnable { public: nsMenuBarSwitchMenu(nsIContent* aMenuBar, - nsIContent* aOldMenu, - nsIContent* aNewMenu, + nsIContent *aOldMenu, + nsIContent *aNewMenu, bool aSelectFirstItem) - : mozilla::Runnable("nsMenuBarSwitchMenu") - , mMenuBar(aMenuBar) - , mOldMenu(aOldMenu) - , mNewMenu(aNewMenu) - , mSelectFirstItem(aSelectFirstItem) + : mMenuBar(aMenuBar), mOldMenu(aOldMenu), mNewMenu(aNewMenu), + mSelectFirstItem(aSelectFirstItem) { } diff --git a/layout/xul/nsMenuFrame.cpp b/layout/xul/nsMenuFrame.cpp index 72495127a6b6..c7232f85a99d 100644 --- a/layout/xul/nsMenuFrame.cpp +++ b/layout/xul/nsMenuFrame.cpp @@ -68,13 +68,10 @@ const int32_t kBlinkDelay = 67; // milliseconds class nsMenuActivateEvent : public Runnable { public: - nsMenuActivateEvent(nsIContent* aMenu, + nsMenuActivateEvent(nsIContent *aMenu, nsPresContext* aPresContext, bool aIsActivate) - : mozilla::Runnable("nsMenuActivateEvent") - , mMenu(aMenu) - , mPresContext(aPresContext) - , mIsActivate(aIsActivate) + : mMenu(aMenu), mPresContext(aPresContext), mIsActivate(aIsActivate) { } @@ -117,9 +114,7 @@ class nsMenuAttributeChangedEvent : public Runnable { public: nsMenuAttributeChangedEvent(nsIFrame* aFrame, nsIAtom* aAttr) - : mozilla::Runnable("nsMenuAttributeChangedEvent") - , mFrame(aFrame) - , mAttr(aAttr) + : mFrame(aFrame), mAttr(aAttr) { } diff --git a/layout/xul/nsMenuPopupFrame.h b/layout/xul/nsMenuPopupFrame.h index 298444ddee8b..25b893e24ba8 100644 --- a/layout/xul/nsMenuPopupFrame.h +++ b/layout/xul/nsMenuPopupFrame.h @@ -138,10 +138,8 @@ class nsXULPopupShownEvent : public mozilla::Runnable, public nsIDOMEventListener { public: - nsXULPopupShownEvent(nsIContent* aPopup, nsPresContext* aPresContext) - : mozilla::Runnable("nsXULPopupShownEvent") - , mPopup(aPopup) - , mPresContext(aPresContext) + nsXULPopupShownEvent(nsIContent *aPopup, nsPresContext* aPresContext) + : mPopup(aPopup), mPresContext(aPresContext) { } diff --git a/layout/xul/nsProgressMeterFrame.cpp b/layout/xul/nsProgressMeterFrame.cpp index 9efd665b1899..801732c63e13 100644 --- a/layout/xul/nsProgressMeterFrame.cpp +++ b/layout/xul/nsProgressMeterFrame.cpp @@ -36,14 +36,12 @@ public: nsFrameState mBitToAdd; }; -nsReflowFrameRunnable::nsReflowFrameRunnable( - nsIFrame* aFrame, - nsIPresShell::IntrinsicDirty aIntrinsicDirty, - nsFrameState aBitToAdd) - : mozilla::Runnable("nsReflowFrameRunnable") - , mWeakFrame(aFrame) - , mIntrinsicDirty(aIntrinsicDirty) - , mBitToAdd(aBitToAdd) +nsReflowFrameRunnable::nsReflowFrameRunnable(nsIFrame* aFrame, + nsIPresShell::IntrinsicDirty aIntrinsicDirty, + nsFrameState aBitToAdd) + : mWeakFrame(aFrame), + mIntrinsicDirty(aIntrinsicDirty), + mBitToAdd(aBitToAdd) { } diff --git a/layout/xul/nsSliderFrame.cpp b/layout/xul/nsSliderFrame.cpp index 12d8c3670317..1892d835afcf 100644 --- a/layout/xul/nsSliderFrame.cpp +++ b/layout/xul/nsSliderFrame.cpp @@ -210,11 +210,8 @@ public: nsIAtom* aWhich, int32_t aValue, bool aUserChanged) - : mozilla::Runnable("nsValueChangedRunnable") - , mListener(aListener) - , mWhich(aWhich) - , mValue(aValue) - , mUserChanged(aUserChanged) + : mListener(aListener), mWhich(aWhich), + mValue(aValue), mUserChanged(aUserChanged) {} NS_IMETHOD Run() override @@ -232,10 +229,10 @@ public: class nsDragStateChangedRunnable : public Runnable { public: - nsDragStateChangedRunnable(nsISliderListener* aListener, bool aDragBeginning) - : mozilla::Runnable("nsDragStateChangedRunnable") - , mListener(aListener) - , mDragBeginning(aDragBeginning) + nsDragStateChangedRunnable(nsISliderListener* aListener, + bool aDragBeginning) + : mListener(aListener), + mDragBeginning(aDragBeginning) {} NS_IMETHOD Run() override diff --git a/layout/xul/nsXULPopupManager.h b/layout/xul/nsXULPopupManager.h index 0956a159555e..25ffa8095b63 100644 --- a/layout/xul/nsXULPopupManager.h +++ b/layout/xul/nsXULPopupManager.h @@ -203,13 +203,12 @@ public: class nsXULPopupShowingEvent : public mozilla::Runnable { public: - nsXULPopupShowingEvent(nsIContent* aPopup, + nsXULPopupShowingEvent(nsIContent *aPopup, bool aIsContextMenu, bool aSelectFirstItem) - : mozilla::Runnable("nsXULPopupShowingEvent") - , mPopup(aPopup) - , mIsContextMenu(aIsContextMenu) - , mSelectFirstItem(aSelectFirstItem) + : mPopup(aPopup), + mIsContextMenu(aIsContextMenu), + mSelectFirstItem(aSelectFirstItem) { NS_ASSERTION(aPopup, "null popup supplied to nsXULPopupShowingEvent constructor"); } @@ -226,19 +225,18 @@ private: class nsXULPopupHidingEvent : public mozilla::Runnable { public: - nsXULPopupHidingEvent(nsIContent* aPopup, + nsXULPopupHidingEvent(nsIContent *aPopup, nsIContent* aNextPopup, nsIContent* aLastPopup, nsPopupType aPopupType, bool aDeselectMenu, bool aIsCancel) - : mozilla::Runnable("nsXULPopupHidingEvent") - , mPopup(aPopup) - , mNextPopup(aNextPopup) - , mLastPopup(aLastPopup) - , mPopupType(aPopupType) - , mDeselectMenu(aDeselectMenu) - , mIsRollup(aIsCancel) + : mPopup(aPopup), + mNextPopup(aNextPopup), + mLastPopup(aLastPopup), + mPopupType(aPopupType), + mDeselectMenu(aDeselectMenu), + mIsRollup(aIsCancel) { NS_ASSERTION(aPopup, "null popup supplied to nsXULPopupHidingEvent constructor"); // aNextPopup and aLastPopup may be null @@ -259,11 +257,10 @@ private: class nsXULPopupPositionedEvent : public mozilla::Runnable { public: - explicit nsXULPopupPositionedEvent(nsIContent* aPopup, + explicit nsXULPopupPositionedEvent(nsIContent *aPopup, bool aIsContextMenu, bool aSelectFirstItem) - : mozilla::Runnable("nsXULPopupPositionedEvent") - , mPopup(aPopup) + : mPopup(aPopup) , mIsContextMenu(aIsContextMenu) , mSelectFirstItem(aSelectFirstItem) { @@ -288,7 +285,7 @@ private: class nsXULMenuCommandEvent : public mozilla::Runnable { public: - nsXULMenuCommandEvent(nsIContent* aMenu, + nsXULMenuCommandEvent(nsIContent *aMenu, bool aIsTrusted, bool aShift, bool aControl, @@ -296,16 +293,15 @@ public: bool aMeta, bool aUserInput, bool aFlipChecked) - : mozilla::Runnable("nsXULMenuCommandEvent") - , mMenu(aMenu) - , mIsTrusted(aIsTrusted) - , mShift(aShift) - , mControl(aControl) - , mAlt(aAlt) - , mMeta(aMeta) - , mUserInput(aUserInput) - , mFlipChecked(aFlipChecked) - , mCloseMenuMode(CloseMenuMode_Auto) + : mMenu(aMenu), + mIsTrusted(aIsTrusted), + mShift(aShift), + mControl(aControl), + mAlt(aAlt), + mMeta(aMeta), + mUserInput(aUserInput), + mFlipChecked(aFlipChecked), + mCloseMenuMode(CloseMenuMode_Auto) { NS_ASSERTION(aMenu, "null menu supplied to nsXULMenuCommandEvent constructor"); } diff --git a/layout/xul/tree/nsTreeBodyFrame.cpp b/layout/xul/tree/nsTreeBodyFrame.cpp index 82bf4cc2fe94..621496c432d9 100644 --- a/layout/xul/tree/nsTreeBodyFrame.cpp +++ b/layout/xul/tree/nsTreeBodyFrame.cpp @@ -4936,11 +4936,7 @@ nsTreeBodyFrame::FireInvalidateEvent(int32_t aStartRowIdx, int32_t aEndRowIdx, class nsOverflowChecker : public Runnable { public: - explicit nsOverflowChecker(nsTreeBodyFrame* aFrame) - : mozilla::Runnable("nsOverflowChecker") - , mFrame(aFrame) - { - } + explicit nsOverflowChecker(nsTreeBodyFrame* aFrame) : mFrame(aFrame) {} NS_IMETHOD Run() override { if (mFrame.IsAlive()) { diff --git a/layout/xul/tree/nsTreeBodyFrame.h b/layout/xul/tree/nsTreeBodyFrame.h index e68e0b0654e9..b70767399e9c 100644 --- a/layout/xul/tree/nsTreeBodyFrame.h +++ b/layout/xul/tree/nsTreeBodyFrame.h @@ -482,11 +482,7 @@ protected: class ScrollEvent : public mozilla::Runnable { public: NS_DECL_NSIRUNNABLE - explicit ScrollEvent(nsTreeBodyFrame* aInner) - : mozilla::Runnable("nsTreeBodyFrame::ScrollEvent") - , mInner(aInner) - { - } + explicit ScrollEvent(nsTreeBodyFrame *aInner) : mInner(aInner) {} void Revoke() { mInner = nullptr; } private: nsTreeBodyFrame* mInner; diff --git a/media/mtransport/nr_socket_prsock.cpp b/media/mtransport/nr_socket_prsock.cpp index c041df0da177..c4f3c5844a85 100644 --- a/media/mtransport/nr_socket_prsock.cpp +++ b/media/mtransport/nr_socket_prsock.cpp @@ -1673,7 +1673,7 @@ class NrTcpSocketIpc::TcpSocketReadyRunner: public Runnable { public: explicit TcpSocketReadyRunner(NrTcpSocketIpc *sck) - : Runnable("NrTcpSocketIpc::TcpSocketReadyRunner"), socket_(sck) {} + : socket_(sck) {} NS_IMETHOD Run() override { socket_->maybe_post_socket_ready(); diff --git a/media/mtransport/runnable_utils.h b/media/mtransport/runnable_utils.h index b3a04a8af3d1..3a773e3565c4 100644 --- a/media/mtransport/runnable_utils.h +++ b/media/mtransport/runnable_utils.h @@ -53,8 +53,6 @@ RunOnThreadInternal(nsIEventTarget *thread, nsIRunnable *runnable, uint32_t flag template class runnable_args_base : public Runnable { public: - runnable_args_base() : Runnable("media-runnable_args_base") {} - NS_IMETHOD Run() = 0; }; diff --git a/media/mtransport/test/TestSyncRunnable.cpp b/media/mtransport/test/TestSyncRunnable.cpp index a53be04fd103..02c7d512018f 100644 --- a/media/mtransport/test/TestSyncRunnable.cpp +++ b/media/mtransport/test/TestSyncRunnable.cpp @@ -14,7 +14,7 @@ nsIThread *gThread = nullptr; class TestRunnable : public Runnable { public: - TestRunnable() : Runnable("TestRunnable"), ran_(false) {} + TestRunnable() : ran_(false) {} NS_IMETHOD Run() override { diff --git a/media/mtransport/test/sockettransportservice_unittest.cpp b/media/mtransport/test/sockettransportservice_unittest.cpp index 0f0e5924ac65..a7edaa193de3 100644 --- a/media/mtransport/test/sockettransportservice_unittest.cpp +++ b/media/mtransport/test/sockettransportservice_unittest.cpp @@ -78,7 +78,7 @@ class SocketTransportServiceTest : public MtransportTest { class EventReceived : public Runnable { public: explicit EventReceived(SocketTransportServiceTest *test) : - Runnable("EventReceived"), test_(test) {} + test_(test) {} NS_IMETHOD Run() override { test_->ReceiveEvent(); @@ -93,7 +93,7 @@ public: class RegisterEvent : public Runnable { public: explicit RegisterEvent(SocketTransportServiceTest *test) : - Runnable("RegisterEvent"), test_(test) {} + test_(test) {} NS_IMETHOD Run() override { test_->RegisterHandler(); diff --git a/media/webrtc/signaling/src/media-conduit/WebrtcGmpVideoCodec.h b/media/webrtc/signaling/src/media-conduit/WebrtcGmpVideoCodec.h index b8067a278f18..2d5c5c412769 100644 --- a/media/webrtc/signaling/src/media-conduit/WebrtcGmpVideoCodec.h +++ b/media/webrtc/signaling/src/media-conduit/WebrtcGmpVideoCodec.h @@ -80,7 +80,6 @@ class GmpInitDoneRunnable : public Runnable { public: explicit GmpInitDoneRunnable(const std::string& aPCHandle) : - Runnable("GmpInitDoneRunnable"), mResult(WEBRTC_VIDEO_CODEC_OK), mPCHandle(aPCHandle) { diff --git a/media/webrtc/signaling/src/media-conduit/WebrtcMediaCodecVP8VideoCodec.cpp b/media/webrtc/signaling/src/media-conduit/WebrtcMediaCodecVP8VideoCodec.cpp index 4119c21ef7bc..9b48fa1a7874 100644 --- a/media/webrtc/signaling/src/media-conduit/WebrtcMediaCodecVP8VideoCodec.cpp +++ b/media/webrtc/signaling/src/media-conduit/WebrtcMediaCodecVP8VideoCodec.cpp @@ -260,8 +260,7 @@ public: protected: MediaCodecOutputDrain() - : Runnable("MediaCodecOutputDrain") - , mMonitor("MediaCodecOutputDrain monitor") + : mMonitor("MediaCodecOutputDrain monitor") , mEnding(false) {} diff --git a/media/webrtc/signaling/src/mediapipeline/MediaPipeline.cpp b/media/webrtc/signaling/src/mediapipeline/MediaPipeline.cpp index a542754849b6..f1f98273aa65 100644 --- a/media/webrtc/signaling/src/mediapipeline/MediaPipeline.cpp +++ b/media/webrtc/signaling/src/mediapipeline/MediaPipeline.cpp @@ -206,7 +206,6 @@ public: nsCOMPtr runnable = NewRunnableMethod, bool>( - "VideoFrameConverter::ProcessVideoFrame", this, &VideoFrameConverter::ProcessVideoFrame, aChunk.mFrame.GetImage(), forceBlack); mTaskQueue->Dispatch(runnable.forget()); diff --git a/media/webrtc/signaling/src/mediapipeline/MediaPipeline.h b/media/webrtc/signaling/src/mediapipeline/MediaPipeline.h index 19cc9e567eae..6d7d36b9e3a5 100644 --- a/media/webrtc/signaling/src/mediapipeline/MediaPipeline.h +++ b/media/webrtc/signaling/src/mediapipeline/MediaPipeline.h @@ -334,7 +334,6 @@ class ConduitDeleteEvent: public Runnable { public: explicit ConduitDeleteEvent(already_AddRefed aConduit) : - Runnable("ConduitDeleteEvent"), mConduit(aConduit) {} /* we exist solely to proxy release of the conduit */ diff --git a/modules/libjar/nsJARChannel.cpp b/modules/libjar/nsJARChannel.cpp index db243ce803f8..924a89d55266 100644 --- a/modules/libjar/nsJARChannel.cpp +++ b/modules/libjar/nsJARChannel.cpp @@ -1081,8 +1081,7 @@ nsJARChannel::OnDataAvailable(nsIRequest *req, nsISupports *ctx, FireOnProgress(offset + count); } else { NS_DispatchToMainThread(NewRunnableMethod - ("nsJARChannel::FireOnProgress", - this, + (this, &nsJARChannel::FireOnProgress, offset + count)); } diff --git a/modules/libpref/Preferences.cpp b/modules/libpref/Preferences.cpp index a817f3c7be01..1401f7ee2539 100644 --- a/modules/libpref/Preferences.cpp +++ b/modules/libpref/Preferences.cpp @@ -314,7 +314,7 @@ public: nsCOMPtr target = do_GetService(NS_STREAMTRANSPORTSERVICE_CONTRACTID, &rv); if (NS_SUCCEEDED(rv)) { - target->Dispatch(NS_NewRunnableFunction("Preferences_dummy", [] {}), + target->Dispatch(NS_NewRunnableFunction([] {}), nsIEventTarget::DISPATCH_SYNC); } } @@ -330,10 +330,7 @@ Atomic PreferencesWriter::sPendingWriteData(nullptr); class PWRunnable : public Runnable { public: - explicit PWRunnable(nsIFile* aFile) - : Runnable("PWRunnable") - , mFile(aFile) - {} + explicit PWRunnable(nsIFile* aFile) : mFile(aFile) {} NS_IMETHOD Run() override { @@ -352,7 +349,7 @@ public: nsCOMPtr fileCopy(mFile); SystemGroup::Dispatch("Preferences::WriterRunnable", TaskCategory::Other, - NS_NewRunnableFunction("Preferences::WriterRunnable", [fileCopy, rvCopy] { + NS_NewRunnableFunction([fileCopy, rvCopy] { MOZ_RELEASE_ASSERT(NS_IsMainThread()); if (NS_FAILED(rvCopy)) { Preferences::DirtyCallback(); @@ -561,8 +558,6 @@ PreferenceServiceReporter::CollectReports( namespace { class AddPreferencesMemoryReporterRunnable : public Runnable { -public: - AddPreferencesMemoryReporterRunnable() : Runnable("AddPreferencesMemoryReporterRunnable") {} NS_IMETHOD Run() override { return RegisterStrongMemoryReporter(new PreferenceServiceReporter()); diff --git a/netwerk/base/BackgroundFileSaver.cpp b/netwerk/base/BackgroundFileSaver.cpp index 16d7d552166d..4d9ff97c4cbb 100644 --- a/netwerk/base/BackgroundFileSaver.cpp +++ b/netwerk/base/BackgroundFileSaver.cpp @@ -66,10 +66,9 @@ static LazyLogModule prlog("BackgroundFileSaver"); class NotifyTargetChangeRunnable final : public Runnable { public: - NotifyTargetChangeRunnable(BackgroundFileSaver* aSaver, nsIFile* aTarget) - : Runnable("net::NotifyTargetChangeRunnable") - , mSaver(aSaver) - , mTarget(aTarget) + NotifyTargetChangeRunnable(BackgroundFileSaver *aSaver, nsIFile *aTarget) + : mSaver(aSaver) + , mTarget(aTarget) { } @@ -326,11 +325,9 @@ BackgroundFileSaver::GetWorkerThreadAttention(bool aShouldInterruptCopy) if (!mAsyncCopyContext) { // Copy is not in progress, post an event to handle the change manually. - rv = mWorkerThread->Dispatch( - NewRunnableMethod("net::BackgroundFileSaver::ProcessAttention", - this, - &BackgroundFileSaver::ProcessAttention), - NS_DISPATCH_NORMAL); + rv = mWorkerThread->Dispatch(NewRunnableMethod(this, + &BackgroundFileSaver::ProcessAttention), + NS_DISPATCH_NORMAL); NS_ENSURE_SUCCESS(rv, rv); } else if (aShouldInterruptCopy) { // Interrupt the copy. The copy will be resumed, if needed, by the @@ -750,8 +747,7 @@ BackgroundFileSaver::CheckCompletion() } // Post an event to notify that the operation completed. - if (NS_FAILED(mControlEventTarget->Dispatch(NewRunnableMethod("BackgroundFileSaver::NotifySaveComplete", - this, + if (NS_FAILED(mControlEventTarget->Dispatch(NewRunnableMethod(this, &BackgroundFileSaver::NotifySaveComplete), NS_DISPATCH_NORMAL))) { NS_WARNING("Unable to post completion event to the control thread."); @@ -1157,8 +1153,7 @@ BackgroundFileSaverStreamListener::AsyncCopyProgressCallback(void *aClosure, self->mReceivedTooMuchData = false; // Post an event to verify if the request should be resumed. - if (NS_FAILED(self->mControlEventTarget->Dispatch(NewRunnableMethod("BackgroundFileSaverStreamListener::NotifySuspendOrResume", - self, + if (NS_FAILED(self->mControlEventTarget->Dispatch(NewRunnableMethod(self, &BackgroundFileSaverStreamListener::NotifySuspendOrResume), NS_DISPATCH_NORMAL))) { NS_WARNING("Unable to post resume event to the control thread."); diff --git a/netwerk/base/Dashboard.cpp b/netwerk/base/Dashboard.cpp index 094b6dba8944..63273be92ba0 100644 --- a/netwerk/base/Dashboard.cpp +++ b/netwerk/base/Dashboard.cpp @@ -200,8 +200,7 @@ ConnectionData::OnTransportStatus(nsITransport *aTransport, nsresult aStatus, GetErrorString(aStatus, mStatus); mEventTarget->Dispatch(NewRunnableMethod> - ("net::Dashboard::GetConnectionStatus", - mDashboard, &Dashboard::GetConnectionStatus, this), + (mDashboard, &Dashboard::GetConnectionStatus, this), NS_DISPATCH_NORMAL); return NS_OK; @@ -222,8 +221,7 @@ ConnectionData::Notify(nsITimer *aTimer) mStatus.AssignLiteral(u"NS_ERROR_NET_TIMEOUT"); mEventTarget->Dispatch(NewRunnableMethod> - ("net::Dashboard::GetConnectionStatus", - mDashboard, &Dashboard::GetConnectionStatus, this), + (mDashboard, &Dashboard::GetConnectionStatus, this), NS_DISPATCH_NORMAL); return NS_OK; @@ -312,8 +310,7 @@ LookupHelper::OnLookupComplete(nsICancelable *aRequest, RefPtr arg = new LookupArgument(aRecord, this); mEventTarget->Dispatch(NewRunnableMethod> - ("net::LookupHelper::ConstructAnswer", - this, &LookupHelper::ConstructAnswer, arg), + (this, &LookupHelper::ConstructAnswer, arg), NS_DISPATCH_NORMAL); return NS_OK; @@ -380,8 +377,7 @@ Dashboard::RequestSockets(NetDashboardCallback *aCallback) "NetDashboardCallback", aCallback, true); socketData->mEventTarget = GetCurrentThreadEventTarget(); gSocketTransportService->Dispatch(NewRunnableMethod> - ("net::Dashboard::GetSocketsDispatch", - this, &Dashboard::GetSocketsDispatch, socketData), + (this, &Dashboard::GetSocketsDispatch, socketData), NS_DISPATCH_NORMAL); return NS_OK; } @@ -396,8 +392,7 @@ Dashboard::GetSocketsDispatch(SocketData *aSocketData) socketData->mTotalRecv = gSocketTransportService->GetReceivedBytes(); } socketData->mEventTarget->Dispatch(NewRunnableMethod> - ("net::Dashboard::GetSockets", - this, &Dashboard::GetSockets, socketData), + (this, &Dashboard::GetSockets, socketData), NS_DISPATCH_NORMAL); return NS_OK; } @@ -452,12 +447,9 @@ Dashboard::RequestHttpConnections(NetDashboardCallback *aCallback) "NetDashboardCallback", aCallback, true); httpData->mEventTarget = GetCurrentThreadEventTarget(); - gSocketTransportService->Dispatch( - NewRunnableMethod>("net::Dashboard::GetHttpDispatch", - this, - &Dashboard::GetHttpDispatch, - httpData), - NS_DISPATCH_NORMAL); + gSocketTransportService->Dispatch(NewRunnableMethod> + (this, &Dashboard::GetHttpDispatch, httpData), + NS_DISPATCH_NORMAL); return NS_OK; } @@ -467,8 +459,7 @@ Dashboard::GetHttpDispatch(HttpData *aHttpData) RefPtr httpData = aHttpData; HttpInfo::GetHttpConnectionData(&httpData->mData); httpData->mEventTarget->Dispatch(NewRunnableMethod> - ("net::Dashboard::GetHttpConnections", - this, &Dashboard::GetHttpConnections, httpData), + (this, &Dashboard::GetHttpConnections, httpData), NS_DISPATCH_NORMAL); return NS_OK; } @@ -634,8 +625,7 @@ Dashboard::RequestWebsocketConnections(NetDashboardCallback *aCallback) wsRequest->mEventTarget = GetCurrentThreadEventTarget(); wsRequest->mEventTarget->Dispatch(NewRunnableMethod> - ("net::Dashboard::GetWebSocketConnections", - this, &Dashboard::GetWebSocketConnections, wsRequest), + (this, &Dashboard::GetWebSocketConnections, wsRequest), NS_DISPATCH_NORMAL); return NS_OK; } @@ -696,12 +686,9 @@ Dashboard::RequestDNSInfo(NetDashboardCallback *aCallback) } } - gSocketTransportService->Dispatch( - NewRunnableMethod>("net::Dashboard::GetDnsInfoDispatch", - this, - &Dashboard::GetDnsInfoDispatch, - dnsData), - NS_DISPATCH_NORMAL); + gSocketTransportService->Dispatch(NewRunnableMethod> + (this, &Dashboard::GetDnsInfoDispatch, dnsData), + NS_DISPATCH_NORMAL); return NS_OK; } @@ -713,8 +700,7 @@ Dashboard::GetDnsInfoDispatch(DnsData *aDnsData) mDnsService->GetDNSCacheEntries(&dnsData->mData); } dnsData->mEventTarget->Dispatch(NewRunnableMethod> - ("net::Dashboard::GetDNSCacheEntries", - this, &Dashboard::GetDNSCacheEntries, dnsData), + (this, &Dashboard::GetDNSCacheEntries, dnsData), NS_DISPATCH_NORMAL); return NS_OK; } @@ -807,8 +793,7 @@ Dashboard::RequestRcwnStats(NetDashboardCallback *aCallback) "NetDashboardCallback", aCallback, true); return rcwnData->mEventTarget->Dispatch( - NewRunnableMethod>("net::Dashboard::GetRcwnData", - this, &Dashboard::GetRcwnData, rcwnData), + NewRunnableMethod>(this, &Dashboard::GetRcwnData, rcwnData), NS_DISPATCH_NORMAL); } @@ -890,8 +875,7 @@ Dashboard::RequestConnection(const nsACString& aHost, uint32_t aPort, if (NS_FAILED(rv)) { mozilla::net::GetErrorString(rv, connectionData->mStatus); connectionData->mEventTarget->Dispatch(NewRunnableMethod> - ("net::Dashboard::GetConnectionStatus", - this, &Dashboard::GetConnectionStatus, connectionData), + (this, &Dashboard::GetConnectionStatus, connectionData), NS_DISPATCH_NORMAL); return rv; } diff --git a/netwerk/base/NetworkActivityMonitor.cpp b/netwerk/base/NetworkActivityMonitor.cpp index ef2698c54b72..2f7d92628dce 100644 --- a/netwerk/base/NetworkActivityMonitor.cpp +++ b/netwerk/base/NetworkActivityMonitor.cpp @@ -152,8 +152,7 @@ nsNetMon_AcceptRead(PRFileDesc *listenSock, class NotifyNetworkActivity : public mozilla::Runnable { public: explicit NotifyNetworkActivity(NetworkActivityMonitor::Direction aDirection) - : mozilla::Runnable("NotifyNetworkActivity") - , mDirection(aDirection) + : mDirection(aDirection) {} NS_IMETHOD Run() override { diff --git a/netwerk/base/Predictor.cpp b/netwerk/base/Predictor.cpp index 5912cfc60610..7e969630a8cb 100644 --- a/netwerk/base/Predictor.cpp +++ b/netwerk/base/Predictor.cpp @@ -615,10 +615,9 @@ namespace { class PredictorThreadShutdownRunner : public Runnable { public: - PredictorThreadShutdownRunner(nsIThread* ioThread, bool success) - : Runnable("net::PredictorThreadShutdownRunner") - , mIOThread(ioThread) - , mSuccess(success) + PredictorThreadShutdownRunner(nsIThread *ioThread, bool success) + :mIOThread(ioThread) + ,mSuccess(success) { } ~PredictorThreadShutdownRunner() { } @@ -641,10 +640,9 @@ private: class PredictorOldCleanupRunner : public Runnable { public: - PredictorOldCleanupRunner(nsIThread* ioThread, nsIFile* dbFile) - : Runnable("net::PredictorOldCleanupRunner") - , mIOThread(ioThread) - , mDBFile(dbFile) + PredictorOldCleanupRunner(nsIThread *ioThread, nsIFile *dbFile) + :mIOThread(ioThread) + ,mDBFile(dbFile) { } ~PredictorOldCleanupRunner() { } diff --git a/netwerk/base/TLSServerSocket.cpp b/netwerk/base/TLSServerSocket.cpp index 77d209b20e9b..40dcec75418c 100644 --- a/netwerk/base/TLSServerSocket.cpp +++ b/netwerk/base/TLSServerSocket.cpp @@ -286,12 +286,10 @@ public: class OnHandshakeDoneRunnable : public Runnable { public: - OnHandshakeDoneRunnable( - const nsMainThreadPtrHandle& aListener, - nsITLSServerSocket* aServer, - nsITLSClientStatus* aStatus) - : Runnable("net::TLSServerSecurityObserverProxy::OnHandshakeDoneRunnable") - , mListener(aListener) + OnHandshakeDoneRunnable(const nsMainThreadPtrHandle& aListener, + nsITLSServerSocket* aServer, + nsITLSClientStatus* aStatus) + : mListener(aListener) , mServer(aServer) , mStatus(aStatus) { } diff --git a/netwerk/base/Tickler.cpp b/netwerk/base/Tickler.cpp index 62542d6b0a21..555fdbbe5e29 100644 --- a/netwerk/base/Tickler.cpp +++ b/netwerk/base/Tickler.cpp @@ -108,8 +108,7 @@ void Tickler::Tickle() void Tickler::PostCheckTickler() { mLock.AssertCurrentThreadOwns(); - mThread->Dispatch(NewRunnableMethod("net::Tickler::CheckTickler", - this, &Tickler::CheckTickler), + mThread->Dispatch(NewRunnableMethod(this, &Tickler::CheckTickler), NS_DISPATCH_NORMAL); return; } @@ -125,8 +124,7 @@ void Tickler::MaybeStartTickler() mLock.AssertCurrentThreadOwns(); if (!NS_IsMainThread()) { NS_DispatchToMainThread( - NewRunnableMethod("net::Tickler::MaybeStartTicklerUnlocked", - this, &Tickler::MaybeStartTicklerUnlocked)); + NewRunnableMethod(this, &Tickler::MaybeStartTicklerUnlocked)); return; } diff --git a/netwerk/base/nsAsyncStreamCopier.cpp b/netwerk/base/nsAsyncStreamCopier.cpp index 6fbed58cc118..2923ac9e5a89 100644 --- a/netwerk/base/nsAsyncStreamCopier.cpp +++ b/netwerk/base/nsAsyncStreamCopier.cpp @@ -33,11 +33,9 @@ public: * The nsAsyncStreamCopier requesting the information. */ explicit AsyncApplyBufferingPolicyEvent(nsAsyncStreamCopier* aCopier) - : mozilla::Runnable("AsyncApplyBufferingPolicyEvent") - , mCopier(aCopier) + : mCopier(aCopier) , mTarget(GetCurrentThreadEventTarget()) - {} - + { } NS_IMETHOD Run() override { nsresult rv = mCopier->ApplyBufferingPolicy(); @@ -46,8 +44,7 @@ public: return NS_OK; } - rv = mTarget->Dispatch(NewRunnableMethod("nsAsyncStreamCopier::AsyncCopyInternal", - mCopier, + rv = mTarget->Dispatch(NewRunnableMethod(mCopier, &nsAsyncStreamCopier::AsyncCopyInternal), NS_DISPATCH_NORMAL); MOZ_ASSERT(NS_SUCCEEDED(rv)); @@ -57,7 +54,6 @@ public: } return NS_OK; } - private: RefPtr mCopier; nsCOMPtr mTarget; diff --git a/netwerk/base/nsBaseChannel.cpp b/netwerk/base/nsBaseChannel.cpp index 9d9b427f1acf..094ef07c458a 100644 --- a/netwerk/base/nsBaseChannel.cpp +++ b/netwerk/base/nsBaseChannel.cpp @@ -908,10 +908,9 @@ nsBaseChannel::OnDataAvailable(nsIRequest *request, nsISupports *ctxt, OnTransportStatusAsyncEvent(nsBaseChannel* aChannel, int64_t aProgress, int64_t aContentLength) - : mozilla::Runnable("OnTransportStatusAsyncEvent") - , mChannel(aChannel) - , mProgress(aProgress) - , mContentLength(aContentLength) + : mChannel(aChannel), + mProgress(aProgress), + mContentLength(aContentLength) { } NS_IMETHOD Run() override diff --git a/netwerk/base/nsBaseChannel.h b/netwerk/base/nsBaseChannel.h index 6ae87b37b180..5427acef132f 100644 --- a/netwerk/base/nsBaseChannel.h +++ b/netwerk/base/nsBaseChannel.h @@ -261,9 +261,7 @@ private: { public: RedirectRunnable(nsBaseChannel* chan, nsIChannel* newChannel) - : mozilla::Runnable("nsBaseChannel::RedirectRunnable") - , mChannel(chan) - , mNewChannel(newChannel) + : mChannel(chan), mNewChannel(newChannel) { NS_PRECONDITION(newChannel, "Must have channel to redirect to"); } diff --git a/netwerk/base/nsIOService.cpp b/netwerk/base/nsIOService.cpp index 024877641faa..48f92048f387 100644 --- a/netwerk/base/nsIOService.cpp +++ b/netwerk/base/nsIOService.cpp @@ -1398,13 +1398,14 @@ nsIOService::GetPrefBranch(nsIPrefBranch **result) class nsWakeupNotifier : public Runnable { public: - explicit nsWakeupNotifier(nsIIOServiceInternal* ioService) - : Runnable("net::nsWakeupNotifier") - , mIOService(ioService) - { - } + explicit nsWakeupNotifier(nsIIOServiceInternal *ioService) + :mIOService(ioService) + { } - NS_IMETHOD Run() override { return mIOService->NotifyWakeup(); } + NS_IMETHOD Run() override + { + return mIOService->NotifyWakeup(); + } private: virtual ~nsWakeupNotifier() { } diff --git a/netwerk/base/nsInputStreamPump.cpp b/netwerk/base/nsInputStreamPump.cpp index 97b282582418..c57fc1322326 100644 --- a/netwerk/base/nsInputStreamPump.cpp +++ b/netwerk/base/nsInputStreamPump.cpp @@ -697,9 +697,7 @@ nsInputStreamPump::OnStateStop() MOZ_ASSERT(NS_IsMainThread(), "OnStateStop should only be called on the main thread."); nsresult rv = NS_DispatchToMainThread( - NewRunnableMethod("nsInputStreamPump::CallOnStateStop", - this, - &nsInputStreamPump::CallOnStateStop)); + NewRunnableMethod(this, &nsInputStreamPump::CallOnStateStop)); NS_ENSURE_SUCCESS(rv, STATE_IDLE); return STATE_IDLE; } diff --git a/netwerk/base/nsPACMan.cpp b/netwerk/base/nsPACMan.cpp index 5a43f26e5615..da8dfefdc6a3 100644 --- a/netwerk/base/nsPACMan.cpp +++ b/netwerk/base/nsPACMan.cpp @@ -85,9 +85,9 @@ GetExtraJSContextHeapSize() class ExecuteCallback final : public Runnable { public: - ExecuteCallback(nsPACManCallback* aCallback, nsresult status) - : Runnable("net::ExecuteCallback") - , mCallback(aCallback) + ExecuteCallback(nsPACManCallback *aCallback, + nsresult status) + : mCallback(aCallback) , mStatus(status) { } @@ -125,9 +125,8 @@ private: class ShutdownThread final : public Runnable { public: - explicit ShutdownThread(nsIThread* thread) - : Runnable("net::ShutdownThread") - , mThread(thread) + explicit ShutdownThread(nsIThread *thread) + : mThread(thread) { } @@ -147,9 +146,8 @@ private: class WaitForThreadShutdown final : public Runnable { public: - explicit WaitForThreadShutdown(nsPACMan* aPACMan) - : Runnable("net::WaitForThreadShutdown") - , mPACMan(aPACMan) + explicit WaitForThreadShutdown(nsPACMan *aPACMan) + : mPACMan(aPACMan) { } @@ -176,9 +174,8 @@ private: class PACLoadComplete final : public Runnable { public: - explicit PACLoadComplete(nsPACMan* aPACMan) - : Runnable("net::PACLoadComplete") - , mPACMan(aPACMan) + explicit PACLoadComplete(nsPACMan *aPACMan) + : mPACMan(aPACMan) { } @@ -204,9 +201,8 @@ class ExecutePACThreadAction final : public Runnable { public: // by default we just process the queue - explicit ExecutePACThreadAction(nsPACMan* aPACMan) - : Runnable("net::ExecutePACThreadAction") - , mPACMan(aPACMan) + explicit ExecutePACThreadAction(nsPACMan *aPACMan) + : mPACMan(aPACMan) , mCancel(false) , mCancelStatus(NS_OK) , mSetupPAC(false) @@ -270,12 +266,10 @@ private: //----------------------------------------------------------------------------- -PendingPACQuery::PendingPACQuery(nsPACMan* pacMan, - nsIURI* uri, - nsPACManCallback* callback, +PendingPACQuery::PendingPACQuery(nsPACMan *pacMan, nsIURI *uri, + nsPACManCallback *callback, bool mainThreadResponse) - : Runnable("net::PendingPACQuery") - , mPACMan(pacMan) + : mPACMan(pacMan) , mCallback(callback) , mOnMainThreadOnly(mainThreadResponse) { @@ -439,8 +433,7 @@ nsPACMan::LoadPACFromURI(const nsCString &spec) if (!mLoadPending) { nsresult rv; - if (NS_FAILED(rv = NS_DispatchToCurrentThread(NewRunnableMethod("nsPACMan::StartLoading", - this, &nsPACMan::StartLoading)))) + if (NS_FAILED(rv = NS_DispatchToCurrentThread(NewRunnableMethod(this, &nsPACMan::StartLoading)))) return rv; mLoadPending = true; } diff --git a/netwerk/base/nsPreloadedStream.cpp b/netwerk/base/nsPreloadedStream.cpp index dd88e50cb3ec..d203f550526e 100644 --- a/netwerk/base/nsPreloadedStream.cpp +++ b/netwerk/base/nsPreloadedStream.cpp @@ -110,19 +110,17 @@ nsPreloadedStream::CloseWithStatus(nsresult aStatus) class RunOnThread : public Runnable { public: - RunOnThread(nsIAsyncInputStream* aStream, nsIInputStreamCallback* aCallback) - : Runnable("net::RunOnThread") - , mStream(aStream) - , mCallback(aCallback) - { - } + RunOnThread(nsIAsyncInputStream *aStream, + nsIInputStreamCallback *aCallback) + : mStream(aStream), + mCallback(aCallback) {} - virtual ~RunOnThread() {} + virtual ~RunOnThread() {} - NS_IMETHOD Run() override - { - mCallback->OnInputStreamReady(mStream); - return NS_OK; + NS_IMETHOD Run() override + { + mCallback->OnInputStreamReady(mStream); + return NS_OK; } private: diff --git a/netwerk/base/nsRequestObserverProxy.cpp b/netwerk/base/nsRequestObserverProxy.cpp index 939cb87c9e34..9e95b356ba65 100644 --- a/netwerk/base/nsRequestObserverProxy.cpp +++ b/netwerk/base/nsRequestObserverProxy.cpp @@ -24,9 +24,8 @@ static LazyLogModule gRequestObserverProxyLog("nsRequestObserverProxy"); // nsARequestObserverEvent internal class... //----------------------------------------------------------------------------- -nsARequestObserverEvent::nsARequestObserverEvent(nsIRequest* request) - : Runnable("net::nsARequestObserverEvent") - , mRequest(request) +nsARequestObserverEvent::nsARequestObserverEvent(nsIRequest *request) + : mRequest(request) { NS_PRECONDITION(mRequest, "null pointer"); } diff --git a/netwerk/base/nsServerSocket.cpp b/netwerk/base/nsServerSocket.cpp index c64c19f2f16f..3c9e12621c77 100644 --- a/netwerk/base/nsServerSocket.cpp +++ b/netwerk/base/nsServerSocket.cpp @@ -27,7 +27,7 @@ typedef void (nsServerSocket:: *nsServerSocketFunc)(void); static nsresult PostEvent(nsServerSocket *s, nsServerSocketFunc func) { - nsCOMPtr ev = NewRunnableMethod("net::PostEvent", s, func); + nsCOMPtr ev = NewRunnableMethod(s, func); if (!gSocketTransportService) return NS_ERROR_FAILURE; @@ -122,8 +122,8 @@ nsServerSocket::TryAttach() // if (!gSocketTransportService->CanAttachSocket()) { - nsCOMPtr event = NewRunnableMethod( - "net::nsServerSocket::OnMsgAttach", this, &nsServerSocket::OnMsgAttach); + nsCOMPtr event = + NewRunnableMethod(this, &nsServerSocket::OnMsgAttach); if (!event) return NS_ERROR_OUT_OF_MEMORY; @@ -434,12 +434,10 @@ public: class OnSocketAcceptedRunnable : public Runnable { public: - OnSocketAcceptedRunnable( - const nsMainThreadPtrHandle& aListener, - nsIServerSocket* aServ, - nsISocketTransport* aTransport) - : Runnable("net::ServerSocketListenerProxy::OnSocketAcceptedRunnable") - , mListener(aListener) + OnSocketAcceptedRunnable(const nsMainThreadPtrHandle& aListener, + nsIServerSocket* aServ, + nsISocketTransport* aTransport) + : mListener(aListener) , mServ(aServ) , mTransport(aTransport) { } @@ -455,12 +453,10 @@ public: class OnStopListeningRunnable : public Runnable { public: - OnStopListeningRunnable( - const nsMainThreadPtrHandle& aListener, - nsIServerSocket* aServ, - nsresult aStatus) - : Runnable("net::ServerSocketListenerProxy::OnStopListeningRunnable") - , mListener(aListener) + OnStopListeningRunnable(const nsMainThreadPtrHandle& aListener, + nsIServerSocket* aServ, + nsresult aStatus) + : mListener(aListener) , mServ(aServ) , mStatus(aStatus) { } diff --git a/netwerk/base/nsSocketTransport2.cpp b/netwerk/base/nsSocketTransport2.cpp index 01deb4a74d3e..88af2bceefd4 100644 --- a/netwerk/base/nsSocketTransport2.cpp +++ b/netwerk/base/nsSocketTransport2.cpp @@ -73,22 +73,18 @@ namespace net { class nsSocketEvent : public Runnable { public: - nsSocketEvent(nsSocketTransport* transport, - uint32_t type, - nsresult status = NS_OK, - nsISupports* param = nullptr) - : Runnable("net::nsSocketEvent") - , mTransport(transport) - , mType(type) - , mStatus(status) - , mParam(param) - { - } + nsSocketEvent(nsSocketTransport *transport, uint32_t type, + nsresult status = NS_OK, nsISupports *param = nullptr) + : mTransport(transport) + , mType(type) + , mStatus(status) + , mParam(param) + {} - NS_IMETHOD Run() override - { - mTransport->OnSocketEvent(mType, mStatus, mParam); - return NS_OK; + NS_IMETHOD Run() override + { + mTransport->OnSocketEvent(mType, mStatus, mParam); + return NS_OK; } private: @@ -1973,11 +1969,7 @@ nsSocketTransport::FastOpenInProgress() class ThunkPRClose : public Runnable { public: - explicit ThunkPRClose(PRFileDesc* fd) - : Runnable("net::ThunkPRClose") - , mFD(fd) - { - } + explicit ThunkPRClose(PRFileDesc *fd) : mFD(fd) {} NS_IMETHOD Run() override { diff --git a/netwerk/base/nsSocketTransportService2.cpp b/netwerk/base/nsSocketTransportService2.cpp index 4ecccd6c2523..e458262097b3 100644 --- a/netwerk/base/nsSocketTransportService2.cpp +++ b/netwerk/base/nsSocketTransportService2.cpp @@ -948,16 +948,12 @@ nsSocketTransportService::Run() mRawThread->HasPendingEvents(&pendingEvents); if (pendingEvents) { if (!mServingPendingQueue) { - nsresult rv = Dispatch( - NewRunnableMethod("net::nsSocketTransportService::" - "MarkTheLastElementOfPendingQueue", - this, - &nsSocketTransportService:: - MarkTheLastElementOfPendingQueue), - nsIEventTarget::DISPATCH_NORMAL); - if (NS_FAILED(rv)) { - NS_WARNING("Could not dispatch a new event on the " - "socket thread."); + nsresult rv = Dispatch(NewRunnableMethod(this, + &nsSocketTransportService::MarkTheLastElementOfPendingQueue), + nsIEventTarget::DISPATCH_NORMAL); + if (NS_FAILED(rv)) { + NS_WARNING("Could not dispatch a new event on the " + "socket thread."); } else { mServingPendingQueue = true; } @@ -1320,13 +1316,11 @@ nsSocketTransportService::OnKeepaliveEnabledPrefChange() { // Dispatch to socket thread if we're not executing there. if (!OnSocketThread()) { - gSocketTransportService->Dispatch( - NewRunnableMethod( - "net::nsSocketTransportService::OnKeepaliveEnabledPrefChange", - this, - &nsSocketTransportService::OnKeepaliveEnabledPrefChange), - NS_DISPATCH_NORMAL); - return; + gSocketTransportService->Dispatch( + NewRunnableMethod( + this, &nsSocketTransportService::OnKeepaliveEnabledPrefChange), + NS_DISPATCH_NORMAL); + return; } SOCKET_LOG(("nsSocketTransportService::OnKeepaliveEnabledPrefChange %s", @@ -1377,12 +1371,11 @@ nsSocketTransportService::Observe(nsISupports *subject, } if (!strcmp(topic, "last-pb-context-exited")) { - nsCOMPtr ev = NewRunnableMethod( - "net::nsSocketTransportService::ClosePrivateConnections", - this, - &nsSocketTransportService::ClosePrivateConnections); - nsresult rv = Dispatch(ev, nsIEventTarget::DISPATCH_NORMAL); - NS_ENSURE_SUCCESS(rv, rv); + nsCOMPtr ev = + NewRunnableMethod(this, + &nsSocketTransportService::ClosePrivateConnections); + nsresult rv = Dispatch(ev, nsIEventTarget::DISPATCH_NORMAL); + NS_ENSURE_SUCCESS(rv, rv); } if (!strcmp(topic, NS_TIMER_CALLBACK_TOPIC)) { @@ -1629,8 +1622,7 @@ nsSocketTransportService::StartPollWatchdog() // Start off the timer from a runnable off of the main thread in order to // avoid a deadlock, see bug 1370448. RefPtr self(this); - NS_DispatchToMainThread(NS_NewRunnableFunction("nsSocketTransportService::StartPollWatchdog", - [self] { + NS_DispatchToMainThread(NS_NewRunnableFunction([self] { MutexAutoLock lock(self->mLock); // Poll can hang sometimes. If we are in shutdown, we are going to start a diff --git a/netwerk/base/nsStreamTransportService.cpp b/netwerk/base/nsStreamTransportService.cpp index f19ae454a07e..41e2784777d8 100644 --- a/netwerk/base/nsStreamTransportService.cpp +++ b/netwerk/base/nsStreamTransportService.cpp @@ -575,18 +575,17 @@ nsStreamTransportService::Observe(nsISupports *subject, const char *topic, class AvailableEvent final : public Runnable { -public: - AvailableEvent(nsIInputStream* stream, - nsIInputAvailableCallback* callback) - : Runnable("net::AvailableEvent") - , mStream(stream) - , mCallback(callback) - , mDoingCallback(false) - , mSize(0) - , mResultForCallback(NS_OK) - { - mCallbackTarget = GetCurrentThreadEventTarget(); - } + public: + AvailableEvent(nsIInputStream *stream, + nsIInputAvailableCallback *callback) + : mStream(stream) + , mCallback(callback) + , mDoingCallback(false) + , mSize(0) + , mResultForCallback(NS_OK) + { + mCallbackTarget = GetCurrentThreadEventTarget(); + } NS_IMETHOD Run() override { diff --git a/netwerk/base/nsUDPSocket.cpp b/netwerk/base/nsUDPSocket.cpp index cde4a2446520..4de0dbce7564 100644 --- a/netwerk/base/nsUDPSocket.cpp +++ b/netwerk/base/nsUDPSocket.cpp @@ -48,8 +48,7 @@ PostEvent(nsUDPSocket *s, nsUDPSocketFunc func) if (!gSocketTransportService) return NS_ERROR_FAILURE; - return gSocketTransportService->Dispatch( - NewRunnableMethod("net::PostEvent", s, func), NS_DISPATCH_NORMAL); + return gSocketTransportService->Dispatch(NewRunnableMethod(s, func), NS_DISPATCH_NORMAL); } static nsresult @@ -92,8 +91,7 @@ class SetSocketOptionRunnable : public Runnable { public: SetSocketOptionRunnable(nsUDPSocket* aSocket, const PRSocketOptionData& aOpt) - : Runnable("net::SetSocketOptionRunnable") - , mSocket(aSocket) + : mSocket(aSocket) , mOpt(aOpt) {} @@ -356,8 +354,8 @@ nsUDPSocket::TryAttach() // if (!gSocketTransportService->CanAttachSocket()) { - nsCOMPtr event = NewRunnableMethod( - "net::nsUDPSocket::OnMsgAttach", this, &nsUDPSocket::OnMsgAttach); + nsCOMPtr event = + NewRunnableMethod(this, &nsUDPSocket::OnMsgAttach); nsresult rv = gSocketTransportService->NotifyWhenCanAttachSocket(event); if (NS_FAILED(rv)) @@ -860,12 +858,10 @@ public: class OnPacketReceivedRunnable : public Runnable { public: - OnPacketReceivedRunnable( - const nsMainThreadPtrHandle& aListener, - nsIUDPSocket* aSocket, - nsIUDPMessage* aMessage) - : Runnable("net::SocketListenerProxy::OnPacketReceivedRunnable") - , mListener(aListener) + OnPacketReceivedRunnable(const nsMainThreadPtrHandle& aListener, + nsIUDPSocket* aSocket, + nsIUDPMessage* aMessage) + : mListener(aListener) , mSocket(aSocket) , mMessage(aMessage) { } @@ -881,12 +877,10 @@ public: class OnStopListeningRunnable : public Runnable { public: - OnStopListeningRunnable( - const nsMainThreadPtrHandle& aListener, - nsIUDPSocket* aSocket, - nsresult aStatus) - : Runnable("net::SocketListenerProxy::OnStopListeningRunnable") - , mListener(aListener) + OnStopListeningRunnable(const nsMainThreadPtrHandle& aListener, + nsIUDPSocket* aSocket, + nsresult aStatus) + : mListener(aListener) , mSocket(aSocket) , mStatus(aStatus) { } @@ -972,8 +966,7 @@ public: OnPacketReceivedRunnable(const nsCOMPtr& aListener, nsIUDPSocket* aSocket, nsIUDPMessage* aMessage) - : Runnable("net::SocketListenerProxyBackground::OnPacketReceivedRunnable") - , mListener(aListener) + : mListener(aListener) , mSocket(aSocket) , mMessage(aMessage) { } @@ -992,8 +985,7 @@ public: OnStopListeningRunnable(const nsCOMPtr& aListener, nsIUDPSocket* aSocket, nsresult aStatus) - : Runnable("net::SocketListenerProxyBackground::OnStopListeningRunnable") - , mListener(aListener) + : mListener(aListener) , mSocket(aSocket) , mStatus(aStatus) { } @@ -1149,11 +1141,10 @@ PendingSendStream::OnLookupComplete(nsICancelable *request, class SendRequestRunnable: public Runnable { public: - SendRequestRunnable(nsUDPSocket* aSocket, - const NetAddr& aAddr, + SendRequestRunnable(nsUDPSocket *aSocket, + const NetAddr &aAddr, FallibleTArray&& aData) - : Runnable("net::SendRequestRunnable") - , mSocket(aSocket) + : mSocket(aSocket) , mAddr(aAddr) , mData(Move(aData)) { } diff --git a/netwerk/cache/nsCacheEntryDescriptor.cpp b/netwerk/cache/nsCacheEntryDescriptor.cpp index 76d02e42dd9d..d78d1c214940 100644 --- a/netwerk/cache/nsCacheEntryDescriptor.cpp +++ b/netwerk/cache/nsCacheEntryDescriptor.cpp @@ -28,7 +28,6 @@ class nsAsyncDoomEvent : public mozilla::Runnable { public: nsAsyncDoomEvent(nsCacheEntryDescriptor *descriptor, nsICacheListener *listener) - : mozilla::Runnable("nsAsyncDoomEvent") { mDescriptor = descriptor; mListener = listener; diff --git a/netwerk/cache/nsCacheService.cpp b/netwerk/cache/nsCacheService.cpp index 61155b0811ab..4e251d4de56d 100644 --- a/netwerk/cache/nsCacheService.cpp +++ b/netwerk/cache/nsCacheService.cpp @@ -226,35 +226,32 @@ NS_IMPL_ISUPPORTS(nsSetDiskSmartSizeCallback, nsITimerCallback) class nsSetSmartSizeEvent: public Runnable { public: - explicit nsSetSmartSizeEvent(int32_t smartSize) - : mozilla::Runnable("nsSetSmartSizeEvent") - , mSmartSize(smartSize) - { - } + explicit nsSetSmartSizeEvent(int32_t smartSize) + : mSmartSize(smartSize) {} - NS_IMETHOD Run() - { - NS_ASSERTION(NS_IsMainThread(), - "Setting smart size data off the main thread"); + NS_IMETHOD Run() + { + NS_ASSERTION(NS_IsMainThread(), + "Setting smart size data off the main thread"); - // Main thread may have already called nsCacheService::Shutdown - if (!nsCacheService::IsInitialized()) - return NS_ERROR_NOT_AVAILABLE; + // Main thread may have already called nsCacheService::Shutdown + if (!nsCacheService::IsInitialized()) + return NS_ERROR_NOT_AVAILABLE; - // Ensure smart sizing wasn't switched off while event was pending. - // It is safe to access the observer without the lock since we are - // on the main thread and the value changes only on the main thread. - if (!nsCacheService::gService->mObserver->SmartSizeEnabled()) - return NS_OK; + // Ensure smart sizing wasn't switched off while event was pending. + // It is safe to access the observer without the lock since we are + // on the main thread and the value changes only on the main thread. + if (!nsCacheService::gService->mObserver->SmartSizeEnabled()) + return NS_OK; - nsCacheService::SetDiskCacheCapacity(mSmartSize); + nsCacheService::SetDiskCacheCapacity(mSmartSize); - nsCOMPtr ps = do_GetService(NS_PREFSERVICE_CONTRACTID); - if (!ps || - NS_FAILED(ps->SetIntPref(DISK_CACHE_SMART_SIZE_PREF, mSmartSize))) - NS_WARNING("Failed to set smart size pref"); + nsCOMPtr ps = do_GetService(NS_PREFSERVICE_CONTRACTID); + if (!ps || + NS_FAILED(ps->SetIntPref(DISK_CACHE_SMART_SIZE_PREF, mSmartSize))) + NS_WARNING("Failed to set smart size pref"); - return NS_OK; + return NS_OK; } private: @@ -266,25 +263,23 @@ private: class nsGetSmartSizeEvent: public Runnable { public: - nsGetSmartSizeEvent(const nsAString& cachePath, - uint32_t currentSize, - bool shouldUseOldMaxSmartSize) - : mozilla::Runnable("nsGetSmartSizeEvent") - , mCachePath(cachePath) - , mCurrentSize(currentSize) - , mShouldUseOldMaxSmartSize(shouldUseOldMaxSmartSize) - { - } - - // Calculates user's disk space available on a background thread and - // dispatches this value back to the main thread. - NS_IMETHOD Run() override - { - uint32_t size; - size = nsCacheProfilePrefObserver::GetSmartCacheSize( - mCachePath, mCurrentSize, mShouldUseOldMaxSmartSize); - NS_DispatchToMainThread(new nsSetSmartSizeEvent(size)); - return NS_OK; + nsGetSmartSizeEvent(const nsAString& cachePath, uint32_t currentSize, + bool shouldUseOldMaxSmartSize) + : mCachePath(cachePath) + , mCurrentSize(currentSize) + , mShouldUseOldMaxSmartSize(shouldUseOldMaxSmartSize) + {} + + // Calculates user's disk space available on a background thread and + // dispatches this value back to the main thread. + NS_IMETHOD Run() override + { + uint32_t size; + size = nsCacheProfilePrefObserver::GetSmartCacheSize(mCachePath, + mCurrentSize, + mShouldUseOldMaxSmartSize); + NS_DispatchToMainThread(new nsSetSmartSizeEvent(size)); + return NS_OK; } private: @@ -295,9 +290,8 @@ private: class nsBlockOnCacheThreadEvent : public Runnable { public: - nsBlockOnCacheThreadEvent() - : mozilla::Runnable("nsBlockOnCacheThreadEvent") - { + nsBlockOnCacheThreadEvent() + { } NS_IMETHOD Run() override { @@ -982,10 +976,9 @@ nsCacheProfilePrefObserver::CacheCompressionLevel() class nsProcessRequestEvent : public Runnable { public: - explicit nsProcessRequestEvent(nsCacheRequest* aRequest) - : mozilla::Runnable("nsProcessRequestEvent") - { - mRequest = aRequest; + explicit nsProcessRequestEvent(nsCacheRequest *aRequest) + { + mRequest = aRequest; } NS_IMETHOD Run() override @@ -1024,7 +1017,6 @@ public: nsDoomEvent(nsCacheSession *session, const nsACString &key, nsICacheListener *listener) - : mozilla::Runnable("nsDoomEvent") { mKey = *session->ClientID(); mKey.Append(':'); @@ -1341,13 +1333,11 @@ namespace { class EvictionNotifierRunnable : public Runnable { public: - explicit EvictionNotifierRunnable(nsISupports* aSubject) - : mozilla::Runnable("EvictionNotifierRunnable") - , mSubject(aSubject) - { - } + explicit EvictionNotifierRunnable(nsISupports* aSubject) + : mSubject(aSubject) + { } - NS_DECL_NSIRUNNABLE + NS_DECL_NSIRUNNABLE private: nsCOMPtr mSubject; @@ -1541,12 +1531,10 @@ nsresult nsCacheService::EvictEntriesInternal(nsCacheStoragePolicy storagePolicy { if (storagePolicy == nsICache::STORE_ANYWHERE) { // if not called on main thread, dispatch the notification to the main thread to notify observers - if (!NS_IsMainThread()) { - nsCOMPtr event = NewRunnableMethod( - "nsCacheService::FireClearNetworkCacheStoredAnywhereNotification", - this, - &nsCacheService::FireClearNetworkCacheStoredAnywhereNotification); - NS_DispatchToMainThread(event); + if (!NS_IsMainThread()) { + nsCOMPtr event = NewRunnableMethod(this, + &nsCacheService::FireClearNetworkCacheStoredAnywhereNotification); + NS_DispatchToMainThread(event); } else { // else you're already on main thread - notify observers FireClearNetworkCacheStoredAnywhereNotification(); @@ -1657,42 +1645,37 @@ nsCacheService::CreateDiskDevice() class nsDisableOldMaxSmartSizePrefEvent: public Runnable { public: - nsDisableOldMaxSmartSizePrefEvent() - : mozilla::Runnable("nsDisableOldMaxSmartSizePrefEvent") - { - } + nsDisableOldMaxSmartSizePrefEvent() {} - NS_IMETHOD Run() override - { - // Main thread may have already called nsCacheService::Shutdown - if (!nsCacheService::IsInitialized()) - return NS_ERROR_NOT_AVAILABLE; + NS_IMETHOD Run() override + { + // Main thread may have already called nsCacheService::Shutdown + if (!nsCacheService::IsInitialized()) + return NS_ERROR_NOT_AVAILABLE; - nsCOMPtr branch = do_GetService(NS_PREFSERVICE_CONTRACTID); - if (!branch) { - return NS_ERROR_NOT_AVAILABLE; - } + nsCOMPtr branch = do_GetService(NS_PREFSERVICE_CONTRACTID); + if (!branch) { + return NS_ERROR_NOT_AVAILABLE; + } - nsresult rv = - branch->SetBoolPref(DISK_CACHE_USE_OLD_MAX_SMART_SIZE_PREF, false); - if (NS_FAILED(rv)) { - NS_WARNING("Failed to disable old max smart size"); - return rv; - } + nsresult rv = branch->SetBoolPref(DISK_CACHE_USE_OLD_MAX_SMART_SIZE_PREF, false); + if (NS_FAILED(rv)) { + NS_WARNING("Failed to disable old max smart size"); + return rv; + } - // It is safe to call SetDiskSmartSize_Locked() without holding the lock - // when we are on main thread and nsCacheService is initialized. - nsCacheService::gService->SetDiskSmartSize_Locked(); + // It is safe to call SetDiskSmartSize_Locked() without holding the lock + // when we are on main thread and nsCacheService is initialized. + nsCacheService::gService->SetDiskSmartSize_Locked(); - if (nsCacheService::gService->mObserver->PermittedToSmartSize(branch, - false)) { - rv = branch->SetIntPref(DISK_CACHE_CAPACITY_PREF, MAX_CACHE_SIZE); - if (NS_FAILED(rv)) { - NS_WARNING("Failed to set cache capacity pref"); - } - } + if (nsCacheService::gService->mObserver->PermittedToSmartSize(branch, false)) { + rv = branch->SetIntPref(DISK_CACHE_CAPACITY_PREF, MAX_CACHE_SIZE); + if (NS_FAILED(rv)) { + NS_WARNING("Failed to set cache capacity pref"); + } + } - return NS_OK; + return NS_OK; } }; @@ -1873,25 +1856,23 @@ nsCacheService::CreateRequest(nsCacheSession * session, class nsCacheListenerEvent : public Runnable { public: - nsCacheListenerEvent(nsICacheListener* listener, - nsICacheEntryDescriptor* descriptor, - nsCacheAccessMode accessGranted, - nsresult status) - : mozilla::Runnable("nsCacheListenerEvent") - , mListener(listener) // transfers reference - , mDescriptor(descriptor) // transfers reference (may be null) - , mAccessGranted(accessGranted) - , mStatus(status) - { - } + nsCacheListenerEvent(nsICacheListener *listener, + nsICacheEntryDescriptor *descriptor, + nsCacheAccessMode accessGranted, + nsresult status) + : mListener(listener) // transfers reference + , mDescriptor(descriptor) // transfers reference (may be null) + , mAccessGranted(accessGranted) + , mStatus(status) + {} - NS_IMETHOD Run() override - { - mListener->OnCacheEntryAvailable(mDescriptor, mAccessGranted, mStatus); + NS_IMETHOD Run() override + { + mListener->OnCacheEntryAvailable(mDescriptor, mAccessGranted, mStatus); - NS_RELEASE(mListener); - NS_IF_RELEASE(mDescriptor); - return NS_OK; + NS_RELEASE(mListener); + NS_IF_RELEASE(mDescriptor); + return NS_OK; } private: diff --git a/netwerk/cache/nsCacheService.h b/netwerk/cache/nsCacheService.h index c02c7b4d483a..049a8ddb6b75 100644 --- a/netwerk/cache/nsCacheService.h +++ b/netwerk/cache/nsCacheService.h @@ -40,18 +40,17 @@ class mozIStorageService; class nsNotifyDoomListener : public mozilla::Runnable { public: - nsNotifyDoomListener(nsICacheListener* listener, nsresult status) - : mozilla::Runnable("nsNotifyDoomListener") - , mListener(listener) // transfers reference - , mStatus(status) - { - } + nsNotifyDoomListener(nsICacheListener *listener, + nsresult status) + : mListener(listener) // transfers reference + , mStatus(status) + {} - NS_IMETHOD Run() override - { - mListener->OnCacheEntryDoomed(mStatus); - NS_RELEASE(mListener); - return NS_OK; + NS_IMETHOD Run() override + { + mListener->OnCacheEntryDoomed(mStatus); + NS_RELEASE(mListener); + return NS_OK; } private: diff --git a/netwerk/cache/nsCacheUtils.cpp b/netwerk/cache/nsCacheUtils.cpp index 801eaf9900b6..7cb5622747c4 100644 --- a/netwerk/cache/nsCacheUtils.cpp +++ b/netwerk/cache/nsCacheUtils.cpp @@ -12,9 +12,8 @@ using namespace mozilla; class nsDestroyThreadEvent : public Runnable { public: - explicit nsDestroyThreadEvent(nsIThread* thread) - : mozilla::Runnable("nsDestroyThreadEvent") - , mThread(thread) + explicit nsDestroyThreadEvent(nsIThread *thread) + : mThread(thread) {} NS_IMETHOD Run() override { @@ -25,9 +24,8 @@ private: nsCOMPtr mThread; }; -nsShutdownThread::nsShutdownThread(nsIThread* aThread) - : mozilla::Runnable("nsShutdownThread") - , mMonitor("nsShutdownThread.mMonitor") +nsShutdownThread::nsShutdownThread(nsIThread *aThread) + : mMonitor("nsShutdownThread.mMonitor") , mShuttingDown(false) , mThread(aThread) { diff --git a/netwerk/cache/nsDeleteDir.cpp b/netwerk/cache/nsDeleteDir.cpp index 0f9f3a6fa5b6..1f3f3934e970 100644 --- a/netwerk/cache/nsDeleteDir.cpp +++ b/netwerk/cache/nsDeleteDir.cpp @@ -21,10 +21,7 @@ using namespace mozilla; class nsBlockOnBackgroundThreadEvent : public Runnable { public: - nsBlockOnBackgroundThreadEvent() - : mozilla::Runnable("nsBlockOnBackgroundThreadEvent") - { - } + nsBlockOnBackgroundThreadEvent() {} NS_IMETHOD Run() override { MutexAutoLock lock(nsDeleteDir::gInstance->mLock); @@ -393,11 +390,8 @@ nsDeleteDir::PostTimer(void *arg, uint32_t delay) if (NS_FAILED(rv)) return rv; - rv = timer->InitWithNamedFuncCallback(TimerCallback, - arg, - delay, - nsITimer::TYPE_ONE_SHOT, - "nsDeleteDir::PostTimer"); + rv = timer->InitWithFuncCallback(TimerCallback, arg, delay, + nsITimer::TYPE_ONE_SHOT); if (NS_FAILED(rv)) return rv; diff --git a/netwerk/cache/nsDiskCacheDevice.cpp b/netwerk/cache/nsDiskCacheDevice.cpp index 9cf285a95d78..d0f18c91c867 100644 --- a/netwerk/cache/nsDiskCacheDevice.cpp +++ b/netwerk/cache/nsDiskCacheDevice.cpp @@ -52,15 +52,14 @@ using namespace mozilla; class nsDiskCacheDeviceDeactivateEntryEvent : public Runnable { public: - nsDiskCacheDeviceDeactivateEntryEvent(nsDiskCacheDevice* device, - nsCacheEntry* entry, - nsDiskCacheBinding* binding) - : mozilla::Runnable("nsDiskCacheDeviceDeactivateEntryEvent") - , mCanceled(false) - , mEntry(entry) - , mDevice(device) - , mBinding(binding) - { + nsDiskCacheDeviceDeactivateEntryEvent(nsDiskCacheDevice *device, + nsCacheEntry * entry, + nsDiskCacheBinding * binding) + : mCanceled(false), + mEntry(entry), + mDevice(device), + mBinding(binding) + { } NS_IMETHOD Run() override @@ -83,17 +82,14 @@ private: class nsEvictDiskCacheEntriesEvent : public Runnable { public: - explicit nsEvictDiskCacheEntriesEvent(nsDiskCacheDevice* device) - : mozilla::Runnable("nsEvictDiskCacheEntriesEvent") - , mDevice(device) - { - } + explicit nsEvictDiskCacheEntriesEvent(nsDiskCacheDevice *device) + : mDevice(device) {} - NS_IMETHOD Run() override - { - nsCacheServiceAutoLock lock; - mDevice->EvictDiskCacheEntries(mDevice->mCacheCapacity); - return NS_OK; + NS_IMETHOD Run() override + { + nsCacheServiceAutoLock lock; + mDevice->EvictDiskCacheEntries(mDevice->mCacheCapacity); + return NS_OK; } private: diff --git a/netwerk/cache/nsDiskCacheDeviceSQL.cpp b/netwerk/cache/nsDiskCacheDeviceSQL.cpp index c72460086d65..a616682674dd 100644 --- a/netwerk/cache/nsDiskCacheDeviceSQL.cpp +++ b/netwerk/cache/nsDiskCacheDeviceSQL.cpp @@ -299,11 +299,10 @@ nsOfflineCacheEvictionFunction::Apply() class nsOfflineCacheDiscardCache : public Runnable { public: - nsOfflineCacheDiscardCache(nsOfflineCacheDevice* device, - nsCString& group, - nsCString& clientID) - : mozilla::Runnable("nsOfflineCacheDiscardCache") - , mDevice(device) + nsOfflineCacheDiscardCache(nsOfflineCacheDevice *device, + nsCString &group, + nsCString &clientID) + : mDevice(device) , mGroup(group) , mClientID(clientID) { @@ -921,8 +920,7 @@ nsApplicationCache::GetUsage(uint32_t *usage) class nsCloseDBEvent : public Runnable { public: - explicit nsCloseDBEvent(mozIStorageConnection* aDB) - : mozilla::Runnable("nsCloseDBEvent") + explicit nsCloseDBEvent(mozIStorageConnection *aDB) { mDB = aDB; } diff --git a/netwerk/cache/nsDiskCacheMap.cpp b/netwerk/cache/nsDiskCacheMap.cpp index 7d38055637e5..d7ce13a35a74 100644 --- a/netwerk/cache/nsDiskCacheMap.cpp +++ b/netwerk/cache/nsDiskCacheMap.cpp @@ -1350,12 +1350,10 @@ nsresult nsDiskCacheMap::ResetCacheTimer(int32_t timeout) { mCleanCacheTimer->Cancel(); - nsresult rv = mCleanCacheTimer->InitWithNamedFuncCallback( - RevalidateTimerCallback, - nullptr, - timeout, - nsITimer::TYPE_ONE_SHOT, - "nsDiskCacheMap::ResetCacheTimer"); + nsresult rv = + mCleanCacheTimer->InitWithFuncCallback(RevalidateTimerCallback, + nullptr, timeout, + nsITimer::TYPE_ONE_SHOT); NS_ENSURE_SUCCESS(rv, rv); mLastInvalidateTime = PR_IntervalNow(); diff --git a/netwerk/cache2/CacheEntry.cpp b/netwerk/cache2/CacheEntry.cpp index 2bc7b468b7d4..fcfce09de099 100644 --- a/netwerk/cache2/CacheEntry.cpp +++ b/netwerk/cache2/CacheEntry.cpp @@ -663,8 +663,7 @@ bool CacheEntry::InvokeCallbacks(bool aReadOnly) if (NS_SUCCEEDED(rv) && !onCheckThread) { // Redispatch to the target thread - rv = mCallbacks[i].mTarget->Dispatch(NewRunnableMethod("net::CacheEntry::InvokeCallbacksLock", - this, + rv = mCallbacks[i].mTarget->Dispatch(NewRunnableMethod(this, &CacheEntry::InvokeCallbacksLock), nsIEventTarget::DISPATCH_NORMAL); if (NS_SUCCEEDED(rv)) { @@ -1860,11 +1859,7 @@ void CacheEntry::BackgroundOp(uint32_t aOperations, bool aForceAsync) // Because CacheFile::Set*() are not thread-safe to use (uses WeakReference that // is not thread-safe) we must post to the main thread... - NS_DispatchToMainThread( - NewRunnableMethod("net::CacheEntry::StoreFrecency", - this, - &CacheEntry::StoreFrecency, - mFrecency)); + NS_DispatchToMainThread(NewRunnableMethod(this, &CacheEntry::StoreFrecency, mFrecency)); } if (aOperations & Ops::REGISTER) { @@ -1899,8 +1894,7 @@ void CacheEntry::StoreFrecency(double aFrecency) // CacheOutputCloseListener CacheOutputCloseListener::CacheOutputCloseListener(CacheEntry* aEntry) - : Runnable("net::CacheOutputCloseListener") - , mEntry(aEntry) +: mEntry(aEntry) { } diff --git a/netwerk/cache2/CacheEntry.h b/netwerk/cache2/CacheEntry.h index 044d544bdd9b..d37cecdbb20f 100644 --- a/netwerk/cache2/CacheEntry.h +++ b/netwerk/cache2/CacheEntry.h @@ -208,11 +208,7 @@ private: { public: DoomCallbackRunnable(CacheEntry* aEntry, nsresult aRv) - : Runnable("net::CacheEntry::DoomCallbackRunnable") - , mEntry(aEntry) - , mRv(aRv) - { - } + : mEntry(aEntry), mRv(aRv) {} private: NS_IMETHOD Run() override diff --git a/netwerk/cache2/CacheFile.cpp b/netwerk/cache2/CacheFile.cpp index 89f9a3a73b01..42c6d3b3c68d 100644 --- a/netwerk/cache2/CacheFile.cpp +++ b/netwerk/cache2/CacheFile.cpp @@ -30,11 +30,10 @@ namespace net { class NotifyCacheFileListenerEvent : public Runnable { public: - NotifyCacheFileListenerEvent(CacheFileListener* aCallback, + NotifyCacheFileListenerEvent(CacheFileListener *aCallback, nsresult aResult, bool aIsNew) - : Runnable("net::NotifyCacheFileListenerEvent") - , mCallback(aCallback) + : mCallback(aCallback) , mRV(aResult) , mIsNew(aIsNew) { @@ -66,12 +65,11 @@ protected: class NotifyChunkListenerEvent : public Runnable { public: - NotifyChunkListenerEvent(CacheFileChunkListener* aCallback, + NotifyChunkListenerEvent(CacheFileChunkListener *aCallback, nsresult aResult, uint32_t aChunkIdx, - CacheFileChunk* aChunk) - : Runnable("net::NotifyChunkListenerEvent") - , mCallback(aCallback) + CacheFileChunk *aChunk) + : mCallback(aCallback) , mRV(aResult) , mChunkIdx(aChunkIdx) , mChunk(aChunk) diff --git a/netwerk/cache2/CacheFileChunk.cpp b/netwerk/cache2/CacheFileChunk.cpp index 1cc18d4e9b34..2803fccf5e51 100644 --- a/netwerk/cache2/CacheFileChunk.cpp +++ b/netwerk/cache2/CacheFileChunk.cpp @@ -246,10 +246,9 @@ CacheFileChunkWriteHandle::UpdateDataSize(uint32_t aOffset, uint32_t aLen) class NotifyUpdateListenerEvent : public Runnable { public: - NotifyUpdateListenerEvent(CacheFileChunkListener* aCallback, - CacheFileChunk* aChunk) - : Runnable("net::NotifyUpdateListenerEvent") - , mCallback(aCallback) + NotifyUpdateListenerEvent(CacheFileChunkListener *aCallback, + CacheFileChunk *aChunk) + : mCallback(aCallback) , mChunk(aChunk) { LOG(("NotifyUpdateListenerEvent::NotifyUpdateListenerEvent() [this=%p]", @@ -284,8 +283,7 @@ CacheFileChunk::DispatchRelease() return false; } - NS_DispatchToMainThread(NewNonOwningRunnableMethod( - "net::CacheFileChunk::Release", this, &CacheFileChunk::Release)); + NS_DispatchToMainThread(NewNonOwningRunnableMethod(this, &CacheFileChunk::Release)); return true; } diff --git a/netwerk/cache2/CacheFileContextEvictor.cpp b/netwerk/cache2/CacheFileContextEvictor.cpp index 4328d0bcd6bf..51c87011a230 100644 --- a/netwerk/cache2/CacheFileContextEvictor.cpp +++ b/netwerk/cache2/CacheFileContextEvictor.cpp @@ -523,9 +523,7 @@ CacheFileContextEvictor::StartEvicting() } nsCOMPtr ev; - ev = NewRunnableMethod("net::CacheFileContextEvictor::EvictEntries", - this, - &CacheFileContextEvictor::EvictEntries); + ev = NewRunnableMethod(this, &CacheFileContextEvictor::EvictEntries); RefPtr ioThread = CacheFileIOManager::IOThread(); diff --git a/netwerk/cache2/CacheFileIOManager.cpp b/netwerk/cache2/CacheFileIOManager.cpp index f56f5f1067de..189dd86d7362 100644 --- a/netwerk/cache2/CacheFileIOManager.cpp +++ b/netwerk/cache2/CacheFileIOManager.cpp @@ -69,10 +69,10 @@ CacheFileHandle::DispatchRelease() return false; } - nsresult rv = ioTarget->Dispatch( - NewNonOwningRunnableMethod( - "net::CacheFileHandle::Release", this, &CacheFileHandle::Release), - nsIEventTarget::DISPATCH_NORMAL); + nsresult rv = + ioTarget->Dispatch(NewNonOwningRunnableMethod(this, + &CacheFileHandle::Release), + nsIEventTarget::DISPATCH_NORMAL); if (NS_FAILED(rv)) { return false; } @@ -545,8 +545,7 @@ CacheFileHandles::SizeOfExcludingThis(mozilla::MallocSizeOf mallocSizeOf) const class ShutdownEvent : public Runnable { public: ShutdownEvent() - : Runnable("net::ShutdownEvent") - , mMonitor("ShutdownEvent.mMonitor") + : mMonitor("ShutdownEvent.mMonitor") , mNotified(false) { } @@ -597,11 +596,9 @@ protected: class OpenFileEvent : public Runnable { public: - OpenFileEvent(const nsACString& aKey, - uint32_t aFlags, - CacheFileIOListener* aCallback) - : Runnable("net::OpenFileEvent") - , mFlags(aFlags) + OpenFileEvent(const nsACString &aKey, uint32_t aFlags, + CacheFileIOListener *aCallback) + : mFlags(aFlags) , mCallback(aCallback) , mKey(aKey) { @@ -657,13 +654,9 @@ protected: class ReadEvent : public Runnable { public: - ReadEvent(CacheFileHandle* aHandle, - int64_t aOffset, - char* aBuf, - int32_t aCount, - CacheFileIOListener* aCallback) - : Runnable("net::ReadEvent") - , mHandle(aHandle) + ReadEvent(CacheFileHandle *aHandle, int64_t aOffset, char *aBuf, + int32_t aCount, CacheFileIOListener *aCallback) + : mHandle(aHandle) , mOffset(aOffset) , mBuf(aBuf) , mCount(aCount) @@ -702,15 +695,10 @@ protected: class WriteEvent : public Runnable { public: - WriteEvent(CacheFileHandle* aHandle, - int64_t aOffset, - const char* aBuf, - int32_t aCount, - bool aValidate, - bool aTruncate, - CacheFileIOListener* aCallback) - : Runnable("net::WriteEvent") - , mHandle(aHandle) + WriteEvent(CacheFileHandle *aHandle, int64_t aOffset, const char *aBuf, + int32_t aCount, bool aValidate, bool aTruncate, + CacheFileIOListener *aCallback) + : mHandle(aHandle) , mOffset(aOffset) , mBuf(aBuf) , mCount(aCount) @@ -771,9 +759,9 @@ protected: class DoomFileEvent : public Runnable { public: - DoomFileEvent(CacheFileHandle* aHandle, CacheFileIOListener* aCallback) - : Runnable("net::DoomFileEvent") - , mCallback(aCallback) + DoomFileEvent(CacheFileHandle *aHandle, + CacheFileIOListener *aCallback) + : mCallback(aCallback) , mHandle(aHandle) { } @@ -809,9 +797,9 @@ protected: class DoomFileByKeyEvent : public Runnable { public: - DoomFileByKeyEvent(const nsACString& aKey, CacheFileIOListener* aCallback) - : Runnable("net::DoomFileByKeyEvent") - , mCallback(aCallback) + DoomFileByKeyEvent(const nsACString &aKey, + CacheFileIOListener *aCallback) + : mCallback(aCallback) { SHA1Sum sum; sum.update(aKey.BeginReading(), aKey.Length()); @@ -852,9 +840,8 @@ protected: class ReleaseNSPRHandleEvent : public Runnable { public: - explicit ReleaseNSPRHandleEvent(CacheFileHandle* aHandle) - : Runnable("net::ReleaseNSPRHandleEvent") - , mHandle(aHandle) + explicit ReleaseNSPRHandleEvent(CacheFileHandle *aHandle) + : mHandle(aHandle) { } @@ -879,12 +866,9 @@ protected: class TruncateSeekSetEOFEvent : public Runnable { public: - TruncateSeekSetEOFEvent(CacheFileHandle* aHandle, - int64_t aTruncatePos, - int64_t aEOFPos, - CacheFileIOListener* aCallback) - : Runnable("net::TruncateSeekSetEOFEvent") - , mHandle(aHandle) + TruncateSeekSetEOFEvent(CacheFileHandle *aHandle, int64_t aTruncatePos, + int64_t aEOFPos, CacheFileIOListener *aCallback) + : mHandle(aHandle) , mTruncatePos(aTruncatePos) , mEOFPos(aEOFPos) , mCallback(aCallback) @@ -924,11 +908,9 @@ protected: class RenameFileEvent : public Runnable { public: - RenameFileEvent(CacheFileHandle* aHandle, - const nsACString& aNewName, - CacheFileIOListener* aCallback) - : Runnable("net::RenameFileEvent") - , mHandle(aHandle) + RenameFileEvent(CacheFileHandle *aHandle, const nsACString &aNewName, + CacheFileIOListener *aCallback) + : mHandle(aHandle) , mNewName(aNewName) , mCallback(aCallback) { @@ -966,12 +948,10 @@ protected: class InitIndexEntryEvent : public Runnable { public: - InitIndexEntryEvent(CacheFileHandle* aHandle, - OriginAttrsHash aOriginAttrsHash, - bool aAnonymous, + InitIndexEntryEvent(CacheFileHandle *aHandle, + OriginAttrsHash aOriginAttrsHash, bool aAnonymous, bool aPinning) - : Runnable("net::InitIndexEntryEvent") - , mHandle(aHandle) + : mHandle(aHandle) , mOriginAttrsHash(aOriginAttrsHash) , mAnonymous(aAnonymous) , mPinning(aPinning) @@ -1013,14 +993,13 @@ protected: class UpdateIndexEntryEvent : public Runnable { public: - UpdateIndexEntryEvent(CacheFileHandle* aHandle, - const uint32_t* aFrecency, - const uint32_t* aExpirationTime, - const bool* aHasAltData, - const uint16_t* aOnStartTime, - const uint16_t* aOnStopTime) - : Runnable("net::UpdateIndexEntryEvent") - , mHandle(aHandle) + UpdateIndexEntryEvent(CacheFileHandle *aHandle, + const uint32_t *aFrecency, + const uint32_t *aExpirationTime, + const bool *aHasAltData, + const uint16_t *aOnStartTime, + const uint16_t *aOnStopTime) + : mHandle(aHandle) , mHasFrecency(false) , mHasExpirationTime(false) , mHasHasAltData(false) @@ -1099,11 +1078,10 @@ public: RefPtr mFile; RefPtr mIOMan; - MetadataWriteScheduleEvent(CacheFileIOManager* aManager, - CacheFile* aFile, + MetadataWriteScheduleEvent(CacheFileIOManager * aManager, + CacheFile * aFile, EMode aMode) - : Runnable("net::MetadataWriteScheduleEvent") - , mMode(aMode) + : mMode(aMode) , mFile(aFile) , mIOMan(aManager) { } @@ -2743,9 +2721,8 @@ CacheFileIOManager::EvictIfOverLimit() } nsCOMPtr ev; - ev = NewRunnableMethod("net::CacheFileIOManager::EvictIfOverLimitInternal", - ioMan, - &CacheFileIOManager::EvictIfOverLimitInternal); + ev = NewRunnableMethod(ioMan, + &CacheFileIOManager::EvictIfOverLimitInternal); rv = ioMan->mIOThread->Dispatch(ev, CacheIOThread::EVICT); NS_ENSURE_SUCCESS(rv, rv); @@ -2808,9 +2785,8 @@ CacheFileIOManager::EvictIfOverLimitInternal() cacheUsage, cacheLimit)); nsCOMPtr ev; - ev = NewRunnableMethod("net::CacheFileIOManager::OverLimitEvictionInternal", - this, - &CacheFileIOManager::OverLimitEvictionInternal); + ev = NewRunnableMethod(this, + &CacheFileIOManager::OverLimitEvictionInternal); rv = mIOThread->Dispatch(ev, CacheIOThread::EVICT); NS_ENSURE_SUCCESS(rv, rv); @@ -2969,9 +2945,7 @@ CacheFileIOManager::EvictAll() } nsCOMPtr ev; - ev = NewRunnableMethod("net::CacheFileIOManager::EvictAllInternal", - ioMan, - &CacheFileIOManager::EvictAllInternal); + ev = NewRunnableMethod(ioMan, &CacheFileIOManager::EvictAllInternal); rv = ioMan->mIOThread->DispatchAfterPendingOpens(ev); if (NS_WARN_IF(NS_FAILED(rv))) { @@ -2986,7 +2960,6 @@ namespace { class EvictionNotifierRunnable : public Runnable { public: - EvictionNotifierRunnable() : Runnable("EvictionNotifierRunnable") {} NS_DECL_NSIRUNNABLE }; @@ -3090,12 +3063,8 @@ CacheFileIOManager::EvictByContext(nsILoadContextInfo *aLoadContextInfo, bool aP } nsCOMPtr ev; - ev = NewRunnableMethod, bool>( - "net::CacheFileIOManager::EvictByContextInternal", - ioMan, - &CacheFileIOManager::EvictByContextInternal, - aLoadContextInfo, - aPinned); + ev = NewRunnableMethod, bool> + (ioMan, &CacheFileIOManager::EvictByContextInternal, aLoadContextInfo, aPinned); rv = ioMan->mIOThread->DispatchAfterPendingOpens(ev); if (NS_WARN_IF(NS_FAILED(rv))) { @@ -3213,10 +3182,8 @@ CacheFileIOManager::CacheIndexStateChanged() // We have to re-distatch even if we are on IO thread to prevent reentering // the lock in CacheIndex nsCOMPtr ev; - ev = - NewRunnableMethod("net::CacheFileIOManager::CacheIndexStateChangedInternal", - gInstance.get(), - &CacheFileIOManager::CacheIndexStateChangedInternal); + ev = NewRunnableMethod( + gInstance.get(), &CacheFileIOManager::CacheIndexStateChangedInternal); nsCOMPtr ioTarget = IOTarget(); MOZ_ASSERT(ioTarget); @@ -3380,12 +3347,9 @@ CacheFileIOManager::StartRemovingTrash() rv = timer->SetTarget(ioTarget); NS_ENSURE_SUCCESS(rv, rv); - rv = timer->InitWithNamedFuncCallback( - CacheFileIOManager::OnTrashTimer, - nullptr, - kRemoveTrashStartDelay - elapsed, - nsITimer::TYPE_ONE_SHOT, - "net::CacheFileIOManager::StartRemovingTrash"); + rv = timer->InitWithFuncCallback(CacheFileIOManager::OnTrashTimer, nullptr, + kRemoveTrashStartDelay - elapsed, + nsITimer::TYPE_ONE_SHOT); NS_ENSURE_SUCCESS(rv, rv); mTrashTimer.swap(timer); @@ -3393,9 +3357,8 @@ CacheFileIOManager::StartRemovingTrash() } nsCOMPtr ev; - ev = NewRunnableMethod("net::CacheFileIOManager::RemoveTrashInternal", - this, - &CacheFileIOManager::RemoveTrashInternal); + ev = NewRunnableMethod(this, + &CacheFileIOManager::RemoveTrashInternal); rv = mIOThread->Dispatch(ev, CacheIOThread::EVICT); NS_ENSURE_SUCCESS(rv, rv); @@ -4256,10 +4219,9 @@ class SizeOfHandlesRunnable : public Runnable { public: SizeOfHandlesRunnable(mozilla::MallocSizeOf mallocSizeOf, - CacheFileHandles const& handles, - nsTArray const& specialHandles) - : Runnable("net::SizeOfHandlesRunnable") - , mMonitor("SizeOfHandlesRunnable.mMonitor") + CacheFileHandles const &handles, + nsTArray const &specialHandles) + : mMonitor("SizeOfHandlesRunnable.mMonitor") , mMallocSizeOf(mallocSizeOf) , mHandles(handles) , mSpecialHandles(specialHandles) diff --git a/netwerk/cache2/CacheIndex.cpp b/netwerk/cache2/CacheIndex.cpp index 7cbc5d6b4cd8..836c0be9cf36 100644 --- a/netwerk/cache2/CacheIndex.cpp +++ b/netwerk/cache2/CacheIndex.cpp @@ -367,9 +367,7 @@ CacheIndex::PreShutdown() } nsCOMPtr event; - event = NewRunnableMethod("net::CacheIndex::PreShutdownInternal", - index, - &CacheIndex::PreShutdownInternal); + event = NewRunnableMethod(index, &CacheIndex::PreShutdownInternal); nsCOMPtr ioTarget = CacheFileIOManager::IOTarget(); MOZ_ASSERT(ioTarget); @@ -1438,18 +1436,15 @@ CacheIndex::AsyncGetDiskConsumption(nsICacheStorageConsumptionObserver* aObserve // Move forward with index re/building if it is pending RefPtr ioThread = CacheFileIOManager::IOThread(); if (ioThread) { - ioThread->Dispatch( - NS_NewRunnableFunction("net::CacheIndex::AsyncGetDiskConsumption", - []() -> void { - StaticMutexAutoLock lock(sLock); + ioThread->Dispatch(NS_NewRunnableFunction([]() -> void { + StaticMutexAutoLock lock(sLock); - RefPtr index = gInstance; - if (index && index->mUpdateTimer) { - index->mUpdateTimer->Cancel(); - index->DelayedUpdateLocked(); - } - }), - CacheIOThread::INDEX); + RefPtr index = gInstance; + if (index && index->mUpdateTimer) { + index->mUpdateTimer->Cancel(); + index->DelayedUpdateLocked(); + } + }), CacheIOThread::INDEX); } return NS_OK; @@ -2661,11 +2656,8 @@ CacheIndex::ScheduleUpdateTimer(uint32_t aDelay) rv = timer->SetTarget(ioTarget); NS_ENSURE_SUCCESS(rv, rv); - rv = timer->InitWithNamedFuncCallback(CacheIndex::DelayedUpdate, - nullptr, - aDelay, - nsITimer::TYPE_ONE_SHOT, - "net::CacheIndex::ScheduleUpdateTimer"); + rv = timer->InitWithFuncCallback(CacheIndex::DelayedUpdate, nullptr, + aDelay, nsITimer::TYPE_ONE_SHOT); NS_ENSURE_SUCCESS(rv, rv); mUpdateTimer.swap(timer); diff --git a/netwerk/cache2/CacheIndex.h b/netwerk/cache2/CacheIndex.h index cfbf46cb681f..bfd43efd1190 100644 --- a/netwerk/cache2/CacheIndex.h +++ b/netwerk/cache2/CacheIndex.h @@ -1205,11 +1205,8 @@ private: } private: - explicit DiskConsumptionObserver(nsWeakPtr const& aWeakObserver) - : Runnable("net::CacheIndex::DiskConsumptionObserver") - , mObserver(aWeakObserver) - { - } + explicit DiskConsumptionObserver(nsWeakPtr const &aWeakObserver) + : mObserver(aWeakObserver) { } virtual ~DiskConsumptionObserver() { if (mObserver && !NS_IsMainThread()) { NS_ReleaseOnMainThread( diff --git a/netwerk/cache2/CacheObserver.cpp b/netwerk/cache2/CacheObserver.cpp index 37c834a1e75d..af03316dbf11 100644 --- a/netwerk/cache2/CacheObserver.cpp +++ b/netwerk/cache2/CacheObserver.cpp @@ -325,9 +325,7 @@ CacheObserver::SetDiskCacheCapacity(uint32_t aCapacity) sSelf->StoreDiskCacheCapacity(); } else { nsCOMPtr event = - NewRunnableMethod("net::CacheObserver::StoreDiskCacheCapacity", - sSelf, - &CacheObserver::StoreDiskCacheCapacity); + NewRunnableMethod(sSelf, &CacheObserver::StoreDiskCacheCapacity); NS_DispatchToMainThread(event); } } @@ -353,9 +351,7 @@ CacheObserver::SetCacheFSReported() sSelf->StoreCacheFSReported(); } else { nsCOMPtr event = - NewRunnableMethod("net::CacheObserver::StoreCacheFSReported", - sSelf, - &CacheObserver::StoreCacheFSReported); + NewRunnableMethod(sSelf, &CacheObserver::StoreCacheFSReported); NS_DispatchToMainThread(event); } } @@ -381,9 +377,7 @@ CacheObserver::SetHashStatsReported() sSelf->StoreHashStatsReported(); } else { nsCOMPtr event = - NewRunnableMethod("net::CacheObserver::StoreHashStatsReported", - sSelf, - &CacheObserver::StoreHashStatsReported); + NewRunnableMethod(sSelf, &CacheObserver::StoreHashStatsReported); NS_DispatchToMainThread(event); } } diff --git a/netwerk/cache2/CacheStorageService.cpp b/netwerk/cache2/CacheStorageService.cpp index 0d66ae5c3ddc..bbc68f04562a 100644 --- a/netwerk/cache2/CacheStorageService.cpp +++ b/netwerk/cache2/CacheStorageService.cpp @@ -147,9 +147,7 @@ void CacheStorageService::Shutdown() mShutdown = true; nsCOMPtr event = - NewRunnableMethod("net::CacheStorageService::ShutdownBackground", - this, - &CacheStorageService::ShutdownBackground); + NewRunnableMethod(this, &CacheStorageService::ShutdownBackground); Dispatch(event); #ifdef NS_FREE_PERMANENT_DATA @@ -197,9 +195,9 @@ class WalkCacheRunnable : public Runnable , public CacheStorageService::EntryInfoCallback { protected: - WalkCacheRunnable(nsICacheStorageVisitor* aVisitor, bool aVisitEntries) - : Runnable("net::WalkCacheRunnable") - , mService(CacheStorageService::Self()) + WalkCacheRunnable(nsICacheStorageVisitor* aVisitor, + bool aVisitEntries) + : mService(CacheStorageService::Self()) , mCallback(aVisitor) , mSize(0) , mNotifyStorage(true) @@ -392,8 +390,7 @@ private: { public: explicit OnCacheEntryInfoRunnable(WalkDiskCacheRunnable* aWalker) - : Runnable("net::WalkDiskCacheRunnable::OnCacheEntryInfoRunnable") - , mWalker(aWalker) + : mWalker(aWalker) { } @@ -575,9 +572,7 @@ public: private: CleaupCacheDirectoriesRunnable(uint32_t aVersion, uint32_t aActive) - : Runnable("net::CleaupCacheDirectoriesRunnable") - , mVersion(aVersion) - , mActive(aActive) + : mVersion(aVersion), mActive(aActive) { nsCacheService::GetDiskCacheDirectory(getter_AddRefs(mCache1Dir)); CacheFileIOManager::GetCacheDirectory(getter_AddRefs(mCache2Dir)); @@ -1270,9 +1265,7 @@ CacheStorageService::OnMemoryConsumptionChange(CacheMemoryConsumer* aConsumer, // Dispatch as a priority task, we want to set the purge timer // ASAP to prevent vain redispatch of this event. nsCOMPtr event = - NewRunnableMethod("net::CacheStorageService::SchedulePurgeOverMemoryLimit", - this, - &CacheStorageService::SchedulePurgeOverMemoryLimit); + NewRunnableMethod(this, &CacheStorageService::SchedulePurgeOverMemoryLimit); cacheIOTarget->Dispatch(event, nsIEventTarget::DISPATCH_NORMAL); } @@ -1328,9 +1321,7 @@ CacheStorageService::Notify(nsITimer* aTimer) mPurgeTimer = nullptr; nsCOMPtr event = - NewRunnableMethod("net::CacheStorageService::PurgeOverMemoryLimit", - this, - &CacheStorageService::PurgeOverMemoryLimit); + NewRunnableMethod(this, &CacheStorageService::PurgeOverMemoryLimit); Dispatch(event); } @@ -1821,11 +1812,7 @@ CacheStorageService::DoomStorageEntry(CacheStorage const* aStorage, class Callback : public Runnable { public: - explicit Callback(nsICacheEntryDoomCallback* aCallback) - : mozilla::Runnable("Callback") - , mCallback(aCallback) - { - } + explicit Callback(nsICacheEntryDoomCallback* aCallback) : mCallback(aCallback) { } NS_IMETHOD Run() override { mCallback->OnCacheEntryDoomed(NS_ERROR_NOT_AVAILABLE); @@ -1949,11 +1936,7 @@ CacheStorageService::DoomStorageEntries(nsCSubstring const& aContextKey, class Callback : public Runnable { public: - explicit Callback(nsICacheEntryDoomCallback* aCallback) - : mozilla::Runnable("Callback") - , mCallback(aCallback) - { - } + explicit Callback(nsICacheEntryDoomCallback* aCallback) : mCallback(aCallback) { } NS_IMETHOD Run() override { mCallback->OnCacheEntryDoomed(NS_OK); diff --git a/netwerk/cache2/CacheStorageService.h b/netwerk/cache2/CacheStorageService.h index 67fbfc4d9f65..5f3d60cc24eb 100644 --- a/netwerk/cache2/CacheStorageService.h +++ b/netwerk/cache2/CacheStorageService.h @@ -365,11 +365,7 @@ private: { public: PurgeFromMemoryRunnable(CacheStorageService* aService, uint32_t aWhat) - : Runnable("net::CacheStorageService::PurgeFromMemoryRunnable") - , mService(aService) - , mWhat(aWhat) - { - } + : mService(aService), mWhat(aWhat) { } private: virtual ~PurgeFromMemoryRunnable() { } @@ -390,12 +386,7 @@ private: class IOThreadSuspender : public Runnable { public: - IOThreadSuspender() - : Runnable("net::CacheStorageService::IOThreadSuspender") - , mMon("IOThreadSuspender") - , mSignaled(false) - { - } + IOThreadSuspender() : mMon("IOThreadSuspender"), mSignaled(false) { } void Notify(); private: virtual ~IOThreadSuspender() { } diff --git a/netwerk/cache2/OldWrappers.cpp b/netwerk/cache2/OldWrappers.cpp index ecc1d22e99ff..e33c23cc45ad 100644 --- a/netwerk/cache2/OldWrappers.cpp +++ b/netwerk/cache2/OldWrappers.cpp @@ -40,9 +40,7 @@ namespace { class DoomCallbackSynchronizer : public Runnable { public: - explicit DoomCallbackSynchronizer(nsICacheEntryDoomCallback* cb) - : Runnable("net::DoomCallbackSynchronizer") - , mCB(cb) + explicit DoomCallbackSynchronizer(nsICacheEntryDoomCallback* cb) : mCB(cb) { } nsresult Dispatch(); @@ -304,8 +302,7 @@ NS_IMPL_ISUPPORTS_INHERITED(_OldGetDiskConsumption, _OldGetDiskConsumption::_OldGetDiskConsumption( nsICacheStorageConsumptionObserver* aCallback) - : Runnable("net::_OldGetDiskConsumption") - , mCallback(aCallback) + : mCallback(aCallback) , mSize(0) { } @@ -663,8 +660,7 @@ _OldCacheLoad::_OldCacheLoad(nsCSubstring const& aScheme, nsILoadContextInfo* aLoadInfo, bool aWriteToDisk, uint32_t aFlags) - : Runnable("net::_OldCacheLoad") - , mScheme(aScheme) + : mScheme(aScheme) , mCacheKey(aCacheKey) , mCallback(aCallback) , mLoadInfo(GetLoadContextInfo(aLoadInfo)) diff --git a/netwerk/dns/DNSRequestChild.cpp b/netwerk/dns/DNSRequestChild.cpp index 37d428c8502f..e26078cdca59 100644 --- a/netwerk/dns/DNSRequestChild.cpp +++ b/netwerk/dns/DNSRequestChild.cpp @@ -165,8 +165,7 @@ class CancelDNSRequestEvent : public Runnable { public: CancelDNSRequestEvent(DNSRequestChild* aDnsReq, nsresult aReason) - : Runnable("net::CancelDNSRequestEvent") - , mDnsRequest(aDnsReq) + : mDnsRequest(aDnsReq) , mReasonForCancel(aReason) {} @@ -216,9 +215,7 @@ DNSRequestChild::StartRequest() SystemGroup::Dispatch( "StartDNSRequestChild", TaskCategory::Other, - NewRunnableMethod("net::DNSRequestChild::StartRequest", - this, - &DNSRequestChild::StartRequest)); + NewRunnableMethod(this, &DNSRequestChild::StartRequest)); return; } @@ -282,9 +279,7 @@ DNSRequestChild::RecvLookupCompleted(const DNSRequestResponse& reply) CallOnLookupComplete(); } else { nsCOMPtr event = - NewRunnableMethod("net::DNSRequestChild::CallOnLookupComplete", - this, - &DNSRequestChild::CallOnLookupComplete); + NewRunnableMethod(this, &DNSRequestChild::CallOnLookupComplete); mTarget->Dispatch(event, NS_DISPATCH_NORMAL); } diff --git a/netwerk/dns/mdns/libmdns/MDNSResponderOperator.cpp b/netwerk/dns/mdns/libmdns/MDNSResponderOperator.cpp index fd50ea5f943e..f1779ec9cc89 100644 --- a/netwerk/dns/mdns/libmdns/MDNSResponderOperator.cpp +++ b/netwerk/dns/mdns/libmdns/MDNSResponderOperator.cpp @@ -75,8 +75,7 @@ public: PR_Close(mFD); mFD = nullptr; - mThread->Dispatch(NewRunnableMethod("MDNSResponderOperator::ServiceWatcher::Deallocate", - this, &ServiceWatcher::Deallocate), + mThread->Dispatch(NewRunnableMethod(this, &ServiceWatcher::Deallocate), NS_DISPATCH_NORMAL); } @@ -126,8 +125,7 @@ public: } mFD = PR_ImportFile(osfd); - return PostEvent("MDNSResponderOperator::ServiceWatcher::OnMsgAttach", - &ServiceWatcher::OnMsgAttach); + return PostEvent(&ServiceWatcher::OnMsgAttach); } void Close() @@ -139,8 +137,7 @@ public: return; } - PostEvent("MDNSResponderOperator::ServiceWatcher::OnMsgClose", - &ServiceWatcher::OnMsgClose); + PostEvent(&ServiceWatcher::OnMsgClose); } private: @@ -155,10 +152,9 @@ private: mOperatorHolder = nullptr; } - nsresult PostEvent(const char* aName, - void(ServiceWatcher::*func)(void)) + nsresult PostEvent(void(ServiceWatcher::*func)(void)) { - return gSocketTransportService->Dispatch(NewRunnableMethod(aName, this, func), + return gSocketTransportService->Dispatch(NewRunnableMethod(this, func), NS_DISPATCH_NORMAL); } @@ -223,8 +219,7 @@ private: // if (!gSocketTransportService->CanAttachSocket()) { nsCOMPtr event = - NewRunnableMethod("MDNSResponderOperator::ServiceWatcher::OnMsgAttach", - this, &ServiceWatcher::OnMsgAttach); + NewRunnableMethod(this, &ServiceWatcher::OnMsgAttach); nsresult rv = gSocketTransportService->NotifyWhenCanAttachSocket(event); if (NS_FAILED(rv)) { diff --git a/netwerk/dns/mdns/libmdns/MDNSResponderReply.cpp b/netwerk/dns/mdns/libmdns/MDNSResponderReply.cpp index e887eba83cae..5b008b05454c 100644 --- a/netwerk/dns/mdns/libmdns/MDNSResponderReply.cpp +++ b/netwerk/dns/mdns/libmdns/MDNSResponderReply.cpp @@ -18,8 +18,7 @@ BrowseReplyRunnable::BrowseReplyRunnable(DNSServiceRef aSdRef, const nsACString& aRegType, const nsACString& aReplyDomain, BrowseOperator* aContext) - : Runnable("net::BrowseReplyRunnable") - , mSdRef(aSdRef) + : mSdRef(aSdRef) , mFlags(aFlags) , mInterfaceIndex(aInterfaceIndex) , mErrorCode(aErrorCode) @@ -84,8 +83,7 @@ RegisterReplyRunnable::RegisterReplyRunnable(DNSServiceRef aSdRef, const nsACString& aRegType, const nsACString& domain, RegisterOperator* aContext) - : Runnable("net::RegisterReplyRunnable") - , mSdRef(aSdRef) + : mSdRef(aSdRef) , mFlags(aFlags) , mErrorCode(aErrorCode) , mName(aName) @@ -150,8 +148,7 @@ ResolveReplyRunnable::ResolveReplyRunnable(DNSServiceRef aSdRef, uint16_t aTxtLen, const unsigned char* aTxtRecord, ResolveOperator* aContext) - : Runnable("net::ResolveReplyRunnable") - , mSdRef(aSdRef) + : mSdRef(aSdRef) , mFlags(aFlags) , mInterfaceIndex(aInterfaceIndex) , mErrorCode(aErrorCode) @@ -232,8 +229,7 @@ GetAddrInfoReplyRunnable::GetAddrInfoReplyRunnable(DNSServiceRef aSdRef, const mozilla::net::NetAddr& aAddress, uint32_t aTTL, GetAddrInfoOperator* aContext) - : Runnable("net::GetAddrInfoReplyRunnable") - , mSdRef(aSdRef) + : mSdRef(aSdRef) , mFlags(aFlags) , mInterfaceIndex(aInterfaceIndex) , mErrorCode(aErrorCode) diff --git a/netwerk/dns/nsDNSService2.cpp b/netwerk/dns/nsDNSService2.cpp index dd1b060a3f3a..34a3c75b6018 100644 --- a/netwerk/dns/nsDNSService2.cpp +++ b/netwerk/dns/nsDNSService2.cpp @@ -453,10 +453,9 @@ nsDNSSyncRequest::SizeOfIncludingThis(MallocSizeOf mallocSizeOf) const class NotifyDNSResolution: public Runnable { public: - explicit NotifyDNSResolution(const nsACString& aHostname) - : mozilla::Runnable("NotifyDNSResolution") - , mHostname(aHostname) - { + explicit NotifyDNSResolution(const nsACString &aHostname) + : mHostname(aHostname) + { } NS_IMETHOD Run() override diff --git a/netwerk/ipc/ChannelEventQueue.cpp b/netwerk/ipc/ChannelEventQueue.cpp index f099d44499cf..471f88cb7a17 100644 --- a/netwerk/ipc/ChannelEventQueue.cpp +++ b/netwerk/ipc/ChannelEventQueue.cpp @@ -149,8 +149,7 @@ ChannelEventQueue::ResumeInternal() { public: explicit CompleteResumeRunnable(ChannelEventQueue* aQueue, nsISupports* aOwner) - : CancelableRunnable("CompleteResumeRunnable") - , mQueue(aQueue) + : mQueue(aQueue) , mOwner(aOwner) { } diff --git a/netwerk/protocol/about/nsAboutCache.cpp b/netwerk/protocol/about/nsAboutCache.cpp index 8a2857fd6000..d85738c47796 100644 --- a/netwerk/protocol/about/nsAboutCache.cpp +++ b/netwerk/protocol/about/nsAboutCache.cpp @@ -224,10 +224,7 @@ nsAboutCache::Channel::VisitNextStorage() // from visitor callback. The cache v1 service doesn't like it. // TODO - mayhemer, bug 913828, remove this dispatch and call // directly. - return NS_DispatchToMainThread( - mozilla::NewRunnableMethod("nsAboutCache::Channel::FireVisitStorage", - this, - &nsAboutCache::Channel::FireVisitStorage)); + return NS_DispatchToMainThread(mozilla::NewRunnableMethod(this, &nsAboutCache::Channel::FireVisitStorage)); } void diff --git a/netwerk/protocol/file/nsFileChannel.cpp b/netwerk/protocol/file/nsFileChannel.cpp index 13fd3dc51147..695aecde8e1d 100644 --- a/netwerk/protocol/file/nsFileChannel.cpp +++ b/netwerk/protocol/file/nsFileChannel.cpp @@ -35,14 +35,12 @@ using namespace mozilla::net; class nsFileCopyEvent : public Runnable { public: - nsFileCopyEvent(nsIOutputStream* dest, nsIInputStream* source, int64_t len) - : mozilla::Runnable("nsFileCopyEvent") - , mDest(dest) + nsFileCopyEvent(nsIOutputStream *dest, nsIInputStream *source, int64_t len) + : mDest(dest) , mSource(source) , mLen(len) , mStatus(NS_OK) - , mInterruptStatus(NS_OK) - { + , mInterruptStatus(NS_OK) { } // Read the current status of the file copy operation. @@ -235,9 +233,7 @@ nsFileUploadContentStream::AsyncWait(nsIInputStreamCallback *callback, if (IsNonBlocking()) { nsCOMPtr callback = - NewRunnableMethod("nsFileUploadContentStream::OnCopyComplete", - this, - &nsFileUploadContentStream::OnCopyComplete); + NewRunnableMethod(this, &nsFileUploadContentStream::OnCopyComplete); mCopyEvent->Dispatch(callback, mSink, target); } diff --git a/netwerk/protocol/ftp/FTPChannelParent.cpp b/netwerk/protocol/ftp/FTPChannelParent.cpp index 1e89f16cd289..cf3577bb1501 100644 --- a/netwerk/protocol/ftp/FTPChannelParent.cpp +++ b/netwerk/protocol/ftp/FTPChannelParent.cpp @@ -755,9 +755,7 @@ FTPChannelParent::DivertTo(nsIStreamListener *aListener) // Call OnStartRequest and SendDivertMessages asynchronously to avoid // reentering client context. NS_DispatchToCurrentThread( - NewRunnableMethod("net::FTPChannelParent::StartDiversion", - this, - &FTPChannelParent::StartDiversion)); + NewRunnableMethod(this, &FTPChannelParent::StartDiversion)); return; } @@ -802,11 +800,10 @@ FTPChannelParent::StartDiversion() class FTPFailDiversionEvent : public Runnable { public: - FTPFailDiversionEvent(FTPChannelParent* aChannelParent, + FTPFailDiversionEvent(FTPChannelParent *aChannelParent, nsresult aErrorCode, bool aSkipResume) - : Runnable("net::FTPFailDiversionEvent") - , mChannelParent(aChannelParent) + : mChannelParent(aChannelParent) , mErrorCode(aErrorCode) , mSkipResume(aSkipResume) { diff --git a/netwerk/protocol/ftp/nsFTPChannel.cpp b/netwerk/protocol/ftp/nsFTPChannel.cpp index 06bb3b567bd1..b6c43f79af31 100644 --- a/netwerk/protocol/ftp/nsFTPChannel.cpp +++ b/netwerk/protocol/ftp/nsFTPChannel.cpp @@ -148,17 +148,15 @@ public: class OnFTPControlLogRunnable : public Runnable { public: - OnFTPControlLogRunnable(nsIFTPEventSink* aTarget, - bool aServer, - const char* aMessage) - : mozilla::Runnable("FTPEventSinkProxy::OnFTPControlLogRunnable") - , mTarget(aTarget) - , mServer(aServer) - , mMessage(aMessage) - { - } + OnFTPControlLogRunnable(nsIFTPEventSink* aTarget, + bool aServer, + const char* aMessage) + : mTarget(aTarget) + , mServer(aServer) + , mMessage(aMessage) + { } - NS_DECL_NSIRUNNABLE + NS_DECL_NSIRUNNABLE private: nsCOMPtr mTarget; diff --git a/netwerk/protocol/ftp/nsFtpConnectionThread.cpp b/netwerk/protocol/ftp/nsFtpConnectionThread.cpp index 79cde813624b..ae3354881f62 100644 --- a/netwerk/protocol/ftp/nsFtpConnectionThread.cpp +++ b/netwerk/protocol/ftp/nsFtpConnectionThread.cpp @@ -1779,11 +1779,10 @@ nsFtpState::KillControlConnection() class nsFtpAsyncAlert : public Runnable { public: - nsFtpAsyncAlert(nsIPrompt* aPrompter, nsString aResponseMsg) - : mozilla::Runnable("nsFtpAsyncAlert") - , mPrompter(aPrompter) - , mResponseMsg(aResponseMsg) - { + nsFtpAsyncAlert(nsIPrompt *aPrompter, nsString aResponseMsg) + : mPrompter(aPrompter) + , mResponseMsg(aResponseMsg) + { } protected: virtual ~nsFtpAsyncAlert() diff --git a/netwerk/protocol/ftp/nsFtpProtocolHandler.cpp b/netwerk/protocol/ftp/nsFtpProtocolHandler.cpp index 1e3831be22d2..2724e397bd1d 100644 --- a/netwerk/protocol/ftp/nsFtpProtocolHandler.cpp +++ b/netwerk/protocol/ftp/nsFtpProtocolHandler.cpp @@ -331,12 +331,10 @@ nsFtpProtocolHandler::InsertConnection(nsIURI *aKey, nsFtpControlConnection *aCo if (!ts) return NS_ERROR_OUT_OF_MEMORY; - rv = timer->InitWithNamedFuncCallback( - nsFtpProtocolHandler::Timeout, - ts, - mIdleTimeout * 1000, - nsITimer::TYPE_REPEATING_SLACK, - "nsFtpProtocolHandler::InsertConnection"); + rv = timer->InitWithFuncCallback(nsFtpProtocolHandler::Timeout, + ts, + mIdleTimeout*1000, + nsITimer::TYPE_REPEATING_SLACK); if (NS_FAILED(rv)) { delete ts; return rv; diff --git a/netwerk/protocol/gio/nsGIOProtocolHandler.cpp b/netwerk/protocol/gio/nsGIOProtocolHandler.cpp index a1fce01b6bc5..d94fda4ca643 100644 --- a/netwerk/protocol/gio/nsGIOProtocolHandler.cpp +++ b/netwerk/protocol/gio/nsGIOProtocolHandler.cpp @@ -543,10 +543,8 @@ nsGIOInputStream::DoRead(char *aBuf, uint32_t aCount, uint32_t *aCountRead) class nsGIOSetContentTypeEvent : public mozilla::Runnable { public: - nsGIOSetContentTypeEvent(nsIChannel* channel, const char* contentType) - : mozilla::Runnable("nsGIOSetContentTypeEvent") - , mChannel(channel) - , mContentType(contentType) + nsGIOSetContentTypeEvent(nsIChannel *channel, const char *contentType) + : mChannel(channel), mContentType(contentType) { // stash channel reference in mChannel. no AddRef here! see note // in SetContentTypeOfchannel. diff --git a/netwerk/protocol/http/AlternateServices.cpp b/netwerk/protocol/http/AlternateServices.cpp index 5c01969c3c34..46accd423741 100644 --- a/netwerk/protocol/http/AlternateServices.cpp +++ b/netwerk/protocol/http/AlternateServices.cpp @@ -270,8 +270,7 @@ AltSvcMapping::Sync() if (!NS_IsMainThread()) { nsCOMPtr r; - r = NewRunnableMethod("net::AltSvcMapping::SyncString", - this, + r = NewRunnableMethod(this, &AltSvcMapping::SyncString, value); NS_DispatchToMainThread(r, NS_DISPATCH_NORMAL); @@ -985,21 +984,18 @@ AltSvcCache::GetAltServiceMapping(const nsACString &scheme, const nsACString &ho class ProxyClearHostMapping : public Runnable { public: - explicit ProxyClearHostMapping(const nsACString& host, - int32_t port, - const OriginAttributes& originAttributes) - : Runnable("net::ProxyClearHostMapping") - , mHost(host) + explicit ProxyClearHostMapping(const nsACString &host, int32_t port, + const OriginAttributes &originAttributes) + : mHost(host) , mPort(port) , mOriginAttributes(originAttributes) - { - } + {} - NS_IMETHOD Run() override - { - MOZ_ASSERT(NS_IsMainThread()); - gHttpHandler->ConnMgr()->ClearHostMapping(mHost, mPort, mOriginAttributes); - return NS_OK; + NS_IMETHOD Run() override + { + MOZ_ASSERT(NS_IsMainThread()); + gHttpHandler->ConnMgr()->ClearHostMapping(mHost, mPort, mOriginAttributes); + return NS_OK; } private: nsCString mHost; diff --git a/netwerk/protocol/http/Http2Push.cpp b/netwerk/protocol/http/Http2Push.cpp index 34adc008ff6c..2b1356ba8bb8 100644 --- a/netwerk/protocol/http/Http2Push.cpp +++ b/netwerk/protocol/http/Http2Push.cpp @@ -25,14 +25,13 @@ namespace net { class CallChannelOnPush final : public Runnable { public: - CallChannelOnPush(nsIHttpChannelInternal* associatedChannel, - const nsACString& pushedURI, - Http2PushedStream* pushStream) - : Runnable("net::CallChannelOnPush") - , mAssociatedChannel(associatedChannel) - , mPushedURI(pushedURI) - , mPushedStream(pushStream) - { + CallChannelOnPush(nsIHttpChannelInternal *associatedChannel, + const nsACString &pushedURI, + Http2PushedStream *pushStream) + : mAssociatedChannel(associatedChannel) + , mPushedURI(pushedURI) + , mPushedStream(pushStream) + { } NS_IMETHOD Run() override diff --git a/netwerk/protocol/http/Http2Session.cpp b/netwerk/protocol/http/Http2Session.cpp index 2ee3a577a27b..9ae4c31e3c23 100644 --- a/netwerk/protocol/http/Http2Session.cpp +++ b/netwerk/protocol/http/Http2Session.cpp @@ -2107,12 +2107,11 @@ Http2Session::RecvContinuation(Http2Session *self) class UpdateAltSvcEvent : public Runnable { public: - UpdateAltSvcEvent(const nsCString& header, - const nsCString& aOrigin, - nsHttpConnectionInfo* aCI, - nsIInterfaceRequestor* callbacks) - : Runnable("net::UpdateAltSvcEvent") - , mHeader(header) +UpdateAltSvcEvent(const nsCString &header, + const nsCString &aOrigin, + nsHttpConnectionInfo *aCI, + nsIInterfaceRequestor *callbacks) + : mHeader(header) , mOrigin(aOrigin) , mCI(aCI) , mCallbacks(callbacks) diff --git a/netwerk/protocol/http/HttpBackgroundChannelChild.cpp b/netwerk/protocol/http/HttpBackgroundChannelChild.cpp index 82b172870f85..5adc316df39a 100644 --- a/netwerk/protocol/http/HttpBackgroundChannelChild.cpp +++ b/netwerk/protocol/http/HttpBackgroundChannelChild.cpp @@ -205,19 +205,12 @@ HttpBackgroundChannelChild::RecvOnTransportAndData( LOG((" > pending until OnStartRequest [offset=%" PRIu64 " count=%" PRIu32 "]\n", aOffset, aCount)); - mQueuedRunnables.AppendElement(NewRunnableMethod( - "net::HttpBackgroundChannelChild::RecvOnTransportAndData", - this, - &HttpBackgroundChannelChild::RecvOnTransportAndData, - aChannelStatus, - aTransportStatus, - aOffset, - aCount, - aData)); + mQueuedRunnables.AppendElement( + NewRunnableMethod( + this, &HttpBackgroundChannelChild::RecvOnTransportAndData, + aChannelStatus, aTransportStatus, aOffset, + aCount, aData)); return IPC_OK(); } @@ -249,11 +242,8 @@ HttpBackgroundChannelChild::RecvOnStopRequest( mQueuedRunnables.AppendElement( NewRunnableMethod( - "net::HttpBackgroundChannelChild::RecvOnStopRequest", - this, - &HttpBackgroundChannelChild::RecvOnStopRequest, - aChannelStatus, - aTiming)); + this, &HttpBackgroundChannelChild::RecvOnStopRequest, + aChannelStatus, aTiming)); return IPC_OK(); } @@ -281,11 +271,8 @@ HttpBackgroundChannelChild::RecvOnProgress(const int64_t& aProgress, mQueuedRunnables.AppendElement( NewRunnableMethod( - "net::HttpBackgroundChannelChild::RecvOnProgress", - this, - &HttpBackgroundChannelChild::RecvOnProgress, - aProgress, - aProgressMax)); + this, &HttpBackgroundChannelChild::RecvOnProgress, + aProgress, aProgressMax)); return IPC_OK(); } @@ -310,11 +297,9 @@ HttpBackgroundChannelChild::RecvOnStatus(const nsresult& aStatus) LOG((" > pending until OnStartRequest [status=%" PRIx32 "]\n", static_cast(aStatus))); - mQueuedRunnables.AppendElement(NewRunnableMethod( - "net::HttpBackgroundChannelChild::RecvOnStatus", - this, - &HttpBackgroundChannelChild::RecvOnStatus, - aStatus)); + mQueuedRunnables.AppendElement( + NewRunnableMethod( + this, &HttpBackgroundChannelChild::RecvOnStatus, aStatus)); return IPC_OK(); } @@ -337,10 +322,8 @@ HttpBackgroundChannelChild::RecvFlushedForDiversion() if (IsWaitingOnStartRequest()) { LOG((" > pending until OnStartRequest\n")); - mQueuedRunnables.AppendElement(NewRunnableMethod( - "net::HttpBackgroundChannelChild::RecvFlushedForDiversion", - this, - &HttpBackgroundChannelChild::RecvFlushedForDiversion)); + mQueuedRunnables.AppendElement( + NewRunnableMethod(this, &HttpBackgroundChannelChild::RecvFlushedForDiversion)); return IPC_OK(); } @@ -364,9 +347,7 @@ HttpBackgroundChannelChild::RecvDivertMessages() LOG((" > pending until OnStartRequest\n")); mQueuedRunnables.AppendElement( - NewRunnableMethod("net::HttpBackgroundChannelChild::RecvDivertMessages", - this, - &HttpBackgroundChannelChild::RecvDivertMessages)); + NewRunnableMethod(this, &HttpBackgroundChannelChild::RecvDivertMessages)); return IPC_OK(); } @@ -439,8 +420,8 @@ HttpBackgroundChannelChild::ActorDestroy(ActorDestroyReason aWhy) if (!mQueuedRunnables.IsEmpty()) { LOG((" > pending until queued messages are flushed\n")); RefPtr self = this; - mQueuedRunnables.AppendElement(NS_NewRunnableFunction( - "net::HttpBackgroundChannelChild::ActorDestroy", [self]() { + mQueuedRunnables.AppendElement( + NS_NewRunnableFunction([self]() { MOZ_ASSERT(NS_IsMainThread()); RefPtr channelChild = self->mChannelChild.forget(); diff --git a/netwerk/protocol/http/HttpBackgroundChannelParent.cpp b/netwerk/protocol/http/HttpBackgroundChannelParent.cpp index 3dc3395f71e3..83167245e0c4 100644 --- a/netwerk/protocol/http/HttpBackgroundChannelParent.cpp +++ b/netwerk/protocol/http/HttpBackgroundChannelParent.cpp @@ -37,8 +37,7 @@ class ContinueAsyncOpenRunnable final : public Runnable public: ContinueAsyncOpenRunnable(HttpBackgroundChannelParent* aActor, const uint64_t& aChannelId) - : Runnable("net::ContinueAsyncOpenRunnable") - , mActor(aActor) + : mActor(aActor) , mChannelId(aChannelId) { AssertIsInMainProcess(); @@ -123,21 +122,16 @@ HttpBackgroundChannelParent::OnChannelClosed() nsresult rv; RefPtr self = this; - rv = mBackgroundThread->Dispatch( - NS_NewRunnableFunction( - "net::HttpBackgroundChannelParent::OnChannelClosed", - [self]() { - LOG(("HttpBackgroundChannelParent::DeleteRunnable [this=%p]\n", - self.get())); - AssertIsOnBackgroundThread(); + rv = mBackgroundThread->Dispatch(NS_NewRunnableFunction([self]() { + LOG(("HttpBackgroundChannelParent::DeleteRunnable [this=%p]\n", self.get())); + AssertIsOnBackgroundThread(); - if (!self->mIPCOpened.compareExchange(true, false)) { - return; - } + if (!self->mIPCOpened.compareExchange(true, false)) { + return; + } - Unused << self->Send__delete__(self); - }), - NS_DISPATCH_NORMAL); + Unused << self->Send__delete__(self); + }), NS_DISPATCH_NORMAL); Unused << NS_WARN_IF(NS_FAILED(rv)); } @@ -154,9 +148,7 @@ HttpBackgroundChannelParent::OnStartRequestSent() if (!IsOnBackgroundThread()) { nsresult rv = mBackgroundThread->Dispatch( - NewRunnableMethod("net::HttpBackgroundChannelParent::OnStartRequestSent", - this, - &HttpBackgroundChannelParent::OnStartRequestSent), + NewRunnableMethod(this, &HttpBackgroundChannelParent::OnStartRequestSent), NS_DISPATCH_NORMAL); MOZ_DIAGNOSTIC_ASSERT(NS_SUCCEEDED(rv)); @@ -184,19 +176,10 @@ HttpBackgroundChannelParent::OnTransportAndData( if (!IsOnBackgroundThread()) { nsresult rv = mBackgroundThread->Dispatch( - NewRunnableMethod( - "net::HttpBackgroundChannelParent::OnTransportAndData", - this, - &HttpBackgroundChannelParent::OnTransportAndData, - aChannelStatus, - aTransportStatus, - aOffset, - aCount, - aData), + NewRunnableMethod + (this, &HttpBackgroundChannelParent::OnTransportAndData, + aChannelStatus, aTransportStatus, aOffset, aCount, aData), NS_DISPATCH_NORMAL); MOZ_DIAGNOSTIC_ASSERT(NS_SUCCEEDED(rv)); @@ -222,12 +205,9 @@ HttpBackgroundChannelParent::OnStopRequest(const nsresult& aChannelStatus, if (!IsOnBackgroundThread()) { nsresult rv = mBackgroundThread->Dispatch( - NewRunnableMethod( - "net::HttpBackgroundChannelParent::OnStopRequest", - this, - &HttpBackgroundChannelParent::OnStopRequest, - aChannelStatus, - aTiming), + NewRunnableMethod + (this, &HttpBackgroundChannelParent::OnStopRequest, + aChannelStatus, aTiming), NS_DISPATCH_NORMAL); MOZ_DIAGNOSTIC_ASSERT(NS_SUCCEEDED(rv)); @@ -252,12 +232,9 @@ HttpBackgroundChannelParent::OnProgress(const int64_t& aProgress, if (!IsOnBackgroundThread()) { nsresult rv = mBackgroundThread->Dispatch( - NewRunnableMethod( - "net::HttpBackgroundChannelParent::OnProgress", - this, - &HttpBackgroundChannelParent::OnProgress, - aProgress, - aProgressMax), + NewRunnableMethod + (this, &HttpBackgroundChannelParent::OnProgress, + aProgress, aProgressMax), NS_DISPATCH_NORMAL); MOZ_DIAGNOSTIC_ASSERT(NS_SUCCEEDED(rv)); @@ -281,11 +258,8 @@ HttpBackgroundChannelParent::OnStatus(const nsresult& aStatus) if (!IsOnBackgroundThread()) { nsresult rv = mBackgroundThread->Dispatch( - NewRunnableMethod( - "net::HttpBackgroundChannelParent::OnStatus", - this, - &HttpBackgroundChannelParent::OnStatus, - aStatus), + NewRunnableMethod + (this, &HttpBackgroundChannelParent::OnStatus, aStatus), NS_DISPATCH_NORMAL); MOZ_DIAGNOSTIC_ASSERT(NS_SUCCEEDED(rv)); @@ -308,9 +282,7 @@ HttpBackgroundChannelParent::OnDiversion() if (!IsOnBackgroundThread()) { nsresult rv = mBackgroundThread->Dispatch( - NewRunnableMethod("net::HttpBackgroundChannelParent::OnDiversion", - this, - &HttpBackgroundChannelParent::OnDiversion), + NewRunnableMethod(this, &HttpBackgroundChannelParent::OnDiversion), NS_DISPATCH_NORMAL); MOZ_DIAGNOSTIC_ASSERT(NS_SUCCEEDED(rv)); @@ -343,10 +315,7 @@ HttpBackgroundChannelParent::OnNotifyTrackingProtectionDisabled() if (!IsOnBackgroundThread()) { nsresult rv = mBackgroundThread->Dispatch( - NewRunnableMethod( - "net::HttpBackgroundChannelParent::OnNotifyTrackingProtectionDisabled", - this, - &HttpBackgroundChannelParent::OnNotifyTrackingProtectionDisabled), + NewRunnableMethod(this, &HttpBackgroundChannelParent::OnNotifyTrackingProtectionDisabled), NS_DISPATCH_NORMAL); MOZ_DIAGNOSTIC_ASSERT(NS_SUCCEEDED(rv)); @@ -369,10 +338,7 @@ HttpBackgroundChannelParent::OnNotifyTrackingResource() if (!IsOnBackgroundThread()) { nsresult rv = mBackgroundThread->Dispatch( - NewRunnableMethod( - "net::HttpBackgroundChannelParent::OnNotifyTrackingResource", - this, - &HttpBackgroundChannelParent::OnNotifyTrackingResource), + NewRunnableMethod(this, &HttpBackgroundChannelParent::OnNotifyTrackingResource), NS_DISPATCH_NORMAL); MOZ_DIAGNOSTIC_ASSERT(NS_SUCCEEDED(rv)); @@ -398,13 +364,9 @@ HttpBackgroundChannelParent::OnSetClassifierMatchedInfo( if (!IsOnBackgroundThread()) { nsresult rv = mBackgroundThread->Dispatch( - NewRunnableMethod( - "net::HttpBackgroundChannelParent::OnSetClassifierMatchedInfo", - this, - &HttpBackgroundChannelParent::OnSetClassifierMatchedInfo, - aList, - aProvider, - aPrefix), + NewRunnableMethod + (this, &HttpBackgroundChannelParent::OnSetClassifierMatchedInfo, + aList, aProvider, aPrefix), NS_DISPATCH_NORMAL); MOZ_DIAGNOSTIC_ASSERT(NS_SUCCEEDED(rv)); @@ -430,8 +392,8 @@ HttpBackgroundChannelParent::ActorDestroy(ActorDestroyReason aWhy) mIPCOpened = false; RefPtr self = this; - DebugOnly rv = NS_DispatchToMainThread(NS_NewRunnableFunction( - "net::HttpBackgroundChannelParent::ActorDestroy", [self]() { + DebugOnly rv = + NS_DispatchToMainThread(NS_NewRunnableFunction([self]() { MOZ_ASSERT(NS_IsMainThread()); RefPtr channelParent = diff --git a/netwerk/protocol/http/HttpBaseChannel.cpp b/netwerk/protocol/http/HttpBaseChannel.cpp index cf4978453981..746732acae24 100644 --- a/netwerk/protocol/http/HttpBaseChannel.cpp +++ b/netwerk/protocol/http/HttpBaseChannel.cpp @@ -916,10 +916,7 @@ HttpBaseChannel::OnCopyComplete(nsresult aStatus) MOZ_ASSERT(XRE_IsParentProcess()); nsCOMPtr runnable = NewRunnableMethod( - "net::HttpBaseChannel::EnsureUploadStreamIsCloneableComplete", - this, - &HttpBaseChannel::EnsureUploadStreamIsCloneableComplete, - aStatus); + this, &HttpBaseChannel::EnsureUploadStreamIsCloneableComplete, aStatus); NS_DispatchToMainThread(runnable.forget()); } diff --git a/netwerk/protocol/http/HttpBaseChannel.h b/netwerk/protocol/http/HttpBaseChannel.h index 3bb119cc7b93..1241a606e625 100644 --- a/netwerk/protocol/http/HttpBaseChannel.h +++ b/netwerk/protocol/http/HttpBaseChannel.h @@ -724,8 +724,7 @@ nsresult HttpAsyncAborter::AsyncCall(void (T::*funcPtr)(), { nsresult rv; - RefPtr> event = - NewRunnableMethod("net::HttpAsyncAborter::AsyncCall", mThis, funcPtr); + RefPtr> event = NewRunnableMethod(mThis, funcPtr); rv = NS_DispatchToCurrentThread(event); if (NS_SUCCEEDED(rv) && retval) { *retval = event; diff --git a/netwerk/protocol/http/HttpChannelChild.cpp b/netwerk/protocol/http/HttpChannelChild.cpp index eabe4bf755b7..701984dc3f30 100644 --- a/netwerk/protocol/http/HttpChannelChild.cpp +++ b/netwerk/protocol/http/HttpChannelChild.cpp @@ -789,13 +789,12 @@ HttpChannelChild::OnTransportAndData(const nsresult& channelStatus, nsCOMPtr neckoTarget = GetNeckoTarget(); MOZ_ASSERT(neckoTarget); - DebugOnly rv = neckoTarget->Dispatch( - NS_NewRunnableFunction("net::HttpChannelChild::OnTransportAndData", - [self, transportStatus, progress, progressMax]() { - self->DoOnStatus(self, transportStatus); - self->DoOnProgress(self, progress, progressMax); - }), - NS_DISPATCH_NORMAL); + DebugOnly rv = + neckoTarget->Dispatch( + NS_NewRunnableFunction([self, transportStatus, progress, progressMax]() { + self->DoOnStatus(self, transportStatus); + self->DoOnProgress(self, progress, progressMax); + }), NS_DISPATCH_NORMAL); MOZ_ASSERT(NS_SUCCEEDED(rv)); } @@ -988,9 +987,7 @@ HttpChannelChild::OnStopRequest(const nsresult& channelStatus, MOZ_ASSERT(neckoTarget); DebugOnly rv = neckoTarget->Dispatch( - NewRunnableMethod( - "net::ChannelEventQueue::Resume", mEventQ, &ChannelEventQueue::Resume), - NS_DISPATCH_NORMAL); + NewRunnableMethod(mEventQ, &ChannelEventQueue::Resume), NS_DISPATCH_NORMAL); MOZ_ASSERT(NS_SUCCEEDED(rv)); return; } @@ -1304,9 +1301,7 @@ HttpChannelChild::CleanupBackgroundChannel() SystemGroup::Dispatch( "HttpChannelChild::CleanupBackgroundChannel", TaskCategory::Other, - NewRunnableMethod("net::HttpBackgroundChannelChild::OnChannelClosed", - bgChild, - &HttpBackgroundChannelChild::OnChannelClosed)); + NewRunnableMethod(bgChild, &HttpBackgroundChannelChild::OnChannelClosed)); } else { bgChild->OnChannelClosed(); } @@ -1339,13 +1334,11 @@ HttpChannelChild::RecvDeleteSelf() return IPC_OK(); } -HttpChannelChild::OverrideRunnable::OverrideRunnable( - HttpChannelChild* aChannel, - HttpChannelChild* aNewChannel, - InterceptStreamListener* aListener, - nsIInputStream* aInput, - nsAutoPtr& aHead) - : Runnable("net::HttpChannelChild::OverrideRunnable") +HttpChannelChild::OverrideRunnable::OverrideRunnable(HttpChannelChild* aChannel, + HttpChannelChild* aNewChannel, + InterceptStreamListener* aListener, + nsIInputStream* aInput, + nsAutoPtr& aHead) { mChannel = aChannel; mNewChannel = aNewChannel; @@ -1398,11 +1391,9 @@ HttpChannelChild::RecvFinishInterceptedRedirect() nsCOMPtr neckoTarget = GetNeckoTarget(); MOZ_ASSERT(neckoTarget); - Unused << neckoTarget->Dispatch( - NewRunnableMethod("net::HttpChannelChild::FinishInterceptedRedirect", - this, - &HttpChannelChild::FinishInterceptedRedirect), - NS_DISPATCH_NORMAL); + Unused << neckoTarget->Dispatch( + NewRunnableMethod(this, &HttpChannelChild::FinishInterceptedRedirect), + NS_DISPATCH_NORMAL); return IPC_OK(); } @@ -3232,11 +3223,10 @@ HttpChannelChild::TrySendDeletingChannel() nsCOMPtr neckoTarget = GetNeckoTarget(); MOZ_ASSERT(neckoTarget); - DebugOnly rv = neckoTarget->Dispatch( - NewNonOwningRunnableMethod("net::HttpChannelChild::TrySendDeletingChannel", - this, - &HttpChannelChild::TrySendDeletingChannel), - NS_DISPATCH_NORMAL); + DebugOnly rv = + neckoTarget->Dispatch( + NewNonOwningRunnableMethod(this, &HttpChannelChild::TrySendDeletingChannel), + NS_DISPATCH_NORMAL); MOZ_ASSERT(NS_SUCCEEDED(rv)); } @@ -3244,10 +3234,7 @@ void HttpChannelChild::OnCopyComplete(nsresult aStatus) { nsCOMPtr runnable = NewRunnableMethod( - "net::HttpBaseChannel::EnsureUploadStreamIsCloneableComplete", - this, - &HttpChannelChild::EnsureUploadStreamIsCloneableComplete, - aStatus); + this, &HttpChannelChild::EnsureUploadStreamIsCloneableComplete, aStatus); nsCOMPtr neckoTarget = GetNeckoTarget(); MOZ_ASSERT(neckoTarget); @@ -3261,7 +3248,7 @@ HttpChannelChild::AsyncCall(void (HttpChannelChild::*funcPtr)(), nsresult rv; RefPtr> event = - NewRunnableMethod("net::HttpChannelChild::AsyncCall", this, funcPtr); + NewRunnableMethod(this, funcPtr); nsCOMPtr neckoTarget = GetNeckoTarget(); MOZ_ASSERT(neckoTarget); diff --git a/netwerk/protocol/http/HttpChannelParent.cpp b/netwerk/protocol/http/HttpChannelParent.cpp index 84858280455d..c12e71ed047e 100644 --- a/netwerk/protocol/http/HttpChannelParent.cpp +++ b/netwerk/protocol/http/HttpChannelParent.cpp @@ -392,9 +392,8 @@ class InvokeAsyncOpen : public Runnable public: InvokeAsyncOpen(const nsMainThreadPtrHandle& aChannel, nsresult aStatus) - : Runnable("net::InvokeAsyncOpen") - , mChannel(aChannel) - , mStatus(aStatus) + : mChannel(aChannel) + , mStatus(aStatus) { } @@ -1965,9 +1964,7 @@ HttpChannelParent::DivertTo(nsIStreamListener *aListener) // Call OnStartRequest and SendDivertMessages asynchronously to avoid // reentering client context. NS_DispatchToCurrentThread( - NewRunnableMethod("net::HttpChannelParent::StartDiversion", - this, - &HttpChannelParent::StartDiversion)); + NewRunnableMethod(this, &HttpChannelParent::StartDiversion)); return; } @@ -2031,8 +2028,7 @@ class HTTPFailDiversionEvent : public Runnable public: HTTPFailDiversionEvent(HttpChannelParent *aChannelParent, nsresult aErrorCode) - : Runnable("net::HTTPFailDiversionEvent") - , mChannelParent(aChannelParent) + : mChannelParent(aChannelParent) , mErrorCode(aErrorCode) { MOZ_RELEASE_ASSERT(aChannelParent); diff --git a/netwerk/protocol/http/HttpChannelParentListener.cpp b/netwerk/protocol/http/HttpChannelParentListener.cpp index a10dd94f7bfd..e5170e38cb8c 100644 --- a/netwerk/protocol/http/HttpChannelParentListener.cpp +++ b/netwerk/protocol/http/HttpChannelParentListener.cpp @@ -305,8 +305,7 @@ class FinishSynthesizedResponse : public Runnable nsCOMPtr mChannel; public: explicit FinishSynthesizedResponse(nsIInterceptedChannel* aChannel) - : Runnable("net::FinishSynthesizedResponse") - , mChannel(aChannel) + : mChannel(aChannel) { } diff --git a/netwerk/protocol/http/nsHttpActivityDistributor.cpp b/netwerk/protocol/http/nsHttpActivityDistributor.cpp index f0db7eb48604..42388f3a27a2 100644 --- a/netwerk/protocol/http/nsHttpActivityDistributor.cpp +++ b/netwerk/protocol/http/nsHttpActivityDistributor.cpp @@ -20,22 +20,21 @@ typedef nsTArray ObserverArray; class nsHttpActivityEvent : public Runnable { public: - nsHttpActivityEvent(nsISupports* aHttpChannel, - uint32_t aActivityType, - uint32_t aActivitySubtype, - PRTime aTimestamp, - uint64_t aExtraSizeData, - const nsACString& aExtraStringData, - ObserverArray* aObservers) - : Runnable("net::nsHttpActivityEvent") - , mHttpChannel(aHttpChannel) - , mActivityType(aActivityType) - , mActivitySubtype(aActivitySubtype) - , mTimestamp(aTimestamp) - , mExtraSizeData(aExtraSizeData) - , mExtraStringData(aExtraStringData) - , mObservers(*aObservers) - { + nsHttpActivityEvent(nsISupports *aHttpChannel, + uint32_t aActivityType, + uint32_t aActivitySubtype, + PRTime aTimestamp, + uint64_t aExtraSizeData, + const nsACString & aExtraStringData, + ObserverArray *aObservers) + : mHttpChannel(aHttpChannel) + , mActivityType(aActivityType) + , mActivitySubtype(aActivitySubtype) + , mTimestamp(aTimestamp) + , mExtraSizeData(aExtraSizeData) + , mExtraStringData(aExtraStringData) + , mObservers(*aObservers) + { } NS_IMETHOD Run() override diff --git a/netwerk/protocol/http/nsHttpChannel.cpp b/netwerk/protocol/http/nsHttpChannel.cpp index 7c3ece456562..beb3ea69c7c3 100644 --- a/netwerk/protocol/http/nsHttpChannel.cpp +++ b/netwerk/protocol/http/nsHttpChannel.cpp @@ -7449,17 +7449,16 @@ nsHttpChannel::OnStopRequest(nsIRequest *request, nsISupports *ctxt, nsresult st class OnTransportStatusAsyncEvent : public Runnable { public: - OnTransportStatusAsyncEvent(nsITransportEventSink* aEventSink, - nsresult aTransportStatus, - int64_t aProgress, - int64_t aProgressMax) - : Runnable("net::OnTransportStatusAsyncEvent") - , mEventSink(aEventSink) + OnTransportStatusAsyncEvent(nsITransportEventSink* aEventSink, + nsresult aTransportStatus, + int64_t aProgress, + int64_t aProgressMax) + : mEventSink(aEventSink) , mTransportStatus(aTransportStatus) , mProgress(aProgress) , mProgressMax(aProgressMax) - { - MOZ_ASSERT(!NS_IsMainThread(), "Shouldn't be created on main thread"); + { + MOZ_ASSERT(!NS_IsMainThread(), "Shouldn't be created on main thread"); } NS_IMETHOD Run() override diff --git a/netwerk/protocol/http/nsHttpConnection.cpp b/netwerk/protocol/http/nsHttpConnection.cpp index 10d34f64edb3..e77fcd612167 100644 --- a/netwerk/protocol/http/nsHttpConnection.cpp +++ b/netwerk/protocol/http/nsHttpConnection.cpp @@ -1390,43 +1390,40 @@ nsHttpConnection::PushBack(const char *data, uint32_t length) class HttpConnectionForceIO : public Runnable { public: - HttpConnectionForceIO(nsHttpConnection* aConn, - bool doRecv, + HttpConnectionForceIO(nsHttpConnection *aConn, bool doRecv, bool isFastOpenForce) - : Runnable("net::HttpConnectionForceIO") - , mConn(aConn) - , mDoRecv(doRecv) - , mIsFastOpenForce(isFastOpenForce) - { - } + : mConn(aConn) + , mDoRecv(doRecv) + , mIsFastOpenForce(isFastOpenForce) + {} - NS_IMETHOD Run() override - { - MOZ_ASSERT(OnSocketThread(), "not on socket thread"); + NS_IMETHOD Run() override + { + MOZ_ASSERT(OnSocketThread(), "not on socket thread"); - if (mDoRecv) { - if (!mConn->mSocketIn) - return NS_OK; - return mConn->OnInputStreamReady(mConn->mSocketIn); - } + if (mDoRecv) { + if (!mConn->mSocketIn) + return NS_OK; + return mConn->OnInputStreamReady(mConn->mSocketIn); + } - // This runnable will be called when the ForceIO timer expires - // (mIsFastOpenForce==false) or during the TCP Fast Open to force - // writes (mIsFastOpenForce==true). - if (mIsFastOpenForce && !mConn->mWaitingFor0RTTResponse) { - // If we have exit the TCP Fast Open in the meantime we can skip - // this. - return NS_OK; - } - if (!mIsFastOpenForce) { - MOZ_ASSERT(mConn->mForceSendPending); - mConn->mForceSendPending = false; - } + // This runnable will be called when the ForceIO timer expires + // (mIsFastOpenForce==false) or during the TCP Fast Open to force + // writes (mIsFastOpenForce==true). + if (mIsFastOpenForce && !mConn->mWaitingFor0RTTResponse) { + // If we have exit the TCP Fast Open in the meantime we can skip + // this. + return NS_OK; + } + if (!mIsFastOpenForce) { + MOZ_ASSERT(mConn->mForceSendPending); + mConn->mForceSendPending = false; + } - if (!mConn->mSocketOut) { - return NS_OK; - } - return mConn->OnOutputStreamReady(mConn->mSocketOut); + if (!mConn->mSocketOut) { + return NS_OK; + } + return mConn->OnOutputStreamReady(mConn->mSocketOut); } private: RefPtr mConn; @@ -1518,12 +1515,8 @@ nsHttpConnection::MaybeForceSendIO() MOZ_ASSERT(!mForceSendTimer); mForceSendPending = true; mForceSendTimer = do_CreateInstance("@mozilla.org/timer;1"); - return mForceSendTimer->InitWithNamedFuncCallback( - nsHttpConnection::ForceSendIO, - this, - kForceDelay, - nsITimer::TYPE_ONE_SHOT, - "net::nsHttpConnection::MaybeForceSendIO"); + return mForceSendTimer->InitWithFuncCallback( + nsHttpConnection::ForceSendIO, this, kForceDelay, nsITimer::TYPE_ONE_SHOT); } // trigger an asynchronous read @@ -2077,12 +2070,11 @@ nsHttpConnection::StartShortLivedTCPKeepalives() // Add time for final keepalive probes, and 2 seconds for a buffer. time += ((probeCount) * retryIntervalS) - (time % idleTimeS) + 2; } - mTCPKeepaliveTransitionTimer->InitWithNamedFuncCallback( - nsHttpConnection::UpdateTCPKeepalive, - this, - (uint32_t)time * 1000, - nsITimer::TYPE_ONE_SHOT, - "net::nsHttpConnection::StartShortLivedTCPKeepalives"); + mTCPKeepaliveTransitionTimer->InitWithFuncCallback( + nsHttpConnection::UpdateTCPKeepalive, + this, + (uint32_t)time*1000, + nsITimer::TYPE_ONE_SHOT); } else { NS_WARNING("nsHttpConnection::StartShortLivedTCPKeepalives failed to " "create timer."); diff --git a/netwerk/protocol/http/nsHttpConnectionMgr.cpp b/netwerk/protocol/http/nsHttpConnectionMgr.cpp index 8076cf8f2914..2baf816d0cf3 100644 --- a/netwerk/protocol/http/nsHttpConnectionMgr.cpp +++ b/netwerk/protocol/http/nsHttpConnectionMgr.cpp @@ -250,22 +250,17 @@ nsHttpConnectionMgr::Shutdown() class ConnEvent : public Runnable { public: - ConnEvent(nsHttpConnectionMgr* mgr, - nsConnEventHandler handler, - int32_t iparam, - ARefBase* vparam) - : Runnable("net::ConnEvent") - , mMgr(mgr) - , mHandler(handler) - , mIParam(iparam) - , mVParam(vparam) - { - } + ConnEvent(nsHttpConnectionMgr *mgr, + nsConnEventHandler handler, int32_t iparam, ARefBase *vparam) + : mMgr(mgr) + , mHandler(handler) + , mIParam(iparam) + , mVParam(vparam) {} - NS_IMETHOD Run() override - { - (mMgr->*mHandler)(mIParam, mVParam); - return NS_OK; + NS_IMETHOD Run() override + { + (mMgr->*mHandler)(mIParam, mVParam); + return NS_OK; } private: diff --git a/netwerk/protocol/http/nsHttpHandler.cpp b/netwerk/protocol/http/nsHttpHandler.cpp index 6e4363760526..107a47706cc4 100644 --- a/netwerk/protocol/http/nsHttpHandler.cpp +++ b/netwerk/protocol/http/nsHttpHandler.cpp @@ -2291,11 +2291,10 @@ nsHttpHandler::Observe(nsISupports *subject, } else if (!strcmp(topic, "browser:purge-session-history")) { if (mConnMgr) { if (gSocketTransportService) { - nsCOMPtr event = NewRunnableMethod( - "net::nsHttpConnectionMgr::ClearConnectionHistory", - mConnMgr, - &nsHttpConnectionMgr::ClearConnectionHistory); - gSocketTransportService->Dispatch(event, NS_DISPATCH_NORMAL); + nsCOMPtr event = + NewRunnableMethod(mConnMgr, + &nsHttpConnectionMgr::ClearConnectionHistory); + gSocketTransportService->Dispatch(event, NS_DISPATCH_NORMAL); } mConnMgr->ClearAltServiceMappings(); } diff --git a/netwerk/protocol/http/nsHttpTransaction.cpp b/netwerk/protocol/http/nsHttpTransaction.cpp index 8d169e534143..c214d553d581 100644 --- a/netwerk/protocol/http/nsHttpTransaction.cpp +++ b/netwerk/protocol/http/nsHttpTransaction.cpp @@ -2068,16 +2068,14 @@ nsHttpTransaction::GetResponseEnd() class DeleteHttpTransaction : public Runnable { public: - explicit DeleteHttpTransaction(nsHttpTransaction* trans) - : Runnable("net::DeleteHttpTransaction") - , mTrans(trans) - { - } + explicit DeleteHttpTransaction(nsHttpTransaction *trans) + : mTrans(trans) + {} - NS_IMETHOD Run() override - { - delete mTrans; - return NS_OK; + NS_IMETHOD Run() override + { + delete mTrans; + return NS_OK; } private: nsHttpTransaction *mTrans; diff --git a/netwerk/protocol/http/nsHttpTransaction.h b/netwerk/protocol/http/nsHttpTransaction.h index d795eef61374..395ae4fd5640 100644 --- a/netwerk/protocol/http/nsHttpTransaction.h +++ b/netwerk/protocol/http/nsHttpTransaction.h @@ -233,11 +233,7 @@ private: public: UpdateSecurityCallbacks(nsHttpTransaction* aTrans, nsIInterfaceRequestor* aCallbacks) - : Runnable("net::nsHttpTransaction::UpdateSecurityCallbacks") - , mTrans(aTrans) - , mCallbacks(aCallbacks) - { - } + : mTrans(aTrans), mCallbacks(aCallbacks) {} NS_IMETHOD Run() override { diff --git a/netwerk/protocol/websocket/WebSocketChannel.cpp b/netwerk/protocol/websocket/WebSocketChannel.cpp index 24798d66bff3..5f6043225a53 100644 --- a/netwerk/protocol/websocket/WebSocketChannel.cpp +++ b/netwerk/protocol/websocket/WebSocketChannel.cpp @@ -709,13 +709,11 @@ NS_IMPL_ISUPPORTS(CallOnServerClose, nsIRunnable) class CallAcknowledge final : public CancelableRunnable { public: - CallAcknowledge(WebSocketChannel* aChannel, uint32_t aSize) - : CancelableRunnable("net::CallAcknowledge") - , mChannel(aChannel) - , mListenerMT(mChannel->mListenerMT) - , mSize(aSize) - { - } + CallAcknowledge(WebSocketChannel* aChannel, + uint32_t aSize) + : mChannel(aChannel), + mListenerMT(mChannel->mListenerMT), + mSize(aSize) {} NS_IMETHOD Run() override { @@ -1265,9 +1263,7 @@ WebSocketChannel::Observe(nsISupports *subject, // Next we check mDataStarted, which we need to do on mTargetThread. if (!IsOnTargetThread()) { mTargetThread->Dispatch( - NewRunnableMethod("net::WebSocketChannel::OnNetworkChanged", - this, - &WebSocketChannel::OnNetworkChanged), + NewRunnableMethod(this, &WebSocketChannel::OnNetworkChanged), NS_DISPATCH_NORMAL); } else { nsresult rv = OnNetworkChanged(); @@ -1295,9 +1291,7 @@ WebSocketChannel::OnNetworkChanged() } return mSocketThread->Dispatch( - NewRunnableMethod("net::WebSocketChannel::OnNetworkChanged", - this, - &WebSocketChannel::OnNetworkChanged), + NewRunnableMethod(this, &WebSocketChannel::OnNetworkChanged), NS_DISPATCH_NORMAL); } @@ -1384,10 +1378,8 @@ WebSocketChannel::BeginOpen(bool aCalledFromAdmissionManager) // When called from nsWSAdmissionManager post an event to avoid potential // re-entering of nsWSAdmissionManager and its lock. NS_DispatchToMainThread( - NewRunnableMethod("net::WebSocketChannel::BeginOpenInternal", - this, - &WebSocketChannel::BeginOpenInternal), - NS_DISPATCH_NORMAL); + NewRunnableMethod(this, &WebSocketChannel::BeginOpenInternal), + NS_DISPATCH_NORMAL); } else { BeginOpenInternal(); } @@ -2304,8 +2296,7 @@ class RemoveObserverRunnable : public Runnable public: explicit RemoveObserverRunnable(WebSocketChannel* aChannel) - : Runnable("net::RemoveObserverRunnable") - , mChannel(aChannel) + : mChannel(aChannel) {} NS_IMETHOD Run() override @@ -2949,9 +2940,7 @@ WebSocketChannel::StartWebsocketData() if (!IsOnTargetThread()) { return mTargetThread->Dispatch( - NewRunnableMethod("net::WebSocketChannel::StartWebsocketData", - this, - &WebSocketChannel::StartWebsocketData), + NewRunnableMethod(this, &WebSocketChannel::StartWebsocketData), NS_DISPATCH_NORMAL); } @@ -2964,8 +2953,7 @@ WebSocketChannel::StartWebsocketData() LOG(("WebSocketChannel::StartWebsocketData mSocketIn->AsyncWait() failed " "with error 0x%08" PRIx32, static_cast(rv))); return mSocketThread->Dispatch( - NewRunnableMethod("net::WebSocketChannel::AbortSession", - this, + NewRunnableMethod(this, &WebSocketChannel::AbortSession, rv), NS_DISPATCH_NORMAL); @@ -2973,9 +2961,7 @@ WebSocketChannel::StartWebsocketData() if (mPingInterval) { rv = mSocketThread->Dispatch( - NewRunnableMethod("net::WebSocketChannel::StartPinging", - this, - &WebSocketChannel::StartPinging), + NewRunnableMethod(this, &WebSocketChannel::StartPinging), NS_DISPATCH_NORMAL); if (NS_FAILED(rv)) { LOG(("WebSocketChannel::StartWebsocketData Could not start pinging, " diff --git a/netwerk/protocol/websocket/WebSocketChannelChild.cpp b/netwerk/protocol/websocket/WebSocketChannelChild.cpp index b037af9218dd..127325e3b2c9 100644 --- a/netwerk/protocol/websocket/WebSocketChannelChild.cpp +++ b/netwerk/protocol/websocket/WebSocketChannelChild.cpp @@ -111,8 +111,7 @@ WebSocketChannelChild::MaybeReleaseIPCObject() if (!NS_IsMainThread()) { nsCOMPtr target = GetNeckoTarget(); MOZ_ALWAYS_SUCCEEDS( - target->Dispatch(NewRunnableMethod("WebSocketChannelChild::MaybeReleaseIPCObject", - this, + target->Dispatch(NewRunnableMethod(this, &WebSocketChannelChild::MaybeReleaseIPCObject), NS_DISPATCH_NORMAL)); return; @@ -136,9 +135,8 @@ WebSocketChannelChild::IsEncrypted() const class WrappedChannelEvent : public Runnable { public: - explicit WrappedChannelEvent(ChannelEvent* aChannelEvent) - : Runnable("net::WrappedChannelEvent") - , mChannelEvent(aChannelEvent) + explicit WrappedChannelEvent(ChannelEvent *aChannelEvent) + : mChannelEvent(aChannelEvent) { MOZ_RELEASE_ASSERT(aChannelEvent); } @@ -600,11 +598,10 @@ WebSocketChannelChild::AsyncOpen(nsIURI *aURI, class CloseEvent : public Runnable { public: - CloseEvent(WebSocketChannelChild* aChild, + CloseEvent(WebSocketChannelChild *aChild, uint16_t aCode, const nsACString& aReason) - : Runnable("net::CloseEvent") - , mChild(aChild) + : mChild(aChild) , mCode(aCode) , mReason(aReason) { @@ -651,11 +648,10 @@ WebSocketChannelChild::Close(uint16_t code, const nsACString & reason) class MsgEvent : public Runnable { public: - MsgEvent(WebSocketChannelChild* aChild, - const nsACString& aMsg, + MsgEvent(WebSocketChannelChild *aChild, + const nsACString &aMsg, bool aBinaryMsg) - : Runnable("net::MsgEvent") - , mChild(aChild) + : mChild(aChild) , mMsg(aMsg) , mBinaryMsg(aBinaryMsg) { @@ -731,11 +727,10 @@ WebSocketChannelChild::SendBinaryMsg(const nsACString &aMsg) class BinaryStreamEvent : public Runnable { public: - BinaryStreamEvent(WebSocketChannelChild* aChild, + BinaryStreamEvent(WebSocketChannelChild *aChild, nsIInputStream* aStream, uint32_t aLength) - : Runnable("net::BinaryStreamEvent") - , mChild(aChild) + : mChild(aChild) , mStream(aStream) , mLength(aLength) { diff --git a/netwerk/protocol/websocket/WebSocketEventService.cpp b/netwerk/protocol/websocket/WebSocketEventService.cpp index 963dba28cb79..ffa6e52d0182 100644 --- a/netwerk/protocol/websocket/WebSocketEventService.cpp +++ b/netwerk/protocol/websocket/WebSocketEventService.cpp @@ -35,9 +35,9 @@ IsChildProcess() class WebSocketBaseRunnable : public Runnable { public: - WebSocketBaseRunnable(uint32_t aWebSocketSerialID, uint64_t aInnerWindowID) - : Runnable("net::WebSocketBaseRunnable") - , mWebSocketSerialID(aWebSocketSerialID) + WebSocketBaseRunnable(uint32_t aWebSocketSerialID, + uint64_t aInnerWindowID) + : mWebSocketSerialID(aWebSocketSerialID) , mInnerWindowID(aInnerWindowID) {} diff --git a/netwerk/protocol/wyciwyg/nsWyciwygChannel.cpp b/netwerk/protocol/wyciwyg/nsWyciwygChannel.cpp index c6551af16341..7ec3d376f77a 100644 --- a/netwerk/protocol/wyciwyg/nsWyciwygChannel.cpp +++ b/netwerk/protocol/wyciwyg/nsWyciwygChannel.cpp @@ -601,10 +601,8 @@ nsWyciwygChannel::OnCacheEntryAvailable(nsICacheEntry *aCacheEntry, LOG(("channel was canceled [this=%p status=%" PRIx32 "]\n", this, static_cast(mStatus))); // Since OnCacheEntryAvailable can be called directly from AsyncOpen // we must dispatch. - NS_DispatchToCurrentThread( - mozilla::NewRunnableMethod("nsWyciwygChannel::NotifyListener", - this, - &nsWyciwygChannel::NotifyListener)); + NS_DispatchToCurrentThread(mozilla::NewRunnableMethod( + this, &nsWyciwygChannel::NotifyListener)); } return NS_OK; diff --git a/netwerk/sctp/datachannel/DataChannel.cpp b/netwerk/sctp/datachannel/DataChannel.cpp index 7d542cc4f530..efd20a14bcc8 100644 --- a/netwerk/sctp/datachannel/DataChannel.cpp +++ b/netwerk/sctp/datachannel/DataChannel.cpp @@ -2301,13 +2301,11 @@ DataChannelConnection::SendBinary(DataChannel *channel, const char *data, class ReadBlobRunnable : public Runnable { public: - ReadBlobRunnable(DataChannelConnection* aConnection, - uint16_t aStream, - nsIInputStream* aBlob) - : Runnable("ReadBlobRunnable") - , mConnection(aConnection) - , mStream(aStream) - , mBlob(aBlob) + ReadBlobRunnable(DataChannelConnection* aConnection, uint16_t aStream, + nsIInputStream* aBlob) : + mConnection(aConnection), + mStream(aStream), + mBlob(aBlob) {} NS_IMETHOD Run() override { @@ -2350,14 +2348,10 @@ DataChannelConnection::SendBlob(uint16_t stream, nsIInputStream *aBlob) class DataChannelBlobSendRunnable : public Runnable { public: - DataChannelBlobSendRunnable( - already_AddRefed& aConnection, - uint16_t aStream) - : Runnable("DataChannelBlobSendRunnable") - , mConnection(aConnection) - , mStream(aStream) - { - } + DataChannelBlobSendRunnable(already_AddRefed& aConnection, + uint16_t aStream) + : mConnection(aConnection) + , mStream(aStream) {} ~DataChannelBlobSendRunnable() override { diff --git a/netwerk/sctp/datachannel/DataChannel.h b/netwerk/sctp/datachannel/DataChannel.h index e3616f2b30f0..fec16b4060b3 100644 --- a/netwerk/sctp/datachannel/DataChannel.h +++ b/netwerk/sctp/datachannel/DataChannel.h @@ -467,49 +467,37 @@ public: NO_LONGER_BUFFERED, }; /* types */ - DataChannelOnMessageAvailable( - int32_t aType, - DataChannelConnection* aConnection, - DataChannel* aChannel, - nsCString& aData, // XXX this causes inefficiency - int32_t aLen) - : Runnable("DataChannelOnMessageAvailable") - , mType(aType) - , mChannel(aChannel) - , mConnection(aConnection) - , mData(aData) - , mLen(aLen) - { - } + DataChannelOnMessageAvailable(int32_t aType, + DataChannelConnection *aConnection, + DataChannel *aChannel, + nsCString &aData, // XXX this causes inefficiency + int32_t aLen) + : mType(aType), + mChannel(aChannel), + mConnection(aConnection), + mData(aData), + mLen(aLen) {} - DataChannelOnMessageAvailable(int32_t aType, DataChannel* aChannel) - : Runnable("DataChannelOnMessageAvailable") - , mType(aType) - , mChannel(aChannel) - { - } + DataChannelOnMessageAvailable(int32_t aType, + DataChannel *aChannel) + : mType(aType), + mChannel(aChannel) {} // XXX is it safe to leave mData/mLen uninitialized? This should only be // used for notifications that don't use them, but I'd like more // bulletproof compile-time checking. - DataChannelOnMessageAvailable(int32_t aType, - DataChannelConnection* aConnection, - DataChannel* aChannel) - : Runnable("DataChannelOnMessageAvailable") - , mType(aType) - , mChannel(aChannel) - , mConnection(aConnection) - { - } + DataChannelOnMessageAvailable(int32_t aType, + DataChannelConnection *aConnection, + DataChannel *aChannel) + : mType(aType), + mChannel(aChannel), + mConnection(aConnection) {} // for ON_CONNECTION/ON_DISCONNECTED - DataChannelOnMessageAvailable(int32_t aType, - DataChannelConnection* aConnection) - : Runnable("DataChannelOnMessageAvailable") - , mType(aType) - , mConnection(aConnection) - { - } + DataChannelOnMessageAvailable(int32_t aType, + DataChannelConnection *aConnection) + : mType(aType), + mConnection(aConnection) {} NS_IMETHOD Run() override { diff --git a/netwerk/socket/nsNamedPipeIOLayer.cpp b/netwerk/socket/nsNamedPipeIOLayer.cpp index 5373d202da6d..400f61fa5ac7 100644 --- a/netwerk/socket/nsNamedPipeIOLayer.cpp +++ b/netwerk/socket/nsNamedPipeIOLayer.cpp @@ -211,7 +211,7 @@ NamedPipeInfo::OnDataAvailable(uint32_t aBytesTransferred, mErrorCode = ERROR_SUCCESS; // dispatch an empty event to trigger STS thread - gSocketTransportService->Dispatch(NS_NewRunnableFunction("NamedPipeInfo::OnDataAvailable", []{}), + gSocketTransportService->Dispatch(NS_NewRunnableFunction([]{}), NS_DISPATCH_NORMAL); return NS_OK; @@ -229,7 +229,7 @@ NamedPipeInfo::OnError(uint32_t aError, mErrorCode = aError; // dispatch an empty event to trigger STS thread - gSocketTransportService->Dispatch(NS_NewRunnableFunction("NamedPipeInfo::OnError", []{}), + gSocketTransportService->Dispatch(NS_NewRunnableFunction([]{}), NS_DISPATCH_NORMAL); return NS_OK; diff --git a/netwerk/socket/nsNamedPipeService.cpp b/netwerk/socket/nsNamedPipeService.cpp index d27386300890..8e72cc8ef02d 100644 --- a/netwerk/socket/nsNamedPipeService.cpp +++ b/netwerk/socket/nsNamedPipeService.cpp @@ -42,8 +42,7 @@ NamedPipeService::Init() // nsIObserverService must be accessed in main thread. // register shutdown event to stop NamedPipeSrv thread. nsCOMPtr self(this); - nsCOMPtr r = NS_NewRunnableFunction("NamedPipeService::Init", - [self = Move(self)] () -> void { + nsCOMPtr r = NS_NewRunnableFunction([self = Move(self)] () -> void { MOZ_ASSERT(NS_IsMainThread()); nsCOMPtr svc = mozilla::services::GetObserverService(); diff --git a/netwerk/system/linux/nsNotifyAddrListener_Linux.h b/netwerk/system/linux/nsNotifyAddrListener_Linux.h index d8150d17ff61..a2b8f2277942 100644 --- a/netwerk/system/linux/nsNotifyAddrListener_Linux.h +++ b/netwerk/system/linux/nsNotifyAddrListener_Linux.h @@ -44,11 +44,8 @@ private: class ChangeEvent : public mozilla::Runnable { public: NS_DECL_NSIRUNNABLE - ChangeEvent(nsINetworkLinkService* aService, const char* aEventID) - : mozilla::Runnable("nsNotifyAddrListener::ChangeEvent") - , mService(aService) - , mEventID(aEventID) - { + ChangeEvent(nsINetworkLinkService *aService, const char *aEventID) + : mService(aService), mEventID(aEventID) { } private: nsCOMPtr mService; diff --git a/netwerk/system/win32/nsNotifyAddrListener.h b/netwerk/system/win32/nsNotifyAddrListener.h index d2173aea9caa..47a9ed64514a 100644 --- a/netwerk/system/win32/nsNotifyAddrListener.h +++ b/netwerk/system/win32/nsNotifyAddrListener.h @@ -38,10 +38,8 @@ protected: public: NS_DECL_NSIRUNNABLE ChangeEvent(nsINetworkLinkService *aService, const char *aEventID) - : Runnable("nsNotifyAddrListener::ChangeEvent") - , mService(aService) - , mEventID(aEventID) - {} + : mService(aService), mEventID(aEventID) { + } private: nsCOMPtr mService; const char *mEventID; diff --git a/parser/html/nsHtml5StreamParser.cpp b/parser/html/nsHtml5StreamParser.cpp index 18215b0b363b..5c5fe3965b3b 100644 --- a/parser/html/nsHtml5StreamParser.cpp +++ b/parser/html/nsHtml5StreamParser.cpp @@ -1135,12 +1135,12 @@ nsHtml5StreamParser::DoDataAvailable(const uint8_t* aBuffer, uint32_t aLength) { mozilla::MutexAutoLock flushTimerLock(mFlushTimerMutex); - mFlushTimer->InitWithNamedFuncCallback( - nsHtml5StreamParser::TimerCallback, - static_cast(this), - mFlushTimerEverFired ? sTimerInitialDelay : sTimerSubsequentDelay, - nsITimer::TYPE_ONE_SHOT, - "nsHtml5StreamParser::DoDataAvailable"); + mFlushTimer->InitWithFuncCallback(nsHtml5StreamParser::TimerCallback, + static_cast (this), + mFlushTimerEverFired ? + sTimerInitialDelay : + sTimerSubsequentDelay, + nsITimer::TYPE_ONE_SHOT); } mFlushTimerArmed = true; } diff --git a/parser/html/nsHtml5TreeOpExecutor.cpp b/parser/html/nsHtml5TreeOpExecutor.cpp index da60ca115906..54e8c2eead2b 100644 --- a/parser/html/nsHtml5TreeOpExecutor.cpp +++ b/parser/html/nsHtml5TreeOpExecutor.cpp @@ -51,8 +51,7 @@ class nsHtml5ExecutorReflusher : public Runnable RefPtr mExecutor; public: explicit nsHtml5ExecutorReflusher(nsHtml5TreeOpExecutor* aExecutor) - : mozilla::Runnable("nsHtml5ExecutorReflusher") - , mExecutor(aExecutor) + : mExecutor(aExecutor) {} NS_IMETHOD Run() override { @@ -241,8 +240,7 @@ nsHtml5TreeOpExecutor::MarkAsBroken(nsresult aReason) // a safer point. if (mParser) { // can mParser ever be null here? MOZ_ALWAYS_SUCCEEDS( - NS_DispatchToMainThread(NewRunnableMethod("nsHtml5Parser::Terminate", - GetParser(), &nsHtml5Parser::Terminate))); + NS_DispatchToMainThread(NewRunnableMethod(GetParser(), &nsHtml5Parser::Terminate))); } return aReason; } diff --git a/parser/htmlparser/nsParser.cpp b/parser/htmlparser/nsParser.cpp index 0dc9beb3c009..7dbbc840487f 100644 --- a/parser/htmlparser/nsParser.cpp +++ b/parser/htmlparser/nsParser.cpp @@ -110,8 +110,7 @@ public: RefPtr mParser; explicit nsParserContinueEvent(nsParser* aParser) - : mozilla::Runnable("nsParserContinueEvent") - , mParser(aParser) + : mParser(aParser) {} NS_IMETHOD Run() override diff --git a/security/manager/ssl/CryptoTask.h b/security/manager/ssl/CryptoTask.h index 1d50156b9b3e..ae107fe30748 100644 --- a/security/manager/ssl/CryptoTask.h +++ b/security/manager/ssl/CryptoTask.h @@ -62,9 +62,8 @@ public: protected: CryptoTask() - : Runnable("CryptoTask") - , mRv(NS_ERROR_NOT_INITIALIZED) - , mReleasedNSSResources(false) + : mRv(NS_ERROR_NOT_INITIALIZED), + mReleasedNSSResources(false) { } diff --git a/security/manager/ssl/DataStorage.cpp b/security/manager/ssl/DataStorage.cpp index 808b2392b518..99d26ca32a69 100644 --- a/security/manager/ssl/DataStorage.cpp +++ b/security/manager/ssl/DataStorage.cpp @@ -329,8 +329,7 @@ class DataStorage::Reader : public Runnable { public: explicit Reader(DataStorage* aDataStorage) - : Runnable("DataStorage::Reader") - , mDataStorage(aDataStorage) + : mDataStorage(aDataStorage) { } ~Reader(); @@ -356,8 +355,7 @@ DataStorage::Reader::~Reader() // This is for tests. nsCOMPtr job = - NewRunnableMethod("DataStorage::NotifyObservers", - mDataStorage, + NewRunnableMethod(mDataStorage, &DataStorage::NotifyObservers, "data-storage-ready"); nsresult rv = NS_DispatchToMainThread(job, NS_DISPATCH_NORMAL); @@ -799,8 +797,7 @@ class DataStorage::Writer : public Runnable { public: Writer(nsCString& aData, DataStorage* aDataStorage) - : Runnable("DataStorage::Writer") - , mData(aData) + : mData(aData) , mDataStorage(aDataStorage) { } @@ -853,8 +850,7 @@ DataStorage::Writer::Run() // Observed by tests. nsCOMPtr job = - NewRunnableMethod("DataStorage::NotifyObservers", - mDataStorage, + NewRunnableMethod(mDataStorage, &DataStorage::NotifyObservers, "data-storage-written"); rv = NS_DispatchToMainThread(job, NS_DISPATCH_NORMAL); @@ -945,7 +941,7 @@ DataStorage::AsyncSetTimer(const MutexAutoLock& /*aProofOfLock*/) mPendingWrite = true; nsCOMPtr job = - NewRunnableMethod("DataStorage::SetTimer", this, &DataStorage::SetTimer); + NewRunnableMethod(this, &DataStorage::SetTimer); nsresult rv = mWorkerThread->Dispatch(job, NS_DISPATCH_NORMAL); if (NS_WARN_IF(NS_FAILED(rv))) { return rv; @@ -969,11 +965,8 @@ DataStorage::SetTimer() } } - rv = mTimer->InitWithNamedFuncCallback(TimerCallback, - this, - mTimerDelay, - nsITimer::TYPE_ONE_SHOT, - "DataStorage::SetTimer"); + rv = mTimer->InitWithFuncCallback(TimerCallback, this, + mTimerDelay, nsITimer::TYPE_ONE_SHOT); Unused << NS_WARN_IF(NS_FAILED(rv)); } @@ -997,8 +990,8 @@ DataStorage::DispatchShutdownTimer(const MutexAutoLock& /*aProofOfLock*/) { MOZ_ASSERT(XRE_IsParentProcess()); - nsCOMPtr job = NewRunnableMethod( - "DataStorage::ShutdownTimer", this, &DataStorage::ShutdownTimer); + nsCOMPtr job = + NewRunnableMethod(this, &DataStorage::ShutdownTimer); nsresult rv = mWorkerThread->Dispatch(job, NS_DISPATCH_NORMAL); if (NS_WARN_IF(NS_FAILED(rv))) { return rv; diff --git a/security/manager/ssl/PSMContentListener.cpp b/security/manager/ssl/PSMContentListener.cpp index 9edbc6bc464b..d377bcffe0d2 100644 --- a/security/manager/ssl/PSMContentListener.cpp +++ b/security/manager/ssl/PSMContentListener.cpp @@ -153,9 +153,7 @@ PSMContentStreamListener::OnStopRequest(nsIRequest* request, // Because importing the cert can spin the event loop (via alerts), we can't // do it here. Do it off the event loop instead. nsCOMPtr r = - NewRunnableMethod("psm::PSMContentStreamListener::ImportCertificate", - this, - &PSMContentStreamListener::ImportCertificate); + NewRunnableMethod(this, &PSMContentStreamListener::ImportCertificate); MOZ_ALWAYS_SUCCEEDS(NS_DispatchToMainThread(r)); return NS_OK; diff --git a/security/manager/ssl/PSMRunnable.cpp b/security/manager/ssl/PSMRunnable.cpp index e83cf960a473..9f151a83fde7 100644 --- a/security/manager/ssl/PSMRunnable.cpp +++ b/security/manager/ssl/PSMRunnable.cpp @@ -7,8 +7,7 @@ namespace mozilla { namespace psm { SyncRunnableBase::SyncRunnableBase() - : Runnable("psm::SyncRunnableBase") - , monitor("SyncRunnableBase::monitor") + : monitor("SyncRunnableBase::monitor") { } diff --git a/security/manager/ssl/PSMRunnable.h b/security/manager/ssl/PSMRunnable.h index 436eb78d9be4..87dada184f18 100644 --- a/security/manager/ssl/PSMRunnable.h +++ b/security/manager/ssl/PSMRunnable.h @@ -32,11 +32,9 @@ class NotifyObserverRunnable : public Runnable public: NotifyObserverRunnable(nsIObserver * observer, const char * topicStringLiteral) - : Runnable("psm::NotifyObserverRunnable") - , mObserver(new nsMainThreadPtrHolder( - "psm::NotifyObserverRunnable::mObserver", observer)) - , mTopic(topicStringLiteral) - { + : mObserver(new nsMainThreadPtrHolder( + "psm::NotifyObserverRunnable::mObserver", observer)), + mTopic(topicStringLiteral) { } NS_DECL_NSIRUNNABLE private: diff --git a/security/manager/ssl/SSLServerCertVerification.cpp b/security/manager/ssl/SSLServerCertVerification.cpp index d3a63db36243..109f445cf7ed 100644 --- a/security/manager/ssl/SSLServerCertVerification.cpp +++ b/security/manager/ssl/SSLServerCertVerification.cpp @@ -734,8 +734,7 @@ class CertErrorRunnableRunnable : public Runnable { public: explicit CertErrorRunnableRunnable(CertErrorRunnable* certErrorRunnable) - : Runnable("psm::CertErrorRunnableRunnable") - , mCertErrorRunnable(certErrorRunnable) + : mCertErrorRunnable(certErrorRunnable) { } private: @@ -795,18 +794,12 @@ private: }; SSLServerCertVerificationJob::SSLServerCertVerificationJob( - const RefPtr& certVerifier, - const void* fdForLogging, - nsNSSSocketInfo* infoObject, - const UniqueCERTCertificate& cert, - UniqueCERTCertList peerCertChain, - const SECItem* stapledOCSPResponse, - const SECItem* sctsFromTLSExtension, - uint32_t providerFlags, - Time time, - PRTime prtime) - : Runnable("psm::SSLServerCertVerificationJob") - , mCertVerifier(certVerifier) + const RefPtr& certVerifier, const void* fdForLogging, + nsNSSSocketInfo* infoObject, const UniqueCERTCertificate& cert, + UniqueCERTCertList peerCertChain, const SECItem* stapledOCSPResponse, + const SECItem* sctsFromTLSExtension, + uint32_t providerFlags, Time time, PRTime prtime) + : mCertVerifier(certVerifier) , mFdForLogging(fdForLogging) , mInfoObject(infoObject) , mCert(CERT_DupCertificate(cert.get())) @@ -1822,13 +1815,10 @@ AuthCertificateHook(void* arg, PRFileDesc* fd, PRBool checkSig, PRBool isServer) } SSLServerCertVerificationResult::SSLServerCertVerificationResult( - nsNSSSocketInfo* infoObject, - PRErrorCode errorCode, - Telemetry::HistogramID telemetryID, - uint32_t telemetryValue, - SSLErrorMessageType errorMessageType) - : Runnable("psm::SSLServerCertVerificationResult") - , mInfoObject(infoObject) + nsNSSSocketInfo* infoObject, PRErrorCode errorCode, + Telemetry::HistogramID telemetryID, uint32_t telemetryValue, + SSLErrorMessageType errorMessageType) + : mInfoObject(infoObject) , mErrorCode(errorCode) , mErrorMessageType(errorMessageType) , mTelemetryID(telemetryID) diff --git a/security/manager/ssl/nsNSSCallbacks.cpp b/security/manager/ssl/nsNSSCallbacks.cpp index 1ec6334b452b..18f1b2ef0a78 100644 --- a/security/manager/ssl/nsNSSCallbacks.cpp +++ b/security/manager/ssl/nsNSSCallbacks.cpp @@ -68,8 +68,7 @@ public: }; nsHTTPDownloadEvent::nsHTTPDownloadEvent() - : mozilla::Runnable("nsHTTPDownloadEvent") - , mResponsibleForDoneSignal(true) +:mResponsibleForDoneSignal(true) { } @@ -197,7 +196,6 @@ nsHTTPDownloadEvent::Run() struct nsCancelHTTPDownloadEvent : Runnable { RefPtr mListener; - nsCancelHTTPDownloadEvent() : Runnable("nsCancelHTTPDownloadEvent") {} NS_IMETHOD Run() override { mListener->FreeLoadGroup(true); mListener = nullptr; diff --git a/security/manager/ssl/nsNSSComponent.cpp b/security/manager/ssl/nsNSSComponent.cpp index d63ec9e17a42..6a4a826547bd 100644 --- a/security/manager/ssl/nsNSSComponent.cpp +++ b/security/manager/ssl/nsNSSComponent.cpp @@ -99,12 +99,11 @@ bool EnsureNSSInitializedChromeOrContent() } // Forward to the main thread synchronously. - mozilla::SyncRunnable::DispatchToThread( - mainThread, - new SyncRunnable( - NS_NewRunnableFunction("EnsureNSSInitializedChromeOrContent", []() { - initialized = EnsureNSSInitializedChromeOrContent(); - }))); + mozilla::SyncRunnable::DispatchToThread(mainThread, + new SyncRunnable(NS_NewRunnableFunction([]() { + initialized = EnsureNSSInitializedChromeOrContent(); + })) + ); return initialized; } diff --git a/security/manager/ssl/nsNSSIOLayer.cpp b/security/manager/ssl/nsNSSIOLayer.cpp index 89b82679abb3..0c44dc91e3d6 100644 --- a/security/manager/ssl/nsNSSIOLayer.cpp +++ b/security/manager/ssl/nsNSSIOLayer.cpp @@ -1730,8 +1730,7 @@ class FallbackPrefRemover final : public Runnable { public: explicit FallbackPrefRemover(const nsACString& aHost) - : mozilla::Runnable("FallbackPrefRemover") - , mHost(aHost) + : mHost(aHost) {} NS_IMETHOD Run() override; private: diff --git a/security/manager/ssl/nsNSSModule.cpp b/security/manager/ssl/nsNSSModule.cpp index 321498508095..de47b4ec829f 100644 --- a/security/manager/ssl/nsNSSModule.cpp +++ b/security/manager/ssl/nsNSSModule.cpp @@ -106,11 +106,11 @@ Constructor(nsISupports* aOuter, REFNSIID aIID, void** aResult) } // Forward to the main thread synchronously. - mozilla::SyncRunnable::DispatchToThread( - mainThread, - new SyncRunnable(NS_NewRunnableFunction("psm::Constructor", [&]() { + mozilla::SyncRunnable::DispatchToThread(mainThread, + new SyncRunnable(NS_NewRunnableFunction([&]() { rv = Instantiate(aIID, aResult); - }))); + })) + ); return rv; } diff --git a/security/sandbox/linux/reporter/SandboxReporter.cpp b/security/sandbox/linux/reporter/SandboxReporter.cpp index a9275f00465a..8da246b07f18 100644 --- a/security/sandbox/linux/reporter/SandboxReporter.cpp +++ b/security/sandbox/linux/reporter/SandboxReporter.cpp @@ -100,8 +100,9 @@ SandboxReporter::Singleton() // by that point (so it won't race by calling Singleton()), all // non-main XPCOM threads will also be shut down, and currently // the only other user is the main-thread-only Troubleshoot.jsm. - NS_DispatchToMainThread(NS_NewRunnableFunction( - "SandboxReporter::Singleton", [] { ClearOnShutdown(&sSingleton); })); + NS_DispatchToMainThread(NS_NewRunnableFunction([] { + ClearOnShutdown(&sSingleton); + })); } return sSingleton.get(); } diff --git a/services/crypto/component/IdentityCryptoService.cpp b/services/crypto/component/IdentityCryptoService.cpp index 4b36ad09563e..a4871dfe5079 100644 --- a/services/crypto/component/IdentityCryptoService.cpp +++ b/services/crypto/component/IdentityCryptoService.cpp @@ -325,10 +325,9 @@ KeyPair::Sign(const nsACString & textToSign, } KeyGenRunnable::KeyGenRunnable(KeyType keyType, - nsIIdentityKeyGenCallback* callback, + nsIIdentityKeyGenCallback * callback, nsIEventTarget* operationThread) - : mozilla::Runnable("KeyGenRunnable") - , mKeyType(keyType) + : mKeyType(keyType) , mCallback(new nsMainThreadPtrHolder( "KeyGenRunnable::mCallback", callback)) , mRv(NS_ERROR_NOT_INITIALIZED) @@ -484,11 +483,10 @@ KeyGenRunnable::Run() return NS_OK; } -SignRunnable::SignRunnable(const nsACString& aText, - SECKEYPrivateKey* privateKey, - nsIIdentitySignCallback* aCallback) - : mozilla::Runnable("SignRunnable") - , mTextToSign(aText) +SignRunnable::SignRunnable(const nsACString & aText, + SECKEYPrivateKey * privateKey, + nsIIdentitySignCallback * aCallback) + : mTextToSign(aText) , mPrivateKey(SECKEY_CopyPrivateKey(privateKey)) , mCallback(new nsMainThreadPtrHolder( "SignRunnable::mCallback", aCallback)) diff --git a/storage/StorageBaseStatementInternal.cpp b/storage/StorageBaseStatementInternal.cpp index fc2196987099..2b49932335b6 100644 --- a/storage/StorageBaseStatementInternal.cpp +++ b/storage/StorageBaseStatementInternal.cpp @@ -35,11 +35,10 @@ public: * on. We release the statement on that thread since releasing the * statement might end up releasing the connection too. */ - AsyncStatementFinalizer(StorageBaseStatementInternal* aStatement, - Connection* aConnection) - : Runnable("storage::AsyncStatementFinalizer") - , mStatement(aStatement) - , mConnection(aConnection) + AsyncStatementFinalizer(StorageBaseStatementInternal *aStatement, + Connection *aConnection) + : mStatement(aStatement) + , mConnection(aConnection) { } @@ -82,11 +81,10 @@ public: * responsibility for the instance and all other references to it * should be forgotten. */ - LastDitchSqliteStatementFinalizer(RefPtr& aConnection, - sqlite3_stmt* aStatement) - : Runnable("storage::LastDitchSqliteStatementFinalizer") - , mConnection(aConnection) - , mAsyncStatement(aStatement) + LastDitchSqliteStatementFinalizer(RefPtr &aConnection, + sqlite3_stmt *aStatement) + : mConnection(aConnection) + , mAsyncStatement(aStatement) { NS_PRECONDITION(aConnection, "You must provide a Connection"); } diff --git a/storage/mozStorageConnection.cpp b/storage/mozStorageConnection.cpp index a757d6bd7a25..26480d445f39 100644 --- a/storage/mozStorageConnection.cpp +++ b/storage/mozStorageConnection.cpp @@ -378,15 +378,14 @@ namespace { class AsyncCloseConnection final: public Runnable { public: - AsyncCloseConnection(Connection* aConnection, - sqlite3* aNativeConnection, - nsIRunnable* aCallbackEvent, + AsyncCloseConnection(Connection *aConnection, + sqlite3 *aNativeConnection, + nsIRunnable *aCallbackEvent, already_AddRefed aAsyncExecutionThread) - : Runnable("storage::AsyncCloseConnection") - , mConnection(aConnection) - , mNativeConnection(aNativeConnection) - , mCallbackEvent(aCallbackEvent) - , mAsyncExecutionThread(aAsyncExecutionThread) + : mConnection(aConnection) + , mNativeConnection(aNativeConnection) + , mCallbackEvent(aCallbackEvent) + , mAsyncExecutionThread(aAsyncExecutionThread) { } @@ -399,11 +398,8 @@ public: MOZ_ASSERT(onAsyncThread); #endif // DEBUG - nsCOMPtr event = NewRunnableMethod>( - "storage::Connection::shutdownAsyncThread", - mConnection, - &Connection::shutdownAsyncThread, - mAsyncExecutionThread); + nsCOMPtr event = NewRunnableMethod> + (mConnection, &Connection::shutdownAsyncThread, mAsyncExecutionThread); (void)NS_DispatchToMainThread(event); // Internal close. diff --git a/storage/mozStoragePrivateHelpers.cpp b/storage/mozStoragePrivateHelpers.cpp index 3c3688583729..91924204f107 100644 --- a/storage/mozStoragePrivateHelpers.cpp +++ b/storage/mozStoragePrivateHelpers.cpp @@ -251,9 +251,8 @@ namespace { class CallbackEvent : public Runnable { public: - explicit CallbackEvent(mozIStorageCompletionCallback* aCallback) - : Runnable("storage::CallbackEvent") - , mCallback(aCallback) + explicit CallbackEvent(mozIStorageCompletionCallback *aCallback) + : mCallback(aCallback) { } diff --git a/storage/mozStorageService.cpp b/storage/mozStorageService.cpp index 2a104e20197f..4fd9dac4424b 100644 --- a/storage/mozStorageService.cpp +++ b/storage/mozStorageService.cpp @@ -371,11 +371,9 @@ Service::minimizeMemory() } else { // We are on the wrong thread, the query should be executed on the // opener thread, so we must dispatch to it. - nsCOMPtr event = NewRunnableMethod( - "storage::Connection::ExecuteSimpleSQL", - conn, - &Connection::ExecuteSimpleSQL, - shrinkPragma); + nsCOMPtr event = + NewRunnableMethod( + conn, &Connection::ExecuteSimpleSQL, shrinkPragma); conn->threadOpenedOn->Dispatch(event, NS_DISPATCH_NORMAL); } } @@ -665,8 +663,7 @@ public: nsIFile* aStorageFile, int32_t aGrowthIncrement, mozIStorageCompletionCallback* aCallback) - : Runnable("storage::AsyncInitDatabase") - , mConnection(aConnection) + : mConnection(aConnection) , mStorageFile(aStorageFile) , mGrowthIncrement(aGrowthIncrement) , mCallback(aCallback) @@ -682,7 +679,6 @@ public: if (NS_FAILED(rv)) { nsCOMPtr closeRunnable = NewRunnableMethod( - "storage::Connection::AsyncClose", mConnection.get(), &Connection::AsyncClose, nullptr); diff --git a/storage/test/gtest/storage_test_harness.h b/storage/test/gtest/storage_test_harness.h index 09a01c7f9da5..b1003f043471 100644 --- a/storage/test/gtest/storage_test_harness.h +++ b/storage/test/gtest/storage_test_harness.h @@ -299,10 +299,9 @@ void watch_for_mutex_use_on_this_thread() class ThreadWedger : public mozilla::Runnable { public: - explicit ThreadWedger(nsIEventTarget* aTarget) - : mozilla::Runnable("ThreadWedger") - , mReentrantMonitor("thread wedger") - , unwedged(false) + explicit ThreadWedger(nsIEventTarget *aTarget) + : mReentrantMonitor("thread wedger") + , unwedged(false) { aTarget->Dispatch(this, aTarget->NS_DISPATCH_NORMAL); } diff --git a/storage/test/gtest/test_service_init_background_thread.cpp b/storage/test/gtest/test_service_init_background_thread.cpp index 5a2c1b5ae92a..e811e249702b 100644 --- a/storage/test/gtest/test_service_init_background_thread.cpp +++ b/storage/test/gtest/test_service_init_background_thread.cpp @@ -19,7 +19,6 @@ class ServiceInitializer : public mozilla::Runnable { public: - ServiceInitializer() : mozilla::Runnable("ServiceInitializer") {} NS_IMETHOD Run() override { // Use an explicit do_GetService instead of getService so that the check in diff --git a/storage/test/gtest/test_unlock_notify.cpp b/storage/test/gtest/test_unlock_notify.cpp index b5a4529cd614..d108f3b16a09 100644 --- a/storage/test/gtest/test_unlock_notify.cpp +++ b/storage/test/gtest/test_unlock_notify.cpp @@ -29,10 +29,9 @@ class DatabaseLocker : public mozilla::Runnable { public: explicit DatabaseLocker(const char* aSQL) - : mozilla::Runnable("DatabaseLocker") - , monitor("DatabaseLocker::monitor") - , mSQL(aSQL) - , mState(STARTING) + : monitor("DatabaseLocker::monitor") + , mSQL(aSQL) + , mState(STARTING) { } diff --git a/toolkit/components/filewatcher/NativeFileWatcherWin.cpp b/toolkit/components/filewatcher/NativeFileWatcherWin.cpp index faf166eff662..96be46eaef5c 100644 --- a/toolkit/components/filewatcher/NativeFileWatcherWin.cpp +++ b/toolkit/components/filewatcher/NativeFileWatcherWin.cpp @@ -37,8 +37,7 @@ public: */ WatchedErrorEvent(const nsMainThreadPtrHandle& aOnError, const nsresult& anError, const DWORD& osError) - : Runnable("WatchedErrorEvent") - , mOnError(aOnError) + : mOnError(aOnError) , mError(anError) { MOZ_ASSERT(!NS_IsMainThread()); @@ -76,8 +75,7 @@ public: */ WatchedSuccessEvent(const nsMainThreadPtrHandle& aOnSuccess, const nsAString& aResourcePath) - : Runnable("WatchedSuccessEvent") - , mOnSuccess(aOnSuccess) + : mOnSuccess(aOnSuccess) , mResourcePath(aResourcePath) { MOZ_ASSERT(!NS_IsMainThread()); @@ -114,8 +112,7 @@ public: */ WatchedChangeEvent(const nsMainThreadPtrHandle& aOnChange, const nsAString& aChangedResource) - : Runnable("WatchedChangeEvent") - , mOnChange(aOnChange) + : mOnChange(aOnChange) , mChangedResource(aChangedResource) { MOZ_ASSERT(!NS_IsMainThread()); @@ -231,8 +228,7 @@ class NativeWatcherIOShutdownTask : public Runnable { public: NativeWatcherIOShutdownTask() - : Runnable("NativeWatcherIOShutdownTask") - , mWorkerThread(do_GetCurrentThread()) + : mWorkerThread(do_GetCurrentThread()) { MOZ_ASSERT(!NS_IsMainThread()); } @@ -263,8 +259,7 @@ class NativeFileWatcherIOTask : public Runnable { public: explicit NativeFileWatcherIOTask(HANDLE aIOCompletionPort) - : Runnable("NativeFileWatcherIOTask") - , mIOCompletionPort(aIOCompletionPort) + : mIOCompletionPort(aIOCompletionPort) , mShuttingDown(false) { } @@ -1329,7 +1324,6 @@ NativeFileWatcherService::AddPath(const nsAString& aPathToWatch, nsresult rv = mIOThread->Dispatch( NewRunnableMethod( - "NativeFileWatcherIOTask::AddPathRunnableMethod", static_cast(mWorkerIORunnable.get()), &NativeFileWatcherIOTask::AddPathRunnableMethod, wrappedCallbacks.get()), @@ -1403,7 +1397,6 @@ NativeFileWatcherService::RemovePath(const nsAString& aPathToRemove, nsresult rv = mIOThread->Dispatch( NewRunnableMethod( - "NativeFileWatcherIOTask::RemovePathRunnableMethod", static_cast(mWorkerIORunnable.get()), &NativeFileWatcherIOTask::RemovePathRunnableMethod, wrappedCallbacks.get()), @@ -1453,7 +1446,6 @@ NativeFileWatcherService::Uninit() nsresult rv = ioThread->Dispatch( NewRunnableMethod( - "NativeFileWatcherIOTask::DeactivateRunnableMethod", static_cast(mWorkerIORunnable.get()), &NativeFileWatcherIOTask::DeactivateRunnableMethod), nsIEventTarget::DISPATCH_NORMAL); diff --git a/toolkit/components/osfile/NativeOSFileInternals.cpp b/toolkit/components/osfile/NativeOSFileInternals.cpp index 63003e3acf1a..c671cfeae309 100644 --- a/toolkit/components/osfile/NativeOSFileInternals.cpp +++ b/toolkit/components/osfile/NativeOSFileInternals.cpp @@ -411,14 +411,13 @@ public: already_AddRefed& aDiscardedResult, const nsACString& aOperation, int32_t aOSError) - : Runnable("ErrorEvent") - , mOnSuccess(aOnSuccess) + : mOnSuccess(aOnSuccess) , mOnError(aOnError) , mDiscardedResult(aDiscardedResult) , mOSError(aOSError) , mOperation(aOperation) - { - MOZ_ASSERT(!NS_IsMainThread()); + { + MOZ_ASSERT(!NS_IsMainThread()); } NS_IMETHOD Run() override { @@ -461,16 +460,14 @@ public: * we do not manipulate xpconnect refcounters off the main thread * (which is illegal). */ - SuccessEvent( - nsMainThreadPtrHandle& aOnSuccess, - nsMainThreadPtrHandle& aOnError, - already_AddRefed& aResult) - : Runnable("SuccessEvent") - , mOnSuccess(aOnSuccess) + SuccessEvent(nsMainThreadPtrHandle& aOnSuccess, + nsMainThreadPtrHandle& aOnError, + already_AddRefed& aResult) + : mOnSuccess(aOnSuccess) , mOnError(aOnError) , mResult(aResult) - { - MOZ_ASSERT(!NS_IsMainThread()); + { + MOZ_ASSERT(!NS_IsMainThread()); } NS_IMETHOD Run() override { @@ -503,11 +500,9 @@ public: */ class AbstractDoEvent: public Runnable { public: - AbstractDoEvent( - nsMainThreadPtrHandle& aOnSuccess, - nsMainThreadPtrHandle& aOnError) - : Runnable("AbstractDoEvent") - , mOnSuccess(aOnSuccess) + AbstractDoEvent(nsMainThreadPtrHandle& aOnSuccess, + nsMainThreadPtrHandle& aOnError) + : mOnSuccess(aOnSuccess) , mOnError(aOnError) #if defined(DEBUG) , mResolved(false) diff --git a/toolkit/components/places/FaviconHelpers.cpp b/toolkit/components/places/FaviconHelpers.cpp index 5666e25d86b3..b34267fd88eb 100644 --- a/toolkit/components/places/FaviconHelpers.cpp +++ b/toolkit/components/places/FaviconHelpers.cpp @@ -504,9 +504,7 @@ AsyncFetchAndSetIconForPage::AsyncFetchAndSetIconForPage( , bool aFaviconLoadPrivate , nsIFaviconDataCallback* aCallback , nsIPrincipal* aLoadingPrincipal -) - : Runnable("places::AsyncFetchAndSetIconForPage") - , mCallback(new nsMainThreadPtrHolder( +) : mCallback(new nsMainThreadPtrHolder( "AsyncFetchAndSetIconForPage::mCallback", aCallback)) , mIcon(aIcon) , mPage(aPage) @@ -545,9 +543,7 @@ AsyncFetchAndSetIconForPage::Run() // Fetch the icon from the network, the request starts from the main-thread. // When done this will associate the icon to the page and notify. nsCOMPtr event = - NewRunnableMethod("places::AsyncFetchAndSetIconForPage::FetchFromNetwork", - this, - &AsyncFetchAndSetIconForPage::FetchFromNetwork); + NewRunnableMethod(this, &AsyncFetchAndSetIconForPage::FetchFromNetwork); return NS_DispatchToMainThread(event); } @@ -790,11 +786,10 @@ AsyncFetchAndSetIconForPage::OnStopRequest(nsIRequest* aRequest, //// AsyncAssociateIconToPage AsyncAssociateIconToPage::AsyncAssociateIconToPage( - const IconData& aIcon, - const PageData& aPage, - const nsMainThreadPtrHandle& aCallback) - : Runnable("places::AsyncAssociateIconToPage") - , mCallback(aCallback) + const IconData& aIcon +, const PageData& aPage +, const nsMainThreadPtrHandle& aCallback +) : mCallback(aCallback) , mIcon(aIcon) , mPage(aPage) { @@ -943,8 +938,7 @@ AsyncGetFaviconURLForPage::AsyncGetFaviconURLForPage( , const nsACString& aPageHost , uint16_t aPreferredWidth , nsIFaviconDataCallback* aCallback -) : Runnable("places::AsyncGetFaviconURLForPage") - , mPreferredWidth(aPreferredWidth == 0 ? UINT16_MAX : aPreferredWidth) +) : mPreferredWidth(aPreferredWidth == 0 ? UINT16_MAX : aPreferredWidth) , mCallback(new nsMainThreadPtrHolder( "AsyncGetFaviconURLForPage::mCallback", aCallback)) { @@ -984,8 +978,7 @@ AsyncGetFaviconDataForPage::AsyncGetFaviconDataForPage( , const nsACString& aPageHost , uint16_t aPreferredWidth , nsIFaviconDataCallback* aCallback -) : Runnable("places::AsyncGetFaviconDataForPage") - , mPreferredWidth(aPreferredWidth == 0 ? UINT16_MAX : aPreferredWidth) +) : mPreferredWidth(aPreferredWidth == 0 ? UINT16_MAX : aPreferredWidth) , mCallback(new nsMainThreadPtrHolder( "AsyncGetFaviconDataForPage::mCallback", aCallback)) { @@ -1025,9 +1018,8 @@ AsyncGetFaviconDataForPage::Run() //////////////////////////////////////////////////////////////////////////////// //// AsyncReplaceFaviconData -AsyncReplaceFaviconData::AsyncReplaceFaviconData(const IconData& aIcon) - : Runnable("places::AsyncReplaceFaviconData") - , mIcon(aIcon) +AsyncReplaceFaviconData::AsyncReplaceFaviconData(const IconData &aIcon) + : mIcon(aIcon) { MOZ_ASSERT(NS_IsMainThread()); } @@ -1052,10 +1044,8 @@ AsyncReplaceFaviconData::Run() NS_ENSURE_SUCCESS(rv, rv); // We can invalidate the cache version since we now persist the icon. - nsCOMPtr event = NewRunnableMethod( - "places::AsyncReplaceFaviconData::RemoveIconDataCacheEntry", - this, - &AsyncReplaceFaviconData::RemoveIconDataCacheEntry); + nsCOMPtr event = + NewRunnableMethod(this, &AsyncReplaceFaviconData::RemoveIconDataCacheEntry); rv = NS_DispatchToMainThread(event); NS_ENSURE_SUCCESS(rv, rv); @@ -1083,13 +1073,13 @@ AsyncReplaceFaviconData::RemoveIconDataCacheEntry() //// NotifyIconObservers NotifyIconObservers::NotifyIconObservers( - const IconData& aIcon, - const PageData& aPage, - const nsMainThreadPtrHandle& aCallback) - : Runnable("places::NotifyIconObservers") - , mCallback(aCallback) - , mIcon(aIcon) - , mPage(aPage) + const IconData& aIcon +, const PageData& aPage +, const nsMainThreadPtrHandle& aCallback +) +: mCallback(aCallback) +, mIcon(aIcon) +, mPage(aPage) { } @@ -1160,10 +1150,9 @@ NotifyIconObservers::SendGlobalNotifications(nsIURI* aIconURI) //////////////////////////////////////////////////////////////////////////////// //// FetchAndConvertUnsupportedPayloads -FetchAndConvertUnsupportedPayloads::FetchAndConvertUnsupportedPayloads( - mozIStorageConnection* aDBConn) - : Runnable("places::FetchAndConvertUnsupportedPayloads") - , mDB(aDBConn) +FetchAndConvertUnsupportedPayloads::FetchAndConvertUnsupportedPayloads ( + mozIStorageConnection* aDBConn +) : mDB(aDBConn) { } @@ -1392,11 +1381,11 @@ FetchAndConvertUnsupportedPayloads::StorePayload(int64_t aId, //////////////////////////////////////////////////////////////////////////////// //// AsyncCopyFavicons -AsyncCopyFavicons::AsyncCopyFavicons(PageData& aFromPage, - PageData& aToPage, - nsIFaviconDataCallback* aCallback) - : Runnable("places::AsyncCopyFavicons") - , mFromPage(aFromPage) +AsyncCopyFavicons::AsyncCopyFavicons( + PageData& aFromPage +, PageData& aToPage +, nsIFaviconDataCallback* aCallback +) : mFromPage(aFromPage) , mToPage(aToPage) , mCallback(new nsMainThreadPtrHolder( "AsyncCopyFavicons::mCallback", aCallback)) diff --git a/toolkit/components/places/Helpers.cpp b/toolkit/components/places/Helpers.cpp index 39580041382a..33aa89e88f06 100644 --- a/toolkit/components/places/Helpers.cpp +++ b/toolkit/components/places/Helpers.cpp @@ -321,8 +321,7 @@ GetHiddenState(bool aIsRedirect, //// PlacesEvent PlacesEvent::PlacesEvent(const char* aTopic) - : Runnable("places::PlacesEvent") - , mTopic(aTopic) +: mTopic(aTopic) { } diff --git a/toolkit/components/places/Helpers.h b/toolkit/components/places/Helpers.h index 514d679d9e82..854105f94004 100644 --- a/toolkit/components/places/Helpers.h +++ b/toolkit/components/places/Helpers.h @@ -193,11 +193,11 @@ public: */ FinalizeStatementCacheProxy( mozilla::storage::StatementCache& aStatementCache, - nsISupports* aOwner) - : Runnable("places::FinalizeStatementCacheProxy") - , mStatementCache(aStatementCache) - , mOwner(aOwner) - , mCallingThread(do_GetCurrentThread()) + nsISupports* aOwner + ) + : mStatementCache(aStatementCache) + , mOwner(aOwner) + , mCallingThread(do_GetCurrentThread()) { } diff --git a/toolkit/components/places/History.cpp b/toolkit/components/places/History.cpp index 04f1b1d4cc5d..3410e75e89e0 100644 --- a/toolkit/components/places/History.cpp +++ b/toolkit/components/places/History.cpp @@ -503,10 +503,7 @@ public: RefPtr cb = new VisitedQuery(aURI, callback, true); NS_ENSURE_TRUE(cb, NS_ERROR_OUT_OF_MEMORY); // As per IHistory contract, we must notify asynchronously. - NS_DispatchToMainThread( - NewRunnableMethod("places::VisitedQuery::NotifyVisitedStatus", - cb, - &VisitedQuery::NotifyVisitedStatus)); + NS_DispatchToMainThread(NewRunnableMethod(cb, &VisitedQuery::NotifyVisitedStatus)); return NS_OK; } @@ -626,9 +623,8 @@ class NotifyVisitObservers : public Runnable { public: explicit NotifyVisitObservers(VisitData& aPlace) - : Runnable("places::NotifyVisitObservers") - , mPlace(aPlace) - , mHistory(History::GetService()) + : mPlace(aPlace) + , mHistory(History::GetService()) { } @@ -704,10 +700,9 @@ public: NotifyTitleObservers(const nsCString& aSpec, const nsString& aTitle, const nsCString& aGUID) - : Runnable("places::NotifyTitleObservers") - , mSpec(aSpec) - , mTitle(aTitle) - , mGUID(aGUID) + : mSpec(aSpec) + , mTitle(aTitle) + , mGUID(aGUID) { } @@ -740,16 +735,14 @@ private: class NotifyPlaceInfoCallback : public Runnable { public: - NotifyPlaceInfoCallback( - const nsMainThreadPtrHandle& aCallback, - const VisitData& aPlace, - bool aIsSingleVisit, - nsresult aResult) - : Runnable("places::NotifyPlaceInfoCallback") - , mCallback(aCallback) - , mPlace(aPlace) - , mResult(aResult) - , mIsSingleVisit(aIsSingleVisit) + NotifyPlaceInfoCallback(const nsMainThreadPtrHandle& aCallback, + const VisitData& aPlace, + bool aIsSingleVisit, + nsresult aResult) + : mCallback(aCallback) + , mPlace(aPlace) + , mResult(aResult) + , mIsSingleVisit(aIsSingleVisit) { MOZ_ASSERT(aCallback, "Must pass a non-null callback!"); } @@ -812,12 +805,10 @@ private: class NotifyCompletion : public Runnable { public: - explicit NotifyCompletion( - const nsMainThreadPtrHandle& aCallback, - uint32_t aUpdatedCount = 0) - : Runnable("places::NotifyCompletion") - , mCallback(aCallback) - , mUpdatedCount(aUpdatedCount) + explicit NotifyCompletion(const nsMainThreadPtrHandle& aCallback, + uint32_t aUpdatedCount = 0) + : mCallback(aCallback) + , mUpdatedCount(aUpdatedCount) { MOZ_ASSERT(aCallback, "Must pass a non-null callback!"); } @@ -883,10 +874,7 @@ CanAddURI(nsIURI* aURI, class NotifyManyFrecenciesChanged final : public Runnable { public: - NotifyManyFrecenciesChanged() - : Runnable("places::NotifyManyFrecenciesChanged") - { - } + NotifyManyFrecenciesChanged() {} NS_IMETHOD Run() override { @@ -1075,22 +1063,20 @@ public: return NS_OK; } private: - InsertVisitedURIs( - mozIStorageConnection* aConnection, - nsTArray& aPlaces, - const nsMainThreadPtrHandle& aCallback, - bool aGroupNotifications, - bool aIgnoreErrors, - bool aIgnoreResults, - uint32_t aInitialUpdatedCount) - : Runnable("places::InsertVisitedURIs") - , mDBConn(aConnection) - , mCallback(aCallback) - , mGroupNotifications(aGroupNotifications) - , mIgnoreErrors(aIgnoreErrors) - , mIgnoreResults(aIgnoreResults) - , mSuccessfulUpdatedCount(aInitialUpdatedCount) - , mHistory(History::GetService()) + InsertVisitedURIs(mozIStorageConnection* aConnection, + nsTArray& aPlaces, + const nsMainThreadPtrHandle& aCallback, + bool aGroupNotifications, + bool aIgnoreErrors, + bool aIgnoreResults, + uint32_t aInitialUpdatedCount) + : mDBConn(aConnection) + , mCallback(aCallback) + , mGroupNotifications(aGroupNotifications) + , mIgnoreErrors(aIgnoreErrors) + , mIgnoreResults(aIgnoreResults) + , mSuccessfulUpdatedCount(aInitialUpdatedCount) + , mHistory(History::GetService()) { MOZ_ASSERT(NS_IsMainThread(), "This should be called on the main thread"); @@ -1414,9 +1400,9 @@ public: } private: - SetPageTitle(const nsCString& aSpec, const nsAString& aTitle) - : Runnable("places::SetPageTitle") - , mHistory(History::GetService()) + SetPageTitle(const nsCString& aSpec, + const nsAString& aTitle) + : mHistory(History::GetService()) { mPlace.spec = aSpec; mPlace.title = aTitle; @@ -1545,9 +1531,9 @@ NS_IMPL_ISUPPORTS( class NotifyRemoveVisits : public Runnable { public: + explicit NotifyRemoveVisits(nsTHashtable& aPlaces) - : Runnable("places::NotifyRemoveVisits") - , mPlaces(VISITS_REMOVAL_INITIAL_HASH_LENGTH) + : mPlaces(VISITS_REMOVAL_INITIAL_HASH_LENGTH) , mHistory(History::GetService()) { MOZ_ASSERT(!NS_IsMainThread(), @@ -1694,11 +1680,11 @@ public: } private: - RemoveVisits(mozIStorageConnection* aConnection, RemoveVisitsFilter& aFilter) - : Runnable("places::RemoveVisits") - , mDBConn(aConnection) - , mHasTransitionType(false) - , mHistory(History::GetService()) + RemoveVisits(mozIStorageConnection* aConnection, + RemoveVisitsFilter& aFilter) + : mDBConn(aConnection) + , mHasTransitionType(false) + , mHistory(History::GetService()) { MOZ_ASSERT(NS_IsMainThread(), "This should be called on the main thread"); diff --git a/toolkit/components/places/nsNavHistory.cpp b/toolkit/components/places/nsNavHistory.cpp index 3693c1512ab9..edf37a7ea3c4 100644 --- a/toolkit/components/places/nsNavHistory.cpp +++ b/toolkit/components/places/nsNavHistory.cpp @@ -564,8 +564,7 @@ public: const nsACString& aGUID, bool aHidden, PRTime aLastVisitDate) - : mozilla::Runnable("FrecencyNotification") - , mSpec(aSpec) + : mSpec(aSpec) , mNewFrecency(aNewFrecency) , mGUID(aGUID) , mHidden(aHidden) @@ -676,11 +675,9 @@ nsNavHistory::GetNow() if (!mExpireNowTimer) mExpireNowTimer = do_CreateInstance("@mozilla.org/timer;1"); if (mExpireNowTimer) - mExpireNowTimer->InitWithNamedFuncCallback(expireNowTimerCallback, - this, - RENEW_CACHED_NOW_TIMEOUT, - nsITimer::TYPE_ONE_SHOT, - "nsNavHistory::GetNow"); + mExpireNowTimer->InitWithFuncCallback(expireNowTimerCallback, this, + RENEW_CACHED_NOW_TIMEOUT, + nsITimer::TYPE_ONE_SHOT); } return mCachedNow; } diff --git a/toolkit/components/places/tests/gtest/places_test_harness_tail.h b/toolkit/components/places/tests/gtest/places_test_harness_tail.h index a6e3e0c54963..fc363cb6a734 100644 --- a/toolkit/components/places/tests/gtest/places_test_harness_tail.h +++ b/toolkit/components/places/tests/gtest/places_test_harness_tail.h @@ -21,7 +21,6 @@ int gTestsIndex = 0; class RunNextTest : public mozilla::Runnable { public: - RunNextTest() : mozilla::Runnable("RunNextTest") {} NS_IMETHOD Run() override { NS_ASSERTION(NS_IsMainThread(), "Not running on the main thread?"); diff --git a/toolkit/components/satchel/nsFormFillController.cpp b/toolkit/components/satchel/nsFormFillController.cpp index f277cce17ff2..b613e86a5c20 100644 --- a/toolkit/components/satchel/nsFormFillController.cpp +++ b/toolkit/components/satchel/nsFormFillController.cpp @@ -149,11 +149,8 @@ nsFormFillController::AttributeChanged(nsIDocument* aDocument, // to avoid ending up in an endless loop due to re-registering our // mutation observer (which would notify us again for *this* event). nsCOMPtr event = - mozilla::NewRunnableMethod>( - "nsFormFillController::MaybeStartControllingInput", - this, - &nsFormFillController::MaybeStartControllingInput, - focusedInput); + mozilla::NewRunnableMethod> + (this, &nsFormFillController::MaybeStartControllingInput, focusedInput); NS_DispatchToCurrentThread(event); } diff --git a/toolkit/components/startup/nsAppStartup.cpp b/toolkit/components/startup/nsAppStartup.cpp index 75b418754773..e824e91dedaf 100644 --- a/toolkit/components/startup/nsAppStartup.cpp +++ b/toolkit/components/startup/nsAppStartup.cpp @@ -103,11 +103,7 @@ private: RefPtr mService; public: - explicit nsAppExitEvent(nsAppStartup* service) - : mozilla::Runnable("nsAppExitEvent") - , mService(service) - { - } + explicit nsAppExitEvent(nsAppStartup *service) : mService(service) {} NS_IMETHOD Run() override { // Tell the appshell to exit diff --git a/toolkit/components/telemetry/Telemetry.cpp b/toolkit/components/telemetry/Telemetry.cpp index 4f340facc3c1..0694633f0263 100644 --- a/toolkit/components/telemetry/Telemetry.cpp +++ b/toolkit/components/telemetry/Telemetry.cpp @@ -553,11 +553,10 @@ public: nsFetchTelemetryData(const char* aShutdownTimeFilename, nsIFile* aFailedProfileLockFile, nsIFile* aProfileDir) - : mozilla::Runnable("nsFetchTelemetryData") - , mShutdownTimeFilename(aShutdownTimeFilename) - , mFailedProfileLockFile(aFailedProfileLockFile) - , mTelemetry(TelemetryImpl::sTelemetry) - , mProfileDir(aProfileDir) + : mShutdownTimeFilename(aShutdownTimeFilename), + mFailedProfileLockFile(aFailedProfileLockFile), + mTelemetry(TelemetryImpl::sTelemetry), + mProfileDir(aProfileDir) { } @@ -582,9 +581,7 @@ public: ReadLastShutdownDuration(mShutdownTimeFilename); mTelemetry->ReadLateWritesStacks(mProfileDir); nsCOMPtr e = - NewRunnableMethod("nsFetchTelemetryData::MainThread", - this, - &nsFetchTelemetryData::MainThread); + NewRunnableMethod(this, &nsFetchTelemetryData::MainThread); NS_ENSURE_STATE(e); NS_DispatchToMainThread(e); return NS_OK; @@ -1059,10 +1056,8 @@ class GetLoadedModulesResultRunnable final : public Runnable nsCOMPtr mWorkerThread; public: - GetLoadedModulesResultRunnable(const nsMainThreadPtrHandle& aPromise, - const SharedLibraryInfo& rawModules) - : mozilla::Runnable("GetLoadedModulesResultRunnable") - , mPromise(aPromise) + GetLoadedModulesResultRunnable(const nsMainThreadPtrHandle& aPromise, const SharedLibraryInfo& rawModules) + : mPromise(aPromise) , mRawModules(rawModules) , mWorkerThread(do_GetCurrentThread()) { @@ -1180,10 +1175,8 @@ class GetLoadedModulesRunnable final : public Runnable nsMainThreadPtrHandle mPromise; public: - explicit GetLoadedModulesRunnable( - const nsMainThreadPtrHandle& aPromise) - : mozilla::Runnable("GetLoadedModulesRunnable") - , mPromise(aPromise) + explicit GetLoadedModulesRunnable(const nsMainThreadPtrHandle& aPromise) + : mPromise(aPromise) { } NS_IMETHOD diff --git a/toolkit/components/telemetry/TelemetryCommon.cpp b/toolkit/components/telemetry/TelemetryCommon.cpp index 77fdf77a6d51..5d813c601aaa 100644 --- a/toolkit/components/telemetry/TelemetryCommon.cpp +++ b/toolkit/components/telemetry/TelemetryCommon.cpp @@ -102,9 +102,8 @@ LogToBrowserConsole(uint32_t aLogLevel, const nsAString& aMsg) { if (!NS_IsMainThread()) { nsString msg(aMsg); - nsCOMPtr task = NS_NewRunnableFunction( - "Telemetry::Common::LogToBrowserConsole", - [aLogLevel, msg]() { LogToBrowserConsole(aLogLevel, msg); }); + nsCOMPtr task = + NS_NewRunnableFunction([aLogLevel, msg]() { LogToBrowserConsole(aLogLevel, msg); }); NS_DispatchToMainThread(task.forget(), NS_DISPATCH_NORMAL); return; } diff --git a/toolkit/components/telemetry/tests/gtest/TestScalars.cpp b/toolkit/components/telemetry/tests/gtest/TestScalars.cpp index 1efed54069c9..1ce7fb758a6e 100644 --- a/toolkit/components/telemetry/tests/gtest/TestScalars.cpp +++ b/toolkit/components/telemetry/tests/gtest/TestScalars.cpp @@ -301,11 +301,9 @@ TEST_F(TelemetryTestFixture, NonMainThreadAdd) { Unused << mTelemetry->ClearScalars(); // Define the function that will be called on the testing thread. - nsCOMPtr runnable = NS_NewRunnableFunction( - "TelemetryTestFixture_NonMainThreadAdd_Test::TestBody", []() -> void { - Telemetry::ScalarAdd( - Telemetry::ScalarID::TELEMETRY_TEST_UNSIGNED_INT_KIND, 37); - }); + nsCOMPtr runnable = NS_NewRunnableFunction([]() -> void { + Telemetry::ScalarAdd(Telemetry::ScalarID::TELEMETRY_TEST_UNSIGNED_INT_KIND, 37); + }); // Spawn the testing thread and run the function. nsCOMPtr testingThread; diff --git a/toolkit/components/url-classifier/Classifier.cpp b/toolkit/components/url-classifier/Classifier.cpp index aaa53dd84886..1ee35dd593d3 100644 --- a/toolkit/components/url-classifier/Classifier.cpp +++ b/toolkit/components/url-classifier/Classifier.cpp @@ -302,8 +302,7 @@ Classifier::Reset() return; } - nsCOMPtr r = - NS_NewRunnableFunction("safebrowsing::Classifier::Reset", resetFunc); + nsCOMPtr r = NS_NewRunnableFunction(resetFunc); SyncRunnable::DispatchToThread(mUpdateThread, r); } @@ -739,30 +738,25 @@ Classifier::AsyncApplyUpdates(nsTArray* aUpdates, nsCOMPtr callerThread = NS_GetCurrentThread(); MOZ_ASSERT(callerThread != mUpdateThread); - nsCOMPtr bgRunnable = - NS_NewRunnableFunction("safebrowsing::Classifier::AsyncApplyUpdates", [=] { - MOZ_ASSERT(NS_GetCurrentThread() == mUpdateThread, - "MUST be on update thread"); + nsCOMPtr bgRunnable = NS_NewRunnableFunction([=] { + MOZ_ASSERT(NS_GetCurrentThread() == mUpdateThread, "MUST be on update thread"); - LOG(("Step 1. ApplyUpdatesBackground on update thread.")); - nsCString failedTableName; - nsresult bgRv = ApplyUpdatesBackground(aUpdates, failedTableName); + LOG(("Step 1. ApplyUpdatesBackground on update thread.")); + nsCString failedTableName; + nsresult bgRv = ApplyUpdatesBackground(aUpdates, failedTableName); - nsCOMPtr fgRunnable = NS_NewRunnableFunction( - "safebrowsing::Classifier::AsyncApplyUpdates", [=] { - MOZ_ASSERT(NS_GetCurrentThread() == callerThread, - "MUST be on caller thread"); + nsCOMPtr fgRunnable = NS_NewRunnableFunction([=] { + MOZ_ASSERT(NS_GetCurrentThread() == callerThread, "MUST be on caller thread"); - LOG(("Step 2. ApplyUpdatesForeground on caller thread")); - nsresult rv = ApplyUpdatesForeground(bgRv, failedTableName); - ; + LOG(("Step 2. ApplyUpdatesForeground on caller thread")); + nsresult rv = ApplyUpdatesForeground(bgRv, failedTableName);; - LOG(("Step 3. Updates applied! Fire callback.")); + LOG(("Step 3. Updates applied! Fire callback.")); - aCallback(rv); - }); - callerThread->Dispatch(fgRunnable, NS_DISPATCH_NORMAL); + aCallback(rv); }); + callerThread->Dispatch(fgRunnable, NS_DISPATCH_NORMAL); + }); return mUpdateThread->Dispatch(bgRunnable, NS_DISPATCH_NORMAL); } diff --git a/toolkit/components/url-classifier/nsUrlClassifierDBService.cpp b/toolkit/components/url-classifier/nsUrlClassifierDBService.cpp index 398929dc7b51..aad5fcbcb469 100644 --- a/toolkit/components/url-classifier/nsUrlClassifierDBService.cpp +++ b/toolkit/components/url-classifier/nsUrlClassifierDBService.cpp @@ -1830,41 +1830,39 @@ nsUrlClassifierDBService::AsyncClassifyLocalWithTables(nsIURI *aURI, new nsMainThreadPtrHolder( "nsIURIClassifierCallback", aCallback)); - nsCOMPtr r = NS_NewRunnableFunction( - "nsUrlClassifierDBService::AsyncClassifyLocalWithTables", - [worker, key, tables, callback, startTime]() -> void { + nsCOMPtr r = + NS_NewRunnableFunction([worker, key, tables, callback, startTime] () -> void { - nsCString matchedLists; - nsAutoPtr results(new LookupResultArray()); - if (results) { - nsresult rv = worker->DoLocalLookup(key, tables, results); - if (NS_SUCCEEDED(rv)) { - for (uint32_t i = 0; i < results->Length(); i++) { - if (i > 0) { - matchedLists.AppendLiteral(","); - } - matchedLists.Append(results->ElementAt(i).mTableName); + nsCString matchedLists; + nsAutoPtr results(new LookupResultArray()); + if (results) { + nsresult rv = worker->DoLocalLookup(key, tables, results); + if (NS_SUCCEEDED(rv)) { + for (uint32_t i = 0; i < results->Length(); i++) { + if (i > 0) { + matchedLists.AppendLiteral(","); } + matchedLists.Append(results->ElementAt(i).mTableName); } } + } - nsCOMPtr cbRunnable = NS_NewRunnableFunction( - "nsUrlClassifierDBService::AsyncClassifyLocalWithTables", - [callback, matchedLists, startTime]() -> void { - // Measure the time diff between calling and callback. - AccumulateDelta_impl::compute( - Telemetry::URLCLASSIFIER_ASYNC_CLASSIFYLOCAL_TIME, startTime); + nsCOMPtr cbRunnable = + NS_NewRunnableFunction([callback, matchedLists, startTime] () -> void { + // Measure the time diff between calling and callback. + AccumulateDelta_impl::compute( + Telemetry::URLCLASSIFIER_ASYNC_CLASSIFYLOCAL_TIME, startTime); - // |callback| is captured as const value so ... - auto cb = const_cast(callback.get()); - cb->OnClassifyComplete(NS_OK, // Not used. - matchedLists, - EmptyCString(), // provider. (Not used) - EmptyCString()); // prefix. (Not used) - }); + // |callback| is captured as const value so ... + auto cb = const_cast(callback.get()); + cb->OnClassifyComplete(NS_OK, // Not used. + matchedLists, + EmptyCString(), // provider. (Not used) + EmptyCString()); // prefix. (Not used) + }); - NS_DispatchToMainThread(cbRunnable); - }); + NS_DispatchToMainThread(cbRunnable); + }); return gDbBackgroundThread->Dispatch(r, NS_DISPATCH_NORMAL); } @@ -2268,10 +2266,8 @@ nsUrlClassifierDBService::Shutdown() // between main thread and the worker thread. (Both threads // would access Classifier::mUpdateThread.) using Worker = nsUrlClassifierDBServiceWorker; - RefPtr r = NewRunnableMethod( - "nsUrlClassifierDBServiceWorker::FlushAndDisableAsyncUpdate", - mWorker, - &Worker::FlushAndDisableAsyncUpdate); + RefPtr r = + NewRunnableMethod(mWorker, &Worker::FlushAndDisableAsyncUpdate); SyncRunnable::DispatchToThread(gDbBackgroundThread, r); // At this point the update thread has been shut down and diff --git a/toolkit/components/url-classifier/nsUrlClassifierProxies.cpp b/toolkit/components/url-classifier/nsUrlClassifierProxies.cpp index e5ff0dbc1604..b48ae6bd666d 100644 --- a/toolkit/components/url-classifier/nsUrlClassifierProxies.cpp +++ b/toolkit/components/url-classifier/nsUrlClassifierProxies.cpp @@ -113,8 +113,7 @@ NS_IMETHODIMP UrlClassifierDBServiceWorkerProxy::FinishStream() { nsCOMPtr r = - NewRunnableMethod("nsUrlClassifierDBServiceWorker::FinishStream", - mTarget, + NewRunnableMethod(mTarget, &nsUrlClassifierDBServiceWorker::FinishStream); return DispatchToWorkerThread(r); } @@ -148,8 +147,7 @@ NS_IMETHODIMP UrlClassifierDBServiceWorkerProxy::FinishUpdate() { nsCOMPtr r = - NewRunnableMethod("nsUrlClassifierDBServiceWorker::FinishUpdate", - mTarget, + NewRunnableMethod(mTarget, &nsUrlClassifierDBServiceWorker::FinishUpdate); return DispatchToWorkerThread(r); } @@ -158,8 +156,7 @@ NS_IMETHODIMP UrlClassifierDBServiceWorkerProxy::CancelUpdate() { nsCOMPtr r = - NewRunnableMethod("nsUrlClassifierDBServiceWorker::CancelUpdate", - mTarget, + NewRunnableMethod(mTarget, &nsUrlClassifierDBServiceWorker::CancelUpdate); return DispatchToWorkerThread(r); } @@ -168,8 +165,7 @@ NS_IMETHODIMP UrlClassifierDBServiceWorkerProxy::ResetDatabase() { nsCOMPtr r = - NewRunnableMethod("nsUrlClassifierDBServiceWorker::ResetDatabase", - mTarget, + NewRunnableMethod(mTarget, &nsUrlClassifierDBServiceWorker::ResetDatabase); return DispatchToWorkerThread(r); } @@ -178,8 +174,7 @@ NS_IMETHODIMP UrlClassifierDBServiceWorkerProxy::ReloadDatabase() { nsCOMPtr r = - NewRunnableMethod("nsUrlClassifierDBServiceWorker::ReloadDatabase", - mTarget, + NewRunnableMethod(mTarget, &nsUrlClassifierDBServiceWorker::ReloadDatabase); return DispatchToWorkerThread(r); } @@ -188,8 +183,7 @@ NS_IMETHODIMP UrlClassifierDBServiceWorkerProxy::ClearCache() { nsCOMPtr r = - NewRunnableMethod("nsUrlClassifierDBServiceWorker::ClearCache", - mTarget, + NewRunnableMethod(mTarget, &nsUrlClassifierDBServiceWorker::ClearCache); return DispatchToWorkerThread(r); } @@ -198,8 +192,7 @@ nsresult UrlClassifierDBServiceWorkerProxy::OpenDb() { nsCOMPtr r = - NewRunnableMethod("nsUrlClassifierDBServiceWorker::OpenDb", - mTarget, + NewRunnableMethod(mTarget, &nsUrlClassifierDBServiceWorker::OpenDb); return DispatchToWorkerThread(r); } @@ -208,8 +201,7 @@ nsresult UrlClassifierDBServiceWorkerProxy::CloseDb() { nsCOMPtr r = - NewRunnableMethod("nsUrlClassifierDBServiceWorker::CloseDb", - mTarget, + NewRunnableMethod(mTarget, &nsUrlClassifierDBServiceWorker::CloseDb); return DispatchToWorkerThread(r); } diff --git a/toolkit/components/url-classifier/nsUrlClassifierProxies.h b/toolkit/components/url-classifier/nsUrlClassifierProxies.h index f337ed0fe2d2..cad88316657c 100644 --- a/toolkit/components/url-classifier/nsUrlClassifierProxies.h +++ b/toolkit/components/url-classifier/nsUrlClassifierProxies.h @@ -35,8 +35,7 @@ public: nsIPrincipal* aPrincipal, const nsACString& aTables, nsIUrlClassifierCallback* aCB) - : mozilla::Runnable("UrlClassifierDBServiceWorkerProxy::LookupRunnable") - , mTarget(aTarget) + : mTarget(aTarget) , mPrincipal(aPrincipal) , mLookupTables(aTables) , mCB(aCB) @@ -56,9 +55,7 @@ public: public: GetTablesRunnable(nsUrlClassifierDBServiceWorker* aTarget, nsIUrlClassifierCallback* aCB) - : mozilla::Runnable( - "UrlClassifierDBServiceWorkerProxy::GetTablesRunnable") - , mTarget(aTarget) + : mTarget(aTarget) , mCB(aCB) { } @@ -75,9 +72,7 @@ public: BeginUpdateRunnable(nsUrlClassifierDBServiceWorker* aTarget, nsIUrlClassifierUpdateObserver* aUpdater, const nsACString& aTables) - : mozilla::Runnable( - "UrlClassifierDBServiceWorkerProxy::BeginUpdateRunnable") - , mTarget(aTarget) + : mTarget(aTarget) , mUpdater(aUpdater) , mTables(aTables) { } @@ -95,9 +90,7 @@ public: public: BeginStreamRunnable(nsUrlClassifierDBServiceWorker* aTarget, const nsACString& aTable) - : mozilla::Runnable( - "UrlClassifierDBServiceWorkerProxy::BeginStreamRunnable") - , mTarget(aTarget) + : mTarget(aTarget) , mTable(aTable) { } @@ -113,9 +106,7 @@ public: public: UpdateStreamRunnable(nsUrlClassifierDBServiceWorker* aTarget, const nsACString& aUpdateChunk) - : mozilla::Runnable( - "UrlClassifierDBServiceWorkerProxy::UpdateStreamRunnable") - , mTarget(aTarget) + : mTarget(aTarget) , mUpdateChunk(aUpdateChunk) { } @@ -130,10 +121,8 @@ public: { public: CacheCompletionsRunnable(nsUrlClassifierDBServiceWorker* aTarget, - mozilla::safebrowsing::CacheResultArray* aEntries) - : mozilla::Runnable( - "UrlClassifierDBServiceWorkerProxy::CacheCompletionsRunnable") - , mTarget(aTarget) + mozilla::safebrowsing::CacheResultArray *aEntries) + : mTarget(aTarget) , mEntries(aEntries) { } @@ -151,9 +140,7 @@ public: const nsACString& spec, const nsACString& tables, mozilla::safebrowsing::LookupResultArray* results) - : mozilla::Runnable( - "UrlClassifierDBServiceWorkerProxy::DoLocalLookupRunnable") - , mTarget(aTarget) + : mTarget(aTarget) , mSpec(spec) , mTables(tables) , mResults(results) @@ -172,9 +159,7 @@ public: { public: explicit ClearLastResultsRunnable(nsUrlClassifierDBServiceWorker* aTarget) - : mozilla::Runnable( - "UrlClassifierDBServiceWorkerProxy::ClearLastResultsRunnable") - , mTarget(aTarget) + : mTarget(aTarget) { } NS_DECL_NSIRUNNABLE @@ -188,11 +173,9 @@ public: explicit GetCacheInfoRunnable(nsUrlClassifierDBServiceWorker* aTarget, const nsACString& aTable, nsIUrlClassifierCacheInfo** aCache) - : mozilla::Runnable( - "UrlClassifierDBServiceWorkerProxy::GetCacheInfoRunnable") - , mTarget(aTarget) - , mTable(aTable) - , mCache(aCache) + : mTarget(aTarget), + mTable(aTable), + mCache(aCache) { } NS_DECL_NSIRUNNABLE @@ -237,12 +220,9 @@ public: class LookupCompleteRunnable : public mozilla::Runnable { public: - LookupCompleteRunnable( - const nsMainThreadPtrHandle& aTarget, - mozilla::safebrowsing::LookupResultArray* aResults) - : mozilla::Runnable( - "UrlClassifierLookupCallbackProxy::LookupCompleteRunnable") - , mTarget(aTarget) + LookupCompleteRunnable(const nsMainThreadPtrHandle& aTarget, + mozilla::safebrowsing::LookupResultArray *aResults) + : mTarget(aTarget) , mResults(aResults) { } @@ -273,11 +253,9 @@ public: class HandleEventRunnable : public mozilla::Runnable { public: - HandleEventRunnable( - const nsMainThreadPtrHandle& aTarget, - const nsACString& aValue) - : mozilla::Runnable("UrlClassifierCallbackProxy::HandleEventRunnable") - , mTarget(aTarget) + HandleEventRunnable(const nsMainThreadPtrHandle& aTarget, + const nsACString& aValue) + : mTarget(aTarget) , mValue(aValue) { } @@ -309,13 +287,10 @@ public: class UpdateUrlRequestedRunnable : public mozilla::Runnable { public: - UpdateUrlRequestedRunnable( - const nsMainThreadPtrHandle& aTarget, - const nsACString& aURL, - const nsACString& aTable) - : mozilla::Runnable( - "UrlClassifierUpdateObserverProxy::UpdateUrlRequestedRunnable") - , mTarget(aTarget) + UpdateUrlRequestedRunnable(const nsMainThreadPtrHandle& aTarget, + const nsACString& aURL, + const nsACString& aTable) + : mTarget(aTarget) , mURL(aURL) , mTable(aTable) { } @@ -330,13 +305,9 @@ public: class StreamFinishedRunnable : public mozilla::Runnable { public: - StreamFinishedRunnable( - const nsMainThreadPtrHandle& aTarget, - nsresult aStatus, - uint32_t aDelay) - : mozilla::Runnable( - "UrlClassifierUpdateObserverProxy::StreamFinishedRunnable") - , mTarget(aTarget) + StreamFinishedRunnable(const nsMainThreadPtrHandle& aTarget, + nsresult aStatus, uint32_t aDelay) + : mTarget(aTarget) , mStatus(aStatus) , mDelay(aDelay) { } @@ -352,12 +323,9 @@ public: class UpdateErrorRunnable : public mozilla::Runnable { public: - UpdateErrorRunnable( - const nsMainThreadPtrHandle& aTarget, - nsresult aError) - : mozilla::Runnable( - "UrlClassifierUpdateObserverProxy::UpdateErrorRunnable") - , mTarget(aTarget) + UpdateErrorRunnable(const nsMainThreadPtrHandle& aTarget, + nsresult aError) + : mTarget(aTarget) , mError(aError) { } @@ -371,12 +339,9 @@ public: class UpdateSuccessRunnable : public mozilla::Runnable { public: - UpdateSuccessRunnable( - const nsMainThreadPtrHandle& aTarget, - uint32_t aRequestedTimeout) - : mozilla::Runnable( - "UrlClassifierUpdateObserverProxy::UpdateSuccessRunnable") - , mTarget(aTarget) + UpdateSuccessRunnable(const nsMainThreadPtrHandle& aTarget, + uint32_t aRequestedTimeout) + : mTarget(aTarget) , mRequestedTimeout(aRequestedTimeout) { } diff --git a/toolkit/components/url-classifier/tests/gtest/Common.cpp b/toolkit/components/url-classifier/tests/gtest/Common.cpp index 2d11cf87ccca..e8f89e854cd5 100644 --- a/toolkit/components/url-classifier/tests/gtest/Common.cpp +++ b/toolkit/components/url-classifier/tests/gtest/Common.cpp @@ -15,8 +15,7 @@ using namespace mozilla::safebrowsing; template void RunTestInNewThread(Function&& aFunction) { - nsCOMPtr r = NS_NewRunnableFunction( - "RunTestInNewThread", mozilla::Forward(aFunction)); + nsCOMPtr r = NS_NewRunnableFunction(mozilla::Forward(aFunction)); nsCOMPtr testingThread; nsresult rv = NS_NewNamedThread("Testing Thread", getter_AddRefs(testingThread), r); @@ -36,15 +35,14 @@ nsresult SyncApplyUpdates(Classifier* aClassifier, auto onUpdateComplete = [&done, &ret](nsresult rv) { // We are on the "ApplyUpdate" thread. Post an event to main thread // so that we can avoid busy waiting on the main thread. - nsCOMPtr r = - NS_NewRunnableFunction("SyncApplyUpdates", [&done, &ret, rv] { - ret = rv; - done = true; - }); + nsCOMPtr r = NS_NewRunnableFunction([&done, &ret, rv] { + ret = rv; + done = true; + }); NS_DispatchToMainThread(r); }; - nsCOMPtr r = NS_NewRunnableFunction("SyncApplyUpdates", [&]() { + nsCOMPtr r = NS_NewRunnableFunction([&]() { nsresult rv = aClassifier->AsyncApplyUpdates(aUpdates, onUpdateComplete); if (NS_FAILED(rv)) { onUpdateComplete(rv); diff --git a/toolkit/crashreporter/InjectCrashReporter.cpp b/toolkit/crashreporter/InjectCrashReporter.cpp index 22c200f1b028..e82c8ee4d86b 100644 --- a/toolkit/crashreporter/InjectCrashReporter.cpp +++ b/toolkit/crashreporter/InjectCrashReporter.cpp @@ -17,8 +17,7 @@ using CrashReporter::GetChildNotificationPipe; namespace mozilla { InjectCrashRunnable::InjectCrashRunnable(DWORD pid) - : Runnable("InjectCrashRunnable") - , mPID(pid) + : mPID(pid) { nsCOMPtr dll; nsresult rv = NS_GetSpecialDirectory(NS_GRE_DIR, getter_AddRefs(dll)); diff --git a/toolkit/crashreporter/nsExceptionHandler.cpp b/toolkit/crashreporter/nsExceptionHandler.cpp index b762b449bff6..01a3ff452799 100644 --- a/toolkit/crashreporter/nsExceptionHandler.cpp +++ b/toolkit/crashreporter/nsExceptionHandler.cpp @@ -318,7 +318,7 @@ static nsIThread* sInjectorThread; class ReportInjectedCrash : public Runnable { public: - explicit ReportInjectedCrash(uint32_t pid) : Runnable("ReportInjectedCrash"), mPID(pid) { } + explicit ReportInjectedCrash(uint32_t pid) : mPID(pid) { } NS_IMETHOD Run(); @@ -3427,7 +3427,6 @@ OOPInit() class ProxyToMainThread : public Runnable { public: - ProxyToMainThread() : Runnable("nsExceptionHandler::ProxyToMainThread") {} NS_IMETHOD Run() override { OOPInit(); return NS_OK; diff --git a/toolkit/crashreporter/test/gtest/TestCrashThreadAnnotation.cpp b/toolkit/crashreporter/test/gtest/TestCrashThreadAnnotation.cpp index 7cb84905ee86..a4325e6dd42f 100644 --- a/toolkit/crashreporter/test/gtest/TestCrashThreadAnnotation.cpp +++ b/toolkit/crashreporter/test/gtest/TestCrashThreadAnnotation.cpp @@ -79,14 +79,13 @@ TEST(TestCrashThreadAnnotation, TestGetFlatThreadAnnotation_AfterShutdown) already_AddRefed CreateTestThread(const char* aName, Monitor& aMonitor, bool& aDone) { - nsCOMPtr setNameRunnable = NS_NewRunnableFunction( - "CrashReporter::CreateTestThread", [aName, &aMonitor, &aDone]() -> void { - NS_SetCurrentThreadName(aName); + nsCOMPtr setNameRunnable = NS_NewRunnableFunction([aName, &aMonitor, &aDone] () -> void { + NS_SetCurrentThreadName(aName); - MonitorAutoLock lock(aMonitor); - aDone = true; - aMonitor.NotifyAll(); - }); + MonitorAutoLock lock(aMonitor); + aDone = true; + aMonitor.NotifyAll(); + }); nsCOMPtr thread; mozilla::Unused << NS_NewThread(getter_AddRefs(thread), setNameRunnable); @@ -127,18 +126,15 @@ TEST(TestCrashThreadAnnotation, TestGetFlatThreadAnnotation_SetNameTwice) Monitor monitor("TestCrashThreadAnnotation"); bool threadNameSet = false; - nsCOMPtr setNameRunnable = NS_NewRunnableFunction( - "CrashReporter::TestCrashThreadAnnotation_TestGetFlatThreadAnnotation_" - "SetNameTwice_Test::TestBody", - [&]() -> void { - NS_SetCurrentThreadName("Thread1"); - // Set the name again. We should get the latest name. - NS_SetCurrentThreadName("Thread1Again"); + nsCOMPtr setNameRunnable = NS_NewRunnableFunction([&] () -> void { + NS_SetCurrentThreadName("Thread1"); + // Set the name again. We should get the latest name. + NS_SetCurrentThreadName("Thread1Again"); - MonitorAutoLock lock(monitor); - threadNameSet = true; - monitor.NotifyAll(); - }); + MonitorAutoLock lock(monitor); + threadNameSet = true; + monitor.NotifyAll(); + }); nsCOMPtr thread; nsresult rv = NS_NewThread(getter_AddRefs(thread), setNameRunnable); ASSERT_TRUE(NS_SUCCEEDED(rv)); diff --git a/toolkit/xre/ProfileReset.h b/toolkit/xre/ProfileReset.h index 503ef6035086..a164fe07513b 100644 --- a/toolkit/xre/ProfileReset.h +++ b/toolkit/xre/ProfileReset.h @@ -20,8 +20,7 @@ class ProfileResetCleanupResultTask : public mozilla::Runnable { public: ProfileResetCleanupResultTask() - : mozilla::Runnable("ProfileResetCleanupResultTask") - , mWorkerThread(do_GetCurrentThread()) + : mWorkerThread(do_GetCurrentThread()) { MOZ_ASSERT(!NS_IsMainThread()); } @@ -39,12 +38,9 @@ private: class ProfileResetCleanupAsyncTask : public mozilla::Runnable { public: - ProfileResetCleanupAsyncTask(nsIFile* aProfileDir, - nsIFile* aProfileLocalDir, - nsIFile* aTargetDir, - const nsAString& aLeafName) - : mozilla::Runnable("ProfileResetCleanupAsyncTask") - , mProfileDir(aProfileDir) + ProfileResetCleanupAsyncTask(nsIFile* aProfileDir, nsIFile* aProfileLocalDir, + nsIFile* aTargetDir, const nsAString &aLeafName) + : mProfileDir(aProfileDir) , mProfileLocalDir(aProfileLocalDir) , mTargetDir(aTargetDir) , mLeafName(aLeafName) diff --git a/toolkit/xre/nsEmbedFunctions.cpp b/toolkit/xre/nsEmbedFunctions.cpp index 8d40f84db1ed..1fbcc961a728 100644 --- a/toolkit/xre/nsEmbedFunctions.cpp +++ b/toolkit/xre/nsEmbedFunctions.cpp @@ -751,10 +751,10 @@ class MainFunctionRunnable : public Runnable public: NS_DECL_NSIRUNNABLE - MainFunctionRunnable(MainFunction aFunction, void* aData) - : mozilla::Runnable("MainFunctionRunnable") - , mFunction(aFunction) - , mData(aData) + MainFunctionRunnable(MainFunction aFunction, + void* aData) + : mFunction(aFunction), + mData(aData) { NS_ASSERTION(aFunction, "Don't give me a null pointer!"); } diff --git a/toolkit/xre/nsNativeAppSupportUnix.cpp b/toolkit/xre/nsNativeAppSupportUnix.cpp index 0fb613bef33b..a04a79953cb0 100644 --- a/toolkit/xre/nsNativeAppSupportUnix.cpp +++ b/toolkit/xre/nsNativeAppSupportUnix.cpp @@ -254,10 +254,7 @@ nsNativeAppSupportUnix::InteractCB(SmcConn smc_conn, SmPointer client_data) // means we won't process any more. libsm hates us if we do the InteractDone // with a pending ShutdownCancelled, and we would certainly like to handle Die // whilst a dialog is displayed - NS_DispatchToCurrentThread( - NewRunnableMethod("nsNativeAppSupportUnix::DoInteract", - self, - &nsNativeAppSupportUnix::DoInteract)); + NS_DispatchToCurrentThread(NewRunnableMethod(self, &nsNativeAppSupportUnix::DoInteract)); } void diff --git a/toolkit/xre/nsUpdateDriver.cpp b/toolkit/xre/nsUpdateDriver.cpp index e79a49061ef6..79ff15d7e277 100644 --- a/toolkit/xre/nsUpdateDriver.cpp +++ b/toolkit/xre/nsUpdateDriver.cpp @@ -83,8 +83,7 @@ UpdateDriverSetupMacCommandLine(int& argc, char**& argv, bool restart) Monitor monitor("nsUpdateDriver SetupMacCommandLine"); nsresult rv = NS_DispatchToMainThread( - NS_NewRunnableFunction("UpdateDriverSetupMacCommandLine", - [&argc, &argv, restart, &monitor]() -> void + NS_NewRunnableFunction([&argc, &argv, restart, &monitor]() -> void { CommandLineServiceMac::SetupMacCommandLine(argc, argv, restart); MonitorAutoLock(monitor).Notify(); @@ -918,10 +917,7 @@ nsUpdateProcessor::ProcessUpdate(nsIUpdate* aUpdate) mInfo.mAppVersion = appVersion; MOZ_ASSERT(NS_IsMainThread(), "not main thread"); - nsCOMPtr r = - NewRunnableMethod("nsUpdateProcessor::StartStagedUpdate", - this, - &nsUpdateProcessor::StartStagedUpdate); + nsCOMPtr r = NewRunnableMethod(this, &nsUpdateProcessor::StartStagedUpdate); return NS_NewNamedThread("Update Watcher", getter_AddRefs(mProcessWatcher), r); } @@ -945,19 +941,13 @@ nsUpdateProcessor::StartStagedUpdate() if (mUpdaterPID) { // Track the state of the updater process while it is staging an update. - rv = NS_DispatchToCurrentThread( - NewRunnableMethod("nsUpdateProcessor::WaitForProcess", - this, - &nsUpdateProcessor::WaitForProcess)); + rv = NS_DispatchToCurrentThread(NewRunnableMethod(this, &nsUpdateProcessor::WaitForProcess)); NS_ENSURE_SUCCESS_VOID(rv); } else { // Failed to launch the updater process for some reason. // We need to shutdown the current thread as there isn't anything more for // us to do... - rv = NS_DispatchToMainThread( - NewRunnableMethod("nsUpdateProcessor::ShutdownWatcherThread", - this, - &nsUpdateProcessor::ShutdownWatcherThread)); + rv = NS_DispatchToMainThread(NewRunnableMethod(this, &nsUpdateProcessor::ShutdownWatcherThread)); NS_ENSURE_SUCCESS_VOID(rv); } } @@ -975,13 +965,9 @@ nsUpdateProcessor::WaitForProcess() { MOZ_ASSERT(!NS_IsMainThread(), "main thread"); if (ProcessHasTerminated(mUpdaterPID)) { - NS_DispatchToMainThread(NewRunnableMethod( - "nsUpdateProcessor::UpdateDone", this, &nsUpdateProcessor::UpdateDone)); + NS_DispatchToMainThread(NewRunnableMethod(this, &nsUpdateProcessor::UpdateDone)); } else { - NS_DispatchToCurrentThread( - NewRunnableMethod("nsUpdateProcessor::WaitForProcess", - this, - &nsUpdateProcessor::WaitForProcess)); + NS_DispatchToCurrentThread(NewRunnableMethod(this, &nsUpdateProcessor::WaitForProcess)); } } diff --git a/tools/profiler/core/platform.cpp b/tools/profiler/core/platform.cpp index 77d04fe46a0d..97b2fe426e0e 100644 --- a/tools/profiler/core/platform.cpp +++ b/tools/profiler/core/platform.cpp @@ -337,10 +337,9 @@ private: IOInterposer::Register(IOInterposeObserver::OpAll, mInterposeObserver); } else { RefPtr observer = mInterposeObserver; - NS_DispatchToMainThread( - NS_NewRunnableFunction("ActivePS::ActivePS", [=]() { - IOInterposer::Register(IOInterposeObserver::OpAll, observer); - })); + NS_DispatchToMainThread(NS_NewRunnableFunction([=]() { + IOInterposer::Register(IOInterposeObserver::OpAll, observer); + })); } } } @@ -354,10 +353,9 @@ private: IOInterposer::Unregister(IOInterposeObserver::OpAll, mInterposeObserver); } else { RefPtr observer = mInterposeObserver; - NS_DispatchToMainThread( - NS_NewRunnableFunction("ActivePS::~ActivePS", [=]() { - IOInterposer::Unregister(IOInterposeObserver::OpAll, observer); - })); + NS_DispatchToMainThread(NS_NewRunnableFunction([=]() { + IOInterposer::Unregister(IOInterposeObserver::OpAll, observer); + })); } } } @@ -2054,8 +2052,9 @@ NotifyObservers(const char* aTopic, nsISupports* aSubject = nullptr) // these notifications are only observed in the parent process, where the // profiler_* functions are currently only called on the main thread. nsCOMPtr subject = aSubject; - NS_DispatchToMainThread(NS_NewRunnableFunction( - "NotifyObservers", [=] { NotifyObservers(aTopic, subject); })); + NS_DispatchToMainThread(NS_NewRunnableFunction([=] { + NotifyObservers(aTopic, subject); + })); return; } diff --git a/tools/profiler/gecko/ChildProfilerController.cpp b/tools/profiler/gecko/ChildProfilerController.cpp index 230a9cdf95b3..9ecdf2281992 100644 --- a/tools/profiler/gecko/ChildProfilerController.cpp +++ b/tools/profiler/gecko/ChildProfilerController.cpp @@ -32,11 +32,8 @@ ChildProfilerController::Init(Endpoint&& aEndpoint) if (NS_SUCCEEDED(NS_NewNamedThread("ProfilerChild", getter_AddRefs(mThread)))) { // Now that mThread has been set, run SetupProfilerChild on the thread. mThread->Dispatch(NewRunnableMethod&&>( - "ChildProfilerController::SetupProfilerChild", - this, - &ChildProfilerController::SetupProfilerChild, - Move(aEndpoint)), - NS_DISPATCH_NORMAL); + this, &ChildProfilerController::SetupProfilerChild, Move(aEndpoint)), + NS_DISPATCH_NORMAL); } } @@ -59,11 +56,8 @@ ChildProfilerController::ShutdownAndMaybeGrabShutdownProfileFirst(nsCString* aOu { if (mThread) { mThread->Dispatch(NewRunnableMethod( - "ChildProfilerController::ShutdownProfilerChild", - this, - &ChildProfilerController::ShutdownProfilerChild, - aOutShutdownProfile), - NS_DISPATCH_NORMAL); + this, &ChildProfilerController::ShutdownProfilerChild, aOutShutdownProfile), + NS_DISPATCH_NORMAL); // Shut down the thread. This call will spin until all runnables (including // the ShutdownProfilerChild runnable) have been processed. mThread->Shutdown(); diff --git a/tools/profiler/gecko/ThreadResponsiveness.cpp b/tools/profiler/gecko/ThreadResponsiveness.cpp index 8cc7d20ef359..4f411f0754a8 100644 --- a/tools/profiler/gecko/ThreadResponsiveness.cpp +++ b/tools/profiler/gecko/ThreadResponsiveness.cpp @@ -18,8 +18,7 @@ class CheckResponsivenessTask : public mozilla::Runnable, public nsITimerCallback { public: CheckResponsivenessTask() - : mozilla::Runnable("CheckResponsivenessTask") - , mLastTracerTime(TimeStamp::Now()) + : mLastTracerTime(TimeStamp::Now()) , mMutex("CheckResponsivenessTask") , mTimer(nullptr) , mHasEverBeenSuccessfullyDispatched(false) diff --git a/tools/profiler/tests/gtest/GeckoProfiler.cpp b/tools/profiler/tests/gtest/GeckoProfiler.cpp index dc883b99d5c9..e4befc4622b8 100644 --- a/tools/profiler/tests/gtest/GeckoProfiler.cpp +++ b/tools/profiler/tests/gtest/GeckoProfiler.cpp @@ -184,16 +184,10 @@ TEST(GeckoProfiler, DifferentThreads) uint32_t features = ProfilerFeature::JS | ProfilerFeature::Threads; const char* filters[] = { "GeckoMain", "Compositor" }; - thread->Dispatch( - NS_NewRunnableFunction("GeckoProfiler_DifferentThreads_Test::TestBody", - [&]() { - profiler_start(PROFILER_DEFAULT_ENTRIES, - PROFILER_DEFAULT_INTERVAL, - features, - filters, - MOZ_ARRAY_LENGTH(filters)); - }), - NS_DISPATCH_SYNC); + thread->Dispatch(NS_NewRunnableFunction([&]() { + profiler_start(PROFILER_DEFAULT_ENTRIES, PROFILER_DEFAULT_INTERVAL, + features, filters, MOZ_ARRAY_LENGTH(filters)); + }), NS_DISPATCH_SYNC); ASSERT_TRUE(profiler_is_active()); ASSERT_TRUE(!profiler_feature_active(ProfilerFeature::GPU)); @@ -203,10 +197,9 @@ TEST(GeckoProfiler, DifferentThreads) ActiveParamsCheck(PROFILER_DEFAULT_ENTRIES, PROFILER_DEFAULT_INTERVAL, features, filters, MOZ_ARRAY_LENGTH(filters)); - thread->Dispatch( - NS_NewRunnableFunction("GeckoProfiler_DifferentThreads_Test::TestBody", - [&]() { profiler_stop(); }), - NS_DISPATCH_SYNC); + thread->Dispatch(NS_NewRunnableFunction([&]() { + profiler_stop(); + }), NS_DISPATCH_SYNC); InactiveFeaturesAndParamsCheck(); } @@ -220,29 +213,21 @@ TEST(GeckoProfiler, DifferentThreads) profiler_start(PROFILER_DEFAULT_ENTRIES, PROFILER_DEFAULT_INTERVAL, features, filters, MOZ_ARRAY_LENGTH(filters)); - thread->Dispatch( - NS_NewRunnableFunction( - "GeckoProfiler_DifferentThreads_Test::TestBody", - [&]() { - ASSERT_TRUE(profiler_is_active()); - ASSERT_TRUE(!profiler_feature_active(ProfilerFeature::GPU)); - ASSERT_TRUE(!profiler_feature_active(ProfilerFeature::Privacy)); - ASSERT_TRUE(!profiler_feature_active(ProfilerFeature::Restyle)); + thread->Dispatch(NS_NewRunnableFunction([&]() { + ASSERT_TRUE(profiler_is_active()); + ASSERT_TRUE(!profiler_feature_active(ProfilerFeature::GPU)); + ASSERT_TRUE(!profiler_feature_active(ProfilerFeature::Privacy)); + ASSERT_TRUE(!profiler_feature_active(ProfilerFeature::Restyle)); - ActiveParamsCheck(PROFILER_DEFAULT_ENTRIES, - PROFILER_DEFAULT_INTERVAL, - features, - filters, - MOZ_ARRAY_LENGTH(filters)); - }), - NS_DISPATCH_SYNC); + ActiveParamsCheck(PROFILER_DEFAULT_ENTRIES, PROFILER_DEFAULT_INTERVAL, + features, filters, MOZ_ARRAY_LENGTH(filters)); + }), NS_DISPATCH_SYNC); profiler_stop(); - thread->Dispatch( - NS_NewRunnableFunction("GeckoProfiler_DifferentThreads_Test::TestBody", - [&]() { InactiveFeaturesAndParamsCheck(); }), - NS_DISPATCH_SYNC); + thread->Dispatch(NS_NewRunnableFunction([&]() { + InactiveFeaturesAndParamsCheck(); + }), NS_DISPATCH_SYNC); } thread->Shutdown(); @@ -557,15 +542,11 @@ TEST(GeckoProfiler, StreamJSONForThisProcessThreaded) features, filters, MOZ_ARRAY_LENGTH(filters)); // Call profiler_stream_json_for_this_process on a background thread. - thread->Dispatch( - NS_NewRunnableFunction( - "GeckoProfiler_StreamJSONForThisProcessThreaded_Test::TestBody", - [&]() { - w.Start(SpliceableJSONWriter::SingleLineStyle); - ASSERT_TRUE(profiler_stream_json_for_this_process(w)); - w.End(); - }), - NS_DISPATCH_SYNC); + thread->Dispatch(NS_NewRunnableFunction([&]() { + w.Start(SpliceableJSONWriter::SingleLineStyle); + ASSERT_TRUE(profiler_stream_json_for_this_process(w)); + w.End(); + }), NS_DISPATCH_SYNC); UniquePtr profile = w.WriteFunc()->CopyData(); @@ -573,14 +554,10 @@ TEST(GeckoProfiler, StreamJSONForThisProcessThreaded) // Stop the profiler and call profiler_stream_json_for_this_process on a // background thread. - thread->Dispatch( - NS_NewRunnableFunction( - "GeckoProfiler_StreamJSONForThisProcessThreaded_Test::TestBody", - [&]() { - profiler_stop(); - ASSERT_TRUE(!profiler_stream_json_for_this_process(w)); - }), - NS_DISPATCH_SYNC); + thread->Dispatch(NS_NewRunnableFunction([&]() { + profiler_stop(); + ASSERT_TRUE(!profiler_stream_json_for_this_process(w)); + }), NS_DISPATCH_SYNC); thread->Shutdown(); // Call profiler_stream_json_for_this_process on the main thread. diff --git a/uriloader/prefetch/nsOfflineCacheUpdate.cpp b/uriloader/prefetch/nsOfflineCacheUpdate.cpp index ab3a57ea97e0..6081797bedab 100644 --- a/uriloader/prefetch/nsOfflineCacheUpdate.cpp +++ b/uriloader/prefetch/nsOfflineCacheUpdate.cpp @@ -1751,10 +1751,8 @@ nsOfflineCacheUpdate::Begin() mItemsInProgress = 0; if (mState == STATE_CANCELLED) { - nsresult rv = NS_DispatchToMainThread( - NewRunnableMethod("nsOfflineCacheUpdate::AsyncFinishWithError", - this, - &nsOfflineCacheUpdate::AsyncFinishWithError)); + nsresult rv = NS_DispatchToMainThread(NewRunnableMethod(this, + &nsOfflineCacheUpdate::AsyncFinishWithError)); NS_ENSURE_SUCCESS(rv, rv); return NS_OK; diff --git a/view/nsView.cpp b/view/nsView.cpp index d4e0bfb22e4f..c1de2ecca4e1 100644 --- a/view/nsView.cpp +++ b/view/nsView.cpp @@ -134,11 +134,7 @@ class DestroyWidgetRunnable : public Runnable { public: NS_DECL_NSIRUNNABLE - explicit DestroyWidgetRunnable(nsIWidget* aWidget) - : mozilla::Runnable("DestroyWidgetRunnable") - , mWidget(aWidget) - { - } + explicit DestroyWidgetRunnable(nsIWidget* aWidget) : mWidget(aWidget) {} private: nsCOMPtr mWidget; diff --git a/widget/VsyncDispatcher.cpp b/widget/VsyncDispatcher.cpp index cac138b7b08e..f6aeee54d4a0 100644 --- a/widget/VsyncDispatcher.cpp +++ b/widget/VsyncDispatcher.cpp @@ -73,11 +73,9 @@ CompositorVsyncDispatcher::SetCompositorVsyncObserver(VsyncObserver* aVsyncObser } bool observeVsync = aVsyncObserver != nullptr; - nsCOMPtr vsyncControl = - NewRunnableMethod("CompositorVsyncDispatcher::ObserveVsync", - this, - &CompositorVsyncDispatcher::ObserveVsync, - observeVsync); + nsCOMPtr vsyncControl = NewRunnableMethod(this, + &CompositorVsyncDispatcher::ObserveVsync, + observeVsync); NS_DispatchToMainThread(vsyncControl); } @@ -166,10 +164,8 @@ void RefreshTimerVsyncDispatcher::UpdateVsyncStatus() { if (!NS_IsMainThread()) { - NS_DispatchToMainThread( - NewRunnableMethod("RefreshTimerVsyncDispatcher::UpdateVsyncStatus", - this, - &RefreshTimerVsyncDispatcher::UpdateVsyncStatus)); + NS_DispatchToMainThread(NewRunnableMethod(this, + &RefreshTimerVsyncDispatcher::UpdateVsyncStatus)); return; } diff --git a/widget/android/AndroidBridge.cpp b/widget/android/AndroidBridge.cpp index f97b2052c727..adeac2357c47 100644 --- a/widget/android/AndroidBridge.cpp +++ b/widget/android/AndroidBridge.cpp @@ -564,7 +564,7 @@ AndroidBridge::GetStaticStringField(const char *className, const char *fieldName namespace mozilla { class TracerRunnable : public Runnable{ public: - TracerRunnable() : Runnable("TracerRunnable") { + TracerRunnable() { mTracerLock = new Mutex("TracerRunnable"); mTracerCondVar = new CondVar(*mTracerLock, "TracerRunnable"); mMainThread = do_GetMainThread(); diff --git a/widget/android/AndroidJNIWrapper.cpp b/widget/android/AndroidJNIWrapper.cpp index 14af0e02fedc..e549c6fc7ca5 100644 --- a/widget/android/AndroidJNIWrapper.cpp +++ b/widget/android/AndroidJNIWrapper.cpp @@ -20,7 +20,6 @@ extern "C" { class GetGlobalClassRefRunnable : public mozilla::Runnable { public: GetGlobalClassRefRunnable(const char *className, jclass *foundClass) : - mozilla::Runnable("GetGlobalClassRefRunnable"), mClassName(className), mResult(foundClass) {} NS_IMETHOD Run() override { *mResult = __jsjni_GetGlobalClassRef(mClassName); diff --git a/widget/android/AndroidUiThread.cpp b/widget/android/AndroidUiThread.cpp index ac97d289c370..98b876b2bb29 100644 --- a/widget/android/AndroidUiThread.cpp +++ b/widget/android/AndroidUiThread.cpp @@ -105,7 +105,7 @@ NS_IMPL_ISUPPORTS(ThreadObserver, nsIThreadObserver) NS_IMETHODIMP ThreadObserver::OnDispatchedEvent(nsIThreadInternal *thread) { - AndroidBridge::Bridge()->PostTaskToUiThread(NS_NewRunnableFunction("PumpEvents", &PumpEvents), 0); + AndroidBridge::Bridge()->PostTaskToUiThread(NS_NewRunnableFunction(&PumpEvents), 0); return NS_OK; } @@ -123,7 +123,7 @@ ThreadObserver::AfterProcessNextEvent(nsIThreadInternal *thread, bool eventWasPr class CreateOnUiThread : public Runnable { public: - CreateOnUiThread() : Runnable("CreateOnUiThread") + CreateOnUiThread() {} NS_IMETHOD Run() override { @@ -141,7 +141,7 @@ public: class DestroyOnUiThread : public Runnable { public: - DestroyOnUiThread() : Runnable("DestroyOnUiThread"), mDestroyed(false) + DestroyOnUiThread() : mDestroyed(false) {} NS_IMETHOD Run() override { diff --git a/widget/android/EventDispatcher.cpp b/widget/android/EventDispatcher.cpp index d188563f5e26..736889ba926f 100644 --- a/widget/android/EventDispatcher.cpp +++ b/widget/android/EventDispatcher.cpp @@ -650,7 +650,7 @@ public: // Invoke callbacks synchronously if we're already on Gecko thread. return aCall(); } - NS_DispatchToMainThread(NS_NewRunnableFunction("OnNativeCall", Move(aCall))); + NS_DispatchToMainThread(NS_NewRunnableFunction(Move(aCall))); } static void Finalize(const CallbackDelegate::LocalRef& aInstance) diff --git a/widget/android/fennec/ThumbnailHelper.h b/widget/android/fennec/ThumbnailHelper.h index 8908a55e85fd..192e15c5271f 100644 --- a/widget/android/fennec/ThumbnailHelper.h +++ b/widget/android/fennec/ThumbnailHelper.h @@ -206,7 +206,7 @@ public: void Run() override { MessageLoop::current()->PostIdleTask( - NS_NewRunnableFunction("OnNativeCall", Move(Base::lambda))); + NS_NewRunnableFunction(Move(Base::lambda))); } }; diff --git a/widget/android/jni/Natives.h b/widget/android/jni/Natives.h index c889dd0d0583..91e399aa786d 100644 --- a/widget/android/jni/Natives.h +++ b/widget/android/jni/Natives.h @@ -527,7 +527,7 @@ struct Dispatcher // For a static method, do not forward the "this arg" (i.e. the class // local ref) if the implementation does not request it. This saves us // a pair of calls to add/delete global ref. - NS_DispatchToMainThread(NS_NewRunnableFunction("ProxyNativeCall", ProxyNativeCall< + NS_DispatchToMainThread(NS_NewRunnableFunction(ProxyNativeCall< Impl, typename Traits::Owner, IsStatic, HasThisArg, Args...>(HasThisArg || !IsStatic ? thisArg : nullptr, Forward(args)...))); diff --git a/widget/android/nsAppShell.cpp b/widget/android/nsAppShell.cpp index d896de80404b..d83d07a16f1a 100644 --- a/widget/android/nsAppShell.cpp +++ b/widget/android/nsAppShell.cpp @@ -149,7 +149,6 @@ public: { struct NoOpRunnable : Runnable { - NoOpRunnable() : Runnable("NoOpRunnable") {} NS_IMETHOD Run() override { return NS_OK; } }; diff --git a/widget/android/nsScreenManagerAndroid.cpp b/widget/android/nsScreenManagerAndroid.cpp index 1feafb2e9bab..3256a19876fd 100644 --- a/widget/android/nsScreenManagerAndroid.cpp +++ b/widget/android/nsScreenManagerAndroid.cpp @@ -120,7 +120,6 @@ public: int32_t screenId = -1; // return value nsCOMPtr mainThread = do_GetMainThread(); SyncRunnable::DispatchToThread(mainThread, NS_NewRunnableFunction( - "nsScreenManagerAndroid::ScreenManagerHelperSupport::AddDisplay", [&aDisplayType, &aWidth, &aHeight, &aDensity, &screenId] { MOZ_ASSERT(NS_IsMainThread()); nsCOMPtr screenMgr = @@ -142,7 +141,6 @@ public: static void RemoveDisplay(int32_t aScreenId) { nsCOMPtr mainThread = do_GetMainThread(); SyncRunnable::DispatchToThread(mainThread, NS_NewRunnableFunction( - "nsScreenManagerAndroid::ScreenManagerHelperSupport::RemoveDisplay", [&aScreenId] { MOZ_ASSERT(NS_IsMainThread()); nsCOMPtr screenMgr = diff --git a/widget/android/nsWindow.cpp b/widget/android/nsWindow.cpp index 51874948996c..8b9de5267c1e 100644 --- a/widget/android/nsWindow.cpp +++ b/widget/android/nsWindow.cpp @@ -1005,8 +1005,7 @@ public: if (!AndroidBridge::IsJavaUiThread()) { RefPtr uiThread = GetAndroidUiThread(); if (uiThread) { - uiThread->Dispatch(NewRunnableMethod("layers::UiCompositorControllerChild::InvalidateAndRender", - child, + uiThread->Dispatch(NewRunnableMethod(child, &UiCompositorControllerChild::InvalidateAndRender), nsIThread::DISPATCH_NORMAL); } @@ -1036,7 +1035,6 @@ public: RefPtr uiThread = GetAndroidUiThread(); if (uiThread) { uiThread->Dispatch(NewRunnableMethod( - "layers::UiCompositorControllerChild::SetPinned", child, &UiCompositorControllerChild::SetPinned, aPinned, aReason), nsIThread::DISPATCH_NORMAL); } @@ -1059,7 +1057,6 @@ public: RefPtr uiThread = GetAndroidUiThread(); if (uiThread) { uiThread->Dispatch(NewRunnableMethod( - "layers::UiCompositorControllerChild::ToolbarAnimatorMessageFromUI", child, &UiCompositorControllerChild::ToolbarAnimatorMessageFromUI, aMessage), nsIThread::DISPATCH_NORMAL); } diff --git a/widget/cocoa/nsChildView.mm b/widget/cocoa/nsChildView.mm index 1e07d123eef5..c258b673e7bc 100644 --- a/widget/cocoa/nsChildView.mm +++ b/widget/cocoa/nsChildView.mm @@ -3224,7 +3224,7 @@ class WidgetsReleaserRunnable final : public mozilla::Runnable { public: explicit WidgetsReleaserRunnable(nsTArray>&& aWidgetArray) - : mozilla::Runnable("WidgetsReleaserRunnable"), mWidgetArray(aWidgetArray) + : mWidgetArray(aWidgetArray) { } diff --git a/widget/gtk/nsDeviceContextSpecG.cpp b/widget/gtk/nsDeviceContextSpecG.cpp index 3dadc17d0add..294c7dd52d98 100644 --- a/widget/gtk/nsDeviceContextSpecG.cpp +++ b/widget/gtk/nsDeviceContextSpecG.cpp @@ -258,10 +258,7 @@ gboolean nsDeviceContextSpecGTK::PrinterEnumerator(GtkPrinter *aPrinter, // misunderstanding what the capabilities of the printer are due to a // GTK bug (https://bugzilla.gnome.org/show_bug.cgi?id=753041). We // sidestep this by deferring the print to the next tick. - NS_DispatchToCurrentThread( - NewRunnableMethod("nsDeviceContextSpecGTK::StartPrintJob", - spec, - &nsDeviceContextSpecGTK::StartPrintJob)); + NS_DispatchToCurrentThread(NewRunnableMethod(spec, &nsDeviceContextSpecGTK::StartPrintJob)); return TRUE; } } @@ -319,10 +316,7 @@ NS_IMETHODIMP nsDeviceContextSpecGTK::EndDocument() } else { // We don't have a printer. We have to enumerate the printers and find // one with a matching name. - NS_DispatchToCurrentThread( - NewRunnableMethod("nsDeviceContextSpecGTK::EnumeratePrinters", - this, - &nsDeviceContextSpecGTK::EnumeratePrinters)); + NS_DispatchToCurrentThread(NewRunnableMethod(this, &nsDeviceContextSpecGTK::EnumeratePrinters)); } } else { // Handle print-to-file ourselves for the benefit of embedders diff --git a/widget/gtk/nsWindow.cpp b/widget/gtk/nsWindow.cpp index 4f825b6fbfe1..19791d93fa1a 100644 --- a/widget/gtk/nsWindow.cpp +++ b/widget/gtk/nsWindow.cpp @@ -2443,8 +2443,7 @@ nsWindow::OnSizeAllocate(GtkAllocation *aAllocation) // GtkWindow callers of gtk_widget_size_allocate expect the signal // handlers to return sometime in the near future. mNeedsDispatchResized = true; - NS_DispatchToCurrentThread(NewRunnableMethod( - "nsWindow::MaybeDispatchResized", this, &nsWindow::MaybeDispatchResized)); + NS_DispatchToCurrentThread(NewRunnableMethod(this, &nsWindow::MaybeDispatchResized)); } void @@ -4732,9 +4731,7 @@ nsWindow::GrabPointer(guint32 aTime) // popups don't rollup while potentially adjusting the grab for // this popup. nsCOMPtr event = - NewRunnableMethod("nsWindow::CheckForRollupDuringGrab", - this, - &nsWindow::CheckForRollupDuringGrab); + NewRunnableMethod(this, &nsWindow::CheckForRollupDuringGrab); NS_DispatchToCurrentThread(event.forget()); } } diff --git a/widget/nsBaseFilePicker.cpp b/widget/nsBaseFilePicker.cpp index 40d4ca69ea19..1ddfdba055a6 100644 --- a/widget/nsBaseFilePicker.cpp +++ b/widget/nsBaseFilePicker.cpp @@ -67,11 +67,10 @@ LocalFileToDirectoryOrBlob(nsPIDOMWindowInner* aWindow, class AsyncShowFilePicker : public mozilla::Runnable { public: - AsyncShowFilePicker(nsIFilePicker* aFilePicker, - nsIFilePickerShownCallback* aCallback) - : mozilla::Runnable("AsyncShowFilePicker") - , mFilePicker(aFilePicker) - , mCallback(aCallback) + AsyncShowFilePicker(nsIFilePicker *aFilePicker, + nsIFilePickerShownCallback *aCallback) : + mFilePicker(aFilePicker), + mCallback(aCallback) { } diff --git a/widget/nsBaseWidget.cpp b/widget/nsBaseWidget.cpp index 14730cbd735f..44a31742c897 100644 --- a/widget/nsBaseWidget.cpp +++ b/widget/nsBaseWidget.cpp @@ -926,12 +926,11 @@ void nsBaseWidget::ConfigureAPZCTreeManager() bool aPreventDefault) { MOZ_ASSERT(NS_IsMainThread()); - APZThreadUtils::RunOnControllerThread(NewRunnableMethod( - "layers::IAPZCTreeManager::ContentReceivedInputBlock", - treeManager, - &IAPZCTreeManager::ContentReceivedInputBlock, - aInputBlockId, - aPreventDefault)); + APZThreadUtils::RunOnControllerThread(NewRunnableMethod + (treeManager, + &IAPZCTreeManager::ContentReceivedInputBlock, + aInputBlockId, + aPreventDefault)); }); mAPZEventState = new APZEventState(this, mozilla::Move(callback)); @@ -939,14 +938,11 @@ void nsBaseWidget::ConfigureAPZCTreeManager() const nsTArray& aFlags) { MOZ_ASSERT(NS_IsMainThread()); - APZThreadUtils::RunOnControllerThread( - NewRunnableMethod>>( - "layers::IAPZCTreeManager::SetAllowedTouchBehavior", - treeManager, - &IAPZCTreeManager::SetAllowedTouchBehavior, - aInputBlockId, - aFlags)); + APZThreadUtils::RunOnControllerThread(NewRunnableMethod + >>(treeManager, + &IAPZCTreeManager::SetAllowedTouchBehavior, + aInputBlockId, aFlags)); }; mRootContentController = CreateRootContentController(); @@ -973,14 +969,10 @@ void nsBaseWidget::SetConfirmedTargetAPZC(uint64_t aInputBlockId, const nsTArray& aTargets) const { - APZThreadUtils::RunOnControllerThread( - NewRunnableMethod>>( - "layers::IAPZCTreeManager::SetTargetAPZC", - mAPZC, - &IAPZCTreeManager::SetTargetAPZC, - aInputBlockId, - aTargets)); + APZThreadUtils::RunOnControllerThread(NewRunnableMethod + >>(mAPZC, + &IAPZCTreeManager::SetTargetAPZC, + aInputBlockId, aTargets)); } void @@ -1085,8 +1077,7 @@ public: nsEventStatus aAPZResult, uint64_t aInputBlockId, ScrollableLayerGuid aGuid) - : mozilla::Runnable("DispatchWheelEventOnMainThread") - , mWheelInput(aWheelInput) + : mWheelInput(aWheelInput) , mWidget(aWidget) , mAPZResult(aAPZResult) , mInputBlockId(aInputBlockId) @@ -1115,8 +1106,7 @@ public: DispatchWheelInputOnControllerThread(const WidgetWheelEvent& aWheelEvent, IAPZCTreeManager* aAPZC, nsBaseWidget* aWidget) - : mozilla::Runnable("DispatchWheelInputOnControllerThread") - , mMainMessageLoop(MessageLoop::current()) + : mMainMessageLoop(MessageLoop::current()) , mWheelInput(aWheelEvent) , mAPZC(aAPZC) , mWidget(aWidget) @@ -1891,13 +1881,10 @@ nsBaseWidget::StartAsyncScrollbarDrag(const AsyncDragMetrics& aDragMetrics) uint64_t layersId = mCompositorSession->RootLayerTreeId(); ScrollableLayerGuid guid(layersId, aDragMetrics.mPresShellId, aDragMetrics.mViewId); - APZThreadUtils::RunOnControllerThread( - NewRunnableMethod( - "layers::IAPZCTreeManager::StartScrollbarDrag", - mAPZC, - &IAPZCTreeManager::StartScrollbarDrag, - guid, - aDragMetrics)); + APZThreadUtils::RunOnControllerThread(NewRunnableMethod + (mAPZC, + &IAPZCTreeManager::StartScrollbarDrag, + guid, aDragMetrics)); } already_AddRefed @@ -1956,12 +1943,9 @@ nsIWidget::SynthesizeNativeTouchTap(LayoutDeviceIntPoint aPoint, bool aLongTap, if (timeout > TOUCH_INJECT_PUMP_TIMER_MSEC) { timeout = TOUCH_INJECT_PUMP_TIMER_MSEC; } - mLongTapTimer->InitWithNamedFuncCallback( - OnLongTapTimerCallback, - this, - timeout, - nsITimer::TYPE_REPEATING_SLACK, - "nsIWidget::SynthesizeNativeTouchTap"); + mLongTapTimer->InitWithFuncCallback(OnLongTapTimerCallback, this, + timeout, + nsITimer::TYPE_REPEATING_SLACK); } // If we already have a long tap pending, cancel it. We only allow one long diff --git a/widget/nsIdleService.cpp b/widget/nsIdleService.cpp index d2d9daf18447..80392322a029 100644 --- a/widget/nsIdleService.cpp +++ b/widget/nsIdleService.cpp @@ -143,11 +143,10 @@ nsIdleServiceDaily::Observe(nsISupports *, ("nsIdleServiceDaily: Restarting daily timer")); // Start timer for the next check in one day. - (void)mTimer->InitWithNamedFuncCallback(DailyCallback, - this, - SECONDS_PER_DAY * PR_MSEC_PER_SEC, - nsITimer::TYPE_ONE_SHOT, - "nsIdleServiceDaily::Observe"); + (void)mTimer->InitWithFuncCallback(DailyCallback, + this, + SECONDS_PER_DAY * PR_MSEC_PER_SEC, + nsITimer::TYPE_ONE_SHOT); return NS_OK; } @@ -219,11 +218,10 @@ nsIdleServiceDaily::Init() mExpectedTriggerTime = PR_Now() + (milliSecLeftUntilDaily * PR_USEC_PER_MSEC); - (void)mTimer->InitWithNamedFuncCallback(DailyCallback, - this, - milliSecLeftUntilDaily, - nsITimer::TYPE_ONE_SHOT, - "nsIdleServiceDaily::Init"); + (void)mTimer->InitWithFuncCallback(DailyCallback, + this, + milliSecLeftUntilDaily, + nsITimer::TYPE_ONE_SHOT); } // Register for when we should terminate/pause @@ -294,12 +292,10 @@ nsIdleServiceDaily::DailyCallback(nsITimer* aTimer, void* aClosure) delayTime / PR_USEC_PER_MSEC); #endif - (void)self->mTimer->InitWithNamedFuncCallback( - DailyCallback, - self, - delayTime / PR_USEC_PER_MSEC, - nsITimer::TYPE_ONE_SHOT, - "nsIdleServiceDaily::DailyCallback"); + (void)self->mTimer->InitWithFuncCallback(DailyCallback, + self, + delayTime / PR_USEC_PER_MSEC, + nsITimer::TYPE_ONE_SHOT); return; } @@ -832,11 +828,11 @@ nsIdleService::SetTimerExpiryIfBefore(TimeStamp aNextTimeout) #endif // Start the timer - mTimer->InitWithNamedFuncCallback(StaticIdleTimerCallback, - this, - deltaTime.ToMilliseconds(), - nsITimer::TYPE_ONE_SHOT, - "nsIdleService::SetTimerExpiryIfBefore"); + mTimer->InitWithFuncCallback(StaticIdleTimerCallback, + this, + deltaTime.ToMilliseconds(), + nsITimer::TYPE_ONE_SHOT); + } } diff --git a/widget/windows/AudioSession.cpp b/widget/windows/AudioSession.cpp index f077dd48a113..5a5db2f02fc5 100644 --- a/widget/windows/AudioSession.cpp +++ b/widget/windows/AudioSession.cpp @@ -409,8 +409,7 @@ AudioSession::OnSessionDisconnected(AudioSessionDisconnectReason aReason) // Run our code asynchronously. Per MSDN we can't do anything interesting // in this callback. nsCOMPtr runnable = - NewRunnableMethod("widget::AudioSession::OnSessionDisconnectedInternal", - this, &AudioSession::OnSessionDisconnectedInternal); + NewRunnableMethod(this, &AudioSession::OnSessionDisconnectedInternal); NS_DispatchToMainThread(runnable); return S_OK; } diff --git a/widget/windows/LSPAnnotator.cpp b/widget/windows/LSPAnnotator.cpp index 5a36bc26d10c..9132ceb2b02f 100644 --- a/widget/windows/LSPAnnotator.cpp +++ b/widget/windows/LSPAnnotator.cpp @@ -29,7 +29,6 @@ class LSPAnnotationGatherer : public Runnable ~LSPAnnotationGatherer() {} public: - LSPAnnotationGatherer() : Runnable("crashreporter::LSPAnnotationGatherer") {} NS_DECL_NSIRUNNABLE void Annotate(); @@ -138,8 +137,7 @@ LSPAnnotationGatherer::Run() } mString = str; - NS_DispatchToMainThread(NewRunnableMethod("crashreporter::LSPAnnotationGatherer::Annotate", - this, &LSPAnnotationGatherer::Annotate)); + NS_DispatchToMainThread(NewRunnableMethod(this, &LSPAnnotationGatherer::Annotate)); return NS_OK; } diff --git a/widget/windows/WidgetTraceEvent.cpp b/widget/windows/WidgetTraceEvent.cpp index 915a72fd7747..4e4be3af3ca7 100644 --- a/widget/windows/WidgetTraceEvent.cpp +++ b/widget/windows/WidgetTraceEvent.cpp @@ -34,7 +34,7 @@ HANDLE sEventHandle = nullptr; // thread. class HWNDGetter : public mozilla::Runnable { public: - HWNDGetter() : Runnable("HWNDGetter"), hidden_window_hwnd(nullptr) {} + HWNDGetter() : hidden_window_hwnd(nullptr) {} HWND hidden_window_hwnd; diff --git a/widget/windows/nsColorPicker.cpp b/widget/windows/nsColorPicker.cpp index c4a9d6823ece..777169f9783d 100644 --- a/widget/windows/nsColorPicker.cpp +++ b/widget/windows/nsColorPicker.cpp @@ -96,8 +96,7 @@ static AsyncColorChooser* gColorChooser; AsyncColorChooser::AsyncColorChooser(COLORREF aInitialColor, nsIWidget* aParentWidget, nsIColorPickerShownCallback* aCallback) - : mozilla::Runnable("AsyncColorChooser") - , mInitialColor(aInitialColor) + : mInitialColor(aInitialColor) , mColor(aInitialColor) , mParentWidget(aParentWidget) , mCallback(aCallback) diff --git a/widget/windows/nsSound.cpp b/widget/windows/nsSound.cpp index 7086ef831936..7c8b73d65627 100644 --- a/widget/windows/nsSound.cpp +++ b/widget/windows/nsSound.cpp @@ -34,13 +34,13 @@ static mozilla::LazyLogModule gWin32SoundLog("nsSound"); class nsSoundPlayer: public mozilla::Runnable { public: nsSoundPlayer(nsSound *aSound, const wchar_t* aSoundName) : - Runnable("nsSoundPlayer"), mSoundName(aSoundName), mSound(aSound) + mSoundName(aSoundName), mSound(aSound) { Init(); } nsSoundPlayer(nsSound *aSound, const nsAString& aSoundName) : - Runnable("nsSoundPlayer"), mSoundName(aSoundName), mSound(aSound) + mSoundName(aSoundName), mSound(aSound) { Init(); } @@ -62,7 +62,6 @@ protected: class SoundReleaser: public mozilla::Runnable { public: explicit SoundReleaser(nsSound* aSound) : - Runnable("SoundReleaser"), mSound(aSound) { } diff --git a/widget/windows/nsWindow.cpp b/widget/windows/nsWindow.cpp index fb80898b9222..07f5f8dd329e 100644 --- a/widget/windows/nsWindow.cpp +++ b/widget/windows/nsWindow.cpp @@ -5328,8 +5328,7 @@ nsWindow::ProcessMessage(UINT msg, WPARAM& wParam, LPARAM& lParam, if (wParam == TRUE && !gfxEnv::DisableForcePresent() && gfxWindowsPlatform::GetPlatform()->DwmCompositionEnabled()) { - NS_DispatchToMainThread(NewRunnableMethod("nsWindow::ForcePresent", - this, &nsWindow::ForcePresent)); + NS_DispatchToMainThread(NewRunnableMethod(this, &nsWindow::ForcePresent)); } // let the dwm handle nc painting on glass diff --git a/widget/windows/nsWindowGfx.cpp b/widget/windows/nsWindowGfx.cpp index fe9523dcefb5..b0bb5f66c2d1 100644 --- a/widget/windows/nsWindowGfx.cpp +++ b/widget/windows/nsWindowGfx.cpp @@ -394,7 +394,7 @@ bool nsWindow::OnPaint(HDC aDC, uint32_t aNestingLevel) this, LayoutDeviceIntRegion::FromUnknownRegion(region)); if (!gfxEnv::DisableForcePresent() && gfxWindowsPlatform::GetPlatform()->DwmCompositionEnabled()) { nsCOMPtr event = - NewRunnableMethod("nsWindow::ForcePresent", this, &nsWindow::ForcePresent); + NewRunnableMethod(this, &nsWindow::ForcePresent); NS_DispatchToMainThread(event); } } diff --git a/xpcom/base/CycleCollectedJSContext.cpp b/xpcom/base/CycleCollectedJSContext.cpp index 0da8c5703f1f..8347159eeefe 100644 --- a/xpcom/base/CycleCollectedJSContext.cpp +++ b/xpcom/base/CycleCollectedJSContext.cpp @@ -186,12 +186,9 @@ CycleCollectedJSContext::SizeOfExcludingThis(MallocSizeOf aMallocSizeOf) const class PromiseJobRunnable final : public Runnable { public: - PromiseJobRunnable(JS::HandleObject aCallback, - JS::HandleObject aAllocationSite, + PromiseJobRunnable(JS::HandleObject aCallback, JS::HandleObject aAllocationSite, nsIGlobalObject* aIncumbentGlobal) - : Runnable("PromiseJobRunnable") - , mCallback( - new PromiseJobCallback(aCallback, aAllocationSite, aIncumbentGlobal)) + : mCallback(new PromiseJobCallback(aCallback, aAllocationSite, aIncumbentGlobal)) { } diff --git a/xpcom/base/nsConsoleService.cpp b/xpcom/base/nsConsoleService.cpp index 125aafcad6c5..2283f2c9facc 100644 --- a/xpcom/base/nsConsoleService.cpp +++ b/xpcom/base/nsConsoleService.cpp @@ -127,9 +127,7 @@ nsConsoleService::~nsConsoleService() class AddConsolePrefWatchers : public Runnable { public: - explicit AddConsolePrefWatchers(nsConsoleService* aConsole) - : mozilla::Runnable("AddConsolePrefWatchers") - , mConsole(aConsole) + explicit AddConsolePrefWatchers(nsConsoleService* aConsole) : mConsole(aConsole) { } @@ -170,8 +168,7 @@ class LogMessageRunnable : public Runnable { public: LogMessageRunnable(nsIConsoleMessage* aMessage, nsConsoleService* aService) - : mozilla::Runnable("LogMessageRunnable") - , mMessage(aMessage) + : mMessage(aMessage) , mService(aService) { } diff --git a/xpcom/base/nsCycleCollector.cpp b/xpcom/base/nsCycleCollector.cpp index 5fc3778651d5..128d99a2c8e5 100644 --- a/xpcom/base/nsCycleCollector.cpp +++ b/xpcom/base/nsCycleCollector.cpp @@ -1488,9 +1488,7 @@ struct CCGraphDescriber : public LinkedListElement class LogStringMessageAsync : public CancelableRunnable { public: - explicit LogStringMessageAsync(const nsAString& aMsg) - : mozilla::CancelableRunnable("LogStringMessageAsync") - , mMsg(aMsg) + explicit LogStringMessageAsync(const nsAString& aMsg) : mMsg(aMsg) {} NS_IMETHOD Run() override diff --git a/xpcom/base/nsDumpUtils.cpp b/xpcom/base/nsDumpUtils.cpp index 8e822457ccea..c68862d08a47 100644 --- a/xpcom/base/nsDumpUtils.cpp +++ b/xpcom/base/nsDumpUtils.cpp @@ -74,8 +74,7 @@ FdWatcher::Init() nsCOMPtr os = services::GetObserverService(); os->AddObserver(this, "xpcom-shutdown", /* ownsWeak = */ false); - XRE_GetIOMessageLoop()->PostTask(NewRunnableMethod( - "FdWatcher::StartWatching", this, &FdWatcher::StartWatching)); + XRE_GetIOMessageLoop()->PostTask(NewRunnableMethod(this, &FdWatcher::StartWatching)); } // Implementations may call this function multiple times if they ensure that diff --git a/xpcom/base/nsDumpUtils.h b/xpcom/base/nsDumpUtils.h index 86c74dbdcd6b..12a99da18dc9 100644 --- a/xpcom/base/nsDumpUtils.h +++ b/xpcom/base/nsDumpUtils.h @@ -89,8 +89,7 @@ public: MOZ_ASSERT(NS_IsMainThread()); MOZ_ASSERT(!strcmp(aTopic, "xpcom-shutdown")); - XRE_GetIOMessageLoop()->PostTask(mozilla::NewRunnableMethod( - "FdWatcher::StopWatching", this, &FdWatcher::StopWatching)); + XRE_GetIOMessageLoop()->PostTask(mozilla::NewRunnableMethod(this, &FdWatcher::StopWatching)); return NS_OK; } diff --git a/xpcom/base/nsMemoryInfoDumper.cpp b/xpcom/base/nsMemoryInfoDumper.cpp index 867b9eb2ed03..06453b126ffd 100644 --- a/xpcom/base/nsMemoryInfoDumper.cpp +++ b/xpcom/base/nsMemoryInfoDumper.cpp @@ -61,10 +61,8 @@ class DumpMemoryInfoToTempDirRunnable : public Runnable { public: DumpMemoryInfoToTempDirRunnable(const nsAString& aIdentifier, - bool aAnonymize, - bool aMinimizeMemoryUsage) - : mozilla::Runnable("DumpMemoryInfoToTempDirRunnable") - , mIdentifier(aIdentifier) + bool aAnonymize, bool aMinimizeMemoryUsage) + : mIdentifier(aIdentifier) , mAnonymize(aAnonymize) , mMinimizeMemoryUsage(aMinimizeMemoryUsage) { @@ -95,8 +93,7 @@ public: GCAndCCLogDumpRunnable(const nsAString& aIdentifier, bool aDumpAllTraces, bool aDumpChildProcesses) - : mozilla::Runnable("GCAndCCLogDumpRunnable") - , mIdentifier(aIdentifier) + : mIdentifier(aIdentifier) , mDumpAllTraces(aDumpAllTraces) , mDumpChildProcesses(aDumpChildProcesses) { diff --git a/xpcom/base/nsMemoryReporterManager.cpp b/xpcom/base/nsMemoryReporterManager.cpp index f34ba97b5628..323a753f75c6 100644 --- a/xpcom/base/nsMemoryReporterManager.cpp +++ b/xpcom/base/nsMemoryReporterManager.cpp @@ -1679,9 +1679,7 @@ nsMemoryReporterManager::GetReportsExtended( if (aMinimize) { nsCOMPtr callback = - NewRunnableMethod("nsMemoryReporterManager::StartGettingReports", - this, - &nsMemoryReporterManager::StartGettingReports); + NewRunnableMethod(this, &nsMemoryReporterManager::StartGettingReports); rv = MinimizeMemoryUsage(callback); } else { rv = StartGettingReports(); @@ -1739,12 +1737,9 @@ nsMemoryReporterManager::StartGettingReports() FinishReporting(); return NS_ERROR_FAILURE; } - rv = timer->InitWithNamedFuncCallback( - TimeoutCallback, - this, - kTimeoutLengthMS, - nsITimer::TYPE_ONE_SHOT, - "nsMemoryReporterManager::StartGettingReports"); + rv = timer->InitWithFuncCallback(TimeoutCallback, + this, kTimeoutLengthMS, + nsITimer::TYPE_ONE_SHOT); if (NS_WARN_IF(NS_FAILED(rv))) { FinishReporting(); return rv; @@ -1773,8 +1768,7 @@ nsMemoryReporterManager::DispatchReporter( nsCOMPtr handleReportData = aHandleReportData; nsCOMPtr event = NS_NewRunnableFunction( - "nsMemoryReporterManager::DispatchReporter", - [self, reporter, aIsAsync, handleReport, handleReportData, aAnonymize]() { + [self, reporter, aIsAsync, handleReport, handleReportData, aAnonymize] () { reporter->CollectReports(handleReport, handleReportData, aAnonymize); if (!aIsAsync) { self->EndReport(); @@ -2516,8 +2510,7 @@ class MinimizeMemoryUsageRunnable : public Runnable { public: explicit MinimizeMemoryUsageRunnable(nsIRunnable* aCallback) - : mozilla::Runnable("MinimizeMemoryUsageRunnable") - , mCallback(aCallback) + : mCallback(aCallback) , mRemainingIters(sNumIters) { } diff --git a/xpcom/base/nsMessageLoop.cpp b/xpcom/base/nsMessageLoop.cpp index 52da4412a7f0..fabf6b9f5220 100644 --- a/xpcom/base/nsMessageLoop.cpp +++ b/xpcom/base/nsMessageLoop.cpp @@ -72,8 +72,7 @@ private: MessageLoopIdleTask::MessageLoopIdleTask(nsIRunnable* aTask, uint32_t aEnsureRunsAfterMS) - : mozilla::Runnable("MessageLoopIdleTask") - , mTask(aTask) + : mTask(aTask) { // Init() really shouldn't fail, but if it does, we schedule our runnable // immediately, because it's more important to guarantee that we run the task diff --git a/xpcom/base/nsStatusReporterManager.cpp b/xpcom/base/nsStatusReporterManager.cpp index ccd0a21e92d9..f20d0d59e490 100644 --- a/xpcom/base/nsStatusReporterManager.cpp +++ b/xpcom/base/nsStatusReporterManager.cpp @@ -32,7 +32,6 @@ class DumpStatusInfoToTempDirRunnable : public mozilla::Runnable { public: DumpStatusInfoToTempDirRunnable() - : mozilla::Runnable("DumpStatusInfoToTempDirRunnable") { } diff --git a/xpcom/ds/nsHashPropertyBag.cpp b/xpcom/ds/nsHashPropertyBag.cpp index 0585e850a6c4..4dbcc6a2a687 100644 --- a/xpcom/ds/nsHashPropertyBag.cpp +++ b/xpcom/ds/nsHashPropertyBag.cpp @@ -276,8 +276,7 @@ class ProxyHashtableDestructor final : public mozilla::Runnable public: using HashtableType = nsInterfaceHashtable; explicit ProxyHashtableDestructor(HashtableType&& aTable) - : mozilla::Runnable("ProxyHashtableDestructor") - , mPropertyHash(mozilla::Move(aTable)) + : mPropertyHash(mozilla::Move(aTable)) {} NS_IMETHODIMP diff --git a/xpcom/ds/nsObserverService.cpp b/xpcom/ds/nsObserverService.cpp index 56765a274f36..f375766c0e9d 100644 --- a/xpcom/ds/nsObserverService.cpp +++ b/xpcom/ds/nsObserverService.cpp @@ -182,10 +182,7 @@ nsObserverService::Create(nsISupports* aOuter, const nsIID& aIID, // The memory reporter can not be immediately registered here because // the nsMemoryReporterManager may attempt to get the nsObserverService // during initialization, causing a recursive GetService. - NS_DispatchToCurrentThread( - NewRunnableMethod("nsObserverService::RegisterReporter", - os, - &nsObserverService::RegisterReporter)); + NS_DispatchToCurrentThread(NewRunnableMethod(os, &nsObserverService::RegisterReporter)); return os->QueryInterface(aIID, aInstancePtr); } diff --git a/xpcom/io/nsInputStreamTee.cpp b/xpcom/io/nsInputStreamTee.cpp index 968282b5e612..f6f9b7e80fe0 100644 --- a/xpcom/io/nsInputStreamTee.cpp +++ b/xpcom/io/nsInputStreamTee.cpp @@ -61,11 +61,8 @@ class nsInputStreamTeeWriteEvent : public Runnable { public: // aTee's lock is held across construction of this object - nsInputStreamTeeWriteEvent(const char* aBuf, - uint32_t aCount, - nsIOutputStream* aSink, - nsInputStreamTee* aTee) - : mozilla::Runnable("nsInputStreamTeeWriteEvent") + nsInputStreamTeeWriteEvent(const char* aBuf, uint32_t aCount, + nsIOutputStream* aSink, nsInputStreamTee* aTee) { // copy the buffer - will be free'd by dtor mBuf = (char*)malloc(aCount); diff --git a/xpcom/io/nsLocalFileWin.cpp b/xpcom/io/nsLocalFileWin.cpp index b5b7dbe184c5..16fd575cb067 100644 --- a/xpcom/io/nsLocalFileWin.cpp +++ b/xpcom/io/nsLocalFileWin.cpp @@ -114,7 +114,6 @@ class AsyncLocalFileWinDone : public Runnable { public: AsyncLocalFileWinDone() : - Runnable("AsyncLocalFileWinDone"), mWorkerThread(do_GetCurrentThread()) { // Objects of this type must only be created on worker threads @@ -144,8 +143,7 @@ class AsyncRevealOperation : public Runnable { public: explicit AsyncRevealOperation(const nsAString& aResolvedPath) - : Runnable("AsyncRevealOperation"), - mResolvedPath(aResolvedPath) + : mResolvedPath(aResolvedPath) { } diff --git a/xpcom/tests/gtest/TestMozPromise.cpp b/xpcom/tests/gtest/TestMozPromise.cpp index 6038fd6dc9b6..0d82fc9fdad6 100644 --- a/xpcom/tests/gtest/TestMozPromise.cpp +++ b/xpcom/tests/gtest/TestMozPromise.cpp @@ -43,11 +43,10 @@ public: TestPromise::Private* aPromise, const TestPromise::ResolveOrRejectValue& aValue, int aIterations) - : mozilla::Runnable("DelayedResolveOrReject") - , mTaskQueue(aTaskQueue) - , mPromise(aPromise) - , mValue(aValue) - , mIterations(aIterations) + : mTaskQueue(aTaskQueue) + , mPromise(aPromise) + , mValue(aValue) + , mIterations(aIterations) {} NS_IMETHOD Run() override @@ -86,7 +85,7 @@ template void RunOnTaskQueue(TaskQueue* aQueue, FunctionType aFun) { - nsCOMPtr r = NS_NewRunnableFunction("RunOnTaskQueue", aFun); + nsCOMPtr r = NS_NewRunnableFunction(aFun); aQueue->Dispatch(r.forget()); } diff --git a/xpcom/tests/gtest/TestRWLock.cpp b/xpcom/tests/gtest/TestRWLock.cpp index 4dcd83b7ab61..65de524f279a 100644 --- a/xpcom/tests/gtest/TestRWLock.cpp +++ b/xpcom/tests/gtest/TestRWLock.cpp @@ -22,8 +22,7 @@ static const size_t sWriteLockIteration = 10; class RWLockRunnable : public mozilla::Runnable { public: RWLockRunnable(RWLock* aRWLock, mozilla::Atomic* aSharedData) - : mozilla::Runnable("RWLockRunnable") - , mRWLock(aRWLock) + : mRWLock(aRWLock) , mSharedData(aSharedData) {} diff --git a/xpcom/tests/gtest/TestRacingServiceManager.cpp b/xpcom/tests/gtest/TestRacingServiceManager.cpp index ae5d9348dbcd..1309083ed853 100644 --- a/xpcom/tests/gtest/TestRacingServiceManager.cpp +++ b/xpcom/tests/gtest/TestRacingServiceManager.cpp @@ -183,11 +183,7 @@ class TestRunnable : public Runnable public: NS_DECL_NSIRUNNABLE - TestRunnable() - : mozilla::Runnable("TestRacingServiceManager::TestRunnable") - , mFirstRunnableDone(false) - { - } + TestRunnable() : mFirstRunnableDone(false) { } bool mFirstRunnableDone; }; diff --git a/xpcom/tests/gtest/TestStateWatching.cpp b/xpcom/tests/gtest/TestStateWatching.cpp index e083dc5e5772..16d06a5fff5a 100644 --- a/xpcom/tests/gtest/TestStateWatching.cpp +++ b/xpcom/tests/gtest/TestStateWatching.cpp @@ -32,12 +32,11 @@ TEST(WatchManager, Shutdown) WatchManager manager(p, queue); Watchable notifier(false, "notifier"); - queue->Dispatch(NS_NewRunnableFunction( - "TestStateWatching::WatchManager_Shutdown_Test::TestBody", [&]() { - manager.Watch(notifier, &Foo::Notify); - notifier = true; // Trigger the call to Foo::Notify(). - manager.Shutdown(); // Shutdown() should cancel the call. - })); + queue->Dispatch(NS_NewRunnableFunction([&] () { + manager.Watch(notifier, &Foo::Notify); + notifier = true; // Trigger the call to Foo::Notify(). + manager.Shutdown(); // Shutdown() should cancel the call. + })); queue->BeginShutdown(); queue->AwaitShutdownAndIdle(); diff --git a/xpcom/tests/gtest/TestTaskQueue.cpp b/xpcom/tests/gtest/TestTaskQueue.cpp index 0f320f529db0..1e764fcc1ea2 100644 --- a/xpcom/tests/gtest/TestTaskQueue.cpp +++ b/xpcom/tests/gtest/TestTaskQueue.cpp @@ -29,39 +29,26 @@ TEST(TaskQueue, EventOrder) // We expect task1 happens before task3. for (int i = 0; i < 10000; ++i) { - tq1->Dispatch( - NS_NewRunnableFunction( - "TestTaskQueue::TaskQueue_EventOrder_Test::TestBody", - [&]() { - tq2->Dispatch(NS_NewRunnableFunction( - "TestTaskQueue::TaskQueue_EventOrder_Test::TestBody", - []() { // task0 - })); - tq3->Dispatch(NS_NewRunnableFunction( - "TestTaskQueue::TaskQueue_EventOrder_Test::TestBody", - [&]() { // task1 - EXPECT_EQ(1, ++counter); - errored = counter != 1; - MonitorAutoLock mon(monitor); - ++sync; - mon.Notify(); - })); - tq2->Dispatch(NS_NewRunnableFunction( - "TestTaskQueue::TaskQueue_EventOrder_Test::TestBody", - [&]() { // task2 - tq3->Dispatch(NS_NewRunnableFunction( - "TestTaskQueue::TaskQueue_EventOrder_Test::TestBody", - [&]() { // task3 - EXPECT_EQ(0, --counter); - errored = counter != 0; - MonitorAutoLock mon(monitor); - ++sync; - mon.Notify(); - })); - })); - }), - AbstractThread::AssertDispatchSuccess, - AbstractThread::TailDispatch); + tq1->Dispatch(NS_NewRunnableFunction([&] () { + tq2->Dispatch(NS_NewRunnableFunction([] () { // task0 + })); + tq3->Dispatch(NS_NewRunnableFunction([&] () { // task1 + EXPECT_EQ(1, ++counter); + errored = counter != 1; + MonitorAutoLock mon(monitor); + ++sync; + mon.Notify(); + })); + tq2->Dispatch(NS_NewRunnableFunction([&] () { // task2 + tq3->Dispatch(NS_NewRunnableFunction([&] () { // task3 + EXPECT_EQ(0, --counter); + errored = counter != 0; + MonitorAutoLock mon(monitor); + ++sync; + mon.Notify(); + })); + })); + }), AbstractThread::AssertDispatchSuccess, AbstractThread::TailDispatch); // Ensure task1 and task3 are done before next loop. MonitorAutoLock mon(monitor); diff --git a/xpcom/tests/gtest/TestThreadPool.cpp b/xpcom/tests/gtest/TestThreadPool.cpp index 76e56236ea33..56abf7608d53 100644 --- a/xpcom/tests/gtest/TestThreadPool.cpp +++ b/xpcom/tests/gtest/TestThreadPool.cpp @@ -69,18 +69,14 @@ TEST(ThreadPool, Parallelism) EXPECT_TRUE(pool); // Dispatch and sleep to ensure we have an idle thread - nsCOMPtr r0 = new Runnable("TestRunnable"); + nsCOMPtr r0 = new Runnable(); pool->Dispatch(r0, NS_DISPATCH_SYNC); PR_Sleep(PR_SecondsToInterval(2)); class Runnable1 : public Runnable { public: Runnable1(Monitor& aMonitor, bool& aDone) - : mozilla::Runnable("Runnable1") - , mMonitor(aMonitor) - , mDone(aDone) - { - } + : mMonitor(aMonitor), mDone(aDone) {} NS_IMETHOD Run() override { MonitorAutoLock mon(mMonitor); @@ -100,11 +96,7 @@ TEST(ThreadPool, Parallelism) class Runnable2 : public Runnable { public: Runnable2(Monitor& aMonitor, bool& aDone) - : mozilla::Runnable("Runnable2") - , mMonitor(aMonitor) - , mDone(aDone) - { - } + : mMonitor(aMonitor), mDone(aDone) {} NS_IMETHOD Run() override { MonitorAutoLock mon(mMonitor); diff --git a/xpcom/tests/gtest/TestThreadPoolListener.cpp b/xpcom/tests/gtest/TestThreadPoolListener.cpp index 01ecff49a73c..f95106fa855f 100644 --- a/xpcom/tests/gtest/TestThreadPoolListener.cpp +++ b/xpcom/tests/gtest/TestThreadPoolListener.cpp @@ -159,7 +159,7 @@ TEST(ThreadPoolListener, Test) ReentrantMonitorAutoEnter mon(*gReentrantMonitor); for (uint32_t i = 0; i < NUMBER_OF_THREADS; i++) { - nsCOMPtr runnable = new Runnable("TestRunnable"); + nsCOMPtr runnable = new Runnable(); ASSERT_TRUE(runnable); rv = pool->Dispatch(runnable, NS_DISPATCH_NORMAL); diff --git a/xpcom/tests/gtest/TestThreadUtils.cpp b/xpcom/tests/gtest/TestThreadUtils.cpp index ce8bcaecdff0..a617384d47e4 100644 --- a/xpcom/tests/gtest/TestThreadUtils.cpp +++ b/xpcom/tests/gtest/TestThreadUtils.cpp @@ -44,8 +44,6 @@ private: NS_IMPL_ISUPPORTS0(nsFoo) class TestSuicide : public mozilla::Runnable { -public: - TestSuicide() : mozilla::Runnable("TestSuicide") {} NS_IMETHOD Run() override { // Runs first time on thread "Suicide", then dies on MainThread if (!NS_IsMainThread()) { @@ -186,9 +184,8 @@ static void TestNewRunnableFunction(bool aNamed) nsCOMPtr trackedRunnable; { TestCopyWithNoMove tracker(©Counter); - trackedRunnable = - aNamed ? NS_NewRunnableFunction("unused", tracker) - : NS_NewRunnableFunction("TestNewRunnableFunction", tracker); + trackedRunnable = aNamed ? NS_NewRunnableFunction("unused", tracker) : + NS_NewRunnableFunction(tracker); // Original 'tracker' is destroyed here. } // Verify that the runnable contains a non-destroyed function object. @@ -204,11 +201,9 @@ static void TestNewRunnableFunction(bool aNamed) { // Passing as rvalue, but using copy. // (TestCopyWithDeletedMove wouldn't allow this.) - trackedRunnable = - aNamed - ? NS_NewRunnableFunction("unused", TestCopyWithNoMove(©Counter)) - : NS_NewRunnableFunction("TestNewRunnableFunction", - TestCopyWithNoMove(©Counter)); + trackedRunnable = aNamed ? + NS_NewRunnableFunction("unused", TestCopyWithNoMove(©Counter)) : + NS_NewRunnableFunction(TestCopyWithNoMove(©Counter)); } trackedRunnable->Run(); } @@ -221,9 +216,8 @@ static void TestNewRunnableFunction(bool aNamed) nsCOMPtr trackedRunnable; { TestCopyWithDeletedMove tracker(©Counter); - trackedRunnable = - aNamed ? NS_NewRunnableFunction("unused", tracker) - : NS_NewRunnableFunction("TestNewRunnableFunction", tracker); + trackedRunnable = aNamed ? NS_NewRunnableFunction("unused", tracker) : + NS_NewRunnableFunction(tracker); } trackedRunnable->Run(); } @@ -238,10 +232,8 @@ static void TestNewRunnableFunction(bool aNamed) nsCOMPtr trackedRunnable; { TestMove tracker(&moveCounter); - trackedRunnable = - aNamed - ? NS_NewRunnableFunction("unused", Move(tracker)) - : NS_NewRunnableFunction("TestNewRunnableFunction", Move(tracker)); + trackedRunnable = aNamed ? NS_NewRunnableFunction("unused", Move(tracker)) : + NS_NewRunnableFunction(Move(tracker)); } trackedRunnable->Run(); } @@ -253,10 +245,9 @@ static void TestNewRunnableFunction(bool aNamed) { nsCOMPtr trackedRunnable; { - trackedRunnable = - aNamed ? NS_NewRunnableFunction("unused", TestMove(&moveCounter)) - : NS_NewRunnableFunction("TestNewRunnableFunction", - TestMove(&moveCounter)); + trackedRunnable = aNamed ? + NS_NewRunnableFunction("unused", TestMove(&moveCounter)) : + NS_NewRunnableFunction(TestMove(&moveCounter)); } trackedRunnable->Run(); } @@ -272,10 +263,8 @@ static void TestNewRunnableFunction(bool aNamed) nsCOMPtr trackedRunnable; { TestCopyMove tracker(©Counter, &moveCounter); - trackedRunnable = - aNamed - ? NS_NewRunnableFunction("unused", Move(tracker)) - : NS_NewRunnableFunction("TestNewRunnableFunction", Move(tracker)); + trackedRunnable = aNamed ? NS_NewRunnableFunction("unused", Move(tracker)) : + NS_NewRunnableFunction(Move(tracker)); } trackedRunnable->Run(); } @@ -290,12 +279,9 @@ static void TestNewRunnableFunction(bool aNamed) { nsCOMPtr trackedRunnable; { - trackedRunnable = - aNamed - ? NS_NewRunnableFunction("unused", - TestCopyMove(©Counter, &moveCounter)) - : NS_NewRunnableFunction("TestNewRunnableFunction", - TestCopyMove(©Counter, &moveCounter)); + trackedRunnable = aNamed ? + NS_NewRunnableFunction("unused", TestCopyMove(©Counter, &moveCounter)) : + NS_NewRunnableFunction(TestCopyMove(©Counter, &moveCounter)); } trackedRunnable->Run(); } @@ -313,11 +299,9 @@ static void TestNewRunnableFunction(bool aNamed) { TestCopyWithNoMove tracker(©Counter); // Expect 2 copies (here -> local lambda -> runnable lambda). - trackedRunnable = - aNamed ? NS_NewRunnableFunction("unused", - [tracker]() mutable { tracker(); }) - : NS_NewRunnableFunction("TestNewRunnableFunction", - [tracker]() mutable { tracker(); }); + trackedRunnable = aNamed ? + NS_NewRunnableFunction("unused", [tracker]() mutable { tracker(); }) : + NS_NewRunnableFunction([tracker]() mutable { tracker(); }); } trackedRunnable->Run(); } @@ -331,11 +315,9 @@ static void TestNewRunnableFunction(bool aNamed) { TestCopyWithDeletedMove tracker(©Counter); // Expect 2 copies (here -> local lambda -> runnable lambda). - trackedRunnable = - aNamed ? NS_NewRunnableFunction("unused", - [tracker]() mutable { tracker(); }) - : NS_NewRunnableFunction("TestNewRunnableFunction", - [tracker]() mutable { tracker(); }); + trackedRunnable = aNamed ? + NS_NewRunnableFunction("unused", [tracker]() mutable { tracker(); }) : + NS_NewRunnableFunction([tracker]() mutable { tracker(); }); } trackedRunnable->Run(); } @@ -354,11 +336,9 @@ static void TestNewRunnableFunction(bool aNamed) nsCOMPtr trackedRunnable; { TestCopyMove tracker(©Counter, &moveCounter); - trackedRunnable = - aNamed ? NS_NewRunnableFunction("unused", - [tracker]() mutable { tracker(); }) - : NS_NewRunnableFunction("TestNewRunnableFunction", - [tracker]() mutable { tracker(); }); + trackedRunnable = aNamed ? + NS_NewRunnableFunction("unused", [tracker]() mutable { tracker(); }) : + NS_NewRunnableFunction([tracker]() mutable { tracker(); }); // Expect 1 copy (here -> local lambda) and 1 move (local -> runnable lambda). } trackedRunnable->Run(); @@ -383,8 +363,7 @@ TEST(ThreadUtils, NewNamedRunnableFunction) // Test naming. { const char* expectedName = "NamedRunnable"; - RefPtr NamedRunnable = - NS_NewRunnableFunction(expectedName, [] {}); + RefPtr NamedRunnable = NS_NewRunnableFunction(expectedName, []{}); ExpectRunnableName(NamedRunnable, expectedName); } } @@ -405,34 +384,27 @@ static void TestNewRunnableMethod(bool aNamed) // Read only string. Dereferencing in runnable method to check this works. char* message = (char*)"Test message"; - NS_DispatchToMainThread( - aNamed ? NewRunnableMethod("unused", bar, &nsBar::DoBar1) - : NewRunnableMethod("nsBar::DoBar1", bar, &nsBar::DoBar1)); - NS_DispatchToMainThread( - aNamed ? NewRunnableMethod("unused", constBar, &nsBar::DoBar1Const) - : NewRunnableMethod( - "nsBar::DoBar1Const", constBar, &nsBar::DoBar1Const)); - NS_DispatchToMainThread( - aNamed ? NewRunnableMethod("unused", bar, &nsBar::DoBar2) - : NewRunnableMethod("nsBar::DoBar2", bar, &nsBar::DoBar2)); - NS_DispatchToMainThread( - aNamed - ? NewRunnableMethod>("unused", bar, &nsBar::DoBar3, foo) - : NewRunnableMethod>( - "nsBar::DoBar3", bar, &nsBar::DoBar3, foo)); - NS_DispatchToMainThread( - aNamed - ? NewRunnableMethod>("unused", bar, &nsBar::DoBar4, foo) - : NewRunnableMethod>( - "nsBar::DoBar4", bar, &nsBar::DoBar4, foo)); - NS_DispatchToMainThread( - aNamed ? NewRunnableMethod("unused", bar, &nsBar::DoBar5, rawFoo) - : NewRunnableMethod( - "nsBar::DoBar5", bar, &nsBar::DoBar5, rawFoo)); - NS_DispatchToMainThread( - aNamed ? NewRunnableMethod("unused", bar, &nsBar::DoBar6, message) - : NewRunnableMethod( - "nsBar::DoBar6", bar, &nsBar::DoBar6, message)); + NS_DispatchToMainThread(aNamed ? + NewRunnableMethod("unused", bar, &nsBar::DoBar1) : + NewRunnableMethod(bar, &nsBar::DoBar1)); + NS_DispatchToMainThread(aNamed ? + NewRunnableMethod("unused", constBar, &nsBar::DoBar1Const) : + NewRunnableMethod(constBar, &nsBar::DoBar1Const)); + NS_DispatchToMainThread(aNamed ? + NewRunnableMethod("unused", bar, &nsBar::DoBar2) : + NewRunnableMethod(bar, &nsBar::DoBar2)); + NS_DispatchToMainThread(aNamed ? + NewRunnableMethod>("unused", bar, &nsBar::DoBar3, foo) : + NewRunnableMethod>(bar, &nsBar::DoBar3, foo)); + NS_DispatchToMainThread(aNamed ? + NewRunnableMethod>("unused", bar, &nsBar::DoBar4, foo) : + NewRunnableMethod>(bar, &nsBar::DoBar4, foo)); + NS_DispatchToMainThread(aNamed ? + NewRunnableMethod("unused", bar, &nsBar::DoBar5, rawFoo) : + NewRunnableMethod(bar, &nsBar::DoBar5, rawFoo)); + NS_DispatchToMainThread(aNamed ? + NewRunnableMethod("unused", bar, &nsBar::DoBar6, message) : + NewRunnableMethod(bar, &nsBar::DoBar6, message)); #ifdef HAVE_STDCALL NS_DispatchToMainThread(aNamed ? NewRunnableMethod("unused", bar, &nsBar::DoBar1std) : @@ -582,7 +554,7 @@ public: ASSERT_TRUE(mSetIdleDeadlineCalled); mRunnableExecuted[2] = true; mSetIdleDeadlineCalled = false; - NS_DispatchToCurrentThread(NewRunnableMethod("IdleObject::Method3", this, &IdleObject::Method3)); + NS_DispatchToCurrentThread(NewRunnableMethod(this, &IdleObject::Method3)); } void Method3() @@ -590,13 +562,11 @@ public: CheckExecutedMethods("Method3", 3); mTimer = do_CreateInstance(NS_TIMER_CONTRACTID); - mTimer->InitWithNamedFuncCallback( - Method4, this, 10, nsITimer::TYPE_ONE_SHOT, "IdleObject::Method3"); + mTimer->InitWithFuncCallback(Method4, this, 10, nsITimer::TYPE_ONE_SHOT); NS_IdleDispatchToCurrentThread( - NewIdleRunnableMethodWithTimer("IdleObject::Method5", this, &IdleObject::Method5), 50); + NewIdleRunnableMethodWithTimer(this, &IdleObject::Method5), 50); NS_IdleDispatchToCurrentThread( - NewRunnableMethod("IdleObject::Method6", this, &IdleObject::Method6), - 100); + NewRunnableMethod(this, &IdleObject::Method6), 100); PR_Sleep(PR_MillisecondsToInterval(200)); mRunnableExecuted[3] = true; @@ -650,21 +620,18 @@ TEST(ThreadUtils, IdleRunnableMethod) RefPtr idleInheritedSetDeadline = new IdleObjectInheritedSetDeadline(); - NS_DispatchToCurrentThread( - NewRunnableMethod("IdleObject::Method0", idle, &IdleObject::Method0)); + NS_DispatchToCurrentThread(NewRunnableMethod(idle, &IdleObject::Method0)); NS_IdleDispatchToCurrentThread( - NewIdleRunnableMethod("IdleObject::Method1", idle, &IdleObject::Method1)); + NewIdleRunnableMethod(idle, &IdleObject::Method1)); NS_IdleDispatchToCurrentThread( - NewIdleRunnableMethodWithTimer("IdleObject::Method2", idle, &IdleObject::Method2), 60000); + NewIdleRunnableMethodWithTimer(idle, &IdleObject::Method2), 60000); NS_IdleDispatchToCurrentThread( - NewIdleRunnableMethod("IdleObject::Method7", idle, &IdleObject::Method7)); + NewIdleRunnableMethod(idle, &IdleObject::Method7)); NS_IdleDispatchToCurrentThread(NewIdleRunnableMethod( - "IdleObject::CheckExecutedMethods", idle, &IdleObject::CheckExecutedMethods, "final", 8)); + idle, &IdleObject::CheckExecutedMethods, "final", 8)); NS_IdleDispatchToCurrentThread(NewIdleRunnableMethod( - "IdleObjectWithoutSetDeadline::Method", idleNoSetDeadline, &IdleObjectWithoutSetDeadline::Method)); NS_IdleDispatchToCurrentThread(NewIdleRunnableMethod( - "IdleObjectInheritedSetDeadline::Method", idleInheritedSetDeadline, &IdleObjectInheritedSetDeadline::Method)); NS_ProcessPendingEvents(nullptr); @@ -1035,34 +1002,24 @@ TEST(ThreadUtils, main) // Test legacy functions. nsCOMPtr r1 = - NewRunnableMethod("TestThreadUtils::ThreadUtilsObject::Test0", - rpt, - &ThreadUtilsObject::Test0); + NewRunnableMethod(rpt, &ThreadUtilsObject::Test0); r1->Run(); EXPECT_EQ(count += 1, rpt->mCount); - r1 = NewRunnableMethod("TestThreadUtils::ThreadUtilsObject::Test1i", - rpt, - &ThreadUtilsObject::Test1i, - 11); + r1 = NewRunnableMethod(rpt, &ThreadUtilsObject::Test1i, 11); r1->Run(); EXPECT_EQ(count += 2, rpt->mCount); EXPECT_EQ(11, rpt->mA0); // Test calling a method from a non-ref-counted base. - r1 = NewRunnableMethod("TestThreadUtils::ThreadUtilsObjectNonRefCountedBase::" - "MethodFromNonRefCountedBase", - rpt, - &ThreadUtilsObject::MethodFromNonRefCountedBase); + r1 = NewRunnableMethod(rpt, &ThreadUtilsObject::MethodFromNonRefCountedBase); r1->Run(); EXPECT_EQ(count, rpt->mCount); // Test variadic function with simple POD arguments. - r1 = NewRunnableMethod("TestThreadUtils::ThreadUtilsObject::Test0", - rpt, - &ThreadUtilsObject::Test0); + r1 = NewRunnableMethod(rpt, &ThreadUtilsObject::Test0); r1->Run(); EXPECT_EQ(count += 1, rpt->mCount); @@ -1075,31 +1032,20 @@ TEST(ThreadUtils, main) StoreCopyPassByValue>::value, "detail::ParameterStorage>::Type should be StoreCopyPassByValue"); - r1 = NewRunnableMethod("TestThreadUtils::ThreadUtilsObject::Test1i", - rpt, - &ThreadUtilsObject::Test1i, - 12); + r1 = NewRunnableMethod(rpt, &ThreadUtilsObject::Test1i, 12); r1->Run(); EXPECT_EQ(count += 2, rpt->mCount); EXPECT_EQ(12, rpt->mA0); - r1 = NewRunnableMethod("TestThreadUtils::ThreadUtilsObject::Test2i", - rpt, - &ThreadUtilsObject::Test2i, - 21, - 22); + r1 = NewRunnableMethod( + rpt, &ThreadUtilsObject::Test2i, 21, 22); r1->Run(); EXPECT_EQ(count += 3, rpt->mCount); EXPECT_EQ(21, rpt->mA0); EXPECT_EQ(22, rpt->mA1); r1 = NewRunnableMethod( - "TestThreadUtils::ThreadUtilsObject::Test3i", - rpt, - &ThreadUtilsObject::Test3i, - 31, - 32, - 33); + rpt, &ThreadUtilsObject::Test3i, 31, 32, 33); r1->Run(); EXPECT_EQ(count += 4, rpt->mCount); EXPECT_EQ(31, rpt->mA0); @@ -1107,13 +1053,7 @@ TEST(ThreadUtils, main) EXPECT_EQ(33, rpt->mA2); r1 = NewRunnableMethod( - "TestThreadUtils::ThreadUtilsObject::Test4i", - rpt, - &ThreadUtilsObject::Test4i, - 41, - 42, - 43, - 44); + rpt, &ThreadUtilsObject::Test4i, 41, 42, 43, 44); r1->Run(); EXPECT_EQ(count += 5, rpt->mCount); EXPECT_EQ(41, rpt->mA0); @@ -1125,10 +1065,7 @@ TEST(ThreadUtils, main) // Passing a short to make sure forwarding works with an inexact type match. short int si = 11; - r1 = NewRunnableMethod("TestThreadUtils::ThreadUtilsObject::Test1i", - rpt, - &ThreadUtilsObject::Test1i, - si); + r1 = NewRunnableMethod(rpt, &ThreadUtilsObject::Test1i, si); r1->Run(); EXPECT_EQ(count += 2, rpt->mCount); EXPECT_EQ(si, rpt->mA0); @@ -1154,10 +1091,7 @@ TEST(ThreadUtils, main) "detail::ParameterStorage::Type::passed_type should be int*"); { int i = 12; - r1 = NewRunnableMethod("TestThreadUtils::ThreadUtilsObject::Test1pi", - rpt, - &ThreadUtilsObject::Test1pi, - &i); + r1 = NewRunnableMethod(rpt, &ThreadUtilsObject::Test1pi, &i); r1->Run(); EXPECT_EQ(count += 2, rpt->mCount); EXPECT_EQ(i, rpt->mA0); @@ -1184,11 +1118,7 @@ TEST(ThreadUtils, main) "detail::ParameterStorage::Type::passed_type should be const int*"); { int i = 1201; - r1 = NewRunnableMethod( - "TestThreadUtils::ThreadUtilsObject::Test1pci", - rpt, - &ThreadUtilsObject::Test1pci, - &i); + r1 = NewRunnableMethod(rpt, &ThreadUtilsObject::Test1pci, &i); r1->Run(); EXPECT_EQ(count += 2, rpt->mCount); EXPECT_EQ(i, rpt->mA0); @@ -1204,10 +1134,7 @@ TEST(ThreadUtils, main) { int i = 1202; r1 = NewRunnableMethod>( - "TestThreadUtils::ThreadUtilsObject::Test1pi", - rpt, - &ThreadUtilsObject::Test1pi, - i); + rpt, &ThreadUtilsObject::Test1pi, i); r1->Run(); EXPECT_EQ(count += 2, rpt->mCount); EXPECT_EQ(i, rpt->mA0); @@ -1223,10 +1150,7 @@ TEST(ThreadUtils, main) { int i = 1203; r1 = NewRunnableMethod>( - "TestThreadUtils::ThreadUtilsObject::Test1pci", - rpt, - &ThreadUtilsObject::Test1pci, - i); + rpt, &ThreadUtilsObject::Test1pci, i); r1->Run(); EXPECT_EQ(count += 2, rpt->mCount); EXPECT_EQ(i, rpt->mA0); @@ -1285,10 +1209,7 @@ TEST(ThreadUtils, main) "ParameterStorage::Type::passed_type should be int&"); { int i = 13; - r1 = NewRunnableMethod("TestThreadUtils::ThreadUtilsObject::Test1ri", - rpt, - &ThreadUtilsObject::Test1ri, - i); + r1 = NewRunnableMethod(rpt, &ThreadUtilsObject::Test1ri, i); r1->Run(); EXPECT_EQ(count += 2, rpt->mCount); EXPECT_EQ(i, rpt->mA0); @@ -1309,11 +1230,8 @@ TEST(ThreadUtils, main) "ParameterStorage::Type::passed_type should be int&&"); { int i = 14; - r1 = - NewRunnableMethod("TestThreadUtils::ThreadUtilsObject::Test1rri", - rpt, - &ThreadUtilsObject::Test1rri, - mozilla::Move(i)); + r1 = NewRunnableMethod( + rpt, &ThreadUtilsObject::Test1rri, mozilla::Move(i)); } r1->Run(); EXPECT_EQ(count += 2, rpt->mCount); @@ -1335,10 +1253,7 @@ TEST(ThreadUtils, main) { mozilla::UniquePtr upi; r1 = NewRunnableMethod&&>( - "TestThreadUtils::ThreadUtilsObject::Test1upi", - rpt, - &ThreadUtilsObject::Test1upi, - mozilla::Move(upi)); + rpt, &ThreadUtilsObject::Test1upi, mozilla::Move(upi)); } r1->Run(); EXPECT_EQ(count += 2, rpt->mCount); @@ -1360,11 +1275,9 @@ TEST(ThreadUtils, main) "ParameterStorage>>::Type::passed_type should be UniquePtr&&"); { mozilla::UniquePtr upi; - r1 = NewRunnableMethod>>( - "TestThreadUtils::ThreadUtilsObject::Test1upi", - rpt, - &ThreadUtilsObject::Test1upi, - mozilla::Move(upi)); + r1 = NewRunnableMethod + >>( + rpt, &ThreadUtilsObject::Test1upi, mozilla::Move(upi)); } r1->Run(); EXPECT_EQ(count += 2, rpt->mCount); @@ -1374,10 +1287,7 @@ TEST(ThreadUtils, main) { mozilla::UniquePtr upi = mozilla::MakeUnique(1); r1 = NewRunnableMethod&&>( - "TestThreadUtils::ThreadUtilsObject::Test1upi", - rpt, - &ThreadUtilsObject::Test1upi, - mozilla::Move(upi)); + rpt, &ThreadUtilsObject::Test1upi, mozilla::Move(upi)); } r1->Run(); EXPECT_EQ(count += 2, rpt->mCount); @@ -1385,11 +1295,9 @@ TEST(ThreadUtils, main) { mozilla::UniquePtr upi = mozilla::MakeUnique(1); - r1 = NewRunnableMethod>>( - "TestThreadUtils::ThreadUtilsObject::Test1upi", - rpt, - &ThreadUtilsObject::Test1upi, - mozilla::Move(upi)); + r1 = NewRunnableMethod + >> + (rpt, &ThreadUtilsObject::Test1upi, mozilla::Move(upi)); } r1->Run(); EXPECT_EQ(count += 2, rpt->mCount); @@ -1397,10 +1305,7 @@ TEST(ThreadUtils, main) // Unique pointer as prvalue. r1 = NewRunnableMethod&&>( - "TestThreadUtils::ThreadUtilsObject::Test1upi", - rpt, - &ThreadUtilsObject::Test1upi, - mozilla::MakeUnique(2)); + rpt, &ThreadUtilsObject::Test1upi, mozilla::MakeUnique(2)); r1->Run(); EXPECT_EQ(count += 2, rpt->mCount); EXPECT_EQ(2, rpt->mA0); @@ -1409,10 +1314,7 @@ TEST(ThreadUtils, main) { mozilla::UniquePtr upi; r1 = NewRunnableMethod&>( - "TestThreadUtils::ThreadUtilsObject::Test1rupi", - rpt, - &ThreadUtilsObject::Test1rupi, - upi); + rpt, &ThreadUtilsObject::Test1rupi, upi); // Passed as lref, so Run() must be called while local upi is still alive! r1->Run(); } @@ -1432,10 +1334,7 @@ TEST(ThreadUtils, main) EXPECT_EQ(1, gAlive); if (gDebug) { printf("%d - r2 = NewRunnableMethod>(&TestByValue, s)\n", __LINE__); } r2 = NewRunnableMethod>( - "TestThreadUtils::ThreadUtilsObject::TestByValue", - rpt, - &ThreadUtilsObject::TestByValue, - s); + rpt, &ThreadUtilsObject::TestByValue, s); EXPECT_EQ(2, gAlive); EXPECT_LE(1, gCopyConstructions); // At least 1 copy-construction. Spy::ClearActions(); @@ -1461,11 +1360,9 @@ TEST(ThreadUtils, main) if (gDebug) { printf("%d - Test: Store copy from prvalue, pass by value\n", __LINE__); } { if (gDebug) { printf("%d - r3 = NewRunnableMethod>(&TestByValue, Spy(11))\n", __LINE__); } - nsCOMPtr r3 = NewRunnableMethod>( - "TestThreadUtils::ThreadUtilsObject::TestByValue", - rpt, - &ThreadUtilsObject::TestByValue, - Spy(11)); + nsCOMPtr r3 = + NewRunnableMethod>( + rpt, &ThreadUtilsObject::TestByValue, Spy(11)); EXPECT_EQ(1, gAlive); EXPECT_EQ(1, gConstructions); EXPECT_LE(1, gMoveConstructions); @@ -1492,10 +1389,7 @@ TEST(ThreadUtils, main) EXPECT_EQ(1, gAlive); Spy::ClearActions(); r4 = NewRunnableMethod>( - "TestThreadUtils::ThreadUtilsObject::TestByValue", - rpt, - &ThreadUtilsObject::TestByValue, - mozilla::Move(s)); + rpt, &ThreadUtilsObject::TestByValue, mozilla::Move(s)); EXPECT_LE(1, gMoveConstructions); EXPECT_EQ(1, gAlive); EXPECT_EQ(1, gZombies); @@ -1527,10 +1421,7 @@ TEST(ThreadUtils, main) EXPECT_EQ(1, gAlive); if (gDebug) { printf("%d - r5 = NewRunnableMethod>(&TestByConstLRef, s)\n", __LINE__); } r5 = NewRunnableMethod>( - "TestThreadUtils::ThreadUtilsObject::TestByConstLRef", - rpt, - &ThreadUtilsObject::TestByConstLRef, - s); + rpt, &ThreadUtilsObject::TestByConstLRef, s); EXPECT_EQ(2, gAlive); EXPECT_LE(1, gCopyConstructions); // At least 1 copy-construction. Spy::ClearActions(); @@ -1556,11 +1447,9 @@ TEST(ThreadUtils, main) if (gDebug) { printf("%d - Test: Store copy from prvalue, pass by const lvalue ref\n", __LINE__); } { if (gDebug) { printf("%d - r6 = NewRunnableMethod>(&TestByConstLRef, Spy(21))\n", __LINE__); } - nsCOMPtr r6 = NewRunnableMethod>( - "TestThreadUtils::ThreadUtilsObject::TestByConstLRef", - rpt, - &ThreadUtilsObject::TestByConstLRef, - Spy(21)); + nsCOMPtr r6 = + NewRunnableMethod>( + rpt, &ThreadUtilsObject::TestByConstLRef, Spy(21)); EXPECT_EQ(1, gAlive); EXPECT_EQ(1, gConstructions); EXPECT_LE(1, gMoveConstructions); @@ -1589,10 +1478,7 @@ TEST(ThreadUtils, main) EXPECT_EQ(1, gAlive); if (gDebug) { printf("%d - r7 = NewRunnableMethod>(&TestByRRef, s)\n", __LINE__); } r7 = NewRunnableMethod>( - "TestThreadUtils::ThreadUtilsObject::TestByRRef", - rpt, - &ThreadUtilsObject::TestByRRef, - s); + rpt, &ThreadUtilsObject::TestByRRef, s); EXPECT_EQ(2, gAlive); EXPECT_LE(1, gCopyConstructions); // At least 1 copy-construction. Spy::ClearActions(); @@ -1619,11 +1505,9 @@ TEST(ThreadUtils, main) if (gDebug) { printf("%d - Test: Store copy from prvalue, pass by rvalue ref\n", __LINE__); } { if (gDebug) { printf("%d - r8 = NewRunnableMethod>(&TestByRRef, Spy(31))\n", __LINE__); } - nsCOMPtr r8 = NewRunnableMethod>( - "TestThreadUtils::ThreadUtilsObject::TestByRRef", - rpt, - &ThreadUtilsObject::TestByRRef, - Spy(31)); + nsCOMPtr r8 = + NewRunnableMethod>( + rpt, &ThreadUtilsObject::TestByRRef, Spy(31)); EXPECT_EQ(1, gAlive); EXPECT_EQ(1, gConstructions); EXPECT_LE(1, gMoveConstructions); @@ -1652,10 +1536,8 @@ TEST(ThreadUtils, main) Spy::ClearActions(); if (gDebug) { printf("%d - r9 = NewRunnableMethod(&TestByLRef, s)\n", __LINE__); } nsCOMPtr r9 = - NewRunnableMethod("TestThreadUtils::ThreadUtilsObject::TestByLRef", - rpt, - &ThreadUtilsObject::TestByLRef, - s); + NewRunnableMethod( + rpt, &ThreadUtilsObject::TestByLRef, s); EXPECT_EQ(0, gAllConstructions); EXPECT_EQ(0, gDestructions); EXPECT_EQ(1, gAlive); @@ -1687,10 +1569,7 @@ TEST(ThreadUtils, main) EXPECT_EQ(1, gAlive); if (gDebug) { printf("%d - r10 = NewRunnableMethod>(&TestByRRef, s.get())\n", __LINE__); } r10 = NewRunnableMethod>( - "TestThreadUtils::ThreadUtilsObject::TestByPointer", - rpt, - &ThreadUtilsObject::TestByPointer, - s.get()); + rpt, &ThreadUtilsObject::TestByPointer, s.get()); EXPECT_LE(0, gAllConstructions); EXPECT_EQ(1, gAlive); Spy::ClearActions(); @@ -1722,11 +1601,9 @@ TEST(ThreadUtils, main) EXPECT_EQ(1, gAlive); Spy::ClearActions(); if (gDebug) { printf("%d - r11 = NewRunnableMethod(&TestByPointer, s)\n", __LINE__); } - nsCOMPtr r11 = NewRunnableMethod( - "TestThreadUtils::ThreadUtilsObject::TestByPointer", - rpt, - &ThreadUtilsObject::TestByPointer, - &s); + nsCOMPtr r11 = + NewRunnableMethod( + rpt, &ThreadUtilsObject::TestByPointer, &s); EXPECT_EQ(0, gAllConstructions); EXPECT_EQ(0, gDestructions); EXPECT_EQ(1, gAlive); @@ -1754,11 +1631,9 @@ TEST(ThreadUtils, main) EXPECT_EQ(1, gAlive); Spy::ClearActions(); if (gDebug) { printf("%d - r12 = NewRunnableMethod(&TestByPointer, s)\n", __LINE__); } - nsCOMPtr r12 = NewRunnableMethod( - "TestThreadUtils::ThreadUtilsObject::TestByPointerToConst", - rpt, - &ThreadUtilsObject::TestByPointerToConst, - &s); + nsCOMPtr r12 = + NewRunnableMethod( + rpt, &ThreadUtilsObject::TestByPointerToConst, &s); EXPECT_EQ(0, gAllConstructions); EXPECT_EQ(0, gDestructions); EXPECT_EQ(1, gAlive); diff --git a/xpcom/tests/gtest/TestTimers.cpp b/xpcom/tests/gtest/TestTimers.cpp index 2ca87f89a2d3..ce8bba028c3b 100644 --- a/xpcom/tests/gtest/TestTimers.cpp +++ b/xpcom/tests/gtest/TestTimers.cpp @@ -242,17 +242,15 @@ public: timer->SetTarget(aTarget); } - timer->InitWithNamedFuncCallback(&UnusedCallbackFunc, - nullptr, - kTimerOffset + kTimerInterval * i, - aType, - "FindExpirationTimeState::InitTimers"); + timer->InitWithFuncCallback(&UnusedCallbackFunc, + nullptr, + kTimerOffset + kTimerInterval * i, + aType); } else { - timer->InitWithNamedFuncCallback(&UnusedCallbackFunc, - nullptr, - kTimerOffset + kTimerInterval * i, - nsITimer::TYPE_ONE_SHOT, - "FindExpirationTimeState::InitTimers"); + timer->InitWithFuncCallback(&UnusedCallbackFunc, + nullptr, + kTimerOffset + kTimerInterval * i, + nsITimer::TYPE_ONE_SHOT); } mTimers.push_front(timer.get()); } @@ -428,9 +426,8 @@ class FuzzTestThreadState final : public nsITimerCallback { class StartRunnable final : public mozilla::Runnable { public: - explicit StartRunnable(FuzzTestThreadState* threadState) - : mozilla::Runnable("FuzzTestThreadState::StartRunnable") - , mThreadState(threadState) + explicit StartRunnable(FuzzTestThreadState* threadState) : + mThreadState(threadState) {} NS_IMETHOD Run() override diff --git a/xpcom/threads/AbstractThread.cpp b/xpcom/threads/AbstractThread.cpp index d8f9c944a42b..fc0dd2ec9e89 100644 --- a/xpcom/threads/AbstractThread.cpp +++ b/xpcom/threads/AbstractThread.cpp @@ -104,10 +104,7 @@ public: if (!mTailDispatcher.isSome()) { mTailDispatcher.emplace(/* aIsTailDispatcher = */ true); - nsCOMPtr event = - NewRunnableMethod("EventTargetWrapper::FireTailDispatcher", - this, - &EventTargetWrapper::FireTailDispatcher); + nsCOMPtr event = NewRunnableMethod(this, &EventTargetWrapper::FireTailDispatcher); nsContentUtils::RunInStableState(event.forget()); } @@ -157,8 +154,7 @@ private: explicit Runner(EventTargetWrapper* aThread, already_AddRefed aRunnable, bool aDrainDirectTasks) - : CancelableRunnable("EventTargetWrapper::Runner") - , mThread(aThread) + : mThread(aThread) , mRunnable(aRunnable) , mDrainDirectTasks(aDrainDirectTasks) { @@ -348,8 +344,7 @@ AbstractThread::CreateXPCOMThreadWrapper(nsIThread* aThread, bool aRequireTailDi // target thread. This ensures that sCurrentThreadTLS is as expected by // AbstractThread::GetCurrent() on the target thread. nsCOMPtr r = - NS_NewRunnableFunction("AbstractThread::CreateXPCOMThreadWrapper", - [wrapper]() { sCurrentThreadTLS.set(wrapper); }); + NS_NewRunnableFunction([wrapper]() { sCurrentThreadTLS.set(wrapper); }); aThread->Dispatch(r.forget(), NS_DISPATCH_NORMAL); return wrapper.forget(); } diff --git a/xpcom/threads/BackgroundHangMonitor.cpp b/xpcom/threads/BackgroundHangMonitor.cpp index 3e6d0694f887..cd40198c6fa4 100644 --- a/xpcom/threads/BackgroundHangMonitor.cpp +++ b/xpcom/threads/BackgroundHangMonitor.cpp @@ -446,8 +446,7 @@ public: BackgroundHangThread* aThread, Telemetry::HangHistogram&& aHistogram, Telemetry::NativeHangStack&& aNativeStack) - : CancelableRunnable("ProcessHangRunnable") - , mManager(aManager) + : mManager(aManager) , mNativeStack(mozilla::Move(aNativeStack)) , mThread(aThread) , mHistogram(mozilla::Move(aHistogram)) diff --git a/xpcom/threads/LazyIdleThread.cpp b/xpcom/threads/LazyIdleThread.cpp index ce5d6863c547..835ff22cc7b6 100644 --- a/xpcom/threads/LazyIdleThread.cpp +++ b/xpcom/threads/LazyIdleThread.cpp @@ -104,7 +104,7 @@ LazyIdleThread::EnableIdleTimeout() } if (mThread) { - nsCOMPtr runnable(new Runnable("LazyIdleThreadDummyRunnable")); + nsCOMPtr runnable(new Runnable()); if (NS_FAILED(Dispatch(runnable.forget(), NS_DISPATCH_NORMAL))) { NS_WARNING("Failed to dispatch!"); } @@ -158,8 +158,8 @@ LazyIdleThread::EnsureThread() return NS_ERROR_UNEXPECTED; } - nsCOMPtr runnable = NewRunnableMethod( - "LazyIdleThread::InitThread", this, &LazyIdleThread::InitThread); + nsCOMPtr runnable = + NewRunnableMethod(this, &LazyIdleThread::InitThread); if (NS_WARN_IF(!runnable)) { return NS_ERROR_UNEXPECTED; } @@ -279,8 +279,8 @@ LazyIdleThread::ShutdownThread() } #endif - nsCOMPtr runnable = NewRunnableMethod( - "LazyIdleThread::CleanupThread", this, &LazyIdleThread::CleanupThread); + nsCOMPtr runnable = + NewRunnableMethod(this, &LazyIdleThread::CleanupThread); if (NS_WARN_IF(!runnable)) { return NS_ERROR_UNEXPECTED; } @@ -356,8 +356,8 @@ LazyIdleThread::Release() // Stabilize refcount. mRefCnt = 1; - nsCOMPtr runnable = NewNonOwningRunnableMethod( - "LazyIdleThread::SelfDestruct", this, &LazyIdleThread::SelfDestruct); + nsCOMPtr runnable = + NewNonOwningRunnableMethod(this, &LazyIdleThread::SelfDestruct); NS_WARNING_ASSERTION(runnable, "Couldn't make runnable!"); if (NS_FAILED(NS_DispatchToCurrentThread(runnable))) { @@ -597,8 +597,8 @@ LazyIdleThread::AfterProcessNextEvent(nsIThreadInternal* /* aThread */, } if (shouldNotifyIdle) { - nsCOMPtr runnable = NewRunnableMethod( - "LazyIdleThread::ScheduleTimer", this, &LazyIdleThread::ScheduleTimer); + nsCOMPtr runnable = + NewRunnableMethod(this, &LazyIdleThread::ScheduleTimer); if (NS_WARN_IF(!runnable)) { return NS_ERROR_UNEXPECTED; } diff --git a/xpcom/threads/MozPromise.h b/xpcom/threads/MozPromise.h index 2c8011f1d43c..9933a32a36ca 100644 --- a/xpcom/threads/MozPromise.h +++ b/xpcom/threads/MozPromise.h @@ -380,9 +380,7 @@ protected: { public: ResolveOrRejectRunnable(ThenValueBase* aThenValue, MozPromise* aPromise) - : CancelableRunnable( - "MozPromise::ThenValueBase::ResolveOrRejectRunnable") - , mThenValue(aThenValue) + : mThenValue(aThenValue) , mPromise(aPromise) { MOZ_DIAGNOSTIC_ASSERT(!mPromise->IsPending()); @@ -1380,14 +1378,9 @@ template* aMethodCall) - : CancelableRunnable("detail::ProxyRunnable") - , mProxyPromise(aProxyPromise) - , mMethodCall(aMethodCall) - { - } + ProxyRunnable(typename PromiseType::Private* aProxyPromise, + MethodCall* aMethodCall) + : mProxyPromise(aProxyPromise), mMethodCall(aMethodCall) {} NS_IMETHOD Run() override { @@ -1496,14 +1489,11 @@ class ProxyFunctionRunnable : public CancelableRunnable { typedef typename Decay::Type FunctionStorage; public: - template + template ProxyFunctionRunnable(typename PromiseType::Private* aProxyPromise, F&& aFunction) - : CancelableRunnable("detail::ProxyFunctionRunnable") - , mProxyPromise(aProxyPromise) - , mFunction(new FunctionStorage(Forward(aFunction))) - { - } + : mProxyPromise(aProxyPromise) + , mFunction(new FunctionStorage(Forward(aFunction))) {} NS_IMETHOD Run() override { diff --git a/xpcom/threads/SchedulerGroup.cpp b/xpcom/threads/SchedulerGroup.cpp index 8bd0f60ccb57..81e14d05bf7c 100644 --- a/xpcom/threads/SchedulerGroup.cpp +++ b/xpcom/threads/SchedulerGroup.cpp @@ -331,9 +331,8 @@ SchedulerGroup::SetValidatingAccess(ValidationType aType) SchedulerGroup::Runnable::Runnable(already_AddRefed&& aRunnable, SchedulerGroup* aGroup) - : mozilla::Runnable("SchedulerGroup::Runnable") - , mRunnable(Move(aRunnable)) - , mGroup(aGroup) + : mRunnable(Move(aRunnable)), + mGroup(aGroup) { } diff --git a/xpcom/threads/SharedThreadPool.cpp b/xpcom/threads/SharedThreadPool.cpp index 314b0cc2a0c5..d52878c741aa 100644 --- a/xpcom/threads/SharedThreadPool.cpp +++ b/xpcom/threads/SharedThreadPool.cpp @@ -143,8 +143,7 @@ NS_IMETHODIMP_(MozExternalRefCountType) SharedThreadPool::Release(void) // Dispatch an event to the main thread to call Shutdown() on // the nsIThreadPool. The Runnable here will add a refcount to the pool, // and when the Runnable releases the nsIThreadPool it will be deleted. - NS_DispatchToMainThread(NewRunnableMethod( - "nsIThreadPool::Shutdown", mPool, &nsIThreadPool::Shutdown)); + NS_DispatchToMainThread(NewRunnableMethod(mPool, &nsIThreadPool::Shutdown)); // Stabilize refcount, so that if something in the dtor QIs, it won't explode. mRefCnt = 1; diff --git a/xpcom/threads/StateMirroring.h b/xpcom/threads/StateMirroring.h index ef883f9061db..669e928a666f 100644 --- a/xpcom/threads/StateMirroring.h +++ b/xpcom/threads/StateMirroring.h @@ -152,11 +152,9 @@ private: { MIRROR_LOG("%s [%p] Disconnecting all mirrors", mName, this); for (size_t i = 0; i < mMirrors.Length(); ++i) { - mMirrors[i]->OwnerThread()->Dispatch( - NewRunnableMethod("AbstractMirror::NotifyDisconnected", - mMirrors[i], - &AbstractMirror::NotifyDisconnected), - AbstractThread::DontAssertDispatchSuccess); + mMirrors[i]->OwnerThread()->Dispatch(NewRunnableMethod(mMirrors[i], + &AbstractMirror::NotifyDisconnected), + AbstractThread::DontAssertDispatchSuccess); } mMirrors.Clear(); } @@ -193,8 +191,7 @@ private: // we can avoid sending multiple updates, and possibly avoid sending any // updates at all if the value ends up where it started. if (!alreadyNotifying) { - AbstractThread::DispatchDirectTask(NewRunnableMethod( - "Canonical::Impl::DoNotify", this, &Impl::DoNotify)); + AbstractThread::DispatchDirectTask(NewRunnableMethod(this, &Impl::DoNotify)); } } @@ -225,11 +222,7 @@ private: already_AddRefed MakeNotifier(AbstractMirror* aMirror) { - return NewRunnableMethod("AbstractMirror::UpdateValue", - aMirror, - &AbstractMirror::UpdateValue, - mValue); - ; + return NewRunnableMethod(aMirror, &AbstractMirror::UpdateValue, mValue);; } T mValue; @@ -332,12 +325,8 @@ private: MOZ_ASSERT(!IsConnected()); MOZ_ASSERT(OwnerThread()->RequiresTailDispatch(aCanonical->OwnerThread()), "Can't get coherency without tail dispatch"); - nsCOMPtr r = - NewRunnableMethod>>( - "AbstractCanonical::AddMirror", - aCanonical, - &AbstractCanonical::AddMirror, - this); + nsCOMPtr r = NewRunnableMethod>> + (aCanonical, &AbstractCanonical::AddMirror, this); aCanonical->OwnerThread()->Dispatch(r.forget(), AbstractThread::DontAssertDispatchSuccess); mCanonical = aCanonical; } @@ -351,12 +340,8 @@ private: } MIRROR_LOG("%s [%p] Disconnecting from %p", mName, this, mCanonical.get()); - nsCOMPtr r = - NewRunnableMethod>>( - "AbstractCanonical::RemoveMirror", - mCanonical, - &AbstractCanonical::RemoveMirror, - this); + nsCOMPtr r = NewRunnableMethod>> + (mCanonical, &AbstractCanonical::RemoveMirror, this); mCanonical->OwnerThread()->Dispatch(r.forget(), AbstractThread::DontAssertDispatchSuccess); mCanonical = nullptr; } diff --git a/xpcom/threads/StateWatching.h b/xpcom/threads/StateWatching.h index 351f59915b58..99d521603e3a 100644 --- a/xpcom/threads/StateWatching.h +++ b/xpcom/threads/StateWatching.h @@ -256,10 +256,7 @@ private: mStrongRef = mOwner; // Hold the owner alive while notifying. // Queue up our notification jobs to run in a stable state. - mOwnerThread->TailDispatcher().AddDirectTask( - NewRunnableMethod("WatchManager::PerCallbackWatcher::DoNotify", - this, - &PerCallbackWatcher::DoNotify)); + mOwnerThread->TailDispatcher().AddDirectTask(NewRunnableMethod(this, &PerCallbackWatcher::DoNotify)); } bool CallbackMethodIs(CallbackMethod aMethod) const diff --git a/xpcom/threads/SyncRunnable.h b/xpcom/threads/SyncRunnable.h index ff617e5a7069..d96bac7ba907 100644 --- a/xpcom/threads/SyncRunnable.h +++ b/xpcom/threads/SyncRunnable.h @@ -34,16 +34,14 @@ class SyncRunnable : public Runnable { public: explicit SyncRunnable(nsIRunnable* aRunnable) - : Runnable("SyncRunnable") - , mRunnable(aRunnable) + : mRunnable(aRunnable) , mMonitor("SyncRunnable") , mDone(false) { } explicit SyncRunnable(already_AddRefed aRunnable) - : Runnable("SyncRunnable") - , mRunnable(Move(aRunnable)) + : mRunnable(Move(aRunnable)) , mMonitor("SyncRunnable") , mDone(false) { diff --git a/xpcom/threads/TaskDispatcher.h b/xpcom/threads/TaskDispatcher.h index a23f017d2ca2..52e810ffb531 100644 --- a/xpcom/threads/TaskDispatcher.h +++ b/xpcom/threads/TaskDispatcher.h @@ -185,11 +185,7 @@ private: class TaskGroupRunnable : public Runnable { public: - explicit TaskGroupRunnable(UniquePtr&& aTasks) - : Runnable("AutoTaskDispatcher::TaskGroupRunnable") - , mTasks(Move(aTasks)) - { - } + explicit TaskGroupRunnable(UniquePtr&& aTasks) : mTasks(Move(aTasks)) {} NS_IMETHOD Run() override { diff --git a/xpcom/threads/TaskQueue.h b/xpcom/threads/TaskQueue.h index b97586c8eccb..b5f71ec756c1 100644 --- a/xpcom/threads/TaskQueue.h +++ b/xpcom/threads/TaskQueue.h @@ -203,8 +203,7 @@ protected: class Runner : public Runnable { public: explicit Runner(TaskQueue* aQueue) - : Runnable("TaskQueue::Runner") - , mQueue(aQueue) + : mQueue(aQueue) { } NS_IMETHOD Run() override; diff --git a/xpcom/threads/ThrottledEventQueue.cpp b/xpcom/threads/ThrottledEventQueue.cpp index 37afc70fae7a..501157a1fb51 100644 --- a/xpcom/threads/ThrottledEventQueue.cpp +++ b/xpcom/threads/ThrottledEventQueue.cpp @@ -65,8 +65,7 @@ class ThrottledEventQueue::Inner final : public nsIObserver public: explicit Executor(Inner* aInner) - : Runnable("ThrottledEventQueue::Inner::Executor") - , mInner(aInner) + : mInner(aInner) { } NS_IMETHODIMP diff --git a/xpcom/threads/TimerThread.cpp b/xpcom/threads/TimerThread.cpp index b91b27b2073a..3a889549534b 100644 --- a/xpcom/threads/TimerThread.cpp +++ b/xpcom/threads/TimerThread.cpp @@ -58,8 +58,7 @@ class TimerObserverRunnable : public Runnable { public: explicit TimerObserverRunnable(nsIObserver* aObserver) - : mozilla::Runnable("TimerObserverRunnable") - , mObserver(aObserver) + : mObserver(aObserver) { } @@ -148,8 +147,7 @@ public: NS_IMETHOD GetName(nsACString& aName) override; nsTimerEvent() - : mozilla::CancelableRunnable("nsTimerEvent") - , mTimer() + : mTimer() , mGeneration(0) { // Note: We override operator new for this class, and the override is diff --git a/xpcom/threads/nsMemoryPressure.cpp b/xpcom/threads/nsMemoryPressure.cpp index 30d27c2989e0..fea9b0437888 100644 --- a/xpcom/threads/nsMemoryPressure.cpp +++ b/xpcom/threads/nsMemoryPressure.cpp @@ -49,6 +49,6 @@ nsresult NS_DispatchMemoryPressure(MemoryPressureState aState) { NS_DispatchEventualMemoryPressure(aState); - nsCOMPtr event = new Runnable("NS_DispatchEventualMemoryPressure"); + nsCOMPtr event = new Runnable; return NS_DispatchToMainThread(event); } diff --git a/xpcom/threads/nsProcessCommon.cpp b/xpcom/threads/nsProcessCommon.cpp index 844139a5635a..7c4a4856d57c 100644 --- a/xpcom/threads/nsProcessCommon.cpp +++ b/xpcom/threads/nsProcessCommon.cpp @@ -307,8 +307,7 @@ nsProcess::Monitor(void* aArg) if (NS_IsMainThread()) { process->ProcessComplete(); } else { - NS_DispatchToMainThread(NewRunnableMethod( - "nsProcess::ProcessComplete", process, &nsProcess::ProcessComplete)); + NS_DispatchToMainThread(NewRunnableMethod(process, &nsProcess::ProcessComplete)); } if (!process->mBlocking) { diff --git a/xpcom/threads/nsThread.cpp b/xpcom/threads/nsThread.cpp index 0c1934a18763..6b8a6992e0c8 100644 --- a/xpcom/threads/nsThread.cpp +++ b/xpcom/threads/nsThread.cpp @@ -240,11 +240,10 @@ public: DelayedRunnable(already_AddRefed aTargetThread, already_AddRefed aRunnable, uint32_t aDelay) - : mozilla::Runnable("DelayedRunnable") - , mTargetThread(aTargetThread) - , mWrappedRunnable(aRunnable) - , mDelayedFrom(TimeStamp::NowLoRes()) - , mDelay(aDelay) + : mTargetThread(aTargetThread), + mWrappedRunnable(aRunnable), + mDelayedFrom(TimeStamp::NowLoRes()), + mDelay(aDelay) { } NS_DECL_ISUPPORTS_INHERITED diff --git a/xpcom/threads/nsThreadUtils.cpp b/xpcom/threads/nsThreadUtils.cpp index 01b36992bf12..ec0690c40db5 100644 --- a/xpcom/threads/nsThreadUtils.cpp +++ b/xpcom/threads/nsThreadUtils.cpp @@ -343,11 +343,8 @@ public: mTimer = do_CreateInstance(NS_TIMER_CONTRACTID); if (mTimer) { mTimer->SetTarget(aTarget); - mTimer->InitWithNamedFuncCallback(TimedOut, - this, - aDelay, - nsITimer::TYPE_ONE_SHOT, - "IdleRunnableWrapper::SetTimer"); + mTimer->InitWithFuncCallback(TimedOut, this, aDelay, + nsITimer::TYPE_ONE_SHOT); } } private: diff --git a/xpcom/threads/nsThreadUtils.h b/xpcom/threads/nsThreadUtils.h index 7d2cb37090ca..e6a3be969792 100644 --- a/xpcom/threads/nsThreadUtils.h +++ b/xpcom/threads/nsThreadUtils.h @@ -430,10 +430,7 @@ class IdleRunnable : public CancelableRunnable, public: NS_DECL_ISUPPORTS_INHERITED - IdleRunnable() - : CancelableRunnable("IdleRunnable") - { - } + IdleRunnable() {} explicit IdleRunnable(const char* aName) : CancelableRunnable(aName) {} protected: @@ -455,8 +452,7 @@ class RunnableFunction : public Runnable public: template explicit RunnableFunction(F&& aFunction) - : Runnable("RunnableFunction") - , mFunction(Forward(aFunction)) + : mFunction(Forward(aFunction)) { } NS_IMETHOD Run() override { @@ -575,7 +571,7 @@ ToSupports(mozilla::Runnable *p) template already_AddRefed -NS_NewRunnableFunctionXXX(Function&& aFunction) +NS_NewRunnableFunction(Function&& aFunction) { // We store a non-reference in RunnableFunction, but still forward aFunction // to move if possible. @@ -588,7 +584,7 @@ already_AddRefed NS_NewRunnableFunction(const char* aName, Function&& aFunction) { return mozilla::detail::SetRunnableName( - NS_NewRunnableFunctionXXX(mozilla::Forward(aFunction)), aName); + NS_NewRunnableFunction(mozilla::Forward(aFunction)), aName); } namespace mozilla { @@ -655,15 +651,7 @@ class nsRunnableMethod mozilla::IdleRunnable>::Type>::Type, protected mozilla::detail::TimerBehaviour { - using BaseType = typename mozilla::Conditional::Type>::Type; public: - nsRunnableMethod() : BaseType("nsRunnableMethod") {} - virtual void Revoke() = 0; // These ReturnTypeEnforcer classes set up a blacklist for return types that @@ -1180,11 +1168,8 @@ public: if (nsCOMPtr timer = GetTimer()) { timer->Cancel(); timer->SetTarget(aTarget); - timer->InitWithNamedFuncCallback(TimedOut, - this, - aDelay, - nsITimer::TYPE_ONE_SHOT, - "detail::RunnableMethodImpl::SetTimer"); + timer->InitWithFuncCallback(TimedOut, this, aDelay, + nsITimer::TYPE_ONE_SHOT); } } }; @@ -1343,7 +1328,7 @@ using NonOwningIdleRunnableMethodWithTimerImpl = RunnableMethodImpl< template already_AddRefed> -NewRunnableMethodXXX(PtrType&& aPtr, Method aMethod) +NewRunnableMethod(PtrType&& aPtr, Method aMethod) { return do_AddRef( new detail::OwningRunnableMethodImpl @@ -1355,12 +1340,12 @@ already_AddRefed> NewRunnableMethod(const char* aName, PtrType&& aPtr, Method aMethod) { return detail::SetRunnableName( - NewRunnableMethodXXX(Forward(aPtr), aMethod), aName); + NewRunnableMethod(Forward(aPtr), aMethod), aName); } template already_AddRefed> -NewCancelableRunnableMethodXXX(PtrType&& aPtr, Method aMethod) +NewCancelableRunnableMethod(PtrType&& aPtr, Method aMethod) { return do_AddRef( new detail::CancelableRunnableMethodImpl @@ -1372,12 +1357,12 @@ already_AddRefed> NewCancelableRunnableMethod(const char* aName, PtrType&& aPtr, Method aMethod) { return detail::SetRunnableName( - NewCancelableRunnableMethodXXX(Forward(aPtr), aMethod), aName); + NewCancelableRunnableMethod(Forward(aPtr), aMethod), aName); } template already_AddRefed> -NewIdleRunnableMethodXXX(PtrType&& aPtr, Method aMethod) +NewIdleRunnableMethod(PtrType&& aPtr, Method aMethod) { return do_AddRef(new detail::IdleRunnableMethodImpl( Forward(aPtr), aMethod)); @@ -1388,12 +1373,12 @@ already_AddRefed> NewIdleRunnableMethod(const char* aName, PtrType&& aPtr, Method aMethod) { return detail::SetRunnableName( - NewIdleRunnableMethodXXX(Forward(aPtr), aMethod), aName); + NewIdleRunnableMethod(Forward(aPtr), aMethod), aName); } template already_AddRefed> -NewIdleRunnableMethodWithTimerXXX(PtrType&& aPtr, Method aMethod) +NewIdleRunnableMethodWithTimer(PtrType&& aPtr, Method aMethod) { return do_AddRef(new detail::IdleRunnableMethodWithTimerImpl( Forward(aPtr), aMethod)); @@ -1406,13 +1391,13 @@ NewIdleRunnableMethodWithTimer(const char* aName, Method aMethod) { return detail::SetRunnableName( - NewIdleRunnableMethodWithTimerXXX(Forward(aPtr), aMethod), + NewIdleRunnableMethodWithTimer(Forward(aPtr), aMethod), aName); } template already_AddRefed> -NewNonOwningRunnableMethodXXX(PtrType&& aPtr, Method aMethod) +NewNonOwningRunnableMethod(PtrType&& aPtr, Method aMethod) { return do_AddRef( new detail::NonOwningRunnableMethodImpl @@ -1424,12 +1409,12 @@ already_AddRefed> NewNonOwningRunnableMethod(const char* aName, PtrType&& aPtr, Method aMethod) { return detail::SetRunnableName( - NewNonOwningRunnableMethodXXX(Forward(aPtr), aMethod), aName); + NewNonOwningRunnableMethod(Forward(aPtr), aMethod), aName); } template already_AddRefed> -NewNonOwningCancelableRunnableMethodXXX(PtrType&& aPtr, Method aMethod) +NewNonOwningCancelableRunnableMethod(PtrType&& aPtr, Method aMethod) { return do_AddRef( new detail::NonOwningCancelableRunnableMethodImpl @@ -1442,12 +1427,12 @@ NewNonOwningCancelableRunnableMethod(const char* aName, PtrType&& aPtr, Method aMethod) { return detail::SetRunnableName( - NewNonOwningCancelableRunnableMethodXXX(Forward(aPtr), aMethod), aName); + NewNonOwningCancelableRunnableMethod(Forward(aPtr), aMethod), aName); } template already_AddRefed> -NewNonOwningIdleRunnableMethodXXX(PtrType&& aPtr, Method aMethod) +NewNonOwningIdleRunnableMethod(PtrType&& aPtr, Method aMethod) { return do_AddRef( new detail::NonOwningIdleRunnableMethodImpl( @@ -1461,12 +1446,12 @@ NewNonOwningIdleRunnableMethod(const char* aName, Method aMethod) { return detail::SetRunnableName( - NewNonOwningIdleRunnableMethodXXX(Forward(aPtr), aMethod), aName); + NewNonOwningIdleRunnableMethod(Forward(aPtr), aMethod), aName); } template already_AddRefed> -NewNonOwningIdleRunnableMethodWithTimerXXX(PtrType&& aPtr, +NewNonOwningIdleRunnableMethodWithTimer(PtrType&& aPtr, Method aMethod) { return do_AddRef( @@ -1480,7 +1465,7 @@ NewNonOwningIdleRunnableMethodWithTimer(const char* aName, PtrType&& aPtr, Method aMethod) { - return detail::SetRunnableName(NewNonOwningIdleRunnableMethodWithTimerXXX( + return detail::SetRunnableName(NewNonOwningIdleRunnableMethodWithTimer( Forward(aPtr), aMethod), aName); } @@ -1491,7 +1476,7 @@ NewNonOwningIdleRunnableMethodWithTimer(const char* aName, // 'Types' are the stored type for each argument, see ParameterStorage for details. template already_AddRefed> -NewRunnableMethodXXX(PtrType&& aPtr, Method aMethod, Args&&... aArgs) +NewRunnableMethod(PtrType&& aPtr, Method aMethod, Args&&... aArgs) { static_assert(sizeof...(Storages) == sizeof...(Args), " size should be equal to number of arguments"); @@ -1507,13 +1492,13 @@ NewRunnableMethod(const char* aName, PtrType&& aPtr, Method aMethod, Args&&... a static_assert(sizeof...(Storages) == sizeof...(Args), " size should be equal to number of arguments"); return detail::SetRunnableName( - NewRunnableMethodXXX + NewRunnableMethod (Forward(aPtr), aMethod, mozilla::Forward(aArgs)...), aName); } template already_AddRefed> -NewNonOwningRunnableMethodXXX(PtrType&& aPtr, Method aMethod, Args&&... aArgs) +NewNonOwningRunnableMethod(PtrType&& aPtr, Method aMethod, Args&&... aArgs) { static_assert(sizeof...(Storages) == sizeof...(Args), " size should be equal to number of arguments"); @@ -1530,13 +1515,13 @@ NewNonOwningRunnableMethod(const char* aName, PtrType&& aPtr, Method aMethod, static_assert(sizeof...(Storages) == sizeof...(Args), " size should be equal to number of arguments"); return detail::SetRunnableName( - NewNonOwningRunnableMethodXXX + NewNonOwningRunnableMethod (Forward(aPtr), aMethod, mozilla::Forward(aArgs)...), aName); } template already_AddRefed> -NewCancelableRunnableMethodXXX(PtrType&& aPtr, Method aMethod, Args&&... aArgs) +NewCancelableRunnableMethod(PtrType&& aPtr, Method aMethod, Args&&... aArgs) { static_assert(sizeof...(Storages) == sizeof...(Args), " size should be equal to number of arguments"); @@ -1553,13 +1538,13 @@ NewCancelableRunnableMethod(const char* aName, PtrType&& aPtr, Method aMethod, static_assert(sizeof...(Storages) == sizeof...(Args), " size should be equal to number of arguments"); return detail::SetRunnableName( - NewCancelableRunnableMethodXXX + NewCancelableRunnableMethod (Forward(aPtr), aMethod, mozilla::Forward(aArgs)...), aName); } template already_AddRefed> -NewNonOwningCancelableRunnableMethodXXX(PtrType&& aPtr, Method aMethod, +NewNonOwningCancelableRunnableMethod(PtrType&& aPtr, Method aMethod, Args&&... aArgs) { static_assert(sizeof...(Storages) == sizeof...(Args), @@ -1577,7 +1562,7 @@ NewNonOwningCancelableRunnableMethod(const char* aName, PtrType&& aPtr, static_assert(sizeof...(Storages) == sizeof...(Args), " size should be equal to number of arguments"); return detail::SetRunnableName( - NewNonOwningCancelableRunnableMethodXXX + NewNonOwningCancelableRunnableMethod (Forward(aPtr), aMethod, mozilla::Forward(aArgs)...), aName); } @@ -1586,7 +1571,7 @@ template already_AddRefed> -NewIdleRunnableMethodXXX(PtrType&& aPtr, Method aMethod, Args&&... aArgs) +NewIdleRunnableMethod(PtrType&& aPtr, Method aMethod, Args&&... aArgs) { static_assert(sizeof...(Storages) == sizeof...(Args), " size should be equal to number of arguments"); @@ -1608,7 +1593,7 @@ NewIdleRunnableMethod(const char* aName, static_assert(sizeof...(Storages) == sizeof...(Args), " size should be equal to number of arguments"); return detail::SetRunnableName( - NewIdleRunnableMethodXXX( + NewIdleRunnableMethod( Forward(aPtr), aMethod, mozilla::Forward(aArgs)...), aName); } @@ -1618,7 +1603,7 @@ template already_AddRefed> -NewNonOwningIdleRunnableMethodXXX(PtrType&& aPtr, Method aMethod, Args&&... aArgs) +NewNonOwningIdleRunnableMethod(PtrType&& aPtr, Method aMethod, Args&&... aArgs) { static_assert(sizeof...(Storages) == sizeof...(Args), " size should be equal to number of arguments"); @@ -1640,7 +1625,7 @@ NewNonOwningIdleRunnableMethod(const char* aName, static_assert(sizeof...(Storages) == sizeof...(Args), " size should be equal to number of arguments"); return detail::SetRunnableName( - NewNonOwningIdleRunnableMethodXXX( + NewNonOwningIdleRunnableMethod( Forward(aPtr), aMethod, mozilla::Forward(aArgs)...), aName); } diff --git a/xpfe/appshell/nsAppShellService.cpp b/xpfe/appshell/nsAppShellService.cpp index f93528a05b3c..63aa3699e816 100644 --- a/xpfe/appshell/nsAppShellService.cpp +++ b/xpfe/appshell/nsAppShellService.cpp @@ -404,10 +404,9 @@ WebBrowserChrome2Stub::Blur() class BrowserDestroyer final : public Runnable { public: - BrowserDestroyer(nsIWebBrowser* aBrowser, nsISupports* aContainer) - : mozilla::Runnable("BrowserDestroyer") - , mBrowser(aBrowser) - , mContainer(aContainer) + BrowserDestroyer(nsIWebBrowser *aBrowser, nsISupports *aContainer) : + mBrowser(aBrowser), + mContainer(aContainer) { } diff --git a/xpfe/appshell/nsContentTreeOwner.cpp b/xpfe/appshell/nsContentTreeOwner.cpp index 1a73de11a5df..d9067cea541a 100644 --- a/xpfe/appshell/nsContentTreeOwner.cpp +++ b/xpfe/appshell/nsContentTreeOwner.cpp @@ -942,8 +942,7 @@ class nsContentTitleSettingEvent : public Runnable { public: nsContentTitleSettingEvent(dom::Element* dse, const nsAString& wtm) - : Runnable("nsContentTitleSettingEvent"), - mElement(dse), + : mElement(dse), mTitleDefault(wtm) {} NS_IMETHOD Run() override diff --git a/xpfe/components/directory/nsDirectoryViewer.cpp b/xpfe/components/directory/nsDirectoryViewer.cpp index f1dff24fe569..6acda8805c09 100644 --- a/xpfe/components/directory/nsDirectoryViewer.cpp +++ b/xpfe/components/directory/nsDirectoryViewer.cpp @@ -863,15 +863,11 @@ nsHTTPIndex::GetTargets(nsIRDFResource *aSource, nsIRDFResource *aProperty, bool NS_ASSERTION(NS_SUCCEEDED(rv), "unable to create a timer"); if (NS_SUCCEEDED(rv)) { - mTimer->InitWithNamedFuncCallback( - nsHTTPIndex::FireTimer, - this, - 1, - nsITimer::TYPE_ONE_SHOT, - "nsHTTPIndex::GetTargets"); - // Note: don't addref "this" as we'll cancel the - // timer in the httpIndex destructor - } + mTimer->InitWithFuncCallback(nsHTTPIndex::FireTimer, this, 1, + nsITimer::TYPE_ONE_SHOT); + // Note: don't addref "this" as we'll cancel the + // timer in the httpIndex destructor + } } } } @@ -902,14 +898,11 @@ nsHTTPIndex::AddElement(nsIRDFResource *parent, nsIRDFResource *prop, nsIRDFNode NS_ASSERTION(NS_SUCCEEDED(rv), "unable to create a timer"); if (NS_FAILED(rv)) return(rv); - mTimer->InitWithNamedFuncCallback(nsHTTPIndex::FireTimer, - this, - 1, - nsITimer::TYPE_ONE_SHOT, - "nsHTTPIndex::AddElement"); - // Note: don't addref "this" as we'll cancel the - // timer in the httpIndex destructor - } + mTimer->InitWithFuncCallback(nsHTTPIndex::FireTimer, this, 1, + nsITimer::TYPE_ONE_SHOT); + // Note: don't addref "this" as we'll cancel the + // timer in the httpIndex destructor + } return(NS_OK); } @@ -1038,11 +1031,8 @@ nsHTTPIndex::FireTimer(nsITimer* aTimer, void* aClosure) httpIndex->mTimer = do_CreateInstance("@mozilla.org/timer;1"); if (httpIndex->mTimer) { - httpIndex->mTimer->InitWithNamedFuncCallback(nsHTTPIndex::FireTimer, - aClosure, - 10, - nsITimer::TYPE_ONE_SHOT, - "nsHTTPIndex::FireTimer"); + httpIndex->mTimer->InitWithFuncCallback(nsHTTPIndex::FireTimer, aClosure, 10, + nsITimer::TYPE_ONE_SHOT); // Note: don't addref "this" as we'll cancel the // timer in the httpIndex destructor } From 9aa439a48c5a69d034a5b29e593bf89ab249454e Mon Sep 17 00:00:00 2001 From: "Carsten \"Tomcat\" Book" Date: Tue, 20 Jun 2017 08:27:17 +0200 Subject: [PATCH 011/106] Backed out changeset 301e80f20046 (bug 1372405) for bustage --- xpcom/threads/SchedulerGroup.cpp | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/xpcom/threads/SchedulerGroup.cpp b/xpcom/threads/SchedulerGroup.cpp index 81e14d05bf7c..fdf64b146299 100644 --- a/xpcom/threads/SchedulerGroup.cpp +++ b/xpcom/threads/SchedulerGroup.cpp @@ -339,15 +339,17 @@ SchedulerGroup::Runnable::Runnable(already_AddRefed&& aRunnable, NS_IMETHODIMP SchedulerGroup::Runnable::GetName(nsACString& aName) { - // Try to get a name from the underlying runnable. - nsCOMPtr named = do_QueryInterface(mRunnable); - if (named) { - named->GetName(aName); - } + mozilla::Runnable::GetName(aName); if (aName.IsEmpty()) { - aName.AssignLiteral("anonymous"); + // Try to get a name from the underlying runnable. + nsCOMPtr named = do_QueryInterface(mRunnable); + if (named) { + named->GetName(aName); + } + if (aName.IsEmpty()) { + aName.AssignLiteral("anonymous"); + } } - aName.AppendASCII("(labeled)"); return NS_OK; } From 69c1d0cf1d4773309fcfed57293d39a90724bb6c Mon Sep 17 00:00:00 2001 From: Dragana Damjanovic Date: Tue, 20 Jun 2017 08:39:53 +0200 Subject: [PATCH 012/106] hg qrefresh -m "Bug 1372897 - REVERT test of the necko part of TFO. r=mcmanus" --- modules/libpref/init/all.js | 2 +- netwerk/base/TCPFastOpenLayer.cpp | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/modules/libpref/init/all.js b/modules/libpref/init/all.js index 0ee299886b79..f1622c0f3a64 100644 --- a/modules/libpref/init/all.js +++ b/modules/libpref/init/all.js @@ -4672,7 +4672,7 @@ pref("network.tcp.keepalive.retry_interval", 1); // seconds pref("network.tcp.keepalive.probe_count", 4); #endif -pref("network.tcp.tcp_fastopen_enable", true); +pref("network.tcp.tcp_fastopen_enable", false); pref("network.tcp.tcp_fastopen_consecutive_failure_limit", 5); // Whether to disable acceleration for all widgets. diff --git a/netwerk/base/TCPFastOpenLayer.cpp b/netwerk/base/TCPFastOpenLayer.cpp index 5013a4d6691f..44b7122a2f52 100644 --- a/netwerk/base/TCPFastOpenLayer.cpp +++ b/netwerk/base/TCPFastOpenLayer.cpp @@ -378,8 +378,8 @@ TCPFastOpenFinish(PRFileDesc *fd, PRErrorCode &err, // If sendto is not implemented it points to _PR_InvalidInt, therefore we // check if sendto != _PR_InvalidInt. _PR_InvalidInt is exposed so we use // reserved_fn_0 which also points to _PR_InvalidInt. -// if (!secret->mFirstPacketBufLen || -// (tfoFd->lower->methods->sendto == (PRSendtoFN)tfoFd->lower->methods->reserved_fn_0)) { + if (!secret->mFirstPacketBufLen || + (tfoFd->lower->methods->sendto == (PRSendtoFN)tfoFd->lower->methods->reserved_fn_0)) { // Because of the way our nsHttpTransaction dispatch work, it can happened // that data has not been written into the socket. // In this case we can just call connect. @@ -396,7 +396,7 @@ TCPFastOpenFinish(PRFileDesc *fd, PRErrorCode &err, SOCKET_LOG(("TCPFastOpenFinish - sendto not implemented.\n")); fastOpenNotSupported = true; } -/* } else { + } else { // We have some data ready in the buffer we will send it with the syn // packet. PRInt32 rv = (tfoFd->lower->methods->sendto)(tfoFd->lower, @@ -437,7 +437,6 @@ TCPFastOpenFinish(PRFileDesc *fd, PRErrorCode &err, } } } -*/ if (result == PR_IN_PROGRESS_ERROR) { secret->mState = TCPFastOpenSecret::WAITING_FOR_CONNECTCONTINUE; From a37b2d26c3d8ea3175bc2079eb1666390e60534d Mon Sep 17 00:00:00 2001 From: Cervantes Yu Date: Tue, 20 Jun 2017 14:59:48 +0800 Subject: [PATCH 013/106] Bug 1286802 - Part 1: Add minidump_callback.{h|cpp} to Windows breakpad client. r=ted MozReview-Commit-ID: 5Vpk4jWC63v --- .../windows/common/minidump_callback.cc | 8 ++++++++ .../windows/common/minidump_callback.h | 9 +++++++++ .../breakpad-client/windows/common/objs.mozbuild | 14 ++++++++++++++ .../breakpad-windows-libxul/moz.build | 2 ++ .../breakpad-windows-standalone/moz.build | 2 ++ 5 files changed, 35 insertions(+) create mode 100644 toolkit/crashreporter/breakpad-client/windows/common/minidump_callback.cc create mode 100644 toolkit/crashreporter/breakpad-client/windows/common/minidump_callback.h create mode 100644 toolkit/crashreporter/breakpad-client/windows/common/objs.mozbuild diff --git a/toolkit/crashreporter/breakpad-client/windows/common/minidump_callback.cc b/toolkit/crashreporter/breakpad-client/windows/common/minidump_callback.cc new file mode 100644 index 000000000000..8df7b855e4a2 --- /dev/null +++ b/toolkit/crashreporter/breakpad-client/windows/common/minidump_callback.cc @@ -0,0 +1,8 @@ +/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + +#include "minidump_callback.h" + diff --git a/toolkit/crashreporter/breakpad-client/windows/common/minidump_callback.h b/toolkit/crashreporter/breakpad-client/windows/common/minidump_callback.h new file mode 100644 index 000000000000..3cb8748ab6ae --- /dev/null +++ b/toolkit/crashreporter/breakpad-client/windows/common/minidump_callback.h @@ -0,0 +1,9 @@ +/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + +#ifndef MINIDUMP_CALLBACK_H__ +#define MINIDUMP_CALLBACK_H__ +#endif diff --git a/toolkit/crashreporter/breakpad-client/windows/common/objs.mozbuild b/toolkit/crashreporter/breakpad-client/windows/common/objs.mozbuild new file mode 100644 index 000000000000..ddc1d58d56da --- /dev/null +++ b/toolkit/crashreporter/breakpad-client/windows/common/objs.mozbuild @@ -0,0 +1,14 @@ +# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*- +# vim: set filetype=python: +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. + +lobjs_client_common = [ + 'minidump_callback.cc', +] + +subdir = 'toolkit/crashreporter/breakpad-client/windows/common' +objs_client_common = [ + '/%s/%s' % (subdir, s) for s in lobjs_client_common +] diff --git a/toolkit/crashreporter/breakpad-windows-libxul/moz.build b/toolkit/crashreporter/breakpad-windows-libxul/moz.build index 7685a2899301..4c1b4271f295 100644 --- a/toolkit/crashreporter/breakpad-windows-libxul/moz.build +++ b/toolkit/crashreporter/breakpad-windows-libxul/moz.build @@ -24,10 +24,12 @@ include('/toolkit/crashreporter/google-breakpad/src/common/windows/objs.mozbuild include('/toolkit/crashreporter/breakpad-client/windows/handler/objs.mozbuild') include('/toolkit/crashreporter/breakpad-client/windows/sender/objs.mozbuild') include('/toolkit/crashreporter/breakpad-client/windows/crash_generation/objs.mozbuild') +include('/toolkit/crashreporter/breakpad-client/windows/common/objs.mozbuild') SOURCES += objs_common SOURCES += objs_crash_generation SOURCES += objs_handler SOURCES += objs_sender +SOURCES += objs_client_common DISABLE_STL_WRAPPING = True diff --git a/toolkit/crashreporter/breakpad-windows-standalone/moz.build b/toolkit/crashreporter/breakpad-windows-standalone/moz.build index c188d9568c55..9c453ebe500a 100644 --- a/toolkit/crashreporter/breakpad-windows-standalone/moz.build +++ b/toolkit/crashreporter/breakpad-windows-standalone/moz.build @@ -17,10 +17,12 @@ LOCAL_INCLUDES += [ include('/toolkit/crashreporter/google-breakpad/src/common/windows/objs.mozbuild') include('/toolkit/crashreporter/breakpad-client/windows/handler/objs.mozbuild') include('/toolkit/crashreporter/breakpad-client/windows/crash_generation/objs.mozbuild') +include('/toolkit/crashreporter/breakpad-client/windows/common/objs.mozbuild') SOURCES += objs_common SOURCES += objs_crash_generation SOURCES += objs_handler +SOURCES += objs_client_common USE_STATIC_LIBS = True From f570fc72f3b9a4b4d99c62e94c104ee4111209c3 Mon Sep 17 00:00:00 2001 From: Cervantes Yu Date: Tue, 20 Jun 2017 15:00:16 +0800 Subject: [PATCH 014/106] Bug 1286802 - Part 2: Refactor google_breakpad::ExceptionHandler for including heap regions. r=ted This moves type definitions and minidump callback to minidump_callback.{h|cpp}, which will be used by google_breakpad::ExceptionHandler for in-process crash generation, and by googld_breakpad::CrashGenerationServer for out-of-process crash generation. MozReview-Commit-ID: AMsQHSUTYNx --- .../windows/common/minidump_callback.cc | 46 +++++++++++++++++++ .../windows/common/minidump_callback.h | 40 ++++++++++++++++ .../windows/handler/exception_handler.cc | 44 ------------------ .../windows/handler/exception_handler.h | 24 +--------- 4 files changed, 87 insertions(+), 67 deletions(-) diff --git a/toolkit/crashreporter/breakpad-client/windows/common/minidump_callback.cc b/toolkit/crashreporter/breakpad-client/windows/common/minidump_callback.cc index 8df7b855e4a2..4fe6c68fd0d2 100644 --- a/toolkit/crashreporter/breakpad-client/windows/common/minidump_callback.cc +++ b/toolkit/crashreporter/breakpad-client/windows/common/minidump_callback.cc @@ -6,3 +6,49 @@ #include "minidump_callback.h" +#include +#include + +namespace google_breakpad { + +BOOL CALLBACK MinidumpWriteDumpCallback( + PVOID context, + const PMINIDUMP_CALLBACK_INPUT callback_input, + PMINIDUMP_CALLBACK_OUTPUT callback_output) { + switch (callback_input->CallbackType) { + case MemoryCallback: { + MinidumpCallbackContext* callback_context = + reinterpret_cast(context); + + if (callback_context->iter == callback_context->end) + return FALSE; + + // Include the specified memory region. + callback_output->MemoryBase = callback_context->iter->ptr; + callback_output->MemorySize = callback_context->iter->length; + callback_context->iter++; + return TRUE; + } + + // Include all modules. + case IncludeModuleCallback: + case ModuleCallback: + return TRUE; + + // Include all threads. + case IncludeThreadCallback: + case ThreadCallback: + return TRUE; + + // Stop receiving cancel callbacks. + case CancelCallback: + callback_output->CheckCancel = FALSE; + callback_output->Cancel = FALSE; + return TRUE; + } + // Ignore other callback types. + return FALSE; +} + +} // namespace google_breakpad + diff --git a/toolkit/crashreporter/breakpad-client/windows/common/minidump_callback.h b/toolkit/crashreporter/breakpad-client/windows/common/minidump_callback.h index 3cb8748ab6ae..48fd382189af 100644 --- a/toolkit/crashreporter/breakpad-client/windows/common/minidump_callback.h +++ b/toolkit/crashreporter/breakpad-client/windows/common/minidump_callback.h @@ -6,4 +6,44 @@ #ifndef MINIDUMP_CALLBACK_H__ #define MINIDUMP_CALLBACK_H__ + +#include +#include + +#include + +namespace google_breakpad { + +// These entries store a list of memory regions that the client wants included +// in the minidump. +struct AppMemory { + ULONG64 ptr; + ULONG length; + + bool operator==(const struct AppMemory& other) const { + return ptr == other.ptr; + } + + bool operator==(const void* other) const { + return ptr == reinterpret_cast(other); + } +}; +typedef std::list AppMemoryList; + +// This is passed as the context to the MinidumpWriteDump callback. +typedef struct { + AppMemoryList::const_iterator iter; + AppMemoryList::const_iterator end; +} MinidumpCallbackContext; + +// This function is used as a callback when calling MinidumpWriteDump, +// in order to add additional memory regions to the dump. +BOOL CALLBACK MinidumpWriteDumpCallback( + PVOID context, + const PMINIDUMP_CALLBACK_INPUT callback_input, + PMINIDUMP_CALLBACK_OUTPUT callback_output); + +} // namespace google_breakpad + #endif + diff --git a/toolkit/crashreporter/breakpad-client/windows/handler/exception_handler.cc b/toolkit/crashreporter/breakpad-client/windows/handler/exception_handler.cc index 6cfd68c4b610..849796e25494 100644 --- a/toolkit/crashreporter/breakpad-client/windows/handler/exception_handler.cc +++ b/toolkit/crashreporter/breakpad-client/windows/handler/exception_handler.cc @@ -41,12 +41,6 @@ namespace google_breakpad { -// This is passed as the context to the MinidumpWriteDump callback. -typedef struct { - AppMemoryList::const_iterator iter; - AppMemoryList::const_iterator end; -} MinidumpCallbackContext; - vector* ExceptionHandler::handler_stack_ = NULL; LONG ExceptionHandler::handler_stack_index_ = 0; CRITICAL_SECTION ExceptionHandler::handler_stack_critical_section_; @@ -864,44 +858,6 @@ bool ExceptionHandler::WriteMinidumpWithException( } // static -BOOL CALLBACK ExceptionHandler::MinidumpWriteDumpCallback( - PVOID context, - const PMINIDUMP_CALLBACK_INPUT callback_input, - PMINIDUMP_CALLBACK_OUTPUT callback_output) { - switch (callback_input->CallbackType) { - case MemoryCallback: { - MinidumpCallbackContext* callback_context = - reinterpret_cast(context); - if (callback_context->iter == callback_context->end) - return FALSE; - - // Include the specified memory region. - callback_output->MemoryBase = callback_context->iter->ptr; - callback_output->MemorySize = callback_context->iter->length; - callback_context->iter++; - return TRUE; - } - - // Include all modules. - case IncludeModuleCallback: - case ModuleCallback: - return TRUE; - - // Include all threads. - case IncludeThreadCallback: - case ThreadCallback: - return TRUE; - - // Stop receiving cancel callbacks. - case CancelCallback: - callback_output->CheckCancel = FALSE; - callback_output->Cancel = FALSE; - return TRUE; - } - // Ignore other callback types. - return FALSE; -} - bool ExceptionHandler::WriteMinidumpWithExceptionForProcess( DWORD requesting_thread_id, EXCEPTION_POINTERS* exinfo, diff --git a/toolkit/crashreporter/breakpad-client/windows/handler/exception_handler.h b/toolkit/crashreporter/breakpad-client/windows/handler/exception_handler.h index 59d50fdc0e46..3552730d1aa6 100644 --- a/toolkit/crashreporter/breakpad-client/windows/handler/exception_handler.h +++ b/toolkit/crashreporter/breakpad-client/windows/handler/exception_handler.h @@ -69,6 +69,7 @@ #include #include +#include "windows/common/minidump_callback.h" #include "windows/common/ipc_protocol.h" #include "windows/crash_generation/crash_generation_client.h" #include "common/scoped_ptr.h" @@ -79,22 +80,6 @@ namespace google_breakpad { using std::vector; using std::wstring; -// These entries store a list of memory regions that the client wants included -// in the minidump. -struct AppMemory { - ULONG64 ptr; - ULONG length; - - bool operator==(const struct AppMemory& other) const { - return ptr == other.ptr; - } - - bool operator==(const void* other) const { - return ptr == reinterpret_cast(other); - } -}; -typedef std::list AppMemoryList; - class ExceptionHandler { public: // A callback function to run before Breakpad performs any substantial @@ -357,13 +342,6 @@ class ExceptionHandler { EXCEPTION_POINTERS* exinfo, MDRawAssertionInfo* assertion); - // This function is used as a callback when calling MinidumpWriteDump, - // in order to add additional memory regions to the dump. - static BOOL CALLBACK MinidumpWriteDumpCallback( - PVOID context, - const PMINIDUMP_CALLBACK_INPUT callback_input, - PMINIDUMP_CALLBACK_OUTPUT callback_output); - // This function does the actual writing of a minidump. It is // called on the handler thread. requesting_thread_id is the ID of // the thread that requested the dump, if that information is From 82a3b7996a7fdbf8f543690343ca4e77ffbe97ec Mon Sep 17 00:00:00 2001 From: Cervantes Yu Date: Tue, 20 Jun 2017 15:00:32 +0800 Subject: [PATCH 015/106] Bug 1286802 - Part 3: Add empty set_include_context_heap() implementation to ExceptionHandler and CrashGenerationServer. r=ted MozReview-Commit-ID: 5GBzvyvNPDa --- modules/libpref/init/all.js | 8 +++++++ .../crash_generation_server.cc | 8 ++++++- .../crash_generation_server.h | 8 +++++++ .../windows/handler/exception_handler.cc | 6 ++++++ .../windows/handler/exception_handler.h | 7 +++++++ toolkit/crashreporter/nsExceptionHandler.cpp | 21 +++++++++++++++++++ toolkit/crashreporter/nsExceptionHandler.h | 3 +++ toolkit/xre/nsAppRunner.cpp | 4 ++++ 8 files changed, 64 insertions(+), 1 deletion(-) diff --git a/modules/libpref/init/all.js b/modules/libpref/init/all.js index f1622c0f3a64..0ea32538173e 100644 --- a/modules/libpref/init/all.js +++ b/modules/libpref/init/all.js @@ -5734,5 +5734,13 @@ pref("layers.advanced.filter-layers", 2); // Enable lowercased response header name pref("dom.xhr.lowercase_header.enabled", false); +// When a crash happens, whether to include heap regions of the crash context +// in the minidump. Enabled by default on nightly and aurora. +#ifdef RELEASE_OR_BETA +pref("toolkit.crashreporter.include_context_heap", false); +#else +pref("toolkit.crashreporter.include_context_heap", true); +#endif + // Open noopener links in a new process pref("dom.noopener.newprocess.enabled", true); diff --git a/toolkit/crashreporter/breakpad-client/windows/crash_generation/crash_generation_server.cc b/toolkit/crashreporter/breakpad-client/windows/crash_generation/crash_generation_server.cc index a3473526136a..f6be8961d4cc 100644 --- a/toolkit/crashreporter/breakpad-client/windows/crash_generation/crash_generation_server.cc +++ b/toolkit/crashreporter/breakpad-client/windows/crash_generation/crash_generation_server.cc @@ -126,7 +126,8 @@ CrashGenerationServer::CrashGenerationServer( server_state_(IPC_SERVER_STATE_UNINITIALIZED), shutting_down_(false), overlapped_(), - client_info_(NULL) { + client_info_(NULL), + include_context_heap_(false) { InitializeCriticalSection(&sync_); } @@ -896,6 +897,11 @@ void CrashGenerationServer::HandleDumpRequest(const ClientInfo& client_info) { SetEvent(client_info.dump_generated_handle()); } +void CrashGenerationServer::set_include_context_heap(bool enabled) { + + include_context_heap_ = enabled; +} + bool CrashGenerationServer::GenerateDump(const ClientInfo& client, std::wstring* dump_path) { assert(client.pid() != 0); diff --git a/toolkit/crashreporter/breakpad-client/windows/crash_generation/crash_generation_server.h b/toolkit/crashreporter/breakpad-client/windows/crash_generation/crash_generation_server.h index fd635d87f59a..3e2da6b268fa 100644 --- a/toolkit/crashreporter/breakpad-client/windows/crash_generation/crash_generation_server.h +++ b/toolkit/crashreporter/breakpad-client/windows/crash_generation/crash_generation_server.h @@ -106,6 +106,11 @@ class CrashGenerationServer { pre_fetch_custom_info_ = do_pre_fetch; } + // Calling set_include_context_heap(true) causes heap regions to be included + // in the minidump when a crash happens. The heap regions are from the + // register values of the client crashing context. + void set_include_context_heap(bool enabled); + private: // Various states the client can be in during the handshake with // the server. @@ -289,6 +294,9 @@ class CrashGenerationServer { // Client Info for the client that's connecting to the server. ClientInfo* client_info_; + // Whether to include heap regions of the crashing context. + bool include_context_heap_; + // Disable copy ctor and operator=. CrashGenerationServer(const CrashGenerationServer& crash_server); CrashGenerationServer& operator=(const CrashGenerationServer& crash_server); diff --git a/toolkit/crashreporter/breakpad-client/windows/handler/exception_handler.cc b/toolkit/crashreporter/breakpad-client/windows/handler/exception_handler.cc index 849796e25494..7dc6ba89f6e2 100644 --- a/toolkit/crashreporter/breakpad-client/windows/handler/exception_handler.cc +++ b/toolkit/crashreporter/breakpad-client/windows/handler/exception_handler.cc @@ -279,6 +279,8 @@ void ExceptionHandler::Initialize( LeaveCriticalSection(&handler_stack_critical_section_); } + + include_context_heap_ = false; } ExceptionHandler::~ExceptionHandler() { @@ -1026,4 +1028,8 @@ void ExceptionHandler::UnregisterAppMemory(void* ptr) { } } +void ExceptionHandler::set_include_context_heap(bool enabled) { + include_context_heap_ = enabled; +} + } // namespace google_breakpad diff --git a/toolkit/crashreporter/breakpad-client/windows/handler/exception_handler.h b/toolkit/crashreporter/breakpad-client/windows/handler/exception_handler.h index 3552730d1aa6..7d923f22a2d6 100644 --- a/toolkit/crashreporter/breakpad-client/windows/handler/exception_handler.h +++ b/toolkit/crashreporter/breakpad-client/windows/handler/exception_handler.h @@ -267,6 +267,11 @@ class ExceptionHandler { void RegisterAppMemory(void* ptr, size_t length); void UnregisterAppMemory(void* ptr); + // Calling set_include_context_heap(true) causes heap regions to be included + // in the minidump when a crash happens. The heap regions are from the + // register values of the crashing context. + void set_include_context_heap(bool enabled); + private: friend class AutoExceptionHandler; @@ -490,6 +495,8 @@ class ExceptionHandler { // The number of instances of this class. static volatile LONG instance_count_; + bool include_context_heap_; + // disallow copy ctor and operator= explicit ExceptionHandler(const ExceptionHandler &); void operator=(const ExceptionHandler &); diff --git a/toolkit/crashreporter/nsExceptionHandler.cpp b/toolkit/crashreporter/nsExceptionHandler.cpp index 01a3ff452799..f9eed55cd4c4 100644 --- a/toolkit/crashreporter/nsExceptionHandler.cpp +++ b/toolkit/crashreporter/nsExceptionHandler.cpp @@ -257,6 +257,9 @@ static uint32_t eventloopNestingLevel = 0; static Mutex* dumpSafetyLock; static bool isSafeToDump = false; +// Whether to include heap regions of the crash context. +static bool sIncludeContextHeap = false; + // OOP crash reporting static CrashGenerationServer* crashServer; // chrome process has this @@ -1760,6 +1763,9 @@ nsresult SetExceptionHandler(nsIFile* aXREDirectory, #ifdef XP_WIN gExceptionHandler->set_handle_debug_exceptions(true); + // Initially set sIncludeContextHeap to true for debugging startup crashes + // even if the controlling pref value is false. + SetIncludeContextHeap(true); #ifdef _WIN64 // Tell JS about the new filter before we disable SetUnhandledExceptionFilter SetJitExceptionHandler(); @@ -2433,6 +2439,17 @@ nsresult UnregisterAppMemory(void* ptr) #endif } +void SetIncludeContextHeap(bool aValue) +{ + sIncludeContextHeap = aValue; + +#ifdef XP_WIN + if (gExceptionHandler) { + gExceptionHandler->set_include_context_heap(sIncludeContextHeap); + } +#endif +} + bool GetServerURL(nsACString& aServerURL) { if (!gExceptionHandler) @@ -3483,6 +3500,10 @@ OOPInit() true, // automatically generate dumps &dumpPath); + if (sIncludeContextHeap) { + crashServer->set_include_context_heap(sIncludeContextHeap); + } + #elif defined(XP_LINUX) if (!CrashGenerationServer::CreateReportChannel(&serverSocketFd, &clientSocketFd)) diff --git a/toolkit/crashreporter/nsExceptionHandler.h b/toolkit/crashreporter/nsExceptionHandler.h index e6f8874274f9..abbf9c393cca 100644 --- a/toolkit/crashreporter/nsExceptionHandler.h +++ b/toolkit/crashreporter/nsExceptionHandler.h @@ -93,6 +93,9 @@ bool GetLastRunCrashID(nsAString& id); nsresult RegisterAppMemory(void* ptr, size_t length); nsresult UnregisterAppMemory(void* ptr); +// Include heap regions of the crash context. +void SetIncludeContextHeap(bool aValue); + // Functions for working with minidumps and .extras typedef nsDataHashtable AnnotationTable; diff --git a/toolkit/xre/nsAppRunner.cpp b/toolkit/xre/nsAppRunner.cpp index 0d5ae04b39a1..873b7ee3dc90 100644 --- a/toolkit/xre/nsAppRunner.cpp +++ b/toolkit/xre/nsAppRunner.cpp @@ -4294,6 +4294,10 @@ XREMain::XRE_mainRun() CrashReporter::AnnotateCrashReport(NS_LITERAL_CSTRING("FramePoisonSize"), nsPrintfCString("%" PRIu32, uint32_t(gMozillaPoisonSize))); + bool includeContextHeap = + Preferences::GetBool("toolkit.crashreporter.include_context_heap", false); + CrashReporter::SetIncludeContextHeap(includeContextHeap); + #ifdef XP_WIN PR_CreateThread(PR_USER_THREAD, AnnotateSystemManufacturer_ThreadStart, 0, PR_PRIORITY_LOW, PR_GLOBAL_THREAD, PR_UNJOINABLE_THREAD, 0); From d43e2480dcd2c6bdeb2459276d12651c7acb50c2 Mon Sep 17 00:00:00 2001 From: Cervantes Yu Date: Tue, 20 Jun 2017 15:00:47 +0800 Subject: [PATCH 016/106] Bug 1286802 - Part 4: Implemention of including heap regions from the crashing context. r=ted This patch is the core part of including heap regions using the registers of the crashing context to be used by in-process and out-of-process crash generations. It works as follows: When a crash happens, the ExceptionHandler or CrashGenerationServer uses the register values in the crash contex as candidates for heap regions. If a value "looks like" a pointer to some data on the heap, we register a region around the value using a preallocated AppMemory instance. Then in the "MemoryCallback" type of MinidumpCallback, we register the memory regions for inclusion in the minidump. MozReview-Commit-ID: BEik3lRJJkj --- .../windows/common/minidump_callback.cc | 130 ++++++++++++++++++ .../windows/common/minidump_callback.h | 25 ++++ .../windows/handler/exception_handler.cc | 2 + 3 files changed, 157 insertions(+) diff --git a/toolkit/crashreporter/breakpad-client/windows/common/minidump_callback.cc b/toolkit/crashreporter/breakpad-client/windows/common/minidump_callback.cc index 4fe6c68fd0d2..3de48159d89b 100644 --- a/toolkit/crashreporter/breakpad-client/windows/common/minidump_callback.cc +++ b/toolkit/crashreporter/breakpad-client/windows/common/minidump_callback.cc @@ -11,6 +11,129 @@ namespace google_breakpad { +static const DWORD sHeapRegionSize= 1024; +static DWORD sPageSize = 0; + +bool GetAppMemoryFromRegister(HANDLE aProcess, + RegisterValueType aRegister, + AppMemoryList::iterator aResult) +{ + static_assert(sizeof(RegisterValueType) == sizeof(void*), + "Size mismatch between DWORD/DWORD64 and void*"); + + if (!sPageSize) { + SYSTEM_INFO systemInfo; + GetSystemInfo(&systemInfo); + sPageSize = systemInfo.dwPageSize; + } + + RegisterValueType addr = aRegister; + addr &= ~(static_cast(sPageSize) - 1); + + MEMORY_BASIC_INFORMATION memInfo; + memset(&memInfo, 0, sizeof(memInfo)); + SIZE_T rv = ::VirtualQueryEx(aProcess, + reinterpret_cast(addr), + &memInfo, + sizeof(memInfo)); + if (!rv) { + // VirtualQuery fails: aAddr is not on heap. + return false; + } + + // Check protection and type of the memory region. Include the region if it's + // 1. read-write: heap, or + // 2. read-executable and private: likely to be JIT code. + if (memInfo.Protect != PAGE_READWRITE && + memInfo.Protect != PAGE_EXECUTE_READ) { + return false; + } + + // Try to include a region of size sHeapRegionSize around aRegister, bounded + // by the [BaseAddress, BaseAddress + RegionSize]. + RegisterValueType lower = + std::max(aRegister - sHeapRegionSize / 2, + reinterpret_cast(memInfo.BaseAddress)); + + RegisterValueType upper = + std::min(lower + sHeapRegionSize, + reinterpret_cast(memInfo.BaseAddress) + + memInfo.RegionSize); + + aResult->ptr = lower; + aResult->length = upper - lower; + + return true; +} + +static AppMemoryList::iterator +FindNextPreallocated(AppMemoryList& aList, AppMemoryList::iterator aBegin) { + auto it = aBegin; + for (auto it = aBegin; it != aList.end(); it++) { + if (it->preallocated) { + return it; + } + } + + assert(it == aList.end()); + return it; +} + +void IncludeAppMemoryFromExceptionContext(HANDLE aProcess, + DWORD aThreadId, + AppMemoryList& aList, + PCONTEXT aExceptionContext, + bool aInstructionPointerOnly) { + RegisterValueType heapAddrCandidates[kExceptionAppMemoryRegions]; + size_t numElements = 0; + + // Add registers that might have a heap address to heapAddrCandidates. + // Note that older versions of DbgHelp.dll don't correctly put the memory + // around the faulting instruction pointer into the minidump. Include Rip/Eip + // unconditionally ensures it gets included. +#if defined(_M_IX86) + if (!aInstructionPointerOnly) { + heapAddrCandidates[numElements++] = aExceptionContext->Eax; + heapAddrCandidates[numElements++] = aExceptionContext->Ebx; + heapAddrCandidates[numElements++] = aExceptionContext->Ecx; + heapAddrCandidates[numElements++] = aExceptionContext->Edx; + heapAddrCandidates[numElements++] = aExceptionContext->Esi; + heapAddrCandidates[numElements++] = aExceptionContext->Edi; + } + heapAddrCandidates[numElements++] = aExceptionContext->Eip; +#elif defined(_M_AMD64) + if (!aInstructionPointerOnly) { + heapAddrCandidates[numElements++] = aExceptionContext->Rax; + heapAddrCandidates[numElements++] = aExceptionContext->Rbx; + heapAddrCandidates[numElements++] = aExceptionContext->Rcx; + heapAddrCandidates[numElements++] = aExceptionContext->Rdx; + heapAddrCandidates[numElements++] = aExceptionContext->Rsi; + heapAddrCandidates[numElements++] = aExceptionContext->Rdi; + heapAddrCandidates[numElements++] = aExceptionContext->R8; + heapAddrCandidates[numElements++] = aExceptionContext->R9; + heapAddrCandidates[numElements++] = aExceptionContext->R10; + heapAddrCandidates[numElements++] = aExceptionContext->R11; + heapAddrCandidates[numElements++] = aExceptionContext->R12; + heapAddrCandidates[numElements++] = aExceptionContext->R13; + heapAddrCandidates[numElements++] = aExceptionContext->R14; + heapAddrCandidates[numElements++] = aExceptionContext->R15; + } + heapAddrCandidates[numElements++] = aExceptionContext->Rip; +#endif + + auto appMemory = aList.begin(); + for (size_t i = 0; i < numElements; i++) { + appMemory = FindNextPreallocated(aList, appMemory); + if (appMemory == aList.end()) { + break; + } + + if (GetAppMemoryFromRegister(aProcess, heapAddrCandidates[i], appMemory)) { + appMemory++; + } + } +} + BOOL CALLBACK MinidumpWriteDumpCallback( PVOID context, const PMINIDUMP_CALLBACK_INPUT callback_input, @@ -20,6 +143,13 @@ BOOL CALLBACK MinidumpWriteDumpCallback( MinidumpCallbackContext* callback_context = reinterpret_cast(context); + // Skip unused preallocated AppMemory elements. + while (callback_context->iter != callback_context->end && + callback_context->iter->preallocated && + !callback_context->iter->ptr) { + callback_context->iter++; + } + if (callback_context->iter == callback_context->end) return FALSE; diff --git a/toolkit/crashreporter/breakpad-client/windows/common/minidump_callback.h b/toolkit/crashreporter/breakpad-client/windows/common/minidump_callback.h index 48fd382189af..89eda745b4e6 100644 --- a/toolkit/crashreporter/breakpad-client/windows/common/minidump_callback.h +++ b/toolkit/crashreporter/breakpad-client/windows/common/minidump_callback.h @@ -19,6 +19,7 @@ namespace google_breakpad { struct AppMemory { ULONG64 ptr; ULONG length; + bool preallocated; bool operator==(const struct AppMemory& other) const { return ptr == other.ptr; @@ -27,6 +28,14 @@ struct AppMemory { bool operator==(const void* other) const { return ptr == reinterpret_cast(other); } + + AppMemory() + : ptr(0) + , length(0) + , preallocated(false) + {} + + AppMemory& operator=(const AppMemory& other) = default; }; typedef std::list AppMemoryList; @@ -36,6 +45,22 @@ typedef struct { AppMemoryList::const_iterator end; } MinidumpCallbackContext; +static const size_t kExceptionAppMemoryRegions = 16; + +#if defined(_M_IX86) +using RegisterValueType = DWORD; +#elif defined(_M_AMD64) +using RegisterValueType = DWORD64; +#else +#error Unsupported platform +#endif + +void IncludeAppMemoryFromExceptionContext(HANDLE aProcess, + DWORD aThreadId, + AppMemoryList& aList, + PCONTEXT aExceptionContext, + bool aInsttructionPointerOnly); + // This function is used as a callback when calling MinidumpWriteDump, // in order to add additional memory regions to the dump. BOOL CALLBACK MinidumpWriteDumpCallback( diff --git a/toolkit/crashreporter/breakpad-client/windows/handler/exception_handler.cc b/toolkit/crashreporter/breakpad-client/windows/handler/exception_handler.cc index 7dc6ba89f6e2..63cb9b58aeab 100644 --- a/toolkit/crashreporter/breakpad-client/windows/handler/exception_handler.cc +++ b/toolkit/crashreporter/breakpad-client/windows/handler/exception_handler.cc @@ -239,6 +239,7 @@ void ExceptionHandler::Initialize( AppMemory instruction_memory; instruction_memory.ptr = NULL; instruction_memory.length = 0; + instruction_memory.preallocated = true; app_memory_info_.push_back(instruction_memory); // There is a race condition here. If the first instance has not yet @@ -1017,6 +1018,7 @@ void ExceptionHandler::RegisterAppMemory(void* ptr, size_t length) { AppMemory app_memory; app_memory.ptr = reinterpret_cast(ptr); app_memory.length = static_cast(length); + app_memory.preallocated = false; app_memory_info_.push_back(app_memory); } From 4e0a89aff5bd69ebe77912bfcad92e306e331cd1 Mon Sep 17 00:00:00 2001 From: Cervantes Yu Date: Tue, 20 Jun 2017 15:01:05 +0800 Subject: [PATCH 017/106] Bug 1286802 - Part 5: Implement ExceptionHandler::set_include_context_heap() for inprocess crash generation. r=ted MozReview-Commit-ID: AOrGlMjnNjE --- .../windows/handler/exception_handler.cc | 66 ++++++++----------- 1 file changed, 26 insertions(+), 40 deletions(-) diff --git a/toolkit/crashreporter/breakpad-client/windows/handler/exception_handler.cc b/toolkit/crashreporter/breakpad-client/windows/handler/exception_handler.cc index 63cb9b58aeab..84d5a8cdca29 100644 --- a/toolkit/crashreporter/breakpad-client/windows/handler/exception_handler.cc +++ b/toolkit/crashreporter/breakpad-client/windows/handler/exception_handler.cc @@ -918,50 +918,18 @@ bool ExceptionHandler::WriteMinidumpWithExceptionForProcess( ++user_streams.UserStreamCount; } - // Older versions of DbgHelp.dll don't correctly put the memory around - // the faulting instruction pointer into the minidump. This - // callback will ensure that it gets included. - if (exinfo) { - // Find a memory region of 256 bytes centered on the - // faulting instruction pointer. - const ULONG64 instruction_pointer = -#if defined(_M_IX86) - exinfo->ContextRecord->Eip; -#elif defined(_M_AMD64) - exinfo->ContextRecord->Rip; -#else -#error Unsupported platform -#endif - - MEMORY_BASIC_INFORMATION info; - if (VirtualQueryEx(process, - reinterpret_cast(instruction_pointer), - &info, - sizeof(MEMORY_BASIC_INFORMATION)) != 0 && - info.State == MEM_COMMIT) { - // Attempt to get 128 bytes before and after the instruction - // pointer, but settle for whatever's available up to the - // boundaries of the memory region. - const ULONG64 kIPMemorySize = 256; - ULONG64 base = - (std::max)(reinterpret_cast(info.BaseAddress), - instruction_pointer - (kIPMemorySize / 2)); - ULONG64 end_of_range = - (std::min)(instruction_pointer + (kIPMemorySize / 2), - reinterpret_cast(info.BaseAddress) - + info.RegionSize); - ULONG size = static_cast(end_of_range - base); - - AppMemory& elt = app_memory_info_.front(); - elt.ptr = base; - elt.length = size; - } - } - MinidumpCallbackContext context; context.iter = app_memory_info_.begin(); context.end = app_memory_info_.end(); + if (exinfo) { + IncludeAppMemoryFromExceptionContext(process, + requesting_thread_id, + app_memory_info_, + exinfo->ContextRecord, + !include_context_heap_); + } + // Skip the reserved element if there was no instruction memory if (context.iter->ptr == 0) { context.iter++; @@ -1031,6 +999,24 @@ void ExceptionHandler::UnregisterAppMemory(void* ptr) { } void ExceptionHandler::set_include_context_heap(bool enabled) { + if (enabled && !include_context_heap_) { + // Preallocate AppMemory instances for exception context if necessary. + auto predicate = [] (const AppMemory& appMemory) -> bool { + return appMemory.preallocated; + }; + + int preallocatedCount = + std::count_if(app_memory_info_.begin(), app_memory_info_.end(), predicate); + + for (size_t i = 0; i < kExceptionAppMemoryRegions - preallocatedCount; i++) { + AppMemory app_memory; + app_memory.ptr = reinterpret_cast(nullptr); + app_memory.length = 0; + app_memory.preallocated = true; + app_memory_info_.push_back(app_memory); + } + } + include_context_heap_ = enabled; } From ff514276316f3cb40089dac49094871fcdaf7039 Mon Sep 17 00:00:00 2001 From: Cervantes Yu Date: Tue, 20 Jun 2017 15:01:18 +0800 Subject: [PATCH 018/106] Bug 1286802 - Part 6: Implement CrashGenerationServer::set_include_context_heap() for OOP crash generation. r=ted MozReview-Commit-ID: 2W0VATExXmE --- .../windows/crash_generation/client_info.cc | 43 ++++++++++++++-- .../windows/crash_generation/client_info.h | 7 ++- .../crash_generation_server.cc | 50 +++++++++++++++++-- .../crash_generation_server.h | 3 ++ 4 files changed, 93 insertions(+), 10 deletions(-) diff --git a/toolkit/crashreporter/breakpad-client/windows/crash_generation/client_info.cc b/toolkit/crashreporter/breakpad-client/windows/crash_generation/client_info.cc index ee3e9227a39c..5e443241c15e 100644 --- a/toolkit/crashreporter/breakpad-client/windows/crash_generation/client_info.cc +++ b/toolkit/crashreporter/breakpad-client/windows/crash_generation/client_info.cc @@ -27,6 +27,8 @@ // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +#include + #include "windows/crash_generation/client_info.h" #include "windows/common/ipc_protocol.h" @@ -133,17 +135,50 @@ ClientInfo::~ClientInfo() { } } -bool ClientInfo::GetClientExceptionInfo(EXCEPTION_POINTERS** ex_info) const { +bool ClientInfo::GetClientExceptionInfo(EXCEPTION_POINTERS** ex_info_ptr) const { SIZE_T bytes_count = 0; + + static_assert(sizeof(*ex_info_ptr) == sizeof(void*), + "Expected to read sizeof(void*) bytes."); if (!ReadProcessMemory(process_handle_, ex_info_, - ex_info, - sizeof(*ex_info), + ex_info_ptr, + sizeof(*ex_info_ptr), &bytes_count)) { return false; } - return bytes_count == sizeof(*ex_info); + return bytes_count == sizeof(*ex_info_ptr); +} + +bool ClientInfo::PopulateClientExceptionContext(EXCEPTION_POINTERS* ex_info_ptr, + CONTEXT* out_context) const { + SIZE_T bytes_count = 0; + + EXCEPTION_POINTERS ex_info; + if (!ReadProcessMemory(process_handle_, + ex_info_ptr, + &ex_info, + sizeof(ex_info), + &bytes_count)) { + return false; + } + + if (bytes_count != sizeof(ex_info)) { + return false; + } + + static_assert(sizeof(*out_context) == sizeof(CONTEXT), + "Expected to read sizeof(CONTEXT) bytes."); + if (!ReadProcessMemory(process_handle_, + ex_info.ContextRecord, + out_context, + sizeof(*out_context), + &bytes_count)) { + return false; + } + + return bytes_count == sizeof(*out_context); } bool ClientInfo::GetClientThreadId(DWORD* thread_id) const { diff --git a/toolkit/crashreporter/breakpad-client/windows/crash_generation/client_info.h b/toolkit/crashreporter/breakpad-client/windows/crash_generation/client_info.h index 0c8d6b2c8af5..506099dcdc54 100644 --- a/toolkit/crashreporter/breakpad-client/windows/crash_generation/client_info.h +++ b/toolkit/crashreporter/breakpad-client/windows/crash_generation/client_info.h @@ -88,7 +88,12 @@ class ClientInfo { void UnregisterProcessExitWait(bool block_until_no_pending); bool Initialize(); - bool GetClientExceptionInfo(EXCEPTION_POINTERS** ex_info) const; + bool GetClientExceptionInfo(EXCEPTION_POINTERS** ex_info_ptr) const; + + // Reads the content of exception CONTEXT from the client process. + bool PopulateClientExceptionContext(EXCEPTION_POINTERS* ex_info, + CONTEXT* out_context) const; + bool GetClientThreadId(DWORD* thread_id) const; // Reads the custom information from the client process address space. diff --git a/toolkit/crashreporter/breakpad-client/windows/crash_generation/crash_generation_server.cc b/toolkit/crashreporter/breakpad-client/windows/crash_generation/crash_generation_server.cc index f6be8961d4cc..482dd2b6fd3a 100644 --- a/toolkit/crashreporter/breakpad-client/windows/crash_generation/crash_generation_server.cc +++ b/toolkit/crashreporter/breakpad-client/windows/crash_generation/crash_generation_server.cc @@ -898,7 +898,6 @@ void CrashGenerationServer::HandleDumpRequest(const ClientInfo& client_info) { } void CrashGenerationServer::set_include_context_heap(bool enabled) { - include_context_heap_ = enabled; } @@ -907,16 +906,43 @@ bool CrashGenerationServer::GenerateDump(const ClientInfo& client, assert(client.pid() != 0); assert(client.process_handle()); + DWORD client_thread_id = 0; + if (!client.GetClientThreadId(&client_thread_id)) { + return false; + } + // We have to get the address of EXCEPTION_INFORMATION from // the client process address space. EXCEPTION_POINTERS* client_ex_info = NULL; + + // Only needs to read the value of a remote pointer in client_ex_info. if (!client.GetClientExceptionInfo(&client_ex_info)) { return false; } - DWORD client_thread_id = 0; - if (!client.GetClientThreadId(&client_thread_id)) { - return false; + if (include_context_heap_) { + CONTEXT context_content; + + // Needs to read the content of CONTEXT from the client. + if (!client.PopulateClientExceptionContext(client_ex_info, + &context_content)) { + include_context_heap_ = false; + } + + // Allocate AppMemory instances for exception context. + for (int i = 0; i < kExceptionAppMemoryRegions; i++) { + AppMemory app_memory; + app_memory.ptr = reinterpret_cast(nullptr); + app_memory.length = 0; + app_memory.preallocated = true; + app_memory_info_.push_back(app_memory); + } + + IncludeAppMemoryFromExceptionContext(client.process_handle(), + client_thread_id, + app_memory_info_, + &context_content, + !include_context_heap_); } MinidumpGenerator dump_generator(dump_path_, @@ -928,7 +954,21 @@ bool CrashGenerationServer::GenerateDump(const ClientInfo& client, client.assert_info(), client.dump_type(), true); - if (!dump_generator.GenerateDumpFile(dump_path)) { + + MinidumpCallbackContext callback_context; + MINIDUMP_CALLBACK_INFORMATION callback; + if (include_context_heap_) { + // Set memory callback to include heap regions. + callback_context.iter = app_memory_info_.cbegin(); + callback_context.end = app_memory_info_.cend(); + + callback.CallbackRoutine = MinidumpWriteDumpCallback; + callback.CallbackParam = &callback_context; + + dump_generator.SetCallback(&callback); + } + + if (!dump_generator.GenerateDumpFile(dump_path)) { return false; } return dump_generator.WriteMinidump(); diff --git a/toolkit/crashreporter/breakpad-client/windows/crash_generation/crash_generation_server.h b/toolkit/crashreporter/breakpad-client/windows/crash_generation/crash_generation_server.h index 3e2da6b268fa..11543af982cc 100644 --- a/toolkit/crashreporter/breakpad-client/windows/crash_generation/crash_generation_server.h +++ b/toolkit/crashreporter/breakpad-client/windows/crash_generation/crash_generation_server.h @@ -32,6 +32,7 @@ #include #include +#include "windows/common/minidump_callback.h" #include "windows/common/ipc_protocol.h" #include "windows/crash_generation/minidump_generator.h" #include "common/scoped_ptr.h" @@ -297,6 +298,8 @@ class CrashGenerationServer { // Whether to include heap regions of the crashing context. bool include_context_heap_; + AppMemoryList app_memory_info_; + // Disable copy ctor and operator=. CrashGenerationServer(const CrashGenerationServer& crash_server); CrashGenerationServer& operator=(const CrashGenerationServer& crash_server); From 2a041b5a52428babf7a887d4501645ab732d92bb Mon Sep 17 00:00:00 2001 From: Cervantes Yu Date: Tue, 20 Jun 2017 15:01:37 +0800 Subject: [PATCH 019/106] Bug 1286802 - Part 7: Don't generate overlapping app memory regions in the crash dump. r=ted This deduplicates/merges app memory regions so that we don't generate overlapping memory regions in the minidump. We need to do this because older version of dbghelp.dll (e.g. that on Windows 7) doesn't handle overlaps in its memory list, which causes xpcshell bustages. The test bustages are fixed by sorting and merging app memory regions before adding to the input to the MinidumpWriteDump callback. Memory regions on the thread stack is also excluded because thread stack memory is included in the minidump by default. MozReview-Commit-ID: 541vzG0b0kC --- .../windows/common/minidump_callback.cc | 147 ++++++++++++++++-- .../windows/common/minidump_callback.h | 4 + .../windows/handler/exception_handler.cc | 3 + 3 files changed, 144 insertions(+), 10 deletions(-) diff --git a/toolkit/crashreporter/breakpad-client/windows/common/minidump_callback.cc b/toolkit/crashreporter/breakpad-client/windows/common/minidump_callback.cc index 3de48159d89b..4e0ace145e2d 100644 --- a/toolkit/crashreporter/breakpad-client/windows/common/minidump_callback.cc +++ b/toolkit/crashreporter/breakpad-client/windows/common/minidump_callback.cc @@ -6,6 +6,8 @@ #include "minidump_callback.h" +#include + #include #include @@ -14,22 +16,69 @@ namespace google_breakpad { static const DWORD sHeapRegionSize= 1024; static DWORD sPageSize = 0; -bool GetAppMemoryFromRegister(HANDLE aProcess, - RegisterValueType aRegister, - AppMemoryList::iterator aResult) -{ - static_assert(sizeof(RegisterValueType) == sizeof(void*), - "Size mismatch between DWORD/DWORD64 and void*"); +using NtQueryInformationThreadFunc = decltype(::NtQueryInformationThread); +static NtQueryInformationThreadFunc* sNtQueryInformationThread = nullptr; + +namespace { +enum { + ThreadBasicInformation, +}; + +struct CLIENT_ID { + PVOID UniqueProcess; + PVOID UniqueThread; +}; + +struct THREAD_BASIC_INFORMATION { + NTSTATUS ExitStatus; + PVOID TebBaseAddress; + CLIENT_ID ClientId; + KAFFINITY AffMask; + DWORD Priority; + DWORD BasePriority; +}; +} + +void InitAppMemoryInternal() +{ if (!sPageSize) { SYSTEM_INFO systemInfo; GetSystemInfo(&systemInfo); sPageSize = systemInfo.dwPageSize; } + if (!sNtQueryInformationThread) { + sNtQueryInformationThread = (NtQueryInformationThreadFunc*) + (::GetProcAddress(::GetModuleHandleW(L"ntdll.dll"), + "NtQueryInformationThread")); + } +} + +bool GetAppMemoryFromRegister(HANDLE aProcess, + const NT_TIB* aTib, + RegisterValueType aRegister, + AppMemory* aResult) +{ + static_assert(sizeof(RegisterValueType) == sizeof(void*), + "Size mismatch between DWORD/DWORD64 and void*"); + + if (!sPageSize) { + // GetSystemInfo() should not fail, but bail out just in case it fails. + return false; + } + RegisterValueType addr = aRegister; addr &= ~(static_cast(sPageSize) - 1); + if (aTib) { + if (aRegister >= (RegisterValueType)aTib->StackLimit && + aRegister <= (RegisterValueType)aTib->StackBase) { + // aRegister points to the stack. + return false; + } + } + MEMORY_BASIC_INFORMATION memInfo; memset(&memInfo, 0, sizeof(memInfo)); SIZE_T rv = ::VirtualQueryEx(aProcess, @@ -79,6 +128,42 @@ FindNextPreallocated(AppMemoryList& aList, AppMemoryList::iterator aBegin) { return it; } +static bool +GetThreadTib(HANDLE aProcess, DWORD aThreadId, NT_TIB* aTib) { + HANDLE threadHandle = ::OpenThread(THREAD_QUERY_INFORMATION, + FALSE, + aThreadId); + if (!threadHandle) { + return false; + } + + if (!sNtQueryInformationThread) { + return false; + } + + THREAD_BASIC_INFORMATION threadInfo; + auto status = (*sNtQueryInformationThread)(threadHandle, + (THREADINFOCLASS)ThreadBasicInformation, + &threadInfo, + sizeof(threadInfo), + NULL); + if (!NT_SUCCESS(status)) { + return false; + } + + auto readSuccess = ::ReadProcessMemory(aProcess, + threadInfo.TebBaseAddress, + aTib, + sizeof(*aTib), + NULL); + if (!readSuccess) { + return false; + } + + ::CloseHandle(threadHandle); + return true; +} + void IncludeAppMemoryFromExceptionContext(HANDLE aProcess, DWORD aThreadId, AppMemoryList& aList, @@ -87,6 +172,14 @@ void IncludeAppMemoryFromExceptionContext(HANDLE aProcess, RegisterValueType heapAddrCandidates[kExceptionAppMemoryRegions]; size_t numElements = 0; + NT_TIB tib; + memset(&tib, 0, sizeof(tib)); + if (!GetThreadTib(aProcess, aThreadId, &tib)) { + // Fail to query thread stack range: only safe to include the region around + // the instruction pointer. + aInstructionPointerOnly = true; + } + // Add registers that might have a heap address to heapAddrCandidates. // Note that older versions of DbgHelp.dll don't correctly put the memory // around the faulting instruction pointer into the minidump. Include Rip/Eip @@ -121,16 +214,50 @@ void IncludeAppMemoryFromExceptionContext(HANDLE aProcess, heapAddrCandidates[numElements++] = aExceptionContext->Rip; #endif - auto appMemory = aList.begin(); + // Inplace sort the candidates for excluding or merging memory regions. + auto begin = &heapAddrCandidates[0], end = &heapAddrCandidates[numElements]; + std::make_heap(begin, end); + std::sort_heap(begin, end); + + auto appMemory = FindNextPreallocated(aList, aList.begin()); for (size_t i = 0; i < numElements; i++) { - appMemory = FindNextPreallocated(aList, appMemory); if (appMemory == aList.end()) { break; } - if (GetAppMemoryFromRegister(aProcess, heapAddrCandidates[i], appMemory)) { - appMemory++; + AppMemory tmp{}; + if (!GetAppMemoryFromRegister(aProcess, + aInstructionPointerOnly ? nullptr : &tib, + heapAddrCandidates[i], + &tmp)) { + continue; } + + if (!(tmp.ptr && tmp.length)) { + // Something unexpected happens. Skip this candidate. + continue; + } + + if (!appMemory->ptr) { + *appMemory = tmp; + continue; + } + + if (appMemory->ptr + appMemory->length > tmp.ptr) { + // The beginning of the next region fall within the range of the previous + // region: merge into one. Note that we don't merge adjacent regions like + // [0, 99] and [100, 199] in case we cross the border of memory allocation + // regions. + appMemory->length = tmp.ptr + tmp.length - appMemory->ptr; + continue; + } + + appMemory = FindNextPreallocated(aList, ++appMemory); + if (appMemory == aList.end()) { + break; + } + + *appMemory = tmp; } } diff --git a/toolkit/crashreporter/breakpad-client/windows/common/minidump_callback.h b/toolkit/crashreporter/breakpad-client/windows/common/minidump_callback.h index 89eda745b4e6..04326a511302 100644 --- a/toolkit/crashreporter/breakpad-client/windows/common/minidump_callback.h +++ b/toolkit/crashreporter/breakpad-client/windows/common/minidump_callback.h @@ -68,6 +68,10 @@ BOOL CALLBACK MinidumpWriteDumpCallback( const PMINIDUMP_CALLBACK_INPUT callback_input, PMINIDUMP_CALLBACK_OUTPUT callback_output); +// Called during startup to initialize system information used by +// IncludeAppMemoryFromExceptionContext(). +void InitAppMemoryInternal(); + } // namespace google_breakpad #endif diff --git a/toolkit/crashreporter/breakpad-client/windows/handler/exception_handler.cc b/toolkit/crashreporter/breakpad-client/windows/handler/exception_handler.cc index 84d5a8cdca29..48676b849fe7 100644 --- a/toolkit/crashreporter/breakpad-client/windows/handler/exception_handler.cc +++ b/toolkit/crashreporter/breakpad-client/windows/handler/exception_handler.cc @@ -1000,6 +1000,9 @@ void ExceptionHandler::UnregisterAppMemory(void* ptr) { void ExceptionHandler::set_include_context_heap(bool enabled) { if (enabled && !include_context_heap_) { + // Initialize system info used in including context heap regions. + InitAppMemoryInternal(); + // Preallocate AppMemory instances for exception context if necessary. auto predicate = [] (const AppMemory& appMemory) -> bool { return appMemory.preallocated; From fa0f77a97bb56f3d4d39aa994312094f299fef96 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Tue, 20 Jun 2017 00:05:39 -0700 Subject: [PATCH 020/106] Unified build fixes to APZ. (bug 1373890, r=kats) --- gfx/layers/apz/public/IAPZCTreeManager.cpp | 10 ++-------- gfx/layers/apz/public/IAPZCTreeManager.h | 8 ++++++++ gfx/layers/apz/src/APZCTreeManager.cpp | 2 +- gfx/layers/apz/util/APZEventState.cpp | 2 +- 4 files changed, 12 insertions(+), 10 deletions(-) diff --git a/gfx/layers/apz/public/IAPZCTreeManager.cpp b/gfx/layers/apz/public/IAPZCTreeManager.cpp index 372257ae4576..91cb6904f8aa 100644 --- a/gfx/layers/apz/public/IAPZCTreeManager.cpp +++ b/gfx/layers/apz/public/IAPZCTreeManager.cpp @@ -25,14 +25,8 @@ WillHandleMouseEvent(const WidgetMouseEventBase& aEvent) aEvent.mMessage == eDragEnd; } -// Returns whether or not a wheel event action will be (or was) performed by -// APZ. If this returns true, the event must not perform a synchronous -// scroll. -// -// Even if this returns false, all wheel events in APZ-aware widgets must -// be sent through APZ so they are transformed correctly for TabParent. -static bool -WillHandleWheelEvent(WidgetWheelEvent* aEvent) +/* static */ bool +IAPZCTreeManager::WillHandleWheelEvent(WidgetWheelEvent* aEvent) { return EventStateManager::WheelEventIsScrollAction(aEvent) && (aEvent->mDeltaMode == nsIDOMWheelEvent::DOM_DELTA_LINE || diff --git a/gfx/layers/apz/public/IAPZCTreeManager.h b/gfx/layers/apz/public/IAPZCTreeManager.h index b334ec2058bc..ca6bb245f9a7 100644 --- a/gfx/layers/apz/public/IAPZCTreeManager.h +++ b/gfx/layers/apz/public/IAPZCTreeManager.h @@ -192,6 +192,14 @@ public: */ virtual void ProcessTouchVelocity(uint32_t aTimestampMs, float aSpeedY) = 0; + // Returns whether or not a wheel event action will be (or was) performed by + // APZ. If this returns true, the event must not perform a synchronous + // scroll. + // + // Even if this returns false, all wheel events in APZ-aware widgets must + // be sent through APZ so they are transformed correctly for TabParent. + static bool WillHandleWheelEvent(WidgetWheelEvent* aEvent); + protected: // Methods to help process WidgetInputEvents (or manage conversion to/from InputData) diff --git a/gfx/layers/apz/src/APZCTreeManager.cpp b/gfx/layers/apz/src/APZCTreeManager.cpp index 10a99cccb7d3..e54075e438fc 100644 --- a/gfx/layers/apz/src/APZCTreeManager.cpp +++ b/gfx/layers/apz/src/APZCTreeManager.cpp @@ -841,7 +841,7 @@ WillHandleInput(const PanGestureOrScrollWheelInput& aPanInput) } WidgetWheelEvent wheelEvent = aPanInput.ToWidgetWheelEvent(nullptr); - return WillHandleWheelEvent(&wheelEvent); + return IAPZCTreeManager::WillHandleWheelEvent(&wheelEvent); } void diff --git a/gfx/layers/apz/util/APZEventState.cpp b/gfx/layers/apz/util/APZEventState.cpp index 9d9df8f05d4f..368a6e139f92 100644 --- a/gfx/layers/apz/util/APZEventState.cpp +++ b/gfx/layers/apz/util/APZEventState.cpp @@ -207,7 +207,7 @@ APZEventState::ProcessSingleTap(const CSSPoint& aPoint, APZES_LOG("Active element uses style, scheduling timer for click event\n"); nsCOMPtr timer = do_CreateInstance(NS_TIMER_CONTRACTID); - TabChild* tabChild = widget->GetOwningTabChild(); + dom::TabChild* tabChild = widget->GetOwningTabChild(); if (tabChild && XRE_IsContentProcess()) { timer->SetTarget( From e8ba095d7e009e07b69272703b18f4d074253c2a Mon Sep 17 00:00:00 2001 From: David Anderson Date: Tue, 20 Jun 2017 01:17:15 -0700 Subject: [PATCH 021/106] Fix potential memory leak in TextureSourceProviderMLGPU. (bug 1365879 part 1, r=mattwoodrow) --- gfx/layers/Compositor.cpp | 1 - gfx/layers/TextureSourceProvider.cpp | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/gfx/layers/Compositor.cpp b/gfx/layers/Compositor.cpp index 86f14bce635d..4f6f058ee059 100644 --- a/gfx/layers/Compositor.cpp +++ b/gfx/layers/Compositor.cpp @@ -50,7 +50,6 @@ void Compositor::Destroy() { TextureSourceProvider::Destroy(); - FlushPendingNotifyNotUsed(); mIsDestroyed = true; } diff --git a/gfx/layers/TextureSourceProvider.cpp b/gfx/layers/TextureSourceProvider.cpp index 055aa77bda9c..7eb9627f26ab 100644 --- a/gfx/layers/TextureSourceProvider.cpp +++ b/gfx/layers/TextureSourceProvider.cpp @@ -62,6 +62,7 @@ void TextureSourceProvider::Destroy() { ReadUnlockTextures(); + FlushPendingNotifyNotUsed(); } } // namespace layers From c960b8b567107dd4e976787c4c8f5f21a095c43f Mon Sep 17 00:00:00 2001 From: David Anderson Date: Tue, 20 Jun 2017 01:17:15 -0700 Subject: [PATCH 022/106] Add IsRectilinear to Matrix4x4. (bug 1365879 part 2, r=mattwoodrow) This allows testing if a matrix is rectilinear without first converting to a Matrix3x3. --- gfx/2d/Matrix.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/gfx/2d/Matrix.h b/gfx/2d/Matrix.h index 6a3fcf4728e3..b256f82c2918 100644 --- a/gfx/2d/Matrix.h +++ b/gfx/2d/Matrix.h @@ -1579,6 +1579,20 @@ public: return _14 != 0 || _24 != 0 || _34 != 0 || _44 != 1; } + /* Returns true if the matrix is a rectilinear transformation (i.e. + * grid-aligned rectangles are transformed to grid-aligned rectangles). + * This should only be called on 2D matrices. + */ + bool IsRectilinear() const { + MOZ_ASSERT(Is2D()); + if (gfx::FuzzyEqual(_12, 0) && gfx::FuzzyEqual(_21, 0)) { + return true; + } else if (gfx::FuzzyEqual(_22, 0) && gfx::FuzzyEqual(_11, 0)) { + return true; + } + return false; + } + /** * Convert between typed and untyped matrices. */ From 38ad81dd801bcfc1b3ab85127a239067311337c7 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Tue, 20 Jun 2017 01:17:16 -0700 Subject: [PATCH 023/106] Extract some compositor functions into a LayersHelpers header. (bug 1365879 part 3, r=mattwoodrow) --- gfx/layers/Compositor.cpp | 41 +++---------- gfx/layers/LayersHelpers.cpp | 59 +++++++++++++++++++ gfx/layers/LayersHelpers.h | 54 +++++++++++++++++ .../composite/ContainerLayerComposite.cpp | 2 +- gfx/layers/moz.build | 2 + gfx/layers/wr/WebRenderBridgeChild.cpp | 4 +- gfx/layers/wr/WebRenderPaintedLayer.cpp | 1 + 7 files changed, 128 insertions(+), 35 deletions(-) create mode 100644 gfx/layers/LayersHelpers.cpp create mode 100644 gfx/layers/LayersHelpers.h diff --git a/gfx/layers/Compositor.cpp b/gfx/layers/Compositor.cpp index 4f6f058ee059..8666bca9f22e 100644 --- a/gfx/layers/Compositor.cpp +++ b/gfx/layers/Compositor.cpp @@ -14,6 +14,7 @@ #include "mozilla/mozalloc.h" // for operator delete, etc #include "gfx2DGlue.h" #include "nsAppRunner.h" +#include "LayersHelpers.h" namespace mozilla { @@ -267,7 +268,7 @@ Compositor::DrawTriangles(const nsTArray& aTriangles, } } -static nsTArray +nsTArray GenerateTexturedTriangles(const gfx::Polygon& aPolygon, const gfx::Rect& aRect, const gfx::Rect& aTexRect) @@ -584,37 +585,13 @@ Compositor::ComputeBackdropCopyRect(const gfx::Rect& aRect, gfx::IntPoint rtOffset = GetCurrentRenderTarget()->GetOrigin(); gfx::IntSize rtSize = GetCurrentRenderTarget()->GetSize(); - gfx::IntRect renderBounds(0, 0, rtSize.width, rtSize.height); - renderBounds.IntersectRect(renderBounds, aClipRect); - renderBounds.MoveBy(rtOffset); - - // Apply the layer transform. - gfx::RectDouble dest = aTransform.TransformAndClipBounds( - gfx::RectDouble(aRect.x, aRect.y, aRect.width, aRect.height), - gfx::RectDouble(renderBounds.x, renderBounds.y, renderBounds.width, renderBounds.height)); - dest -= rtOffset; - - // Ensure we don't round out to -1, which trips up Direct3D. - dest.IntersectRect(dest, gfx::RectDouble(0, 0, rtSize.width, rtSize.height)); - - if (aOutLayerQuad) { - *aOutLayerQuad = gfx::Rect(dest.x, dest.y, dest.width, dest.height); - } - - // Round out to integer. - gfx::IntRect result; - dest.RoundOut(); - dest.ToIntRect(&result); - - // Create a transform from adjusted clip space to render target space, - // translate it for the backdrop rect, then transform it into the backdrop's - // uv-space. - gfx::Matrix4x4 transform; - transform.PostScale(rtSize.width, rtSize.height, 1.0); - transform.PostTranslate(-result.x, -result.y, 0.0); - transform.PostScale(1 / float(result.width), 1 / float(result.height), 1.0); - *aOutTransform = transform; - return result; + return layers::ComputeBackdropCopyRect( + aRect, + aClipRect, + aTransform, + gfx::IntRect(rtOffset, rtSize), + aOutTransform, + aOutLayerQuad); } gfx::IntRect diff --git a/gfx/layers/LayersHelpers.cpp b/gfx/layers/LayersHelpers.cpp new file mode 100644 index 000000000000..dd4178254ccd --- /dev/null +++ b/gfx/layers/LayersHelpers.cpp @@ -0,0 +1,59 @@ +/* -*- Mode: C++; tab-width: 20; indent-tabs-mode: nil; c-basic-offset: 2 -*- + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + +#include "LayersHelpers.h" + +namespace mozilla { +namespace layers { + +using namespace gfx; + +gfx::IntRect +ComputeBackdropCopyRect(const gfx::Rect& aRect, + const gfx::IntRect& aClipRect, + const gfx::Matrix4x4& aTransform, + const gfx::IntRect& aRenderTargetRect, + gfx::Matrix4x4* aOutTransform, + gfx::Rect* aOutLayerQuad) +{ + // Compute the clip. + IntPoint rtOffset = aRenderTargetRect.TopLeft(); + IntSize rtSize = aRenderTargetRect.Size(); + + gfx::IntRect renderBounds(0, 0, rtSize.width, rtSize.height); + renderBounds.IntersectRect(renderBounds, aClipRect); + renderBounds.MoveBy(rtOffset); + + // Apply the layer transform. + RectDouble dest = aTransform.TransformAndClipBounds( + RectDouble(aRect.x, aRect.y, aRect.width, aRect.height), + RectDouble(renderBounds.x, renderBounds.y, renderBounds.width, renderBounds.height)); + dest -= rtOffset; + + // Ensure we don't round out to -1, which trips up Direct3D. + dest.IntersectRect(dest, RectDouble(0, 0, rtSize.width, rtSize.height)); + + if (aOutLayerQuad) { + *aOutLayerQuad = Rect(dest.x, dest.y, dest.width, dest.height); + } + + // Round out to integer. + IntRect result; + dest.RoundOut(); + dest.ToIntRect(&result); + + // Create a transform from adjusted clip space to render target space, + // translate it for the backdrop rect, then transform it into the backdrop's + // uv-space. + Matrix4x4 transform; + transform.PostScale(rtSize.width, rtSize.height, 1.0); + transform.PostTranslate(-result.x, -result.y, 0.0); + transform.PostScale(1 / float(result.width), 1 / float(result.height), 1.0); + *aOutTransform = transform; + return result; +} + +} // namespace layers +} // namespace mozilla diff --git a/gfx/layers/LayersHelpers.h b/gfx/layers/LayersHelpers.h new file mode 100644 index 000000000000..dd88d8e5fcf7 --- /dev/null +++ b/gfx/layers/LayersHelpers.h @@ -0,0 +1,54 @@ +/* -*- Mode: C++; tab-width: 20; indent-tabs-mode: nil; c-basic-offset: 2 -*- + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + +#ifndef mozilla_gfx_layers_LayersHelpers_h +#define mozilla_gfx_layers_LayersHelpers_h + +#include "mozilla/Maybe.h" +#include "mozilla/gfx/Rect.h" +#include "mozilla/gfx/Matrix.h" +#include "mozilla/gfx/Polygon.h" +#include "nsTArray.h" + +namespace mozilla { +namespace layers { + +class Layer; + +// Compute compositor information for copying the backdrop for a mix-blend +// operation. +gfx::IntRect +ComputeBackdropCopyRect(const gfx::Rect& aRect, + const gfx::IntRect& aClipRect, + const gfx::Matrix4x4& aTransform, + const gfx::IntRect& aRenderTargetRect, + gfx::Matrix4x4* aOutTransform, + gfx::Rect* aOutLayerQuad = nullptr); + +// Compute uv-coordinates for a rect inside a texture. +template +static inline gfx::Rect +TextureRectToCoords(const T& aRect, const gfx::IntSize& aSize) +{ + return gfx::Rect( + float(aRect.x) / aSize.width, + float(aRect.y) / aSize.height, + float(aRect.width) / aSize.width, + float(aRect.height) / aSize.height); +} + +// This is defined in Compositor.cpp. +nsTArray +GenerateTexturedTriangles(const gfx::Polygon& aPolygon, + const gfx::Rect& aRect, + const gfx::Rect& aTexRect); + +// This is defined in ContainerLayerComposite.cpp. +void TransformLayerGeometry(Layer* aLayer, Maybe& aGeometry); + +} // namespace layers +} // namespace mozilla + +#endif // mozilla_gfx_layers_LayersHelpers_h diff --git a/gfx/layers/composite/ContainerLayerComposite.cpp b/gfx/layers/composite/ContainerLayerComposite.cpp index 4a4fdb12fb48..9ecb33b21fd6 100755 --- a/gfx/layers/composite/ContainerLayerComposite.cpp +++ b/gfx/layers/composite/ContainerLayerComposite.cpp @@ -129,7 +129,7 @@ SelectLayerGeometry(const Maybe& aParentGeometry, return Nothing(); } -static void +void TransformLayerGeometry(Layer* aLayer, Maybe& aGeometry) { Layer* parent = aLayer; diff --git a/gfx/layers/moz.build b/gfx/layers/moz.build index eb6b53125547..20ed5a38a58b 100644 --- a/gfx/layers/moz.build +++ b/gfx/layers/moz.build @@ -191,6 +191,7 @@ EXPORTS.mozilla.layers += [ 'ipc/VideoBridgeParent.h', 'LayerAttributes.h', 'LayerMetricsWrapper.h', + 'LayersHelpers.h', 'LayersTypes.h', 'opengl/CompositingRenderTargetOGL.h', 'opengl/CompositorOGL.h', @@ -387,6 +388,7 @@ UNIFIED_SOURCES += [ 'ipc/VideoBridgeChild.cpp', 'ipc/VideoBridgeParent.cpp', 'LayerScope.cpp', + 'LayersHelpers.cpp', 'LayersLogging.cpp', 'LayerSorter.cpp', 'LayersTypes.cpp', diff --git a/gfx/layers/wr/WebRenderBridgeChild.cpp b/gfx/layers/wr/WebRenderBridgeChild.cpp index 5195675ac130..7e341d25cadc 100644 --- a/gfx/layers/wr/WebRenderBridgeChild.cpp +++ b/gfx/layers/wr/WebRenderBridgeChild.cpp @@ -237,7 +237,7 @@ WebRenderBridgeChild::GetFontKeyForScaledFont(gfx::ScaledFont* aScaledFont) (aScaledFont->GetType() == gfx::FontType::MAC) || (aScaledFont->GetType() == gfx::FontType::FONTCONFIG)); - RefPtr unscaled = aScaledFont->GetUnscaledFont(); + RefPtr unscaled = aScaledFont->GetUnscaledFont(); MOZ_ASSERT(unscaled); wr::FontKey key = {0, 0}; @@ -264,7 +264,7 @@ WebRenderBridgeChild::GetFontKeyForScaledFont(gfx::ScaledFont* aScaledFont) void WebRenderBridgeChild::RemoveExpiredFontKeys() { - uint32_t counter = UnscaledFont::DeletionCounter(); + uint32_t counter = gfx::UnscaledFont::DeletionCounter(); if (mFontKeysDeleted != counter) { mFontKeysDeleted = counter; for (auto iter = mFontKeys.Iter(); !iter.Done(); iter.Next()) { diff --git a/gfx/layers/wr/WebRenderPaintedLayer.cpp b/gfx/layers/wr/WebRenderPaintedLayer.cpp index 5ecc66fac10e..fbbd01dec33b 100644 --- a/gfx/layers/wr/WebRenderPaintedLayer.cpp +++ b/gfx/layers/wr/WebRenderPaintedLayer.cpp @@ -7,6 +7,7 @@ #include "LayersLogging.h" #include "mozilla/ArrayUtils.h" +#include "mozilla/layers/ImageClient.h" #include "mozilla/layers/ScrollingLayersHelper.h" #include "mozilla/layers/StackingContextHelper.h" #include "mozilla/layers/WebRenderBridgeChild.h" From 381b89af79725d3cb64bc08501d7c3ad1164a4ab Mon Sep 17 00:00:00 2001 From: David Anderson Date: Tue, 20 Jun 2017 01:17:16 -0700 Subject: [PATCH 024/106] Expose ContentTextureHost buffer properties. (bug 1365879 part 4, r=mattwoodrow) --- gfx/layers/composite/ContentHost.h | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/gfx/layers/composite/ContentHost.h b/gfx/layers/composite/ContentHost.h index e3cce6356582..d94346827c20 100644 --- a/gfx/layers/composite/ContentHost.h +++ b/gfx/layers/composite/ContentHost.h @@ -63,6 +63,11 @@ public: // tiles are fading in. virtual void AddAnimationInvalidation(nsIntRegion& aRegion) { } + virtual gfx::IntRect GetBufferRect() { + MOZ_ASSERT_UNREACHABLE("Must be implemented in derived class"); + return gfx::IntRect(); + } + protected: explicit ContentHost(const TextureInfo& aTextureInfo) : CompositableHost(aTextureInfo) @@ -92,13 +97,19 @@ public: explicit ContentHostBase(const TextureInfo& aTextureInfo); virtual ~ContentHostBase(); -protected: + virtual gfx::IntRect GetBufferRect() override { return mBufferRect; } + virtual nsIntPoint GetOriginOffset() { return mBufferRect.TopLeft() - mBufferRotation; } + gfx::IntPoint GetBufferRotation() + { + return mBufferRotation.ToUnknownPoint(); + } +protected: gfx::IntRect mBufferRect; nsIntPoint mBufferRotation; bool mInitialised; From ebf9c4b1f504a569c24a378eff9c9ca9c4d01670 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Tue, 20 Jun 2017 01:17:16 -0700 Subject: [PATCH 025/106] Allow safe downcasting to ContentTextureHost and ImageHost. (bug 1365879 part 5, r=mattwoodrow) --- gfx/layers/composite/CompositableHost.h | 4 ++++ gfx/layers/composite/ContentHost.h | 2 ++ gfx/layers/composite/ImageHost.h | 1 + 3 files changed, 7 insertions(+) diff --git a/gfx/layers/composite/CompositableHost.h b/gfx/layers/composite/CompositableHost.h index cf4d845526f8..c959f5004c34 100644 --- a/gfx/layers/composite/CompositableHost.h +++ b/gfx/layers/composite/CompositableHost.h @@ -39,11 +39,13 @@ namespace layers { class Layer; class LayerComposite; +class ImageHost; class Compositor; class ThebesBufferData; class TiledContentHost; class CompositableParentManager; class WebRenderImageHost; +class ContentHostTexture; struct EffectChain; struct ImageCompositeNotificationInfo { @@ -146,6 +148,8 @@ public: Layer* GetLayer() const { return mLayer; } void SetLayer(Layer* aLayer) { mLayer = aLayer; } + virtual ContentHostTexture* AsContentHostTexture() { return nullptr; } + virtual ImageHost* AsImageHost() { return nullptr; } virtual TiledContentHost* AsTiledContentHost() { return nullptr; } virtual WebRenderImageHost* AsWebRenderImageHost() { return nullptr; } diff --git a/gfx/layers/composite/ContentHost.h b/gfx/layers/composite/ContentHost.h index d94346827c20..9557c6359058 100644 --- a/gfx/layers/composite/ContentHost.h +++ b/gfx/layers/composite/ContentHost.h @@ -177,6 +177,8 @@ public: mLocked = false; } + ContentHostTexture* AsContentHostTexture() override { return this; } + virtual already_AddRefed GenEffect(const gfx::SamplingFilter aSamplingFilter) override; protected: diff --git a/gfx/layers/composite/ImageHost.h b/gfx/layers/composite/ImageHost.h index 77dcb0b484ca..8b3e87174092 100644 --- a/gfx/layers/composite/ImageHost.h +++ b/gfx/layers/composite/ImageHost.h @@ -44,6 +44,7 @@ public: ~ImageHost(); virtual CompositableType GetType() override { return mTextureInfo.mCompositableType; } + virtual ImageHost* AsImageHost() override { return this; } virtual void Composite(Compositor* aCompositor, LayerComposite* aLayer, From fef03b008c722516a064be2b53e146ba689c4f24 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Tue, 20 Jun 2017 01:17:17 -0700 Subject: [PATCH 026/106] Add support for locklessly getting TextureSources from TextureHosts. (bug 1365879 part 6, r=mattwoodrow) --- gfx/layers/TextureDIB.cpp | 6 ++ gfx/layers/TextureDIB.h | 1 + gfx/layers/composite/GPUVideoTextureHost.cpp | 9 +++ gfx/layers/composite/GPUVideoTextureHost.h | 1 + gfx/layers/composite/TextureHost.cpp | 18 ++++- gfx/layers/composite/TextureHost.h | 12 ++- gfx/layers/d3d11/TextureD3D11.cpp | 77 +++++++++++++++----- gfx/layers/d3d11/TextureD3D11.h | 7 ++ 8 files changed, 110 insertions(+), 21 deletions(-) diff --git a/gfx/layers/TextureDIB.cpp b/gfx/layers/TextureDIB.cpp index dc95cc875c9d..008683759c4c 100644 --- a/gfx/layers/TextureDIB.cpp +++ b/gfx/layers/TextureDIB.cpp @@ -394,6 +394,12 @@ TextureHostDirectUpload::DeallocateDeviceData() bool TextureHostDirectUpload::BindTextureSource(CompositableTextureSourceRef& aTexture) +{ + return AcquireTextureSource(aTexture); +} + +bool +TextureHostDirectUpload::AcquireTextureSource(CompositableTextureSourceRef& aTexture) { if (!mTextureSource) { Updated(); diff --git a/gfx/layers/TextureDIB.h b/gfx/layers/TextureDIB.h index 452dfed5a300..de9525dee962 100644 --- a/gfx/layers/TextureDIB.h +++ b/gfx/layers/TextureDIB.h @@ -77,6 +77,7 @@ public: virtual bool HasIntermediateBuffer() const { return true; } virtual bool BindTextureSource(CompositableTextureSourceRef& aTexture) override; + virtual bool AcquireTextureSource(CompositableTextureSourceRef& aTexture) override; protected: RefPtr mProvider; diff --git a/gfx/layers/composite/GPUVideoTextureHost.cpp b/gfx/layers/composite/GPUVideoTextureHost.cpp index dddce7e542cc..31dfaf0e8974 100644 --- a/gfx/layers/composite/GPUVideoTextureHost.cpp +++ b/gfx/layers/composite/GPUVideoTextureHost.cpp @@ -51,6 +51,15 @@ GPUVideoTextureHost::BindTextureSource(CompositableTextureSourceRef& aTexture) return mWrappedTextureHost->BindTextureSource(aTexture); } +bool +GPUVideoTextureHost::AcquireTextureSource(CompositableTextureSourceRef& aTexture) +{ + if (!mWrappedTextureHost) { + return false; + } + return mWrappedTextureHost->AcquireTextureSource(aTexture); +} + void GPUVideoTextureHost::SetTextureSourceProvider(TextureSourceProvider* aProvider) { diff --git a/gfx/layers/composite/GPUVideoTextureHost.h b/gfx/layers/composite/GPUVideoTextureHost.h index 837866481557..7a298dcfe434 100644 --- a/gfx/layers/composite/GPUVideoTextureHost.h +++ b/gfx/layers/composite/GPUVideoTextureHost.h @@ -29,6 +29,7 @@ public: virtual gfx::SurfaceFormat GetFormat() const override; virtual bool BindTextureSource(CompositableTextureSourceRef& aTexture) override; + virtual bool AcquireTextureSource(CompositableTextureSourceRef& aTexture) override; virtual already_AddRefed GetAsSurface() override { diff --git a/gfx/layers/composite/TextureHost.cpp b/gfx/layers/composite/TextureHost.cpp index 950089530d9a..688ef7d0fb7c 100644 --- a/gfx/layers/composite/TextureHost.cpp +++ b/gfx/layers/composite/TextureHost.cpp @@ -544,7 +544,7 @@ bool BufferTextureHost::Lock() { MOZ_ASSERT(!mLocked); - if (!MaybeUpload(!mNeedsFullUpdate ? &mMaybeUpdatedRegion : nullptr)) { + if (!UploadIfNeeded()) { return false; } mLocked = !!mFirstSource; @@ -844,6 +844,16 @@ BufferTextureHost::BindTextureSource(CompositableTextureSourceRef& aTexture) return !!aTexture; } +bool +BufferTextureHost::AcquireTextureSource(CompositableTextureSourceRef& aTexture) +{ + if (!UploadIfNeeded()) { + return false; + } + aTexture = mFirstSource; + return !!mFirstSource; +} + void BufferTextureHost::UnbindTextureSource() { @@ -886,6 +896,12 @@ BufferTextureHost::GetYUVColorSpace() const return YUVColorSpace::UNKNOWN; } +bool +BufferTextureHost::UploadIfNeeded() +{ + return MaybeUpload(!mNeedsFullUpdate ? &mMaybeUpdatedRegion : nullptr); +} + bool BufferTextureHost::MaybeUpload(nsIntRegion *aRegion) { diff --git a/gfx/layers/composite/TextureHost.h b/gfx/layers/composite/TextureHost.h index bfc57ef64bce..dd8f075d25a0 100644 --- a/gfx/layers/composite/TextureHost.h +++ b/gfx/layers/composite/TextureHost.h @@ -444,6 +444,14 @@ public: */ virtual bool BindTextureSource(CompositableTextureSourceRef& aTexture) = 0; + /** + * Called when preparing the rendering pipeline for advanced-layers. This is + * a lockless version of BindTextureSource. + */ + virtual bool AcquireTextureSource(CompositableTextureSourceRef& aTexture) { + return false; + } + /** * Called when another TextureHost will take over. */ @@ -695,6 +703,7 @@ public: virtual void PrepareTextureSource(CompositableTextureSourceRef& aTexture) override; virtual bool BindTextureSource(CompositableTextureSourceRef& aTexture) override; + virtual bool AcquireTextureSource(CompositableTextureSourceRef& aTexture) override; virtual void UnbindTextureSource() override; @@ -740,7 +749,8 @@ public: protected: bool Upload(nsIntRegion *aRegion = nullptr); - bool MaybeUpload(nsIntRegion *aRegion = nullptr); + bool UploadIfNeeded(); + bool MaybeUpload(nsIntRegion *aRegion); bool EnsureWrappingTextureSource(); virtual void UpdatedInternal(const nsIntRegion* aRegion = nullptr) override; diff --git a/gfx/layers/d3d11/TextureD3D11.cpp b/gfx/layers/d3d11/TextureD3D11.cpp index 3398af76e793..f7985a3ce873 100644 --- a/gfx/layers/d3d11/TextureD3D11.cpp +++ b/gfx/layers/d3d11/TextureD3D11.cpp @@ -828,18 +828,8 @@ DXGITextureHostD3D11::LockInternal() return false; } - if (!mTextureSource) { - if (!mTexture && !OpenSharedHandle()) { - DeviceManagerDx::Get()->ForceDeviceReset(ForcedDeviceResetReason::OPENSHAREDHANDLE); - return false; - } - - if (mProvider) { - MOZ_RELEASE_ASSERT(mProvider->IsValid()); - mTextureSource = new DataTextureSourceD3D11(mFormat, mProvider, mTexture); - } else { - mTextureSource = new DataTextureSourceD3D11(mDevice, mFormat, mTexture); - } + if (!EnsureTextureSource()) { + return false; } mIsLocked = LockD3DTexture(mTextureSource->GetD3D11Texture()); @@ -847,6 +837,27 @@ DXGITextureHostD3D11::LockInternal() return mIsLocked; } +bool +DXGITextureHostD3D11::EnsureTextureSource() +{ + if (mTextureSource) { + return true; + } + + if (!mTexture && !OpenSharedHandle()) { + DeviceManagerDx::Get()->ForceDeviceReset(ForcedDeviceResetReason::OPENSHAREDHANDLE); + return false; + } + + if (mProvider) { + MOZ_RELEASE_ASSERT(mProvider->IsValid()); + mTextureSource = new DataTextureSourceD3D11(mFormat, mProvider, mTexture); + } else { + mTextureSource = new DataTextureSourceD3D11(mDevice, mFormat, mTexture); + } + return true; +} + void DXGITextureHostD3D11::UnlockInternal() { @@ -859,8 +870,17 @@ DXGITextureHostD3D11::BindTextureSource(CompositableTextureSourceRef& aTexture) MOZ_ASSERT(mIsLocked); // If Lock was successful we must have a valid TextureSource. MOZ_ASSERT(mTextureSource); + return AcquireTextureSource(aTexture); +} + +bool +DXGITextureHostD3D11::AcquireTextureSource(CompositableTextureSourceRef& aTexture) +{ + if (!EnsureTextureSource()) { + return false; + } aTexture = mTextureSource; - return !!aTexture; + return true; } void @@ -970,6 +990,20 @@ DXGIYCbCrTextureHostD3D11::SetTextureSourceProvider(TextureSourceProvider* aProv bool DXGIYCbCrTextureHostD3D11::Lock() +{ + if (!EnsureTextureSource()) { + return false; + } + + mIsLocked = LockD3DTexture(mTextureSources[0]->GetD3D11Texture()) && + LockD3DTexture(mTextureSources[1]->GetD3D11Texture()) && + LockD3DTexture(mTextureSources[2]->GetD3D11Texture()); + + return mIsLocked; +} + +bool +DXGIYCbCrTextureHostD3D11::EnsureTextureSource() { if (!mProvider) { NS_WARNING("no suitable compositor"); @@ -993,12 +1027,7 @@ DXGIYCbCrTextureHostD3D11::Lock() mTextureSources[0]->SetNextSibling(mTextureSources[1]); mTextureSources[1]->SetNextSibling(mTextureSources[2]); } - - mIsLocked = LockD3DTexture(mTextureSources[0]->GetD3D11Texture()) && - LockD3DTexture(mTextureSources[1]->GetD3D11Texture()) && - LockD3DTexture(mTextureSources[2]->GetD3D11Texture()); - - return mIsLocked; + return true; } void @@ -1046,6 +1075,16 @@ DXGIYCbCrTextureHostD3D11::PushExternalImage(wr::DisplayListBuilder& aBuilder, MOZ_ASSERT_UNREACHABLE("No PushExternalImage() implementation for this DXGIYCbCrTextureHostD3D11 type."); } +bool +DXGIYCbCrTextureHostD3D11::AcquireTextureSource(CompositableTextureSourceRef& aTexture) +{ + if (!EnsureTextureSource()) { + return false; + } + aTexture = mTextureSources[0].get(); + return !!aTexture; +} + bool DataTextureSourceD3D11::Update(DataSourceSurface* aSurface, nsIntRegion* aDestRegion, diff --git a/gfx/layers/d3d11/TextureD3D11.h b/gfx/layers/d3d11/TextureD3D11.h index f9e2e661bc36..0e3af41131fd 100644 --- a/gfx/layers/d3d11/TextureD3D11.h +++ b/gfx/layers/d3d11/TextureD3D11.h @@ -302,6 +302,7 @@ public: const SurfaceDescriptorD3D10& aDescriptor); virtual bool BindTextureSource(CompositableTextureSourceRef& aTexture) override; + virtual bool AcquireTextureSource(CompositableTextureSourceRef& aTexture) override; virtual void DeallocateDeviceData() override {} @@ -339,6 +340,8 @@ protected: bool LockInternal(); void UnlockInternal(); + bool EnsureTextureSource(); + RefPtr GetDevice(); bool OpenSharedHandle(); @@ -359,6 +362,7 @@ public: const SurfaceDescriptorDXGIYCbCr& aDescriptor); virtual bool BindTextureSource(CompositableTextureSourceRef& aTexture) override; + virtual bool AcquireTextureSource(CompositableTextureSourceRef& aTexture) override; virtual void DeallocateDeviceData() override{} @@ -393,6 +397,9 @@ public: wr::ImageRendering aFilter, Range& aImageKeys) override; +private: + bool EnsureTextureSource(); + protected: RefPtr GetDevice(); From 8c98d77c9f8d161103bc97bfb584ba710d4e3d94 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Tue, 20 Jun 2017 01:17:17 -0700 Subject: [PATCH 027/106] Allow locklessly acquiring the TextureSources for ContentHosts. (bug 1365879 part 7, r=mattwoodrow) --- gfx/layers/composite/ContentHost.cpp | 20 ++++++++++++++++++++ gfx/layers/composite/ContentHost.h | 7 +++++++ 2 files changed, 27 insertions(+) diff --git a/gfx/layers/composite/ContentHost.cpp b/gfx/layers/composite/ContentHost.cpp index 974a45838fcb..6d885a33539d 100644 --- a/gfx/layers/composite/ContentHost.cpp +++ b/gfx/layers/composite/ContentHost.cpp @@ -217,6 +217,26 @@ ContentHostTexture::Composite(Compositor* aCompositor, aTransform, mFlashCounter); } +RefPtr +ContentHostTexture::AcquireTextureSource() +{ + if (!mTextureHost || !mTextureHost->AcquireTextureSource(mTextureSource)) { + return nullptr; + } + return mTextureSource.get(); +} + +RefPtr +ContentHostTexture::AcquireTextureSourceOnWhite() +{ + if (!mTextureHostOnWhite || + !mTextureHostOnWhite->AcquireTextureSource(mTextureSourceOnWhite)) + { + return nullptr; + } + return mTextureSourceOnWhite.get(); +} + void ContentHostTexture::UseTextureHost(const nsTArray& aTextures) { diff --git a/gfx/layers/composite/ContentHost.h b/gfx/layers/composite/ContentHost.h index 9557c6359058..b7d3ce141c7e 100644 --- a/gfx/layers/composite/ContentHost.h +++ b/gfx/layers/composite/ContentHost.h @@ -177,6 +177,13 @@ public: mLocked = false; } + bool HasComponentAlpha() const { + return !!mTextureHostOnWhite; + } + + RefPtr AcquireTextureSource(); + RefPtr AcquireTextureSourceOnWhite(); + ContentHostTexture* AsContentHostTexture() override { return this; } virtual already_AddRefed GenEffect(const gfx::SamplingFilter aSamplingFilter) override; From fe0a9c8ecaa8b58795dd0a91a886d50e5d6563c4 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Tue, 20 Jun 2017 01:17:18 -0700 Subject: [PATCH 028/106] Refactor ImageHost to allow acquiring the current TextureSource without locking the underlying TextureHost. (bug 1365879 part 8, r=mattwoodrow) --- gfx/layers/composite/ImageHost.cpp | 92 +++++++++++++------ gfx/layers/composite/ImageHost.h | 25 +++++ .../composite/LayerManagerComposite.cpp | 9 ++ gfx/layers/composite/LayerManagerComposite.h | 29 +++--- 4 files changed, 114 insertions(+), 41 deletions(-) diff --git a/gfx/layers/composite/ImageHost.cpp b/gfx/layers/composite/ImageHost.cpp index bb749943d6c2..2f62f76a0b76 100644 --- a/gfx/layers/composite/ImageHost.cpp +++ b/gfx/layers/composite/ImageHost.cpp @@ -195,23 +195,12 @@ ImageHost::Composite(Compositor* aCompositor, const nsIntRegion* aVisibleRegion, const Maybe& aGeometry) { - HostLayerManager* lm = GetLayerManager(); - if (!lm) { + RenderInfo info; + if (!PrepareToRender(aCompositor, &info)) { return; } - int imageIndex = ChooseImageIndex(); - if (imageIndex < 0) { - return; - } - - if (uint32_t(imageIndex) + 1 < mImages.Length()) { - lm->CompositeUntil(mImages[imageIndex + 1].mTimeStamp + TimeDuration::FromMilliseconds(BIAS_TIME_MS)); - } - - TimedImage* img = &mImages[imageIndex]; - img->mTextureHost->SetTextureSourceProvider(aCompositor); - SetCurrentTextureHost(img->mTextureHost); + TimedImage* img = info.img; { AutoLockCompositableHost autoLock(this); @@ -250,20 +239,6 @@ ImageHost::Composite(Compositor* aCompositor, diagnosticFlags |= DiagnosticFlags::YCBCR; } - if (mLastFrameID != img->mFrameID || mLastProducerID != img->mProducerID) { - if (mAsyncRef) { - ImageCompositeNotificationInfo info; - info.mImageBridgeProcessId = mAsyncRef.mProcessId; - info.mNotification = ImageCompositeNotification( - mAsyncRef.mHandle, - img->mTimeStamp, lm->GetCompositionTime(), - img->mFrameID, img->mProducerID); - static_cast(aLayer->GetLayerManager())-> - AppendImageCompositeNotification(info); - } - mLastFrameID = img->mFrameID; - mLastProducerID = img->mProducerID; - } aEffectChain.mPrimaryEffect = effect; gfx::Rect pictureRect(0, 0, img->mPictureRect.width, img->mPictureRect.height); BigImageIterator* it = mCurrentTextureSource->AsBigImageIterator(); @@ -327,6 +302,67 @@ ImageHost::Composite(Compositor* aCompositor, } } + FinishRendering(info); +} + +bool +ImageHost::PrepareToRender(TextureSourceProvider* aProvider, RenderInfo* aOutInfo) +{ + HostLayerManager* lm = GetLayerManager(); + if (!lm) { + return false; + } + + int imageIndex = ChooseImageIndex(); + if (imageIndex < 0) { + return false; + } + + if (uint32_t(imageIndex) + 1 < mImages.Length()) { + lm->CompositeUntil(mImages[imageIndex + 1].mTimeStamp + TimeDuration::FromMilliseconds(BIAS_TIME_MS)); + } + + TimedImage* img = &mImages[imageIndex]; + img->mTextureHost->SetTextureSourceProvider(aProvider); + SetCurrentTextureHost(img->mTextureHost); + + aOutInfo->imageIndex = imageIndex; + aOutInfo->img = img; + aOutInfo->host = mCurrentTextureHost; + return true; +} + +RefPtr +ImageHost::AcquireTextureSource(const RenderInfo& aInfo) +{ + MOZ_ASSERT(aInfo.host == mCurrentTextureHost); + if (!aInfo.host->AcquireTextureSource(mCurrentTextureSource)) { + return nullptr; + } + return mCurrentTextureSource.get(); +} + +void +ImageHost::FinishRendering(const RenderInfo& aInfo) +{ + HostLayerManager* lm = GetLayerManager(); + TimedImage* img = aInfo.img; + int imageIndex = aInfo.imageIndex; + + if (mLastFrameID != img->mFrameID || mLastProducerID != img->mProducerID) { + if (mAsyncRef) { + ImageCompositeNotificationInfo info; + info.mImageBridgeProcessId = mAsyncRef.mProcessId; + info.mNotification = ImageCompositeNotification( + mAsyncRef.mHandle, + img->mTimeStamp, lm->GetCompositionTime(), + img->mFrameID, img->mProducerID); + lm->AppendImageCompositeNotification(info); + } + mLastFrameID = img->mFrameID; + mLastProducerID = img->mProducerID; + } + // Update mBias last. This can change which frame ChooseImage(Index) would // return, and we don't want to do that until we've finished compositing // since callers of ChooseImage(Index) assume the same image will be chosen diff --git a/gfx/layers/composite/ImageHost.h b/gfx/layers/composite/ImageHost.h index 8b3e87174092..bd880daba21d 100644 --- a/gfx/layers/composite/ImageHost.h +++ b/gfx/layers/composite/ImageHost.h @@ -90,6 +90,31 @@ public: bool IsOpaque(); + struct RenderInfo { + int imageIndex; + TimedImage* img; + RefPtr host; + + RenderInfo() : imageIndex(-1), img(nullptr) + {} + }; + + // Acquire rendering information for the current frame. + bool PrepareToRender(TextureSourceProvider* aProvider, RenderInfo* aOutInfo); + + // Acquire the TextureSource for the currently prepared frame. + RefPtr AcquireTextureSource(const RenderInfo& aInfo); + + // Send ImageComposite notifications and update the ChooseImage bias. + void FinishRendering(const RenderInfo& aInfo); + + // This should only be called inside a lock, or during rendering. It is + // infallible to enforce this. + TextureHost* CurrentTextureHost() const { + MOZ_ASSERT(mCurrentTextureHost); + return mCurrentTextureHost; + } + protected: // ImageComposite virtual TimeStamp GetCompositionTime() const override; diff --git a/gfx/layers/composite/LayerManagerComposite.cpp b/gfx/layers/composite/LayerManagerComposite.cpp index 4d71ef64e2d6..0d5c17e5c67b 100644 --- a/gfx/layers/composite/LayerManagerComposite.cpp +++ b/gfx/layers/composite/LayerManagerComposite.cpp @@ -1406,6 +1406,15 @@ LayerManagerComposite::AutoAddMaskEffect::~AutoAddMaskEffect() mCompositable->RemoveMaskEffect(); } +bool +LayerManagerComposite::IsCompositingToScreen() const +{ + if (!mCompositor) { + return true; + } + return !mCompositor->GetTargetContext(); +} + LayerComposite::LayerComposite(LayerManagerComposite *aManager) : HostLayer(aManager) , mCompositeManager(aManager) diff --git a/gfx/layers/composite/LayerManagerComposite.h b/gfx/layers/composite/LayerManagerComposite.h index eecff5b6bbb5..49d31e5e9ded 100644 --- a/gfx/layers/composite/LayerManagerComposite.h +++ b/gfx/layers/composite/LayerManagerComposite.h @@ -132,6 +132,18 @@ public: aNotifications->AppendElements(Move(mImageCompositeNotifications)); } + void AppendImageCompositeNotification(const ImageCompositeNotificationInfo& aNotification) + { + // Only send composite notifications when we're drawing to the screen, + // because that's what they mean. + // Also when we're not drawing to the screen, DidComposite will not be + // called to extract and send these notifications, so they might linger + // and contain stale ImageContainerParent pointers. + if (IsCompositingToScreen()) { + mImageCompositeNotifications.AppendElement(aNotification); + } + } + /** * LayerManagerComposite provides sophisticated debug overlays * that can request a next frame. @@ -164,6 +176,9 @@ public: virtual bool AlwaysScheduleComposite() const { return false; } + virtual bool IsCompositingToScreen() const { + return false; + } void RecordPaintTimes(const PaintTiming& aTiming); void RecordUpdateTime(float aValue); @@ -290,6 +305,7 @@ public: CreateOptimalMaskDrawTarget(const IntSize &aSize) override; virtual const char* Name() const override { return ""; } + virtual bool IsCompositingToScreen() const override; bool AlwaysScheduleComposite() const override; @@ -386,19 +402,6 @@ public: bool AsyncPanZoomEnabled() const override; -public: - void AppendImageCompositeNotification(const ImageCompositeNotificationInfo& aNotification) - { - // Only send composite notifications when we're drawing to the screen, - // because that's what they mean. - // Also when we're not drawing to the screen, DidComposite will not be - // called to extract and send these notifications, so they might linger - // and contain stale ImageContainerParent pointers. - if (!mCompositor->GetTargetContext()) { - mImageCompositeNotifications.AppendElement(aNotification); - } - } - public: virtual TextureFactoryIdentifier GetTextureFactoryIdentifier() override { From 7bb49bf46e5361d5bd4433cb15d02cc100554787 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Tue, 20 Jun 2017 01:17:18 -0700 Subject: [PATCH 029/106] Add a way to extract TextureSources from a BigImageIterator. (bug 1365879 part 9, r=mattwoodrow) --- gfx/layers/composite/TextureHost.h | 7 +++++++ gfx/layers/d3d11/TextureD3D11.cpp | 7 +++++++ gfx/layers/d3d11/TextureD3D11.h | 2 ++ 3 files changed, 16 insertions(+) diff --git a/gfx/layers/composite/TextureHost.h b/gfx/layers/composite/TextureHost.h index dd8f075d25a0..85f82fe37155 100644 --- a/gfx/layers/composite/TextureHost.h +++ b/gfx/layers/composite/TextureHost.h @@ -172,6 +172,13 @@ public: MOZ_ASSERT(mCompositableCount >= 0); } + // When iterating as a BigImage, this creates temporary TextureSources wrapping + // individual tiles. + virtual RefPtr ExtractCurrentTile() { + NS_WARNING("Implementation does not expose tile sources"); + return nullptr; + } + int NumCompositableRefs() const { return mCompositableCount; } protected: diff --git a/gfx/layers/d3d11/TextureD3D11.cpp b/gfx/layers/d3d11/TextureD3D11.cpp index f7985a3ce873..553bb200c042 100644 --- a/gfx/layers/d3d11/TextureD3D11.cpp +++ b/gfx/layers/d3d11/TextureD3D11.cpp @@ -1215,6 +1215,13 @@ DataTextureSourceD3D11::GetD3D11Texture() const : mTexture; } +RefPtr +DataTextureSourceD3D11::ExtractCurrentTile() +{ + MOZ_ASSERT(mIterating); + return new DataTextureSourceD3D11(mDevice, mFormat, mTileTextures[mCurrentTile]); +} + ID3D11ShaderResourceView* DataTextureSourceD3D11::GetShaderResourceView() { diff --git a/gfx/layers/d3d11/TextureD3D11.h b/gfx/layers/d3d11/TextureD3D11.h index 0e3af41131fd..5ae7a1d7c58d 100644 --- a/gfx/layers/d3d11/TextureD3D11.h +++ b/gfx/layers/d3d11/TextureD3D11.h @@ -264,6 +264,8 @@ public: mCurrentTile = 0; } + RefPtr ExtractCurrentTile() override; + void Reset(); protected: gfx::IntRect GetTileRect(uint32_t aIndex) const; From 0eb14ec2aab0225c4cdeaea9725d5039c26c3f2e Mon Sep 17 00:00:00 2001 From: David Anderson Date: Tue, 20 Jun 2017 01:17:19 -0700 Subject: [PATCH 030/106] Add IsHidden to CompositorWidget. (bug 1365879 part 10, r=rhunt) --- gfx/layers/d3d11/CompositorD3D11.cpp | 2 +- widget/CompositorWidget.h | 7 +++++++ widget/windows/WinCompositorWidget.cpp | 6 ++++++ widget/windows/WinCompositorWidget.h | 1 + 4 files changed, 15 insertions(+), 1 deletion(-) diff --git a/gfx/layers/d3d11/CompositorD3D11.cpp b/gfx/layers/d3d11/CompositorD3D11.cpp index fe36f9ffa0c1..882362ad6759 100644 --- a/gfx/layers/d3d11/CompositorD3D11.cpp +++ b/gfx/layers/d3d11/CompositorD3D11.cpp @@ -967,7 +967,7 @@ CompositorD3D11::BeginFrame(const nsIntRegion& aInvalidRegion, // this is important because resizing our buffers when mimised will fail and // cause a crash when we're restored. NS_ASSERTION(mHwnd, "Couldn't find an HWND when initialising?"); - if (::IsIconic(mHwnd)) { + if (mWidget->IsHidden()) { // We are not going to render, and not going to call EndFrame so we have to // read-unlock our textures to prevent them from accumulating. ReadUnlockTextures(); diff --git a/widget/CompositorWidget.h b/widget/CompositorWidget.h index a82b9fd27fcd..39319f88e60b 100644 --- a/widget/CompositorWidget.h +++ b/widget/CompositorWidget.h @@ -257,6 +257,13 @@ public: return mOptions; } + /** + * Return true if the window is hidden and should not be composited. + */ + virtual bool IsHidden() const { + return false; + } + /** * This is only used by out-of-process compositors. */ diff --git a/widget/windows/WinCompositorWidget.cpp b/widget/windows/WinCompositorWidget.cpp index a8c3a9704ca0..cb642607598b 100644 --- a/widget/windows/WinCompositorWidget.cpp +++ b/widget/windows/WinCompositorWidget.cpp @@ -327,5 +327,11 @@ WinCompositorWidget::FreeWindowSurface(HDC dc) ::ReleaseDC(mWnd, dc); } +bool +WinCompositorWidget::IsHidden() const +{ + return ::IsIconic(mWnd); +} + } // namespace widget } // namespace mozilla diff --git a/widget/windows/WinCompositorWidget.h b/widget/windows/WinCompositorWidget.h index 46edbf41e2d4..de8f1357389e 100644 --- a/widget/windows/WinCompositorWidget.h +++ b/widget/windows/WinCompositorWidget.h @@ -64,6 +64,7 @@ public: CompositorWidgetDelegate* AsDelegate() override { return this; } + bool IsHidden() const override; // CompositorWidgetDelegate overrides. void EnterPresentLock() override; From 8beaf4758edeffe4c89c1cdcc4a969f21eacd785 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Tue, 20 Jun 2017 01:17:19 -0700 Subject: [PATCH 031/106] Allow LayerManagers to force intermediate surfaces for blend containers. (bug 1365879 part 11, r=mattwoodrow) --- gfx/layers/Layers.cpp | 3 +++ gfx/layers/Layers.h | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/gfx/layers/Layers.cpp b/gfx/layers/Layers.cpp index ba6361dabed7..7b7682942369 100644 --- a/gfx/layers/Layers.cpp +++ b/gfx/layers/Layers.cpp @@ -1336,6 +1336,9 @@ ContainerLayer::DefaultComputeEffectiveTransforms(const Matrix4x4& aTransformToS } else if ((!idealTransform.Is2D() || AnyAncestorOrThisIs3DContextLeaf()) && Creates3DContextWithExtendingChildren()) { useIntermediateSurface = true; + } else if (blendMode != CompositionOp::OP_OVER && + Manager()->BlendingRequiresIntermediateSurface()) { + useIntermediateSurface = true; } else { useIntermediateSurface = false; gfx::Matrix contTransform; diff --git a/gfx/layers/Layers.h b/gfx/layers/Layers.h index 0074097e8845..5e46ffdd5d47 100644 --- a/gfx/layers/Layers.h +++ b/gfx/layers/Layers.h @@ -352,6 +352,12 @@ public: */ virtual bool AreComponentAlphaLayersEnabled(); + /** + * Returns true if this LayerManager always requires an intermediate surface + * to render blend operations. + */ + virtual bool BlendingRequiresIntermediateSurface() { return false; } + /** * CONSTRUCTION PHASE ONLY * Set the root layer. The root layer is initially null. If there is From fe18840512558eba1860f69171c4f11420cfd38d Mon Sep 17 00:00:00 2001 From: David Anderson Date: Tue, 20 Jun 2017 01:17:19 -0700 Subject: [PATCH 032/106] Don't require a Compositor for texture backend checks. (bug 1365879 part 12, r=mattwoodrow) --- gfx/layers/composite/LayerManagerComposite.h | 10 ++++------ gfx/layers/ipc/CrossProcessCompositorBridgeParent.cpp | 8 ++++++-- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/gfx/layers/composite/LayerManagerComposite.h b/gfx/layers/composite/LayerManagerComposite.h index 49d31e5e9ded..f549b32fc830 100644 --- a/gfx/layers/composite/LayerManagerComposite.h +++ b/gfx/layers/composite/LayerManagerComposite.h @@ -98,10 +98,6 @@ public: MOZ_CRASH("GFX: Call on compositor, not LayerManagerComposite"); } - virtual LayersBackend GetBackendType() override - { - MOZ_CRASH("GFX: Shouldn't be called for composited layer manager"); - } virtual void GetBackendName(nsAString& name) override { MOZ_CRASH("GFX: Shouldn't be called for composited layer manager"); @@ -403,10 +399,12 @@ public: bool AsyncPanZoomEnabled() const override; public: - virtual TextureFactoryIdentifier GetTextureFactoryIdentifier() override - { + virtual TextureFactoryIdentifier GetTextureFactoryIdentifier() override { return mCompositor->GetTextureFactoryIdentifier(); } + virtual LayersBackend GetBackendType() override { + return mCompositor ? mCompositor->GetBackendType() : LayersBackend::LAYERS_NONE; + } void ForcePresent() override { mCompositor->ForcePresent(); } diff --git a/gfx/layers/ipc/CrossProcessCompositorBridgeParent.cpp b/gfx/layers/ipc/CrossProcessCompositorBridgeParent.cpp index e5a870c020ab..18252c76e228 100644 --- a/gfx/layers/ipc/CrossProcessCompositorBridgeParent.cpp +++ b/gfx/layers/ipc/CrossProcessCompositorBridgeParent.cpp @@ -506,6 +506,11 @@ CrossProcessCompositorBridgeParent::AllocPTextureParent(const SurfaceDescriptor& TextureFlags flags = aFlags; + LayersBackend actualBackend = LayersBackend::LAYERS_NONE; + if (state && state->mLayerManager) { + actualBackend = state->mLayerManager->GetBackendType(); + } + if (!state) { // The compositor was recreated, and we're receiving layers updates for a // a layer manager that will soon be discarded or invalidated. We can't @@ -513,8 +518,7 @@ CrossProcessCompositorBridgeParent::AllocPTextureParent(const SurfaceDescriptor& // kill the content process. Instead, we signal that the underlying // TextureHost should not attempt to access the compositor. flags |= TextureFlags::INVALID_COMPOSITOR; - } else if (state->mLayerManager && state->mLayerManager->GetCompositor() && - aLayersBackend != state->mLayerManager->GetCompositor()->GetBackendType()) { + } else if (actualBackend != LayersBackend::LAYERS_NONE && aLayersBackend != actualBackend) { gfxDevCrash(gfx::LogReason::PAllocTextureBackendMismatch) << "Texture backend is wrong"; } From 2398d9932b9d9376cec56c86f9077faedda850ef Mon Sep 17 00:00:00 2001 From: David Anderson Date: Tue, 20 Jun 2017 01:17:20 -0700 Subject: [PATCH 033/106] Don't require a Compositor to track async compositable ownership. (bug 1365879 part 13, r=mattwoodrow) --- gfx/layers/Compositor.cpp | 3 +-- gfx/layers/Compositor.h | 18 ------------------ gfx/layers/composite/CompositableHost.cpp | 2 +- gfx/layers/composite/CompositableHost.h | 6 +++--- gfx/layers/composite/LayerManagerComposite.cpp | 1 + gfx/layers/composite/LayerManagerComposite.h | 11 +++++++++++ .../ipc/CompositableTransactionParent.cpp | 2 +- gfx/layers/ipc/CompositorBridgeParent.cpp | 8 ++++---- gfx/layers/ipc/CompositorBridgeParent.h | 2 +- gfx/layers/ipc/LayerTransactionParent.cpp | 8 ++------ 10 files changed, 25 insertions(+), 36 deletions(-) diff --git a/gfx/layers/Compositor.cpp b/gfx/layers/Compositor.cpp index 8666bca9f22e..19955e8a6507 100644 --- a/gfx/layers/Compositor.cpp +++ b/gfx/layers/Compositor.cpp @@ -22,8 +22,7 @@ namespace layers { Compositor::Compositor(widget::CompositorWidget* aWidget, CompositorBridgeParent* aParent) - : mCompositorID(0) - , mDiagnosticTypes(DiagnosticTypes::NO_DIAGNOSTIC) + : mDiagnosticTypes(DiagnosticTypes::NO_DIAGNOSTIC) , mParent(aParent) , mPixelsPerFrame(0) , mPixelsFilled(0) diff --git a/gfx/layers/Compositor.h b/gfx/layers/Compositor.h index a9b761ad2fee..92e21d4b48bc 100644 --- a/gfx/layers/Compositor.h +++ b/gfx/layers/Compositor.h @@ -469,23 +469,6 @@ public: bool NotifyNotUsedAfterComposition(TextureHost* aTextureHost) override; - /** - * Each Compositor has a unique ID. - * This ID is used to keep references to each Compositor in a map accessed - * from the compositor thread only, so that async compositables can find - * the right compositor parent and schedule compositing even if the compositor - * changed. - */ - uint32_t GetCompositorID() const - { - return mCompositorID; - } - void SetCompositorID(uint32_t aID) - { - MOZ_ASSERT(mCompositorID == 0, "The compositor ID must be set only once."); - mCompositorID = aID; - } - /** * Notify the compositor that composition is being paused. This allows the * compositor to temporarily release any resources. @@ -587,7 +570,6 @@ protected: */ TimeStamp mLastCompositionEndTime; - uint32_t mCompositorID; DiagnosticTypes mDiagnosticTypes; CompositorBridgeParent* mParent; diff --git a/gfx/layers/composite/CompositableHost.cpp b/gfx/layers/composite/CompositableHost.cpp index 4b5a89914f63..c1af7cbc8b03 100644 --- a/gfx/layers/composite/CompositableHost.cpp +++ b/gfx/layers/composite/CompositableHost.cpp @@ -31,7 +31,7 @@ class Compositor; CompositableHost::CompositableHost(const TextureInfo& aTextureInfo) : mTextureInfo(aTextureInfo) - , mCompositorID(0) + , mCompositorBridgeID(0) , mLayer(nullptr) , mFlashCounter(0) , mAttached(false) diff --git a/gfx/layers/composite/CompositableHost.h b/gfx/layers/composite/CompositableHost.h index c959f5004c34..6e19b96554e1 100644 --- a/gfx/layers/composite/CompositableHost.h +++ b/gfx/layers/composite/CompositableHost.h @@ -218,12 +218,12 @@ public: ? DIAGNOSTIC_FLASH_COUNTER_MAX : mFlashCounter + 1; } - uint64_t GetCompositorID() const { return mCompositorID; } + uint64_t GetCompositorBridgeID() const { return mCompositorBridgeID; } const AsyncCompositableRef& GetAsyncRef() const { return mAsyncRef; } void SetAsyncRef(const AsyncCompositableRef& aRef) { mAsyncRef = aRef; } - void SetCompositorID(uint64_t aID) { mCompositorID = aID; } + void SetCompositorBridgeID(uint64_t aID) { mCompositorBridgeID = aID; } virtual bool Lock() { return false; } @@ -246,7 +246,7 @@ protected: protected: TextureInfo mTextureInfo; AsyncCompositableRef mAsyncRef; - uint64_t mCompositorID; + uint64_t mCompositorBridgeID; RefPtr mTextureSourceProvider; Layer* mLayer; uint32_t mFlashCounter; // used when the pref "layers.flash-borders" is true. diff --git a/gfx/layers/composite/LayerManagerComposite.cpp b/gfx/layers/composite/LayerManagerComposite.cpp index 0d5c17e5c67b..1b6fc01fffe0 100644 --- a/gfx/layers/composite/LayerManagerComposite.cpp +++ b/gfx/layers/composite/LayerManagerComposite.cpp @@ -118,6 +118,7 @@ LayerManagerComposite::ClearCachedResources(Layer* aSubtree) HostLayerManager::HostLayerManager() : mDebugOverlayWantsNextFrame(false) , mWarningLevel(0.0f) + , mCompositorBridgeID(0) , mWindowOverlayChanged(false) , mLastPaintTime(TimeDuration::Forever()) , mRenderStartTime(TimeStamp::Now()) diff --git a/gfx/layers/composite/LayerManagerComposite.h b/gfx/layers/composite/LayerManagerComposite.h index f549b32fc830..076f14a3a864 100644 --- a/gfx/layers/composite/LayerManagerComposite.h +++ b/gfx/layers/composite/LayerManagerComposite.h @@ -199,6 +199,16 @@ public: return mCompositeUntilTime; } + // We maintaining a global mapping from ID to CompositorBridgeParent for + // async compositables. + uint32_t GetCompositorBridgeID() const { + return mCompositorBridgeID; + } + void SetCompositorBridgeID(uint32_t aID) { + MOZ_ASSERT(mCompositorBridgeID == 0, "The compositor ID must be set only once."); + mCompositorBridgeID = aID; + } + protected: bool mDebugOverlayWantsNextFrame; nsTArray mImageCompositeNotifications; @@ -207,6 +217,7 @@ protected: float mWarningLevel; mozilla::TimeStamp mWarnTime; UniquePtr mDiagnostics; + uint32_t mCompositorBridgeID; bool mWindowOverlayChanged; TimeDuration mLastPaintTime; diff --git a/gfx/layers/ipc/CompositableTransactionParent.cpp b/gfx/layers/ipc/CompositableTransactionParent.cpp index edbcf5ad850c..91e374d9c3a0 100644 --- a/gfx/layers/ipc/CompositableTransactionParent.cpp +++ b/gfx/layers/ipc/CompositableTransactionParent.cpp @@ -48,7 +48,7 @@ class Compositor; static bool ScheduleComposition(CompositableHost* aCompositable) { - uint64_t id = aCompositable->GetCompositorID(); + uint64_t id = aCompositable->GetCompositorBridgeID(); if (!id) { return false; } diff --git a/gfx/layers/ipc/CompositorBridgeParent.cpp b/gfx/layers/ipc/CompositorBridgeParent.cpp index 4879c4455431..0ae259c98ff5 100644 --- a/gfx/layers/ipc/CompositorBridgeParent.cpp +++ b/gfx/layers/ipc/CompositorBridgeParent.cpp @@ -378,13 +378,13 @@ CompositorBridgeParent::Initialize() MOZ_ASSERT(CompositorThread(), "The compositor thread must be Initialized before instanciating a CompositorBridgeParent."); - mCompositorID = 0; + mCompositorBridgeID = 0; // FIXME: This holds on the the fact that right now the only thing that // can destroy this instance is initialized on the compositor thread after // this task has been processed. MOZ_ASSERT(CompositorLoop()); CompositorLoop()->PostTask(NewRunnableFunction(&AddCompositor, - this, &mCompositorID)); + this, &mCompositorBridgeID)); CompositorLoop()->PostTask(NewRunnableFunction(SetThreadPriority)); @@ -647,7 +647,7 @@ CompositorBridgeParent::ActorDestroy(ActorDestroyReason why) StopAndClearResources(); - RemoveCompositor(mCompositorID); + RemoveCompositor(mCompositorBridgeID); mCompositionManager = nullptr; @@ -1377,6 +1377,7 @@ CompositorBridgeParent::InitializeLayerManager(const nsTArray& aB } mLayerManager = new LayerManagerComposite(mCompositor); + mLayerManager->SetCompositorBridgeID(mCompositorBridgeID); MonitorAutoLock lock(*sIndirectLayerTreesLock); sIndirectLayerTrees[mRootLayerTreeID].mLayerManager = mLayerManager; @@ -1423,7 +1424,6 @@ CompositorBridgeParent::NewCompositor(const nsTArray& aBackendHin } #endif - compositor->SetCompositorID(mCompositorID); return compositor; } diff --git a/gfx/layers/ipc/CompositorBridgeParent.h b/gfx/layers/ipc/CompositorBridgeParent.h index 99d301b8f96b..e0a63b51b08f 100644 --- a/gfx/layers/ipc/CompositorBridgeParent.h +++ b/gfx/layers/ipc/CompositorBridgeParent.h @@ -590,7 +590,7 @@ protected: mozilla::Monitor mPauseCompositionMonitor; mozilla::Monitor mResumeCompositionMonitor; - uint64_t mCompositorID; + uint64_t mCompositorBridgeID; uint64_t mRootLayerTreeID; bool mOverrideComposeReadiness; diff --git a/gfx/layers/ipc/LayerTransactionParent.cpp b/gfx/layers/ipc/LayerTransactionParent.cpp index a9af4a7bb03c..52ed99a794bc 100644 --- a/gfx/layers/ipc/LayerTransactionParent.cpp +++ b/gfx/layers/ipc/LayerTransactionParent.cpp @@ -400,9 +400,7 @@ LayerTransactionParent::RecvUpdate(const TransactionInfo& aInfo) if (!Attach(AsLayer(op.layer()), host, false)) { return IPC_FAIL_NO_REASON(this); } - if (mLayerManager->GetCompositor()) { - host->SetCompositorID(mLayerManager->GetCompositor()->GetCompositorID()); - } + host->SetCompositorBridgeID(mLayerManager->GetCompositorBridgeID()); break; } case Edit::TOpAttachAsyncCompositable: { @@ -423,9 +421,7 @@ LayerTransactionParent::RecvUpdate(const TransactionInfo& aInfo) if (!Attach(AsLayer(op.layer()), host, true)) { return IPC_FAIL_NO_REASON(this); } - if (mLayerManager->GetCompositor()) { - host->SetCompositorID(mLayerManager->GetCompositor()->GetCompositorID()); - } + host->SetCompositorBridgeID(mLayerManager->GetCompositorBridgeID()); break; } default: From 86c146b37a4396c8c59fd7f11bda70292b4d0bd8 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Tue, 20 Jun 2017 01:17:20 -0700 Subject: [PATCH 034/106] Don't require a Compositor for setting DiagnosticTypes. (bug 1365879 part 14, r=mattwoodrow) --- gfx/layers/composite/LayerManagerComposite.h | 4 ++++ gfx/layers/ipc/LayerTransactionParent.cpp | 3 +-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/gfx/layers/composite/LayerManagerComposite.h b/gfx/layers/composite/LayerManagerComposite.h index 076f14a3a864..4328d54168f9 100644 --- a/gfx/layers/composite/LayerManagerComposite.h +++ b/gfx/layers/composite/LayerManagerComposite.h @@ -118,6 +118,7 @@ public: virtual void EndTransaction(const TimeStamp& aTimeStamp, EndTransactionFlags aFlags = END_DEFAULT) = 0; virtual void UpdateRenderBounds(const gfx::IntRect& aRect) {} + virtual void SetDiagnosticTypes(DiagnosticTypes aDiagnostics) {} virtual HostLayerManager* AsHostLayerManager() override { return this; @@ -416,6 +417,9 @@ public: virtual LayersBackend GetBackendType() override { return mCompositor ? mCompositor->GetBackendType() : LayersBackend::LAYERS_NONE; } + virtual void SetDiagnosticTypes(DiagnosticTypes aDiagnostics) override { + mCompositor->SetDiagnosticTypes(aDiagnostics); + } void ForcePresent() override { mCompositor->ForcePresent(); } diff --git a/gfx/layers/ipc/LayerTransactionParent.cpp b/gfx/layers/ipc/LayerTransactionParent.cpp index 52ed99a794bc..4c2005c03cce 100644 --- a/gfx/layers/ipc/LayerTransactionParent.cpp +++ b/gfx/layers/ipc/LayerTransactionParent.cpp @@ -273,8 +273,7 @@ LayerTransactionParent::RecvUpdate(const TransactionInfo& aInfo) break; } case Edit::TOpSetDiagnosticTypes: { - mLayerManager->GetCompositor()->SetDiagnosticTypes( - edit.get_OpSetDiagnosticTypes().diagnostics()); + mLayerManager->SetDiagnosticTypes(edit.get_OpSetDiagnosticTypes().diagnostics()); break; } case Edit::TOpWindowOverlayChanged: { From afe518d37ab322f75654ca308d0a6a254b3461f3 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Tue, 20 Jun 2017 01:17:21 -0700 Subject: [PATCH 035/106] Add an RAII helper for read-unlocking textures. (bug 1365879 part 15, r=mattwoodrow) --- gfx/layers/TextureSourceProvider.h | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/gfx/layers/TextureSourceProvider.h b/gfx/layers/TextureSourceProvider.h index c0615f589094..2489e1923196 100644 --- a/gfx/layers/TextureSourceProvider.h +++ b/gfx/layers/TextureSourceProvider.h @@ -102,11 +102,25 @@ public: // used to composite). virtual bool IsValid() const = 0; +public: + class MOZ_STACK_CLASS AutoReadUnlockTextures + { + public: + explicit AutoReadUnlockTextures(TextureSourceProvider* aProvider) + : mProvider(aProvider) + {} + ~AutoReadUnlockTextures() { + mProvider->ReadUnlockTextures(); + } + + private: + RefPtr mProvider; + }; + protected: // Should be called at the end of each composition. void ReadUnlockTextures(); -protected: virtual ~TextureSourceProvider(); private: From af21dfb2af23d800470d5a80b79830cf9518ff64 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Tue, 20 Jun 2017 01:17:21 -0700 Subject: [PATCH 036/106] Allow ContainerLayers to track their invalid regions. (bug 1365879 part 16, r=mattwoodrow) --- gfx/layers/LayerTreeInvalidation.cpp | 17 ++++++++++++----- gfx/layers/Layers.h | 6 ++++-- 2 files changed, 16 insertions(+), 7 deletions(-) diff --git a/gfx/layers/LayerTreeInvalidation.cpp b/gfx/layers/LayerTreeInvalidation.cpp index 4c841478d163..3de5968e1f5d 100644 --- a/gfx/layers/LayerTreeInvalidation.cpp +++ b/gfx/layers/LayerTreeInvalidation.cpp @@ -123,7 +123,7 @@ NotifySubdocumentInvalidation(Layer* aLayer, NotifySubDocInvalidationFunc aCallb aLayer, [aCallback] (Layer* layer) { - layer->ClearInvalidRect(); + layer->ClearInvalidRegion(); if (layer->GetMaskLayer()) { NotifySubdocumentInvalidation(layer->GetMaskLayer(), aCallback); } @@ -252,7 +252,7 @@ public: } } - mLayer->ClearInvalidRect(); + mLayer->ClearInvalidRegion(); return result; } @@ -322,12 +322,13 @@ public: container->CheckCanary(); bool childrenChanged = false; - + bool invalidateWholeLayer = false; if (mPreXScale != container->GetPreXScale() || mPreYScale != container->GetPreYScale()) { invalidOfLayer = OldTransformedBounds(); AddRegion(invalidOfLayer, NewTransformedBounds()); childrenChanged = true; + invalidateWholeLayer = true; // Can't bail out early, we need to update the child container layers } @@ -419,6 +420,13 @@ public: container->SetChildrenChanged(true); } + if (container->UseIntermediateSurface()) { + IntRect bounds = invalidateWholeLayer + ? mLayer->GetLocalVisibleRegion().ToUnknownRegion().GetBounds() + : result.GetBounds(); + container->SetInvalidCompositeRect(bounds); + } + if (!mLayer->Extend3DContext()) { // |result| contains invalid regions only of children. result.Transform(GetTransformForInvalidation(mLayer)); @@ -427,7 +435,6 @@ public: LTI_DUMP(invalidOfLayer, "invalidOfLayer"); result.OrWith(invalidOfLayer); - return result; } @@ -739,7 +746,7 @@ LayerProperties::ClearInvalidations(Layer *aLayer) aLayer, [] (Layer* layer) { - layer->ClearInvalidRect(); + layer->ClearInvalidRegion(); if (layer->GetMaskLayer()) { ClearInvalidations(layer->GetMaskLayer()); } diff --git a/gfx/layers/Layers.h b/gfx/layers/Layers.h index 5e46ffdd5d47..aa543070e34b 100644 --- a/gfx/layers/Layers.h +++ b/gfx/layers/Layers.h @@ -1806,7 +1806,7 @@ public: * Clear the invalid rect, marking the layer as being identical to what is currently * composited. */ - virtual void ClearInvalidRect() { mInvalidRegion.SetEmpty(); } + virtual void ClearInvalidRegion() { mInvalidRegion.SetEmpty(); } // These functions allow attaching an AsyncPanZoomController to this layer, // and can be used anytime. @@ -2044,7 +2044,7 @@ public: mValidRegionIsCurrent = false; } - void ClearInvalidRect() override + void ClearInvalidRegion() override { // mInvalidRegion is about to be reset. This is the last chance to apply // any pending changes from it to mValidRegion. Do that by calling @@ -2335,6 +2335,8 @@ public: } nsTArray& GetFilterChain() { return mFilterChain; } + + virtual void SetInvalidCompositeRect(const gfx::IntRect& aRect) {} protected: friend class ReadbackProcessor; From 94ab9190f284f07f8c0d09bb9510a73a745e4a98 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Tue, 20 Jun 2017 01:17:21 -0700 Subject: [PATCH 037/106] Rename LayerManager::Composite to LayerManager::ScheduleComposite. (bug 1365879 part 17, r=mattwoodrow) --- dom/plugins/base/nsPluginInstanceOwner.cpp | 2 +- gfx/layers/Layers.h | 2 +- gfx/layers/client/ClientLayerManager.cpp | 2 +- gfx/layers/client/ClientLayerManager.h | 2 +- gfx/layers/wr/WebRenderLayerManager.cpp | 2 +- gfx/layers/wr/WebRenderLayerManager.h | 2 +- layout/base/nsLayoutUtils.cpp | 2 +- widget/gtk/nsWindow.cpp | 2 +- widget/windows/nsWindowGfx.cpp | 6 +++--- 9 files changed, 11 insertions(+), 11 deletions(-) diff --git a/dom/plugins/base/nsPluginInstanceOwner.cpp b/dom/plugins/base/nsPluginInstanceOwner.cpp index 249f412f795f..a5f525aba5ac 100644 --- a/dom/plugins/base/nsPluginInstanceOwner.cpp +++ b/dom/plugins/base/nsPluginInstanceOwner.cpp @@ -1617,7 +1617,7 @@ void nsPluginInstanceOwner::Recomposite() { clm->SendInvalidRegion( clm->GetRoot()->GetLocalVisibleRegion().ToUnknownRegion().GetBounds()); - clm->Composite(); + clm->ScheduleComposite(); } void nsPluginInstanceOwner::RequestFullScreen() { diff --git a/gfx/layers/Layers.h b/gfx/layers/Layers.h index aa543070e34b..c4abf12987f9 100644 --- a/gfx/layers/Layers.h +++ b/gfx/layers/Layers.h @@ -327,7 +327,7 @@ public: * for this LayerManager. Useful in conjunction with the END_NO_REMOTE_COMPOSITE * flag to EndTransaction. */ - virtual void Composite() {} + virtual void ScheduleComposite() {} virtual void SetNeedsComposite(bool aNeedsComposite) {} virtual bool NeedsComposite() const { return false; } diff --git a/gfx/layers/client/ClientLayerManager.cpp b/gfx/layers/client/ClientLayerManager.cpp index ea518c729ead..e11c3c6b425a 100644 --- a/gfx/layers/client/ClientLayerManager.cpp +++ b/gfx/layers/client/ClientLayerManager.cpp @@ -491,7 +491,7 @@ ClientLayerManager::GetCompositorBridgeChild() } void -ClientLayerManager::Composite() +ClientLayerManager::ScheduleComposite() { mForwarder->Composite(); } diff --git a/gfx/layers/client/ClientLayerManager.h b/gfx/layers/client/ClientLayerManager.h index 6dce9958810d..8ddefa51e106 100644 --- a/gfx/layers/client/ClientLayerManager.h +++ b/gfx/layers/client/ClientLayerManager.h @@ -187,7 +187,7 @@ public: } virtual bool NeedsComposite() const override { return mNeedsComposite; } - virtual void Composite() override; + virtual void ScheduleComposite() override; virtual void GetFrameUniformity(FrameUniformityData* aFrameUniformityData) override; virtual void DidComposite(uint64_t aTransactionId, diff --git a/gfx/layers/wr/WebRenderLayerManager.cpp b/gfx/layers/wr/WebRenderLayerManager.cpp index 1e1d3b8fb5cb..92b1f46bc7d2 100644 --- a/gfx/layers/wr/WebRenderLayerManager.cpp +++ b/gfx/layers/wr/WebRenderLayerManager.cpp @@ -509,7 +509,7 @@ WebRenderLayerManager::SendInvalidRegion(const nsIntRegion& aRegion) } void -WebRenderLayerManager::Composite() +WebRenderLayerManager::ScheduleComposite() { WrBridge()->SendForceComposite(); } diff --git a/gfx/layers/wr/WebRenderLayerManager.h b/gfx/layers/wr/WebRenderLayerManager.h index 5c3614da3f31..18f9f0180d72 100644 --- a/gfx/layers/wr/WebRenderLayerManager.h +++ b/gfx/layers/wr/WebRenderLayerManager.h @@ -90,7 +90,7 @@ public: virtual void SendInvalidRegion(const nsIntRegion& aRegion) override; - virtual void Composite() override; + virtual void ScheduleComposite() override; virtual void SetNeedsComposite(bool aNeedsComposite) override { diff --git a/layout/base/nsLayoutUtils.cpp b/layout/base/nsLayoutUtils.cpp index 4150155dc445..f7de58ca515f 100644 --- a/layout/base/nsLayoutUtils.cpp +++ b/layout/base/nsLayoutUtils.cpp @@ -3801,7 +3801,7 @@ nsLayoutUtils::PaintFrame(gfxContext* aRenderingContext, nsIFrame* aFrame, // transaction because we wanted to update plugins first. Schedule the // composite now. if (layerManager) { - layerManager->Composite(); + layerManager->ScheduleComposite(); } } diff --git a/widget/gtk/nsWindow.cpp b/widget/gtk/nsWindow.cpp index 19791d93fa1a..f91c9acf7ee2 100644 --- a/widget/gtk/nsWindow.cpp +++ b/widget/gtk/nsWindow.cpp @@ -2102,7 +2102,7 @@ nsWindow::OnExposeEvent(cairo_t *cr) } if (GetLayerManager()->AsKnowsCompositor() && GetLayerManager()->NeedsComposite()) { - GetLayerManager()->Composite(); + GetLayerManager()->ScheduleComposite(); GetLayerManager()->SetNeedsComposite(false); } diff --git a/widget/windows/nsWindowGfx.cpp b/widget/windows/nsWindowGfx.cpp index b0bb5f66c2d1..ccc07480f978 100644 --- a/widget/windows/nsWindowGfx.cpp +++ b/widget/windows/nsWindowGfx.cpp @@ -225,7 +225,7 @@ bool nsWindow::OnPaint(HDC aDC, uint32_t aNestingLevel) if (GetLayerManager()->AsKnowsCompositor() && !mBounds.IsEqualEdges(mLastPaintBounds)) { // Do an early async composite so that we at least have something on the // screen in the right place, even if the content is out of date. - GetLayerManager()->Composite(); + GetLayerManager()->ScheduleComposite(); } mLastPaintBounds = mBounds; @@ -292,7 +292,7 @@ bool nsWindow::OnPaint(HDC aDC, uint32_t aNestingLevel) } if (GetLayerManager()->AsKnowsCompositor() && GetLayerManager()->NeedsComposite()) { - GetLayerManager()->Composite(); + GetLayerManager()->ScheduleComposite(); GetLayerManager()->SetNeedsComposite(false); } @@ -401,7 +401,7 @@ bool nsWindow::OnPaint(HDC aDC, uint32_t aNestingLevel) break; case LayersBackend::LAYERS_WR: { - GetLayerManager()->Composite(); + GetLayerManager()->ScheduleComposite(); break; } default: From 95ef1f77d4e651fa64d73a3f219d25a63ab83528 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Tue, 20 Jun 2017 01:17:22 -0700 Subject: [PATCH 038/106] Allow LayerManagers to disable complex component alpha cases. (bug 1365879 part 19, r=mattwoodrow) --- gfx/layers/CompositorTypes.h | 2 ++ gfx/layers/Layers.cpp | 4 +++- gfx/layers/Layers.h | 6 ++++++ gfx/layers/client/ClientLayerManager.cpp | 7 +++++++ gfx/layers/client/ClientLayerManager.h | 1 + gfx/layers/ipc/LayersMessageUtils.h | 2 ++ gfx/layers/wr/WebRenderScrollData.cpp | 1 + 7 files changed, 22 insertions(+), 1 deletion(-) diff --git a/gfx/layers/CompositorTypes.h b/gfx/layers/CompositorTypes.h index 647206a8aa4b..fd67cbedf265 100644 --- a/gfx/layers/CompositorTypes.h +++ b/gfx/layers/CompositorTypes.h @@ -174,6 +174,7 @@ struct TextureFactoryIdentifier bool mSupportsTextureBlitting; bool mSupportsPartialUploads; bool mSupportsComponentAlpha; + bool mSupportsBackdropCopyForComponentAlpha; SyncHandle mSyncHandle; explicit TextureFactoryIdentifier(LayersBackend aLayersBackend = LayersBackend::LAYERS_NONE, @@ -191,6 +192,7 @@ struct TextureFactoryIdentifier , mSupportsTextureBlitting(aSupportsTextureBlitting) , mSupportsPartialUploads(aSupportsPartialUploads) , mSupportsComponentAlpha(aSupportsComponentAlpha) + , mSupportsBackdropCopyForComponentAlpha(true) , mSyncHandle(aSyncHandle) {} }; diff --git a/gfx/layers/Layers.cpp b/gfx/layers/Layers.cpp index 7b7682942369..51262192d476 100644 --- a/gfx/layers/Layers.cpp +++ b/gfx/layers/Layers.cpp @@ -1436,7 +1436,9 @@ ContainerLayer::DefaultComputeSupportsComponentAlphaChildren(bool* aNeedsSurface if (HasOpaqueAncestorLayer(this) && GetEffectiveTransform().Is2D(&transform) && !gfx::ThebesMatrix(transform).HasNonIntegerTranslation() && - blendMode == gfx::CompositionOp::OP_OVER) { + blendMode == gfx::CompositionOp::OP_OVER && + Manager()->SupportsBackdropCopyForComponentAlpha()) + { mSupportsComponentAlphaChildren = true; needsSurfaceCopy = true; } diff --git a/gfx/layers/Layers.h b/gfx/layers/Layers.h index c4abf12987f9..48b495034d01 100644 --- a/gfx/layers/Layers.h +++ b/gfx/layers/Layers.h @@ -358,6 +358,12 @@ public: */ virtual bool BlendingRequiresIntermediateSurface() { return false; } + /** + * Returns true if this LayerManager supports component alpha layers in + * situations that require a copy of the backdrop. + */ + virtual bool SupportsBackdropCopyForComponentAlpha() { return true; } + /** * CONSTRUCTION PHASE ONLY * Set the root layer. The root layer is initially null. If there is diff --git a/gfx/layers/client/ClientLayerManager.cpp b/gfx/layers/client/ClientLayerManager.cpp index e11c3c6b425a..c444418816df 100644 --- a/gfx/layers/client/ClientLayerManager.cpp +++ b/gfx/layers/client/ClientLayerManager.cpp @@ -799,6 +799,13 @@ ClientLayerManager::AreComponentAlphaLayersEnabled() LayerManager::AreComponentAlphaLayersEnabled(); } +bool +ClientLayerManager::SupportsBackdropCopyForComponentAlpha() +{ + const TextureFactoryIdentifier& ident = AsShadowForwarder()->GetTextureFactoryIdentifier(); + return ident.mSupportsBackdropCopyForComponentAlpha; +} + void ClientLayerManager::SetIsFirstPaint() { diff --git a/gfx/layers/client/ClientLayerManager.h b/gfx/layers/client/ClientLayerManager.h index 8ddefa51e106..303818555ca1 100644 --- a/gfx/layers/client/ClientLayerManager.h +++ b/gfx/layers/client/ClientLayerManager.h @@ -195,6 +195,7 @@ public: const mozilla::TimeStamp& aCompositeEnd) override; virtual bool AreComponentAlphaLayersEnabled() override; + virtual bool SupportsBackdropCopyForComponentAlpha() override; // Log APZ test data for the current paint. We supply the paint sequence // number ourselves, and take care of calling APZTestData::StartNewPaint() diff --git a/gfx/layers/ipc/LayersMessageUtils.h b/gfx/layers/ipc/LayersMessageUtils.h index 1885906a5f09..c471243230d7 100644 --- a/gfx/layers/ipc/LayersMessageUtils.h +++ b/gfx/layers/ipc/LayersMessageUtils.h @@ -303,6 +303,7 @@ struct ParamTraits WriteParam(aMsg, aParam.mSupportsTextureBlitting); WriteParam(aMsg, aParam.mSupportsPartialUploads); WriteParam(aMsg, aParam.mSupportsComponentAlpha); + WriteParam(aMsg, aParam.mSupportsBackdropCopyForComponentAlpha); WriteParam(aMsg, aParam.mSyncHandle); } @@ -315,6 +316,7 @@ struct ParamTraits ReadParam(aMsg, aIter, &aResult->mSupportsTextureBlitting) && ReadParam(aMsg, aIter, &aResult->mSupportsPartialUploads) && ReadParam(aMsg, aIter, &aResult->mSupportsComponentAlpha) && + ReadParam(aMsg, aIter, &aResult->mSupportsBackdropCopyForComponentAlpha) && ReadParam(aMsg, aIter, &aResult->mSyncHandle); return result; } diff --git a/gfx/layers/wr/WebRenderScrollData.cpp b/gfx/layers/wr/WebRenderScrollData.cpp index a66c6b8bab4c..c584b1220135 100644 --- a/gfx/layers/wr/WebRenderScrollData.cpp +++ b/gfx/layers/wr/WebRenderScrollData.cpp @@ -7,6 +7,7 @@ #include "Layers.h" #include "mozilla/Unused.h" +#include "Layers.h" #include "nsTArray.h" #include "UnitTransforms.h" From 5b1f201b78f06f5d71d1eeb2eabe69aee6b635e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20Qu=C3=A8ze?= Date: Tue, 20 Jun 2017 10:25:23 +0200 Subject: [PATCH 039/106] Bug 1374257 - avoid attaching an xbl binding to hidden labels, r=dao. --- toolkit/content/xul.css | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/toolkit/content/xul.css b/toolkit/content/xul.css index e817185f7d00..47407c638915 100644 --- a/toolkit/content/xul.css +++ b/toolkit/content/xul.css @@ -154,13 +154,11 @@ toolbarbutton[type="menu-button"] { toolbar[mode="icons"] .toolbarbutton-text, toolbar[mode="icons"] .toolbarbutton-multiline-text, -toolbar[mode="text"] .toolbarbutton-icon { - display: none; -} - +toolbar[mode="text"] .toolbarbutton-icon, .toolbarbutton-multiline-text:not([wrap="true"]), .toolbarbutton-text[wrap="true"] { display: none; + -moz-binding: none; } /******** browser, editor, iframe ********/ From 95ce842de6d27dd5eb8bc43993c65b4087dc8fe6 Mon Sep 17 00:00:00 2001 From: Stone Shih Date: Fri, 31 Mar 2017 09:24:24 +0800 Subject: [PATCH 040/106] Bug 1352278 - [Pointer Event] Turn on PointerEvent preference on Mac and Linux nightly. r=masayuki. MozReview-Commit-ID: JeuDOjTMkl1 --- dom/tests/mochitest/general/test_interfaces.js | 2 +- modules/libpref/init/all.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dom/tests/mochitest/general/test_interfaces.js b/dom/tests/mochitest/general/test_interfaces.js index 6e0f8497ec5f..8f8e81e05c78 100644 --- a/dom/tests/mochitest/general/test_interfaces.js +++ b/dom/tests/mochitest/general/test_interfaces.js @@ -748,7 +748,7 @@ var interfaceNamesInGlobalScope = // IMPORTANT: Do not change this list without review from a DOM peer! "PluginArray", // IMPORTANT: Do not change this list without review from a DOM peer! - {name: "PointerEvent", nightly: true, desktop: true, windows: true}, + {name: "PointerEvent", nightly: true, desktop: true, android: false}, // IMPORTANT: Do not change this list without review from a DOM peer! "PopStateEvent", // IMPORTANT: Do not change this list without review from a DOM peer! diff --git a/modules/libpref/init/all.js b/modules/libpref/init/all.js index 0ea32538173e..95f917ef456a 100644 --- a/modules/libpref/init/all.js +++ b/modules/libpref/init/all.js @@ -4989,7 +4989,7 @@ pref("dom.w3c_touch_events.enabled", 2); #endif // W3C draft pointer events -#if defined(XP_WIN) && defined(NIGHTLY_BUILD) +#if !defined(ANDROID) && defined(NIGHTLY_BUILD) pref("dom.w3c_pointer_events.enabled", true); #else pref("dom.w3c_pointer_events.enabled", false); From 3125921cda180366f49cddc88ef4cbdf46048c32 Mon Sep 17 00:00:00 2001 From: "Nicolas B. Pierron" Date: Tue, 20 Jun 2017 09:53:10 +0000 Subject: [PATCH 041/106] Bug 1362114 - JSBC: Add telemetry to later tune the heuristics. r=mrbkap,francois --- dom/base/UseCounter.h | 6 + dom/base/nsDocument.cpp | 9 ++ dom/base/nsIDocument.h | 8 ++ dom/script/ScriptLoader.cpp | 91 ++++++++++++ toolkit/components/telemetry/Histograms.json | 143 +++++++++++++++++++ 5 files changed, 257 insertions(+) diff --git a/dom/base/UseCounter.h b/dom/base/UseCounter.h index 01cdb9969ed7..b2324c201974 100644 --- a/dom/base/UseCounter.h +++ b/dom/base/UseCounter.h @@ -31,6 +31,12 @@ enum UseCounter : int16_t { eUseCounter_Count }; +enum IncCounter : int16_t { + eIncCounter_UNKNOWN = -1, + eIncCounter_ScriptTag, + eIncCounter_Count +}; + } #endif diff --git a/dom/base/nsDocument.cpp b/dom/base/nsDocument.cpp index 27d713985d6d..379e35ce1f67 100644 --- a/dom/base/nsDocument.cpp +++ b/dom/base/nsDocument.cpp @@ -1374,9 +1374,13 @@ nsIDocument::nsIDocument() mUseCounters(0), mChildDocumentUseCounters(0), mNotifiedPageForUseCounter(0), + mIncCounters(), mUserHasInteracted(false) { SetIsInDocument(); + for (auto& cnt : mIncCounters) { + cnt = 0; + } } nsDocument::nsDocument(const char* aContentType) @@ -12743,6 +12747,11 @@ nsDocument::ReportUseCounters(UseCounterReportKind aKind) } } } + + if (IsContentDocument() || IsResourceDoc()) { + uint16_t num = mIncCounters[eIncCounter_ScriptTag]; + Telemetry::Accumulate(Telemetry::DOM_SCRIPT_EVAL_PER_DOCUMENT, num); + } } void diff --git a/dom/base/nsIDocument.h b/dom/base/nsIDocument.h index 58308b720b04..998ff6a50378 100644 --- a/dom/base/nsIDocument.h +++ b/dom/base/nsIDocument.h @@ -2888,6 +2888,11 @@ public: void PropagateUseCounters(nsIDocument* aParentDocument); + void SetDocumentIncCounter(mozilla::IncCounter aIncCounter, uint32_t inc = 1) + { + mIncCounters[aIncCounter] += inc; + } + void SetUserHasInteracted(bool aUserHasInteracted) { mUserHasInteracted = aUserHasInteracted; @@ -3428,6 +3433,9 @@ protected: // for this child document. std::bitset mNotifiedPageForUseCounter; + // Count the number of times something is seen in a document. + mozilla::Array mIncCounters; + // Whether the user has interacted with the document or not: bool mUserHasInteracted; diff --git a/dom/script/ScriptLoader.cpp b/dom/script/ScriptLoader.cpp index f3ff678d6db0..075be452117e 100644 --- a/dom/script/ScriptLoader.cpp +++ b/dom/script/ScriptLoader.cpp @@ -175,6 +175,59 @@ ScriptLoader::~ScriptLoader() } } +// Collect telemtry data about the cache information, and the kind of source +// which are being loaded, and where it is being loaded from. +static void +CollectScriptTelemetry(nsIIncrementalStreamLoader* aLoader, + ScriptLoadRequest* aRequest) +{ + using namespace mozilla::Telemetry; + + // Skip this function if we are not running telemetry. + if (!CanRecordExtended()) { + return; + } + + // Report the type of source, as well as the size of the source. + if (aRequest->IsLoadingSource()) { + if (aRequest->mIsInline) { + AccumulateCategorical(LABELS_DOM_SCRIPT_LOADING_SOURCE::Inline); + nsAutoString inlineData; + aRequest->mElement->GetScriptText(inlineData); + Accumulate(DOM_SCRIPT_INLINE_SIZE, inlineData.Length()); + } else { + AccumulateCategorical(LABELS_DOM_SCRIPT_LOADING_SOURCE::SourceFallback); + Accumulate(DOM_SCRIPT_SOURCE_SIZE, aRequest->mScriptText.length()); + } + } else { + MOZ_ASSERT(aRequest->IsLoading()); + if (aRequest->IsSource()) { + AccumulateCategorical(LABELS_DOM_SCRIPT_LOADING_SOURCE::Source); + Accumulate(DOM_SCRIPT_SOURCE_SIZE, aRequest->mScriptText.length()); + } else { + MOZ_ASSERT(aRequest->IsBytecode()); + AccumulateCategorical(LABELS_DOM_SCRIPT_LOADING_SOURCE::AltData); + Accumulate(DOM_SCRIPT_BYTECODE_SIZE, aRequest->mScriptBytecode.length()); + } + } + + // Skip if we do not have any cache information for the given script. + if (!aLoader) { + return; + } + nsCOMPtr channel; + aLoader->GetRequest(getter_AddRefs(channel)); + nsCOMPtr cic(do_QueryInterface(channel)); + if (!cic) { + return; + } + + int32_t fetchCount = 0; + if (NS_SUCCEEDED(cic->GetCacheTokenFetchCount(&fetchCount))) { + Accumulate(DOM_SCRIPT_FETCH_COUNT, fetchCount); + } +} + // Helper method for checking if the script element is an event-handler // This means that it has both a for-attribute and a event-attribute. // Also, if the for-attribute has a value that matches "\s*window\s*", @@ -1364,6 +1417,7 @@ ScriptLoader::ProcessScriptElement(nsIScriptElement* aElement) request->mProgress = ScriptLoadRequest::Progress::Loading_Source; request->mDataType = ScriptLoadRequest::DataType::Source; TRACE_FOR_TEST_BOOL(request->mElement, "scriptloader_load_source"); + CollectScriptTelemetry(nullptr, request); if (request->IsModuleRequest()) { ModuleLoadRequest* modReq = request->AsModuleRequest(); @@ -2002,6 +2056,7 @@ ScriptLoader::ShouldCacheBytecode(ScriptLoadRequest* aRequest) nsresult ScriptLoader::EvaluateScript(ScriptLoadRequest* aRequest) { + using namespace mozilla::Telemetry; MOZ_ASSERT(aRequest->IsReadyToRun()); // We need a document to evaluate scripts. @@ -2016,6 +2071,9 @@ ScriptLoader::EvaluateScript(ScriptLoadRequest* aRequest) return NS_ERROR_FAILURE; } + // Report telemetry results of the number of scripts evaluated. + mDocument->SetDocumentIncCounter(IncCounter::eIncCounter_ScriptTag); + // Get the script-type to be used by this element. NS_ASSERTION(scriptContent, "no content - what is default script-type?"); @@ -2081,9 +2139,11 @@ ScriptLoader::EvaluateScript(ScriptLoadRequest* aRequest) nsJSUtils::ExecutionContext exec(aes.cx(), global); if (aRequest->mOffThreadToken) { LOG(("ScriptLoadRequest (%p): Decode Bytecode & Join and Execute", aRequest)); + AutoTimer timer; rv = exec.DecodeJoinAndExec(&aRequest->mOffThreadToken); } else { LOG(("ScriptLoadRequest (%p): Decode Bytecode and Execute", aRequest)); + AutoTimer timer; rv = exec.DecodeAndExec(options, aRequest->mScriptBytecode, aRequest->mBytecodeOffset); } @@ -2095,6 +2155,14 @@ ScriptLoader::EvaluateScript(ScriptLoadRequest* aRequest) JS::Rooted script(aes.cx()); bool encodeBytecode = ShouldCacheBytecode(aRequest); + TimeStamp start; + if (Telemetry::CanRecordExtended()) { + // Only record telemetry for scripts which are above the threshold. + if (aRequest->mCacheInfo && aRequest->mScriptText.length() < 1024) { + start = TimeStamp::Now(); + } + } + { nsJSUtils::ExecutionContext exec(aes.cx(), global); exec.SetEncodeBytecode(encodeBytecode); @@ -2104,12 +2172,24 @@ ScriptLoader::EvaluateScript(ScriptLoadRequest* aRequest) LOG(("ScriptLoadRequest (%p): Join (off-thread parsing) and Execute", aRequest)); rv = exec.JoinAndExec(&aRequest->mOffThreadToken, &script); + if (start) { + AccumulateTimeDelta(encodeBytecode + ? DOM_SCRIPT_OFF_THREAD_PARSE_ENCODE_EXEC_MS + : DOM_SCRIPT_OFF_THREAD_PARSE_EXEC_MS, + start); + } } else { // Main thread parsing (inline and small scripts) LOG(("ScriptLoadRequest (%p): Compile And Exec", aRequest)); nsAutoString inlineData; SourceBufferHolder srcBuf = GetScriptSource(aRequest, inlineData); rv = exec.CompileAndExec(options, srcBuf, &script); + if (start) { + AccumulateTimeDelta(encodeBytecode + ? DOM_SCRIPT_MAIN_THREAD_PARSE_ENCODE_EXEC_MS + : DOM_SCRIPT_MAIN_THREAD_PARSE_EXEC_MS, + start); + } } } @@ -2210,6 +2290,7 @@ ScriptLoader::EncodeBytecode() return; } + Telemetry::AutoTimer timer; AutoEntryScript aes(globalObject, "encode bytecode", true); RefPtr request; while (!mBytecodeEncodingQueue.isEmpty()) { @@ -2223,6 +2304,7 @@ ScriptLoader::EncodeBytecode() void ScriptLoader::EncodeRequestBytecode(JSContext* aCx, ScriptLoadRequest* aRequest) { + using namespace mozilla::Telemetry; nsresult rv = NS_OK; MOZ_ASSERT(aRequest->mCacheInfo); auto bytecodeFailed = mozilla::MakeScopeExit([&]() { @@ -2233,12 +2315,14 @@ ScriptLoader::EncodeRequestBytecode(JSContext* aCx, ScriptLoadRequest* aRequest) if (!JS::FinishIncrementalEncoding(aCx, script, aRequest->mScriptBytecode)) { LOG(("ScriptLoadRequest (%p): Cannot serialize bytecode", aRequest)); + AccumulateCategorical(LABELS_DOM_SCRIPT_ENCODING_STATUS::EncodingFailure); return; } if (aRequest->mScriptBytecode.length() >= UINT32_MAX) { LOG(("ScriptLoadRequest (%p): Bytecode cache is too large to be decoded correctly.", aRequest)); + AccumulateCategorical(LABELS_DOM_SCRIPT_ENCODING_STATUS::BufferTooLarge); return; } @@ -2251,6 +2335,7 @@ ScriptLoader::EncodeRequestBytecode(JSContext* aCx, ScriptLoadRequest* aRequest) if (NS_FAILED(rv)) { LOG(("ScriptLoadRequest (%p): Cannot open bytecode cache (rv = %X, output = %p)", aRequest, unsigned(rv), output.get())); + AccumulateCategorical(LABELS_DOM_SCRIPT_ENCODING_STATUS::OpenFailure); return; } MOZ_ASSERT(output); @@ -2258,6 +2343,9 @@ ScriptLoader::EncodeRequestBytecode(JSContext* aCx, ScriptLoadRequest* aRequest) nsresult rv = output->Close(); LOG(("ScriptLoadRequest (%p): Closing (rv = %X)", aRequest, unsigned(rv))); + if (NS_FAILED(rv)) { + AccumulateCategorical(LABELS_DOM_SCRIPT_ENCODING_STATUS::CloseFailure); + } }); uint32_t n; @@ -2266,11 +2354,13 @@ ScriptLoader::EncodeRequestBytecode(JSContext* aCx, ScriptLoadRequest* aRequest) LOG(("ScriptLoadRequest (%p): Write bytecode cache (rv = %X, length = %u, written = %u)", aRequest, unsigned(rv), unsigned(aRequest->mScriptBytecode.length()), n)); if (NS_FAILED(rv)) { + AccumulateCategorical(LABELS_DOM_SCRIPT_ENCODING_STATUS::WriteFailure); return; } bytecodeFailed.release(); TRACE_FOR_TEST_NONE(aRequest->mElement, "scriptloader_bytecode_saved"); + AccumulateCategorical(LABELS_DOM_SCRIPT_ENCODING_STATUS::EncodingSuccess); } void @@ -2763,6 +2853,7 @@ ScriptLoader::PrepareLoadedRequest(ScriptLoadRequest* aRequest, return NS_BINDING_ABORTED; } MOZ_ASSERT(aRequest->IsLoading()); + CollectScriptTelemetry(aLoader, aRequest); // If we don't have a document, then we need to abort further // evaluation. diff --git a/toolkit/components/telemetry/Histograms.json b/toolkit/components/telemetry/Histograms.json index 032306477e6d..0b9f20d19444 100644 --- a/toolkit/components/telemetry/Histograms.json +++ b/toolkit/components/telemetry/Histograms.json @@ -12425,6 +12425,149 @@ "bug_numbers": [1344152], "description": "Note the encoding (e.g. 'UTF-8', 'windows-1252', 'ASCII') of each external diff --git a/devtools/client/debugger/test/mochitest/doc_promise.html b/devtools/client/debugger/test/mochitest/doc_promise.html index fe6c1d807fab..13a788b5f870 100644 --- a/devtools/client/debugger/test/mochitest/doc_promise.html +++ b/devtools/client/debugger/test/mochitest/doc_promise.html @@ -23,7 +23,7 @@ // Attach an error handler so that the logs don't have a warning about an // unhandled, rejected promise. - window.rejected.then(null, function () {}); + window.rejected.catch(function () {}); diff --git a/devtools/client/debugger/views/variable-bubble-view.js b/devtools/client/debugger/views/variable-bubble-view.js index cc05f82ef3bb..4d8d10c644dd 100644 --- a/devtools/client/debugger/views/variable-bubble-view.js +++ b/devtools/client/debugger/views/variable-bubble-view.js @@ -156,7 +156,7 @@ VariableBubbleView.prototype = { dumpn(msg); } }) - .then(null, err => { + .catch(err => { let msg = "Couldn't evaluate: " + err.message; console.error(msg); dumpn(msg); diff --git a/devtools/client/devtools-startup.js b/devtools/client/devtools-startup.js index 4feb75d2c15d..f6e0cadf1278 100644 --- a/devtools/client/devtools-startup.js +++ b/devtools/client/devtools-startup.js @@ -76,7 +76,7 @@ DevToolsStartup.prototype = { let { require } = Cu.import("resource://devtools/shared/Loader.jsm", {}); let hudservice = require("devtools/client/webconsole/hudservice"); let { console } = Cu.import("resource://gre/modules/Console.jsm", {}); - hudservice.toggleBrowserConsole().then(null, console.error); + hudservice.toggleBrowserConsole().catch(console.error); } else { // the Browser Console was already open window.focus(); diff --git a/devtools/client/framework/test/browser_toolbox_custom_host.js b/devtools/client/framework/test/browser_toolbox_custom_host.js index 5d3aeed54ce0..ff54bb70f40b 100644 --- a/devtools/client/framework/test/browser_toolbox_custom_host.js +++ b/devtools/client/framework/test/browser_toolbox_custom_host.js @@ -20,7 +20,7 @@ function test() { let options = {customIframe: iframe}; gDevTools.showToolbox(target, null, Toolbox.HostType.CUSTOM, options) .then(testCustomHost, console.error) - .then(null, console.error); + .catch(console.error); }); function onMessage(event) { diff --git a/devtools/client/framework/test/browser_toolbox_raise.js b/devtools/client/framework/test/browser_toolbox_raise.js index 821506c7f893..47ddfd228065 100644 --- a/devtools/client/framework/test/browser_toolbox_raise.js +++ b/devtools/client/framework/test/browser_toolbox_raise.js @@ -15,7 +15,7 @@ function test() { let target = TargetFactory.forTab(tab); gDevTools.showToolbox(target) .then(testBottomHost, console.error) - .then(null, console.error); + .catch(console.error); }); } @@ -30,7 +30,7 @@ function testBottomHost(aToolbox) { executeSoon(function () { is(gBrowser.selectedTab, tab1, "Correct tab was selected after calling raise"); - toolbox.switchHost(Toolbox.HostType.WINDOW).then(testWindowHost).then(null, console.error); + toolbox.switchHost(Toolbox.HostType.WINDOW).then(testWindowHost).catch(console.error); }); }); } diff --git a/devtools/client/framework/test/browser_toolbox_sidebar.js b/devtools/client/framework/test/browser_toolbox_sidebar.js index 897f8cba5558..7743362567bc 100644 --- a/devtools/client/framework/test/browser_toolbox_sidebar.js +++ b/devtools/client/framework/test/browser_toolbox_sidebar.js @@ -89,7 +89,7 @@ function test() { panel.sidebar.addTab("tab3", tab3URL); panel.sidebar.show(); - }).then(null, console.error); + }).catch(console.error); }); function allTabsReady(panel) { diff --git a/devtools/client/framework/test/browser_toolbox_sidebar_events.js b/devtools/client/framework/test/browser_toolbox_sidebar_events.js index 9137aaebe239..96ef99563051 100644 --- a/devtools/client/framework/test/browser_toolbox_sidebar_events.js +++ b/devtools/client/framework/test/browser_toolbox_sidebar_events.js @@ -69,7 +69,7 @@ function test() { panel.sidebar.once("tab1-selected", () => finishUp(panel)); panel.sidebar.addTab("tab1", tab1URL, {selected: true}); panel.sidebar.show(); - }).then(null, console.error); + }).catch(console.error); }); function finishUp(panel) { diff --git a/devtools/client/framework/toolbox.js b/devtools/client/framework/toolbox.js index a74d567f63b8..eeac21df9a63 100644 --- a/devtools/client/framework/toolbox.js +++ b/devtools/client/framework/toolbox.js @@ -510,7 +510,7 @@ Toolbox.prototype = { this.emit("ready"); this._isOpenDeferred.resolve(); - }.bind(this)).then(null, console.error.bind(console)); + }.bind(this)).catch(console.error.bind(console)); }, /** @@ -2479,7 +2479,7 @@ Toolbox.prototype = { .getInterface(Ci.nsIDOMWindowUtils) .garbageCollect(); } - }).then(null, console.error)); + }).catch(console.error)); let leakCheckObserver = ({wrappedJSObject: barrier}) => { // Make the leak detector wait until this toolbox is properly destroyed. diff --git a/devtools/client/inspector/computed/computed.js b/devtools/client/inspector/computed/computed.js index 54b801d8ab8f..718f61bc42b2 100644 --- a/devtools/client/inspector/computed/computed.js +++ b/devtools/client/inspector/computed/computed.js @@ -512,7 +512,7 @@ CssComputedView.prototype = { ); this._refreshProcess.schedule(); return deferred.promise; - }).then(null, (err) => console.error(err)); + }).catch((err) => console.error(err)); }, /** @@ -676,7 +676,7 @@ CssComputedView.prototype = { CssComputedView.propertyNames.push.apply(CssComputedView.propertyNames, mozProps.sort()); - this._createPropertyViews().then(null, e => { + this._createPropertyViews().catch(e => { if (!this._isDestroyed) { console.warn("The creation of property views was cancelled because " + "the computed-view was destroyed before it was done creating views"); @@ -1108,7 +1108,7 @@ PropertyView.prototype = { this.matchedExpander.setAttribute("open", ""); this.tree.inspector.emit("computed-view-property-expanded"); }); - }).then(null, console.error); + }).catch(console.error); } this.matchedSelectorsContainer.innerHTML = ""; diff --git a/devtools/client/inspector/fonts/fonts.js b/devtools/client/inspector/fonts/fonts.js index b0087e9f6412..f71c16883384 100644 --- a/devtools/client/inspector/fonts/fonts.js +++ b/devtools/client/inspector/fonts/fonts.js @@ -170,10 +170,10 @@ FontInspector.prototype = { let fonts = []; if (showAllFonts) { fonts = yield this.pageStyle.getAllUsedFontFaces(options) - .then(null, console.error); + .catch(console.error); } else { fonts = yield this.pageStyle.getUsedFontFaces(node, options) - .then(null, console.error); + .catch(console.error); } if (!fonts || !fonts.length) { diff --git a/devtools/client/inspector/inspector.js b/devtools/client/inspector/inspector.js index d0881a66797c..8fd47d53f881 100644 --- a/devtools/client/inspector/inspector.js +++ b/devtools/client/inspector/inspector.js @@ -2152,7 +2152,7 @@ if (window.location.protocol === "chrome:" && url.search.length > 1) { ); let inspectorUI = new Inspector(fakeToolbox); inspectorUI.init(); - }).then(null, e => { + }).catch(e => { window.alert("Unable to start the inspector:" + e.message + "\n" + e.stack); }); } diff --git a/devtools/client/inspector/markup/markup.js b/devtools/client/inspector/markup/markup.js index 07b09e1ac493..29e8d649379e 100644 --- a/devtools/client/inspector/markup/markup.js +++ b/devtools/client/inspector/markup/markup.js @@ -904,7 +904,7 @@ MarkupView.prototype = { nextSibling = isValidSibling ? nextSibling : null; this.walker.insertBefore(node, parent, nextSibling); }); - }).then(null, console.error); + }).catch(console.error); }, /** @@ -1172,7 +1172,7 @@ MarkupView.prototype = { child = child.nextSibling; } return promise.all(promises); - }).then(null, console.error); + }).catch(console.error); }, /** @@ -1215,7 +1215,7 @@ MarkupView.prototype = { return walkerPromise.then(longstr => { return longstr.string().then(html => { - longstr.release().then(null, console.error); + longstr.release().catch(console.error); return html; }); }); @@ -1332,7 +1332,7 @@ MarkupView.prototype = { // Changing the outerHTML removes the node which outerHTML was changed. // Listen to this removal to reselect the right node afterwards. this.reselectOnRemoved(node, "outerhtml"); - return this.walker.setOuterHTML(node, newValue).then(null, () => { + return this.walker.setOuterHTML(node, newValue).catch(() => { this.cancelReselectOnRemoved(); }); }, diff --git a/devtools/client/inspector/markup/views/element-editor.js b/devtools/client/inspector/markup/views/element-editor.js index b43a3385ef90..62a90f77200f 100644 --- a/devtools/client/inspector/markup/views/element-editor.js +++ b/devtools/client/inspector/markup/views/element-editor.js @@ -611,7 +611,7 @@ ElementEditor.prototype = { // Changing the tagName removes the node. Make sure the replacing node gets // selected afterwards. this.markup.reselectOnRemoved(this.node, "edittagname"); - this.markup.walker.editTagName(this.node, newTagName).then(null, () => { + this.markup.walker.editTagName(this.node, newTagName).catch(() => { // Failed to edit the tag name, cancel the reselection. this.markup.cancelReselectOnRemoved(); }); diff --git a/devtools/client/inspector/markup/views/text-editor.js b/devtools/client/inspector/markup/views/text-editor.js index d89e95f02a7e..a4cb3890bb5c 100644 --- a/devtools/client/inspector/markup/views/text-editor.js +++ b/devtools/client/inspector/markup/views/text-editor.js @@ -44,7 +44,7 @@ function TextEditor(container, node, type) { } this.node.getNodeValue().then(longstr => { longstr.string().then(oldValue => { - longstr.release().then(null, console.error); + longstr.release().catch(console.error); this.container.undo.do(() => { this.node.setNodeValue(val); @@ -106,7 +106,7 @@ TextEditor.prototype = { longstr = ret; return longstr.string(); }).then(str => { - longstr.release().then(null, console.error); + longstr.release().catch(console.error); this.value.textContent = str; let isWhitespace = !/[^\s]/.exec(str); @@ -118,7 +118,7 @@ TextEditor.prototype = { this.value.setAttribute("title", isWhitespace ? INSPECTOR_L10N.getFormatStr("markupView.whitespaceOnly", chars) : ""); - }).then(null, console.error); + }).catch(console.error); }, destroy: function () {}, diff --git a/devtools/client/inspector/rules/models/element-style.js b/devtools/client/inspector/rules/models/element-style.js index 2db1c6e80f90..b45fed24994a 100644 --- a/devtools/client/inspector/rules/models/element-style.js +++ b/devtools/client/inspector/rules/models/element-style.js @@ -124,7 +124,7 @@ ElementStyle.prototype = { } return undefined; - }).then(null, e => { + }).catch(e => { // populate is often called after a setTimeout, // the connection may already be closed. if (this.destroyed) { diff --git a/devtools/client/inspector/rules/rules.js b/devtools/client/inspector/rules/rules.js index 16c2b1b6a45c..bfc063d4d959 100644 --- a/devtools/client/inspector/rules/rules.js +++ b/devtools/client/inspector/rules/rules.js @@ -778,7 +778,7 @@ CssRuleView.prototype = { document.documentElement.namespaceURI; this._dummyElement = document.createElementNS(namespaceURI, this.element.tagName); - }).then(null, promiseWarn); + }).catch(promiseWarn); let elementStyle = new ElementStyle(element, this, this.store, this.pageStyle, this.showUserAgentStyles); @@ -801,7 +801,7 @@ CssRuleView.prototype = { this._changed(); }; } - }).then(null, e => { + }).catch(e => { if (this._elementStyle === elementStyle) { this._stopSelectingElement(); this._clearRules(); @@ -886,7 +886,7 @@ CssRuleView.prototype = { return onEditorsReady.then(() => { this.emit("ruleview-refreshed"); }, e => console.error(e)); - }).then(null, promiseWarn); + }).catch(promiseWarn); }, /** diff --git a/devtools/client/inspector/shared/highlighters-overlay.js b/devtools/client/inspector/shared/highlighters-overlay.js index 0c91f22b794a..5ba230fcdb01 100644 --- a/devtools/client/inspector/shared/highlighters-overlay.js +++ b/devtools/client/inspector/shared/highlighters-overlay.js @@ -331,7 +331,7 @@ HighlightersOverlay.prototype = { // whether the result is truthy before installing the handler. let onHidden = this.highlighters[this.hoveredHighlighterShown].hide(); if (onHidden) { - onHidden.then(null, e => console.error(e)); + onHidden.catch(e => console.error(e)); } this.hoveredHighlighterShown = null; diff --git a/devtools/client/netmonitor/src/har/har-exporter.js b/devtools/client/netmonitor/src/har/har-exporter.js index 661684dd39ad..19a7ffc5d711 100644 --- a/devtools/client/netmonitor/src/har/har-exporter.js +++ b/devtools/client/netmonitor/src/har/har-exporter.js @@ -158,7 +158,7 @@ const HarExporter = { } return jsonString; - }).then(null, function onError(err) { + }).catch(function onError(err) { console.error(err); }); }, diff --git a/devtools/client/scratchpad/scratchpad.js b/devtools/client/scratchpad/scratchpad.js index b62ca13bf250..84833f7e0aad 100644 --- a/devtools/client/scratchpad/scratchpad.js +++ b/devtools/client/scratchpad/scratchpad.js @@ -695,7 +695,7 @@ var Scratchpad = { source: uglyText }).then(data => { this.editor.setText(data.code); - }).then(null, error => { + }).catch(error => { this.writeAsErrorComment({ exception: error }); throw error; }); @@ -1735,7 +1735,7 @@ var Scratchpad = { this.populateRecentFilesMenu(); PreferenceObserver.init(); CloseObserver.init(); - }).then(null, (err) => console.error(err)); + }).catch((err) => console.error(err)); this._setupCommandListeners(); this._updateViewMenuItems(); this._setupPopupShowingListeners(); diff --git a/devtools/client/scratchpad/test/browser_scratchpad_pprint-02.js b/devtools/client/scratchpad/test/browser_scratchpad_pprint-02.js index 1e5f1b06abb2..996f5711d032 100644 --- a/devtools/client/scratchpad/test/browser_scratchpad_pprint-02.js +++ b/devtools/client/scratchpad/test/browser_scratchpad_pprint-02.js @@ -28,7 +28,7 @@ function runTests(sw) const prettyText = sp.getText(); ok(prettyText.includes(space)); finish(); - }).then(null, error => { + }).catch(error => { ok(false, error); }); } diff --git a/devtools/client/scratchpad/test/browser_scratchpad_pprint.js b/devtools/client/scratchpad/test/browser_scratchpad_pprint.js index 0835b376b822..28ff0cd6b0a5 100644 --- a/devtools/client/scratchpad/test/browser_scratchpad_pprint.js +++ b/devtools/client/scratchpad/test/browser_scratchpad_pprint.js @@ -22,7 +22,7 @@ function runTests(sw) const prettyText = sp.getText(); ok(prettyText.includes("\n")); finish(); - }).then(null, error => { + }).catch(error => { ok(false, error); }); } diff --git a/devtools/client/shadereditor/panel.js b/devtools/client/shadereditor/panel.js index 92fac9646b45..cf691fdff297 100644 --- a/devtools/client/shadereditor/panel.js +++ b/devtools/client/shadereditor/panel.js @@ -50,7 +50,7 @@ ShaderEditorPanel.prototype = { this.emit("ready"); return this; }) - .then(null, function onError(aReason) { + .catch(function onError(aReason) { DevToolsUtils.reportException("ShaderEditorPanel.prototype.open", aReason); }); }, diff --git a/devtools/client/shadereditor/shadereditor.js b/devtools/client/shadereditor/shadereditor.js index e79f9acc888b..0ca4db43c5b5 100644 --- a/devtools/client/shadereditor/shadereditor.js +++ b/devtools/client/shadereditor/shadereditor.js @@ -313,7 +313,7 @@ var ShadersListView = Heritage.extend(WidgetMethods, { getShaders() .then(getSources) .then(showSources) - .then(null, e => console.error(e)); + .catch(e => console.error(e)); }, /** diff --git a/devtools/client/shadereditor/test/head.js b/devtools/client/shadereditor/test/head.js index a9f04532856a..e4fda5cb274b 100644 --- a/devtools/client/shadereditor/test/head.js +++ b/devtools/client/shadereditor/test/head.js @@ -118,7 +118,7 @@ function ifWebGLUnsupported() { function test() { let generator = isWebGLSupported(document) ? ifWebGLSupported : ifWebGLUnsupported; - Task.spawn(generator).then(null, handleError); + Task.spawn(generator).catch(handleError); } function createCanvas() { diff --git a/devtools/client/shared/developer-toolbar.js b/devtools/client/shared/developer-toolbar.js index 4ebda7e9d2e7..e62f3be6de49 100644 --- a/devtools/client/shared/developer-toolbar.js +++ b/devtools/client/shared/developer-toolbar.js @@ -1006,7 +1006,7 @@ OutputPanel.prototype._outputChanged = function (ev) { this._update(); } else { this.displayedOutput.promise.then(this._update, this._update) - .then(null, console.error); + .catch(console.error); } }; diff --git a/devtools/client/shared/redux/middleware/task.js b/devtools/client/shared/redux/middleware/task.js index c1dd262eed3f..317453d42f7b 100644 --- a/devtools/client/shared/redux/middleware/task.js +++ b/devtools/client/shared/redux/middleware/task.js @@ -19,7 +19,7 @@ function task({ dispatch, getState }) { return next => action => { if (isGenerator(action)) { return Task.spawn(action.bind(null, dispatch, getState)) - .then(null, handleError.bind(null, dispatch)); + .catch(handleError.bind(null, dispatch)); } /* diff --git a/devtools/client/sourceeditor/autocomplete.js b/devtools/client/sourceeditor/autocomplete.js index 2383addda774..84ed40967c50 100644 --- a/devtools/client/sourceeditor/autocomplete.js +++ b/devtools/client/sourceeditor/autocomplete.js @@ -237,7 +237,7 @@ function autoComplete({ ed, cm }) { }); popup.openPopup(cursorElement, -1 * left, 0); autocompleteOpts.suggestionInsertedOnce = false; - }).then(null, e => console.error(e)); + }).catch(e => console.error(e)); } /** diff --git a/devtools/client/styleeditor/StyleEditorUI.jsm b/devtools/client/styleeditor/StyleEditorUI.jsm index c9058f5b3148..b5e20e08dca3 100644 --- a/devtools/client/styleeditor/StyleEditorUI.jsm +++ b/devtools/client/styleeditor/StyleEditorUI.jsm @@ -234,7 +234,7 @@ StyleEditorUI.prototype = { _onNewDocument: function () { this._debuggee.getStyleSheets().then((styleSheets) => { return this._resetStyleSheetList(styleSheets); - }).then(null, e => console.error(e)); + }).catch(e => console.error(e)); }, /** @@ -634,7 +634,7 @@ StyleEditorUI.prototype = { this.emit("error", { key: "error-compressed", level: "info" }); } } - }.bind(this)).then(null, e => console.error(e)); + }.bind(this)).catch(e => console.error(e)); } }); }, @@ -924,7 +924,7 @@ StyleEditorUI.prototype = { sidebar.hidden = !showSidebar || !inSource; this.emit("media-list-changed", editor); - }.bind(this)).then(null, e => console.error(e)); + }.bind(this)).catch(e => console.error(e)); }, /** diff --git a/devtools/client/styleeditor/StyleSheetEditor.jsm b/devtools/client/styleeditor/StyleSheetEditor.jsm index 439d3a58948b..03e6b27e389f 100644 --- a/devtools/client/styleeditor/StyleSheetEditor.jsm +++ b/devtools/client/styleeditor/StyleSheetEditor.jsm @@ -290,7 +290,7 @@ StyleSheetEditor.prototype = { return this._getSourceTextAndPrettify().then((source) => { this.sourceLoaded = true; return source; - }).then(null, e => { + }).catch(e => { if (this._isDestroyed) { console.warn("Could not fetch the source for " + this.styleSheet.href + @@ -518,7 +518,7 @@ StyleSheetEditor.prototype = { * Toggled the disabled state of the underlying stylesheet. */ toggleDisabled: function () { - this.styleSheet.toggleDisabled().then(null, e => console.error(e)); + this.styleSheet.toggleDisabled().catch(e => console.error(e)); }, /** @@ -560,7 +560,7 @@ StyleSheetEditor.prototype = { this._isUpdating = true; this.styleSheet.update(this._state.text, this.transitionsEnabled) - .then(null, e => console.error(e)); + .catch(e => console.error(e)); }, /** diff --git a/devtools/client/webaudioeditor/panel.js b/devtools/client/webaudioeditor/panel.js index 86a44c595e21..69b647734231 100644 --- a/devtools/client/webaudioeditor/panel.js +++ b/devtools/client/webaudioeditor/panel.js @@ -44,7 +44,7 @@ WebAudioEditorPanel.prototype = { this.emit("ready"); return this; }) - .then(null, function onError(aReason) { + .catch(function onError(aReason) { console.error("WebAudioEditorPanel open failed. " + aReason.error + ": " + aReason.message); }); diff --git a/devtools/client/webconsole/console-output.js b/devtools/client/webconsole/console-output.js index fbd8137164e1..ddb9c91f6669 100644 --- a/devtools/client/webconsole/console-output.js +++ b/devtools/client/webconsole/console-output.js @@ -3074,7 +3074,7 @@ Widgets.ObjectRenderers.add({ // the message is destroyed. this.message.widgets.add(this); - this.linkToInspector().then(null, e => console.error(e)); + this.linkToInspector().catch(e => console.error(e)); }, /** @@ -3162,7 +3162,7 @@ Widgets.ObjectRenderers.add({ unhighlightDomNode: function () { return this.linkToInspector().then(() => { return this.toolbox.highlighterUtils.unhighlight(); - }).then(null, e => console.error(e)); + }).catch(e => console.error(e)); }, /** diff --git a/devtools/client/webconsole/test/browser_console_optimized_out_vars.js b/devtools/client/webconsole/test/browser_console_optimized_out_vars.js index dc898eb2b828..891730e6b07e 100644 --- a/devtools/client/webconsole/test/browser_console_optimized_out_vars.js +++ b/devtools/client/webconsole/test/browser_console_optimized_out_vars.js @@ -50,7 +50,7 @@ function test() { }); finishTest(); - }).then(null, aError => { + }).catch(aError => { ok(false, "Got an error: " + aError.message + "\n" + aError.stack); }); } diff --git a/devtools/client/webconsole/test/browser_webconsole_split.js b/devtools/client/webconsole/test/browser_webconsole_split.js index bb858d1c192a..8a59f1d7c932 100644 --- a/devtools/client/webconsole/test/browser_webconsole_split.js +++ b/devtools/client/webconsole/test/browser_webconsole_split.js @@ -199,7 +199,7 @@ function test() { gDevTools.showToolbox(target, toolId).then(function (box) { toolbox = box; deferred.resolve(); - }).then(null, console.error); + }).catch(console.error); return deferred.promise; } diff --git a/devtools/client/webide/content/webide.js b/devtools/client/webide/content/webide.js index 3529f986e7a4..4e1fdd4fb1b5 100644 --- a/devtools/client/webide/content/webide.js +++ b/devtools/client/webide/content/webide.js @@ -918,7 +918,7 @@ var Cmds = { let url = AppManager.deviceFront.screenshotToDataURL(); return UI.busyUntil(url.then(longstr => { return longstr.string().then(dataURL => { - longstr.release().then(null, console.error); + longstr.release().catch(console.error); UI.openInBrowser(dataURL); }); }), "taking screenshot"); diff --git a/devtools/client/webide/modules/app-manager.js b/devtools/client/webide/modules/app-manager.js index c9b8d18189c1..9359acc1bc1d 100644 --- a/devtools/client/webide/modules/app-manager.js +++ b/devtools/client/webide/modules/app-manager.js @@ -483,7 +483,7 @@ var AppManager = exports.AppManager = { // Only watch for errors here. Final resolution occurs above, once // we've reached the CONNECTED state. this.selectedRuntime.connect(this.connection) - .then(null, e => reject(e)); + .catch(e => reject(e)); } catch (e) { reject(e); } diff --git a/devtools/client/webide/test/test_device_preferences.html b/devtools/client/webide/test/test_device_preferences.html index bd530756244f..e9049b974d70 100644 --- a/devtools/client/webide/test/test_device_preferences.html +++ b/devtools/client/webide/test/test_device_preferences.html @@ -77,7 +77,7 @@ yield closeWebIDE(win); SimpleTest.finish(); - }).then(null, e => { + }).catch(e => { ok(false, "Exception: " + e); SimpleTest.finish(); }); diff --git a/devtools/client/webide/test/test_device_runtime.html b/devtools/client/webide/test/test_device_runtime.html index fb6f2fcd4d7e..187836e18959 100644 --- a/devtools/client/webide/test/test_device_runtime.html +++ b/devtools/client/webide/test/test_device_runtime.html @@ -71,7 +71,7 @@ yield closeWebIDE(win); SimpleTest.finish(); - }).then(null, e => { + }).catch(e => { ok(false, "Exception: " + e); SimpleTest.finish(); }); diff --git a/devtools/client/webide/test/test_duplicate_import.html b/devtools/client/webide/test/test_duplicate_import.html index 3810347aa590..cb9f4b172d87 100644 --- a/devtools/client/webide/test/test_duplicate_import.html +++ b/devtools/client/webide/test/test_duplicate_import.html @@ -66,7 +66,7 @@ yield removeAllProjects(); SimpleTest.finish(); - }).then(null, e => { + }).catch(e => { ok(false, "Exception: " + e); SimpleTest.finish(); }); diff --git a/devtools/client/webide/test/test_import.html b/devtools/client/webide/test/test_import.html index f555539bf3a8..60e8a8b7aa49 100644 --- a/devtools/client/webide/test/test_import.html +++ b/devtools/client/webide/test/test_import.html @@ -72,7 +72,7 @@ yield removeAllProjects(); SimpleTest.finish(); - }).then(null, e => { + }).catch(e => { ok(false, "Exception: " + e); SimpleTest.finish(); }); diff --git a/devtools/server/actors/script.js b/devtools/server/actors/script.js index 555e84ef88ab..85a161469b5f 100644 --- a/devtools/server/actors/script.js +++ b/devtools/server/actors/script.js @@ -738,7 +738,7 @@ const ThreadActor = ActorClassWithSpec(threadSpec, { column: originalLocation.originalColumn }; resolve(onPacket(packet)) - .then(null, error => { + .catch(error => { reportError(error); return { error: "unknownError", @@ -1071,7 +1071,7 @@ const ThreadActor = ActorClassWithSpec(threadSpec, { needNest = false; returnVal = resolvedVal; }) - .then(null, (error) => { + .catch((error) => { reportError(error, "Error inside unsafeSynchronize:"); }) .then(() => { diff --git a/devtools/server/actors/source.js b/devtools/server/actors/source.js index b12f2c8feffd..06f14d292ed0 100644 --- a/devtools/server/actors/source.js +++ b/devtools/server/actors/source.js @@ -159,7 +159,7 @@ let SourceActor = ActorClassWithSpec(sourceSpec, { if (this.threadActor.sources.isPrettyPrinted(this.url)) { this._init = this.prettyPrint( this.threadActor.sources.prettyPrintIndent(this.url) - ).then(null, error => { + ).catch(error => { DevToolsUtils.reportException("SourceActor", error); }); } else { @@ -495,7 +495,7 @@ let SourceActor = ActorClassWithSpec(sourceSpec, { contentType: contentType }; }) - .then(null, error => { + .catch(error => { reportError(error, "Got an exception during SA_onSource: "); throw new Error("Could not load the source for " + this.url + ".\n" + DevToolsUtils.safeErrorString(error)); @@ -518,7 +518,7 @@ let SourceActor = ActorClassWithSpec(sourceSpec, { this._init = null; }) .then(this.onSource) - .then(null, error => { + .catch(error => { this.disablePrettyPrint(); throw new Error(DevToolsUtils.safeErrorString(error)); }); diff --git a/devtools/server/actors/utils/TabSources.js b/devtools/server/actors/utils/TabSources.js index 4a72ebb6b485..cb7c33e3073f 100644 --- a/devtools/server/actors/utils/TabSources.js +++ b/devtools/server/actors/utils/TabSources.js @@ -465,7 +465,7 @@ TabSources.prototype = { this._setSourceMapRoot(map, absSourceMapURL, sourceURL); return map; }) - .then(null, error => { + .catch(error => { if (!DevToolsUtils.reportingDisabled) { DevToolsUtils.reportException("TabSources.prototype._fetchSourceMap", error); } diff --git a/devtools/server/main.js b/devtools/server/main.js index f879801f7a4e..827ab333c221 100644 --- a/devtools/server/main.js +++ b/devtools/server/main.js @@ -1676,7 +1676,7 @@ DebuggerServerConnection.prototype = { response.from = from; } this.transport.send(response); - }).then(null, (e) => { + }).catch((e) => { let errorPacket = this._unknownError( "error occurred while processing '" + type, e); errorPacket.from = from; diff --git a/devtools/server/tests/mochitest/inspector-helpers.js b/devtools/server/tests/mochitest/inspector-helpers.js index e257461ada07..65602c812166 100644 --- a/devtools/server/tests/mochitest/inspector-helpers.js +++ b/devtools/server/tests/mochitest/inspector-helpers.js @@ -207,7 +207,7 @@ function checkAvailable(client, actorID) { } function promiseDone(currentPromise) { - currentPromise.then(null, err => { + currentPromise.catch(err => { ok(false, "Promise failed: " + err); if (err.stack) { dump(err.stack); @@ -299,7 +299,7 @@ function addTest(test) { } function addAsyncTest(generator) { - _tests.push(() => Task.spawn(generator).then(null, ok.bind(null, false))); + _tests.push(() => Task.spawn(generator).catch(ok.bind(null, false))); } function runNextTest() { diff --git a/devtools/server/tests/unit/test_actor-registry-actor.js b/devtools/server/tests/unit/test_actor-registry-actor.js index 1d704d0f9aa9..d4f7ca432632 100644 --- a/devtools/server/tests/unit/test_actor-registry-actor.js +++ b/devtools/server/tests/unit/test_actor-registry-actor.js @@ -42,7 +42,7 @@ function registerNewActor() { .registerActor("resource://test/hello-actor.js", options) .then(actorFront => (gActorFront = actorFront)) .then(talkToNewActor) - .then(null, e => { + .catch(e => { DevToolsUtils.reportException("registerNewActor", e); do_check_true(false); }); @@ -65,7 +65,7 @@ function unregisterNewActor() { gActorFront .unregister() .then(testActorIsUnregistered) - .then(null, e => { + .catch(e => { DevToolsUtils.reportException("unregisterNewActor", e); do_check_true(false); }); diff --git a/devtools/server/tests/unit/test_blackboxing-06.js b/devtools/server/tests/unit/test_blackboxing-06.js index 2f6bfcc4e3a0..4414ef491fcc 100644 --- a/devtools/server/tests/unit/test_blackboxing-06.js +++ b/devtools/server/tests/unit/test_blackboxing-06.js @@ -28,7 +28,7 @@ function run_test() { .then(black_box_code) .then(run_code) .then(test_correct_location) - .then(null, function (error) { + .catch(function (error) { do_check_true(false, "Should not get an error, got " + error); }) .then(function () { diff --git a/devtools/server/tests/unit/test_promise_state-03.js b/devtools/server/tests/unit/test_promise_state-03.js index 6b8a993dbd91..67430e330672 100644 --- a/devtools/server/tests/unit/test_promise_state-03.js +++ b/devtools/server/tests/unit/test_promise_state-03.js @@ -42,7 +42,7 @@ function evalCode(debuggee) { "doTest();\n" + function doTest() { var resolved = Promise.reject(new Error("uh oh")); - resolved.then(null, () => { + resolved.catch(() => { var p = resolved; debugger; }); diff --git a/devtools/server/tests/unit/test_promises_client_getdependentpromises.js b/devtools/server/tests/unit/test_promises_client_getdependentpromises.js index 8900cf81cfc3..ad8aa8365694 100644 --- a/devtools/server/tests/unit/test_promises_client_getdependentpromises.js +++ b/devtools/server/tests/unit/test_promises_client_getdependentpromises.js @@ -23,7 +23,7 @@ add_task(function* () { p.name = "p"; let q = p.then(); q.name = "q"; - let r = p.then(null, () => {}); + let r = p.catch(() => {}); r.name = "r"; return p; @@ -42,7 +42,7 @@ add_task(function* () { p.name = "p"; let q = p.then(); q.name = "q"; - let r = p.then(null, () => {}); + let r = p.catch(() => {}); r.name = "r"; return p; diff --git a/devtools/server/tests/unit/test_protocol_children.js b/devtools/server/tests/unit/test_protocol_children.js index caee5492b584..fbc9a2d331b1 100644 --- a/devtools/server/tests/unit/test_protocol_children.js +++ b/devtools/server/tests/unit/test_protocol_children.js @@ -597,7 +597,7 @@ function run_test() { client.close().then(() => { do_test_finished(); }); - }).then(null, err => { + }).catch(err => { do_report_unexpected_exception(err, "Failure executing test"); }); }); diff --git a/devtools/server/tests/unit/test_protocol_longstring.js b/devtools/server/tests/unit/test_protocol_longstring.js index 2cfd5025e14c..746d72efe26f 100644 --- a/devtools/server/tests/unit/test_protocol_longstring.js +++ b/devtools/server/tests/unit/test_protocol_longstring.js @@ -235,7 +235,7 @@ function run_test() { client.close().then(() => { do_test_finished(); }); - }).then(null, err => { + }).catch(err => { do_report_unexpected_exception(err, "Failure executing test"); }); }); diff --git a/devtools/server/tests/unit/test_protocol_simple.js b/devtools/server/tests/unit/test_protocol_simple.js index c19550afc381..2d827c980c1f 100644 --- a/devtools/server/tests/unit/test_protocol_simple.js +++ b/devtools/server/tests/unit/test_protocol_simple.js @@ -329,7 +329,7 @@ function run_test() { client.close().then(() => { do_test_finished(); }); - }).then(null, err => { + }).catch(err => { do_report_unexpected_exception(err, "Failure executing test"); }); }); diff --git a/devtools/server/tests/unit/test_sourcemaps-10.js b/devtools/server/tests/unit/test_sourcemaps-10.js index bc66fdbd7dd2..1e21293f9ecb 100644 --- a/devtools/server/tests/unit/test_sourcemaps-10.js +++ b/devtools/server/tests/unit/test_sourcemaps-10.js @@ -25,7 +25,7 @@ function run_test() { promise.resolve(define_code()) .then(run_code) .then(test_frame_location) - .then(null, error => { + .catch(error => { dump(error + "\n"); dump(error.stack); do_check_true(false); diff --git a/devtools/server/tests/unit/test_sourcemaps-11.js b/devtools/server/tests/unit/test_sourcemaps-11.js index 8993a32d0176..6341753e9e07 100644 --- a/devtools/server/tests/unit/test_sourcemaps-11.js +++ b/devtools/server/tests/unit/test_sourcemaps-11.js @@ -25,7 +25,7 @@ function run_test() { promise.resolve(define_code()) .then(run_code) .then(test_frames) - .then(null, error => { + .catch(error => { dump(error + "\n"); dump(error.stack); do_check_true(false); diff --git a/devtools/shared/apps/app-actor-front.js b/devtools/shared/apps/app-actor-front.js index 02f945072fdc..a7b4e4c41c27 100644 --- a/devtools/shared/apps/app-actor-front.js +++ b/devtools/shared/apps/app-actor-front.js @@ -620,7 +620,7 @@ AppActorFront.prototype = { } return DevToolsUtils.settleAll(promises) - .then(null, () => {}); + .catch(() => {}); }, _listenAppEvents: function (listener) { diff --git a/devtools/shared/fronts/device.js b/devtools/shared/fronts/device.js index 28f7a096a683..3f8919d578a5 100644 --- a/devtools/shared/fronts/device.js +++ b/devtools/shared/fronts/device.js @@ -19,7 +19,7 @@ const DeviceFront = protocol.FrontClassWithSpec(deviceSpec, { return this.screenshotToDataURL().then(longstr => { return longstr.string().then(dataURL => { let deferred = defer(); - longstr.release().then(null, Cu.reportError); + longstr.release().catch(Cu.reportError); let req = Cc["@mozilla.org/xmlextras/xmlhttprequest;1"] .createInstance(Ci.nsIXMLHttpRequest); req.open("GET", dataURL, true); diff --git a/devtools/shared/gcli/templater.js b/devtools/shared/gcli/templater.js index b726c67cd8a0..6648acc0e345 100644 --- a/devtools/shared/gcli/templater.js +++ b/devtools/shared/gcli/templater.js @@ -174,7 +174,7 @@ function processNode(state, node, data) { /* jshint loopfunc:true */ replacement.then(function (newValue) { node.setAttribute(name, newValue); - }).then(null, console.error); + }).catch(console.error); } else { if (state.options.blankNullUndefined && replacement == null) { replacement = ""; @@ -453,7 +453,7 @@ function handleAsync(thing, siblingNode, inserter) { if (tempNode.parentNode != null) { tempNode.remove(); } - }).then(null, function (error) { + }).catch(function (error) { console.error(error.stack); }); } else { diff --git a/devtools/shared/protocol.js b/devtools/shared/protocol.js index daf6674b1bd1..32c44b773541 100644 --- a/devtools/shared/protocol.js +++ b/devtools/shared/protocol.js @@ -1112,7 +1112,7 @@ var generateRequestHandlers = function (actorSpec, actorProto) { return p .then(() => ret) .then(sendReturn) - .then(null, this.writeError.bind(this)); + .catch(this.writeError.bind(this)); }); } catch (e) { this._queueResponse(p => { @@ -1251,7 +1251,7 @@ var Front = Class({ this.actor().then(actorID => { packet.to = actorID; this.conn._transport.send(packet); - }).then(null, e => console.error(e)); + }).catch(e => console.error(e)); } }, diff --git a/devtools/shared/tests/mochitest/test_eventemitter_basic.html b/devtools/shared/tests/mochitest/test_eventemitter_basic.html index b64268380b51..c9e45fdfbcd6 100644 --- a/devtools/shared/tests/mochitest/test_eventemitter_basic.html +++ b/devtools/shared/tests/mochitest/test_eventemitter_basic.html @@ -33,7 +33,7 @@ testEmitter({}); Task.spawn(testPromise) - .then(null, ok.bind(null, false)) + .catch(ok.bind(null, false)) .then(SimpleTest.finish); function testEmitter(aObject) { diff --git a/devtools/shared/tests/unit/test_async-utils.js b/devtools/shared/tests/unit/test_async-utils.js index 8c640c473bca..100303763dd1 100644 --- a/devtools/shared/tests/unit/test_async-utils.js +++ b/devtools/shared/tests/unit/test_async-utils.js @@ -26,7 +26,7 @@ function run_test() { yield test_async_once(); yield test_async_invoke(); do_test_finished(); - }).then(null, error => { + }).catch(error => { do_throw(error); }); } @@ -66,7 +66,7 @@ function test_async_throw(async) { }) }; - return obj.method().then(null, error => { + return obj.method().catch(error => { do_check_true(error instanceof Error); do_check_eq(error.message, "boom"); }); @@ -149,7 +149,7 @@ function test_async_invoke() { throw new Error("boom"); } - yield promiseCall(thrower).then(null, error => { + yield promiseCall(thrower).catch(error => { do_check_true(error instanceof Error); do_check_eq(error.message, "boom"); }); diff --git a/devtools/shared/transport/tests/unit/test_client_server_bulk.js b/devtools/shared/transport/tests/unit/test_client_server_bulk.js index 7264787f68a5..c337e060e599 100644 --- a/devtools/shared/transport/tests/unit/test_client_server_bulk.js +++ b/devtools/shared/transport/tests/unit/test_client_server_bulk.js @@ -177,7 +177,7 @@ var test_bulk_request_cs = Task.async(function* (transportFactory, actorType, re client.close(); transport.close(); }); - }).then(null, do_throw); + }).catch(do_throw); DebuggerServer.on("connectionchange", (event, type) => { if (type === "closed") { @@ -219,7 +219,7 @@ var test_json_request_cs = Task.async(function* (transportFactory, actorType, re client.close(); transport.close(); }); - }).then(null, do_throw); + }).catch(do_throw); DebuggerServer.on("connectionchange", (event, type) => { if (type === "closed") { diff --git a/dom/crypto/test/test_WebCrypto.html b/dom/crypto/test/test_WebCrypto.html index 6dd22d88f169..d68f15d34050 100644 --- a/dom/crypto/test/test_WebCrypto.html +++ b/dom/crypto/test/test_WebCrypto.html @@ -491,9 +491,7 @@ TestArray.addTest( function doEncrypt(x) { return encrypt(x, new Uint8Array(15)) - .then( - null, - function () { return encrypt(new Uint8Array(17)); } + .catch(function () { return encrypt(new Uint8Array(17)); } ); } @@ -541,9 +539,7 @@ TestArray.addTest( function doDecrypt(x) { return decrypt(x, new Uint8Array(15)) - .then( - null, - function () { return decrypt(x, new Uint8Array(17)); } + .catch(function () { return decrypt(x, new Uint8Array(17)); } ); } @@ -591,9 +587,7 @@ TestArray.addTest( function doEncrypt(x) { return encrypt(x, new Uint8Array(15)) - .then( - null, - function () { return encrypt(x, new Uint8Array(17)); } + .catch(function () { return encrypt(x, new Uint8Array(17)); } ); } @@ -641,9 +635,7 @@ TestArray.addTest( function decrypt(x) { return decrypt(x, new Uint8Array(15)) - .then( - null, - function () { return decrypt(x, new Uint8Array(17)); } + .catch(function () { return decrypt(x, new Uint8Array(17)); } ); } diff --git a/dom/promise/tests/test_on_promise_settled.html b/dom/promise/tests/test_on_promise_settled.html index 4061d39975dc..c78336a987d7 100644 --- a/dom/promise/tests/test_on_promise_settled.html +++ b/dom/promise/tests/test_on_promise_settled.html @@ -43,7 +43,7 @@ Debugger.prototype.onPromiseResolved. is(wrappedPromise.unsafeDereference(), promise); dbg.onPromiseSettled = undefined; }) - .then(null, function (e) { + .catch(function (e) { ok(false, "Got an unexpected error: " + e); }) .then(SimpleTest.finish); diff --git a/dom/promise/tests/test_on_promise_settled_duplicates.html b/dom/promise/tests/test_on_promise_settled_duplicates.html index 5a1eddb1e5e9..95c0dc75fcd8 100644 --- a/dom/promise/tests/test_on_promise_settled_duplicates.html +++ b/dom/promise/tests/test_on_promise_settled_duplicates.html @@ -48,7 +48,7 @@ Bug 1084065 - Test that Debugger.prototype.onPromiseResolved doesn't get dupes. .then(function () { dbg.onPromiseSettled = undefined; }) - .then(null, function (e) { + .catch(function (e) { ok(false, "Got an unexpected error: " + e); }) .then(SimpleTest.finish); diff --git a/dom/promise/tests/unit/test_monitor_uncaught.js b/dom/promise/tests/unit/test_monitor_uncaught.js index 7dd80d212c1d..253a3750c1b1 100644 --- a/dom/promise/tests/unit/test_monitor_uncaught.js +++ b/dom/promise/tests/unit/test_monitor_uncaught.js @@ -20,7 +20,7 @@ add_task(function* test_globals() { add_task(function* test_promiseID() { let p1 = new Promise(resolve => {}); let p2 = new Promise(resolve => {}); - let p3 = p2.then(null, null); + let p3 = p2.catch(null); let promise = [p1, p2, p3]; let identifiers = promise.map(PromiseDebugging.getPromiseID); @@ -102,11 +102,11 @@ add_task(function* test_observe_uncaught() { name: "Resolution callback", }; yield { - promise: Promise.resolve(0).then(null, null), + promise: Promise.resolve(0).catch(null), name: "`then(null, null)`" }; yield { - promise: Promise.reject(0).then(null, () => {}), + promise: Promise.reject(0).catch(() => {}), name: "Reject and catch immediately", }; yield { @@ -122,7 +122,7 @@ add_task(function* test_observe_uncaught() { // Reject a promise now, consume it later. let p = Promise.reject("Reject now, consume later"); - setTimeout(() => p.then(null, () => { + setTimeout(() => p.catch(() => { do_print("Consumed promise"); }), 200); yield { diff --git a/dom/security/test/csp/file_service_worker.html b/dom/security/test/csp/file_service_worker.html index 00a2b4020609..1344e8d3d32e 100644 --- a/dom/security/test/csp/file_service_worker.html +++ b/dom/security/test/csp/file_service_worker.html @@ -13,7 +13,7 @@ finish.bind(null, 'blocked')); navigator.serviceWorker .register("file_service_worker.js", {scope: "."}) - .then(null, finish.bind(null, 'blocked')); + .catch(finish.bind(null, 'blocked')); diff --git a/mobile/android/chrome/content/aboutDownloads.js b/mobile/android/chrome/content/aboutDownloads.js index b18b1c11a6e5..5a41d46ff2bf 100644 --- a/mobile/android/chrome/content/aboutDownloads.js +++ b/mobile/android/chrome/content/aboutDownloads.js @@ -19,8 +19,8 @@ XPCOMUtils.defineLazyGetter(this, "strings", () => Services.strings.createBundle("chrome://browser/locale/aboutDownloads.properties")); function deleteDownload(download) { - download.finalize(true).then(null, Cu.reportError); - OS.File.remove(download.target.path).then(null, ex => { + download.finalize(true).catch(Cu.reportError); + OS.File.remove(download.target.path).catch(ex => { if (!(ex instanceof OS.File.Error && ex.becauseNoSuchFile)) { Cu.reportError(ex); } @@ -39,31 +39,31 @@ var contextMenu = { this._items = [ new ContextMenuItem("open", download => download.succeeded, - download => download.launch().then(null, Cu.reportError)), + download => download.launch().catch(Cu.reportError)), new ContextMenuItem("retry", download => download.error || (download.canceled && !download.hasPartialData), - download => download.start().then(null, Cu.reportError)), + download => download.start().catch(Cu.reportError)), new ContextMenuItem("remove", download => download.stopped, download => { Downloads.getList(Downloads.ALL) .then(list => list.remove(download)) - .then(null, Cu.reportError); + .catch(Cu.reportError); deleteDownload(download); }), new ContextMenuItem("pause", download => !download.stopped && download.hasPartialData, - download => download.cancel().then(null, Cu.reportError)), + download => download.cancel().catch(Cu.reportError)), new ContextMenuItem("resume", download => download.canceled && download.hasPartialData, - download => download.start().then(null, Cu.reportError)), + download => download.start().catch(Cu.reportError)), new ContextMenuItem("cancel", download => !download.stopped || (download.canceled && download.hasPartialData), download => { - download.cancel().then(null, Cu.reportError); - download.removePartialData().then(null, Cu.reportError); + download.cancel().catch(Cu.reportError); + download.removePartialData().catch(Cu.reportError); }), // following menu item is a global action new ContextMenuItem("removeall", @@ -116,12 +116,12 @@ function DownloadListView(type, listElementId) { Downloads.getList(type) .then(list => list.addView(this)) - .then(null, Cu.reportError); + .catch(Cu.reportError); window.addEventListener("unload", event => { Downloads.getList(type) .then(list => list.removeView(this)) - .then(null, Cu.reportError); + .catch(Cu.reportError); }); } @@ -215,7 +215,7 @@ var downloadLists = { Downloads.getList(Downloads.ALL) .then(list => { for (let download of finished) { - list.remove(download).then(null, Cu.reportError); + list.remove(download).catch(Cu.reportError); deleteDownload(download); } }, Cu.reportError); @@ -306,7 +306,7 @@ DownloadItem.prototype = { onClick: function (event) { if (this.download.succeeded) { - this.download.launch().then(null, Cu.reportError); + this.download.launch().catch(Cu.reportError); } }, diff --git a/mobile/android/chrome/content/browser.js b/mobile/android/chrome/content/browser.js index 7a6aaa55b112..0229e3f846d8 100644 --- a/mobile/android/chrome/content/browser.js +++ b/mobile/android/chrome/content/browser.js @@ -6844,7 +6844,7 @@ var Distribution = { } catch (e) { Cu.reportError("Distribution: Could not parse JSON: " + e); } - }).then(null, function onError(reason) { + }).catch(function onError(reason) { if (!(reason instanceof OS.File.Error && reason.becauseNoSuchFile)) { Cu.reportError("Distribution: Could not read from " + aFile.leafName + " file"); } diff --git a/mobile/android/components/AddonUpdateService.js b/mobile/android/components/AddonUpdateService.js index 8411ea260968..194a8f5b7365 100644 --- a/mobile/android/components/AddonUpdateService.js +++ b/mobile/android/components/AddonUpdateService.js @@ -59,7 +59,7 @@ AddonUpdateService.prototype = { AddonManagerPrivate.backgroundUpdateCheck(); let gmp = new GMPInstallManager(); - gmp.simpleCheckAndInstall().then(null, () => {}); + gmp.simpleCheckAndInstall().catch(() => {}); let interval = 1000 * getPref("getIntPref", PREF_ADDON_UPDATE_INTERVAL, 86400); EventDispatcher.instance.sendRequest({ diff --git a/mobile/android/components/Snippets.js b/mobile/android/components/Snippets.js index 8331d7d0f099..fbbe78f46e54 100644 --- a/mobile/android/components/Snippets.js +++ b/mobile/android/components/Snippets.js @@ -140,7 +140,7 @@ function updateSnippets() { function cacheSnippets(response) { let data = gEncoder.encode(response); let promise = OS.File.writeAtomic(gSnippetsPath, data, { tmpPath: gSnippetsPath + ".tmp" }); - promise.then(null, e => Cu.reportError("Error caching snippets: " + e)); + promise.catch(e => Cu.reportError("Error caching snippets: " + e)); } /** @@ -269,7 +269,7 @@ function writeStat(snippetId, timestamp) { // If the file doesn't exist yet, create it. yield OS.File.writeAtomic(gStatsPath, data, { tmpPath: gStatsPath + ".tmp" }); } - }).then(null, e => Cu.reportError("Error writing snippets stats: " + e)); + }).catch(e => Cu.reportError("Error writing snippets stats: " + e)); } /** @@ -315,7 +315,7 @@ function sendStatsRequest(data) { */ function removeStats() { let promise = OS.File.remove(gStatsPath); - promise.then(null, e => Cu.reportError("Error removing snippets stats: " + e)); + promise.catch(e => Cu.reportError("Error removing snippets stats: " + e)); } /** diff --git a/netwerk/protocol/http/UserAgentUpdates.jsm b/netwerk/protocol/http/UserAgentUpdates.jsm index 140789f2a08c..feec7791efff 100644 --- a/netwerk/protocol/http/UserAgentUpdates.jsm +++ b/netwerk/protocol/http/UserAgentUpdates.jsm @@ -142,8 +142,8 @@ this.UserAgentUpdates = { } ); // try to load next one if the previous load failed - return prevLoad ? prevLoad.then(null, tryNext) : tryNext(); - }, null).then(null, (ex) => { + return prevLoad ? prevLoad.catch(tryNext) : tryNext(); + }, null).catch((ex) => { if (AppConstants.platform !== "android") { // All previous (non-Android) load attempts have failed, so we bail. throw new Error("UserAgentUpdates: Failed to load " + FILE_UPDATES + diff --git a/netwerk/test/mochitests/test_user_agent_updates.html b/netwerk/test/mochitests/test_user_agent_updates.html index b4820e2846b3..bb53a06c4bc7 100644 --- a/netwerk/test/mochitests/test_user_agent_updates.html +++ b/netwerk/test/mochitests/test_user_agent_updates.html @@ -277,7 +277,7 @@ const chromeScript = SpecialPowers.loadChromeScript(_ => { } ); } - ).then(null, + ).catch( (reason) => { throw reason } diff --git a/security/manager/ssl/tests/mochitest/mixedcontent/test_bug383369.html b/security/manager/ssl/tests/mochitest/mixedcontent/test_bug383369.html index f93f100d45a3..146f29362aa5 100644 --- a/security/manager/ssl/tests/mochitest/mixedcontent/test_bug383369.html +++ b/security/manager/ssl/tests/mochitest/mixedcontent/test_bug383369.html @@ -58,7 +58,7 @@ }, }); sendAsyncMessage("navigate", "download.auto"); - }).then(null, Cu.reportError); + }).catch(Cu.reportError); }); script.addMessageListener("navigate", function(url) { window.location = url; diff --git a/services/fxaccounts/FxAccounts.jsm b/services/fxaccounts/FxAccounts.jsm index 38f15da706c1..1a898bce5368 100644 --- a/services/fxaccounts/FxAccounts.jsm +++ b/services/fxaccounts/FxAccounts.jsm @@ -1180,7 +1180,7 @@ FxAccountsInternal.prototype = { // is yet to start up.) This might cause "A promise chain failed to // handle a rejection" messages, so add an error handler directly // on the promise to log the error. - currentState.whenVerifiedDeferred.promise.then(null, err => { + currentState.whenVerifiedDeferred.promise.catch(err => { log.info("the wait for user verification was stopped: " + err); }); } diff --git a/services/fxaccounts/tests/xpcshell/test_accounts.js b/services/fxaccounts/tests/xpcshell/test_accounts.js index fb00c886d0ad..22dab7601341 100644 --- a/services/fxaccounts/tests/xpcshell/test_accounts.js +++ b/services/fxaccounts/tests/xpcshell/test_accounts.js @@ -652,8 +652,7 @@ add_test(function test_fetchAndUnwrapKeys_no_token() { user2 => { return fxa.internal.fetchAndUnwrapKeys(); } - ).then( - null, + ).catch( error => { log.info("setSignedInUser correctly rejected"); } @@ -1226,7 +1225,7 @@ add_test(function test_getOAuthToken_invalid_param() { let fxa = new MockFxAccounts(); fxa.getOAuthToken() - .then(null, err => { + .catch(err => { do_check_eq(err.message, "INVALID_PARAMETER"); fxa.signOut().then(run_next_test); }); @@ -1236,7 +1235,7 @@ add_test(function test_getOAuthToken_invalid_scope_array() { let fxa = new MockFxAccounts(); fxa.getOAuthToken({scope: []}) - .then(null, err => { + .catch(err => { do_check_eq(err.message, "INVALID_PARAMETER"); fxa.signOut().then(run_next_test); }); @@ -1248,7 +1247,7 @@ add_test(function test_getOAuthToken_misconfigure_oauth_uri() { Services.prefs.deleteBranch("identity.fxaccounts.remote.oauth.uri"); fxa.getOAuthToken() - .then(null, err => { + .catch(err => { do_check_eq(err.message, "INVALID_PARAMETER"); // revert the pref Services.prefs.setCharPref("identity.fxaccounts.remote.oauth.uri", "https://example.com/v1"); @@ -1264,7 +1263,7 @@ add_test(function test_getOAuthToken_no_account() { }; fxa.getOAuthToken({ scope: "profile" }) - .then(null, err => { + .catch(err => { do_check_eq(err.message, "NO_ACCOUNT"); fxa.signOut().then(run_next_test); }); @@ -1276,7 +1275,7 @@ add_test(function test_getOAuthToken_unverified() { fxa.setSignedInUser(alice).then(() => { fxa.getOAuthToken({ scope: "profile" }) - .then(null, err => { + .catch(err => { do_check_eq(err.message, "UNVERIFIED_ACCOUNT"); fxa.signOut().then(run_next_test); }); @@ -1304,7 +1303,7 @@ add_test(function test_getOAuthToken_network_error() { fxa.setSignedInUser(alice).then(() => { fxa.getOAuthToken({ scope: "profile", client }) - .then(null, err => { + .catch(err => { do_check_eq(err.message, "NETWORK_ERROR"); do_check_eq(err.details.errno, ERRNO_NETWORK); run_next_test(); @@ -1333,7 +1332,7 @@ add_test(function test_getOAuthToken_auth_error() { fxa.setSignedInUser(alice).then(() => { fxa.getOAuthToken({ scope: "profile", client }) - .then(null, err => { + .catch(err => { do_check_eq(err.message, "AUTH_ERROR"); do_check_eq(err.details.errno, ERRNO_INVALID_FXA_ASSERTION); run_next_test(); @@ -1359,7 +1358,7 @@ add_test(function test_getOAuthToken_unknown_error() { fxa.setSignedInUser(alice).then(() => { fxa.getOAuthToken({ scope: "profile", client }) - .then(null, err => { + .catch(err => { do_check_eq(err.message, "UNKNOWN_ERROR"); run_next_test(); }); diff --git a/services/fxaccounts/tests/xpcshell/test_oauth_grant_client.js b/services/fxaccounts/tests/xpcshell/test_oauth_grant_client.js index 3998185552a5..d03e4f62290a 100644 --- a/services/fxaccounts/tests/xpcshell/test_oauth_grant_client.js +++ b/services/fxaccounts/tests/xpcshell/test_oauth_grant_client.js @@ -105,9 +105,7 @@ add_test(function parseErrorResponse() { client._Request = new mockResponse(response); client.getTokenFromAssertion("assertion", "scope") - .then( - null, - function(e) { + .catch(function(e) { do_check_eq(e.name, "FxAccountsOAuthGrantClientError"); do_check_eq(e.code, STATUS_SUCCESS); do_check_eq(e.errno, ERRNO_PARSE); @@ -127,9 +125,7 @@ add_test(function serverErrorResponse() { client._Request = new mockResponse(response); client.getTokenFromAssertion("blah", "scope") - .then( - null, - function(e) { + .catch(function(e) { do_check_eq(e.name, "FxAccountsOAuthGrantClientError"); do_check_eq(e.code, 400); do_check_eq(e.errno, ERRNO_INVALID_FXA_ASSERTION); @@ -147,9 +143,7 @@ add_test(function networkErrorResponse() { }); Services.prefs.setBoolPref("identity.fxaccounts.skipDeviceRegistration", true); client.getTokenFromAssertion("assertion", "scope") - .then( - null, - function(e) { + .catch(function(e) { do_check_eq(e.name, "FxAccountsOAuthGrantClientError"); do_check_eq(e.code, null); do_check_eq(e.errno, ERRNO_NETWORK); @@ -164,9 +158,7 @@ add_test(function unsupportedMethod() { let client = new FxAccountsOAuthGrantClient(CLIENT_OPTIONS); return client._createRequest("/", "PUT") - .then( - null, - function(e) { + .catch(function(e) { do_check_eq(e.name, "FxAccountsOAuthGrantClientError"); do_check_eq(e.code, ERROR_CODE_METHOD_NOT_ALLOWED); do_check_eq(e.errno, ERRNO_NETWORK); @@ -181,9 +173,7 @@ add_test(function onCompleteRequestError() { let client = new FxAccountsOAuthGrantClient(CLIENT_OPTIONS); client._Request = new mockResponseError(new Error("onComplete error")); client.getTokenFromAssertion("assertion", "scope") - .then( - null, - function(e) { + .catch(function(e) { do_check_eq(e.name, "FxAccountsOAuthGrantClientError"); do_check_eq(e.code, null); do_check_eq(e.errno, ERRNO_NETWORK); @@ -203,9 +193,7 @@ add_test(function incorrectErrno() { client._Request = new mockResponse(response); client.getTokenFromAssertion("blah", "scope") - .then( - null, - function(e) { + .catch(function(e) { do_check_eq(e.name, "FxAccountsOAuthGrantClientError"); do_check_eq(e.code, 400); do_check_eq(e.errno, ERRNO_UNKNOWN_ERROR); diff --git a/services/fxaccounts/tests/xpcshell/test_profile_client.js b/services/fxaccounts/tests/xpcshell/test_profile_client.js index 046ecaaafa90..410df1268953 100644 --- a/services/fxaccounts/tests/xpcshell/test_profile_client.js +++ b/services/fxaccounts/tests/xpcshell/test_profile_client.js @@ -140,9 +140,7 @@ add_test(function parseErrorResponse() { client._Request = new mockResponse(response); client.fetchProfile() - .then( - null, - function(e) { + .catch(function(e) { do_check_eq(e.name, "FxAccountsProfileClientError"); do_check_eq(e.code, STATUS_SUCCESS); do_check_eq(e.errno, ERRNO_PARSE); @@ -162,9 +160,7 @@ add_test(function serverErrorResponse() { client._Request = new mockResponse(response); client.fetchProfile() - .then( - null, - function(e) { + .catch(function(e) { do_check_eq(e.name, "FxAccountsProfileClientError"); do_check_eq(e.code, 500); do_check_eq(e.errno, 100); @@ -298,9 +294,7 @@ add_test(function server401ResponsePersists() { }; } - client.fetchProfile().then( - null, - function(e) { + client.fetchProfile().catch(function(e) { do_check_eq(e.name, "FxAccountsProfileClientError"); do_check_eq(e.code, 401); do_check_eq(e.errno, 100); @@ -321,9 +315,7 @@ add_test(function networkErrorResponse() { fxa: mockFxa, }); client.fetchProfile() - .then( - null, - function(e) { + .catch(function(e) { do_check_eq(e.name, "FxAccountsProfileClientError"); do_check_eq(e.code, null); do_check_eq(e.errno, ERRNO_NETWORK); @@ -337,9 +329,7 @@ add_test(function unsupportedMethod() { let client = new FxAccountsProfileClient(PROFILE_OPTIONS); return client._createRequest("/profile", "PUT") - .then( - null, - function(e) { + .catch(function(e) { do_check_eq(e.name, "FxAccountsProfileClientError"); do_check_eq(e.code, ERROR_CODE_METHOD_NOT_ALLOWED); do_check_eq(e.errno, ERRNO_NETWORK); @@ -354,9 +344,7 @@ add_test(function onCompleteRequestError() { let client = new FxAccountsProfileClient(PROFILE_OPTIONS); client._Request = new mockResponseError(new Error("onComplete error")); client.fetchProfile() - .then( - null, - function(e) { + .catch(function(e) { do_check_eq(e.name, "FxAccountsProfileClientError"); do_check_eq(e.code, null); do_check_eq(e.errno, ERRNO_NETWORK); diff --git a/services/sync/modules/browserid_identity.js b/services/sync/modules/browserid_identity.js index 3e1a55d2ca48..0e070158a30d 100644 --- a/services/sync/modules/browserid_identity.js +++ b/services/sync/modules/browserid_identity.js @@ -840,8 +840,7 @@ BrowserIDClusterManager.prototype = { let cb = Async.makeSpinningCallback(); promiseClusterURL().then(function(clusterURL) { cb(null, clusterURL); - }).then( - null, err => { + }).catch(err => { log.info("Failed to fetch the cluster URL", err); // service.js's verifyLogin() method will attempt to fetch a cluster // URL when it sees a 401. If it gets null, it treats it as a "real" diff --git a/services/sync/modules/engines/history.js b/services/sync/modules/engines/history.js index c9345a4e30e4..38487478bab7 100644 --- a/services/sync/modules/engines/history.js +++ b/services/sync/modules/engines/history.js @@ -268,7 +268,7 @@ HistoryStore.prototype = { try { if (record.deleted) { let promise = this.remove(record); - promise = promise.then(null, ex => failed.push(record.id)); + promise = promise.catch(ex => failed.push(record.id)); blockers.push(promise); // No further processing needed. Remove it from the list. diff --git a/services/sync/tps/extensions/tps/resource/modules/bookmarks.jsm b/services/sync/tps/extensions/tps/resource/modules/bookmarks.jsm index afb3490d0b86..cd1841522528 100644 --- a/services/sync/tps/extensions/tps/resource/modules/bookmarks.jsm +++ b/services/sync/tps/extensions/tps/resource/modules/bookmarks.jsm @@ -25,7 +25,7 @@ var DumpBookmarks = function TPS_Bookmarks__DumpBookmarks() { let [bookmarks, ] = result; Logger.logInfo("Dumping Bookmarks...\n" + JSON.stringify(bookmarks) + "\n\n"); cb(null); - }).then(null, error => { + }).catch(error => { cb(error); }); cb.wait(); diff --git a/testing/modules/Assert.jsm b/testing/modules/Assert.jsm index 47ea3a3e4fb1..afe8c24221f8 100644 --- a/testing/modules/Assert.jsm +++ b/testing/modules/Assert.jsm @@ -392,7 +392,7 @@ proto.rejects = function(promise, expected, message) { this.report(false, err, expected, message); resolve(); } - ).then(null, reject); + ).catch(reject); }); }; diff --git a/toolkit/components/asyncshutdown/AsyncShutdown.jsm b/toolkit/components/asyncshutdown/AsyncShutdown.jsm index f081e7f25ac8..ec9284526804 100644 --- a/toolkit/components/asyncshutdown/AsyncShutdown.jsm +++ b/toolkit/components/asyncshutdown/AsyncShutdown.jsm @@ -711,7 +711,7 @@ function Barrier(name) { } // Make sure that `promise` never rejects. - promise = promise.then(null, error => { + promise = promise.catch(error => { let msg = `A blocker encountered an error while we were waiting. Blocker: ${ name } Phase: ${ this._name } @@ -852,7 +852,7 @@ Barrier.prototype = Object.freeze({ // Now, wait let promise = this._waitForMe.wait(); - promise = promise.then(null, function onError(error) { + promise = promise.catch(function onError(error) { // I don't think that this can happen. // However, let's be overcautious with async/shutdown error reporting. let msg = "An uncaught error appeared while completing the phase." + diff --git a/toolkit/components/jsdownloads/src/DownloadCore.jsm b/toolkit/components/jsdownloads/src/DownloadCore.jsm index 70251d7e66f5..e15aab79fbef 100644 --- a/toolkit/components/jsdownloads/src/DownloadCore.jsm +++ b/toolkit/components/jsdownloads/src/DownloadCore.jsm @@ -574,7 +574,7 @@ this.Download.prototype = { this._deferSucceeded.resolve(); if (this.launchWhenSucceeded) { - this.launch().then(null, Cu.reportError); + this.launch().catch(Cu.reportError); // Always schedule files to be deleted at the end of the private browsing // mode, regardless of the value of the pref. @@ -959,7 +959,7 @@ this.Download.prototype = { this._notifyChange(); } - })().then(null, Cu.reportError); + })().catch(Cu.reportError); }, /** diff --git a/toolkit/components/jsdownloads/src/DownloadIntegration.jsm b/toolkit/components/jsdownloads/src/DownloadIntegration.jsm index 23e67ef09ad6..c5692e4a8468 100644 --- a/toolkit/components/jsdownloads/src/DownloadIntegration.jsm +++ b/toolkit/components/jsdownloads/src/DownloadIntegration.jsm @@ -914,7 +914,7 @@ this.DownloadObserver = { }; // We register the view asynchronously. - aList.addView(downloadsView).then(null, Cu.reportError); + aList.addView(downloadsView).catch(Cu.reportError); }, /** @@ -987,8 +987,8 @@ this.DownloadObserver = { // We can remove the downloads and finalize them in parallel. for (let download of downloads) { - list.remove(download).then(null, Cu.reportError); - download.finalize(true).then(null, Cu.reportError); + list.remove(download).catch(Cu.reportError); + download.finalize(true).catch(Cu.reportError); } })(); // Handle test mode diff --git a/toolkit/components/jsdownloads/src/DownloadLegacy.js b/toolkit/components/jsdownloads/src/DownloadLegacy.js index 3bc6ccdcf5c8..617c541a62d1 100644 --- a/toolkit/components/jsdownloads/src/DownloadLegacy.js +++ b/toolkit/components/jsdownloads/src/DownloadLegacy.js @@ -132,7 +132,7 @@ DownloadLegacyTransfer.prototype = { } } }); - }).then(null, Cu.reportError); + }).catch(Cu.reportError); } else if ((aStateFlags & Ci.nsIWebProgressListener.STATE_STOP) && (aStateFlags & Ci.nsIWebProgressListener.STATE_IS_NETWORK)) { // The last file has been received, or the download failed. Wait for the @@ -146,7 +146,7 @@ DownloadLegacyTransfer.prototype = { download.saver.setRedirects(this._redirects); } download.saver.onTransferFinished(aStatus); - }).then(null, Cu.reportError); + }).catch(Cu.reportError); // Release the reference to the component executing the download. this._cancelable = null; @@ -176,7 +176,7 @@ DownloadLegacyTransfer.prototype = { // Wait for the associated Download object to be available. this._deferDownload.promise.then(function DLT_OSC_onDownload(aDownload) { aDownload.saver.onTransferFinished(aStatus); - }).then(null, Cu.reportError); + }).catch(Cu.reportError); } }, @@ -192,7 +192,7 @@ DownloadLegacyTransfer.prototype = { // Wait for the associated Download object to be available. this._deferDownload.promise.then(function DLT_OPC64_onDownload(aDownload) { aDownload.saver.onProgressBytes(aCurTotalProgress, aMaxTotalProgress); - }).then(null, Cu.reportError); + }).catch(Cu.reportError); }, onRefreshAttempted: function DLT_onRefreshAttempted(aWebProgress, aRefreshURI, @@ -247,7 +247,7 @@ DownloadLegacyTransfer.prototype = { // Add the download to the list, allowing it to be seen and canceled. return Downloads.getList(Downloads.ALL).then(list => list.add(aDownload)); - }).then(null, Cu.reportError); + }).catch(Cu.reportError); }, setSha256Hash(hash) { diff --git a/toolkit/components/jsdownloads/src/DownloadList.jsm b/toolkit/components/jsdownloads/src/DownloadList.jsm index 442b0eff5089..32c84610418b 100644 --- a/toolkit/components/jsdownloads/src/DownloadList.jsm +++ b/toolkit/components/jsdownloads/src/DownloadList.jsm @@ -241,10 +241,10 @@ this.DownloadList.prototype = { // This works even if the download state has changed meanwhile. We // don't need to wait for the procedure to be complete before // processing the other downloads in the list. - download.finalize(true).then(null, Cu.reportError); + download.finalize(true).catch(Cu.reportError); } } - })().then(null, Cu.reportError); + })().catch(Cu.reportError); }, }; @@ -266,8 +266,8 @@ this.DownloadCombinedList = function(aPublicList, aPrivateList) { DownloadList.call(this); this._publicList = aPublicList; this._privateList = aPrivateList; - aPublicList.addView(this).then(null, Cu.reportError); - aPrivateList.addView(this).then(null, Cu.reportError); + aPublicList.addView(this).catch(Cu.reportError); + aPrivateList.addView(this).catch(Cu.reportError); } this.DownloadCombinedList.prototype = { diff --git a/toolkit/components/jsdownloads/test/unit/head.js b/toolkit/components/jsdownloads/test/unit/head.js index ff5b0b3aefc9..af38f36f6ccc 100644 --- a/toolkit/components/jsdownloads/test/unit/head.js +++ b/toolkit/components/jsdownloads/test/unit/head.js @@ -336,7 +336,7 @@ function promiseStartLegacyDownload(aSourceUrl, aOptions) { // are controlling becomes visible in the list of downloads. aList.addView({ onDownloadAdded(aDownload) { - aList.removeView(this).then(null, do_report_unexpected_exception); + aList.removeView(this).catch(do_report_unexpected_exception); // Remove the download to keep the list empty for the next test. This // also allows the caller to register the "onchange" event directly. @@ -346,7 +346,7 @@ function promiseStartLegacyDownload(aSourceUrl, aOptions) { promise.then(() => resolve(aDownload), do_report_unexpected_exception); }, - }).then(null, do_report_unexpected_exception); + }).catch(do_report_unexpected_exception); let isPrivate = aOptions && aOptions.isPrivate; @@ -359,7 +359,7 @@ function promiseStartLegacyDownload(aSourceUrl, aOptions) { // Start the actual download process. persist.savePrivacyAwareURI(sourceURI, null, null, 0, null, null, targetFile, isPrivate); - }).then(null, do_report_unexpected_exception); + }).catch(do_report_unexpected_exception); }); } @@ -389,7 +389,7 @@ function promiseStartExternalHelperAppServiceDownload(aSourceUrl) { // are controlling becomes visible in the list of downloads. aList.addView({ onDownloadAdded(aDownload) { - aList.removeView(this).then(null, do_report_unexpected_exception); + aList.removeView(this).catch(do_report_unexpected_exception); // Remove the download to keep the list empty for the next test. This // also allows the caller to register the "onchange" event directly. @@ -399,7 +399,7 @@ function promiseStartExternalHelperAppServiceDownload(aSourceUrl) { promise.then(() => resolve(aDownload), do_report_unexpected_exception); }, - }).then(null, do_report_unexpected_exception); + }).catch(do_report_unexpected_exception); let channel = NetUtil.newChannel({ uri: sourceURI, @@ -427,7 +427,7 @@ function promiseStartExternalHelperAppServiceDownload(aSourceUrl) { aOffset, aCount); }, }); - }).then(null, do_report_unexpected_exception); + }).catch(do_report_unexpected_exception); }); } @@ -639,7 +639,7 @@ function registerInterruptibleHandler(aPath, aFirstPartFn, aSecondPartFn) { aSecondPartFn(aRequest, aResponse); aResponse.finish(); do_print("Interruptible request finished."); - }).then(null, Cu.reportError); + }).catch(Cu.reportError); }); } diff --git a/toolkit/components/osfile/modules/osfile_async_front.jsm b/toolkit/components/osfile/modules/osfile_async_front.jsm index c908bf23e5e4..adf20b728986 100644 --- a/toolkit/components/osfile/modules/osfile_async_front.jsm +++ b/toolkit/components/osfile/modules/osfile_async_front.jsm @@ -374,9 +374,9 @@ var Scheduler = this.Scheduler = { push: function(code) { let promise = this.queue.then(code); // By definition, |this.queue| can never reject. - this.queue = promise.then(null, () => undefined); + this.queue = promise.catch(() => undefined); // Fork |promise| to ensure that uncaught errors are reported - return promise.then(null, null); + return promise.catch(null); }, /** diff --git a/toolkit/components/passwordmgr/LoginManagerContent.jsm b/toolkit/components/passwordmgr/LoginManagerContent.jsm index 95cc8e0d880f..0b11f3305c4b 100644 --- a/toolkit/components/passwordmgr/LoginManagerContent.jsm +++ b/toolkit/components/passwordmgr/LoginManagerContent.jsm @@ -446,7 +446,7 @@ var LoginManagerContent = { this._getLoginDataFromParent(form, { showMasterPassword: true }) .then(this.loginsFound.bind(this)) - .then(null, Cu.reportError); + .catch(Cu.reportError); }, onPageShow(event, window) { @@ -650,7 +650,7 @@ var LoginManagerContent = { userTriggered: true, }); }) - .then(null, Cu.reportError); + .catch(Cu.reportError); } else { // Ignore the event, it's for some input we don't care about. } diff --git a/toolkit/components/passwordmgr/nsLoginManager.js b/toolkit/components/passwordmgr/nsLoginManager.js index 7012aaa19d4e..2d31e1f60458 100644 --- a/toolkit/components/passwordmgr/nsLoginManager.js +++ b/toolkit/components/passwordmgr/nsLoginManager.js @@ -527,7 +527,7 @@ LoginManager.prototype = { LoginManagerContent._autoCompleteSearchAsync(aSearchString, previousResult, aElement, rect); acLookupPromise.then(completeSearch.bind(this, acLookupPromise)) - .then(null, Cu.reportError); + .catch(Cu.reportError); }, stopSearch() { diff --git a/toolkit/components/places/Bookmarks.jsm b/toolkit/components/places/Bookmarks.jsm index 3643b9b30b37..d89a3129be78 100644 --- a/toolkit/components/places/Bookmarks.jsm +++ b/toolkit/components/places/Bookmarks.jsm @@ -720,7 +720,7 @@ var Bookmarks = Object.freeze({ // We don't wait for the frecency calculation. if (urls && urls.length) { - updateFrecency(db, urls, true).then(null, Cu.reportError); + updateFrecency(db, urls, true).catch(Cu.reportError); } } ); diff --git a/toolkit/components/places/PlacesUtils.jsm b/toolkit/components/places/PlacesUtils.jsm index 77d2a5bb5bbf..dd8c4e6f5606 100644 --- a/toolkit/components/places/PlacesUtils.jsm +++ b/toolkit/components/places/PlacesUtils.jsm @@ -3069,7 +3069,7 @@ PlacesCreateLivemarkTransaction.prototype = { // The getLivemark callback may fail, but it is used just to serialize, // so it doesn't matter. this._promise = PlacesUtils.livemarks.getLivemark({ id: this.item.id }) - .then(null, null).then( () => { + .catch(null).then( () => { PlacesUtils.bookmarks.removeItem(this.item.id); }); } @@ -3121,7 +3121,7 @@ PlacesRemoveLivemarkTransaction.prototype = { // The getLivemark callback is expected to receive a failure status but it // is used just to serialize, so doesn't matter. PlacesUtils.livemarks.getLivemark({ id: this.item.id }) - .then(null, () => { + .catch(() => { PlacesUtils.livemarks.addLivemark({ parentId: this.item.parentId, title: this.item.title, siteURI: this.item.siteURI, diff --git a/toolkit/components/places/UnifiedComplete.js b/toolkit/components/places/UnifiedComplete.js index c4512fbb0fbe..8ef76ee3bd9a 100644 --- a/toolkit/components/places/UnifiedComplete.js +++ b/toolkit/components/places/UnifiedComplete.js @@ -2204,7 +2204,7 @@ UnifiedComplete.prototype = { await SwitchToTabStorage.initDatabase(conn); return conn; - })().then(null, ex => { + })().catch(ex => { dump("Couldn't get database handle: " + ex + "\n"); Cu.reportError(ex); }); @@ -2256,7 +2256,7 @@ UnifiedComplete.prototype = { let search = this._currentSearch; this.getDatabaseHandle().then(conn => search.execute(conn)) - .then(null, ex => { + .catch(ex => { dump(`Query failed: ${ex}\n`); Cu.reportError(ex); }) diff --git a/toolkit/components/places/tests/unit/test_bookmarks_restore_notification.js b/toolkit/components/places/tests/unit/test_bookmarks_restore_notification.js index 7c46b06d4984..ef9352774f38 100644 --- a/toolkit/components/places/tests/unit/test_bookmarks_restore_notification.js +++ b/toolkit/components/places/tests/unit/test_bookmarks_restore_notification.js @@ -214,7 +214,7 @@ add_task(async function test_html_restore_normal() { await PlacesUtils.bookmarks.eraseEverything(); try { BookmarkHTMLUtils.importFromFile(file, false) - .then(null, do_report_unexpected_exception); + .catch(do_report_unexpected_exception); } catch (e) { do_throw(" Restore should not have failed"); } @@ -234,7 +234,7 @@ add_task(async function test_html_restore_empty() { let file = await promiseFile("bookmarks-test_restoreNotification.init.html"); try { BookmarkHTMLUtils.importFromFile(file, false) - .then(null, do_report_unexpected_exception); + .catch(do_report_unexpected_exception); } catch (e) { do_throw(" Restore should not have failed"); } @@ -276,7 +276,7 @@ add_task(async function test_html_init_restore_normal() { await PlacesUtils.bookmarks.eraseEverything(); try { BookmarkHTMLUtils.importFromFile(file, true) - .then(null, do_report_unexpected_exception); + .catch(do_report_unexpected_exception); } catch (e) { do_throw(" Restore should not have failed"); } @@ -296,7 +296,7 @@ add_task(async function test_html_init_restore_empty() { let file = await promiseFile("bookmarks-test_restoreNotification.init.html"); try { BookmarkHTMLUtils.importFromFile(file, true) - .then(null, do_report_unexpected_exception); + .catch(do_report_unexpected_exception); } catch (e) { do_throw(" Restore should not have failed"); } diff --git a/toolkit/components/thumbnails/PageThumbs.jsm b/toolkit/components/thumbnails/PageThumbs.jsm index dff16231cd0c..85e431dc4b0a 100644 --- a/toolkit/components/thumbnails/PageThumbs.jsm +++ b/toolkit/components/thumbnails/PageThumbs.jsm @@ -534,9 +534,7 @@ this.PageThumbsStorage = { // future operations can proceed without having to check whether // the directory exists. return PageThumbsWorker.post("makeDir", - [this.path, {ignoreExisting: true}]).then( - null, - function onError(aReason) { + [this.path, {ignoreExisting: true}]).catch(function onError(aReason) { Components.utils.reportError("Could not create thumbnails directory" + aReason); }); }, diff --git a/toolkit/content/contentAreaUtils.js b/toolkit/content/contentAreaUtils.js index 2fda696ba8d8..73b7132e3b94 100644 --- a/toolkit/content/contentAreaUtils.js +++ b/toolkit/content/contentAreaUtils.js @@ -432,7 +432,7 @@ function internalSave(aURL, aDocument, aDefaultFileName, aContentDisposition, file = fpParams.file; continueSave(); - }).then(null, Components.utils.reportError); + }).catch(Components.utils.reportError); } function continueSave() { @@ -825,7 +825,7 @@ function DownloadURL(aURL, aFileName, aInitiatingDocument) { // Add the download to the list, allowing it to be managed. let list = await Downloads.getList(Downloads.ALL); list.add(download); - })().then(null, Components.utils.reportError); + })().catch(Components.utils.reportError); } // We have no DOM, and can only save the URL as is. diff --git a/toolkit/modules/DeferredTask.jsm b/toolkit/modules/DeferredTask.jsm index 0c47ebae608b..780e30f6df2d 100644 --- a/toolkit/modules/DeferredTask.jsm +++ b/toolkit/modules/DeferredTask.jsm @@ -293,7 +293,7 @@ this.DeferredTask.prototype = { // Indicate that the execution of the task has finished. This happens // synchronously with the previous state changes in the function. this._runningPromise = null; - })().then(null, Cu.reportError)); + })().catch(Cu.reportError)); }, /** diff --git a/toolkit/modules/ZipUtils.jsm b/toolkit/modules/ZipUtils.jsm index 280360844fb4..39e70196d493 100644 --- a/toolkit/modules/ZipUtils.jsm +++ b/toolkit/modules/ZipUtils.jsm @@ -147,7 +147,7 @@ this.ZipUtils = { } zipReader.close(); - })().then(null, (e) => { + })().catch((e) => { zipReader.close(); throw e; }); diff --git a/toolkit/mozapps/downloads/nsHelperAppDlg.js b/toolkit/mozapps/downloads/nsHelperAppDlg.js index c6b337a8b1d1..63b2062b13c2 100644 --- a/toolkit/mozapps/downloads/nsHelperAppDlg.js +++ b/toolkit/mozapps/downloads/nsHelperAppDlg.js @@ -362,7 +362,7 @@ nsUnknownContentTypeDialog.prototype = { aLauncher.saveDestinationAvailable(result); }); }); - })().then(null, Components.utils.reportError); + })().catch(Components.utils.reportError); }, getFinalLeafName: function (aLeafName, aFileExt) diff --git a/toolkit/mozapps/extensions/AddonManager.jsm b/toolkit/mozapps/extensions/AddonManager.jsm index 7f622636e334..2730d883e7b3 100644 --- a/toolkit/mozapps/extensions/AddonManager.jsm +++ b/toolkit/mozapps/extensions/AddonManager.jsm @@ -1520,7 +1520,7 @@ var AddonManagerInternal = { "addons-background-update-complete"); })(); // Fork the promise chain so we can log the error and let our caller see it too. - buPromise.then(null, e => logger.warn("Error in background update", e)); + buPromise.catch(e => logger.warn("Error in background update", e)); return buPromise; }, diff --git a/toolkit/mozapps/extensions/DeferredSave.jsm b/toolkit/mozapps/extensions/DeferredSave.jsm index 7ac0c5b713d0..32b4e049c3a8 100644 --- a/toolkit/mozapps/extensions/DeferredSave.jsm +++ b/toolkit/mozapps/extensions/DeferredSave.jsm @@ -202,14 +202,14 @@ this.DeferredSave.prototype = { toSave = this._dataProvider(); } catch (e) { this.logger.error("Deferred save dataProvider failed", e); - writing.then(null, error => {}) + writing.catch(error => {}) .then(count => { pending.reject(e); }); return; } - writing.then(null, error => { return 0; }) + writing.catch(error => { return 0; }) .then(count => { this.logger.debug("Starting write"); this.totalSaves++; diff --git a/toolkit/mozapps/extensions/internal/AddonRepository.jsm b/toolkit/mozapps/extensions/internal/AddonRepository.jsm index 94a021865989..7b661a9c7010 100644 --- a/toolkit/mozapps/extensions/internal/AddonRepository.jsm +++ b/toolkit/mozapps/extensions/internal/AddonRepository.jsm @@ -1657,11 +1657,11 @@ var AddonDatabase = { this.DB = BLANK_DB(); this._deleting = this.Writer.flush() - .then(null, () => {}) + .catch(() => {}) // shutdown(true) never rejects .then(() => this.shutdown(true)) .then(() => OS.File.remove(this.jsonFile, {})) - .then(null, error => logger.error("Unable to delete Addon Repository file " + + .catch(error => logger.error("Unable to delete Addon Repository file " + this.jsonFile, error)) .then(() => this._deleting = null) .then(aCallback); @@ -1899,8 +1899,7 @@ var AddonDatabase = { * write to disk has completed. */ _saveDBToDisk() { - return this.Writer.saveChanges().then( - null, + return this.Writer.saveChanges().catch( e => logger.error("SaveDBToDisk failed", e)); }, diff --git a/toolkit/mozapps/extensions/internal/GMPProvider.jsm b/toolkit/mozapps/extensions/internal/GMPProvider.jsm index e41c93a59ec9..a712cea92e82 100644 --- a/toolkit/mozapps/extensions/internal/GMPProvider.jsm +++ b/toolkit/mozapps/extensions/internal/GMPProvider.jsm @@ -385,7 +385,7 @@ GMPWrapper.prototype = { let gmpInstallManager = new GMPInstallManager(); // We don't really care about the results, if someone is interested // they can check the log. - gmpInstallManager.simpleCheckAndInstall().then(null, () => {}); + gmpInstallManager.simpleCheckAndInstall().catch(() => {}); } this._isUpdateCheckPending = false; }, delay); diff --git a/toolkit/mozapps/extensions/internal/XPIInstall.jsm b/toolkit/mozapps/extensions/internal/XPIInstall.jsm index 765e80dc50a6..06518f78024e 100644 --- a/toolkit/mozapps/extensions/internal/XPIInstall.jsm +++ b/toolkit/mozapps/extensions/internal/XPIInstall.jsm @@ -1946,7 +1946,7 @@ class AddonInstall { if (isTheme(this.addon.type) && this.addon.active) AddonManagerPrivate.notifyAddonChanged(this.addon.id, this.addon.type, requiresRestart); } - })().then(null, (e) => { + })().catch((e) => { logger.warn(`Failed to install ${this.file.path} from ${this.sourceURI.spec} to ${stagedAddon.path}`, e); if (stagedAddon.exists()) diff --git a/toolkit/mozapps/extensions/internal/XPIProvider.jsm b/toolkit/mozapps/extensions/internal/XPIProvider.jsm index 18169e76f327..936884eba0a4 100644 --- a/toolkit/mozapps/extensions/internal/XPIProvider.jsm +++ b/toolkit/mozapps/extensions/internal/XPIProvider.jsm @@ -6050,7 +6050,7 @@ class MutableDirectoryInstallLocation extends DirectoryInstallLocation { OS.File.makeDir(this._directory.path); let stagepath = OS.Path.join(this._directory.path, DIR_STAGE); - return this._stagingDirPromise = OS.File.makeDir(stagepath).then(null, (e) => { + return this._stagingDirPromise = OS.File.makeDir(stagepath).catch((e) => { if (e instanceof OS.File.Error && e.becauseExists) return; logger.error("Failed to create staging directory", e); diff --git a/toolkit/mozapps/extensions/internal/XPIProviderUtils.js b/toolkit/mozapps/extensions/internal/XPIProviderUtils.js index 987e208c30c1..675663fe7ada 100644 --- a/toolkit/mozapps/extensions/internal/XPIProviderUtils.js +++ b/toolkit/mozapps/extensions/internal/XPIProviderUtils.js @@ -681,7 +681,7 @@ this.XPIDatabase = { // Return a promise that any pending writes of the DB are complete and we // are finished cleaning up let flushPromise = this.flush(); - flushPromise.then(null, error => { + flushPromise.catch(error => { logger.error("Flush of XPI database failed", error); AddonManagerPrivate.recordSimpleMeasure("XPIDB_shutdownFlush_failed", 1); // If our last attempt to read or write the DB failed, force a new @@ -744,7 +744,7 @@ this.XPIDatabase = { addonDB => { getRepositoryAddon(_findAddon(addonDB, aFilter), makeSafe(aCallback)); }) - .then(null, + .catch( error => { logger.error("getAddon failed", error); makeSafe(aCallback)(null); diff --git a/toolkit/mozapps/extensions/test/browser/head.js b/toolkit/mozapps/extensions/test/browser/head.js index ed7a57c50732..ae761d361d4d 100644 --- a/toolkit/mozapps/extensions/test/browser/head.js +++ b/toolkit/mozapps/extensions/test/browser/head.js @@ -184,7 +184,7 @@ function log_exceptions(aCallback, ...aArgs) { function log_callback(aPromise, aCallback) { aPromise.then(aCallback) - .then(null, e => info("Exception thrown: " + e)); + .catch(e => info("Exception thrown: " + e)); return aPromise; } From a24b4cbd1b47d56b1742d9163facd7f78531268e Mon Sep 17 00:00:00 2001 From: Paolo Amadini Date: Fri, 16 Jun 2017 11:16:00 +0100 Subject: [PATCH 050/106] Bug 1362970 - Part 3 - Fix indentation and one misuse of "catch". r=florian MozReview-Commit-ID: 2oFOmye7EUr --- dom/crypto/test/test_WebCrypto.html | 12 ++-- .../tests/unit/test_monitor_uncaught.js | 2 +- .../tests/xpcshell/test_oauth_grant_client.js | 64 +++++++++---------- .../osfile/modules/osfile_async_front.jsm | 2 +- toolkit/components/places/PlacesUtils.jsm | 2 +- 5 files changed, 36 insertions(+), 46 deletions(-) diff --git a/dom/crypto/test/test_WebCrypto.html b/dom/crypto/test/test_WebCrypto.html index d68f15d34050..2892b217ea52 100644 --- a/dom/crypto/test/test_WebCrypto.html +++ b/dom/crypto/test/test_WebCrypto.html @@ -491,8 +491,7 @@ TestArray.addTest( function doEncrypt(x) { return encrypt(x, new Uint8Array(15)) - .catch(function () { return encrypt(new Uint8Array(17)); } - ); + .catch(function () { return encrypt(new Uint8Array(17)); }); } crypto.subtle.importKey("raw", tv.aes_cbc_enc.key, "AES-CBC", false, ['encrypt']) @@ -539,8 +538,7 @@ TestArray.addTest( function doDecrypt(x) { return decrypt(x, new Uint8Array(15)) - .catch(function () { return decrypt(x, new Uint8Array(17)); } - ); + .catch(function () { return decrypt(x, new Uint8Array(17)); }); } crypto.subtle.importKey("raw", tv.aes_cbc_dec.key, "AES-CBC", false, ['decrypt']) @@ -587,8 +585,7 @@ TestArray.addTest( function doEncrypt(x) { return encrypt(x, new Uint8Array(15)) - .catch(function () { return encrypt(x, new Uint8Array(17)); } - ); + .catch(function () { return encrypt(x, new Uint8Array(17)); }); } crypto.subtle.importKey("raw", tv.aes_ctr_enc.key, "AES-CTR", false, ['encrypt']) @@ -635,8 +632,7 @@ TestArray.addTest( function decrypt(x) { return decrypt(x, new Uint8Array(15)) - .catch(function () { return decrypt(x, new Uint8Array(17)); } - ); + .catch(function () { return decrypt(x, new Uint8Array(17)); }); } crypto.subtle.importKey("raw", tv.aes_ctr_dec.key, "AES-CTR", false, ['decrypt']) diff --git a/dom/promise/tests/unit/test_monitor_uncaught.js b/dom/promise/tests/unit/test_monitor_uncaught.js index 253a3750c1b1..8afc485931c2 100644 --- a/dom/promise/tests/unit/test_monitor_uncaught.js +++ b/dom/promise/tests/unit/test_monitor_uncaught.js @@ -103,7 +103,7 @@ add_task(function* test_observe_uncaught() { }; yield { promise: Promise.resolve(0).catch(null), - name: "`then(null, null)`" + name: "`catch(null)`" }; yield { promise: Promise.reject(0).catch(() => {}), diff --git a/services/fxaccounts/tests/xpcshell/test_oauth_grant_client.js b/services/fxaccounts/tests/xpcshell/test_oauth_grant_client.js index d03e4f62290a..41158318529b 100644 --- a/services/fxaccounts/tests/xpcshell/test_oauth_grant_client.js +++ b/services/fxaccounts/tests/xpcshell/test_oauth_grant_client.js @@ -106,14 +106,13 @@ add_test(function parseErrorResponse() { client._Request = new mockResponse(response); client.getTokenFromAssertion("assertion", "scope") .catch(function(e) { - do_check_eq(e.name, "FxAccountsOAuthGrantClientError"); - do_check_eq(e.code, STATUS_SUCCESS); - do_check_eq(e.errno, ERRNO_PARSE); - do_check_eq(e.error, ERROR_PARSE); - do_check_eq(e.message, "unexpected"); - run_next_test(); - } - ); + do_check_eq(e.name, "FxAccountsOAuthGrantClientError"); + do_check_eq(e.code, STATUS_SUCCESS); + do_check_eq(e.errno, ERRNO_PARSE); + do_check_eq(e.error, ERROR_PARSE); + do_check_eq(e.message, "unexpected"); + run_next_test(); + }); }); add_test(function serverErrorResponse() { @@ -132,8 +131,7 @@ add_test(function serverErrorResponse() { do_check_eq(e.error, "Bad Request"); do_check_eq(e.message, "Unauthorized"); run_next_test(); - } - ); + }); }); add_test(function networkErrorResponse() { @@ -144,13 +142,12 @@ add_test(function networkErrorResponse() { Services.prefs.setBoolPref("identity.fxaccounts.skipDeviceRegistration", true); client.getTokenFromAssertion("assertion", "scope") .catch(function(e) { - do_check_eq(e.name, "FxAccountsOAuthGrantClientError"); - do_check_eq(e.code, null); - do_check_eq(e.errno, ERRNO_NETWORK); - do_check_eq(e.error, ERROR_NETWORK); - run_next_test(); - } - ).catch(() => {}).then(() => + do_check_eq(e.name, "FxAccountsOAuthGrantClientError"); + do_check_eq(e.code, null); + do_check_eq(e.errno, ERRNO_NETWORK); + do_check_eq(e.error, ERROR_NETWORK); + run_next_test(); + }).catch(() => {}).then(() => Services.prefs.clearUserPref("identity.fxaccounts.skipDeviceRegistration")); }); @@ -159,14 +156,13 @@ add_test(function unsupportedMethod() { return client._createRequest("/", "PUT") .catch(function(e) { - do_check_eq(e.name, "FxAccountsOAuthGrantClientError"); - do_check_eq(e.code, ERROR_CODE_METHOD_NOT_ALLOWED); - do_check_eq(e.errno, ERRNO_NETWORK); - do_check_eq(e.error, ERROR_NETWORK); - do_check_eq(e.message, ERROR_MSG_METHOD_NOT_ALLOWED); - run_next_test(); - } - ); + do_check_eq(e.name, "FxAccountsOAuthGrantClientError"); + do_check_eq(e.code, ERROR_CODE_METHOD_NOT_ALLOWED); + do_check_eq(e.errno, ERRNO_NETWORK); + do_check_eq(e.error, ERROR_NETWORK); + do_check_eq(e.message, ERROR_MSG_METHOD_NOT_ALLOWED); + run_next_test(); + }); }); add_test(function onCompleteRequestError() { @@ -174,14 +170,13 @@ add_test(function onCompleteRequestError() { client._Request = new mockResponseError(new Error("onComplete error")); client.getTokenFromAssertion("assertion", "scope") .catch(function(e) { - do_check_eq(e.name, "FxAccountsOAuthGrantClientError"); - do_check_eq(e.code, null); - do_check_eq(e.errno, ERRNO_NETWORK); - do_check_eq(e.error, ERROR_NETWORK); - do_check_eq(e.message, "Error: onComplete error"); - run_next_test(); - } - ); + do_check_eq(e.name, "FxAccountsOAuthGrantClientError"); + do_check_eq(e.code, null); + do_check_eq(e.errno, ERRNO_NETWORK); + do_check_eq(e.error, ERROR_NETWORK); + do_check_eq(e.message, "Error: onComplete error"); + run_next_test(); + }); }); add_test(function incorrectErrno() { @@ -200,8 +195,7 @@ add_test(function incorrectErrno() { do_check_eq(e.error, "Bad Request"); do_check_eq(e.message, "Unauthorized"); run_next_test(); - } - ); + }); }); add_test(function constructorTests() { diff --git a/toolkit/components/osfile/modules/osfile_async_front.jsm b/toolkit/components/osfile/modules/osfile_async_front.jsm index adf20b728986..a75383e83151 100644 --- a/toolkit/components/osfile/modules/osfile_async_front.jsm +++ b/toolkit/components/osfile/modules/osfile_async_front.jsm @@ -376,7 +376,7 @@ var Scheduler = this.Scheduler = { // By definition, |this.queue| can never reject. this.queue = promise.catch(() => undefined); // Fork |promise| to ensure that uncaught errors are reported - return promise.catch(null); + return promise.then(); }, /** diff --git a/toolkit/components/places/PlacesUtils.jsm b/toolkit/components/places/PlacesUtils.jsm index dd8c4e6f5606..dff0e68f20f9 100644 --- a/toolkit/components/places/PlacesUtils.jsm +++ b/toolkit/components/places/PlacesUtils.jsm @@ -3069,7 +3069,7 @@ PlacesCreateLivemarkTransaction.prototype = { // The getLivemark callback may fail, but it is used just to serialize, // so it doesn't matter. this._promise = PlacesUtils.livemarks.getLivemark({ id: this.item.id }) - .catch(null).then( () => { + .catch(() => {}).then(() => { PlacesUtils.bookmarks.removeItem(this.item.id); }); } From 64308cbe4fd0fe0d2fbd664955799519de0824bb Mon Sep 17 00:00:00 2001 From: Alin Selagea Date: Tue, 20 Jun 2017 15:09:11 +0300 Subject: [PATCH 051/106] Bug 1363742 - delete code that references mozilla-aurora in buildbot configs and taskcluster, r=kmoir (patch by spacurar) --- taskcluster/ci/nightly-l10n/kind.yml | 2 +- taskcluster/ci/test/tests.yml | 18 +++++++++--------- .../taskgraph/test/test_target_tasks.py | 1 - .../taskgraph/test/test_util_attributes.py | 4 ---- taskcluster/taskgraph/transforms/task.py | 1 - taskcluster/taskgraph/util/scriptworker.py | 6 ------ 6 files changed, 10 insertions(+), 22 deletions(-) diff --git a/taskcluster/ci/nightly-l10n/kind.yml b/taskcluster/ci/nightly-l10n/kind.yml index febfee04a48b..7d85d846e6fe 100644 --- a/taskcluster/ci/nightly-l10n/kind.yml +++ b/taskcluster/ci/nightly-l10n/kind.yml @@ -31,7 +31,7 @@ job-template: by-build-platform: macosx64-nightly: 8 default: 6 - run-on-projects: ['mozilla-central', 'mozilla-aurora', 'mozilla-beta'] + run-on-projects: ['mozilla-central', 'mozilla-beta'] ignore-locales: by-build-platform: # OSX has a special locale for japanese diff --git a/taskcluster/ci/test/tests.yml b/taskcluster/ci/test/tests.yml index 6556d2b0d40a..4388ab25f809 100644 --- a/taskcluster/ci/test/tests.yml +++ b/taskcluster/ci/test/tests.yml @@ -1257,7 +1257,7 @@ talos-chrome: run-on-projects: by-test-platform: linux64-stylo/.*: ['mozilla-central', 'try'] - default: ['mozilla-beta', 'mozilla-aurora', 'mozilla-central', 'mozilla-inbound', 'autoland', 'try'] + default: ['mozilla-beta', 'mozilla-central', 'mozilla-inbound', 'autoland', 'try'] max-run-time: 3600 e10s: true mozharness: @@ -1282,7 +1282,7 @@ talos-dromaeojs: run-on-projects: by-test-platform: linux64-stylo/.*: ['mozilla-central', 'try'] - default: ['mozilla-beta', 'mozilla-aurora', 'mozilla-central', 'mozilla-inbound', 'autoland', 'try'] + default: ['mozilla-beta', 'mozilla-central', 'mozilla-inbound', 'autoland', 'try'] max-run-time: 3600 e10s: true mozharness: @@ -1307,7 +1307,7 @@ talos-g1: run-on-projects: by-test-platform: linux64-stylo/.*: ['mozilla-central', 'try'] - default: ['mozilla-beta', 'mozilla-aurora', 'mozilla-central', 'mozilla-inbound', 'autoland', 'try'] + default: ['mozilla-beta', 'mozilla-central', 'mozilla-inbound', 'autoland', 'try'] max-run-time: 7200 e10s: true mozharness: @@ -1334,7 +1334,7 @@ talos-g2: by-test-platform: linux64-stylo/.*: ['mozilla-central', 'try'] linux64-stylo-sequential/.*: ['try'] - default: ['mozilla-beta', 'mozilla-aurora', 'mozilla-central', 'mozilla-inbound', 'autoland', 'try'] + default: ['mozilla-beta', 'mozilla-central', 'mozilla-inbound', 'autoland', 'try'] e10s: true mozharness: script: talos_script.py @@ -1358,7 +1358,7 @@ talos-g3: run-on-projects: by-test-platform: linux64-stylo/.*: ['mozilla-central', 'try'] - default: ['mozilla-beta', 'mozilla-aurora', 'mozilla-central', 'mozilla-inbound', 'autoland', 'try'] + default: ['mozilla-beta', 'mozilla-central', 'mozilla-inbound', 'autoland', 'try'] max-run-time: 3600 e10s: true mozharness: @@ -1383,7 +1383,7 @@ talos-g4: run-on-projects: by-test-platform: linux64-stylo/.*: ['mozilla-central', 'try'] - default: ['mozilla-beta', 'mozilla-aurora', 'mozilla-central', 'mozilla-inbound', 'autoland', 'try'] + default: ['mozilla-beta', 'mozilla-central', 'mozilla-inbound', 'autoland', 'try'] max-run-time: 3600 e10s: true mozharness: @@ -1435,7 +1435,7 @@ talos-other: run-on-projects: by-test-platform: linux64-stylo/.*: ['mozilla-central', 'try'] - default: ['mozilla-beta', 'mozilla-aurora', 'mozilla-central', 'mozilla-inbound', 'autoland', 'try'] + default: ['mozilla-beta', 'mozilla-central', 'mozilla-inbound', 'autoland', 'try'] max-run-time: 3600 e10s: true mozharness: @@ -1481,7 +1481,7 @@ talos-svgr: run-on-projects: by-test-platform: linux64-stylo/.*: ['mozilla-central', 'try'] - default: ['mozilla-beta', 'mozilla-aurora', 'mozilla-central', 'mozilla-inbound', 'autoland', 'try'] + default: ['mozilla-beta', 'mozilla-central', 'mozilla-inbound', 'autoland', 'try'] max-run-time: 3600 e10s: true mozharness: @@ -1506,7 +1506,7 @@ talos-tp5o: run-on-projects: by-test-platform: linux64-stylo/.*: ['mozilla-central', 'try'] - default: ['mozilla-beta', 'mozilla-aurora', 'mozilla-central', 'mozilla-inbound', 'autoland', 'try'] + default: ['mozilla-beta', 'mozilla-central', 'mozilla-inbound', 'autoland', 'try'] max-run-time: 3600 e10s: true mozharness: diff --git a/taskcluster/taskgraph/test/test_target_tasks.py b/taskcluster/taskgraph/test/test_target_tasks.py index c27442ae4662..edbc510a14e2 100644 --- a/taskcluster/taskgraph/test/test_target_tasks.py +++ b/taskcluster/taskgraph/test/test_target_tasks.py @@ -45,7 +45,6 @@ class TestTargetTasks(unittest.TestCase): """run_on_projects=[all] includes release, integration, and other projects""" self.assertTrue(self.default_matches(['all'], 'mozilla-central')) self.assertTrue(self.default_matches(['all'], 'mozilla-inbound')) - self.assertTrue(self.default_matches(['all'], 'mozilla-aurora')) self.assertTrue(self.default_matches(['all'], 'baobab')) def test_default_integration(self): diff --git a/taskcluster/taskgraph/test/test_util_attributes.py b/taskcluster/taskgraph/test/test_util_attributes.py index c50b56cae0eb..6669af239673 100644 --- a/taskcluster/taskgraph/test/test_util_attributes.py +++ b/taskcluster/taskgraph/test/test_util_attributes.py @@ -59,7 +59,6 @@ class MatchRunOnProjects(unittest.TestCase): self.assertTrue(match_run_on_projects('autoland', ['all'])) self.assertTrue(match_run_on_projects('mozilla-inbound', ['all'])) self.assertTrue(match_run_on_projects('mozilla-central', ['all'])) - self.assertTrue(match_run_on_projects('mozilla-aurora', ['all'])) self.assertTrue(match_run_on_projects('mozilla-beta', ['all'])) self.assertTrue(match_run_on_projects('mozilla-release', ['all'])) @@ -69,7 +68,6 @@ class MatchRunOnProjects(unittest.TestCase): self.assertFalse(match_run_on_projects('autoland', ['release'])) self.assertFalse(match_run_on_projects('mozilla-inbound', ['release'])) self.assertTrue(match_run_on_projects('mozilla-central', ['release'])) - self.assertTrue(match_run_on_projects('mozilla-aurora', ['release'])) self.assertTrue(match_run_on_projects('mozilla-beta', ['release'])) self.assertTrue(match_run_on_projects('mozilla-release', ['release'])) @@ -79,7 +77,6 @@ class MatchRunOnProjects(unittest.TestCase): self.assertTrue(match_run_on_projects('autoland', ['integration'])) self.assertTrue(match_run_on_projects('mozilla-inbound', ['integration'])) self.assertFalse(match_run_on_projects('mozilla-central', ['integration'])) - self.assertFalse(match_run_on_projects('mozilla-aurora', ['integration'])) self.assertFalse(match_run_on_projects('mozilla-beta', ['integration'])) self.assertFalse(match_run_on_projects('mozilla-integration', ['integration'])) @@ -90,6 +87,5 @@ class MatchRunOnProjects(unittest.TestCase): self.assertFalse(match_run_on_projects('autoland', ['release', 'try', 'date'])) self.assertFalse(match_run_on_projects('mozilla-inbound', ['release', 'try', 'date'])) self.assertTrue(match_run_on_projects('mozilla-central', ['release', 'try', 'date'])) - self.assertTrue(match_run_on_projects('mozilla-aurora', ['release', 'try', 'date'])) self.assertTrue(match_run_on_projects('mozilla-beta', ['release', 'try', 'date'])) self.assertTrue(match_run_on_projects('mozilla-release', ['release', 'try', 'date'])) diff --git a/taskcluster/taskgraph/transforms/task.py b/taskcluster/taskgraph/transforms/task.py index d3e1e5738cd4..005957396170 100644 --- a/taskcluster/taskgraph/transforms/task.py +++ b/taskcluster/taskgraph/transforms/task.py @@ -504,7 +504,6 @@ BRANCH_PRIORITIES = { 'comm-beta': 'high', 'mozilla-central': 'medium', 'comm-central': 'medium', - 'mozilla-aurora': 'medium', 'comm-aurora': 'medium', 'autoland': 'low', 'mozilla-inbound': 'low', diff --git a/taskcluster/taskgraph/util/scriptworker.py b/taskcluster/taskgraph/util/scriptworker.py index 02646e8089c8..f577d4e1760a 100644 --- a/taskcluster/taskgraph/util/scriptworker.py +++ b/taskcluster/taskgraph/util/scriptworker.py @@ -40,7 +40,6 @@ This is a list of list-pairs, for ordering. SIGNING_SCOPE_ALIAS_TO_PROJECT = [[ 'all-nightly-branches', set([ 'mozilla-central', - 'mozilla-aurora', ]) ], [ 'all-release-branches', set([ @@ -73,7 +72,6 @@ DEVEDITION_SIGNING_CERT_SCOPES = { BEETMOVER_SCOPE_ALIAS_TO_PROJECT = [[ 'all-nightly-branches', set([ 'mozilla-central', - 'mozilla-aurora', 'mozilla-beta', 'mozilla-release', ]) @@ -136,10 +134,6 @@ BALROG_SCOPE_ALIAS_TO_PROJECT = [[ 'nightly', set([ 'mozilla-central', ]) -], [ - 'aurora', set([ - 'mozilla-aurora', - ]) ], [ 'beta', set([ 'mozilla-beta', From 4db368c47a5281f2b8a4a2fc8d7e31eeb4e5def9 Mon Sep 17 00:00:00 2001 From: "Carsten \"Tomcat\" Book" Date: Tue, 20 Jun 2017 14:18:40 +0200 Subject: [PATCH 052/106] Backed out changeset 905480360832 (bug 1373492) for causing dt10 failures in browser_rules_eyedropper.js --- devtools/client/framework/toolbox-options.js | 5 +++++ devtools/client/inspector/boxmodel/test/head.js | 2 ++ devtools/client/inspector/grids/test/head.js | 2 ++ devtools/client/inspector/inspector.js | 12 +++++++----- .../browser_inspector_highlighter-eyedropper-xul.js | 2 +- devtools/client/locales/en-US/layout.properties | 2 ++ devtools/client/preferences/devtools.js | 3 +++ 7 files changed, 22 insertions(+), 6 deletions(-) diff --git a/devtools/client/framework/toolbox-options.js b/devtools/client/framework/toolbox-options.js index affce0073b7f..393dc217450a 100644 --- a/devtools/client/framework/toolbox-options.js +++ b/devtools/client/framework/toolbox-options.js @@ -322,6 +322,11 @@ OptionsPanel.prototype = { label: "Enable new debugger frontend", id: "devtools-new-debugger", parentId: "debugger-options" + }, { + pref: "devtools.layoutview.enabled", + label: "Enable layout panel", + id: "devtools-layout-panel", + parentId: "inspector-options" }]; let createPreferenceOption = ({pref, label, id}) => { diff --git a/devtools/client/inspector/boxmodel/test/head.js b/devtools/client/inspector/boxmodel/test/head.js index 8f0bbef6e370..cf79833b8a92 100644 --- a/devtools/client/inspector/boxmodel/test/head.js +++ b/devtools/client/inspector/boxmodel/test/head.js @@ -11,8 +11,10 @@ Services.scriptloader.loadSubScript( "chrome://mochitests/content/browser/devtools/client/inspector/test/head.js", this); +Services.prefs.setBoolPref("devtools.layoutview.enabled", true); Services.prefs.setIntPref("devtools.toolbox.footer.height", 350); registerCleanupFunction(() => { + Services.prefs.clearUserPref("devtools.layoutview.enabled"); Services.prefs.clearUserPref("devtools.toolbox.footer.height"); }); diff --git a/devtools/client/inspector/grids/test/head.js b/devtools/client/inspector/grids/test/head.js index 6788f638c3b9..9606513bf213 100644 --- a/devtools/client/inspector/grids/test/head.js +++ b/devtools/client/inspector/grids/test/head.js @@ -16,9 +16,11 @@ Services.scriptloader.loadSubScript( "chrome://mochitests/content/browser/devtools/client/framework/test/shared-redux-head.js", this); +Services.prefs.setBoolPref("devtools.layoutview.enabled", true); Services.prefs.setBoolPref("devtools.promote.layoutview.showPromoteBar", false); Services.prefs.setIntPref("devtools.toolbox.footer.height", 350); registerCleanupFunction(() => { + Services.prefs.clearUserPref("devtools.layoutview.enabled"); Services.prefs.clearUserPref("devtools.promote.layoutview.showPromoteBar"); Services.prefs.clearUserPref("devtools.toolbox.footer.height"); }); diff --git a/devtools/client/inspector/inspector.js b/devtools/client/inspector/inspector.js index 8fd47d53f881..d1fa320a6b5a 100644 --- a/devtools/client/inspector/inspector.js +++ b/devtools/client/inspector/inspector.js @@ -620,12 +620,14 @@ Inspector.prototype = { INSPECTOR_L10N.getStr("inspector.sidebar.computedViewTitle"), defaultTab == "computedview"); - // Grid and layout panels aren't lazy-loaded as their module end up - // calling inspector.addSidebarTab - this.gridInspector = new GridInspector(this, this.panelWin); + if (Services.prefs.getBoolPref("devtools.layoutview.enabled")) { + // Grid and layout panels aren't lazy-loaded as their module end up + // calling inspector.addSidebarTab + this.gridInspector = new GridInspector(this, this.panelWin); - const LayoutView = this.browserRequire("devtools/client/inspector/layout/layout"); - this.layoutview = new LayoutView(this, this.panelWin); + const LayoutView = this.browserRequire("devtools/client/inspector/layout/layout"); + this.layoutview = new LayoutView(this, this.panelWin); + } if (this.target.form.animationsActor) { this.sidebar.addFrameTab( diff --git a/devtools/client/inspector/test/browser_inspector_highlighter-eyedropper-xul.js b/devtools/client/inspector/test/browser_inspector_highlighter-eyedropper-xul.js index c75cd5fc13b9..b99dfd864699 100644 --- a/devtools/client/inspector/test/browser_inspector_highlighter-eyedropper-xul.js +++ b/devtools/client/inspector/test/browser_inspector_highlighter-eyedropper-xul.js @@ -31,7 +31,7 @@ add_task(function* () { swatchEl.click(); yield onColorPickerReady; - button = cPicker.tooltip.container.querySelector("#eyedropper-button"); + button = cPicker.tooltip.doc.querySelector("#eyedropper-button"); ok(isDisabled(button), "The button is disabled in the color picker"); info("Navigate to a HTML document"); diff --git a/devtools/client/locales/en-US/layout.properties b/devtools/client/locales/en-US/layout.properties index 423db443b015..2e868f019509 100644 --- a/devtools/client/locales/en-US/layout.properties +++ b/devtools/client/locales/en-US/layout.properties @@ -4,6 +4,8 @@ # LOCALIZATION NOTE This file contains the Layout Inspector strings. # The Layout Inspector is a panel accessible in the Inspector sidebar. +# The Layout Inspector may need to be enabled in about:config by setting +# devtools.layoutview.enabled to true. # LOCALIZATION NOTE (layout.cannotShowGridOutline, layout.cannotSHowGridOutline.title): # In the case where the grid outline cannot be effectively displayed. diff --git a/devtools/client/preferences/devtools.js b/devtools/client/preferences/devtools.js index 4462735471f4..8523beb1079c 100644 --- a/devtools/client/preferences/devtools.js +++ b/devtools/client/preferences/devtools.js @@ -68,6 +68,9 @@ pref("devtools.inspector.colorWidget.enabled", false); // Enable the Font Inspector pref("devtools.fontinspector.enabled", true); +// Enable the Layout View +pref("devtools.layoutview.enabled", false); + // Counter to promote the inspector layout view. // @remove after release 56 (See Bug 1355747) pref("devtools.promote.layoutview", 1); From 425d3b7ab834d25b9daef97074fbf1476aaff49e Mon Sep 17 00:00:00 2001 From: "Carsten \"Tomcat\" Book" Date: Tue, 20 Jun 2017 14:30:31 +0200 Subject: [PATCH 053/106] Backed out changeset f10d7fb82ded (bug 1236512) --- ...ifications_fullscreen_noAutoHideToolbar.js | 27 +------------------ 1 file changed, 1 insertion(+), 26 deletions(-) diff --git a/browser/components/customizableui/test/browser_panelUINotifications_fullscreen_noAutoHideToolbar.js b/browser/components/customizableui/test/browser_panelUINotifications_fullscreen_noAutoHideToolbar.js index 10e67a13b2e7..79020f6afc6d 100644 --- a/browser/components/customizableui/test/browser_panelUINotifications_fullscreen_noAutoHideToolbar.js +++ b/browser/components/customizableui/test/browser_panelUINotifications_fullscreen_noAutoHideToolbar.js @@ -2,31 +2,6 @@ Cu.import("resource://gre/modules/AppMenuNotifications.jsm"); -function waitForDocshellActivated() { - return ContentTask.spawn(gBrowser.selectedBrowser, null, async function() { - // Setting docshell activated/deactivated will trigger visibility state - // changes to relevant state ("visible" or "hidden"). AFAIK, there is no - // such event notifying docshell is being activated, so I use - // "visibilitychange" event rather than polling the docShell.isActive. - await ContentTaskUtils.waitForEvent(content.document, "visibilitychange", - true /* capture */, (aEvent) => { - return content.document.docShell.isActive; - }); - }); -} - -function waitForFullscreen() { - return Promise.all([ - BrowserTestUtils.waitForEvent(window, "fullscreen"), - // In the platforms that support reporting occlusion state (e.g. Mac), - // enter/exit fullscreen mode will trigger docshell being set to non-activate - // and then set to activate back again. For those platforms, we should wait - // until the docshell has been activated again before starting next test, - // otherwise, the fullscreen request might be denied. - waitForDocshellActivated() - ]); -} - add_task(async function testFullscreen() { if (Services.appinfo.OS !== "Darwin") { await SpecialPowers.pushPrefEnv({ @@ -48,7 +23,7 @@ add_task(async function testFullscreen() { let doorhanger = notifications[0]; is(doorhanger.id, "appMenu-update-manual-notification", "PanelUI is displaying the update-manual notification."); - let fullscreenPromise = waitForFullscreen(); + let fullscreenPromise = BrowserTestUtils.waitForEvent(window, "fullscreen"); EventUtils.synthesizeKey("VK_F11", {}); await fullscreenPromise; isnot(PanelUI.notificationPanel.state, "closed", "update-manual doorhanger is still showing after entering fullscreen."); From 451795cc1c8971ba0b977784fdc9a409e4ab7a49 Mon Sep 17 00:00:00 2001 From: "Carsten \"Tomcat\" Book" Date: Tue, 20 Jun 2017 14:30:32 +0200 Subject: [PATCH 054/106] Backed out changeset 6f5c86248074 (bug 1236512) --- .../general/browser_fullscreen-window-open.js | 46 +++++++++---------- 1 file changed, 22 insertions(+), 24 deletions(-) diff --git a/browser/base/content/test/general/browser_fullscreen-window-open.js b/browser/base/content/test/general/browser_fullscreen-window-open.js index 7223245c764f..194db33c357b 100644 --- a/browser/base/content/test/general/browser_fullscreen-window-open.js +++ b/browser/base/content/test/general/browser_fullscreen-window-open.js @@ -11,29 +11,27 @@ const TEST_FILE = "file_fullscreen-window-open.html"; const gHttpTestRoot = getRootDirectory(gTestPath).replace("chrome://mochitests/content/", "http://127.0.0.1:8888/"); -var newWin; -var newBrowser; - -async function test() { +function test() { waitForExplicitFinish(); Services.prefs.setBoolPref(PREF_DISABLE_OPEN_NEW_WINDOW, true); - newWin = await BrowserTestUtils.openNewBrowserWindow(); - newBrowser = newWin.gBrowser; - await promiseTabLoadEvent(newBrowser.selectedTab, gHttpTestRoot + TEST_FILE); + let newTab = BrowserTestUtils.addTab(gBrowser, gHttpTestRoot + TEST_FILE); + gBrowser.selectedTab = newTab; - // Enter browser fullscreen mode. - newWin.BrowserFullScreen(); + whenTabLoaded(newTab, function() { + // Enter browser fullscreen mode. + BrowserFullScreen(); - runNextTest(); + runNextTest(); + }); } -registerCleanupFunction(async function() { +registerCleanupFunction(function() { // Exit browser fullscreen mode. - newWin.BrowserFullScreen(); + BrowserFullScreen(); - await BrowserTestUtils.closeWindow(newWin); + gBrowser.removeCurrentTab(); Services.prefs.clearUserPref(PREF_DISABLE_OPEN_NEW_WINDOW); }); @@ -95,15 +93,15 @@ function test_open_with_pos() { // Test for window.open() with outerWidth/Height. function test_open_with_outerSize() { - let [outerWidth, outerHeight] = [newWin.outerWidth, newWin.outerHeight]; + let [outerWidth, outerHeight] = [window.outerWidth, window.outerHeight]; waitForTabOpen({ message: { title: "test_open_with_outerSize", param: "outerWidth=200,outerHeight=200", }, successFn() { - is(newWin.outerWidth, outerWidth, "Don't change window.outerWidth."); - is(newWin.outerHeight, outerHeight, "Don't change window.outerHeight."); + is(window.outerWidth, outerWidth, "Don't change window.outerWidth."); + is(window.outerHeight, outerHeight, "Don't change window.outerHeight."); }, finalizeFn() {}, }); @@ -111,15 +109,15 @@ function test_open_with_outerSize() { // Test for window.open() with innerWidth/Height. function test_open_with_innerSize() { - let [innerWidth, innerHeight] = [newWin.innerWidth, newWin.innerHeight]; + let [innerWidth, innerHeight] = [window.innerWidth, window.innerHeight]; waitForTabOpen({ message: { title: "test_open_with_innerSize", param: "innerWidth=200,innerHeight=200", }, successFn() { - is(newWin.innerWidth, innerWidth, "Don't change window.innerWidth."); - is(newWin.innerHeight, innerHeight, "Don't change window.innerHeight."); + is(window.innerWidth, innerWidth, "Don't change window.innerWidth."); + is(window.innerHeight, innerHeight, "Don't change window.innerHeight."); }, finalizeFn() {}, }); @@ -195,7 +193,7 @@ function waitForTabOpen(aOptions) { info("Running test: " + message.title); let onTabOpen = function onTabOpen(aEvent) { - newBrowser.tabContainer.removeEventListener("TabOpen", onTabOpen, true); + gBrowser.tabContainer.removeEventListener("TabOpen", onTabOpen, true); let tab = aEvent.target; whenTabLoaded(tab, function() { @@ -206,11 +204,11 @@ function waitForTabOpen(aOptions) { aOptions.successFn(); } - newBrowser.removeTab(tab); + gBrowser.removeTab(tab); finalize(); }); } - newBrowser.tabContainer.addEventListener("TabOpen", onTabOpen, true); + gBrowser.tabContainer.addEventListener("TabOpen", onTabOpen, true); let finalize = function() { aOptions.finalizeFn(); @@ -264,7 +262,7 @@ function waitForWindowOpen(aOptions) { } function executeWindowOpenInContent(aParam) { - ContentTask.spawn(newBrowser.selectedBrowser, JSON.stringify(aParam), async function(dataTestParam) { + ContentTask.spawn(gBrowser.selectedBrowser, JSON.stringify(aParam), async function(dataTestParam) { let testElm = content.document.getElementById("test"); testElm.setAttribute("data-test-param", dataTestParam); testElm.click(); @@ -297,7 +295,7 @@ function waitForWindowOpenFromChrome(aOptions) { }); Services.wm.addListener(listener); - newWin.open(url, message.title, message.option); + window.open(url, message.title, message.option); } function WindowListener(aTitle, aUrl, aCallBackObj) { From 472feeff02d3dce495c7087a73f2e5efc371f13a Mon Sep 17 00:00:00 2001 From: "Carsten \"Tomcat\" Book" Date: Tue, 20 Jun 2017 14:30:34 +0200 Subject: [PATCH 055/106] Backed out changeset f9147bef9fc6 (bug 1236512) --- browser/base/content/tabbrowser.xml | 43 ++++------ .../browser_domFullscreen_fullscreenMode.js | 27 ++----- dom/html/test/test_fullscreen-api.html | 23 +----- dom/tests/browser/browser.ini | 2 - dom/tests/browser/browser_bug1236512.js | 80 ------------------- .../BrowserTestUtils/BrowserTestUtils.jsm | 8 -- 6 files changed, 22 insertions(+), 161 deletions(-) delete mode 100644 dom/tests/browser/browser_bug1236512.js diff --git a/browser/base/content/tabbrowser.xml b/browser/base/content/tabbrowser.xml index 43d0c02070c3..d7f48872a143 100644 --- a/browser/base/content/tabbrowser.xml +++ b/browser/base/content/tabbrowser.xml @@ -1111,8 +1111,7 @@ oldBrowser.docShellIsActive = false; newBrowser.setAttribute("primary", "true"); newBrowser.docShellIsActive = - (window.windowState != window.STATE_MINIMIZED && - !window.isFullyOccluded); + (window.windowState != window.STATE_MINIMIZED); } var updateBlockedPopups = false; @@ -3886,8 +3885,7 @@ return this._switcher.shouldActivateDocShell(aBrowser); } return (aBrowser == this.selectedBrowser && - window.windowState != window.STATE_MINIMIZED && - !window.isFullyOccluded) || + window.windowState != window.STATE_MINIMIZED) || this._printPreviewBrowsers.has(aBrowser); ]]> @@ -4037,7 +4035,7 @@ let browser = tab.linkedBrowser; let {tabParent} = browser.QueryInterface(Ci.nsIFrameLoaderOwner).frameLoader; if (state == this.STATE_LOADING) { - this.assert(!this.minimizedOrFullyOccluded); + this.assert(!this.minimized); browser.docShellIsActive = true; if (!tabParent) { this.onLayersReady(browser); @@ -4063,9 +4061,8 @@ } }, - get minimizedOrFullyOccluded() { - return window.windowState == window.STATE_MINIMIZED || - window.isFullyOccluded; + get minimized() { + return window.windowState == window.STATE_MINIMIZED; }, init() { @@ -4081,7 +4078,6 @@ window.addEventListener("MozLayerTreeCleared", this); window.addEventListener("TabRemotenessChange", this); window.addEventListener("sizemodechange", this); - window.addEventListener("occlusionstatechange", this); window.addEventListener("SwapDocShells", this, true); window.addEventListener("EndSwapDocShells", this, true); @@ -4090,7 +4086,7 @@ let tabIsLoaded = !browser.isRemoteBrowser || browser.frameLoader.tabParent.hasPresented; - if (!this.minimizedOrFullyOccluded) { + if (!this.minimized) { this.log("Initial tab is loaded?: " + tabIsLoaded); this.setTabState(tab, tabIsLoaded ? this.STATE_LOADED : this.STATE_LOADING); @@ -4112,7 +4108,6 @@ window.removeEventListener("MozLayerTreeCleared", this); window.removeEventListener("TabRemotenessChange", this); window.removeEventListener("sizemodechange", this); - window.removeEventListener("occlusionstatechange", this); window.removeEventListener("SwapDocShells", this, true); window.removeEventListener("EndSwapDocShells", this, true); @@ -4134,8 +4129,7 @@ this.assert(!this.loadTimer); this.assert(!this.loadingTab); this.assert(this.lastVisibleTab === this.requestedTab); - this.assert(this.minimizedOrFullyOccluded || - this.getTabState(this.requestedTab) == this.STATE_LOADED); + this.assert(this.minimized || this.getTabState(this.requestedTab) == this.STATE_LOADED); this.destroy(); @@ -4188,7 +4182,7 @@ requestedBrowser.currentURI.spec != "about:blank"; let fl = requestedBrowser.frameLoader; - shouldBeBlank = !this.minimizedOrFullyOccluded && + shouldBeBlank = !this.minimized && (!fl.tabParent || (!hasSufficientlyLoaded && !fl.tabParent.hasPresented)); } @@ -4224,7 +4218,7 @@ // Show or hide the spinner as needed. let needSpinner = this.getTabState(showTab) != this.STATE_LOADED && - !this.minimizedOrFullyOccluded && + !this.minimized && !shouldBeBlank; if (!needSpinner && this.spinnerTab) { @@ -4286,7 +4280,7 @@ // We've decided to try to load requestedTab. loadRequestedTab() { this.assert(!this.loadTimer); - this.assert(!this.minimizedOrFullyOccluded); + this.assert(!this.minimized); // loadingTab can be non-null here if we timed out loading the current tab. // In that case we just overwrite it with a different tab; it's had its chance. @@ -4355,7 +4349,7 @@ // If we're not loading anything, try loading the requested tab. let requestedState = this.getTabState(this.requestedTab); - if (!this.loadTimer && !this.minimizedOrFullyOccluded && + if (!this.loadTimer && !this.minimized && (requestedState == this.STATE_UNLOADED || requestedState == this.STATE_UNLOADING)) { this.loadRequestedTab(); @@ -4510,8 +4504,8 @@ } }, - onSizeModeOrOcclusionStateChange() { - if (this.minimizedOrFullyOccluded) { + onSizeModeChange() { + if (this.minimized) { for (let [tab, state] of this.tabState) { // Skip print preview browsers since they shouldn't affect tab switching. if (this.tabbrowser._printPreviewBrowsers.has(tab.linkedBrowser)) { @@ -4645,9 +4639,8 @@ this.onLayersCleared(event.originalTarget); } else if (event.type == "TabRemotenessChange") { this.onRemotenessChange(event.target); - } else if (event.type == "sizemodechange" || - event.type == "occlusionstatechange") { - this.onSizeModeOrOcclusionStateChange(); + } else if (event.type == "sizemodechange") { + this.onSizeModeChange(); } else if (event.type == "SwapDocShells") { this.onSwapDocShells(event.originalTarget, event.detail); } else if (event.type == "EndSwapDocShells") { @@ -5122,10 +5115,8 @@ this._handleKeyPressEventMac(aEvent); break; case "sizemodechange": - case "occlusionstatechange": if (aEvent.target == window && !this._switcher) { - this.mCurrentBrowser.preserveLayers( - window.windowState == window.STATE_MINIMIZED || window.isFullyOccluded); + this.mCurrentBrowser.preserveLayers(window.windowState == window.STATE_MINIMIZED); this.mCurrentBrowser.docShellIsActive = this.shouldActivateDocShell(this.mCurrentBrowser); } break; @@ -5352,7 +5343,6 @@ els.addSystemEventListener(document, "keypress", this, false); } window.addEventListener("sizemodechange", this); - window.addEventListener("occlusionstatechange", this); var uniqueId = this._generateUniquePanelID(); this.mPanelContainer.childNodes[0].id = uniqueId; @@ -5473,7 +5463,6 @@ els.removeSystemEventListener(document, "keypress", this, false); } window.removeEventListener("sizemodechange", this); - window.removeEventListener("occlusionstatechange", this); if (gMultiProcessBrowser) { let messageManager = window.getGroupMessageManager("browsers"); diff --git a/browser/base/content/test/general/browser_domFullscreen_fullscreenMode.js b/browser/base/content/test/general/browser_domFullscreen_fullscreenMode.js index b4c0ab0e522c..f02cdb526da8 100644 --- a/browser/base/content/test/general/browser_domFullscreen_fullscreenMode.js +++ b/browser/base/content/test/general/browser_domFullscreen_fullscreenMode.js @@ -17,9 +17,6 @@ function frameScript() { inFullscreen: content.fullScreen }); }); - addMessageListener("Test:WaitActivated", () => { - waitUntilActive(); - }); content.document.addEventListener("fullscreenchange", () => { sendAsyncMessage("Test:FullscreenChanged", { inDOMFullscreen: !!content.document.fullscreenElement, @@ -68,13 +65,6 @@ const FS_CHANGE_DOM = 1 << 0; const FS_CHANGE_SIZE = 1 << 1; const FS_CHANGE_BOTH = FS_CHANGE_DOM | FS_CHANGE_SIZE; -function waitForDocActivated() { - return new Promise(resolve => { - listenOneMessage("Test:Activated", resolve); - gMessageManager.sendAsyncMessage("Test:WaitActivated"); - }); -} - function waitForFullscreenChanges(aFlags) { return new Promise(resolve => { let fullscreenData = null; @@ -82,18 +72,11 @@ function waitForFullscreenChanges(aFlags) { function tryResolve() { if ((!(aFlags & FS_CHANGE_DOM) || fullscreenData) && (!(aFlags & FS_CHANGE_SIZE) || sizemodeChanged)) { - // In the platforms that support reporting occlusion state (e.g. Mac), - // enter/exit fullscreen mode will trigger docshell being set to - // non-activate and then set to activate back again. - // For those platform, we should wait until the docshell has been - // activated again, otherwise, the fullscreen request might be denied. - waitForDocActivated().then(() => { - if (!fullscreenData) { - queryFullscreenState().then(resolve); - } else { - resolve(fullscreenData); - } - }); + if (!fullscreenData) { + queryFullscreenState().then(resolve); + } else { + resolve(fullscreenData); + } } } if (aFlags & FS_CHANGE_SIZE) { diff --git a/dom/html/test/test_fullscreen-api.html b/dom/html/test/test_fullscreen-api.html index 2564ea8f8c1b..f0c47d5e6128 100644 --- a/dom/html/test/test_fullscreen-api.html +++ b/dom/html/test/test_fullscreen-api.html @@ -80,16 +80,6 @@ function shouldSkipTest(test) { return false; } -function waitForEvent(eventTarget, eventName, checkFn, callback) { - eventTarget.addEventListener(eventName, function listener(event) { - if (checkFn && !checkFn(event)) { - return; - } - eventTarget.removeEventListener(eventName, listener); - callback(); - }); -} - function runNextTest() { if (gTestIndex < gTestWindows.length) { let test = gTestWindows[gTestIndex]; @@ -105,18 +95,7 @@ function runNextTest() { // OS X Lion before we run the test. testWindow.addEventListener("load", function() { SimpleTest.waitForFocus(function() { - SimpleTest.waitForFocus(function() { - // For the platforms that support reporting occlusion state (e.g. Mac), - // we should wait until the docshell has been activated again, - // otherwise, the fullscreen request might be denied. - if (testWindow.document.hidden) { - waitForEvent(testWindow.document, "visibilitychange", (event) => { - return !testWindow.document.hidden; - }, testWindow.begin); - return; - } - testWindow.begin(); - }, testWindow); + SimpleTest.waitForFocus(testWindow.begin, testWindow); }); }, {once: true}); } diff --git a/dom/tests/browser/browser.ini b/dom/tests/browser/browser.ini index f35f653c0ded..76e9bfbe5585 100644 --- a/dom/tests/browser/browser.ini +++ b/dom/tests/browser/browser.ini @@ -28,8 +28,6 @@ skip-if = !e10s [browser_bug1004814.js] [browser_bug1008941_dismissGeolocationHanger.js] tags = geolocation -[browser_bug1236512.js] -skip-if = os != "mac" [browser_bug1238427.js] [browser_bug1316330.js] skip-if = !e10s diff --git a/dom/tests/browser/browser_bug1236512.js b/dom/tests/browser/browser_bug1236512.js deleted file mode 100644 index 3ee418cfad17..000000000000 --- a/dom/tests/browser/browser_bug1236512.js +++ /dev/null @@ -1,80 +0,0 @@ -/** - * Any copyright is dedicated to the Public Domain. - * http://creativecommons.org/publicdomain/zero/1.0/ - */ - -"use strict"; - -const testPageURL = "http://mochi.test:8888/browser/dom/tests/browser/dummy.html"; - -async function testContentVisibilityState(aIsHidden, aBrowser) { - await ContentTask.spawn(aBrowser.selectedBrowser, aIsHidden, (aExpectedResult) => { - is(content.document.hidden, aExpectedResult, "document.hidden"); - is(content.document.visibilityState, aExpectedResult ? "hidden" : "visible", - "document.visibilityState"); - }); -} - -async function waitContentVisibilityChange(aIsHidden, aBrowser) { - await ContentTask.spawn(aBrowser.selectedBrowser, aIsHidden, - async function(aExpectedResult) { - let visibilityState = aExpectedResult ? "hidden" : "visible"; - if (content.document.hidden === aExpectedResult && - content.document.visibilityState === visibilityState) { - ok(true, "already changed to expected visibility state"); - return; - } - - info("wait visibilitychange event"); - await ContentTaskUtils.waitForEvent(content.document, "visibilitychange", - true /* capture */, (aEvent) => { - info(`visibilitychange: ${content.document.hidden} ${content.document.visibilityState}`); - return content.document.hidden === aExpectedResult && - content.document.visibilityState === visibilityState; - }); - }); -} - -/** - * This test is to test the visibility state will change to "hidden" when browser - * window is fully covered by another non-translucent application. Note that we - * only support this on Mac for now, other platforms don't support reporting - * occlusion state. - */ -add_task(async function() { - info("creating test window"); - // Specify the width, height, left and top, so that the new window can be - // fully covered by "window". - let winTest = await BrowserTestUtils.openNewBrowserWindow({ width: 500, - height: 500, - left: 200, - top: 200 }); - let browserTest = winTest.gBrowser; - - info(`loading test page: ${testPageURL}`); - browserTest.selectedBrowser.loadURI(testPageURL); - await BrowserTestUtils.browserLoaded(browserTest.selectedBrowser); - - info("test init visibility state"); - await testContentVisibilityState(false /* isHidden */, browserTest); - - info("test window should report 'hidden' if it is fully covered by another " + - "window"); - await new Promise(resolve => waitForFocus(resolve, window)); - await waitContentVisibilityChange(true /* isHidden */, browserTest); - - info("test window should still report 'hidden' since it is still fully covered " + - "by another window"); - let tab = BrowserTestUtils.addTab(browserTest); - await BrowserTestUtils.switchTab(browserTest, tab); - await BrowserTestUtils.removeTab(browserTest.selectedTab); - await testContentVisibilityState(true /* isHidden */, browserTest); - - info("test window should report 'visible' if it is not fully covered by " + - "another window"); - await new Promise(resolve => waitForFocus(resolve, winTest)); - await waitContentVisibilityChange(false /* isHidden */, browserTest); - - info("closing test window"); - await BrowserTestUtils.closeWindow(winTest); -}); diff --git a/testing/mochitest/BrowserTestUtils/BrowserTestUtils.jsm b/testing/mochitest/BrowserTestUtils/BrowserTestUtils.jsm index 85445fd17212..336b7724427e 100644 --- a/testing/mochitest/BrowserTestUtils/BrowserTestUtils.jsm +++ b/testing/mochitest/BrowserTestUtils/BrowserTestUtils.jsm @@ -605,14 +605,6 @@ this.BrowserTestUtils = { features += ",height=" + options.height; } - if (options.left) { - features += ",left=" + options.left; - } - - if (options.top) { - features += ",top=" + options.top; - } - if (options.hasOwnProperty("remote")) { let remoteState = options.remote ? "remote" : "non-remote"; features += `,${remoteState}`; From 533c1c6574939c38c78344305118eee034ee45d5 Mon Sep 17 00:00:00 2001 From: "Carsten \"Tomcat\" Book" Date: Tue, 20 Jun 2017 14:30:36 +0200 Subject: [PATCH 056/106] Backed out changeset 62999c1db7ee (bug 1236512) --- dom/base/nsGlobalWindow.cpp | 9 --------- dom/base/nsGlobalWindow.h | 1 - dom/webidl/Window.webidl | 3 --- 3 files changed, 13 deletions(-) diff --git a/dom/base/nsGlobalWindow.cpp b/dom/base/nsGlobalWindow.cpp index 93d1b02e21ed..c0abaad8f052 100644 --- a/dom/base/nsGlobalWindow.cpp +++ b/dom/base/nsGlobalWindow.cpp @@ -14103,15 +14103,6 @@ nsGlobalWindow::WindowState() return nsIDOMChromeWindow::STATE_NORMAL; } -bool -nsGlobalWindow::IsFullyOccluded() -{ - MOZ_ASSERT(IsInnerWindow()); - - nsCOMPtr widget = GetMainWidget(); - return widget && widget->IsFullyOccluded(); -} - NS_IMETHODIMP nsGlobalChromeWindow::Maximize() { diff --git a/dom/base/nsGlobalWindow.h b/dom/base/nsGlobalWindow.h index eec4f1e3560e..c05eb462fe3f 100644 --- a/dom/base/nsGlobalWindow.h +++ b/dom/base/nsGlobalWindow.h @@ -1282,7 +1282,6 @@ public: // ChromeWindow bits. Do NOT call these unless your window is in // fact an nsGlobalChromeWindow. uint16_t WindowState(); - bool IsFullyOccluded(); nsIBrowserDOMWindow* GetBrowserDOMWindowOuter(); nsIBrowserDOMWindow* GetBrowserDOMWindow(mozilla::ErrorResult& aError); void SetBrowserDOMWindowOuter(nsIBrowserDOMWindow* aBrowserWindow); diff --git a/dom/webidl/Window.webidl b/dom/webidl/Window.webidl index e5173909de52..6a01b101f0f6 100644 --- a/dom/webidl/Window.webidl +++ b/dom/webidl/Window.webidl @@ -407,9 +407,6 @@ interface ChromeWindow { [Func="nsGlobalWindow::IsPrivilegedChromeWindow"] readonly attribute unsigned short windowState; - [Func="nsGlobalWindow::IsPrivilegedChromeWindow"] - readonly attribute boolean isFullyOccluded; - /** * browserDOMWindow provides access to yet another layer of * utility functions implemented by chrome script. It will be null From 38d49a9419584654d314116971186e350df75d55 Mon Sep 17 00:00:00 2001 From: "Carsten \"Tomcat\" Book" Date: Tue, 20 Jun 2017 14:30:54 +0200 Subject: [PATCH 057/106] Backed out changeset 844d46609652 (bug 1236512) for test failures in own test --- widget/cocoa/nsCocoaWindow.h | 1 - widget/cocoa/nsCocoaWindow.mm | 42 ------------------------------ widget/nsBaseWidget.cpp | 1 - widget/nsBaseWidget.h | 6 ----- widget/nsIWidget.h | 5 ---- widget/nsIWidgetListener.cpp | 5 ---- widget/nsIWidgetListener.h | 5 ---- xpfe/appshell/nsWebShellWindow.cpp | 12 --------- xpfe/appshell/nsWebShellWindow.h | 1 - 9 files changed, 78 deletions(-) diff --git a/widget/cocoa/nsCocoaWindow.h b/widget/cocoa/nsCocoaWindow.h index 2cdaf56127a3..3085ead674ad 100644 --- a/widget/cocoa/nsCocoaWindow.h +++ b/widget/cocoa/nsCocoaWindow.h @@ -327,7 +327,6 @@ public: nsIObserver* aObserver) override; void DispatchSizeModeEvent(); - void DispatchOcclusionEvent(); // be notified that a some form of drag event needs to go into Gecko virtual bool DragEvent(unsigned int aMessage, mozilla::gfx::Point aMouseGlobal, UInt16 aKeyModifiers); diff --git a/widget/cocoa/nsCocoaWindow.mm b/widget/cocoa/nsCocoaWindow.mm index c008e7629308..6cc432050742 100644 --- a/widget/cocoa/nsCocoaWindow.mm +++ b/widget/cocoa/nsCocoaWindow.mm @@ -68,19 +68,6 @@ extern NSMenu* sApplicationMenu; // Application menu shared by all menubars // defined in nsChildView.mm extern BOOL gSomeMenuBarPainted; -#if !defined(MAC_OS_X_VERSION_10_9) || \ - MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_9 - -enum NSWindowOcclusionState { - NSWindowOcclusionStateVisible = 0x1 << 1 -}; - -@interface NSWindow(OcclusionState) -- (NSWindowOcclusionState) occlusionState; -@end - -#endif - #if !defined(MAC_OS_X_VERSION_10_12) || \ MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_12 @@ -1984,27 +1971,6 @@ nsCocoaWindow::DispatchSizeModeEvent() } } -void -nsCocoaWindow::DispatchOcclusionEvent() -{ - if (!mWindow) { - return; - } - - bool newOcclusionState = - !([mWindow occlusionState] & NSWindowOcclusionStateVisible); - - // Don't dispatch if the new occlustion state is the same as the current state. - if (mIsFullyOccluded == newOcclusionState) { - return; - } - - mIsFullyOccluded = newOcclusionState; - if (mWidgetListener) { - mWidgetListener->OcclusionStateChanged(mIsFullyOccluded); - } -} - void nsCocoaWindow::ReportSizeEvent() { @@ -2823,14 +2789,6 @@ nsCocoaWindow::GetEditCommands(NativeKeyBindingsType aType, NS_OBJC_END_TRY_ABORT_BLOCK; } -// This method is on NSWindowDelegate starting with 10.9 -- (void)windowDidChangeOcclusionState:(NSNotification*)aNotification -{ - if (mGeckoWindow) { - mGeckoWindow->DispatchOcclusionEvent(); - } -} - - (nsCocoaWindow*)geckoWidget { return mGeckoWindow; diff --git a/widget/nsBaseWidget.cpp b/widget/nsBaseWidget.cpp index 22b90aa6c7b5..7965eecbfa97 100644 --- a/widget/nsBaseWidget.cpp +++ b/widget/nsBaseWidget.cpp @@ -168,7 +168,6 @@ nsBaseWidget::nsBaseWidget() , mUpdateCursor(true) , mUseAttachedEvents(false) , mIMEHasFocus(false) -, mIsFullyOccluded(false) #if defined(XP_WIN) || defined(XP_MACOSX) || defined(MOZ_WIDGET_GTK) , mAccessibilityInUseFlag(false) #endif diff --git a/widget/nsBaseWidget.h b/widget/nsBaseWidget.h index 678d99f86c3e..4673f06a2104 100644 --- a/widget/nsBaseWidget.h +++ b/widget/nsBaseWidget.h @@ -168,11 +168,6 @@ public: return mSizeMode; } - virtual bool IsFullyOccluded() const override - { - return mIsFullyOccluded; - } - virtual nsCursor GetCursor() override; virtual void SetCursor(nsCursor aCursor) override; virtual nsresult SetCursor(imgIContainer* aCursor, @@ -692,7 +687,6 @@ protected: bool mUpdateCursor; bool mUseAttachedEvents; bool mIMEHasFocus; - bool mIsFullyOccluded; #if defined(XP_WIN) || defined(XP_MACOSX) || defined(MOZ_WIDGET_GTK) bool mAccessibilityInUseFlag; #endif diff --git a/widget/nsIWidget.h b/widget/nsIWidget.h index 14c5335a369f..e3f9a2335c0e 100644 --- a/widget/nsIWidget.h +++ b/widget/nsIWidget.h @@ -836,11 +836,6 @@ class nsIWidget : public nsISupports */ virtual nsSizeMode SizeMode() = 0; - /** - * Ask wether the widget is fully occluded - */ - virtual bool IsFullyOccluded() const = 0; - /** * Enable or disable this Widget * diff --git a/widget/nsIWidgetListener.cpp b/widget/nsIWidgetListener.cpp index dc68cc4ae281..0d18236cbd9b 100644 --- a/widget/nsIWidgetListener.cpp +++ b/widget/nsIWidgetListener.cpp @@ -73,11 +73,6 @@ nsIWidgetListener::ZLevelChanged(bool aImmediate, return false; } -void -nsIWidgetListener::OcclusionStateChanged(bool aIsFullyOccluded) -{ -} - void nsIWidgetListener::WindowActivated() { diff --git a/widget/nsIWidgetListener.h b/widget/nsIWidgetListener.h index 0185ee3c9a38..63d899be0b33 100644 --- a/widget/nsIWidgetListener.h +++ b/widget/nsIWidgetListener.h @@ -101,11 +101,6 @@ public: */ virtual void FullscreenChanged(bool aInFullscreen); - /** - * Called when the occlusion state is changed. - */ - virtual void OcclusionStateChanged(bool aIsFullyOccluded); - /** * Called when the window is activated and focused. */ diff --git a/xpfe/appshell/nsWebShellWindow.cpp b/xpfe/appshell/nsWebShellWindow.cpp index 0eeb63f15b8b..e6a7bed29913 100644 --- a/xpfe/appshell/nsWebShellWindow.cpp +++ b/xpfe/appshell/nsWebShellWindow.cpp @@ -421,18 +421,6 @@ nsWebShellWindow::FullscreenChanged(bool aInFullscreen) } } -void -nsWebShellWindow::OcclusionStateChanged(bool aIsFullyOccluded) -{ - nsCOMPtr ourWindow = - mDocShell ? mDocShell->GetWindow() : nullptr; - if (ourWindow) { - MOZ_ASSERT(ourWindow->IsOuterWindow()); - // And always fire a user-defined occlusionstatechange event on the window - ourWindow->DispatchCustomEvent(NS_LITERAL_STRING("occlusionstatechange")); - } -} - void nsWebShellWindow::OSToolbarButtonPressed() { diff --git a/xpfe/appshell/nsWebShellWindow.h b/xpfe/appshell/nsWebShellWindow.h index 8d44b442a740..5d267d856d88 100644 --- a/xpfe/appshell/nsWebShellWindow.h +++ b/xpfe/appshell/nsWebShellWindow.h @@ -59,7 +59,6 @@ public: virtual void SizeModeChanged(nsSizeMode sizeMode) override; virtual void UIResolutionChanged() override; virtual void FullscreenChanged(bool aInFullscreen) override; - virtual void OcclusionStateChanged(bool aIsFullyOccluded) override; virtual void OSToolbarButtonPressed() override; virtual bool ZLevelChanged(bool aImmediate, nsWindowZ *aPlacement, nsIWidget* aRequestBelow, nsIWidget** aActualBelow) override; From d8a18ee0457850f0a493e64e7a700b699670db99 Mon Sep 17 00:00:00 2001 From: Joanmarie Diggs Date: Tue, 20 Jun 2017 05:32:00 +0200 Subject: [PATCH 058/106] Bug 1357042 - Implement or update support for exposure of aria-orientation. r=surkov In ARIA 1.1, "undefined" was added as a possible value of aria-orientation, and the default value for the combobox and treegrid roles. Therefore, remove states::VERTICAL from the nsRoleMapEntry for these two roles and update the associated mochitest expectations. The rest of the ARIA roles which support aria-orientation have the correct defaults and test coverage. --- accessible/base/ARIAMap.cpp | 4 ++-- accessible/tests/mochitest/states/test_aria.html | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/accessible/base/ARIAMap.cpp b/accessible/base/ARIAMap.cpp index 9d9af357e01f..2e31bacd5abb 100644 --- a/accessible/base/ARIAMap.cpp +++ b/accessible/base/ARIAMap.cpp @@ -141,7 +141,7 @@ static const nsRoleMapEntry sWAIRoleMaps[] = eOpenCloseAction, eNoLiveAttr, kGenericAccType, - states::COLLAPSED | states::HASPOPUP | states::VERTICAL, + states::COLLAPSED | states::HASPOPUP, eARIAAutoComplete, eARIAReadonly, eARIAOrientation @@ -1149,7 +1149,7 @@ static const nsRoleMapEntry sWAIRoleMaps[] = eNoAction, eNoLiveAttr, eSelect | eTable, - states::VERTICAL, + kNoReqStates, eARIAReadonlyOrEditable, eARIAMultiSelectable, eFocusableUntilDisabled, diff --git a/accessible/tests/mochitest/states/test_aria.html b/accessible/tests/mochitest/states/test_aria.html index 7c9563634bda..7f8218948405 100644 --- a/accessible/tests/mochitest/states/test_aria.html +++ b/accessible/tests/mochitest/states/test_aria.html @@ -223,7 +223,7 @@ testStates("aria_navigation_anchor", STATE_SELECTABLE); // aria-orientation - testStates("aria_combobox", 0, EXT_STATE_VERTICAL, 0, EXT_STATE_HORIZONTAL); + testStates("aria_combobox", 0, 0, 0, EXT_STATE_HORIZONTAL | EXT_STATE_VERTICAL); testStates("aria_hcombobox", 0, EXT_STATE_HORIZONTAL, 0, EXT_STATE_VERTICAL); testStates("aria_vcombobox", 0, EXT_STATE_VERTICAL, 0, EXT_STATE_HORIZONTAL); testStates("aria_listbox", 0, EXT_STATE_VERTICAL, 0, EXT_STATE_HORIZONTAL); @@ -256,7 +256,7 @@ testStates("aria_tree", 0, EXT_STATE_VERTICAL, 0, EXT_STATE_HORIZONTAL); testStates("aria_htree", 0, EXT_STATE_HORIZONTAL, 0, EXT_STATE_VERTICAL); testStates("aria_vtree", 0, EXT_STATE_VERTICAL, 0, EXT_STATE_HORIZONTAL); - testStates("aria_treegrid", 0, EXT_STATE_VERTICAL, 0, EXT_STATE_HORIZONTAL); + testStates("aria_treegrid", 0, 0, 0, EXT_STATE_HORIZONTAL | EXT_STATE_VERTICAL); testStates("aria_htreegrid", 0, EXT_STATE_HORIZONTAL, 0, EXT_STATE_VERTICAL); testStates("aria_vtreegrid", 0, EXT_STATE_VERTICAL, 0, EXT_STATE_HORIZONTAL); From 616b3238a65e0b2c762dfb3c0cfae340318a40d3 Mon Sep 17 00:00:00 2001 From: Samael Wang Date: Mon, 19 Jun 2017 16:45:21 +0800 Subject: [PATCH 059/106] Bug 1362166 - Add a timeout to PCompositorManager & kill GPU process on timeout in release builds. r=dvander MozReview-Commit-ID: Dln8ERrExmz --- gfx/layers/ipc/CompositorManagerChild.cpp | 24 +++++++++++++++++++++++ gfx/layers/ipc/CompositorManagerChild.h | 4 ++++ gfx/thebes/gfxPrefs.h | 1 + 3 files changed, 29 insertions(+) diff --git a/gfx/layers/ipc/CompositorManagerChild.cpp b/gfx/layers/ipc/CompositorManagerChild.cpp index 9d93f9afa338..18254ea4c479 100644 --- a/gfx/layers/ipc/CompositorManagerChild.cpp +++ b/gfx/layers/ipc/CompositorManagerChild.cpp @@ -7,6 +7,7 @@ #include "mozilla/layers/CompositorBridgeChild.h" #include "mozilla/layers/CompositorManagerParent.h" #include "mozilla/layers/CompositorThread.h" +#include "mozilla/gfx/GPUProcessManager.h" #include "mozilla/dom/ContentChild.h" // for ContentChild #include "mozilla/dom/TabChild.h" // for TabChild #include "mozilla/dom/TabGroup.h" // for TabGroup @@ -161,6 +162,7 @@ CompositorManagerChild::CompositorManagerChild(CompositorManagerParent* aParent, mCanSend = true; AddRef(); + SetReplyTimeout(); } CompositorManagerChild::CompositorManagerChild(Endpoint&& aEndpoint, @@ -175,6 +177,7 @@ CompositorManagerChild::CompositorManagerChild(Endpoint mCanSend = true; AddRef(); + SetReplyTimeout(); } void @@ -243,5 +246,26 @@ CompositorManagerChild::GetSpecificMessageEventTarget(const Message& aMsg) return do_AddRef(tabChild->TabGroup()->EventTargetFor(TaskCategory::Other)); } +void +CompositorManagerChild::SetReplyTimeout() +{ +#ifndef DEBUG + // Add a timeout for release builds to kill GPU process when it hangs. + if (XRE_IsParentProcess()) { + int32_t timeout = gfxPrefs::GPUProcessIPCReplyTimeoutMs(); + SetReplyTimeoutMs(timeout); + } +#endif +} + +bool +CompositorManagerChild::ShouldContinueFromReplyTimeout() +{ + if (XRE_IsParentProcess()) { + GPUProcessManager::Get()->KillProcess(); + } + return false; +} + } // namespace layers } // namespace mozilla diff --git a/gfx/layers/ipc/CompositorManagerChild.h b/gfx/layers/ipc/CompositorManagerChild.h index 37abdf2f7301..ce57603ffaa3 100644 --- a/gfx/layers/ipc/CompositorManagerChild.h +++ b/gfx/layers/ipc/CompositorManagerChild.h @@ -66,6 +66,8 @@ public: bool DeallocPCompositorBridgeChild(PCompositorBridgeChild* aActor) override; + bool ShouldContinueFromReplyTimeout() override; + private: static StaticRefPtr sInstance; @@ -90,6 +92,8 @@ private: already_AddRefed GetSpecificMessageEventTarget(const Message& aMsg) override; + void SetReplyTimeout(); + bool mCanSend; uint32_t mNamespace; uint32_t mResourceId; diff --git a/gfx/thebes/gfxPrefs.h b/gfx/thebes/gfxPrefs.h index e04672f6610c..5b57aca0494d 100644 --- a/gfx/thebes/gfxPrefs.h +++ b/gfx/thebes/gfxPrefs.h @@ -552,6 +552,7 @@ private: DECL_GFX_PREF(Once, "layers.gpu-process.enabled", GPUProcessEnabled, bool, false); DECL_GFX_PREF(Once, "layers.gpu-process.force-enabled", GPUProcessForceEnabled, bool, false); DECL_GFX_PREF(Once, "layers.gpu-process.timeout_ms", GPUProcessTimeoutMs, int32_t, 5000); + DECL_GFX_PREF(Once, "layers.gpu-process.ipc_reply_timeout_ms", GPUProcessIPCReplyTimeoutMs, int32_t, 10000); DECL_GFX_PREF(Live, "layers.gpu-process.max_restarts", GPUProcessMaxRestarts, int32_t, 1); DECL_GFX_PREF(Once, "layers.gpu-process.allow-software", GPUProcessAllowSoftware, bool, false); // Note: This pref will only be used if it is less than layers.gpu-process.max_restarts. From 6ff2e1ad993962d1a14104839c3871d3d5054d6b Mon Sep 17 00:00:00 2001 From: Andreas Farre Date: Mon, 19 Jun 2017 06:36:00 +0200 Subject: [PATCH 060/106] Bug 1368072 - Move idle dispatch to thread manager. r=froydnj Also exposes idle dispatch with timeout. --- xpcom/threads/LazyIdleThread.cpp | 6 ----- xpcom/threads/nsIThread.idl | 17 +----------- xpcom/threads/nsIThreadManager.idl | 14 ++++++++++ xpcom/threads/nsThread.cpp | 7 ----- xpcom/threads/nsThreadManager.cpp | 17 +++++++++++- xpcom/threads/nsThreadUtils.cpp | 38 ++++++++++++++++----------- xpcom/threads/nsThreadUtils.h | 42 ++++++++++++++++++++++++++++++ 7 files changed, 96 insertions(+), 45 deletions(-) diff --git a/xpcom/threads/LazyIdleThread.cpp b/xpcom/threads/LazyIdleThread.cpp index 835ff22cc7b6..001c4e5893e9 100644 --- a/xpcom/threads/LazyIdleThread.cpp +++ b/xpcom/threads/LazyIdleThread.cpp @@ -512,12 +512,6 @@ LazyIdleThread::IdleDispatch(already_AddRefed aEvent) return NS_ERROR_NOT_IMPLEMENTED; } -NS_IMETHODIMP -LazyIdleThread::IdleDispatchFromScript(nsIRunnable* aEvent) -{ - return NS_ERROR_NOT_IMPLEMENTED; -} - NS_IMETHODIMP LazyIdleThread::RegisterIdlePeriod(already_AddRefed aIdlePeriod) { diff --git a/xpcom/threads/nsIThread.idl b/xpcom/threads/nsIThread.idl index 48260a6471ed..618051f3be19 100644 --- a/xpcom/threads/nsIThread.idl +++ b/xpcom/threads/nsIThread.idl @@ -150,22 +150,7 @@ interface nsIThread : nsISerialEventTarget * Indicates that the thread is shutting down and has finished processing * events, so this event would never run and has not been dispatched. */ - [noscript, binaryname(IdleDispatch)] void idleDispatchFromC(in alreadyAddRefed_nsIRunnable event); - - /** - * Dispatch an event to the thread's idle queue. This function may be called - * from any thread, and it may be called re-entrantly. - * - * @param event - * The (raw) event to dispatch. - * - * @throws NS_ERROR_INVALID_ARG - * Indicates that event is null. - * @throws NS_ERROR_UNEXPECTED - * Indicates that the thread is shutting down and has finished processing - * events, so this event would never run and has not been dispatched. - */ - [binaryname(IdleDispatchFromScript)] void idleDispatch(in nsIRunnable event); + [noscript] void idleDispatch(in alreadyAddRefed_nsIRunnable event); /** * Use this attribute to dispatch runnables to the thread. Eventually, the diff --git a/xpcom/threads/nsIThreadManager.idl b/xpcom/threads/nsIThreadManager.idl index 8ad00d61bf55..e3fa41df11b9 100644 --- a/xpcom/threads/nsIThreadManager.idl +++ b/xpcom/threads/nsIThreadManager.idl @@ -90,4 +90,18 @@ interface nsIThreadManager : nsISupports * C++ callers should instead use NS_DispatchToMainThread. */ void dispatchToMainThread(in nsIRunnable event); + + /** + * This queues a runnable to the main thread's idle queue. + * + * @param event + * The event to dispatch. + * @param timeout + * The time in milliseconds until this event should be moved from the idle + * queue to the regular queue if it hasn't been executed by then. If not + * passed or a zero value is specified, the event will never be moved to + * the regular queue. + */ + void idleDispatchToMainThread(in nsIRunnable event, + [optional] in uint32_t timeout); }; diff --git a/xpcom/threads/nsThread.cpp b/xpcom/threads/nsThread.cpp index 6b8a6992e0c8..84a7dc19a86f 100644 --- a/xpcom/threads/nsThread.cpp +++ b/xpcom/threads/nsThread.cpp @@ -1162,13 +1162,6 @@ nsThread::IdleDispatch(already_AddRefed aEvent) return NS_OK; } -NS_IMETHODIMP -nsThread::IdleDispatchFromScript(nsIRunnable* aEvent) -{ - nsCOMPtr event(aEvent); - return IdleDispatch(event.forget()); -} - #ifdef MOZ_CANARY void canary_alarm_handler(int signum); diff --git a/xpcom/threads/nsThreadManager.cpp b/xpcom/threads/nsThreadManager.cpp index 59e57bfbdcb2..e00809bb48fa 100644 --- a/xpcom/threads/nsThreadManager.cpp +++ b/xpcom/threads/nsThreadManager.cpp @@ -263,7 +263,7 @@ nsThreadManager::NewNamedThread(const nsACString& aName, nsIThread** aResult) { // Note: can be called from arbitrary threads - + // No new threads during Shutdown if (NS_WARN_IF(!mInitialized)) { return NS_ERROR_NOT_INITIALIZED; @@ -367,3 +367,18 @@ nsThreadManager::DispatchToMainThread(nsIRunnable *aEvent) return mMainThread->DispatchFromScript(aEvent, 0); } + +NS_IMETHODIMP +nsThreadManager::IdleDispatchToMainThread(nsIRunnable *aEvent, uint32_t aTimeout) +{ + // Note: C++ callers should instead use NS_IdleDispatchToThread or + // NS_IdleDispatchToCurrentThread. + MOZ_ASSERT(NS_IsMainThread()); + + nsCOMPtr event(aEvent); + if (aTimeout) { + return NS_IdleDispatchToThread(event.forget(), aTimeout, mMainThread); + } + + return NS_IdleDispatchToThread(event.forget(), mMainThread); +} diff --git a/xpcom/threads/nsThreadUtils.cpp b/xpcom/threads/nsThreadUtils.cpp index ec0690c40db5..15f94a6c1b6e 100644 --- a/xpcom/threads/nsThreadUtils.cpp +++ b/xpcom/threads/nsThreadUtils.cpp @@ -279,27 +279,19 @@ NS_DelayedDispatchToCurrentThread(already_AddRefed&& aEvent, uint32 } nsresult -NS_IdleDispatchToCurrentThread(already_AddRefed&& aEvent) +NS_IdleDispatchToThread(already_AddRefed&& aEvent, + nsIThread* aThread) { nsresult rv; nsCOMPtr event(aEvent); NS_ENSURE_TRUE(event, NS_ERROR_INVALID_ARG); -#ifdef MOZILLA_INTERNAL_API - nsIThread* thread = NS_GetCurrentThread(); - if (!thread) { + if (!aThread) { return NS_ERROR_UNEXPECTED; } -#else - nsCOMPtr thread; - rv = NS_GetCurrentThread(getter_AddRefs(thread)); - if (NS_WARN_IF(NS_FAILED(rv))) { - return rv; - } -#endif // To keep us from leaking the runnable if dispatch method fails, // we grab the reference on failures and release it. nsIRunnable* temp = event.get(); - rv = thread->IdleDispatch(event.forget()); + rv = aThread->IdleDispatch(event.forget()); if (NS_WARN_IF(NS_FAILED(rv))) { // Dispatch() leaked the reference to the event, but due to caller's // assumptions, we shouldn't leak here. And given we are on the same @@ -310,6 +302,13 @@ NS_IdleDispatchToCurrentThread(already_AddRefed&& aEvent) return rv; } +nsresult +NS_IdleDispatchToCurrentThread(already_AddRefed&& aEvent) +{ + return NS_IdleDispatchToThread(Move(aEvent), + NS_GetCurrentThread()); +} + class IdleRunnableWrapper : public IdleRunnable { public: @@ -365,8 +364,9 @@ private: }; extern nsresult -NS_IdleDispatchToCurrentThread(already_AddRefed&& aEvent, - uint32_t aTimeout) +NS_IdleDispatchToThread(already_AddRefed&& aEvent, + uint32_t aTimeout, + nsIThread* aThread) { nsCOMPtr event(Move(aEvent)); NS_ENSURE_TRUE(event, NS_ERROR_INVALID_ARG); @@ -384,7 +384,15 @@ NS_IdleDispatchToCurrentThread(already_AddRefed&& aEvent, } idleEvent->SetTimer(aTimeout, target); - return NS_IdleDispatchToCurrentThread(event.forget()); + return NS_IdleDispatchToThread(event.forget(), aThread); +} + +extern nsresult +NS_IdleDispatchToCurrentThread(already_AddRefed&& aEvent, + uint32_t aTimeout) +{ + return NS_IdleDispatchToThread(Move(aEvent), aTimeout, + NS_GetCurrentThread()); } #ifndef XPCOM_GLUE_AVOID_NSPR diff --git a/xpcom/threads/nsThreadUtils.h b/xpcom/threads/nsThreadUtils.h index e6a3be969792..a8e8c898377f 100644 --- a/xpcom/threads/nsThreadUtils.h +++ b/xpcom/threads/nsThreadUtils.h @@ -152,6 +152,48 @@ NS_IdleDispatchToCurrentThread(already_AddRefed&& aEvent); extern nsresult NS_IdleDispatchToCurrentThread(already_AddRefed&& aEvent, uint32_t aTimeout); +/** + * Dispatch the given event to the idle queue of a thread. + * + * @param aEvent The event to dispatch. + * + * @param aThread The target thread for the dispatch. + * + * @returns NS_ERROR_INVALID_ARG + * If event is null. + * @returns NS_ERROR_UNEXPECTED + * If the thread is shutting down. + */ +extern nsresult +NS_IdleDispatchToThread(already_AddRefed&& aEvent, + nsIThread* aThread); + +/** + * Dispatch the given event to the idle queue of a thread. + * + * @param aEvent The event to dispatch. If the event implements + * nsIIdleRunnable, it will receive a call on + * nsIIdleRunnable::SetTimer when dispatched, with the value of + * aTimeout. + * + * @param aTimeout The time in milliseconds until the event should be + * moved from the idle queue to the regular queue, if it hasn't been + * executed. If aEvent is also an nsIIdleRunnable, it is expected + * that it should handle the timeout itself, after a call to + * nsIIdleRunnable::SetTimer. + * + * @param aThread The target thread for the dispatch. + * + * @returns NS_ERROR_INVALID_ARG + * If event is null. + * @returns NS_ERROR_UNEXPECTED + * If the thread is shutting down. + */ +extern nsresult +NS_IdleDispatchToThread(already_AddRefed&& aEvent, + uint32_t aTimeout, + nsIThread* aThread); + #ifndef XPCOM_GLUE_AVOID_NSPR /** * Process all pending events for the given thread before returning. This From acbe361b3d394c03c30498d70d2f11cbb95af224 Mon Sep 17 00:00:00 2001 From: Andreas Farre Date: Wed, 14 Jun 2017 08:59:00 +0200 Subject: [PATCH 061/106] Bug 1368072 - Use idleDispatchToMainThread instead. r=mconley Adapt to the move of nsIThread.idleDispatch to nsIThreadManager.idleDispatchToMainThread. --- browser/components/nsBrowserGlue.js | 2 +- browser/components/tests/startupRecorder.js | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/browser/components/nsBrowserGlue.js b/browser/components/nsBrowserGlue.js index 1e57d29b05a1..de0f5ca868f2 100644 --- a/browser/components/nsBrowserGlue.js +++ b/browser/components/nsBrowserGlue.js @@ -1181,7 +1181,7 @@ BrowserGlue.prototype = { } // Let's load the contextual identities. - Services.tm.mainThread.idleDispatch(() => { + Services.tm.idleDispatchToMainThread(() => { ContextualIdentityService.load(); }); diff --git a/browser/components/tests/startupRecorder.js b/browser/components/tests/startupRecorder.js index 8a0bcd37c747..cccd5785321a 100644 --- a/browser/components/tests/startupRecorder.js +++ b/browser/components/tests/startupRecorder.js @@ -68,9 +68,10 @@ startupRecorder.prototype = { Services.obs.removeObserver(this, topic); if (topic == "sessionstore-windows-restored") { - // We use idleDispatch here to record the set of loaded scripts after we - // are fully done with startup and ready to react to user events. - Services.tm.mainThread.idleDispatch( + // We use idleDispatchToMainThread here to record the set of + // loaded scripts after we are fully done with startup and ready + // to react to user events. + Services.tm.idleDispatchToMainThread( this.record.bind(this, "before handling user events")); } else { const topicsToNames = { From f984a5dfb7f9828eed87d46c695612d0400156dd Mon Sep 17 00:00:00 2001 From: Andreas Farre Date: Wed, 14 Jun 2017 08:59:00 +0200 Subject: [PATCH 062/106] Bug 1368072 - Use idleDispatchToMainThread instead. r=ato Adapt to the move of nsIThread.idleDispatch to nsIThreadManager.idleDispatchToMainThread. --- testing/marionette/components/marionette.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/testing/marionette/components/marionette.js b/testing/marionette/components/marionette.js index 37f3a5cb772b..f2fd88f9e28e 100644 --- a/testing/marionette/components/marionette.js +++ b/testing/marionette/components/marionette.js @@ -251,9 +251,9 @@ MarionetteComponent.prototype.init = function () { } // Delay initialization until we are done with delayed startup... - Services.tm.mainThread.idleDispatch(() => { + Services.tm.idleDispatchToMainThread(() => { // ... and with startup tests. - Services.tm.mainThread.idleDispatch(() => { + Services.tm.idleDispatchToMainThread(() => { let s; try { Cu.import("chrome://marionette/content/server.js"); From d7e4c73d5f9d0c4eb928b49c5ecdf68a86c25ba1 Mon Sep 17 00:00:00 2001 From: Andreas Farre Date: Fri, 16 Jun 2017 07:40:00 +0200 Subject: [PATCH 063/106] Bug 1373536 - Unify execution measurements. r=bkelly Expose the utility framework for computing runnable execution time for telemetry to be able to use it for managing budget times. --- dom/base/TimeoutManager.cpp | 113 ++++++++++++++++++------------------ dom/base/TimeoutManager.h | 3 + 2 files changed, 59 insertions(+), 57 deletions(-) diff --git a/dom/base/TimeoutManager.cpp b/dom/base/TimeoutManager.cpp index 65f25cbea0eb..7de55bdcc8e3 100644 --- a/dom/base/TimeoutManager.cpp +++ b/dom/base/TimeoutManager.cpp @@ -23,16 +23,18 @@ static LazyLogModule gLog("Timeout"); // Time between sampling timeout execution time. const uint32_t kTelemetryPeriodMS = 1000; -class TimeoutTelemetry +class TimeoutBudgetManager { public: - static TimeoutTelemetry& Get(); - TimeoutTelemetry() : mLastCollection(TimeStamp::Now()) {} + static TimeoutBudgetManager& Get(); + TimeoutBudgetManager() : mLastCollection(TimeStamp::Now()) {} - void StartRecording(TimeStamp aNow); + void StartRecording(const TimeStamp& aNow); void StopRecording(); - void RecordExecution(TimeStamp aNow, Timeout* aTimeout, bool aIsBackground); - void MaybeCollectTelemetry(TimeStamp aNow); + TimeDuration RecordExecution(const TimeStamp& aNow, + bool aIsTracking, + bool aIsBackground); + void MaybeCollectTelemetry(const TimeStamp& aNow); private: struct TelemetryData { @@ -42,63 +44,66 @@ private: TimeDuration mBackgroundNonTracking; }; - void Accumulate(Telemetry::HistogramID aId, TimeDuration aSample); + void Accumulate(Telemetry::HistogramID aId, const TimeDuration& aSample); TelemetryData mTelemetryData; TimeStamp mStart; TimeStamp mLastCollection; }; -static TimeoutTelemetry gTimeoutTelemetry; +static TimeoutBudgetManager gTimeoutBudgetManager; -/* static */ TimeoutTelemetry& -TimeoutTelemetry::Get() +/* static */ TimeoutBudgetManager& +TimeoutBudgetManager::Get() { - return gTimeoutTelemetry; + return gTimeoutBudgetManager; } void -TimeoutTelemetry::StartRecording(TimeStamp aNow) +TimeoutBudgetManager::StartRecording(const TimeStamp& aNow) { mStart = aNow; } void -TimeoutTelemetry::StopRecording() +TimeoutBudgetManager::StopRecording() { mStart = TimeStamp(); } -void -TimeoutTelemetry::RecordExecution(TimeStamp aNow, - Timeout* aTimeout, - bool aIsBackground) +TimeDuration +TimeoutBudgetManager::RecordExecution(const TimeStamp& aNow, + bool aIsTracking, + bool aIsBackground) { if (!mStart) { // If we've started a sync operation mStart might be null, in // which case we should not record this piece of execution. - return; + return TimeDuration(); } TimeDuration duration = aNow - mStart; if (aIsBackground) { - if (aTimeout->mIsTracking) { + if (aIsTracking) { mTelemetryData.mBackgroundTracking += duration; } else { mTelemetryData.mBackgroundNonTracking += duration; } } else { - if (aTimeout->mIsTracking) { + if (aIsTracking) { mTelemetryData.mForegroundTracking += duration; } else { mTelemetryData.mForegroundNonTracking += duration; } } + + return duration; } void -TimeoutTelemetry::Accumulate(Telemetry::HistogramID aId, TimeDuration aSample) +TimeoutBudgetManager::Accumulate(Telemetry::HistogramID aId, + const TimeDuration& aSample) { uint32_t sample = std::round(aSample.ToMilliseconds()); if (sample) { @@ -107,7 +112,7 @@ TimeoutTelemetry::Accumulate(Telemetry::HistogramID aId, TimeDuration aSample) } void -TimeoutTelemetry::MaybeCollectTelemetry(TimeStamp aNow) +TimeoutBudgetManager::MaybeCollectTelemetry(const TimeStamp& aNow) { if ((aNow - mLastCollection).ToMilliseconds() < kTelemetryPeriodMS) { return; @@ -251,6 +256,31 @@ TimeoutManager::CalculateDelay(Timeout* aTimeout) const { return result; } +void +TimeoutManager::RecordExecution(Timeout* aRunningTimeout, + Timeout* aTimeout) +{ + if (mWindow.IsChromeWindow()) { + return; + } + + TimeStamp now = TimeStamp::Now(); + if (aRunningTimeout) { + // If we're running a timeout callback, record any execution until + // now. + TimeoutBudgetManager::Get().RecordExecution( + now, aRunningTimeout->mIsTracking, IsBackground()); + TimeoutBudgetManager::Get().MaybeCollectTelemetry(now); + } + + if (aTimeout) { + // If we're starting a new timeout callback, start recording. + TimeoutBudgetManager::Get().StartRecording(now); + } else { + TimeoutBudgetManager::Get().StopRecording(); + } +} + #define TRACKING_SEPARATE_TIMEOUT_BUCKETING_STRATEGY 0 // Consider all timeouts coming from tracking scripts as tracking // These strategies are useful for testing. #define ALL_NORMAL_TIMEOUT_BUCKETING_STRATEGY 1 // Consider all timeouts as normal @@ -904,22 +934,9 @@ TimeoutManager::BeginRunningTimeout(Timeout* aTimeout) { Timeout* currentTimeout = mRunningTimeout; mRunningTimeout = aTimeout; - ++gRunningTimeoutDepth; - if (!mWindow.IsChromeWindow()) { - TimeStamp now = TimeStamp::Now(); - if (currentTimeout) { - // If we're already running a timeout and start running another - // one, record the fragment duration already collected. - TimeoutTelemetry::Get().RecordExecution( - now, currentTimeout, IsBackground()); - } - - TimeoutTelemetry::Get().MaybeCollectTelemetry(now); - TimeoutTelemetry::Get().StartRecording(now); - } - + RecordExecution(currentTimeout, aTimeout); return currentTimeout; } @@ -928,17 +945,7 @@ TimeoutManager::EndRunningTimeout(Timeout* aTimeout) { --gRunningTimeoutDepth; - if (!mWindow.IsChromeWindow()) { - TimeStamp now = TimeStamp::Now(); - TimeoutTelemetry::Get().RecordExecution(now, mRunningTimeout, IsBackground()); - - if (aTimeout) { - // If we were running a nested timeout, restart the measurement - // from here. - TimeoutTelemetry::Get().StartRecording(now); - } - } - + RecordExecution(mRunningTimeout, aTimeout); mRunningTimeout = aTimeout; } @@ -1146,22 +1153,14 @@ TimeoutManager::BeginSyncOperation() // equivalent to the period of us spinning up a new event loop, // record what we have and stop recording until we reach // EndSyncOperation. - if (!mWindow.IsChromeWindow()) { - if (mRunningTimeout) { - TimeoutTelemetry::Get().RecordExecution( - TimeStamp::Now(), mRunningTimeout, IsBackground()); - } - TimeoutTelemetry::Get().StopRecording(); - } + RecordExecution(mRunningTimeout, nullptr); } void TimeoutManager::EndSyncOperation() { // If we're running a timeout, restart the measurement from here. - if (!mWindow.IsChromeWindow() && mRunningTimeout) { - TimeoutTelemetry::Get().StartRecording(TimeStamp::Now()); - } + RecordExecution(nullptr, mRunningTimeout); } nsIEventTarget* diff --git a/dom/base/TimeoutManager.h b/dom/base/TimeoutManager.h index cc826b5757e7..7279d2fca987 100644 --- a/dom/base/TimeoutManager.h +++ b/dom/base/TimeoutManager.h @@ -134,6 +134,9 @@ private: TimeDuration MinSchedulingDelay() const; + void RecordExecution(mozilla::dom::Timeout* aRunningTimeout, + mozilla::dom::Timeout* aTimeout); + private: struct Timeouts { explicit Timeouts(const TimeoutManager& aManager) From 8b8b571592f8837d5b0ac924d1fcb7f64133d221 Mon Sep 17 00:00:00 2001 From: Andreas Farre Date: Mon, 19 Jun 2017 01:18:00 +0200 Subject: [PATCH 064/106] Bug 1373536 - Move TimeoutBudgetManager to its own file. r=bkelly --- dom/base/TimeoutBudgetManager.cpp | 96 +++++++++++++++++++++++++ dom/base/TimeoutBudgetManager.h | 47 +++++++++++++ dom/base/TimeoutManager.cpp | 112 +----------------------------- dom/base/moz.build | 1 + 4 files changed, 145 insertions(+), 111 deletions(-) create mode 100644 dom/base/TimeoutBudgetManager.cpp create mode 100644 dom/base/TimeoutBudgetManager.h diff --git a/dom/base/TimeoutBudgetManager.cpp b/dom/base/TimeoutBudgetManager.cpp new file mode 100644 index 000000000000..f9a81393da2b --- /dev/null +++ b/dom/base/TimeoutBudgetManager.cpp @@ -0,0 +1,96 @@ +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim:set ts=2 sw=2 sts=2 et cindent: */ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + +#include "TimeoutBudgetManager.h" + +namespace mozilla { +namespace dom { + +// Time between sampling timeout execution time. +const uint32_t kTelemetryPeriodMS = 1000; + +static TimeoutBudgetManager gTimeoutBudgetManager; + +/* static */ TimeoutBudgetManager& +TimeoutBudgetManager::Get() +{ + return gTimeoutBudgetManager; +} + +void +TimeoutBudgetManager::StartRecording(const TimeStamp& aNow) +{ + mStart = aNow; +} + +void +TimeoutBudgetManager::StopRecording() +{ + mStart = TimeStamp(); +} + +TimeDuration +TimeoutBudgetManager::RecordExecution(const TimeStamp& aNow, + bool aIsTracking, + bool aIsBackground) +{ + if (!mStart) { + // If we've started a sync operation mStart might be null, in + // which case we should not record this piece of execution. + return TimeDuration(); + } + + TimeDuration duration = aNow - mStart; + + if (aIsBackground) { + if (aIsTracking) { + mTelemetryData.mBackgroundTracking += duration; + } else { + mTelemetryData.mBackgroundNonTracking += duration; + } + } else { + if (aIsTracking) { + mTelemetryData.mForegroundTracking += duration; + } else { + mTelemetryData.mForegroundNonTracking += duration; + } + } + + return duration; +} + +void +TimeoutBudgetManager::Accumulate(Telemetry::HistogramID aId, + const TimeDuration& aSample) +{ + uint32_t sample = std::round(aSample.ToMilliseconds()); + if (sample) { + Telemetry::Accumulate(aId, sample); + } +} + +void +TimeoutBudgetManager::MaybeCollectTelemetry(const TimeStamp& aNow) +{ + if ((aNow - mLastCollection).ToMilliseconds() < kTelemetryPeriodMS) { + return; + } + + Accumulate(Telemetry::TIMEOUT_EXECUTION_FG_TRACKING_MS, + mTelemetryData.mForegroundTracking); + Accumulate(Telemetry::TIMEOUT_EXECUTION_FG_MS, + mTelemetryData.mForegroundNonTracking); + Accumulate(Telemetry::TIMEOUT_EXECUTION_BG_TRACKING_MS, + mTelemetryData.mBackgroundTracking); + Accumulate(Telemetry::TIMEOUT_EXECUTION_BG_MS, + mTelemetryData.mBackgroundNonTracking); + + mTelemetryData = TelemetryData(); + mLastCollection = aNow; +} + +} // namespace dom +} // namespace mozilla diff --git a/dom/base/TimeoutBudgetManager.h b/dom/base/TimeoutBudgetManager.h new file mode 100644 index 000000000000..c83dbd38e132 --- /dev/null +++ b/dom/base/TimeoutBudgetManager.h @@ -0,0 +1,47 @@ +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim:set ts=2 sw=2 sts=2 et cindent: */ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + +#ifndef mozilla_dom_timeoutbudgetmanager_h +#define mozilla_dom_timeoutbudgetmanager_h + +#include "mozilla/Telemetry.h" +#include "mozilla/TimeStamp.h" + +namespace mozilla { +namespace dom { + +class TimeoutBudgetManager +{ +public: + static TimeoutBudgetManager& Get(); + TimeoutBudgetManager() : mLastCollection(TimeStamp::Now()) {} + + void StartRecording(const TimeStamp& aNow); + void StopRecording(); + TimeDuration RecordExecution(const TimeStamp& aNow, + bool aIsTracking, + bool aIsBackground); + void MaybeCollectTelemetry(const TimeStamp& aNow); +private: + struct TelemetryData + { + TimeDuration mForegroundTracking; + TimeDuration mForegroundNonTracking; + TimeDuration mBackgroundTracking; + TimeDuration mBackgroundNonTracking; + }; + + void Accumulate(Telemetry::HistogramID aId, const TimeDuration& aSample); + + TelemetryData mTelemetryData; + TimeStamp mStart; + TimeStamp mLastCollection; +}; + +} // namespace dom +} // namespace mozilla + +#endif // mozilla_dom_timeoutbudgetmanager_h diff --git a/dom/base/TimeoutManager.cpp b/dom/base/TimeoutManager.cpp index 7de55bdcc8e3..66db9a1bf477 100644 --- a/dom/base/TimeoutManager.cpp +++ b/dom/base/TimeoutManager.cpp @@ -14,123 +14,13 @@ #include "mozilla/dom/TabGroup.h" #include "OrderedTimeoutIterator.h" #include "TimeoutExecutor.h" +#include "TimeoutBudgetManager.h" using namespace mozilla; using namespace mozilla::dom; static LazyLogModule gLog("Timeout"); -// Time between sampling timeout execution time. -const uint32_t kTelemetryPeriodMS = 1000; - -class TimeoutBudgetManager -{ -public: - static TimeoutBudgetManager& Get(); - TimeoutBudgetManager() : mLastCollection(TimeStamp::Now()) {} - - void StartRecording(const TimeStamp& aNow); - void StopRecording(); - TimeDuration RecordExecution(const TimeStamp& aNow, - bool aIsTracking, - bool aIsBackground); - void MaybeCollectTelemetry(const TimeStamp& aNow); -private: - struct TelemetryData - { - TimeDuration mForegroundTracking; - TimeDuration mForegroundNonTracking; - TimeDuration mBackgroundTracking; - TimeDuration mBackgroundNonTracking; - }; - - void Accumulate(Telemetry::HistogramID aId, const TimeDuration& aSample); - - TelemetryData mTelemetryData; - TimeStamp mStart; - TimeStamp mLastCollection; -}; - -static TimeoutBudgetManager gTimeoutBudgetManager; - -/* static */ TimeoutBudgetManager& -TimeoutBudgetManager::Get() -{ - return gTimeoutBudgetManager; -} - -void -TimeoutBudgetManager::StartRecording(const TimeStamp& aNow) -{ - mStart = aNow; -} - -void -TimeoutBudgetManager::StopRecording() -{ - mStart = TimeStamp(); -} - -TimeDuration -TimeoutBudgetManager::RecordExecution(const TimeStamp& aNow, - bool aIsTracking, - bool aIsBackground) -{ - if (!mStart) { - // If we've started a sync operation mStart might be null, in - // which case we should not record this piece of execution. - return TimeDuration(); - } - - TimeDuration duration = aNow - mStart; - - if (aIsBackground) { - if (aIsTracking) { - mTelemetryData.mBackgroundTracking += duration; - } else { - mTelemetryData.mBackgroundNonTracking += duration; - } - } else { - if (aIsTracking) { - mTelemetryData.mForegroundTracking += duration; - } else { - mTelemetryData.mForegroundNonTracking += duration; - } - } - - return duration; -} - -void -TimeoutBudgetManager::Accumulate(Telemetry::HistogramID aId, - const TimeDuration& aSample) -{ - uint32_t sample = std::round(aSample.ToMilliseconds()); - if (sample) { - Telemetry::Accumulate(aId, sample); - } -} - -void -TimeoutBudgetManager::MaybeCollectTelemetry(const TimeStamp& aNow) -{ - if ((aNow - mLastCollection).ToMilliseconds() < kTelemetryPeriodMS) { - return; - } - - Accumulate(Telemetry::TIMEOUT_EXECUTION_FG_TRACKING_MS, - mTelemetryData.mForegroundTracking); - Accumulate(Telemetry::TIMEOUT_EXECUTION_FG_MS, - mTelemetryData.mForegroundNonTracking); - Accumulate(Telemetry::TIMEOUT_EXECUTION_BG_TRACKING_MS, - mTelemetryData.mBackgroundTracking); - Accumulate(Telemetry::TIMEOUT_EXECUTION_BG_MS, - mTelemetryData.mBackgroundNonTracking); - - mTelemetryData = TelemetryData(); - mLastCollection = aNow; -} - static int32_t gRunningTimeoutDepth = 0; // The default shortest interval/timeout we permit diff --git a/dom/base/moz.build b/dom/base/moz.build index ffd31985b97d..9f59c9048ccb 100644 --- a/dom/base/moz.build +++ b/dom/base/moz.build @@ -352,6 +352,7 @@ UNIFIED_SOURCES += [ 'TextInputProcessor.cpp', 'ThirdPartyUtil.cpp', 'Timeout.cpp', + 'TimeoutBudgetManager.cpp', 'TimeoutExecutor.cpp', 'TimeoutHandler.cpp', 'TimeoutManager.cpp', From 5a246772d054f1da1cd265c183b137445ff013d9 Mon Sep 17 00:00:00 2001 From: Andreas Farre Date: Tue, 20 Jun 2017 00:40:00 +0200 Subject: [PATCH 065/106] Bug 1373536 - Clean up static API of TimeoutBudgetManager. r=smaug --- dom/base/TimeoutBudgetManager.cpp | 17 ++++++++--------- dom/base/TimeoutBudgetManager.h | 11 ++++++----- dom/base/TimeoutManager.cpp | 13 ++++++++----- 3 files changed, 22 insertions(+), 19 deletions(-) diff --git a/dom/base/TimeoutBudgetManager.cpp b/dom/base/TimeoutBudgetManager.cpp index f9a81393da2b..0fcde49905b5 100644 --- a/dom/base/TimeoutBudgetManager.cpp +++ b/dom/base/TimeoutBudgetManager.cpp @@ -6,17 +6,18 @@ #include "TimeoutBudgetManager.h" +#include "mozilla/dom/Timeout.h" + namespace mozilla { namespace dom { // Time between sampling timeout execution time. const uint32_t kTelemetryPeriodMS = 1000; -static TimeoutBudgetManager gTimeoutBudgetManager; - /* static */ TimeoutBudgetManager& TimeoutBudgetManager::Get() { + static TimeoutBudgetManager gTimeoutBudgetManager; return gTimeoutBudgetManager; } @@ -32,34 +33,32 @@ TimeoutBudgetManager::StopRecording() mStart = TimeStamp(); } -TimeDuration +void TimeoutBudgetManager::RecordExecution(const TimeStamp& aNow, - bool aIsTracking, + const Timeout* aTimeout, bool aIsBackground) { if (!mStart) { // If we've started a sync operation mStart might be null, in // which case we should not record this piece of execution. - return TimeDuration(); + return; } TimeDuration duration = aNow - mStart; if (aIsBackground) { - if (aIsTracking) { + if (aTimeout->mIsTracking) { mTelemetryData.mBackgroundTracking += duration; } else { mTelemetryData.mBackgroundNonTracking += duration; } } else { - if (aIsTracking) { + if (aTimeout->mIsTracking) { mTelemetryData.mForegroundTracking += duration; } else { mTelemetryData.mForegroundNonTracking += duration; } } - - return duration; } void diff --git a/dom/base/TimeoutBudgetManager.h b/dom/base/TimeoutBudgetManager.h index c83dbd38e132..c94f18c29df0 100644 --- a/dom/base/TimeoutBudgetManager.h +++ b/dom/base/TimeoutBudgetManager.h @@ -13,19 +13,20 @@ namespace mozilla { namespace dom { +class Timeout; + class TimeoutBudgetManager { public: static TimeoutBudgetManager& Get(); - TimeoutBudgetManager() : mLastCollection(TimeStamp::Now()) {} - void StartRecording(const TimeStamp& aNow); void StopRecording(); - TimeDuration RecordExecution(const TimeStamp& aNow, - bool aIsTracking, - bool aIsBackground); + void RecordExecution(const TimeStamp& aNow, + const Timeout* aTimeout, + bool aIsBackground); void MaybeCollectTelemetry(const TimeStamp& aNow); private: + TimeoutBudgetManager() : mLastCollection(TimeStamp::Now()) {} struct TelemetryData { TimeDuration mForegroundTracking; diff --git a/dom/base/TimeoutManager.cpp b/dom/base/TimeoutManager.cpp index 66db9a1bf477..7cda67abba16 100644 --- a/dom/base/TimeoutManager.cpp +++ b/dom/base/TimeoutManager.cpp @@ -154,20 +154,23 @@ TimeoutManager::RecordExecution(Timeout* aRunningTimeout, return; } + TimeoutBudgetManager& budgetManager = TimeoutBudgetManager::Get(); TimeStamp now = TimeStamp::Now(); + if (aRunningTimeout) { // If we're running a timeout callback, record any execution until // now. - TimeoutBudgetManager::Get().RecordExecution( - now, aRunningTimeout->mIsTracking, IsBackground()); - TimeoutBudgetManager::Get().MaybeCollectTelemetry(now); + budgetManager.RecordExecution( + now, aRunningTimeout, mWindow.IsBackgroundInternal()); + budgetManager.MaybeCollectTelemetry(now); } if (aTimeout) { // If we're starting a new timeout callback, start recording. - TimeoutBudgetManager::Get().StartRecording(now); + budgetManager.StartRecording(now); } else { - TimeoutBudgetManager::Get().StopRecording(); + // Else stop by clearing the start timestamp. + budgetManager.StopRecording(); } } From c2f1f9ef39c9a58918cb43fb3db778c9a5eab228 Mon Sep 17 00:00:00 2001 From: Jonathan Watt Date: Wed, 24 May 2017 10:36:09 +0100 Subject: [PATCH 066/106] Bug 1374099, part 1 - Remove chrome://browser/skin/urlbar-star.svg in favor of the context-fill using chrome://browser/skin/bookmark.svg. r=johannh MozReview-Commit-ID: 6kwsAMT8OM2 --- browser/themes/linux/browser.css | 6 ++++-- browser/themes/osx/browser.css | 6 ++++-- browser/themes/shared/jar.inc.mn | 1 - browser/themes/shared/urlbar-star.svg | 20 -------------------- browser/themes/windows/browser.css | 6 ++++-- 5 files changed, 12 insertions(+), 27 deletions(-) delete mode 100644 browser/themes/shared/urlbar-star.svg diff --git a/browser/themes/linux/browser.css b/browser/themes/linux/browser.css index fbc1d0f1942d..9b3a5f2f1bf0 100644 --- a/browser/themes/linux/browser.css +++ b/browser/themes/linux/browser.css @@ -693,11 +693,13 @@ html|span.ac-emphasize-text-url { } .ac-type-icon[type=bookmark] { - list-style-image: url("chrome://browser/skin/urlbar-star.svg#star"); + list-style-image: url("chrome://browser/skin/bookmark.svg"); + -moz-context-properties: fill; + fill: #b2b2b2; } .ac-type-icon[type=bookmark][selected][current] { - list-style-image: url("chrome://browser/skin/urlbar-star.svg#star-inverted"); + fill: white; } .ac-type-icon[type=keyword], diff --git a/browser/themes/osx/browser.css b/browser/themes/osx/browser.css index 2f2553f0c24a..18279548a353 100644 --- a/browser/themes/osx/browser.css +++ b/browser/themes/osx/browser.css @@ -851,11 +851,13 @@ html|span.ac-emphasize-text-url { } .ac-type-icon[type=bookmark] { - list-style-image: url("chrome://browser/skin/urlbar-star.svg#star"); + list-style-image: url("chrome://browser/skin/bookmark.svg"); + -moz-context-properties: fill; + fill: #b2b2b2; } .ac-type-icon[type=bookmark][selected][current] { - list-style-image: url("chrome://browser/skin/urlbar-star.svg#star-inverted"); + fill: white; } .ac-type-icon[type=keyword], diff --git a/browser/themes/shared/jar.inc.mn b/browser/themes/shared/jar.inc.mn index ebc7a10e897f..de7120782f85 100644 --- a/browser/themes/shared/jar.inc.mn +++ b/browser/themes/shared/jar.inc.mn @@ -218,5 +218,4 @@ skin/classic/browser/compacttheme/loading-inverted.png (../shared/compacttheme/loading-inverted.png) skin/classic/browser/compacttheme/loading-inverted@2x.png (../shared/compacttheme/loading-inverted@2x.png) skin/classic/browser/compacttheme/urlbar-history-dropmarker.svg (../shared/compacttheme/urlbar-history-dropmarker.svg) - skin/classic/browser/urlbar-star.svg (../shared/urlbar-star.svg) skin/classic/browser/urlbar-tab.svg (../shared/urlbar-tab.svg) diff --git a/browser/themes/shared/urlbar-star.svg b/browser/themes/shared/urlbar-star.svg deleted file mode 100644 index 3080aca1a067..000000000000 --- a/browser/themes/shared/urlbar-star.svg +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - - - diff --git a/browser/themes/windows/browser.css b/browser/themes/windows/browser.css index 9cb40b31d472..093b33e289e5 100644 --- a/browser/themes/windows/browser.css +++ b/browser/themes/windows/browser.css @@ -1077,11 +1077,13 @@ treechildren.searchbar-treebody::-moz-tree-row(selected) { } .ac-type-icon[type=bookmark] { - list-style-image: url("chrome://browser/skin/urlbar-star.svg#star"); + list-style-image: url("chrome://browser/skin/bookmark.svg"); + -moz-context-properties: fill; + fill: #b2b2b2; } .ac-type-icon[type=bookmark][selected][current] { - list-style-image: url("chrome://browser/skin/urlbar-star.svg#star-inverted"); + fill: white; } .ac-type-icon[type=keyword], From 99c234d64d47df3d7592b83f1a58e6b4ed20c5d8 Mon Sep 17 00:00:00 2001 From: Jonathan Watt Date: Wed, 24 May 2017 11:45:17 +0100 Subject: [PATCH 067/106] Bug 1374099, part 2 - Convert chrome://browser/skin/urlbar-tab.svg and its consumers to use SVG image context paint. r=johannh MozReview-Commit-ID: BFl16KRl8bv --- browser/themes/linux/browser.css | 6 ++++-- browser/themes/osx/browser.css | 6 ++++-- browser/themes/shared/urlbar-tab.svg | 20 +++----------------- browser/themes/windows/browser.css | 6 ++++-- 4 files changed, 15 insertions(+), 23 deletions(-) diff --git a/browser/themes/linux/browser.css b/browser/themes/linux/browser.css index 9b3a5f2f1bf0..3cd6d187c171 100644 --- a/browser/themes/linux/browser.css +++ b/browser/themes/linux/browser.css @@ -716,12 +716,14 @@ html|span.ac-emphasize-text-url { .ac-type-icon[type=switchtab], .ac-type-icon[type=remotetab] { - list-style-image: url("chrome://browser/skin/urlbar-tab.svg#tab"); + list-style-image: url("chrome://browser/skin/urlbar-tab.svg"); + -moz-context-properties: fill; + fill: #b2b2b2; } .ac-type-icon[type=switchtab][selected], .ac-type-icon[type=remotetab][selected] { - list-style-image: url("chrome://browser/skin/urlbar-tab.svg#tab-inverted"); + fill: white; } .autocomplete-treebody::-moz-tree-cell-text(treecolAutoCompleteComment) { diff --git a/browser/themes/osx/browser.css b/browser/themes/osx/browser.css index 18279548a353..ada91bf4e138 100644 --- a/browser/themes/osx/browser.css +++ b/browser/themes/osx/browser.css @@ -874,12 +874,14 @@ html|span.ac-emphasize-text-url { .ac-type-icon[type=switchtab], .ac-type-icon[type=remotetab] { - list-style-image: url("chrome://browser/skin/urlbar-tab.svg#tab"); + list-style-image: url("chrome://browser/skin/urlbar-tab.svg"); + -moz-context-properties: fill; + fill: #b2b2b2; } .ac-type-icon[type=switchtab][selected], .ac-type-icon[type=remotetab][selected] { - list-style-image: url("chrome://browser/skin/urlbar-tab.svg#tab-inverted"); + fill: white; } .autocomplete-treebody::-moz-tree-cell-text(treecolAutoCompleteComment) { diff --git a/browser/themes/shared/urlbar-tab.svg b/browser/themes/shared/urlbar-tab.svg index 87a2c7f12f86..cd140a2e139a 100644 --- a/browser/themes/shared/urlbar-tab.svg +++ b/browser/themes/shared/urlbar-tab.svg @@ -1,21 +1,7 @@ - - - - - - - + + diff --git a/browser/themes/windows/browser.css b/browser/themes/windows/browser.css index 093b33e289e5..cfb156cb211e 100644 --- a/browser/themes/windows/browser.css +++ b/browser/themes/windows/browser.css @@ -1100,12 +1100,14 @@ treechildren.searchbar-treebody::-moz-tree-row(selected) { .ac-type-icon[type=switchtab], .ac-type-icon[type=remotetab] { - list-style-image: url("chrome://browser/skin/urlbar-tab.svg#tab"); + list-style-image: url("chrome://browser/skin/urlbar-tab.svg"); + -moz-context-properties: fill; + fill: #b2b2b2; } .ac-type-icon[type=switchtab][selected], .ac-type-icon[type=remotetab][selected] { - list-style-image: url("chrome://browser/skin/urlbar-tab.svg#tab-inverted"); + fill: white; } .autocomplete-treebody::-moz-tree-cell-text(treecolAutoCompleteComment) { From 7d99d5962259b4577405a5c391f69b7d9b4fd8dc Mon Sep 17 00:00:00 2001 From: Jonathan Watt Date: Wed, 24 May 2017 15:00:32 +0100 Subject: [PATCH 068/106] Bug 1374101, part 1 - Convert chrome://browser/skin/sync-desktopIcon.svg and its consumers to use SVG image context paint. r=johannh MozReview-Commit-ID: 1Gv4K8ovg07 --- browser/themes/shared/sync-desktopIcon.svg | 22 ++++--------------- .../themes/shared/syncedtabs/sidebar.inc.css | 6 +++-- 2 files changed, 8 insertions(+), 20 deletions(-) diff --git a/browser/themes/shared/sync-desktopIcon.svg b/browser/themes/shared/sync-desktopIcon.svg index d3279a984744..2002e9bf04c5 100644 --- a/browser/themes/shared/sync-desktopIcon.svg +++ b/browser/themes/shared/sync-desktopIcon.svg @@ -1,22 +1,8 @@ - - - - - - - - - - + + + diff --git a/browser/themes/shared/syncedtabs/sidebar.inc.css b/browser/themes/shared/syncedtabs/sidebar.inc.css index 7b7039d3ce78..74c9d49ccb17 100644 --- a/browser/themes/shared/syncedtabs/sidebar.inc.css +++ b/browser/themes/shared/syncedtabs/sidebar.inc.css @@ -90,11 +90,13 @@ body { } .item.client.device-image-desktop > .item-title-container > .item-icon-container { - background-image: url("chrome://browser/skin/sync-desktopIcon.svg#icon"); + background-image: url("chrome://browser/skin/sync-desktopIcon.svg"); + -moz-context-properties: fill; + fill: #4d4d4d; } .item.client.device-image-desktop.selected:focus > .item-title-container > .item-icon-container { - background-image: url("chrome://browser/skin/sync-desktopIcon.svg#icon-inverted"); + fill: white; } .item.client.device-image-mobile > .item-title-container > .item-icon-container { From 40b51f11ba55bdec516e2796f36b868ba58f6eca Mon Sep 17 00:00:00 2001 From: Jonathan Watt Date: Wed, 24 May 2017 17:15:47 +0100 Subject: [PATCH 069/106] Bug 1374101, part 2 - Convert chrome://browser/skin/sync-mobileIcon.svg and its consumers to use SVG image context paint. r=johannh MozReview-Commit-ID: D6GMElUlicR --- browser/themes/shared/sync-mobileIcon.svg | 22 ++++--------------- .../themes/shared/syncedtabs/sidebar.inc.css | 6 +++-- 2 files changed, 8 insertions(+), 20 deletions(-) diff --git a/browser/themes/shared/sync-mobileIcon.svg b/browser/themes/shared/sync-mobileIcon.svg index df19994f83b4..5325793bdceb 100644 --- a/browser/themes/shared/sync-mobileIcon.svg +++ b/browser/themes/shared/sync-mobileIcon.svg @@ -1,22 +1,8 @@ - - - - - - - - - - + + + diff --git a/browser/themes/shared/syncedtabs/sidebar.inc.css b/browser/themes/shared/syncedtabs/sidebar.inc.css index 74c9d49ccb17..d7bb94fcaeac 100644 --- a/browser/themes/shared/syncedtabs/sidebar.inc.css +++ b/browser/themes/shared/syncedtabs/sidebar.inc.css @@ -100,11 +100,13 @@ body { } .item.client.device-image-mobile > .item-title-container > .item-icon-container { - background-image: url("chrome://browser/skin/sync-mobileIcon.svg#icon"); + background-image: url("chrome://browser/skin/sync-mobileIcon.svg"); + -moz-context-properties: fill; + fill: #4d4d4d; } .item.client.device-image-mobile.selected:focus > .item-title-container > .item-icon-container { - background-image: url("chrome://browser/skin/sync-mobileIcon.svg#icon-inverted"); + fill: white; } .item.tab > .item-title-container > .item-icon-container { From 6f8b287cea233cfd32e1a2f181747303a1e92847 Mon Sep 17 00:00:00 2001 From: Jonathan Watt Date: Thu, 25 May 2017 13:47:19 +0100 Subject: [PATCH 070/106] Bug 1374105 - Convert chrome://browser/skin/customizableui/menu-arrow.svg and its consumers to use SVG image context paint. r=johannh MozReview-Commit-ID: L9ElDgbJioP --- .../windows/customizableui/menu-arrow.svg | 25 +++---------------- .../themes/windows/customizableui/panelUI.css | 8 +++--- 2 files changed, 8 insertions(+), 25 deletions(-) diff --git a/browser/themes/windows/customizableui/menu-arrow.svg b/browser/themes/windows/customizableui/menu-arrow.svg index 8437779fdaa8..6a17077d9869 100644 --- a/browser/themes/windows/customizableui/menu-arrow.svg +++ b/browser/themes/windows/customizableui/menu-arrow.svg @@ -1,26 +1,7 @@ - - - - - - - - - + + diff --git a/browser/themes/windows/customizableui/panelUI.css b/browser/themes/windows/customizableui/panelUI.css index 4f91b1148a56..42d6ed074669 100644 --- a/browser/themes/windows/customizableui/panelUI.css +++ b/browser/themes/windows/customizableui/panelUI.css @@ -111,18 +111,20 @@ toolbarbutton.social-provider-menuitem > .toolbarbutton-icon { menu.subviewbutton > .menu-right { -moz-appearance: none; - list-style-image: url(chrome://browser/skin/customizableui/menu-arrow.svg#arrow); + list-style-image: url(chrome://browser/skin/customizableui/menu-arrow.svg); + -moz-context-properties: fill; + fill: MenuText; /* Reset the rect we inherit from the button: */ -moz-image-region: auto; } menu[disabled="true"].subviewbutton > .menu-right { - list-style-image: url(chrome://browser/skin/customizableui/menu-arrow.svg#arrow-disabled); + fill: GrayText; } @media (-moz-windows-default-theme: 0) { menu[_moz-menuactive].subviewbutton > .menu-right { - list-style-image: url(chrome://browser/skin/customizableui/menu-arrow.svg#arrow-hover); + fill: HighlightText; } } From af7907b3d29914e46d430932f936b08ebf07a83a Mon Sep 17 00:00:00 2001 From: Jonathan Watt Date: Thu, 25 May 2017 12:46:19 +0100 Subject: [PATCH 071/106] Bug 1374108 - Split up the find bar's next/previous icon and convert it to use SVG context paint. r=dao MozReview-Commit-ID: GHdhJNrrF5B --- toolkit/themes/linux/global/findBar.css | 12 ++++++--- toolkit/themes/osx/global/findBar.css | 12 ++++++--- toolkit/themes/shared/icons/find-arrows.svg | 27 ------------------- .../themes/shared/icons/find-next-arrow.svg | 8 ++++++ .../shared/icons/find-previous-arrow.svg | 8 ++++++ toolkit/themes/shared/jar.inc.mn | 3 ++- toolkit/themes/windows/global/findBar.css | 12 ++++++--- 7 files changed, 42 insertions(+), 40 deletions(-) delete mode 100644 toolkit/themes/shared/icons/find-arrows.svg create mode 100644 toolkit/themes/shared/icons/find-next-arrow.svg create mode 100644 toolkit/themes/shared/icons/find-previous-arrow.svg diff --git a/toolkit/themes/linux/global/findBar.css b/toolkit/themes/linux/global/findBar.css index 2f25357c0034..b2d1bd1a6677 100644 --- a/toolkit/themes/linux/global/findBar.css +++ b/toolkit/themes/linux/global/findBar.css @@ -104,20 +104,24 @@ findbar[noanim] { } .findbar-find-previous { - list-style-image: url(chrome://global/skin/icons/find-arrows.svg#previous); + list-style-image: url(chrome://global/skin/icons/find-previous-arrow.svg); + -moz-context-properties: fill; + fill: -moz-dialogtext; border-inline-end-width: 0; } .findbar-find-next { - list-style-image: url(chrome://global/skin/icons/find-arrows.svg#next); + list-style-image: url(chrome://global/skin/icons/find-next-arrow.svg); + -moz-context-properties: fill; + fill: -moz-dialogtext; } .findbar-find-previous[disabled] { - list-style-image: url(chrome://global/skin/icons/find-arrows.svg#previous-disabled); + fill: GrayText; } .findbar-find-next[disabled] { - list-style-image: url(chrome://global/skin/icons/find-arrows.svg#next-disabled); + fill: GrayText; } .findbar-find-previous > .toolbarbutton-icon, diff --git a/toolkit/themes/osx/global/findBar.css b/toolkit/themes/osx/global/findBar.css index 59d389005c84..3eaef921df1f 100644 --- a/toolkit/themes/osx/global/findBar.css +++ b/toolkit/themes/osx/global/findBar.css @@ -201,21 +201,25 @@ label.findbar-find-fast:-moz-lwtheme, border-left: none; border-right: none; margin-inline-end: 0; - list-style-image: url(chrome://global/skin/icons/find-arrows.svg#previous); + list-style-image: url(chrome://global/skin/icons/find-previous-arrow.svg); + -moz-context-properties: fill; + fill: -moz-dialogtext; border-radius: 0; } .findbar-find-next { - list-style-image: url(chrome://global/skin/icons/find-arrows.svg#next); + list-style-image: url(chrome://global/skin/icons/find-next-arrow.svg); + -moz-context-properties: fill; + fill: -moz-dialogtext; padding-inline-end: 7px; } .findbar-find-previous[disabled] { - list-style-image: url(chrome://global/skin/icons/find-arrows.svg#previous-disabled); + fill: GrayText; } .findbar-find-next[disabled] { - list-style-image: url(chrome://global/skin/icons/find-arrows.svg#next-disabled); + fill: GrayText; } .findbar-find-next:-moz-locale-dir(ltr) { diff --git a/toolkit/themes/shared/icons/find-arrows.svg b/toolkit/themes/shared/icons/find-arrows.svg deleted file mode 100644 index d6c59c771ebe..000000000000 --- a/toolkit/themes/shared/icons/find-arrows.svg +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - - - - - - - diff --git a/toolkit/themes/shared/icons/find-next-arrow.svg b/toolkit/themes/shared/icons/find-next-arrow.svg new file mode 100644 index 000000000000..1a0da49dfeb6 --- /dev/null +++ b/toolkit/themes/shared/icons/find-next-arrow.svg @@ -0,0 +1,8 @@ + + + + + diff --git a/toolkit/themes/shared/icons/find-previous-arrow.svg b/toolkit/themes/shared/icons/find-previous-arrow.svg new file mode 100644 index 000000000000..8fb08c470538 --- /dev/null +++ b/toolkit/themes/shared/icons/find-previous-arrow.svg @@ -0,0 +1,8 @@ + + + + + diff --git a/toolkit/themes/shared/jar.inc.mn b/toolkit/themes/shared/jar.inc.mn index 4c48515ca047..34c9d67b3c0b 100644 --- a/toolkit/themes/shared/jar.inc.mn +++ b/toolkit/themes/shared/jar.inc.mn @@ -28,7 +28,8 @@ toolkit.jar: skin/classic/global/scale.css (../../shared/scale.css) skin/classic/global/icons/calendar-arrow-left.svg (../../shared/icons/calendar-arrow-left.svg) skin/classic/global/icons/calendar-arrow-right.svg (../../shared/icons/calendar-arrow-right.svg) - skin/classic/global/icons/find-arrows.svg (../../shared/icons/find-arrows.svg) + skin/classic/global/icons/find-previous-arrow.svg (../../shared/icons/find-previous-arrow.svg) + skin/classic/global/icons/find-next-arrow.svg (../../shared/icons/find-next-arrow.svg) skin/classic/global/icons/info.svg (../../shared/incontent-icons/info.svg) skin/classic/global/icons/input-clear.svg (../../shared/icons/input-clear.svg) skin/classic/global/icons/loading.png (../../shared/icons/loading.png) diff --git a/toolkit/themes/windows/global/findBar.css b/toolkit/themes/windows/global/findBar.css index 2e8ab57a6c82..5d5e3af83509 100644 --- a/toolkit/themes/windows/global/findBar.css +++ b/toolkit/themes/windows/global/findBar.css @@ -96,19 +96,23 @@ findbar[noanim] { } .findbar-find-previous { - list-style-image: url(chrome://global/skin/icons/find-arrows.svg#previous); + list-style-image: url(chrome://global/skin/icons/find-previous-arrow.svg); + -moz-context-properties: fill; + fill: -moz-dialogtext; } .findbar-find-next { - list-style-image: url(chrome://global/skin/icons/find-arrows.svg#next); + list-style-image: url(chrome://global/skin/icons/find-next-arrow.svg); + -moz-context-properties: fill; + fill: -moz-dialogtext; } .findbar-find-previous[disabled] { - list-style-image: url(chrome://global/skin/icons/find-arrows.svg#previous-disabled); + fill: GrayText; } .findbar-find-next[disabled] { - list-style-image: url(chrome://global/skin/icons/find-arrows.svg#next-disabled); + fill: GrayText; } .findbar-find-previous, From e1c2e31be506835ea93c9a5387c95d677d4aba62 Mon Sep 17 00:00:00 2001 From: Nathan Froyd Date: Tue, 20 Jun 2017 11:34:37 -0400 Subject: [PATCH 072/106] Bug 1374432 - enable stylo attribute for tests only if stylo is enabled; r=jgraham If we don't do this, various bits of test infrastructure will turn on when stylo is merely built, not enabled, which will cause no end of orange and unhappiness. --- python/mozbuild/mozbuild/mozinfo.py | 2 +- toolkit/moz.configure | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/python/mozbuild/mozbuild/mozinfo.py b/python/mozbuild/mozbuild/mozinfo.py index 4e673895d8db..51d61b995dc1 100755 --- a/python/mozbuild/mozbuild/mozinfo.py +++ b/python/mozbuild/mozbuild/mozinfo.py @@ -82,7 +82,7 @@ def build_dict(config, env=os.environ): d['datareporting'] = bool(substs.get('MOZ_DATA_REPORTING')) d['healthreport'] = substs.get('MOZ_SERVICES_HEALTHREPORT') == '1' d['sync'] = substs.get('MOZ_SERVICES_SYNC') == '1' - d['stylo'] = substs.get('MOZ_STYLO') == '1' + d['stylo'] = substs.get('MOZ_STYLO_ENABLE') == '1' d['asan'] = substs.get('MOZ_ASAN') == '1' d['tsan'] = substs.get('MOZ_TSAN') == '1' d['telemetry'] = substs.get('MOZ_TELEMETRY_REPORTING') == '1' diff --git a/toolkit/moz.configure b/toolkit/moz.configure index e0465a298007..e291e324e25e 100644 --- a/toolkit/moz.configure +++ b/toolkit/moz.configure @@ -749,6 +749,7 @@ def stylo(stylo_config, bindgen_config_paths, bindgen_enabled): set_config('MOZ_STYLO', stylo.build) set_define('MOZ_STYLO', stylo.build) +set_config('MOZ_STYLO_ENABLE', stylo_config.enable) set_define('MOZ_STYLO_ENABLE', stylo_config.enable) set_config('MOZ_LIBCLANG_PATH', stylo.libclang_path) From d6b44d8d1b52fa620c9c4e5d9317de1394b390e6 Mon Sep 17 00:00:00 2001 From: David Major Date: Tue, 20 Jun 2017 11:39:20 -0400 Subject: [PATCH 073/106] Bug 1374419 - Make gHistograms constexpr to remove its initializer. r=gfritzsche --- toolkit/components/telemetry/gen-histogram-data.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toolkit/components/telemetry/gen-histogram-data.py b/toolkit/components/telemetry/gen-histogram-data.py index 8111d85461c5..80a21a91c435 100644 --- a/toolkit/components/telemetry/gen-histogram-data.py +++ b/toolkit/components/telemetry/gen-histogram-data.py @@ -41,7 +41,7 @@ def write_histogram_table(output, histograms): label_table = [] label_count = 0 - print("const HistogramInfo gHistograms[] = {", file=output) + print("constexpr HistogramInfo gHistograms[] = {", file=output) for histogram in histograms: name_index = string_table.stringIndex(histogram.name()) exp_index = string_table.stringIndex(histogram.expiration()) From 68f9662b8d584b7cc916ed4eb4753ade8d148a28 Mon Sep 17 00:00:00 2001 From: Eitan Isaacson Date: Mon, 19 Jun 2017 09:13:58 -0700 Subject: [PATCH 074/106] Bug 1374319 - Check if #a11y-handler-used is in about:support before assigning text to it. r=gasolin --- toolkit/content/aboutSupport.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/toolkit/content/aboutSupport.js b/toolkit/content/aboutSupport.js index dddbe0634461..e3ca404f0709 100644 --- a/toolkit/content/aboutSupport.js +++ b/toolkit/content/aboutSupport.js @@ -575,7 +575,10 @@ var snapshotFormatters = { accessibility: function accessibility(data) { $("a11y-activated").textContent = data.isActive; $("a11y-force-disabled").textContent = data.forceDisabled || 0; - $("a11y-handler-used").textContent = data.handlerUsed; + let a11yHandlerUsed = $("a11y-handler-used"); + if (a11yHandlerUsed) { + a11yHandlerUsed.textContent = data.handlerUsed; + } }, libraryVersions: function libraryVersions(data) { From 27a8e9ef06d6e64ce30e315e3ee2574af57eebe1 Mon Sep 17 00:00:00 2001 From: Sebastian Hengst Date: Tue, 20 Jun 2017 17:46:18 +0200 Subject: [PATCH 075/106] Backed out changeset d377000dbcc9 (bug 1373536) --- dom/base/TimeoutBudgetManager.cpp | 17 +++++++++-------- dom/base/TimeoutBudgetManager.h | 11 +++++------ dom/base/TimeoutManager.cpp | 13 +++++-------- 3 files changed, 19 insertions(+), 22 deletions(-) diff --git a/dom/base/TimeoutBudgetManager.cpp b/dom/base/TimeoutBudgetManager.cpp index 0fcde49905b5..f9a81393da2b 100644 --- a/dom/base/TimeoutBudgetManager.cpp +++ b/dom/base/TimeoutBudgetManager.cpp @@ -6,18 +6,17 @@ #include "TimeoutBudgetManager.h" -#include "mozilla/dom/Timeout.h" - namespace mozilla { namespace dom { // Time between sampling timeout execution time. const uint32_t kTelemetryPeriodMS = 1000; +static TimeoutBudgetManager gTimeoutBudgetManager; + /* static */ TimeoutBudgetManager& TimeoutBudgetManager::Get() { - static TimeoutBudgetManager gTimeoutBudgetManager; return gTimeoutBudgetManager; } @@ -33,32 +32,34 @@ TimeoutBudgetManager::StopRecording() mStart = TimeStamp(); } -void +TimeDuration TimeoutBudgetManager::RecordExecution(const TimeStamp& aNow, - const Timeout* aTimeout, + bool aIsTracking, bool aIsBackground) { if (!mStart) { // If we've started a sync operation mStart might be null, in // which case we should not record this piece of execution. - return; + return TimeDuration(); } TimeDuration duration = aNow - mStart; if (aIsBackground) { - if (aTimeout->mIsTracking) { + if (aIsTracking) { mTelemetryData.mBackgroundTracking += duration; } else { mTelemetryData.mBackgroundNonTracking += duration; } } else { - if (aTimeout->mIsTracking) { + if (aIsTracking) { mTelemetryData.mForegroundTracking += duration; } else { mTelemetryData.mForegroundNonTracking += duration; } } + + return duration; } void diff --git a/dom/base/TimeoutBudgetManager.h b/dom/base/TimeoutBudgetManager.h index c94f18c29df0..c83dbd38e132 100644 --- a/dom/base/TimeoutBudgetManager.h +++ b/dom/base/TimeoutBudgetManager.h @@ -13,20 +13,19 @@ namespace mozilla { namespace dom { -class Timeout; - class TimeoutBudgetManager { public: static TimeoutBudgetManager& Get(); + TimeoutBudgetManager() : mLastCollection(TimeStamp::Now()) {} + void StartRecording(const TimeStamp& aNow); void StopRecording(); - void RecordExecution(const TimeStamp& aNow, - const Timeout* aTimeout, - bool aIsBackground); + TimeDuration RecordExecution(const TimeStamp& aNow, + bool aIsTracking, + bool aIsBackground); void MaybeCollectTelemetry(const TimeStamp& aNow); private: - TimeoutBudgetManager() : mLastCollection(TimeStamp::Now()) {} struct TelemetryData { TimeDuration mForegroundTracking; diff --git a/dom/base/TimeoutManager.cpp b/dom/base/TimeoutManager.cpp index 7cda67abba16..66db9a1bf477 100644 --- a/dom/base/TimeoutManager.cpp +++ b/dom/base/TimeoutManager.cpp @@ -154,23 +154,20 @@ TimeoutManager::RecordExecution(Timeout* aRunningTimeout, return; } - TimeoutBudgetManager& budgetManager = TimeoutBudgetManager::Get(); TimeStamp now = TimeStamp::Now(); - if (aRunningTimeout) { // If we're running a timeout callback, record any execution until // now. - budgetManager.RecordExecution( - now, aRunningTimeout, mWindow.IsBackgroundInternal()); - budgetManager.MaybeCollectTelemetry(now); + TimeoutBudgetManager::Get().RecordExecution( + now, aRunningTimeout->mIsTracking, IsBackground()); + TimeoutBudgetManager::Get().MaybeCollectTelemetry(now); } if (aTimeout) { // If we're starting a new timeout callback, start recording. - budgetManager.StartRecording(now); + TimeoutBudgetManager::Get().StartRecording(now); } else { - // Else stop by clearing the start timestamp. - budgetManager.StopRecording(); + TimeoutBudgetManager::Get().StopRecording(); } } From f1aeafe17baebc2daf5870c79e598184359c6954 Mon Sep 17 00:00:00 2001 From: Sebastian Hengst Date: Tue, 20 Jun 2017 17:46:22 +0200 Subject: [PATCH 076/106] Backed out changeset 5bde0b2dd768 (bug 1373536) --- dom/base/TimeoutBudgetManager.cpp | 96 ------------------------- dom/base/TimeoutBudgetManager.h | 47 ------------- dom/base/TimeoutManager.cpp | 112 +++++++++++++++++++++++++++++- dom/base/moz.build | 1 - 4 files changed, 111 insertions(+), 145 deletions(-) delete mode 100644 dom/base/TimeoutBudgetManager.cpp delete mode 100644 dom/base/TimeoutBudgetManager.h diff --git a/dom/base/TimeoutBudgetManager.cpp b/dom/base/TimeoutBudgetManager.cpp deleted file mode 100644 index f9a81393da2b..000000000000 --- a/dom/base/TimeoutBudgetManager.cpp +++ /dev/null @@ -1,96 +0,0 @@ -/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim:set ts=2 sw=2 sts=2 et cindent: */ -/* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ - -#include "TimeoutBudgetManager.h" - -namespace mozilla { -namespace dom { - -// Time between sampling timeout execution time. -const uint32_t kTelemetryPeriodMS = 1000; - -static TimeoutBudgetManager gTimeoutBudgetManager; - -/* static */ TimeoutBudgetManager& -TimeoutBudgetManager::Get() -{ - return gTimeoutBudgetManager; -} - -void -TimeoutBudgetManager::StartRecording(const TimeStamp& aNow) -{ - mStart = aNow; -} - -void -TimeoutBudgetManager::StopRecording() -{ - mStart = TimeStamp(); -} - -TimeDuration -TimeoutBudgetManager::RecordExecution(const TimeStamp& aNow, - bool aIsTracking, - bool aIsBackground) -{ - if (!mStart) { - // If we've started a sync operation mStart might be null, in - // which case we should not record this piece of execution. - return TimeDuration(); - } - - TimeDuration duration = aNow - mStart; - - if (aIsBackground) { - if (aIsTracking) { - mTelemetryData.mBackgroundTracking += duration; - } else { - mTelemetryData.mBackgroundNonTracking += duration; - } - } else { - if (aIsTracking) { - mTelemetryData.mForegroundTracking += duration; - } else { - mTelemetryData.mForegroundNonTracking += duration; - } - } - - return duration; -} - -void -TimeoutBudgetManager::Accumulate(Telemetry::HistogramID aId, - const TimeDuration& aSample) -{ - uint32_t sample = std::round(aSample.ToMilliseconds()); - if (sample) { - Telemetry::Accumulate(aId, sample); - } -} - -void -TimeoutBudgetManager::MaybeCollectTelemetry(const TimeStamp& aNow) -{ - if ((aNow - mLastCollection).ToMilliseconds() < kTelemetryPeriodMS) { - return; - } - - Accumulate(Telemetry::TIMEOUT_EXECUTION_FG_TRACKING_MS, - mTelemetryData.mForegroundTracking); - Accumulate(Telemetry::TIMEOUT_EXECUTION_FG_MS, - mTelemetryData.mForegroundNonTracking); - Accumulate(Telemetry::TIMEOUT_EXECUTION_BG_TRACKING_MS, - mTelemetryData.mBackgroundTracking); - Accumulate(Telemetry::TIMEOUT_EXECUTION_BG_MS, - mTelemetryData.mBackgroundNonTracking); - - mTelemetryData = TelemetryData(); - mLastCollection = aNow; -} - -} // namespace dom -} // namespace mozilla diff --git a/dom/base/TimeoutBudgetManager.h b/dom/base/TimeoutBudgetManager.h deleted file mode 100644 index c83dbd38e132..000000000000 --- a/dom/base/TimeoutBudgetManager.h +++ /dev/null @@ -1,47 +0,0 @@ -/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim:set ts=2 sw=2 sts=2 et cindent: */ -/* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ - -#ifndef mozilla_dom_timeoutbudgetmanager_h -#define mozilla_dom_timeoutbudgetmanager_h - -#include "mozilla/Telemetry.h" -#include "mozilla/TimeStamp.h" - -namespace mozilla { -namespace dom { - -class TimeoutBudgetManager -{ -public: - static TimeoutBudgetManager& Get(); - TimeoutBudgetManager() : mLastCollection(TimeStamp::Now()) {} - - void StartRecording(const TimeStamp& aNow); - void StopRecording(); - TimeDuration RecordExecution(const TimeStamp& aNow, - bool aIsTracking, - bool aIsBackground); - void MaybeCollectTelemetry(const TimeStamp& aNow); -private: - struct TelemetryData - { - TimeDuration mForegroundTracking; - TimeDuration mForegroundNonTracking; - TimeDuration mBackgroundTracking; - TimeDuration mBackgroundNonTracking; - }; - - void Accumulate(Telemetry::HistogramID aId, const TimeDuration& aSample); - - TelemetryData mTelemetryData; - TimeStamp mStart; - TimeStamp mLastCollection; -}; - -} // namespace dom -} // namespace mozilla - -#endif // mozilla_dom_timeoutbudgetmanager_h diff --git a/dom/base/TimeoutManager.cpp b/dom/base/TimeoutManager.cpp index 66db9a1bf477..7de55bdcc8e3 100644 --- a/dom/base/TimeoutManager.cpp +++ b/dom/base/TimeoutManager.cpp @@ -14,13 +14,123 @@ #include "mozilla/dom/TabGroup.h" #include "OrderedTimeoutIterator.h" #include "TimeoutExecutor.h" -#include "TimeoutBudgetManager.h" using namespace mozilla; using namespace mozilla::dom; static LazyLogModule gLog("Timeout"); +// Time between sampling timeout execution time. +const uint32_t kTelemetryPeriodMS = 1000; + +class TimeoutBudgetManager +{ +public: + static TimeoutBudgetManager& Get(); + TimeoutBudgetManager() : mLastCollection(TimeStamp::Now()) {} + + void StartRecording(const TimeStamp& aNow); + void StopRecording(); + TimeDuration RecordExecution(const TimeStamp& aNow, + bool aIsTracking, + bool aIsBackground); + void MaybeCollectTelemetry(const TimeStamp& aNow); +private: + struct TelemetryData + { + TimeDuration mForegroundTracking; + TimeDuration mForegroundNonTracking; + TimeDuration mBackgroundTracking; + TimeDuration mBackgroundNonTracking; + }; + + void Accumulate(Telemetry::HistogramID aId, const TimeDuration& aSample); + + TelemetryData mTelemetryData; + TimeStamp mStart; + TimeStamp mLastCollection; +}; + +static TimeoutBudgetManager gTimeoutBudgetManager; + +/* static */ TimeoutBudgetManager& +TimeoutBudgetManager::Get() +{ + return gTimeoutBudgetManager; +} + +void +TimeoutBudgetManager::StartRecording(const TimeStamp& aNow) +{ + mStart = aNow; +} + +void +TimeoutBudgetManager::StopRecording() +{ + mStart = TimeStamp(); +} + +TimeDuration +TimeoutBudgetManager::RecordExecution(const TimeStamp& aNow, + bool aIsTracking, + bool aIsBackground) +{ + if (!mStart) { + // If we've started a sync operation mStart might be null, in + // which case we should not record this piece of execution. + return TimeDuration(); + } + + TimeDuration duration = aNow - mStart; + + if (aIsBackground) { + if (aIsTracking) { + mTelemetryData.mBackgroundTracking += duration; + } else { + mTelemetryData.mBackgroundNonTracking += duration; + } + } else { + if (aIsTracking) { + mTelemetryData.mForegroundTracking += duration; + } else { + mTelemetryData.mForegroundNonTracking += duration; + } + } + + return duration; +} + +void +TimeoutBudgetManager::Accumulate(Telemetry::HistogramID aId, + const TimeDuration& aSample) +{ + uint32_t sample = std::round(aSample.ToMilliseconds()); + if (sample) { + Telemetry::Accumulate(aId, sample); + } +} + +void +TimeoutBudgetManager::MaybeCollectTelemetry(const TimeStamp& aNow) +{ + if ((aNow - mLastCollection).ToMilliseconds() < kTelemetryPeriodMS) { + return; + } + + Accumulate(Telemetry::TIMEOUT_EXECUTION_FG_TRACKING_MS, + mTelemetryData.mForegroundTracking); + Accumulate(Telemetry::TIMEOUT_EXECUTION_FG_MS, + mTelemetryData.mForegroundNonTracking); + Accumulate(Telemetry::TIMEOUT_EXECUTION_BG_TRACKING_MS, + mTelemetryData.mBackgroundTracking); + Accumulate(Telemetry::TIMEOUT_EXECUTION_BG_MS, + mTelemetryData.mBackgroundNonTracking); + + mTelemetryData = TelemetryData(); + mLastCollection = aNow; +} + static int32_t gRunningTimeoutDepth = 0; // The default shortest interval/timeout we permit diff --git a/dom/base/moz.build b/dom/base/moz.build index 9f59c9048ccb..ffd31985b97d 100644 --- a/dom/base/moz.build +++ b/dom/base/moz.build @@ -352,7 +352,6 @@ UNIFIED_SOURCES += [ 'TextInputProcessor.cpp', 'ThirdPartyUtil.cpp', 'Timeout.cpp', - 'TimeoutBudgetManager.cpp', 'TimeoutExecutor.cpp', 'TimeoutHandler.cpp', 'TimeoutManager.cpp', From b879d28128f48db711ca1e3fef301708b856e691 Mon Sep 17 00:00:00 2001 From: Sebastian Hengst Date: Tue, 20 Jun 2017 17:47:54 +0200 Subject: [PATCH 077/106] Backed out changeset 10676fd9e6ad (bug 1373536) for failing asan-fuzzing at dom/base/TimeoutHandler.h:26 with unknown type name 'NS_DECL_CYCLE_COLLECTION_CLASS' and more. r=backout --- dom/base/TimeoutManager.cpp | 113 ++++++++++++++++++------------------ dom/base/TimeoutManager.h | 3 - 2 files changed, 57 insertions(+), 59 deletions(-) diff --git a/dom/base/TimeoutManager.cpp b/dom/base/TimeoutManager.cpp index 7de55bdcc8e3..65f25cbea0eb 100644 --- a/dom/base/TimeoutManager.cpp +++ b/dom/base/TimeoutManager.cpp @@ -23,18 +23,16 @@ static LazyLogModule gLog("Timeout"); // Time between sampling timeout execution time. const uint32_t kTelemetryPeriodMS = 1000; -class TimeoutBudgetManager +class TimeoutTelemetry { public: - static TimeoutBudgetManager& Get(); - TimeoutBudgetManager() : mLastCollection(TimeStamp::Now()) {} + static TimeoutTelemetry& Get(); + TimeoutTelemetry() : mLastCollection(TimeStamp::Now()) {} - void StartRecording(const TimeStamp& aNow); + void StartRecording(TimeStamp aNow); void StopRecording(); - TimeDuration RecordExecution(const TimeStamp& aNow, - bool aIsTracking, - bool aIsBackground); - void MaybeCollectTelemetry(const TimeStamp& aNow); + void RecordExecution(TimeStamp aNow, Timeout* aTimeout, bool aIsBackground); + void MaybeCollectTelemetry(TimeStamp aNow); private: struct TelemetryData { @@ -44,66 +42,63 @@ private: TimeDuration mBackgroundNonTracking; }; - void Accumulate(Telemetry::HistogramID aId, const TimeDuration& aSample); + void Accumulate(Telemetry::HistogramID aId, TimeDuration aSample); TelemetryData mTelemetryData; TimeStamp mStart; TimeStamp mLastCollection; }; -static TimeoutBudgetManager gTimeoutBudgetManager; +static TimeoutTelemetry gTimeoutTelemetry; -/* static */ TimeoutBudgetManager& -TimeoutBudgetManager::Get() +/* static */ TimeoutTelemetry& +TimeoutTelemetry::Get() { - return gTimeoutBudgetManager; + return gTimeoutTelemetry; } void -TimeoutBudgetManager::StartRecording(const TimeStamp& aNow) +TimeoutTelemetry::StartRecording(TimeStamp aNow) { mStart = aNow; } void -TimeoutBudgetManager::StopRecording() +TimeoutTelemetry::StopRecording() { mStart = TimeStamp(); } -TimeDuration -TimeoutBudgetManager::RecordExecution(const TimeStamp& aNow, - bool aIsTracking, - bool aIsBackground) +void +TimeoutTelemetry::RecordExecution(TimeStamp aNow, + Timeout* aTimeout, + bool aIsBackground) { if (!mStart) { // If we've started a sync operation mStart might be null, in // which case we should not record this piece of execution. - return TimeDuration(); + return; } TimeDuration duration = aNow - mStart; if (aIsBackground) { - if (aIsTracking) { + if (aTimeout->mIsTracking) { mTelemetryData.mBackgroundTracking += duration; } else { mTelemetryData.mBackgroundNonTracking += duration; } } else { - if (aIsTracking) { + if (aTimeout->mIsTracking) { mTelemetryData.mForegroundTracking += duration; } else { mTelemetryData.mForegroundNonTracking += duration; } } - - return duration; } void -TimeoutBudgetManager::Accumulate(Telemetry::HistogramID aId, - const TimeDuration& aSample) +TimeoutTelemetry::Accumulate(Telemetry::HistogramID aId, TimeDuration aSample) { uint32_t sample = std::round(aSample.ToMilliseconds()); if (sample) { @@ -112,7 +107,7 @@ TimeoutBudgetManager::Accumulate(Telemetry::HistogramID aId, } void -TimeoutBudgetManager::MaybeCollectTelemetry(const TimeStamp& aNow) +TimeoutTelemetry::MaybeCollectTelemetry(TimeStamp aNow) { if ((aNow - mLastCollection).ToMilliseconds() < kTelemetryPeriodMS) { return; @@ -256,31 +251,6 @@ TimeoutManager::CalculateDelay(Timeout* aTimeout) const { return result; } -void -TimeoutManager::RecordExecution(Timeout* aRunningTimeout, - Timeout* aTimeout) -{ - if (mWindow.IsChromeWindow()) { - return; - } - - TimeStamp now = TimeStamp::Now(); - if (aRunningTimeout) { - // If we're running a timeout callback, record any execution until - // now. - TimeoutBudgetManager::Get().RecordExecution( - now, aRunningTimeout->mIsTracking, IsBackground()); - TimeoutBudgetManager::Get().MaybeCollectTelemetry(now); - } - - if (aTimeout) { - // If we're starting a new timeout callback, start recording. - TimeoutBudgetManager::Get().StartRecording(now); - } else { - TimeoutBudgetManager::Get().StopRecording(); - } -} - #define TRACKING_SEPARATE_TIMEOUT_BUCKETING_STRATEGY 0 // Consider all timeouts coming from tracking scripts as tracking // These strategies are useful for testing. #define ALL_NORMAL_TIMEOUT_BUCKETING_STRATEGY 1 // Consider all timeouts as normal @@ -934,9 +904,22 @@ TimeoutManager::BeginRunningTimeout(Timeout* aTimeout) { Timeout* currentTimeout = mRunningTimeout; mRunningTimeout = aTimeout; + ++gRunningTimeoutDepth; - RecordExecution(currentTimeout, aTimeout); + if (!mWindow.IsChromeWindow()) { + TimeStamp now = TimeStamp::Now(); + if (currentTimeout) { + // If we're already running a timeout and start running another + // one, record the fragment duration already collected. + TimeoutTelemetry::Get().RecordExecution( + now, currentTimeout, IsBackground()); + } + + TimeoutTelemetry::Get().MaybeCollectTelemetry(now); + TimeoutTelemetry::Get().StartRecording(now); + } + return currentTimeout; } @@ -945,7 +928,17 @@ TimeoutManager::EndRunningTimeout(Timeout* aTimeout) { --gRunningTimeoutDepth; - RecordExecution(mRunningTimeout, aTimeout); + if (!mWindow.IsChromeWindow()) { + TimeStamp now = TimeStamp::Now(); + TimeoutTelemetry::Get().RecordExecution(now, mRunningTimeout, IsBackground()); + + if (aTimeout) { + // If we were running a nested timeout, restart the measurement + // from here. + TimeoutTelemetry::Get().StartRecording(now); + } + } + mRunningTimeout = aTimeout; } @@ -1153,14 +1146,22 @@ TimeoutManager::BeginSyncOperation() // equivalent to the period of us spinning up a new event loop, // record what we have and stop recording until we reach // EndSyncOperation. - RecordExecution(mRunningTimeout, nullptr); + if (!mWindow.IsChromeWindow()) { + if (mRunningTimeout) { + TimeoutTelemetry::Get().RecordExecution( + TimeStamp::Now(), mRunningTimeout, IsBackground()); + } + TimeoutTelemetry::Get().StopRecording(); + } } void TimeoutManager::EndSyncOperation() { // If we're running a timeout, restart the measurement from here. - RecordExecution(nullptr, mRunningTimeout); + if (!mWindow.IsChromeWindow() && mRunningTimeout) { + TimeoutTelemetry::Get().StartRecording(TimeStamp::Now()); + } } nsIEventTarget* diff --git a/dom/base/TimeoutManager.h b/dom/base/TimeoutManager.h index 7279d2fca987..cc826b5757e7 100644 --- a/dom/base/TimeoutManager.h +++ b/dom/base/TimeoutManager.h @@ -134,9 +134,6 @@ private: TimeDuration MinSchedulingDelay() const; - void RecordExecution(mozilla::dom::Timeout* aRunningTimeout, - mozilla::dom::Timeout* aTimeout); - private: struct Timeouts { explicit Timeouts(const TimeoutManager& aManager) From 2bfb5352bfadbf374d7348f863671d08459b2e7e Mon Sep 17 00:00:00 2001 From: Andrea Marchesini Date: Tue, 20 Jun 2017 17:53:20 +0200 Subject: [PATCH 078/106] Bug 1371889 - Fetch body must be kept alive using refcounting, r=bkelly --- dom/fetch/Fetch.cpp | 379 +++++++++++++++++------------- dom/fetch/Fetch.h | 32 +-- dom/workers/ServiceWorkerEvents.h | 1 + 3 files changed, 230 insertions(+), 182 deletions(-) diff --git a/dom/fetch/Fetch.cpp b/dom/fetch/Fetch.cpp index 08f64e95f83c..d8c0c29f1c30 100644 --- a/dom/fetch/Fetch.cpp +++ b/dom/fetch/Fetch.cpp @@ -18,6 +18,7 @@ #include "nsReadableUtils.h" #include "nsStreamUtils.h" #include "nsStringStream.h" +#include "nsProxyRelease.h" #include "mozilla/ErrorResult.h" #include "mozilla/dom/BindingDeclarations.h" @@ -833,6 +834,134 @@ ExtractByteStreamFromBody(const fetch::BodyInit& aBodyInit, return NS_ERROR_FAILURE; } +template +class FetchBodyWrapper; + +template +class FetchBodyWorkerHolder final : public workers::WorkerHolder +{ + RefPtr> mWrapper; + bool mWasNotified; + +public: + explicit FetchBodyWorkerHolder(FetchBodyWrapper* aWrapper) + : mWrapper(aWrapper) + , mWasNotified(false) + { + MOZ_ASSERT(aWrapper); + } + + ~FetchBodyWorkerHolder() = default; + + bool Notify(workers::Status aStatus) override; +}; + +// FetchBody is not thread-safe but we need to move it around threads. +// In order to keep it alive all the time, we use a WorkerHolder, if created on +// workers, plus a wrapper. +template +class FetchBodyWrapper final +{ +public: + friend class ReleaseObjectHelper; + + NS_INLINE_DECL_THREADSAFE_REFCOUNTING(FetchBodyWrapper) + + static already_AddRefed> + Create(FetchBody* aBody) + { + MOZ_ASSERT(aBody); + + RefPtr> wrapper = + new FetchBodyWrapper(aBody); + + if (!NS_IsMainThread()) { + WorkerPrivate* workerPrivate = GetCurrentThreadWorkerPrivate(); + MOZ_ASSERT(workerPrivate); + + if (!wrapper->RegisterWorkerHolder(workerPrivate)) { + return nullptr; + } + } + + return wrapper.forget(); + } + + void + ReleaseObject() + { + AssertIsOnTargetThread(); + + mWorkerHolder = nullptr; + mBody = nullptr; + } + + FetchBody* + Body() const + { + return mBody; + } + +private: + explicit FetchBodyWrapper(FetchBody* aBody) + : mTargetThread(NS_GetCurrentThread()) + , mBody(aBody) + {} + + ~FetchBodyWrapper() + { + NS_ProxyRelease(mTargetThread, mBody.forget()); + } + + void + AssertIsOnTargetThread() + { + MOZ_ASSERT(NS_GetCurrentThread() == mTargetThread); + } + + bool + RegisterWorkerHolder(WorkerPrivate* aWorkerPrivate) + { + MOZ_ASSERT(aWorkerPrivate); + aWorkerPrivate->AssertIsOnWorkerThread(); + + MOZ_ASSERT(!mWorkerHolder); + mWorkerHolder.reset(new FetchBodyWorkerHolder(this)); + + if (!mWorkerHolder->HoldWorker(aWorkerPrivate, Closing)) { + NS_WARNING("Failed to add workerHolder"); + mWorkerHolder = nullptr; + return false; + } + + return true; + } + + nsCOMPtr mTargetThread; + RefPtr> mBody; + + // Set when consuming the body is attempted on a worker. + // Unset when consumption is done/aborted. + // This WorkerHolder keeps alive the wrapper via a cycle. + UniquePtr mWorkerHolder; +}; + +template +bool +FetchBodyWorkerHolder::Notify(workers::Status aStatus) +{ + MOZ_ASSERT(aStatus > workers::Running); + if (!mWasNotified) { + mWasNotified = true; + // This will probably cause the releasing of the wrapper. + // The WorkerHolder will be released as well. + mWrapper->Body()->ContinueConsumeBody(mWrapper, NS_BINDING_ABORTED, 0, + nullptr); + } + + return true; +} + namespace { /* * Called on successfully reading the complete stream. @@ -840,18 +969,17 @@ namespace { template class ContinueConsumeBodyRunnable final : public MainThreadWorkerRunnable { - // This has been addrefed before this runnable is dispatched, - // released in WorkerRun(). - FetchBody* mFetchBody; + RefPtr> mFetchBodyWrapper; nsresult mStatus; uint32_t mLength; uint8_t* mResult; public: - ContinueConsumeBodyRunnable(FetchBody* aFetchBody, nsresult aStatus, - uint32_t aLength, uint8_t* aResult) - : MainThreadWorkerRunnable(aFetchBody->mWorkerPrivate) - , mFetchBody(aFetchBody) + ContinueConsumeBodyRunnable(FetchBodyWrapper* aFetchBodyWrapper, + nsresult aStatus, uint32_t aLength, + uint8_t* aResult) + : MainThreadWorkerRunnable(aFetchBodyWrapper->Body()->mWorkerPrivate) + , mFetchBodyWrapper(aFetchBodyWrapper) , mStatus(aStatus) , mLength(aLength) , mResult(aResult) @@ -862,7 +990,8 @@ public: bool WorkerRun(JSContext* aCx, WorkerPrivate* aWorkerPrivate) override { - mFetchBody->ContinueConsumeBody(mStatus, mLength, mResult); + mFetchBodyWrapper->Body()->ContinueConsumeBody(mFetchBodyWrapper, mStatus, + mLength, mResult); return true; } }; @@ -873,16 +1002,14 @@ public: template class ContinueConsumeBlobBodyRunnable final : public MainThreadWorkerRunnable { - // This has been addrefed before this runnable is dispatched, - // released in WorkerRun(). - FetchBody* mFetchBody; + RefPtr> mFetchBodyWrapper; RefPtr mBlobImpl; public: - ContinueConsumeBlobBodyRunnable(FetchBody* aFetchBody, + ContinueConsumeBlobBodyRunnable(FetchBodyWrapper* aFetchBodyWrapper, BlobImpl* aBlobImpl) - : MainThreadWorkerRunnable(aFetchBody->mWorkerPrivate) - , mFetchBody(aFetchBody) + : MainThreadWorkerRunnable(aFetchBodyWrapper->Body()->mWorkerPrivate) + , mFetchBodyWrapper(aFetchBodyWrapper) , mBlobImpl(aBlobImpl) { MOZ_ASSERT(NS_IsMainThread()); @@ -892,7 +1019,8 @@ public: bool WorkerRun(JSContext* aCx, WorkerPrivate* aWorkerPrivate) override { - mFetchBody->ContinueConsumeBlobBody(mBlobImpl); + mFetchBodyWrapper->Body()->ContinueConsumeBlobBody(mFetchBodyWrapper, + mBlobImpl); return true; } }; @@ -900,11 +1028,12 @@ public: template class FailConsumeBodyWorkerRunnable : public MainThreadWorkerControlRunnable { - FetchBody* mBody; + RefPtr> mBodyWrapper; + public: - explicit FailConsumeBodyWorkerRunnable(FetchBody* aBody) - : MainThreadWorkerControlRunnable(aBody->mWorkerPrivate) - , mBody(aBody) + explicit FailConsumeBodyWorkerRunnable(FetchBodyWrapper* aBodyWrapper) + : MainThreadWorkerControlRunnable(aBodyWrapper->Body()->mWorkerPrivate) + , mBodyWrapper(aBodyWrapper) { AssertIsOnMainThread(); } @@ -912,7 +1041,8 @@ public: bool WorkerRun(JSContext* aCx, WorkerPrivate* aWorkerPrivate) override { - mBody->ContinueConsumeBody(NS_ERROR_FAILURE, 0, nullptr); + mBodyWrapper->Body()->ContinueConsumeBody(mBodyWrapper, NS_ERROR_FAILURE, + 0, nullptr); return true; } }; @@ -924,24 +1054,28 @@ public: template class MOZ_STACK_CLASS AutoFailConsumeBody final { - FetchBody* mBody; + RefPtr> mBodyWrapper; + public: - explicit AutoFailConsumeBody(FetchBody* aBody) - : mBody(aBody) - { } + explicit AutoFailConsumeBody(FetchBodyWrapper* aBodyWrapper) + : mBodyWrapper(aBodyWrapper) + {} ~AutoFailConsumeBody() { AssertIsOnMainThread(); - if (mBody) { - if (mBody->mWorkerPrivate) { + + if (mBodyWrapper) { + if (mBodyWrapper->Body()->mWorkerPrivate) { RefPtr> r = - new FailConsumeBodyWorkerRunnable(mBody); + new FailConsumeBodyWorkerRunnable(mBodyWrapper); if (!r->Dispatch()) { MOZ_CRASH("We are going to leak"); } } else { - mBody->ContinueConsumeBody(NS_ERROR_FAILURE, 0, nullptr); + mBodyWrapper->Body()->ContinueConsumeBody(mBodyWrapper, + NS_ERROR_FAILURE, 0, + nullptr); } } } @@ -949,7 +1083,7 @@ public: void DontFail() { - mBody = nullptr; + mBodyWrapper = nullptr; } }; @@ -957,13 +1091,13 @@ template class ConsumeBodyDoneObserver : public nsIStreamLoaderObserver , public MutableBlobStorageCallback { - FetchBody* mFetchBody; + RefPtr> mFetchBodyWrapper; public: NS_DECL_THREADSAFE_ISUPPORTS - explicit ConsumeBodyDoneObserver(FetchBody* aFetchBody) - : mFetchBody(aFetchBody) + explicit ConsumeBodyDoneObserver(FetchBodyWrapper* aFetchBodyWrapper) + : mFetchBodyWrapper(aFetchBodyWrapper) { } NS_IMETHOD @@ -982,12 +1116,12 @@ public: } uint8_t* nonconstResult = const_cast(aResult); - if (mFetchBody->mWorkerPrivate) { + if (mFetchBodyWrapper->Body()->mWorkerPrivate) { RefPtr> r = - new ContinueConsumeBodyRunnable(mFetchBody, - aStatus, - aResultLength, - nonconstResult); + new ContinueConsumeBodyRunnable(mFetchBodyWrapper, + aStatus, + aResultLength, + nonconstResult); if (!r->Dispatch()) { // XXXcatalinb: The worker is shutting down, the pump will be canceled // by FetchBodyWorkerHolder::Notify. @@ -996,7 +1130,9 @@ public: return NS_ERROR_FAILURE; } } else { - mFetchBody->ContinueConsumeBody(aStatus, aResultLength, nonconstResult); + mFetchBodyWrapper->Body()->ContinueConsumeBody(mFetchBodyWrapper, + aStatus, aResultLength, + nonconstResult); } // FetchBody is responsible for data. @@ -1015,16 +1151,18 @@ public: MOZ_ASSERT(aBlob); - if (mFetchBody->mWorkerPrivate) { + if (mFetchBodyWrapper->Body()->mWorkerPrivate) { RefPtr> r = - new ContinueConsumeBlobBodyRunnable(mFetchBody, aBlob->Impl()); + new ContinueConsumeBlobBodyRunnable(mFetchBodyWrapper, + aBlob->Impl()); if (!r->Dispatch()) { NS_WARNING("Could not dispatch ConsumeBlobBodyRunnable"); return; } } else { - mFetchBody->ContinueConsumeBlobBody(aBlob->Impl()); + mFetchBodyWrapper->Body()->ContinueConsumeBlobBody(mFetchBodyWrapper, + aBlob->Impl()); } } @@ -1046,16 +1184,17 @@ NS_INTERFACE_MAP_END template class BeginConsumeBodyRunnable final : public Runnable { - FetchBody* mFetchBody; + RefPtr> mFetchBodyWrapper; + public: - explicit BeginConsumeBodyRunnable(FetchBody* aBody) - : mFetchBody(aBody) + explicit BeginConsumeBodyRunnable(FetchBodyWrapper* aWrapper) + : mFetchBodyWrapper(aWrapper) { } NS_IMETHOD Run() override { - mFetchBody->BeginConsumeBodyMainThread(); + mFetchBodyWrapper->Body()->BeginConsumeBodyMainThread(mFetchBodyWrapper); return NS_OK; } }; @@ -1063,13 +1202,16 @@ public: template class CancelPumpRunnable final : public WorkerMainThreadRunnable { + // This is a sync runnable. What dispatches this runnable must keep the body + // alive. FetchBody* mBody; + public: explicit CancelPumpRunnable(FetchBody* aBody) : WorkerMainThreadRunnable(aBody->mWorkerPrivate, NS_LITERAL_CSTRING("Fetch :: Cancel Pump")) , mBody(aBody) - { } + {} bool MainThreadRun() override @@ -1078,40 +1220,12 @@ public: return true; } }; + } // namespace -template -class FetchBodyWorkerHolder final : public workers::WorkerHolder -{ - // This is addrefed before the workerHolder is created, and is released in - // ContinueConsumeBody() so we can hold a rawptr. - FetchBody* mBody; - bool mWasNotified; - -public: - explicit FetchBodyWorkerHolder(FetchBody* aBody) - : mBody(aBody) - , mWasNotified(false) - { } - - ~FetchBodyWorkerHolder() - { } - - bool Notify(workers::Status aStatus) override - { - MOZ_ASSERT(aStatus > workers::Running); - if (!mWasNotified) { - mWasNotified = true; - mBody->ContinueConsumeBody(NS_BINDING_ABORTED, 0, nullptr); - } - return true; - } -}; - template FetchBody::FetchBody(nsIGlobalObject* aOwner) - : mWorkerHolder(nullptr) - , mOwner(aOwner) + : mOwner(aOwner) , mBodyUsed(false) #ifdef DEBUG , mReadDone(false) @@ -1142,69 +1256,6 @@ FetchBody::~FetchBody() { } -// Returns true if addref succeeded. -// Always succeeds on main thread. -// May fail on worker if RegisterWorkerHolder() fails. In that case, it will -// release the object before returning false. -template -bool -FetchBody::AddRefObject() -{ - AssertIsOnTargetThread(); - DerivedClass()->AddRef(); - - if (mWorkerPrivate && !mWorkerHolder) { - if (!RegisterWorkerHolder()) { - ReleaseObject(); - return false; - } - } - return true; -} - -template -void -FetchBody::ReleaseObject() -{ - AssertIsOnTargetThread(); - - if (mWorkerPrivate && mWorkerHolder) { - UnregisterWorkerHolder(); - } - - DerivedClass()->Release(); -} - -template -bool -FetchBody::RegisterWorkerHolder() -{ - MOZ_ASSERT(mWorkerPrivate); - mWorkerPrivate->AssertIsOnWorkerThread(); - MOZ_ASSERT(!mWorkerHolder); - mWorkerHolder = new FetchBodyWorkerHolder(this); - - if (!mWorkerHolder->HoldWorker(mWorkerPrivate, Closing)) { - NS_WARNING("Failed to add workerHolder"); - mWorkerHolder = nullptr; - return false; - } - - return true; -} - -template -void -FetchBody::UnregisterWorkerHolder() -{ - MOZ_ASSERT(mWorkerPrivate); - mWorkerPrivate->AssertIsOnWorkerThread(); - MOZ_ASSERT(mWorkerHolder); - - mWorkerHolder->ReleaseWorker(); - mWorkerHolder = nullptr; -} - template void FetchBody::CancelPump() @@ -1221,19 +1272,20 @@ nsresult FetchBody::BeginConsumeBody() { AssertIsOnTargetThread(); - MOZ_ASSERT(!mWorkerHolder); MOZ_ASSERT(mConsumePromise); - // The FetchBody is not thread-safe refcounted. We addref it here and release - // it once the stream read is finished. - if (!AddRefObject()) { + // The FetchBody is not thread-safe refcounted. We wrap it with a thread-safe + // object able to keep the current worker alive (if we are running in a + // worker). + RefPtr> wrapper = + FetchBodyWrapper::Create(this); + if (!wrapper) { return NS_ERROR_FAILURE; } - nsCOMPtr r = new BeginConsumeBodyRunnable(this); + nsCOMPtr r = new BeginConsumeBodyRunnable(wrapper); nsresult rv = mMainThreadEventTarget->Dispatch(r.forget(), NS_DISPATCH_NORMAL); if (NS_WARN_IF(NS_FAILED(rv))) { - ReleaseObject(); return rv; } return NS_OK; @@ -1246,10 +1298,12 @@ FetchBody::BeginConsumeBody() */ template void -FetchBody::BeginConsumeBodyMainThread() +FetchBody::BeginConsumeBodyMainThread(FetchBodyWrapper* aWrapper) { AssertIsOnMainThread(); - AutoFailConsumeBody autoReject(DerivedClass()); + + AutoFailConsumeBody autoReject(aWrapper); + nsresult rv; nsCOMPtr stream; DerivedClass()->GetBody(getter_AddRefs(stream)); @@ -1268,7 +1322,8 @@ FetchBody::BeginConsumeBodyMainThread() return; } - RefPtr> p = new ConsumeBodyDoneObserver(this); + RefPtr> p = + new ConsumeBodyDoneObserver(aWrapper); nsCOMPtr listener; if (mConsumeType == CONSUME_BLOB) { @@ -1324,14 +1379,15 @@ FetchBody::BeginConsumeBodyMainThread() template void -FetchBody::ContinueConsumeBody(nsresult aStatus, uint32_t aResultLength, uint8_t* aResult) +FetchBody::ContinueConsumeBody(FetchBodyWrapper* aBodyWrapper, + nsresult aStatus, uint32_t aResultLength, + uint8_t* aResult) { AssertIsOnTargetThread(); // Just a precaution to ensure ContinueConsumeBody is not called out of // sync with a body read. MOZ_ASSERT(mBodyUsed); MOZ_ASSERT(!mReadDone); - MOZ_ASSERT_IF(mWorkerPrivate, mWorkerHolder); #ifdef DEBUG mReadDone = true; #endif @@ -1343,8 +1399,9 @@ FetchBody::ContinueConsumeBody(nsresult aStatus, uint32_t aResultLength MOZ_ASSERT(mConsumePromise); RefPtr localPromise = mConsumePromise.forget(); - RefPtr derivedClass = DerivedClass(); - ReleaseObject(); + auto autoReleaseObject = mozilla::MakeScopeExit([&] { + aBodyWrapper->ReleaseObject(); + }); if (NS_WARN_IF(NS_FAILED(aStatus))) { localPromise->MaybeReject(NS_ERROR_DOM_ABORT_ERR); @@ -1365,7 +1422,7 @@ FetchBody::ContinueConsumeBody(nsresult aStatus, uint32_t aResultLength // a valid FetchBody around to call CancelPump and we don't release the // FetchBody on the main thread. RefPtr> r = - new CancelPumpRunnable(this); + new CancelPumpRunnable(aBodyWrapper->Body()); ErrorResult rv; r->Dispatch(Terminating, rv); if (rv.Failed()) { @@ -1392,7 +1449,7 @@ FetchBody::ContinueConsumeBody(nsresult aStatus, uint32_t aResultLength MOZ_ASSERT(aResult); AutoJSAPI jsapi; - if (!jsapi.Init(derivedClass->GetParentObject())) { + if (!jsapi.Init(aBodyWrapper->Body()->DerivedClass()->GetParentObject())) { localPromise->MaybeReject(NS_ERROR_UNEXPECTED); return; } @@ -1426,7 +1483,7 @@ FetchBody::ContinueConsumeBody(nsresult aStatus, uint32_t aResultLength autoFree.release(); RefPtr fd = BodyUtil::ConsumeFormData( - derivedClass->GetParentObject(), + aBodyWrapper->Body()->DerivedClass()->GetParentObject(), mMimeType, data, error); if (!error.Failed()) { localPromise->MaybeResolve(fd); @@ -1462,7 +1519,8 @@ FetchBody::ContinueConsumeBody(nsresult aStatus, uint32_t aResultLength template void -FetchBody::ContinueConsumeBlobBody(BlobImpl* aBlobImpl) +FetchBody::ContinueConsumeBlobBody(FetchBodyWrapper* aBodyWrapper, + BlobImpl* aBlobImpl) { AssertIsOnTargetThread(); // Just a precaution to ensure ContinueConsumeBody is not called out of @@ -1470,7 +1528,6 @@ FetchBody::ContinueConsumeBlobBody(BlobImpl* aBlobImpl) MOZ_ASSERT(mBodyUsed); MOZ_ASSERT(!mReadDone); MOZ_ASSERT(mConsumeType == CONSUME_BLOB); - MOZ_ASSERT_IF(mWorkerPrivate, mWorkerHolder); #ifdef DEBUG mReadDone = true; #endif @@ -1478,15 +1535,17 @@ FetchBody::ContinueConsumeBlobBody(BlobImpl* aBlobImpl) MOZ_ASSERT(mConsumePromise); RefPtr localPromise = mConsumePromise.forget(); - RefPtr derivedClass = DerivedClass(); - ReleaseObject(); + auto autoReleaseObject = mozilla::MakeScopeExit([&] { + aBodyWrapper->ReleaseObject(); + }); // Release the pump and then early exit if there was an error. // Uses NS_ProxyRelease internally, so this is safe. mConsumeBodyPump = nullptr; RefPtr blob = - dom::Blob::Create(derivedClass->GetParentObject(), aBlobImpl); + dom::Blob::Create(aBodyWrapper->Body()->DerivedClass()->GetParentObject(), + aBlobImpl); MOZ_ASSERT(blob); localPromise->MaybeResolve(blob); diff --git a/dom/fetch/Fetch.h b/dom/fetch/Fetch.h index 6901d9990c59..39543d4d2ec8 100644 --- a/dom/fetch/Fetch.h +++ b/dom/fetch/Fetch.h @@ -20,7 +20,6 @@ #include "mozilla/ErrorResult.h" #include "mozilla/dom/Promise.h" #include "mozilla/dom/RequestBinding.h" -#include "mozilla/dom/workers/bindings/WorkerHolder.h" class nsIGlobalObject; class nsIEventTarget; @@ -72,7 +71,7 @@ ExtractByteStreamFromBody(const fetch::BodyInit& aBodyInit, nsCString& aContentType, uint64_t& aContentLength); -template class FetchBodyWorkerHolder; +template class FetchBodyWrapper; /* * FetchBody's body consumption uses nsIInputStreamPump to read from the @@ -108,8 +107,11 @@ template class FetchBodyWorkerHolder; * The pump is always released on the main thread. */ template -class FetchBody { +class FetchBody +{ public: + NS_INLINE_DECL_PURE_VIRTUAL_REFCOUNTING + bool BodyUsed() const { return mBodyUsed; } @@ -145,13 +147,15 @@ public: // Utility public methods accessed by various runnables. void - BeginConsumeBodyMainThread(); + BeginConsumeBodyMainThread(FetchBodyWrapper* aWrapper); void - ContinueConsumeBody(nsresult aStatus, uint32_t aLength, uint8_t* aResult); + ContinueConsumeBody(FetchBodyWrapper* aWrapper, nsresult aStatus, + uint32_t aLength, uint8_t* aResult); void - ContinueConsumeBlobBody(BlobImpl* aBlobImpl); + ContinueConsumeBlobBody(FetchBodyWrapper* aWrapper, + BlobImpl* aBlobImpl); void CancelPump(); @@ -165,10 +169,6 @@ public: // Always set whenever the FetchBody is created on the worker thread. workers::WorkerPrivate* mWorkerPrivate; - // Set when consuming the body is attempted on a worker. - // Unset when consumption is done/aborted. - nsAutoPtr mWorkerHolder; - protected: nsCOMPtr mOwner; @@ -200,18 +200,6 @@ private: already_AddRefed ConsumeBody(ConsumeType aType, ErrorResult& aRv); - bool - AddRefObject(); - - void - ReleaseObject(); - - bool - RegisterWorkerHolder(); - - void - UnregisterWorkerHolder(); - bool IsOnTargetThread() { diff --git a/dom/workers/ServiceWorkerEvents.h b/dom/workers/ServiceWorkerEvents.h index ad43a4d9f2d4..f12bc0c917e0 100644 --- a/dom/workers/ServiceWorkerEvents.h +++ b/dom/workers/ServiceWorkerEvents.h @@ -15,6 +15,7 @@ #include "mozilla/dom/Promise.h" #include "mozilla/dom/Response.h" #include "mozilla/dom/workers/bindings/ServiceWorker.h" +#include "mozilla/dom/workers/Workers.h" #include "nsProxyRelease.h" #include "nsContentUtils.h" From adc614148c879010f40d6f5432fef6149fff6007 Mon Sep 17 00:00:00 2001 From: Andrea Marchesini Date: Tue, 20 Jun 2017 17:53:21 +0200 Subject: [PATCH 079/106] Bug 1373555 - Move the Fetch consume body login in a separate class - part 1 - separate files, r=bkelly --- dom/fetch/Fetch.cpp | 129 +----------------------------------- dom/fetch/FetchConsumer.cpp | 126 +++++++++++++++++++++++++++++++++++ dom/fetch/FetchConsumer.h | 66 ++++++++++++++++++ dom/fetch/moz.build | 1 + 4 files changed, 194 insertions(+), 128 deletions(-) create mode 100644 dom/fetch/FetchConsumer.cpp create mode 100644 dom/fetch/FetchConsumer.h diff --git a/dom/fetch/Fetch.cpp b/dom/fetch/Fetch.cpp index d8c0c29f1c30..d364894d80f8 100644 --- a/dom/fetch/Fetch.cpp +++ b/dom/fetch/Fetch.cpp @@ -5,6 +5,7 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #include "Fetch.h" +#include "FetchConsumer.h" #include "nsIDocument.h" #include "nsIGlobalObject.h" @@ -834,134 +835,6 @@ ExtractByteStreamFromBody(const fetch::BodyInit& aBodyInit, return NS_ERROR_FAILURE; } -template -class FetchBodyWrapper; - -template -class FetchBodyWorkerHolder final : public workers::WorkerHolder -{ - RefPtr> mWrapper; - bool mWasNotified; - -public: - explicit FetchBodyWorkerHolder(FetchBodyWrapper* aWrapper) - : mWrapper(aWrapper) - , mWasNotified(false) - { - MOZ_ASSERT(aWrapper); - } - - ~FetchBodyWorkerHolder() = default; - - bool Notify(workers::Status aStatus) override; -}; - -// FetchBody is not thread-safe but we need to move it around threads. -// In order to keep it alive all the time, we use a WorkerHolder, if created on -// workers, plus a wrapper. -template -class FetchBodyWrapper final -{ -public: - friend class ReleaseObjectHelper; - - NS_INLINE_DECL_THREADSAFE_REFCOUNTING(FetchBodyWrapper) - - static already_AddRefed> - Create(FetchBody* aBody) - { - MOZ_ASSERT(aBody); - - RefPtr> wrapper = - new FetchBodyWrapper(aBody); - - if (!NS_IsMainThread()) { - WorkerPrivate* workerPrivate = GetCurrentThreadWorkerPrivate(); - MOZ_ASSERT(workerPrivate); - - if (!wrapper->RegisterWorkerHolder(workerPrivate)) { - return nullptr; - } - } - - return wrapper.forget(); - } - - void - ReleaseObject() - { - AssertIsOnTargetThread(); - - mWorkerHolder = nullptr; - mBody = nullptr; - } - - FetchBody* - Body() const - { - return mBody; - } - -private: - explicit FetchBodyWrapper(FetchBody* aBody) - : mTargetThread(NS_GetCurrentThread()) - , mBody(aBody) - {} - - ~FetchBodyWrapper() - { - NS_ProxyRelease(mTargetThread, mBody.forget()); - } - - void - AssertIsOnTargetThread() - { - MOZ_ASSERT(NS_GetCurrentThread() == mTargetThread); - } - - bool - RegisterWorkerHolder(WorkerPrivate* aWorkerPrivate) - { - MOZ_ASSERT(aWorkerPrivate); - aWorkerPrivate->AssertIsOnWorkerThread(); - - MOZ_ASSERT(!mWorkerHolder); - mWorkerHolder.reset(new FetchBodyWorkerHolder(this)); - - if (!mWorkerHolder->HoldWorker(aWorkerPrivate, Closing)) { - NS_WARNING("Failed to add workerHolder"); - mWorkerHolder = nullptr; - return false; - } - - return true; - } - - nsCOMPtr mTargetThread; - RefPtr> mBody; - - // Set when consuming the body is attempted on a worker. - // Unset when consumption is done/aborted. - // This WorkerHolder keeps alive the wrapper via a cycle. - UniquePtr mWorkerHolder; -}; - -template -bool -FetchBodyWorkerHolder::Notify(workers::Status aStatus) -{ - MOZ_ASSERT(aStatus > workers::Running); - if (!mWasNotified) { - mWasNotified = true; - // This will probably cause the releasing of the wrapper. - // The WorkerHolder will be released as well. - mWrapper->Body()->ContinueConsumeBody(mWrapper, NS_BINDING_ABORTED, 0, - nullptr); - } - - return true; -} - namespace { /* * Called on successfully reading the complete stream. diff --git a/dom/fetch/FetchConsumer.cpp b/dom/fetch/FetchConsumer.cpp new file mode 100644 index 000000000000..33b960619c91 --- /dev/null +++ b/dom/fetch/FetchConsumer.cpp @@ -0,0 +1,126 @@ +/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + +#include "Fetch.h" +#include "FetchConsumer.h" + +#include "nsProxyRelease.h" +#include "WorkerPrivate.h" +#include "WorkerRunnable.h" +#include "WorkerScope.h" +#include "Workers.h" + +namespace mozilla { +namespace dom { + +using namespace workers; + +namespace { + +template +class FetchBodyWorkerHolder final : public workers::WorkerHolder +{ + RefPtr> mWrapper; + bool mWasNotified; + +public: + explicit FetchBodyWorkerHolder(FetchBodyWrapper* aWrapper) + : mWrapper(aWrapper) + , mWasNotified(false) + { + MOZ_ASSERT(aWrapper); + } + + ~FetchBodyWorkerHolder() = default; + + bool Notify(workers::Status aStatus) override + { + MOZ_ASSERT(aStatus > workers::Running); + if (!mWasNotified) { + mWasNotified = true; + // This will probably cause the releasing of the wrapper. + // The WorkerHolder will be released as well. + mWrapper->Body()->ContinueConsumeBody(mWrapper, NS_BINDING_ABORTED, 0, + nullptr); + } + + return true; + } +}; + +} // anonymous + +template +/* static */ already_AddRefed> +FetchBodyWrapper::Create(FetchBody* aBody) +{ + MOZ_ASSERT(aBody); + + RefPtr> wrapper = + new FetchBodyWrapper(aBody); + + if (!NS_IsMainThread()) { + WorkerPrivate* workerPrivate = GetCurrentThreadWorkerPrivate(); + MOZ_ASSERT(workerPrivate); + + if (!wrapper->RegisterWorkerHolder(workerPrivate)) { + return nullptr; + } + } + + return wrapper.forget(); +} + +template +void +FetchBodyWrapper::ReleaseObject() +{ + AssertIsOnTargetThread(); + + mWorkerHolder = nullptr; + mBody = nullptr; +} + +template +FetchBodyWrapper::FetchBodyWrapper(FetchBody* aBody) + : mTargetThread(NS_GetCurrentThread()) + , mBody(aBody) +{} + +template +FetchBodyWrapper::~FetchBodyWrapper() +{ + NS_ProxyRelease(mTargetThread, mBody.forget()); +} + +template +void +FetchBodyWrapper::AssertIsOnTargetThread() const +{ + MOZ_ASSERT(NS_GetCurrentThread() == mTargetThread); +} + +template +bool +FetchBodyWrapper::RegisterWorkerHolder(WorkerPrivate* aWorkerPrivate) +{ + MOZ_ASSERT(aWorkerPrivate); + aWorkerPrivate->AssertIsOnWorkerThread(); + + MOZ_ASSERT(!mWorkerHolder); + mWorkerHolder.reset(new FetchBodyWorkerHolder(this)); + + if (!mWorkerHolder->HoldWorker(aWorkerPrivate, Closing)) { + NS_WARNING("Failed to add workerHolder"); + mWorkerHolder = nullptr; + return false; + } + + return true; +} + +} // namespace dom +} // namespace mozilla diff --git a/dom/fetch/FetchConsumer.h b/dom/fetch/FetchConsumer.h new file mode 100644 index 000000000000..12da30032583 --- /dev/null +++ b/dom/fetch/FetchConsumer.h @@ -0,0 +1,66 @@ +/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + +#ifndef mozilla_dom_FetchConsumer_h +#define mozilla_dom_FetchConsumer_h + +class nsIThread; + +namespace mozilla { +namespace dom { + +namespace workers { +class WorkerPrivate; +class WorkerHolder; +} + +template class FetchBody; + +// FetchBody is not thread-safe but we need to move it around threads. +// In order to keep it alive all the time, we use a WorkerHolder, if created on +// workers, plus a wrapper. +template +class FetchBodyWrapper final +{ +public: + NS_INLINE_DECL_THREADSAFE_REFCOUNTING(FetchBodyWrapper) + + static already_AddRefed> + Create(FetchBody* aBody); + + void + ReleaseObject(); + + FetchBody* + Body() const + { + return mBody; + } + +private: + explicit FetchBodyWrapper(FetchBody* aBody); + + ~FetchBodyWrapper(); + + void + AssertIsOnTargetThread() const; + + bool + RegisterWorkerHolder(workers::WorkerPrivate* aWorkerPrivate); + + nsCOMPtr mTargetThread; + RefPtr> mBody; + + // Set when consuming the body is attempted on a worker. + // Unset when consumption is done/aborted. + // This WorkerHolder keeps alive the wrapper via a cycle. + UniquePtr mWorkerHolder; +}; + +} // namespace dom +} // namespace mozilla + +#endif // mozilla_dom_FetchConsumer_h diff --git a/dom/fetch/moz.build b/dom/fetch/moz.build index 93910cf1c258..ddfef47b69b2 100644 --- a/dom/fetch/moz.build +++ b/dom/fetch/moz.build @@ -29,6 +29,7 @@ UNIFIED_SOURCES += [ 'BodyExtractor.cpp', 'ChannelInfo.cpp', 'Fetch.cpp', + 'FetchConsumer.cpp', 'FetchController.cpp', 'FetchDriver.cpp', 'FetchObserver.cpp', From 4fedaaeceade61d8a0c113b6f19e16b83031fa3b Mon Sep 17 00:00:00 2001 From: Andrea Marchesini Date: Tue, 20 Jun 2017 17:53:21 +0200 Subject: [PATCH 080/106] Bug 1373555 - Move the Fetch consume body login in a separate class - part 2 - Rename FetchBodyWrapper to FetchBodyConsumer, r=bkelly --- dom/fetch/Fetch.cpp | 118 ++++++++++++++++++------------------ dom/fetch/Fetch.h | 8 +-- dom/fetch/FetchConsumer.cpp | 36 +++++------ dom/fetch/FetchConsumer.h | 14 ++--- 4 files changed, 88 insertions(+), 88 deletions(-) diff --git a/dom/fetch/Fetch.cpp b/dom/fetch/Fetch.cpp index d364894d80f8..ec59502c6ad9 100644 --- a/dom/fetch/Fetch.cpp +++ b/dom/fetch/Fetch.cpp @@ -842,17 +842,17 @@ namespace { template class ContinueConsumeBodyRunnable final : public MainThreadWorkerRunnable { - RefPtr> mFetchBodyWrapper; + RefPtr> mFetchBodyConsumer; nsresult mStatus; uint32_t mLength; uint8_t* mResult; public: - ContinueConsumeBodyRunnable(FetchBodyWrapper* aFetchBodyWrapper, + ContinueConsumeBodyRunnable(FetchBodyConsumer* aFetchBodyConsumer, nsresult aStatus, uint32_t aLength, uint8_t* aResult) - : MainThreadWorkerRunnable(aFetchBodyWrapper->Body()->mWorkerPrivate) - , mFetchBodyWrapper(aFetchBodyWrapper) + : MainThreadWorkerRunnable(aFetchBodyConsumer->Body()->mWorkerPrivate) + , mFetchBodyConsumer(aFetchBodyConsumer) , mStatus(aStatus) , mLength(aLength) , mResult(aResult) @@ -863,8 +863,8 @@ public: bool WorkerRun(JSContext* aCx, WorkerPrivate* aWorkerPrivate) override { - mFetchBodyWrapper->Body()->ContinueConsumeBody(mFetchBodyWrapper, mStatus, - mLength, mResult); + mFetchBodyConsumer->Body()->ContinueConsumeBody(mFetchBodyConsumer, mStatus, + mLength, mResult); return true; } }; @@ -875,14 +875,14 @@ public: template class ContinueConsumeBlobBodyRunnable final : public MainThreadWorkerRunnable { - RefPtr> mFetchBodyWrapper; + RefPtr> mFetchBodyConsumer; RefPtr mBlobImpl; public: - ContinueConsumeBlobBodyRunnable(FetchBodyWrapper* aFetchBodyWrapper, + ContinueConsumeBlobBodyRunnable(FetchBodyConsumer* aFetchBodyConsumer, BlobImpl* aBlobImpl) - : MainThreadWorkerRunnable(aFetchBodyWrapper->Body()->mWorkerPrivate) - , mFetchBodyWrapper(aFetchBodyWrapper) + : MainThreadWorkerRunnable(aFetchBodyConsumer->Body()->mWorkerPrivate) + , mFetchBodyConsumer(aFetchBodyConsumer) , mBlobImpl(aBlobImpl) { MOZ_ASSERT(NS_IsMainThread()); @@ -892,8 +892,8 @@ public: bool WorkerRun(JSContext* aCx, WorkerPrivate* aWorkerPrivate) override { - mFetchBodyWrapper->Body()->ContinueConsumeBlobBody(mFetchBodyWrapper, - mBlobImpl); + mFetchBodyConsumer->Body()->ContinueConsumeBlobBody(mFetchBodyConsumer, + mBlobImpl); return true; } }; @@ -901,12 +901,12 @@ public: template class FailConsumeBodyWorkerRunnable : public MainThreadWorkerControlRunnable { - RefPtr> mBodyWrapper; + RefPtr> mBodyConsumer; public: - explicit FailConsumeBodyWorkerRunnable(FetchBodyWrapper* aBodyWrapper) - : MainThreadWorkerControlRunnable(aBodyWrapper->Body()->mWorkerPrivate) - , mBodyWrapper(aBodyWrapper) + explicit FailConsumeBodyWorkerRunnable(FetchBodyConsumer* aBodyConsumer) + : MainThreadWorkerControlRunnable(aBodyConsumer->Body()->mWorkerPrivate) + , mBodyConsumer(aBodyConsumer) { AssertIsOnMainThread(); } @@ -914,8 +914,8 @@ public: bool WorkerRun(JSContext* aCx, WorkerPrivate* aWorkerPrivate) override { - mBodyWrapper->Body()->ContinueConsumeBody(mBodyWrapper, NS_ERROR_FAILURE, - 0, nullptr); + mBodyConsumer->Body()->ContinueConsumeBody(mBodyConsumer, NS_ERROR_FAILURE, + 0, nullptr); return true; } }; @@ -927,28 +927,28 @@ public: template class MOZ_STACK_CLASS AutoFailConsumeBody final { - RefPtr> mBodyWrapper; + RefPtr> mBodyConsumer; public: - explicit AutoFailConsumeBody(FetchBodyWrapper* aBodyWrapper) - : mBodyWrapper(aBodyWrapper) + explicit AutoFailConsumeBody(FetchBodyConsumer* aBodyConsumer) + : mBodyConsumer(aBodyConsumer) {} ~AutoFailConsumeBody() { AssertIsOnMainThread(); - if (mBodyWrapper) { - if (mBodyWrapper->Body()->mWorkerPrivate) { + if (mBodyConsumer) { + if (mBodyConsumer->Body()->mWorkerPrivate) { RefPtr> r = - new FailConsumeBodyWorkerRunnable(mBodyWrapper); + new FailConsumeBodyWorkerRunnable(mBodyConsumer); if (!r->Dispatch()) { MOZ_CRASH("We are going to leak"); } } else { - mBodyWrapper->Body()->ContinueConsumeBody(mBodyWrapper, - NS_ERROR_FAILURE, 0, - nullptr); + mBodyConsumer->Body()->ContinueConsumeBody(mBodyConsumer, + NS_ERROR_FAILURE, 0, + nullptr); } } } @@ -956,7 +956,7 @@ public: void DontFail() { - mBodyWrapper = nullptr; + mBodyConsumer = nullptr; } }; @@ -964,13 +964,13 @@ template class ConsumeBodyDoneObserver : public nsIStreamLoaderObserver , public MutableBlobStorageCallback { - RefPtr> mFetchBodyWrapper; + RefPtr> mFetchBodyConsumer; public: NS_DECL_THREADSAFE_ISUPPORTS - explicit ConsumeBodyDoneObserver(FetchBodyWrapper* aFetchBodyWrapper) - : mFetchBodyWrapper(aFetchBodyWrapper) + explicit ConsumeBodyDoneObserver(FetchBodyConsumer* aFetchBodyConsumer) + : mFetchBodyConsumer(aFetchBodyConsumer) { } NS_IMETHOD @@ -989,9 +989,9 @@ public: } uint8_t* nonconstResult = const_cast(aResult); - if (mFetchBodyWrapper->Body()->mWorkerPrivate) { + if (mFetchBodyConsumer->Body()->mWorkerPrivate) { RefPtr> r = - new ContinueConsumeBodyRunnable(mFetchBodyWrapper, + new ContinueConsumeBodyRunnable(mFetchBodyConsumer, aStatus, aResultLength, nonconstResult); @@ -1003,9 +1003,9 @@ public: return NS_ERROR_FAILURE; } } else { - mFetchBodyWrapper->Body()->ContinueConsumeBody(mFetchBodyWrapper, - aStatus, aResultLength, - nonconstResult); + mFetchBodyConsumer->Body()->ContinueConsumeBody(mFetchBodyConsumer, + aStatus, aResultLength, + nonconstResult); } // FetchBody is responsible for data. @@ -1024,9 +1024,9 @@ public: MOZ_ASSERT(aBlob); - if (mFetchBodyWrapper->Body()->mWorkerPrivate) { + if (mFetchBodyConsumer->Body()->mWorkerPrivate) { RefPtr> r = - new ContinueConsumeBlobBodyRunnable(mFetchBodyWrapper, + new ContinueConsumeBlobBodyRunnable(mFetchBodyConsumer, aBlob->Impl()); if (!r->Dispatch()) { @@ -1034,8 +1034,8 @@ public: return; } } else { - mFetchBodyWrapper->Body()->ContinueConsumeBlobBody(mFetchBodyWrapper, - aBlob->Impl()); + mFetchBodyConsumer->Body()->ContinueConsumeBlobBody(mFetchBodyConsumer, + aBlob->Impl()); } } @@ -1057,17 +1057,17 @@ NS_INTERFACE_MAP_END template class BeginConsumeBodyRunnable final : public Runnable { - RefPtr> mFetchBodyWrapper; + RefPtr> mFetchBodyConsumer; public: - explicit BeginConsumeBodyRunnable(FetchBodyWrapper* aWrapper) - : mFetchBodyWrapper(aWrapper) + explicit BeginConsumeBodyRunnable(FetchBodyConsumer* aConsumer) + : mFetchBodyConsumer(aConsumer) { } NS_IMETHOD Run() override { - mFetchBodyWrapper->Body()->BeginConsumeBodyMainThread(mFetchBodyWrapper); + mFetchBodyConsumer->Body()->BeginConsumeBodyMainThread(mFetchBodyConsumer); return NS_OK; } }; @@ -1150,13 +1150,13 @@ FetchBody::BeginConsumeBody() // The FetchBody is not thread-safe refcounted. We wrap it with a thread-safe // object able to keep the current worker alive (if we are running in a // worker). - RefPtr> wrapper = - FetchBodyWrapper::Create(this); - if (!wrapper) { + RefPtr> consumer = + FetchBodyConsumer::Create(this); + if (!consumer) { return NS_ERROR_FAILURE; } - nsCOMPtr r = new BeginConsumeBodyRunnable(wrapper); + nsCOMPtr r = new BeginConsumeBodyRunnable(consumer); nsresult rv = mMainThreadEventTarget->Dispatch(r.forget(), NS_DISPATCH_NORMAL); if (NS_WARN_IF(NS_FAILED(rv))) { return rv; @@ -1171,11 +1171,11 @@ FetchBody::BeginConsumeBody() */ template void -FetchBody::BeginConsumeBodyMainThread(FetchBodyWrapper* aWrapper) +FetchBody::BeginConsumeBodyMainThread(FetchBodyConsumer* aConsumer) { AssertIsOnMainThread(); - AutoFailConsumeBody autoReject(aWrapper); + AutoFailConsumeBody autoReject(aConsumer); nsresult rv; nsCOMPtr stream; @@ -1196,7 +1196,7 @@ FetchBody::BeginConsumeBodyMainThread(FetchBodyWrapper* aWrapp } RefPtr> p = - new ConsumeBodyDoneObserver(aWrapper); + new ConsumeBodyDoneObserver(aConsumer); nsCOMPtr listener; if (mConsumeType == CONSUME_BLOB) { @@ -1252,7 +1252,7 @@ FetchBody::BeginConsumeBodyMainThread(FetchBodyWrapper* aWrapp template void -FetchBody::ContinueConsumeBody(FetchBodyWrapper* aBodyWrapper, +FetchBody::ContinueConsumeBody(FetchBodyConsumer* aBodyConsumer, nsresult aStatus, uint32_t aResultLength, uint8_t* aResult) { @@ -1273,7 +1273,7 @@ FetchBody::ContinueConsumeBody(FetchBodyWrapper* aBodyWrapper, RefPtr localPromise = mConsumePromise.forget(); auto autoReleaseObject = mozilla::MakeScopeExit([&] { - aBodyWrapper->ReleaseObject(); + aBodyConsumer->ReleaseObject(); }); if (NS_WARN_IF(NS_FAILED(aStatus))) { @@ -1295,7 +1295,7 @@ FetchBody::ContinueConsumeBody(FetchBodyWrapper* aBodyWrapper, // a valid FetchBody around to call CancelPump and we don't release the // FetchBody on the main thread. RefPtr> r = - new CancelPumpRunnable(aBodyWrapper->Body()); + new CancelPumpRunnable(aBodyConsumer->Body()); ErrorResult rv; r->Dispatch(Terminating, rv); if (rv.Failed()) { @@ -1322,7 +1322,7 @@ FetchBody::ContinueConsumeBody(FetchBodyWrapper* aBodyWrapper, MOZ_ASSERT(aResult); AutoJSAPI jsapi; - if (!jsapi.Init(aBodyWrapper->Body()->DerivedClass()->GetParentObject())) { + if (!jsapi.Init(aBodyConsumer->Body()->DerivedClass()->GetParentObject())) { localPromise->MaybeReject(NS_ERROR_UNEXPECTED); return; } @@ -1356,7 +1356,7 @@ FetchBody::ContinueConsumeBody(FetchBodyWrapper* aBodyWrapper, autoFree.release(); RefPtr fd = BodyUtil::ConsumeFormData( - aBodyWrapper->Body()->DerivedClass()->GetParentObject(), + aBodyConsumer->Body()->DerivedClass()->GetParentObject(), mMimeType, data, error); if (!error.Failed()) { localPromise->MaybeResolve(fd); @@ -1392,7 +1392,7 @@ FetchBody::ContinueConsumeBody(FetchBodyWrapper* aBodyWrapper, template void -FetchBody::ContinueConsumeBlobBody(FetchBodyWrapper* aBodyWrapper, +FetchBody::ContinueConsumeBlobBody(FetchBodyConsumer* aBodyConsumer, BlobImpl* aBlobImpl) { AssertIsOnTargetThread(); @@ -1409,7 +1409,7 @@ FetchBody::ContinueConsumeBlobBody(FetchBodyWrapper* aBodyWrap RefPtr localPromise = mConsumePromise.forget(); auto autoReleaseObject = mozilla::MakeScopeExit([&] { - aBodyWrapper->ReleaseObject(); + aBodyConsumer->ReleaseObject(); }); // Release the pump and then early exit if there was an error. @@ -1417,7 +1417,7 @@ FetchBody::ContinueConsumeBlobBody(FetchBodyWrapper* aBodyWrap mConsumeBodyPump = nullptr; RefPtr blob = - dom::Blob::Create(aBodyWrapper->Body()->DerivedClass()->GetParentObject(), + dom::Blob::Create(aBodyConsumer->Body()->DerivedClass()->GetParentObject(), aBlobImpl); MOZ_ASSERT(blob); diff --git a/dom/fetch/Fetch.h b/dom/fetch/Fetch.h index 39543d4d2ec8..234abcd8bc7d 100644 --- a/dom/fetch/Fetch.h +++ b/dom/fetch/Fetch.h @@ -71,7 +71,7 @@ ExtractByteStreamFromBody(const fetch::BodyInit& aBodyInit, nsCString& aContentType, uint64_t& aContentLength); -template class FetchBodyWrapper; +template class FetchBodyConsumer; /* * FetchBody's body consumption uses nsIInputStreamPump to read from the @@ -147,14 +147,14 @@ public: // Utility public methods accessed by various runnables. void - BeginConsumeBodyMainThread(FetchBodyWrapper* aWrapper); + BeginConsumeBodyMainThread(FetchBodyConsumer* aConsumer); void - ContinueConsumeBody(FetchBodyWrapper* aWrapper, nsresult aStatus, + ContinueConsumeBody(FetchBodyConsumer* aConsumer, nsresult aStatus, uint32_t aLength, uint8_t* aResult); void - ContinueConsumeBlobBody(FetchBodyWrapper* aWrapper, + ContinueConsumeBlobBody(FetchBodyConsumer* aConsumer, BlobImpl* aBlobImpl); void diff --git a/dom/fetch/FetchConsumer.cpp b/dom/fetch/FetchConsumer.cpp index 33b960619c91..2baf8f781d9d 100644 --- a/dom/fetch/FetchConsumer.cpp +++ b/dom/fetch/FetchConsumer.cpp @@ -23,15 +23,15 @@ namespace { template class FetchBodyWorkerHolder final : public workers::WorkerHolder { - RefPtr> mWrapper; + RefPtr> mConsumer; bool mWasNotified; public: - explicit FetchBodyWorkerHolder(FetchBodyWrapper* aWrapper) - : mWrapper(aWrapper) + explicit FetchBodyWorkerHolder(FetchBodyConsumer* aConsumer) + : mConsumer(aConsumer) , mWasNotified(false) { - MOZ_ASSERT(aWrapper); + MOZ_ASSERT(aConsumer); } ~FetchBodyWorkerHolder() = default; @@ -41,10 +41,10 @@ public: MOZ_ASSERT(aStatus > workers::Running); if (!mWasNotified) { mWasNotified = true; - // This will probably cause the releasing of the wrapper. + // This will probably cause the releasing of the consumer. // The WorkerHolder will be released as well. - mWrapper->Body()->ContinueConsumeBody(mWrapper, NS_BINDING_ABORTED, 0, - nullptr); + mConsumer->Body()->ContinueConsumeBody(mConsumer, NS_BINDING_ABORTED, 0, + nullptr); } return true; @@ -54,29 +54,29 @@ public: } // anonymous template -/* static */ already_AddRefed> -FetchBodyWrapper::Create(FetchBody* aBody) +/* static */ already_AddRefed> +FetchBodyConsumer::Create(FetchBody* aBody) { MOZ_ASSERT(aBody); - RefPtr> wrapper = - new FetchBodyWrapper(aBody); + RefPtr> consumer = + new FetchBodyConsumer(aBody); if (!NS_IsMainThread()) { WorkerPrivate* workerPrivate = GetCurrentThreadWorkerPrivate(); MOZ_ASSERT(workerPrivate); - if (!wrapper->RegisterWorkerHolder(workerPrivate)) { + if (!consumer->RegisterWorkerHolder(workerPrivate)) { return nullptr; } } - return wrapper.forget(); + return consumer.forget(); } template void -FetchBodyWrapper::ReleaseObject() +FetchBodyConsumer::ReleaseObject() { AssertIsOnTargetThread(); @@ -85,27 +85,27 @@ FetchBodyWrapper::ReleaseObject() } template -FetchBodyWrapper::FetchBodyWrapper(FetchBody* aBody) +FetchBodyConsumer::FetchBodyConsumer(FetchBody* aBody) : mTargetThread(NS_GetCurrentThread()) , mBody(aBody) {} template -FetchBodyWrapper::~FetchBodyWrapper() +FetchBodyConsumer::~FetchBodyConsumer() { NS_ProxyRelease(mTargetThread, mBody.forget()); } template void -FetchBodyWrapper::AssertIsOnTargetThread() const +FetchBodyConsumer::AssertIsOnTargetThread() const { MOZ_ASSERT(NS_GetCurrentThread() == mTargetThread); } template bool -FetchBodyWrapper::RegisterWorkerHolder(WorkerPrivate* aWorkerPrivate) +FetchBodyConsumer::RegisterWorkerHolder(WorkerPrivate* aWorkerPrivate) { MOZ_ASSERT(aWorkerPrivate); aWorkerPrivate->AssertIsOnWorkerThread(); diff --git a/dom/fetch/FetchConsumer.h b/dom/fetch/FetchConsumer.h index 12da30032583..1b785e170f88 100644 --- a/dom/fetch/FetchConsumer.h +++ b/dom/fetch/FetchConsumer.h @@ -21,14 +21,14 @@ template class FetchBody; // FetchBody is not thread-safe but we need to move it around threads. // In order to keep it alive all the time, we use a WorkerHolder, if created on -// workers, plus a wrapper. +// workers, plus a this consumer. template -class FetchBodyWrapper final +class FetchBodyConsumer final { public: - NS_INLINE_DECL_THREADSAFE_REFCOUNTING(FetchBodyWrapper) + NS_INLINE_DECL_THREADSAFE_REFCOUNTING(FetchBodyConsumer) - static already_AddRefed> + static already_AddRefed> Create(FetchBody* aBody); void @@ -41,9 +41,9 @@ public: } private: - explicit FetchBodyWrapper(FetchBody* aBody); + explicit FetchBodyConsumer(FetchBody* aBody); - ~FetchBodyWrapper(); + ~FetchBodyConsumer(); void AssertIsOnTargetThread() const; @@ -56,7 +56,7 @@ private: // Set when consuming the body is attempted on a worker. // Unset when consumption is done/aborted. - // This WorkerHolder keeps alive the wrapper via a cycle. + // This WorkerHolder keeps alive the consumer via a cycle. UniquePtr mWorkerHolder; }; From 4763377ab415f0450a1411cfa16328f1aa3d7de9 Mon Sep 17 00:00:00 2001 From: Andrea Marchesini Date: Tue, 20 Jun 2017 17:53:21 +0200 Subject: [PATCH 081/106] Bug 1373555 - Move the Fetch consume body login in a separate class - part 3 - Move the consuming body logic from FetchBody to FetchBodyConsumer, r=bkelly --- dom/fetch/Fetch.cpp | 580 +---------------------- dom/fetch/Fetch.h | 59 +-- dom/fetch/FetchConsumer.cpp | 577 +++++++++++++++++++++- dom/fetch/FetchConsumer.h | 50 +- dom/workers/ServiceWorkerScriptCache.cpp | 1 + dom/worklet/Worklet.cpp | 1 + 6 files changed, 643 insertions(+), 625 deletions(-) diff --git a/dom/fetch/Fetch.cpp b/dom/fetch/Fetch.cpp index ec59502c6ad9..24fd3f92247a 100644 --- a/dom/fetch/Fetch.cpp +++ b/dom/fetch/Fetch.cpp @@ -835,274 +835,11 @@ ExtractByteStreamFromBody(const fetch::BodyInit& aBodyInit, return NS_ERROR_FAILURE; } -namespace { -/* - * Called on successfully reading the complete stream. - */ -template -class ContinueConsumeBodyRunnable final : public MainThreadWorkerRunnable -{ - RefPtr> mFetchBodyConsumer; - nsresult mStatus; - uint32_t mLength; - uint8_t* mResult; - -public: - ContinueConsumeBodyRunnable(FetchBodyConsumer* aFetchBodyConsumer, - nsresult aStatus, uint32_t aLength, - uint8_t* aResult) - : MainThreadWorkerRunnable(aFetchBodyConsumer->Body()->mWorkerPrivate) - , mFetchBodyConsumer(aFetchBodyConsumer) - , mStatus(aStatus) - , mLength(aLength) - , mResult(aResult) - { - MOZ_ASSERT(NS_IsMainThread()); - } - - bool - WorkerRun(JSContext* aCx, WorkerPrivate* aWorkerPrivate) override - { - mFetchBodyConsumer->Body()->ContinueConsumeBody(mFetchBodyConsumer, mStatus, - mLength, mResult); - return true; - } -}; - -/* - * Called on successfully reading the complete stream for Blob. - */ -template -class ContinueConsumeBlobBodyRunnable final : public MainThreadWorkerRunnable -{ - RefPtr> mFetchBodyConsumer; - RefPtr mBlobImpl; - -public: - ContinueConsumeBlobBodyRunnable(FetchBodyConsumer* aFetchBodyConsumer, - BlobImpl* aBlobImpl) - : MainThreadWorkerRunnable(aFetchBodyConsumer->Body()->mWorkerPrivate) - , mFetchBodyConsumer(aFetchBodyConsumer) - , mBlobImpl(aBlobImpl) - { - MOZ_ASSERT(NS_IsMainThread()); - MOZ_ASSERT(mBlobImpl); - } - - bool - WorkerRun(JSContext* aCx, WorkerPrivate* aWorkerPrivate) override - { - mFetchBodyConsumer->Body()->ContinueConsumeBlobBody(mFetchBodyConsumer, - mBlobImpl); - return true; - } -}; - -template -class FailConsumeBodyWorkerRunnable : public MainThreadWorkerControlRunnable -{ - RefPtr> mBodyConsumer; - -public: - explicit FailConsumeBodyWorkerRunnable(FetchBodyConsumer* aBodyConsumer) - : MainThreadWorkerControlRunnable(aBodyConsumer->Body()->mWorkerPrivate) - , mBodyConsumer(aBodyConsumer) - { - AssertIsOnMainThread(); - } - - bool - WorkerRun(JSContext* aCx, WorkerPrivate* aWorkerPrivate) override - { - mBodyConsumer->Body()->ContinueConsumeBody(mBodyConsumer, NS_ERROR_FAILURE, - 0, nullptr); - return true; - } -}; - -/* - * In case of failure to create a stream pump or dispatch stream completion to - * worker, ensure we cleanup properly. Thread agnostic. - */ -template -class MOZ_STACK_CLASS AutoFailConsumeBody final -{ - RefPtr> mBodyConsumer; - -public: - explicit AutoFailConsumeBody(FetchBodyConsumer* aBodyConsumer) - : mBodyConsumer(aBodyConsumer) - {} - - ~AutoFailConsumeBody() - { - AssertIsOnMainThread(); - - if (mBodyConsumer) { - if (mBodyConsumer->Body()->mWorkerPrivate) { - RefPtr> r = - new FailConsumeBodyWorkerRunnable(mBodyConsumer); - if (!r->Dispatch()) { - MOZ_CRASH("We are going to leak"); - } - } else { - mBodyConsumer->Body()->ContinueConsumeBody(mBodyConsumer, - NS_ERROR_FAILURE, 0, - nullptr); - } - } - } - - void - DontFail() - { - mBodyConsumer = nullptr; - } -}; - -template -class ConsumeBodyDoneObserver : public nsIStreamLoaderObserver - , public MutableBlobStorageCallback -{ - RefPtr> mFetchBodyConsumer; - -public: - NS_DECL_THREADSAFE_ISUPPORTS - - explicit ConsumeBodyDoneObserver(FetchBodyConsumer* aFetchBodyConsumer) - : mFetchBodyConsumer(aFetchBodyConsumer) - { } - - NS_IMETHOD - OnStreamComplete(nsIStreamLoader* aLoader, - nsISupports* aCtxt, - nsresult aStatus, - uint32_t aResultLength, - const uint8_t* aResult) override - { - MOZ_ASSERT(NS_IsMainThread()); - - // If the binding requested cancel, we don't need to call - // ContinueConsumeBody, since that is the originator. - if (aStatus == NS_BINDING_ABORTED) { - return NS_OK; - } - - uint8_t* nonconstResult = const_cast(aResult); - if (mFetchBodyConsumer->Body()->mWorkerPrivate) { - RefPtr> r = - new ContinueConsumeBodyRunnable(mFetchBodyConsumer, - aStatus, - aResultLength, - nonconstResult); - if (!r->Dispatch()) { - // XXXcatalinb: The worker is shutting down, the pump will be canceled - // by FetchBodyWorkerHolder::Notify. - NS_WARNING("Could not dispatch ConsumeBodyRunnable"); - // Return failure so that aResult is freed. - return NS_ERROR_FAILURE; - } - } else { - mFetchBodyConsumer->Body()->ContinueConsumeBody(mFetchBodyConsumer, - aStatus, aResultLength, - nonconstResult); - } - - // FetchBody is responsible for data. - return NS_SUCCESS_ADOPTED_DATA; - } - - virtual void BlobStoreCompleted(MutableBlobStorage* aBlobStorage, - Blob* aBlob, - nsresult aRv) override - { - // On error. - if (NS_FAILED(aRv)) { - OnStreamComplete(nullptr, nullptr, aRv, 0, nullptr); - return; - } - - MOZ_ASSERT(aBlob); - - if (mFetchBodyConsumer->Body()->mWorkerPrivate) { - RefPtr> r = - new ContinueConsumeBlobBodyRunnable(mFetchBodyConsumer, - aBlob->Impl()); - - if (!r->Dispatch()) { - NS_WARNING("Could not dispatch ConsumeBlobBodyRunnable"); - return; - } - } else { - mFetchBodyConsumer->Body()->ContinueConsumeBlobBody(mFetchBodyConsumer, - aBlob->Impl()); - } - } - -private: - virtual ~ConsumeBodyDoneObserver() - { } -}; - -template -NS_IMPL_ADDREF(ConsumeBodyDoneObserver) -template -NS_IMPL_RELEASE(ConsumeBodyDoneObserver) -template -NS_INTERFACE_MAP_BEGIN(ConsumeBodyDoneObserver) - NS_INTERFACE_MAP_ENTRY(nsIStreamLoaderObserver) - NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, nsIStreamLoaderObserver) -NS_INTERFACE_MAP_END - -template -class BeginConsumeBodyRunnable final : public Runnable -{ - RefPtr> mFetchBodyConsumer; - -public: - explicit BeginConsumeBodyRunnable(FetchBodyConsumer* aConsumer) - : mFetchBodyConsumer(aConsumer) - { } - - NS_IMETHOD - Run() override - { - mFetchBodyConsumer->Body()->BeginConsumeBodyMainThread(mFetchBodyConsumer); - return NS_OK; - } -}; - -template -class CancelPumpRunnable final : public WorkerMainThreadRunnable -{ - // This is a sync runnable. What dispatches this runnable must keep the body - // alive. - FetchBody* mBody; - -public: - explicit CancelPumpRunnable(FetchBody* aBody) - : WorkerMainThreadRunnable(aBody->mWorkerPrivate, - NS_LITERAL_CSTRING("Fetch :: Cancel Pump")) - , mBody(aBody) - {} - - bool - MainThreadRun() override - { - mBody->CancelPump(); - return true; - } -}; - -} // namespace - template FetchBody::FetchBody(nsIGlobalObject* aOwner) : mOwner(aOwner) + , mWorkerPrivate(nullptr) , mBodyUsed(false) -#ifdef DEBUG - , mReadDone(false) -#endif { MOZ_ASSERT(aOwner); @@ -1111,7 +848,6 @@ FetchBody::FetchBody(nsIGlobalObject* aOwner) MOZ_ASSERT(mWorkerPrivate); mMainThreadEventTarget = mWorkerPrivate->MainThreadEventTarget(); } else { - mWorkerPrivate = nullptr; mMainThreadEventTarget = aOwner->EventTargetFor(TaskCategory::Other); } @@ -1129,335 +865,35 @@ FetchBody::~FetchBody() { } -template -void -FetchBody::CancelPump() -{ - AssertIsOnMainThread(); - MOZ_ASSERT(mConsumeBodyPump); - mConsumeBodyPump->Cancel(NS_BINDING_ABORTED); -} - -// Return value is used by ConsumeBody to bubble the error code up to WebIDL so -// mConsumePromise doesn't have to be rejected on early exit. -template -nsresult -FetchBody::BeginConsumeBody() -{ - AssertIsOnTargetThread(); - MOZ_ASSERT(mConsumePromise); - - // The FetchBody is not thread-safe refcounted. We wrap it with a thread-safe - // object able to keep the current worker alive (if we are running in a - // worker). - RefPtr> consumer = - FetchBodyConsumer::Create(this); - if (!consumer) { - return NS_ERROR_FAILURE; - } - - nsCOMPtr r = new BeginConsumeBodyRunnable(consumer); - nsresult rv = mMainThreadEventTarget->Dispatch(r.forget(), NS_DISPATCH_NORMAL); - if (NS_WARN_IF(NS_FAILED(rv))) { - return rv; - } - return NS_OK; -} - -/* - * BeginConsumeBodyMainThread() will automatically reject the consume promise - * and clean up on any failures, so there is no need for callers to do so, - * reflected in a lack of error return code. - */ -template -void -FetchBody::BeginConsumeBodyMainThread(FetchBodyConsumer* aConsumer) -{ - AssertIsOnMainThread(); - - AutoFailConsumeBody autoReject(aConsumer); - - nsresult rv; - nsCOMPtr stream; - DerivedClass()->GetBody(getter_AddRefs(stream)); - if (!stream) { - rv = NS_NewCStringInputStream(getter_AddRefs(stream), EmptyCString()); - if (NS_WARN_IF(NS_FAILED(rv))) { - return; - } - } - - nsCOMPtr pump; - rv = NS_NewInputStreamPump(getter_AddRefs(pump), - stream, -1, -1, 0, 0, false, - mMainThreadEventTarget); - if (NS_WARN_IF(NS_FAILED(rv))) { - return; - } - - RefPtr> p = - new ConsumeBodyDoneObserver(aConsumer); - - nsCOMPtr listener; - if (mConsumeType == CONSUME_BLOB) { - MutableBlobStorage::MutableBlobStorageType type = - MutableBlobStorage::eOnlyInMemory; - - const mozilla::UniquePtr& principalInfo = - DerivedClass()->GetPrincipalInfo(); - // We support temporary file for blobs only if the principal is known and - // it's system or content not in private Browsing. - if (principalInfo && - (principalInfo->type() == mozilla::ipc::PrincipalInfo::TSystemPrincipalInfo || - (principalInfo->type() == mozilla::ipc::PrincipalInfo::TContentPrincipalInfo && - principalInfo->get_ContentPrincipalInfo().attrs().mPrivateBrowsingId == 0))) { - type = MutableBlobStorage::eCouldBeInTemporaryFile; - } - - listener = new MutableBlobStreamListener(type, nullptr, mMimeType, p, - mMainThreadEventTarget); - } else { - nsCOMPtr loader; - rv = NS_NewStreamLoader(getter_AddRefs(loader), p); - if (NS_WARN_IF(NS_FAILED(rv))) { - return; - } - - listener = loader; - } - - rv = pump->AsyncRead(listener, nullptr); - if (NS_WARN_IF(NS_FAILED(rv))) { - return; - } - - // Now that everything succeeded, we can assign the pump to a pointer that - // stays alive for the lifetime of the FetchBody. - mConsumeBodyPump = - new nsMainThreadPtrHolder( - "FetchBody::mConsumeBodyPump", pump, mMainThreadEventTarget); - // It is ok for retargeting to fail and reads to happen on the main thread. - autoReject.DontFail(); - - // Try to retarget, otherwise fall back to main thread. - nsCOMPtr rr = do_QueryInterface(pump); - if (rr) { - nsCOMPtr sts = do_GetService(NS_STREAMTRANSPORTSERVICE_CONTRACTID); - rv = rr->RetargetDeliveryTo(sts); - if (NS_WARN_IF(NS_FAILED(rv))) { - NS_WARNING("Retargeting failed"); - } - } -} - -template -void -FetchBody::ContinueConsumeBody(FetchBodyConsumer* aBodyConsumer, - nsresult aStatus, uint32_t aResultLength, - uint8_t* aResult) -{ - AssertIsOnTargetThread(); - // Just a precaution to ensure ContinueConsumeBody is not called out of - // sync with a body read. - MOZ_ASSERT(mBodyUsed); - MOZ_ASSERT(!mReadDone); -#ifdef DEBUG - mReadDone = true; -#endif - - auto autoFree = mozilla::MakeScopeExit([&] { - free(aResult); - }); - - MOZ_ASSERT(mConsumePromise); - RefPtr localPromise = mConsumePromise.forget(); - - auto autoReleaseObject = mozilla::MakeScopeExit([&] { - aBodyConsumer->ReleaseObject(); - }); - - if (NS_WARN_IF(NS_FAILED(aStatus))) { - localPromise->MaybeReject(NS_ERROR_DOM_ABORT_ERR); - - // If binding aborted, cancel the pump. We can't assert mConsumeBodyPump. - // In the (admittedly rare) situation that BeginConsumeBodyMainThread() - // context switches out, and the worker thread gets canceled before the - // pump is setup, mConsumeBodyPump will be null. - // We've to use the !! form since non-main thread pointer access on - // a nsMainThreadPtrHandle is not permitted. - if (aStatus == NS_BINDING_ABORTED && !!mConsumeBodyPump) { - if (NS_IsMainThread()) { - CancelPump(); - } else { - MOZ_ASSERT(mWorkerPrivate); - // In case of worker thread, we block the worker while the request is - // canceled on the main thread. This ensures that OnStreamComplete has - // a valid FetchBody around to call CancelPump and we don't release the - // FetchBody on the main thread. - RefPtr> r = - new CancelPumpRunnable(aBodyConsumer->Body()); - ErrorResult rv; - r->Dispatch(Terminating, rv); - if (rv.Failed()) { - NS_WARNING("Could not dispatch CancelPumpRunnable. Nothing we can do here"); - // None of our callers are callled directly from JS, so there is no - // point in trying to propagate this failure out of here. And - // localPromise is already rejected. Just suppress the failure. - rv.SuppressException(); - } - } - } - } - - // Release the pump and then early exit if there was an error. - // Uses NS_ProxyRelease internally, so this is safe. - mConsumeBodyPump = nullptr; - - // Don't warn here since we warned above. - if (NS_FAILED(aStatus)) { - return; - } - - // Finish successfully consuming body according to type. - MOZ_ASSERT(aResult); - - AutoJSAPI jsapi; - if (!jsapi.Init(aBodyConsumer->Body()->DerivedClass()->GetParentObject())) { - localPromise->MaybeReject(NS_ERROR_UNEXPECTED); - return; - } - - JSContext* cx = jsapi.cx(); - ErrorResult error; - - switch (mConsumeType) { - case CONSUME_ARRAYBUFFER: { - JS::Rooted arrayBuffer(cx); - BodyUtil::ConsumeArrayBuffer(cx, &arrayBuffer, aResultLength, aResult, - error); - - if (!error.Failed()) { - JS::Rooted val(cx); - val.setObjectOrNull(arrayBuffer); - - localPromise->MaybeResolve(cx, val); - // ArrayBuffer takes over ownership. - autoFree.release(); - } - break; - } - case CONSUME_BLOB: { - MOZ_CRASH("This should not happen."); - break; - } - case CONSUME_FORMDATA: { - nsCString data; - data.Adopt(reinterpret_cast(aResult), aResultLength); - autoFree.release(); - - RefPtr fd = BodyUtil::ConsumeFormData( - aBodyConsumer->Body()->DerivedClass()->GetParentObject(), - mMimeType, data, error); - if (!error.Failed()) { - localPromise->MaybeResolve(fd); - } - break; - } - case CONSUME_TEXT: - // fall through handles early exit. - case CONSUME_JSON: { - nsString decoded; - if (NS_SUCCEEDED(BodyUtil::ConsumeText(aResultLength, aResult, decoded))) { - if (mConsumeType == CONSUME_TEXT) { - localPromise->MaybeResolve(decoded); - } else { - JS::Rooted json(cx); - BodyUtil::ConsumeJson(cx, &json, decoded, error); - if (!error.Failed()) { - localPromise->MaybeResolve(cx, json); - } - } - }; - break; - } - default: - NS_NOTREACHED("Unexpected consume body type"); - } - - error.WouldReportJSException(); - if (error.Failed()) { - localPromise->MaybeReject(error); - } -} - -template -void -FetchBody::ContinueConsumeBlobBody(FetchBodyConsumer* aBodyConsumer, - BlobImpl* aBlobImpl) -{ - AssertIsOnTargetThread(); - // Just a precaution to ensure ContinueConsumeBody is not called out of - // sync with a body read. - MOZ_ASSERT(mBodyUsed); - MOZ_ASSERT(!mReadDone); - MOZ_ASSERT(mConsumeType == CONSUME_BLOB); -#ifdef DEBUG - mReadDone = true; -#endif - - MOZ_ASSERT(mConsumePromise); - RefPtr localPromise = mConsumePromise.forget(); - - auto autoReleaseObject = mozilla::MakeScopeExit([&] { - aBodyConsumer->ReleaseObject(); - }); - - // Release the pump and then early exit if there was an error. - // Uses NS_ProxyRelease internally, so this is safe. - mConsumeBodyPump = nullptr; - - RefPtr blob = - dom::Blob::Create(aBodyConsumer->Body()->DerivedClass()->GetParentObject(), - aBlobImpl); - MOZ_ASSERT(blob); - - localPromise->MaybeResolve(blob); -} - template already_AddRefed -FetchBody::ConsumeBody(ConsumeType aType, ErrorResult& aRv) +FetchBody::ConsumeBody(FetchConsumeType aType, ErrorResult& aRv) { if (BodyUsed()) { aRv.ThrowTypeError(); return nullptr; } - mConsumeType = aType; SetBodyUsed(); - mConsumePromise = Promise::Create(DerivedClass()->GetParentObject(), aRv); - if (aRv.Failed()) { - return nullptr; - } - - aRv = BeginConsumeBody(); + RefPtr promise = + FetchBodyConsumer::Create(DerivedClass()->GetParentObject(), + mMainThreadEventTarget, this, aType, + aRv); if (NS_WARN_IF(aRv.Failed())) { - mConsumePromise = nullptr; return nullptr; } - RefPtr promise = mConsumePromise; return promise.forget(); } template already_AddRefed -FetchBody::ConsumeBody(ConsumeType aType, ErrorResult& aRv); +FetchBody::ConsumeBody(FetchConsumeType aType, ErrorResult& aRv); template already_AddRefed -FetchBody::ConsumeBody(ConsumeType aType, ErrorResult& aRv); +FetchBody::ConsumeBody(FetchConsumeType aType, ErrorResult& aRv); template void diff --git a/dom/fetch/Fetch.h b/dom/fetch/Fetch.h index 234abcd8bc7d..4dd6a6150788 100644 --- a/dom/fetch/Fetch.h +++ b/dom/fetch/Fetch.h @@ -8,7 +8,6 @@ #define mozilla_dom_Fetch_h #include "nsAutoPtr.h" -#include "nsIInputStreamPump.h" #include "nsIStreamLoader.h" #include "nsCOMPtr.h" @@ -73,6 +72,15 @@ ExtractByteStreamFromBody(const fetch::BodyInit& aBodyInit, template class FetchBodyConsumer; +enum FetchConsumeType +{ + CONSUME_ARRAYBUFFER, + CONSUME_BLOB, + CONSUME_FORMDATA, + CONSUME_JSON, + CONSUME_TEXT, +}; + /* * FetchBody's body consumption uses nsIInputStreamPump to read from the * underlying stream to a block of memory, which is then adopted by @@ -110,6 +118,8 @@ template class FetchBody { public: + friend class FetchBodyConsumer; + NS_INLINE_DECL_PURE_VIRTUAL_REFCOUNTING bool @@ -146,19 +156,6 @@ public: } // Utility public methods accessed by various runnables. - void - BeginConsumeBodyMainThread(FetchBodyConsumer* aConsumer); - - void - ContinueConsumeBody(FetchBodyConsumer* aConsumer, nsresult aStatus, - uint32_t aLength, uint8_t* aResult); - - void - ContinueConsumeBlobBody(FetchBodyConsumer* aConsumer, - BlobImpl* aBlobImpl); - - void - CancelPump(); void SetBodyUsed() @@ -166,39 +163,34 @@ public: mBodyUsed = true; } - // Always set whenever the FetchBody is created on the worker thread. - workers::WorkerPrivate* mWorkerPrivate; + const nsCString& + MimeType() const + { + return mMimeType; + } protected: nsCOMPtr mOwner; + // Always set whenever the FetchBody is created on the worker thread. + workers::WorkerPrivate* mWorkerPrivate; + explicit FetchBody(nsIGlobalObject* aOwner); virtual ~FetchBody(); void SetMimeType(); -private: - enum ConsumeType - { - CONSUME_ARRAYBUFFER, - CONSUME_BLOB, - CONSUME_FORMDATA, - CONSUME_JSON, - CONSUME_TEXT, - }; +private: Derived* DerivedClass() const { return static_cast(const_cast(this)); } - nsresult - BeginConsumeBody(); - already_AddRefed - ConsumeBody(ConsumeType aType, ErrorResult& aRv); + ConsumeBody(FetchConsumeType aType, ErrorResult& aRv); bool IsOnTargetThread() @@ -216,15 +208,6 @@ private: bool mBodyUsed; nsCString mMimeType; - // Only touched on target thread. - ConsumeType mConsumeType; - RefPtr mConsumePromise; -#ifdef DEBUG - bool mReadDone; -#endif - - nsMainThreadPtrHandle mConsumeBodyPump; - // The main-thread event target for runnable dispatching. nsCOMPtr mMainThreadEventTarget; }; diff --git a/dom/fetch/FetchConsumer.cpp b/dom/fetch/FetchConsumer.cpp index 2baf8f781d9d..cd80c1f0c4a8 100644 --- a/dom/fetch/FetchConsumer.cpp +++ b/dom/fetch/FetchConsumer.cpp @@ -7,6 +7,7 @@ #include "Fetch.h" #include "FetchConsumer.h" +#include "nsIInputStreamPump.h" #include "nsProxyRelease.h" #include "WorkerPrivate.h" #include "WorkerRunnable.h" @@ -43,35 +44,305 @@ public: mWasNotified = true; // This will probably cause the releasing of the consumer. // The WorkerHolder will be released as well. - mConsumer->Body()->ContinueConsumeBody(mConsumer, NS_BINDING_ABORTED, 0, - nullptr); + mConsumer->ContinueConsumeBody(NS_BINDING_ABORTED, 0, nullptr); } return true; } }; +template +class BeginConsumeBodyRunnable final : public Runnable +{ + RefPtr> mFetchBodyConsumer; + +public: + explicit BeginConsumeBodyRunnable(FetchBodyConsumer* aConsumer) + : mFetchBodyConsumer(aConsumer) + { } + + NS_IMETHOD + Run() override + { + mFetchBodyConsumer->BeginConsumeBodyMainThread(); + return NS_OK; + } +}; + +/* + * Called on successfully reading the complete stream. + */ +template +class ContinueConsumeBodyRunnable final : public MainThreadWorkerRunnable +{ + RefPtr> mFetchBodyConsumer; + nsresult mStatus; + uint32_t mLength; + uint8_t* mResult; + +public: + ContinueConsumeBodyRunnable(FetchBodyConsumer* aFetchBodyConsumer, + nsresult aStatus, uint32_t aLength, + uint8_t* aResult) + : MainThreadWorkerRunnable(aFetchBodyConsumer->GetWorkerPrivate()) + , mFetchBodyConsumer(aFetchBodyConsumer) + , mStatus(aStatus) + , mLength(aLength) + , mResult(aResult) + { + MOZ_ASSERT(NS_IsMainThread()); + } + + bool + WorkerRun(JSContext* aCx, WorkerPrivate* aWorkerPrivate) override + { + mFetchBodyConsumer->ContinueConsumeBody(mStatus, mLength, mResult); + return true; + } +}; + +template +class FailConsumeBodyWorkerRunnable : public MainThreadWorkerControlRunnable +{ + RefPtr> mBodyConsumer; + +public: + explicit FailConsumeBodyWorkerRunnable(FetchBodyConsumer* aBodyConsumer) + : MainThreadWorkerControlRunnable(aBodyConsumer->GetWorkerPrivate()) + , mBodyConsumer(aBodyConsumer) + { + AssertIsOnMainThread(); + } + + bool + WorkerRun(JSContext* aCx, WorkerPrivate* aWorkerPrivate) override + { + mBodyConsumer->ContinueConsumeBody(NS_ERROR_FAILURE, 0, nullptr); + return true; + } +}; + +/* + * In case of failure to create a stream pump or dispatch stream completion to + * worker, ensure we cleanup properly. Thread agnostic. + */ +template +class MOZ_STACK_CLASS AutoFailConsumeBody final +{ + RefPtr> mBodyConsumer; + +public: + explicit AutoFailConsumeBody(FetchBodyConsumer* aBodyConsumer) + : mBodyConsumer(aBodyConsumer) + {} + + ~AutoFailConsumeBody() + { + AssertIsOnMainThread(); + + if (mBodyConsumer) { + if (mBodyConsumer->GetWorkerPrivate()) { + RefPtr> r = + new FailConsumeBodyWorkerRunnable(mBodyConsumer); + if (!r->Dispatch()) { + MOZ_CRASH("We are going to leak"); + } + } else { + mBodyConsumer->ContinueConsumeBody(NS_ERROR_FAILURE, 0, nullptr); + } + } + } + + void + DontFail() + { + mBodyConsumer = nullptr; + } +}; + +/* + * Called on successfully reading the complete stream for Blob. + */ +template +class ContinueConsumeBlobBodyRunnable final : public MainThreadWorkerRunnable +{ + RefPtr> mFetchBodyConsumer; + RefPtr mBlobImpl; + +public: + ContinueConsumeBlobBodyRunnable(FetchBodyConsumer* aFetchBodyConsumer, + BlobImpl* aBlobImpl) + : MainThreadWorkerRunnable(aFetchBodyConsumer->GetWorkerPrivate()) + , mFetchBodyConsumer(aFetchBodyConsumer) + , mBlobImpl(aBlobImpl) + { + MOZ_ASSERT(NS_IsMainThread()); + MOZ_ASSERT(mBlobImpl); + } + + bool + WorkerRun(JSContext* aCx, WorkerPrivate* aWorkerPrivate) override + { + mFetchBodyConsumer->ContinueConsumeBlobBody(mBlobImpl); + return true; + } +}; + +template +class ConsumeBodyDoneObserver : public nsIStreamLoaderObserver + , public MutableBlobStorageCallback +{ + RefPtr> mFetchBodyConsumer; + +public: + NS_DECL_THREADSAFE_ISUPPORTS + + explicit ConsumeBodyDoneObserver(FetchBodyConsumer* aFetchBodyConsumer) + : mFetchBodyConsumer(aFetchBodyConsumer) + { } + + NS_IMETHOD + OnStreamComplete(nsIStreamLoader* aLoader, + nsISupports* aCtxt, + nsresult aStatus, + uint32_t aResultLength, + const uint8_t* aResult) override + { + MOZ_ASSERT(NS_IsMainThread()); + + // If the binding requested cancel, we don't need to call + // ContinueConsumeBody, since that is the originator. + if (aStatus == NS_BINDING_ABORTED) { + return NS_OK; + } + + uint8_t* nonconstResult = const_cast(aResult); + if (mFetchBodyConsumer->GetWorkerPrivate()) { + RefPtr> r = + new ContinueConsumeBodyRunnable(mFetchBodyConsumer, + aStatus, + aResultLength, + nonconstResult); + if (!r->Dispatch()) { + // XXXcatalinb: The worker is shutting down, the pump will be canceled + // by FetchBodyWorkerHolder::Notify. + NS_WARNING("Could not dispatch ConsumeBodyRunnable"); + // Return failure so that aResult is freed. + return NS_ERROR_FAILURE; + } + } else { + mFetchBodyConsumer->ContinueConsumeBody(aStatus, aResultLength, + nonconstResult); + } + + // FetchBody is responsible for data. + return NS_SUCCESS_ADOPTED_DATA; + } + + virtual void BlobStoreCompleted(MutableBlobStorage* aBlobStorage, + Blob* aBlob, + nsresult aRv) override + { + // On error. + if (NS_FAILED(aRv)) { + OnStreamComplete(nullptr, nullptr, aRv, 0, nullptr); + return; + } + + MOZ_ASSERT(aBlob); + + if (mFetchBodyConsumer->GetWorkerPrivate()) { + RefPtr> r = + new ContinueConsumeBlobBodyRunnable(mFetchBodyConsumer, + aBlob->Impl()); + + if (!r->Dispatch()) { + NS_WARNING("Could not dispatch ConsumeBlobBodyRunnable"); + return; + } + } else { + mFetchBodyConsumer->ContinueConsumeBlobBody(aBlob->Impl()); + } + } + +private: + virtual ~ConsumeBodyDoneObserver() + { } +}; + +template +NS_IMPL_ADDREF(ConsumeBodyDoneObserver) +template +NS_IMPL_RELEASE(ConsumeBodyDoneObserver) +template +NS_INTERFACE_MAP_BEGIN(ConsumeBodyDoneObserver) + NS_INTERFACE_MAP_ENTRY(nsIStreamLoaderObserver) + NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, nsIStreamLoaderObserver) +NS_INTERFACE_MAP_END + +template +class CancelPumpRunnable final : public WorkerMainThreadRunnable +{ + RefPtr> mBodyConsumer; + +public: + explicit CancelPumpRunnable(FetchBodyConsumer* aBodyConsumer) + : WorkerMainThreadRunnable(aBodyConsumer->GetWorkerPrivate(), + NS_LITERAL_CSTRING("Fetch :: Cancel Pump")) + , mBodyConsumer(aBodyConsumer) + {} + + bool + MainThreadRun() override + { + mBodyConsumer->CancelPump(); + return true; + } +}; + } // anonymous template -/* static */ already_AddRefed> -FetchBodyConsumer::Create(FetchBody* aBody) +/* static */ already_AddRefed +FetchBodyConsumer::Create(nsIGlobalObject* aGlobal, + nsIEventTarget* aMainThreadEventTarget, + FetchBody* aBody, + FetchConsumeType aType, + ErrorResult& aRv) { MOZ_ASSERT(aBody); + MOZ_ASSERT(aMainThreadEventTarget); + + RefPtr promise = Promise::Create(aGlobal, aRv); + if (aRv.Failed()) { + return nullptr; + } + + WorkerPrivate* workerPrivate = nullptr; + if (!NS_IsMainThread()) { + workerPrivate = GetCurrentThreadWorkerPrivate(); + MOZ_ASSERT(workerPrivate); + } RefPtr> consumer = - new FetchBodyConsumer(aBody); + new FetchBodyConsumer(aMainThreadEventTarget, workerPrivate, + aBody, promise, aType); if (!NS_IsMainThread()) { - WorkerPrivate* workerPrivate = GetCurrentThreadWorkerPrivate(); MOZ_ASSERT(workerPrivate); - - if (!consumer->RegisterWorkerHolder(workerPrivate)) { + if (NS_WARN_IF(!consumer->RegisterWorkerHolder(workerPrivate))) { + aRv.Throw(NS_ERROR_FAILURE); return nullptr; } } - return consumer.forget(); + nsCOMPtr r = new BeginConsumeBodyRunnable(consumer); + aRv = aMainThreadEventTarget->Dispatch(r.forget(), NS_DISPATCH_NORMAL); + if (NS_WARN_IF(aRv.Failed())) { + return nullptr; + } + + return promise.forget(); } template @@ -85,15 +356,31 @@ FetchBodyConsumer::ReleaseObject() } template -FetchBodyConsumer::FetchBodyConsumer(FetchBody* aBody) +FetchBodyConsumer::FetchBodyConsumer(nsIEventTarget* aMainThreadEventTarget, + WorkerPrivate* aWorkerPrivate, + FetchBody* aBody, + Promise* aPromise, + FetchConsumeType aType) : mTargetThread(NS_GetCurrentThread()) + , mMainThreadEventTarget(aMainThreadEventTarget) , mBody(aBody) -{} + , mWorkerPrivate(aWorkerPrivate) + , mConsumeType(aType) + , mConsumePromise(aPromise) +#ifdef DEBUG + , mReadDone(false) +#endif +{ + MOZ_ASSERT(aMainThreadEventTarget); + MOZ_ASSERT(aBody); + MOZ_ASSERT(aPromise); +} template FetchBodyConsumer::~FetchBodyConsumer() { - NS_ProxyRelease(mTargetThread, mBody.forget()); + NS_ProxyRelease("FetchBodyConsumer::mBody", + mTargetThread, mBody.forget()); } template @@ -122,5 +409,271 @@ FetchBodyConsumer::RegisterWorkerHolder(WorkerPrivate* aWorkerPrivate) return true; } +/* + * BeginConsumeBodyMainThread() will automatically reject the consume promise + * and clean up on any failures, so there is no need for callers to do so, + * reflected in a lack of error return code. + */ +template +void +FetchBodyConsumer::BeginConsumeBodyMainThread() +{ + AssertIsOnMainThread(); + + AutoFailConsumeBody autoReject(this); + + nsresult rv; + nsCOMPtr stream; + mBody->DerivedClass()->GetBody(getter_AddRefs(stream)); + if (!stream) { + rv = NS_NewCStringInputStream(getter_AddRefs(stream), EmptyCString()); + if (NS_WARN_IF(NS_FAILED(rv))) { + return; + } + } + + nsCOMPtr pump; + rv = NS_NewInputStreamPump(getter_AddRefs(pump), + stream, -1, -1, 0, 0, false, + mMainThreadEventTarget); + if (NS_WARN_IF(NS_FAILED(rv))) { + return; + } + + RefPtr> p = + new ConsumeBodyDoneObserver(this); + + nsCOMPtr listener; + if (mConsumeType == CONSUME_BLOB) { + MutableBlobStorage::MutableBlobStorageType type = + MutableBlobStorage::eOnlyInMemory; + + const mozilla::UniquePtr& principalInfo = + mBody->DerivedClass()->GetPrincipalInfo(); + // We support temporary file for blobs only if the principal is known and + // it's system or content not in private Browsing. + if (principalInfo && + (principalInfo->type() == mozilla::ipc::PrincipalInfo::TSystemPrincipalInfo || + (principalInfo->type() == mozilla::ipc::PrincipalInfo::TContentPrincipalInfo && + principalInfo->get_ContentPrincipalInfo().attrs().mPrivateBrowsingId == 0))) { + type = MutableBlobStorage::eCouldBeInTemporaryFile; + } + + listener = new MutableBlobStreamListener(type, nullptr, mBody->MimeType(), + p, mMainThreadEventTarget); + } else { + nsCOMPtr loader; + rv = NS_NewStreamLoader(getter_AddRefs(loader), p); + if (NS_WARN_IF(NS_FAILED(rv))) { + return; + } + + listener = loader; + } + + rv = pump->AsyncRead(listener, nullptr); + if (NS_WARN_IF(NS_FAILED(rv))) { + return; + } + + // Now that everything succeeded, we can assign the pump to a pointer that + // stays alive for the lifetime of the FetchBody. + mConsumeBodyPump = + new nsMainThreadPtrHolder("FetchBodyConsumer::mConsumeBodyPump", + pump, mMainThreadEventTarget); + // It is ok for retargeting to fail and reads to happen on the main thread. + autoReject.DontFail(); + + // Try to retarget, otherwise fall back to main thread. + nsCOMPtr rr = do_QueryInterface(pump); + if (rr) { + nsCOMPtr sts = do_GetService(NS_STREAMTRANSPORTSERVICE_CONTRACTID); + rv = rr->RetargetDeliveryTo(sts); + if (NS_WARN_IF(NS_FAILED(rv))) { + NS_WARNING("Retargeting failed"); + } + } +} + +template +void +FetchBodyConsumer::ContinueConsumeBody(nsresult aStatus, + uint32_t aResultLength, + uint8_t* aResult) +{ + AssertIsOnTargetThread(); + // Just a precaution to ensure ContinueConsumeBody is not called out of + // sync with a body read. + MOZ_ASSERT(mBody->BodyUsed()); + MOZ_ASSERT(!mReadDone); +#ifdef DEBUG + mReadDone = true; +#endif + + auto autoFree = mozilla::MakeScopeExit([&] { + free(aResult); + }); + + MOZ_ASSERT(mConsumePromise); + RefPtr localPromise = mConsumePromise.forget(); + + RefPtr> self = this; + auto autoReleaseObject = mozilla::MakeScopeExit([&] { + self->ReleaseObject(); + }); + + if (NS_WARN_IF(NS_FAILED(aStatus))) { + localPromise->MaybeReject(NS_ERROR_DOM_ABORT_ERR); + + // If binding aborted, cancel the pump. We can't assert mConsumeBodyPump. + // In the (admittedly rare) situation that BeginConsumeBodyMainThread() + // context switches out, and the worker thread gets canceled before the + // pump is setup, mConsumeBodyPump will be null. + // We've to use the !! form since non-main thread pointer access on + // a nsMainThreadPtrHandle is not permitted. + if (aStatus == NS_BINDING_ABORTED && !!mConsumeBodyPump) { + if (NS_IsMainThread()) { + CancelPump(); + } else { + MOZ_ASSERT(mWorkerPrivate); + // In case of worker thread, we block the worker while the request is + // canceled on the main thread. This ensures that OnStreamComplete has + // a valid FetchBody around to call CancelPump and we don't release the + // FetchBody on the main thread. + RefPtr> r = + new CancelPumpRunnable(this); + ErrorResult rv; + r->Dispatch(Terminating, rv); + if (rv.Failed()) { + NS_WARNING("Could not dispatch CancelPumpRunnable. Nothing we can do here"); + // None of our callers are callled directly from JS, so there is no + // point in trying to propagate this failure out of here. And + // localPromise is already rejected. Just suppress the failure. + rv.SuppressException(); + } + } + } + } + + // Release the pump and then early exit if there was an error. + // Uses NS_ProxyRelease internally, so this is safe. + mConsumeBodyPump = nullptr; + + // Don't warn here since we warned above. + if (NS_FAILED(aStatus)) { + return; + } + + // Finish successfully consuming body according to type. + MOZ_ASSERT(aResult); + + AutoJSAPI jsapi; + if (!jsapi.Init(mBody->DerivedClass()->GetParentObject())) { + localPromise->MaybeReject(NS_ERROR_UNEXPECTED); + return; + } + + JSContext* cx = jsapi.cx(); + ErrorResult error; + + switch (mConsumeType) { + case CONSUME_ARRAYBUFFER: { + JS::Rooted arrayBuffer(cx); + BodyUtil::ConsumeArrayBuffer(cx, &arrayBuffer, aResultLength, aResult, + error); + + if (!error.Failed()) { + JS::Rooted val(cx); + val.setObjectOrNull(arrayBuffer); + + localPromise->MaybeResolve(cx, val); + // ArrayBuffer takes over ownership. + aResult = nullptr; + } + break; + } + case CONSUME_BLOB: { + MOZ_CRASH("This should not happen."); + break; + } + case CONSUME_FORMDATA: { + nsCString data; + data.Adopt(reinterpret_cast(aResult), aResultLength); + aResult = nullptr; + + RefPtr fd = + BodyUtil::ConsumeFormData(mBody->DerivedClass()->GetParentObject(), + mBody->MimeType(), data, error); + if (!error.Failed()) { + localPromise->MaybeResolve(fd); + } + break; + } + case CONSUME_TEXT: + // fall through handles early exit. + case CONSUME_JSON: { + nsString decoded; + if (NS_SUCCEEDED(BodyUtil::ConsumeText(aResultLength, aResult, decoded))) { + if (mConsumeType == CONSUME_TEXT) { + localPromise->MaybeResolve(decoded); + } else { + JS::Rooted json(cx); + BodyUtil::ConsumeJson(cx, &json, decoded, error); + if (!error.Failed()) { + localPromise->MaybeResolve(cx, json); + } + } + }; + break; + } + default: + NS_NOTREACHED("Unexpected consume body type"); + } + + error.WouldReportJSException(); + if (error.Failed()) { + localPromise->MaybeReject(error); + } +} + +template +void +FetchBodyConsumer::ContinueConsumeBlobBody(BlobImpl* aBlobImpl) +{ + AssertIsOnTargetThread(); + // Just a precaution to ensure ContinueConsumeBody is not called out of + // sync with a body read. + MOZ_ASSERT(mBody->BodyUsed()); + MOZ_ASSERT(!mReadDone); + MOZ_ASSERT(mConsumeType == CONSUME_BLOB); +#ifdef DEBUG + mReadDone = true; +#endif + + MOZ_ASSERT(mConsumePromise); + RefPtr localPromise = mConsumePromise.forget(); + + // Release the pump and then early exit if there was an error. + // Uses NS_ProxyRelease internally, so this is safe. + mConsumeBodyPump = nullptr; + + RefPtr blob = + dom::Blob::Create(mBody->DerivedClass()->GetParentObject(), aBlobImpl); + MOZ_ASSERT(blob); + + localPromise->MaybeResolve(blob); + + ReleaseObject(); +} + +template +void +FetchBodyConsumer::CancelPump() +{ + AssertIsOnMainThread(); + MOZ_ASSERT(mConsumeBodyPump); + mConsumeBodyPump->Cancel(NS_BINDING_ABORTED); +} + } // namespace dom } // namespace mozilla diff --git a/dom/fetch/FetchConsumer.h b/dom/fetch/FetchConsumer.h index 1b785e170f88..5137e30aaadd 100644 --- a/dom/fetch/FetchConsumer.h +++ b/dom/fetch/FetchConsumer.h @@ -7,11 +7,15 @@ #ifndef mozilla_dom_FetchConsumer_h #define mozilla_dom_FetchConsumer_h +#include "Fetch.h" + class nsIThread; namespace mozilla { namespace dom { +class Promise; + namespace workers { class WorkerPrivate; class WorkerHolder; @@ -28,8 +32,12 @@ class FetchBodyConsumer final public: NS_INLINE_DECL_THREADSAFE_REFCOUNTING(FetchBodyConsumer) - static already_AddRefed> - Create(FetchBody* aBody); + static already_AddRefed + Create(nsIGlobalObject* aGlobal, + nsIEventTarget* aMainThreadEventTarget, + FetchBody* aBody, + FetchConsumeType aType, + ErrorResult& aRv); void ReleaseObject(); @@ -40,8 +48,30 @@ public: return mBody; } + void + BeginConsumeBodyMainThread(); + + void + ContinueConsumeBody(nsresult aStatus, uint32_t aLength, uint8_t* aResult); + + void + ContinueConsumeBlobBody(BlobImpl* aBlobImpl); + + void + CancelPump(); + + workers::WorkerPrivate* + GetWorkerPrivate() const + { + return mWorkerPrivate; + } + private: - explicit FetchBodyConsumer(FetchBody* aBody); + FetchBodyConsumer(nsIEventTarget* aMainThreadEventTarget, + workers::WorkerPrivate* aWorkerPrivate, + FetchBody* aBody, + Promise* aPromise, + FetchConsumeType aType); ~FetchBodyConsumer(); @@ -52,12 +82,26 @@ private: RegisterWorkerHolder(workers::WorkerPrivate* aWorkerPrivate); nsCOMPtr mTargetThread; + nsCOMPtr mMainThreadEventTarget; RefPtr> mBody; // Set when consuming the body is attempted on a worker. // Unset when consumption is done/aborted. // This WorkerHolder keeps alive the consumer via a cycle. UniquePtr mWorkerHolder; + + // Always set whenever the FetchBodyConsumer is created on the worker thread. + workers::WorkerPrivate* mWorkerPrivate; + + nsMainThreadPtrHandle mConsumeBodyPump; + + // Only ever set once, always on target thread. + FetchConsumeType mConsumeType; + RefPtr mConsumePromise; + +#ifdef DEBUG + bool mReadDone; +#endif }; } // namespace dom diff --git a/dom/workers/ServiceWorkerScriptCache.cpp b/dom/workers/ServiceWorkerScriptCache.cpp index 1f235e5e5a93..c5e5a199f9d9 100644 --- a/dom/workers/ServiceWorkerScriptCache.cpp +++ b/dom/workers/ServiceWorkerScriptCache.cpp @@ -19,6 +19,7 @@ #include "nsIStreamLoader.h" #include "nsIThreadRetargetableRequest.h" +#include "nsIInputStreamPump.h" #include "nsIPrincipal.h" #include "nsIScriptError.h" #include "nsIScriptSecurityManager.h" diff --git a/dom/worklet/Worklet.cpp b/dom/worklet/Worklet.cpp index d71c36a24f45..28e4970713a8 100644 --- a/dom/worklet/Worklet.cpp +++ b/dom/worklet/Worklet.cpp @@ -16,6 +16,7 @@ #include "mozilla/dom/Response.h" #include "mozilla/dom/ScriptSettings.h" #include "mozilla/dom/ScriptLoader.h" +#include "nsIInputStreamPump.h" #include "nsIThreadRetargetableRequest.h" #include "nsNetUtil.h" #include "xpcprivate.h" From 349fc09b86cb5989f29878d1361c94e47d2e9e26 Mon Sep 17 00:00:00 2001 From: Sebastian Hengst Date: Tue, 20 Jun 2017 18:01:22 +0200 Subject: [PATCH 082/106] Backed out changeset e62923d406f0 (bug 1362166) on suspicion of causing reftest failures on Linux x64 QuantumRender opt, e.g. multicol-rule-hidden-000-ref.xht. r=backout --- gfx/layers/ipc/CompositorManagerChild.cpp | 24 ----------------------- gfx/layers/ipc/CompositorManagerChild.h | 4 ---- gfx/thebes/gfxPrefs.h | 1 - 3 files changed, 29 deletions(-) diff --git a/gfx/layers/ipc/CompositorManagerChild.cpp b/gfx/layers/ipc/CompositorManagerChild.cpp index 18254ea4c479..9d93f9afa338 100644 --- a/gfx/layers/ipc/CompositorManagerChild.cpp +++ b/gfx/layers/ipc/CompositorManagerChild.cpp @@ -7,7 +7,6 @@ #include "mozilla/layers/CompositorBridgeChild.h" #include "mozilla/layers/CompositorManagerParent.h" #include "mozilla/layers/CompositorThread.h" -#include "mozilla/gfx/GPUProcessManager.h" #include "mozilla/dom/ContentChild.h" // for ContentChild #include "mozilla/dom/TabChild.h" // for TabChild #include "mozilla/dom/TabGroup.h" // for TabGroup @@ -162,7 +161,6 @@ CompositorManagerChild::CompositorManagerChild(CompositorManagerParent* aParent, mCanSend = true; AddRef(); - SetReplyTimeout(); } CompositorManagerChild::CompositorManagerChild(Endpoint&& aEndpoint, @@ -177,7 +175,6 @@ CompositorManagerChild::CompositorManagerChild(Endpoint mCanSend = true; AddRef(); - SetReplyTimeout(); } void @@ -246,26 +243,5 @@ CompositorManagerChild::GetSpecificMessageEventTarget(const Message& aMsg) return do_AddRef(tabChild->TabGroup()->EventTargetFor(TaskCategory::Other)); } -void -CompositorManagerChild::SetReplyTimeout() -{ -#ifndef DEBUG - // Add a timeout for release builds to kill GPU process when it hangs. - if (XRE_IsParentProcess()) { - int32_t timeout = gfxPrefs::GPUProcessIPCReplyTimeoutMs(); - SetReplyTimeoutMs(timeout); - } -#endif -} - -bool -CompositorManagerChild::ShouldContinueFromReplyTimeout() -{ - if (XRE_IsParentProcess()) { - GPUProcessManager::Get()->KillProcess(); - } - return false; -} - } // namespace layers } // namespace mozilla diff --git a/gfx/layers/ipc/CompositorManagerChild.h b/gfx/layers/ipc/CompositorManagerChild.h index ce57603ffaa3..37abdf2f7301 100644 --- a/gfx/layers/ipc/CompositorManagerChild.h +++ b/gfx/layers/ipc/CompositorManagerChild.h @@ -66,8 +66,6 @@ public: bool DeallocPCompositorBridgeChild(PCompositorBridgeChild* aActor) override; - bool ShouldContinueFromReplyTimeout() override; - private: static StaticRefPtr sInstance; @@ -92,8 +90,6 @@ private: already_AddRefed GetSpecificMessageEventTarget(const Message& aMsg) override; - void SetReplyTimeout(); - bool mCanSend; uint32_t mNamespace; uint32_t mResourceId; diff --git a/gfx/thebes/gfxPrefs.h b/gfx/thebes/gfxPrefs.h index 5b57aca0494d..e04672f6610c 100644 --- a/gfx/thebes/gfxPrefs.h +++ b/gfx/thebes/gfxPrefs.h @@ -552,7 +552,6 @@ private: DECL_GFX_PREF(Once, "layers.gpu-process.enabled", GPUProcessEnabled, bool, false); DECL_GFX_PREF(Once, "layers.gpu-process.force-enabled", GPUProcessForceEnabled, bool, false); DECL_GFX_PREF(Once, "layers.gpu-process.timeout_ms", GPUProcessTimeoutMs, int32_t, 5000); - DECL_GFX_PREF(Once, "layers.gpu-process.ipc_reply_timeout_ms", GPUProcessIPCReplyTimeoutMs, int32_t, 10000); DECL_GFX_PREF(Live, "layers.gpu-process.max_restarts", GPUProcessMaxRestarts, int32_t, 1); DECL_GFX_PREF(Once, "layers.gpu-process.allow-software", GPUProcessAllowSoftware, bool, false); // Note: This pref will only be used if it is less than layers.gpu-process.max_restarts. From e3767b4cf49309f771cb499b21057f870caa4f54 Mon Sep 17 00:00:00 2001 From: Tobias Schneider Date: Tue, 20 Jun 2017 09:04:25 -0700 Subject: [PATCH 083/106] Bug 1369253 - Gather more information when test fails. r=jmaher --- dom/base/test/intersectionobserver_window.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dom/base/test/intersectionobserver_window.html b/dom/base/test/intersectionobserver_window.html index 9b35c4850dca..826b5064ebfa 100644 --- a/dom/base/test/intersectionobserver_window.html +++ b/dom/base/test/intersectionobserver_window.html @@ -27,7 +27,9 @@ records[0].rootBounds.bottom === viewportHeight && records[0].rootBounds.height === viewportHeight; if (!result) { - result = [records[0].rootBounds.top, + result = [records.length, + records[0].isIntersecting, + records[0].rootBounds.top, records[0].rootBounds.left, records[0].rootBounds.right, records[0].rootBounds.width, From 130a6eeb646d265ed3b145068ded3c81122c6d78 Mon Sep 17 00:00:00 2001 From: Jonathan Watt Date: Fri, 26 May 2017 14:24:57 +0100 Subject: [PATCH 084/106] Bug 1374614 - Support SVG image context paint in XUL tree views (treecol etc.). r=dholbert MozReview-Commit-ID: LltEP7gTCgq --- layout/base/nsLayoutUtils.cpp | 6 +++++- layout/base/nsLayoutUtils.h | 4 ++++ layout/painting/nsImageRenderer.cpp | 2 +- layout/svg/SVGImageContext.cpp | 12 +++++++++++- layout/svg/SVGImageContext.h | 5 +++++ layout/xul/tree/nsTreeBodyFrame.cpp | 6 +++--- 6 files changed, 29 insertions(+), 6 deletions(-) diff --git a/layout/base/nsLayoutUtils.cpp b/layout/base/nsLayoutUtils.cpp index f7de58ca515f..acd32c6993cd 100644 --- a/layout/base/nsLayoutUtils.cpp +++ b/layout/base/nsLayoutUtils.cpp @@ -6883,6 +6883,7 @@ nsLayoutUtils::DrawBackgroundImage(gfxContext& aContext, /* static */ DrawResult nsLayoutUtils::DrawImage(gfxContext& aContext, + nsStyleContext* aStyleContext, nsPresContext* aPresContext, imgIContainer* aImage, const SamplingFilter aSamplingFilter, @@ -6893,10 +6894,13 @@ nsLayoutUtils::DrawImage(gfxContext& aContext, uint32_t aImageFlags, float aOpacity) { + Maybe svgContext; + SVGImageContext::MaybeStoreContextPaint(svgContext, aStyleContext, aImage); + return DrawImageInternal(aContext, aPresContext, aImage, aSamplingFilter, aDest, aFill, aAnchor, aDirty, - /* no SVGImageContext */ Nothing(), + svgContext, aImageFlags, ExtendMode::CLAMP, aOpacity); } diff --git a/layout/base/nsLayoutUtils.h b/layout/base/nsLayoutUtils.h index bb0dad0ec90a..e8a2a010b18f 100644 --- a/layout/base/nsLayoutUtils.h +++ b/layout/base/nsLayoutUtils.h @@ -1808,6 +1808,9 @@ public: * @param aRenderingContext Where to draw the image, set up with an * appropriate scale and transform for drawing in * app units. + * @param aStyleContext The style context of the nsIFrame (or + * pseudo-element) for which this image is being + * drawn. * @param aImage The image. * @param aDest Where one copy of the image should mapped to. * @param aFill The area to be filled with copies of the @@ -1818,6 +1821,7 @@ public: * @param aImageFlags Image flags of the imgIContainer::FLAG_* variety */ static DrawResult DrawImage(gfxContext& aContext, + nsStyleContext* aStyleContext, nsPresContext* aPresContext, imgIContainer* aImage, const SamplingFilter aSamplingFilter, diff --git a/layout/painting/nsImageRenderer.cpp b/layout/painting/nsImageRenderer.cpp index d359bbfd1310..9b6874601ac4 100644 --- a/layout/painting/nsImageRenderer.cpp +++ b/layout/painting/nsImageRenderer.cpp @@ -541,7 +541,7 @@ nsImageRenderer::Draw(nsPresContext* aPresContext, nsCOMPtr image(ImageOps::CreateFromDrawable(drawable)); result = - nsLayoutUtils::DrawImage(*ctx, + nsLayoutUtils::DrawImage(*ctx, mForFrame->StyleContext(), aPresContext, image, samplingFilter, aDest, aFill, aAnchor, aDirtyRect, ConvertImageRendererToDrawFlags(mFlags), diff --git a/layout/svg/SVGImageContext.cpp b/layout/svg/SVGImageContext.cpp index 79311b32545f..ca4a2dfd5b60 100644 --- a/layout/svg/SVGImageContext.cpp +++ b/layout/svg/SVGImageContext.cpp @@ -22,7 +22,17 @@ SVGImageContext::MaybeStoreContextPaint(Maybe& aContext, nsIFrame* aFromFrame, imgIContainer* aImgContainer) { - const nsStyleSVG* style = aFromFrame->StyleSVG(); + return MaybeStoreContextPaint(aContext, + aFromFrame->StyleContext(), + aImgContainer); +} + +/* static */ void +SVGImageContext::MaybeStoreContextPaint(Maybe& aContext, + nsStyleContext* aFromStyleContext, + imgIContainer* aImgContainer) +{ + const nsStyleSVG* style = aFromStyleContext->StyleSVG(); if (!style->ExposesContextProperties()) { // Content must have '-moz-context-properties' set to the names of the diff --git a/layout/svg/SVGImageContext.h b/layout/svg/SVGImageContext.h index c22744a64216..03aafc2d0ae6 100644 --- a/layout/svg/SVGImageContext.h +++ b/layout/svg/SVGImageContext.h @@ -12,6 +12,7 @@ #include "Units.h" class nsIFrame; +class nsStyleContext; namespace mozilla { @@ -51,6 +52,10 @@ public: nsIFrame* aFromFrame, imgIContainer* aImgContainer); + static void MaybeStoreContextPaint(Maybe& aContext, + nsStyleContext* aFromStyleContext, + imgIContainer* aImgContainer); + const Maybe& GetViewportSize() const { return mViewportSize; } diff --git a/layout/xul/tree/nsTreeBodyFrame.cpp b/layout/xul/tree/nsTreeBodyFrame.cpp index 621496c432d9..dda2cacc9a65 100644 --- a/layout/xul/tree/nsTreeBodyFrame.cpp +++ b/layout/xul/tree/nsTreeBodyFrame.cpp @@ -3714,7 +3714,7 @@ nsTreeBodyFrame::PaintImage(int32_t aRowIndex, uint32_t drawFlags = aBuilder && aBuilder->IsPaintingToWindow() ? imgIContainer::FLAG_HIGH_QUALITY_SCALING : imgIContainer::FLAG_NONE; result &= - nsLayoutUtils::DrawImage(aRenderingContext, aPresContext, image, + nsLayoutUtils::DrawImage(aRenderingContext, imageContext, aPresContext, image, nsLayoutUtils::GetSamplingFilterForFrame(this), wholeImageDest, destRect, destRect.TopLeft(), aDirtyRect, drawFlags); @@ -4006,7 +4006,7 @@ nsTreeBodyFrame::PaintProgressMeter(int32_t aRowIndex, uint32_t drawFlags = aBuilder && aBuilder->IsPaintingToWindow() ? imgIContainer::FLAG_HIGH_QUALITY_SCALING : imgIContainer::FLAG_NONE; result &= - nsLayoutUtils::DrawImage(aRenderingContext, + nsLayoutUtils::DrawImage(aRenderingContext, meterContext, aPresContext, image, nsLayoutUtils::GetSamplingFilterForFrame(this), nsRect(meterRect.TopLeft(), size), meterRect, meterRect.TopLeft(), @@ -4036,7 +4036,7 @@ nsTreeBodyFrame::PaintProgressMeter(int32_t aRowIndex, uint32_t drawFlags = aBuilder && aBuilder->IsPaintingToWindow() ? imgIContainer::FLAG_HIGH_QUALITY_SCALING : imgIContainer::FLAG_NONE; result &= - nsLayoutUtils::DrawImage(aRenderingContext, + nsLayoutUtils::DrawImage(aRenderingContext, meterContext, aPresContext, image, nsLayoutUtils::GetSamplingFilterForFrame(this), nsRect(meterRect.TopLeft(), size), meterRect, meterRect.TopLeft(), From 192e31612f152103d3f7bee1792a66f0d05c5bb6 Mon Sep 17 00:00:00 2001 From: Petr Sumbera Date: Fri, 9 Jun 2017 00:59:32 -0700 Subject: [PATCH 085/106] Bug 1158445 - posix_madvise() should be used instead of madvise on Solaris. r=froydnj, r=jandem --- mfbt/Poison.cpp | 4 ++++ mfbt/tests/TestPoisonArea.cpp | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/mfbt/Poison.cpp b/mfbt/Poison.cpp index b2767011d5fb..8de30d5926d5 100644 --- a/mfbt/Poison.cpp +++ b/mfbt/Poison.cpp @@ -129,7 +129,11 @@ ReleaseRegion(void* aRegion, uintptr_t aSize) static bool ProbeRegion(uintptr_t aRegion, uintptr_t aSize) { +#ifdef XP_SOLARIS + if (posix_madvise(reinterpret_cast(aRegion), aSize, POSIX_MADV_NORMAL)) { +#else if (madvise(reinterpret_cast(aRegion), aSize, MADV_NORMAL)) { +#endif return true; } else { return false; diff --git a/mfbt/tests/TestPoisonArea.cpp b/mfbt/tests/TestPoisonArea.cpp index 76af23f69437..06c24ed03256 100644 --- a/mfbt/tests/TestPoisonArea.cpp +++ b/mfbt/tests/TestPoisonArea.cpp @@ -269,7 +269,11 @@ ReleaseRegion(void* aPage) static bool ProbeRegion(uintptr_t aPage) { +#ifdef XP_SOLARIS + return !!posix_madvise(reinterpret_cast(aPage), PageSize(), POSIX_MADV_NORMAL); +#else return !!madvise(reinterpret_cast(aPage), PageSize(), MADV_NORMAL); +#endif } static int From 36099beb84f1cfa1c918e42b6e0693bb6ce20238 Mon Sep 17 00:00:00 2001 From: Oriol Date: Thu, 15 Jun 2017 07:30:00 -0400 Subject: [PATCH 086/106] Bug 1370443 - Do not hide the summary when expanding an empty object in JSON Viewer. r=Honza --- .../client/jsonview/components/json-panel.js | 10 ++-- devtools/client/jsonview/test/browser.ini | 1 + .../test/browser_jsonview_empty_object.js | 48 +++++++++++++++++++ 3 files changed, 56 insertions(+), 3 deletions(-) create mode 100644 devtools/client/jsonview/test/browser_jsonview_empty_object.js diff --git a/devtools/client/jsonview/components/json-panel.js b/devtools/client/jsonview/components/json-panel.js index 244209173e65..66ced5ca6d58 100644 --- a/devtools/client/jsonview/components/json-panel.js +++ b/devtools/client/jsonview/components/json-panel.js @@ -21,6 +21,10 @@ define(function (require, exports, module) { const AUTO_EXPAND_MAX_SIZE = 100 * 1024; const AUTO_EXPAND_MAX_LEVEL = 7; + function isObject(value) { + return Object(value) === value; + } + /** * This template represents the 'JSON' panel. The panel is * responsible for rendering an expandable tree that allows simple @@ -90,8 +94,8 @@ define(function (require, exports, module) { renderValue: props => { let member = props.member; - // Hide object summary when object is expanded (bug 1244912). - if (typeof member.value == "object" && member.open) { + // Hide object summary when non-empty object is expanded (bug 1244912). + if (isObject(member.value) && member.hasChildren && member.open) { return null; } @@ -131,7 +135,7 @@ define(function (require, exports, module) { let data = this.props.data; try { - if (typeof data == "object") { + if (isObject(data)) { content = this.renderTree(); } else { content = div({className: "jsonParseError"}, diff --git a/devtools/client/jsonview/test/browser.ini b/devtools/client/jsonview/test/browser.ini index a7f4c6c8c51a..07bb399eff5f 100644 --- a/devtools/client/jsonview/test/browser.ini +++ b/devtools/client/jsonview/test/browser.ini @@ -27,6 +27,7 @@ skip-if = (os == 'linux' && bits == 32 && debug) # bug 1328915, disable linux32 [browser_jsonview_copy_rawdata.js] subsuite = clipboard skip-if = (os == 'linux' && bits == 32 && debug) # bug 1328915, disable linux32 debug devtools for timeouts +[browser_jsonview_empty_object.js] [browser_jsonview_filter.js] [browser_jsonview_invalid_json.js] [browser_jsonview_manifest.js] diff --git a/devtools/client/jsonview/test/browser_jsonview_empty_object.js b/devtools/client/jsonview/test/browser_jsonview_empty_object.js new file mode 100644 index 000000000000..6610434f7669 --- /dev/null +++ b/devtools/client/jsonview/test/browser_jsonview_empty_object.js @@ -0,0 +1,48 @@ +/* -*- indent-tabs-mode: nil; js-indent-level: 2 -*- */ +/* vim: set ts=2 et sw=2 tw=80: */ +/* Any copyright is dedicated to the Public Domain. + * http://creativecommons.org/publicdomain/zero/1.0/ */ + +"use strict"; + +function testRootObject(objExpr, summary = objExpr) { + return function* () { + info("Test JSON with root empty object " + objExpr + " started"); + + let TEST_JSON_URL = "data:application/json," + objExpr; + yield addJsonViewTab(TEST_JSON_URL); + + let objectText = yield getElementText( + ".jsonPanelBox .panelContent"); + is(objectText, summary, "The root object " + objExpr + " is visible"); + }; +} + +function testNestedObject(objExpr, summary = objExpr) { + return function* () { + info("Test JSON with nested empty object " + objExpr + " started"); + + let TEST_JSON_URL = "data:application/json,[" + objExpr + "]"; + yield addJsonViewTab(TEST_JSON_URL); + + let objectCellCount = yield getElementCount( + ".jsonPanelBox .treeTable .objectCell"); + is(objectCellCount, 1, "There must be one object cell"); + + let objectCellText = yield getElementText( + ".jsonPanelBox .treeTable .objectCell"); + is(objectCellText, summary, objExpr + " has a visible summary"); + + // Collapsed auto-expanded node. + yield clickJsonNode(".jsonPanelBox .treeTable .treeLabel"); + + let textAfter = yield getElementText( + ".jsonPanelBox .treeTable .objectCell"); + is(textAfter, summary, objExpr + " still has a visible summary"); + }; +} + +add_task(testRootObject("null")); +add_task(testNestedObject("null")); +add_task(testNestedObject("[]")); +add_task(testNestedObject("{}", "Object")); From ff19b670873c10122c237032892a34385d16642b Mon Sep 17 00:00:00 2001 From: Kershaw Chang Date: Mon, 19 Jun 2017 22:59:00 -0400 Subject: [PATCH 087/106] Bug 1370583 - Get URIClassifier service eariler. r=francois Move the initialization of nsUrlClassifierDBService to prior of calling ShouldEnableTrackingProtection(), so the nsUrlClassifierDBService will be initialized before staring HTTP connection. If not doing so, there is a 3.x% peformance regression on android platforam. --- netwerk/base/nsChannelClassifier.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/netwerk/base/nsChannelClassifier.cpp b/netwerk/base/nsChannelClassifier.cpp index 5e9361476b5d..d053d6b56cfe 100644 --- a/netwerk/base/nsChannelClassifier.cpp +++ b/netwerk/base/nsChannelClassifier.cpp @@ -1200,16 +1200,16 @@ nsChannelClassifier::CheckIsTrackerWithLocalTable(nsIURIClassifierCallback* aCal return NS_ERROR_INVALID_ARG; } - if (!ShouldEnableTrackingProtection() && !ShouldEnableTrackingAnnotation()) { - return NS_ERROR_FAILURE; - } - nsCOMPtr uriClassifier = do_GetService(NS_URICLASSIFIERSERVICE_CONTRACTID, &rv); if (NS_FAILED(rv)) { return rv; } + if (!ShouldEnableTrackingProtection() && !ShouldEnableTrackingAnnotation()) { + return NS_ERROR_FAILURE; + } + nsCOMPtr uri; rv = mChannel->GetURI(getter_AddRefs(uri)); if (NS_FAILED(rv) || !uri) { From 0e8a46a1571cb3807bf6508c691349a843aac304 Mon Sep 17 00:00:00 2001 From: Joanmarie Diggs Date: Mon, 19 Jun 2017 11:09:23 -0400 Subject: [PATCH 088/106] Bug 1374316 - Add aria-readonly to several roles as per ARIA 1.1. r=surkov In ARIA 1.1, aria-readonly became a supported property of switch, menuitemcheckbox, menuitemradio, and radiogroup. aria-checked is not, and has not been, a supported property of menuitem. This property should only be supported on checkable subclasses of the ARIA menuitem role, namely menuitemcheckbox and menuitemradio. --- accessible/base/ARIAMap.cpp | 15 +-- .../tests/mochitest/attributes/test_obj.html | 6 +- .../mochitest/test_aria_token_attrs.html | 96 +++++++++++++++++-- 3 files changed, 102 insertions(+), 15 deletions(-) diff --git a/accessible/base/ARIAMap.cpp b/accessible/base/ARIAMap.cpp index 2e31bacd5abb..e7ec8e2fd6fd 100644 --- a/accessible/base/ARIAMap.cpp +++ b/accessible/base/ARIAMap.cpp @@ -788,8 +788,7 @@ static const nsRoleMapEntry sWAIRoleMaps[] = eClickAction, eNoLiveAttr, kGenericAccType, - kNoReqStates, - eARIACheckedMixed + kNoReqStates }, { // menuitemcheckbox &nsGkAtoms::menuitemcheckbox, @@ -800,7 +799,8 @@ static const nsRoleMapEntry sWAIRoleMaps[] = eNoLiveAttr, kGenericAccType, kNoReqStates, - eARIACheckableMixed + eARIACheckableMixed, + eARIAReadonly }, { // menuitemradio &nsGkAtoms::menuitemradio, @@ -811,7 +811,8 @@ static const nsRoleMapEntry sWAIRoleMaps[] = eNoLiveAttr, kGenericAccType, kNoReqStates, - eARIACheckableBool + eARIACheckableBool, + eARIAReadonly }, { // navigation &nsGkAtoms::navigation, @@ -896,7 +897,8 @@ static const nsRoleMapEntry sWAIRoleMaps[] = eNoLiveAttr, kGenericAccType, kNoReqStates, - eARIAOrientation + eARIAOrientation, + eARIAReadonly }, { // region &nsGkAtoms::region, @@ -1029,7 +1031,8 @@ static const nsRoleMapEntry sWAIRoleMaps[] = eNoLiveAttr, kGenericAccType, kNoReqStates, - eARIACheckableBool + eARIACheckableBool, + eARIAReadonly }, { // tab &nsGkAtoms::tab, diff --git a/accessible/tests/mochitest/attributes/test_obj.html b/accessible/tests/mochitest/attributes/test_obj.html index 9e147e1d1760..660500b60015 100644 --- a/accessible/tests/mochitest/attributes/test_obj.html +++ b/accessible/tests/mochitest/attributes/test_obj.html @@ -30,7 +30,9 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=558036 testAttrs("autocomplete", {"autocomplete" : "true"}, true); testAttrs("checkbox", {"checkable" : "true"}, true); testAttrs("checkedCheckbox", {"checkable" : "true"}, true); - testAttrs("checkedMenuitem", {"checkable" : "true"}, true); + testAbsentAttrs("checkedMenuitem", {"checkable" : "true"}, true); + testAttrs("checkedMenuitemCheckbox", {"checkable" : "true"}, true); + testAttrs("checkedMenuitemRadio", {"checkable" : "true"}, true); testAttrs("checkedOption", {"checkable" : "true"}, true); testAttrs("checkedRadio", {"checkable" : "true"}, true); testAttrs("checkedTreeitem", {"checkable" : "true"}, true); @@ -205,6 +207,8 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=558036

+
+
diff --git a/accessible/tests/mochitest/test_aria_token_attrs.html b/accessible/tests/mochitest/test_aria_token_attrs.html index 88209902675f..6fc7c539108c 100644 --- a/accessible/tests/mochitest/test_aria_token_attrs.html +++ b/accessible/tests/mochitest/test_aria_token_attrs.html @@ -96,13 +96,27 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=452388 testStates("option_checked_undefined", 0, 0, STATE_CHECKABLE | STATE_CHECKED); testStates("option_checked_absent", 0, 0, STATE_CHECKABLE | STATE_CHECKED); - // test (menuitem) checkable and checked states - testStates("menuitem_checked_true", (STATE_CHECKABLE | STATE_CHECKED)); - testStates("menuitem_checked_false", STATE_CHECKABLE, 0, STATE_CHECKED); + // test (menuitem) checkable and checked states, which are unsupported on this role + testStates("menuitem_checked_true", 0, 0, (STATE_CHECKABLE | STATE_CHECKED)); + testStates("menuitem_checked_false", 0, 0, (STATE_CHECKABLE | STATE_CHECKED)); testStates("menuitem_checked_empty", 0, 0, (STATE_CHECKABLE | STATE_CHECKED)); testStates("menuitem_checked_undefined", 0, 0, (STATE_CHECKABLE | STATE_CHECKED)); testStates("menuitem_checked_absent", 0, 0, (STATE_CHECKABLE | STATE_CHECKED)); + // test (menuitemcheckbox) checkable and checked states + testStates("menuitemcheckbox_checked_true", (STATE_CHECKABLE | STATE_CHECKED)); + testStates("menuitemcheckbox_checked_false", STATE_CHECKABLE, 0, STATE_CHECKED); + testStates("menuitemcheckbox_checked_empty", STATE_CHECKABLE, 0, STATE_CHECKED); + testStates("menuitemcheckbox_checked_undefined", STATE_CHECKABLE, 0, STATE_CHECKED); + testStates("menuitemcheckbox_checked_absent", STATE_CHECKABLE, 0, STATE_CHECKED); + + // test (menuitemcheckbox) readonly states + testStates("menuitemcheckbox_readonly_true", STATE_READONLY); + testStates("menuitemcheckbox_readonly_false", 0, 0, STATE_READONLY); + testStates("menuitemcheckbox_readonly_empty", 0, 0, STATE_READONLY); + testStates("menuitemcheckbox_readonly_undefined", 0, 0, STATE_READONLY); + testStates("menuitemcheckbox_readonly_absent", 0, 0, STATE_READONLY); + // test (menuitemradio) checkable and checked states testStates("menuitemradio_checked_true", (STATE_CHECKABLE | STATE_CHECKED)); testStates("menuitemradio_checked_false", STATE_CHECKABLE, 0, STATE_CHECKED); @@ -110,6 +124,13 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=452388 testStates("menuitemradio_checked_undefined", STATE_CHECKABLE, 0, STATE_CHECKED); testStates("menuitemradio_checked_absent", STATE_CHECKABLE, 0, STATE_CHECKED); + // test (menuitemradio) readonly states + testStates("menuitemradio_readonly_true", STATE_READONLY); + testStates("menuitemradio_readonly_false", 0, 0, STATE_READONLY); + testStates("menuitemradio_readonly_empty", 0, 0, STATE_READONLY); + testStates("menuitemradio_readonly_undefined", 0, 0, STATE_READONLY); + testStates("menuitemradio_readonly_absent", 0, 0, STATE_READONLY); + // test (radio) checkable and checked states testStates("radio_checked_true", (STATE_CHECKABLE | STATE_CHECKED)); testStates("radio_checked_false", STATE_CHECKABLE, 0, STATE_CHECKED); @@ -117,6 +138,20 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=452388 testStates("radio_checked_undefined", STATE_CHECKABLE, 0, STATE_CHECKED); testStates("radio_checked_absent", STATE_CHECKABLE, 0, STATE_CHECKED); + // test (radiogroup) readonly states + testStates("radiogroup_readonly_true", STATE_READONLY); + testStates("radiogroup_readonly_false", 0, 0, STATE_READONLY); + testStates("radiogroup_readonly_empty", 0, 0, STATE_READONLY); + testStates("radiogroup_readonly_undefined", 0, 0, STATE_READONLY); + testStates("radiogroup_readonly_absent", 0, 0, STATE_READONLY); + + // test (switch) readonly states + testStates("switch_readonly_true", STATE_READONLY); + testStates("switch_readonly_false", 0, 0, STATE_READONLY); + testStates("switch_readonly_empty", 0, 0, STATE_READONLY); + testStates("switch_readonly_undefined", 0, 0, STATE_READONLY); + testStates("switch_readonly_absent", 0, 0, STATE_READONLY); + // test (textbox) multiline states testStates("textbox_multiline_true", 0, EXT_STATE_MULTI_LINE); testStates("textbox_multiline_false", 0, EXT_STATE_SINGLE_LINE); @@ -260,11 +295,23 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=452388
- - - - - + + + + + + + + + + + + + + + + + @@ -273,12 +320,45 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=452388
+ + + + + + +
+
yes
+
no
+
+
+
yes
+
no
+
+
+
yes
+
no
+
+
+
yes
+
no
+
+
+
yes
+
no
+
+ +
This switch has aria-readonly="true" and should get STATE_READONLY.
+
This switch has aria-readonly="false" and should not get STATE_READONLY.
+
This switch has aria-readonly="" and should not get STATE_READONLY.
+
This switch has aria-readonly="undefined" and should not get STATE_READONLY.
+
This switch has no aria-readonly attribute and should not get STATE_READONLY.
+
From c15a9d6558d3c0306baa99de72f26b936a65bf51 Mon Sep 17 00:00:00 2001 From: Joel Maher Date: Tue, 20 Jun 2017 13:25:02 -0400 Subject: [PATCH 089/106] Bug 1373346 - dom/push/test has many perma failing mochitests, disable for now. r=gbrown MozReview-Commit-ID: JrnJRocoooB --- dom/push/test/mochitest.ini | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dom/push/test/mochitest.ini b/dom/push/test/mochitest.ini index c730cd534ae9..789e93c5313a 100644 --- a/dom/push/test/mochitest.ini +++ b/dom/push/test/mochitest.ini @@ -12,14 +12,18 @@ support-files = [test_has_permissions.html] [test_permissions.html] [test_register.html] +skip-if = os == "win" && !debug # Bug 1373346 [test_register_key.html] [test_multiple_register.html] [test_multiple_register_during_service_activation.html] [test_unregister.html] [test_multiple_register_different_scope.html] [test_subscription_change.html] +skip-if = os == "win" && !debug # Bug 1373346 [test_data.html] skip-if = os == "win" && !debug # Bug 1373346 [test_try_registering_offline_disabled.html] +skip-if = os == "win" && !debug # Bug 1373346 [test_serviceworker_lifetime.html] +skip-if = os == "win" && !debug # Bug 1373346 [test_error_reporting.html] From ee77ff26e01595b63c0f2af77ac9ebc3a8603524 Mon Sep 17 00:00:00 2001 From: Eric Rahm Date: Tue, 20 Jun 2017 10:31:33 -0700 Subject: [PATCH 090/106] Bug 1374414 - Stop warning if target is null in idle dispatch. r=froydnj --- xpcom/threads/nsThreadUtils.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/xpcom/threads/nsThreadUtils.cpp b/xpcom/threads/nsThreadUtils.cpp index 15f94a6c1b6e..d85d5afd7e55 100644 --- a/xpcom/threads/nsThreadUtils.cpp +++ b/xpcom/threads/nsThreadUtils.cpp @@ -373,7 +373,9 @@ NS_IdleDispatchToThread(already_AddRefed&& aEvent, //XXX Using current thread for now as the nsIEventTarget. nsIEventTarget* target = mozilla::GetCurrentThreadEventTarget(); - NS_ENSURE_STATE(target); + if (!target) { + return NS_ERROR_UNEXPECTED; + } nsCOMPtr idleEvent = do_QueryInterface(event); From 8e33dbaf48568eaf14c375ffcd48b3a2e2924be8 Mon Sep 17 00:00:00 2001 From: Randall Barker Date: Mon, 19 Jun 2017 11:57:27 -0700 Subject: [PATCH 091/106] Bug 1372777 - Check that the native pointer has not been detached from the java object when dispatched to different thread r=esawin MozReview-Commit-ID: DyeZDaHeWdL --- widget/android/jni/Natives.h | 14 ++++++++------ widget/android/nsWindow.cpp | 11 +++++++---- 2 files changed, 15 insertions(+), 10 deletions(-) diff --git a/widget/android/jni/Natives.h b/widget/android/jni/Natives.h index 91e399aa786d..13c93a61c29b 100644 --- a/widget/android/jni/Natives.h +++ b/widget/android/jni/Natives.h @@ -404,9 +404,10 @@ class ProxyNativeCall : public AbstractCall Call(const typename Owner::LocalRef& inst, mozilla::IndexSequence) const { - Impl* const impl = NativePtr::Get(inst); - MOZ_CATCH_JNI_EXCEPTION(inst.Env()); - (impl->*mNativeCall)(inst, mozilla::Get(mArgs)...); + if (Impl* const impl = NativePtr::Get(inst)) { + MOZ_CATCH_JNI_EXCEPTION(inst.Env()); + (impl->*mNativeCall)(inst, mozilla::Get(mArgs)...); + } } template @@ -414,9 +415,10 @@ class ProxyNativeCall : public AbstractCall Call(const typename Owner::LocalRef& inst, mozilla::IndexSequence) const { - Impl* const impl = NativePtr::Get(inst); - MOZ_CATCH_JNI_EXCEPTION(inst.Env()); - (impl->*mNativeCall)(mozilla::Get(mArgs)...); + if (Impl* const impl = NativePtr::Get(inst)) { + MOZ_CATCH_JNI_EXCEPTION(inst.Env()); + (impl->*mNativeCall)(mozilla::Get(mArgs)...); + } } template diff --git a/widget/android/nsWindow.cpp b/widget/android/nsWindow.cpp index 8b9de5267c1e..555982aca033 100644 --- a/widget/android/nsWindow.cpp +++ b/widget/android/nsWindow.cpp @@ -983,11 +983,14 @@ public: MOZ_ASSERT(NS_IsMainThread()); JNIEnv* const env = jni::GetGeckoThreadEnv(); - LayerViewSupport* const lvs = GetNative( - LayerView::Compositor::LocalRef(env, mCompositor)); - MOZ_CATCH_JNI_EXCEPTION(env); + // Make sure LayerViewSupport hasn't been detached from the + // Java object since this event was dispatched. + if (LayerViewSupport* const lvs = GetNative( + LayerView::Compositor::LocalRef(env, mCompositor))) { + MOZ_CATCH_JNI_EXCEPTION(env); - lvs->OnResumedCompositor(); + lvs->OnResumedCompositor(); + } } }; From 4f73ba039c3bcb643f406d68aeca1b1f29095353 Mon Sep 17 00:00:00 2001 From: Ehsan Akhgari Date: Fri, 16 Jun 2017 23:37:23 -0400 Subject: [PATCH 092/106] Bug 1373857 - Part 1: Add some nsContentUtils helpers for dispatching WidgetEvents directly; r=smaug --- dom/base/nsContentUtils.cpp | 80 +++++++++++++++++++++++++++++++------ dom/base/nsContentUtils.h | 69 ++++++++++++++++++++++++++++++++ 2 files changed, 136 insertions(+), 13 deletions(-) diff --git a/dom/base/nsContentUtils.cpp b/dom/base/nsContentUtils.cpp index 2be1c33166cc..05407d173fac 100644 --- a/dom/base/nsContentUtils.cpp +++ b/dom/base/nsContentUtils.cpp @@ -845,20 +845,40 @@ nsContentUtils::InitializeModifierStrings() sModifierSeparator = new nsString(modifierSeparator); } +mozilla::EventClassID +nsContentUtils::GetEventClassIDFromMessage(EventMessage aEventMessage) +{ + switch (aEventMessage) { +#define MESSAGE_TO_EVENT(name_, message_, type_, struct_) \ + case message_: return struct_; +#include "mozilla/EventNameList.h" +#undef MESSAGE_TO_EVENT + default: + MOZ_ASSERT_UNREACHABLE("Invalid event message?"); + return eBasicEventClass; + } +} + +static nsIAtom* +GetEventTypeFromMessage(EventMessage aEventMessage) +{ + switch (aEventMessage) { +#define MESSAGE_TO_EVENT(name_, message_, type_, struct_) \ + case message_: return nsGkAtoms::on##name_; +#include "mozilla/EventNameList.h" +#undef MESSAGE_TO_EVENT + default: + return nullptr; + } +} + // Because of SVG/SMIL we have several atoms mapped to the same // id, but we can rely on MESSAGE_TO_EVENT to map id to only one atom. static bool ShouldAddEventToStringEventTable(const EventNameMapping& aMapping) { - switch(aMapping.mMessage) { -#define MESSAGE_TO_EVENT(name_, message_, type_, struct_) \ - case message_: return nsGkAtoms::on##name_ == aMapping.mAtom; -#include "mozilla/EventNameList.h" -#undef MESSAGE_TO_EVENT - default: - break; - } - return false; + MOZ_ASSERT(aMapping.mAtom); + return GetEventTypeFromMessage(aMapping.mMessage) == aMapping.mAtom; } bool @@ -4347,7 +4367,7 @@ nsresult nsContentUtils::DispatchTrustedEvent(nsIDocument* aDoc, nsISupports* aTarget, const nsAString& aEventName, bool aCanBubble, bool aCancelable, - bool *aDefaultAction) + bool* aDefaultAction) { return DispatchEvent(aDoc, aTarget, aEventName, aCanBubble, aCancelable, true, aDefaultAction); @@ -4358,7 +4378,7 @@ nsresult nsContentUtils::DispatchUntrustedEvent(nsIDocument* aDoc, nsISupports* aTarget, const nsAString& aEventName, bool aCanBubble, bool aCancelable, - bool *aDefaultAction) + bool* aDefaultAction) { return DispatchEvent(aDoc, aTarget, aEventName, aCanBubble, aCancelable, false, aDefaultAction); @@ -4369,7 +4389,7 @@ nsresult nsContentUtils::DispatchEvent(nsIDocument* aDoc, nsISupports* aTarget, const nsAString& aEventName, bool aCanBubble, bool aCancelable, - bool aTrusted, bool *aDefaultAction, + bool aTrusted, bool* aDefaultAction, bool aOnlyChromeDispatch) { nsCOMPtr event; @@ -4384,12 +4404,46 @@ nsContentUtils::DispatchEvent(nsIDocument* aDoc, nsISupports* aTarget, return target->DispatchEvent(event, aDefaultAction ? aDefaultAction : &dummy); } +// static +nsresult +nsContentUtils::DispatchEvent(nsIDocument* aDoc, nsISupports* aTarget, + WidgetEvent& aEvent, + EventMessage aEventMessage, + bool aCanBubble, bool aCancelable, + bool aTrusted, bool *aDefaultAction, + bool aOnlyChromeDispatch) +{ + MOZ_ASSERT_IF(aOnlyChromeDispatch, aTrusted); + + nsCOMPtr target(do_QueryInterface(aTarget)); + + aEvent.mTime = PR_Now(); + + aEvent.mSpecifiedEventType = GetEventTypeFromMessage(aEventMessage); + aEvent.SetDefaultComposed(); + aEvent.SetDefaultComposedInNativeAnonymousContent(); + + aEvent.mFlags.mBubbles = aCanBubble; + aEvent.mFlags.mCancelable = aCancelable; + aEvent.mFlags.mOnlyChromeDispatch = aOnlyChromeDispatch; + + aEvent.mTarget = target; + + nsEventStatus status = nsEventStatus_eIgnore; + nsresult rv = EventDispatcher::DispatchDOMEvent(target, &aEvent, nullptr, + nullptr, &status); + if (aDefaultAction) { + *aDefaultAction = (status != nsEventStatus_eConsumeNoDefault); + } + return rv; +} + nsresult nsContentUtils::DispatchChromeEvent(nsIDocument *aDoc, nsISupports *aTarget, const nsAString& aEventName, bool aCanBubble, bool aCancelable, - bool *aDefaultAction) + bool* aDefaultAction) { nsCOMPtr event; diff --git a/dom/base/nsContentUtils.h b/dom/base/nsContentUtils.h index c52784a32bf4..e225defcccc0 100644 --- a/dom/base/nsContentUtils.h +++ b/dom/base/nsContentUtils.h @@ -20,6 +20,7 @@ #include "js/TypeDecls.h" #include "js/Value.h" #include "js/RootingAPI.h" +#include "mozilla/BasicEvents.h" #include "mozilla/EventForwards.h" #include "mozilla/GuardObjects.h" #include "mozilla/TaskCategory.h" @@ -1237,6 +1238,33 @@ public: bool aCancelable, bool *aDefaultAction = nullptr); + /** + * This method creates and dispatches a trusted event using an event message. + * @param aDoc The document which will be used to create the event. + * @param aTarget The target of the event, should be QIable to + * EventTarget. + * @param aEventMessage The event message. + * @param aCanBubble Whether the event can bubble. + * @param aCancelable Is the event cancelable. + * @param aDefaultAction Set to true if default action should be taken, + * see nsIDOMEventTarget::DispatchEvent. + */ + template + static nsresult DispatchTrustedEvent(nsIDocument* aDoc, + nsISupports* aTarget, + mozilla::EventMessage aEventMessage, + bool aCanBubble, + bool aCancelable, + bool *aDefaultAction = nullptr, + bool aOnlyChromeDispatch = false) + { + WidgetEventType event(true, aEventMessage); + MOZ_ASSERT(GetEventClassIDFromMessage(aEventMessage) == event.mClass); + return DispatchEvent(aDoc, aTarget, event, aEventMessage, + aCanBubble, aCancelable, true, + aDefaultAction, aOnlyChromeDispatch); + } + /** * This method creates and dispatches a untrusted event. * Works only with events which can be created by calling @@ -1257,6 +1285,34 @@ public: bool aCancelable, bool *aDefaultAction = nullptr); + + /** + * This method creates and dispatches a untrusted event using an event message. + * @param aDoc The document which will be used to create the event. + * @param aTarget The target of the event, should be QIable to + * EventTarget. + * @param aEventMessage The event message. + * @param aCanBubble Whether the event can bubble. + * @param aCancelable Is the event cancelable. + * @param aDefaultAction Set to true if default action should be taken, + * see nsIDOMEventTarget::DispatchEvent. + */ + template + static nsresult DispatchUntrustedEvent(nsIDocument* aDoc, + nsISupports* aTarget, + mozilla::EventMessage aEventMessage, + bool aCanBubble, + bool aCancelable, + bool *aDefaultAction = nullptr, + bool aOnlyChromeDispatch = false) + { + WidgetEventType event(false, aEventMessage); + MOZ_ASSERT(GetEventClassIDFromMessage(aEventMessage) == event.mClass); + return DispatchEvent(aDoc, aTarget, event, aEventMessage, + aCanBubble, aCancelable, false, + aDefaultAction, aOnlyChromeDispatch); + } + /** * This method creates and dispatches a trusted event to the chrome * event handler (the parent object of the DOM Window in the event target @@ -3005,6 +3061,16 @@ private: bool *aDefaultAction = nullptr, bool aOnlyChromeDispatch = false); + static nsresult DispatchEvent(nsIDocument* aDoc, + nsISupports* aTarget, + mozilla::WidgetEvent& aWidgetEvent, + mozilla::EventMessage aEventMessage, + bool aCanBubble, + bool aCancelable, + bool aTrusted, + bool *aDefaultAction = nullptr, + bool aOnlyChromeDispatch = false); + static void InitializeModifierStrings(); static void DropFragmentParsers(); @@ -3016,6 +3082,9 @@ private: static void* AllocClassMatchingInfo(nsINode* aRootNode, const nsString* aClasses); + static mozilla::EventClassID + GetEventClassIDFromMessage(mozilla::EventMessage aEventMessage); + // Fills in aInfo with the tokens from the supplied autocomplete attribute. static AutocompleteAttrState InternalSerializeAutocompleteAttribute(const nsAttrValue* aAttrVal, mozilla::dom::AutocompleteInfo& aInfo, From 513b79a035d2e7844077e37a82713822256330c0 Mon Sep 17 00:00:00 2001 From: Ehsan Akhgari Date: Fri, 16 Jun 2017 23:38:30 -0400 Subject: [PATCH 093/106] Bug 1373857 - Part 2: Add some AsyncEventDispatcher helpers for dispatching WidgetEvents directly; r=smaug --- dom/events/AsyncEventDispatcher.cpp | 12 ++++++++-- dom/events/AsyncEventDispatcher.h | 36 +++++++++++++++++++++++++++++ 2 files changed, 46 insertions(+), 2 deletions(-) diff --git a/dom/events/AsyncEventDispatcher.cpp b/dom/events/AsyncEventDispatcher.cpp index 1455edc55d9c..3dda3d6b0a7d 100644 --- a/dom/events/AsyncEventDispatcher.cpp +++ b/dom/events/AsyncEventDispatcher.cpp @@ -22,12 +22,14 @@ using namespace dom; AsyncEventDispatcher::AsyncEventDispatcher(EventTarget* aTarget, WidgetEvent& aEvent) - : mTarget(aTarget) + : mTarget(aTarget), + mEventMessage(eUnidentifiedEvent) { MOZ_ASSERT(mTarget); RefPtr event = EventDispatcher::CreateEvent(aTarget, nullptr, &aEvent, EmptyString()); mEvent = event.forget(); + mEventType.SetIsVoid(true); NS_ASSERTION(mEvent, "Should never fail to create an event"); mEvent->DuplicatePrivateData(); mEvent->SetTrusted(aEvent.IsTrusted()); @@ -39,14 +41,20 @@ AsyncEventDispatcher::Run() if (mCanceled) { return NS_OK; } + nsCOMPtr node = do_QueryInterface(mTarget); if (mCheckStillInDoc) { - nsCOMPtr node = do_QueryInterface(mTarget); MOZ_ASSERT(node); if (!node->IsInComposedDoc()) { return NS_OK; } } mTarget->AsyncEventRunning(this); + if (mEventMessage != eUnidentifiedEvent) { + return nsContentUtils::DispatchTrustedEvent + (node->OwnerDoc(), mTarget, mEventMessage, mBubbles, + false /* aCancelable */, nullptr /* aDefaultAction */, + mOnlyChromeDispatch); + } RefPtr event = mEvent ? mEvent->InternalDOMEvent() : nullptr; if (!event) { event = NS_NewDOMEvent(mTarget, nullptr, nullptr); diff --git a/dom/events/AsyncEventDispatcher.h b/dom/events/AsyncEventDispatcher.h index ea17be9977dd..3387eb6224c0 100644 --- a/dom/events/AsyncEventDispatcher.h +++ b/dom/events/AsyncEventDispatcher.h @@ -38,22 +38,54 @@ public: bool aBubbles, bool aOnlyChromeDispatch) : mTarget(aTarget) , mEventType(aEventType) + , mEventMessage(eUnidentifiedEvent) , mBubbles(aBubbles) , mOnlyChromeDispatch(aOnlyChromeDispatch) { } + /** + * If aOnlyChromeDispatch is true, the event is dispatched to only + * chrome node. In that case, if aTarget is already a chrome node, + * the event is dispatched to it, otherwise the dispatch path starts + * at the first chrome ancestor of that target. + */ + AsyncEventDispatcher(nsINode* aTarget, + mozilla::EventMessage aEventMessage, + bool aBubbles, bool aOnlyChromeDispatch) + : mTarget(aTarget) + , mEventMessage(aEventMessage) + , mBubbles(aBubbles) + , mOnlyChromeDispatch(aOnlyChromeDispatch) + { + mEventType.SetIsVoid(true); + MOZ_ASSERT(mEventMessage != eUnidentifiedEvent); + } + AsyncEventDispatcher(dom::EventTarget* aTarget, const nsAString& aEventType, bool aBubbles) : mTarget(aTarget) , mEventType(aEventType) + , mEventMessage(eUnidentifiedEvent) , mBubbles(aBubbles) { } + AsyncEventDispatcher(dom::EventTarget* aTarget, + mozilla::EventMessage aEventMessage, + bool aBubbles) + : mTarget(aTarget) + , mEventMessage(aEventMessage) + , mBubbles(aBubbles) + { + mEventType.SetIsVoid(true); + MOZ_ASSERT(mEventMessage != eUnidentifiedEvent); + } + AsyncEventDispatcher(dom::EventTarget* aTarget, nsIDOMEvent* aEvent) : mTarget(aTarget) , mEvent(aEvent) + , mEventMessage(eUnidentifiedEvent) { } @@ -71,7 +103,11 @@ public: nsCOMPtr mTarget; nsCOMPtr mEvent; + // If mEventType is set, mEventMessage will be eUnidentifiedEvent. + // If mEventMessage is set, mEventType will be void. + // They can never both be set at the same time. nsString mEventType; + mozilla::EventMessage mEventMessage; bool mBubbles = false; bool mOnlyChromeDispatch = false; bool mCanceled = false; From adfd9a2ef37619a6d19d4e41c39a5bc740f8900f Mon Sep 17 00:00:00 2001 From: Ehsan Akhgari Date: Fri, 16 Jun 2017 23:42:05 -0400 Subject: [PATCH 094/106] Bug 1373857 - Part 3: Optimize the PostHandleEvent() events that we dispatch for checkboxes and radiocontrols when they get toggled in order to make it use direct WidgetEvent dispatch; r=smaug --- dom/base/nsContentUtils.cpp | 1 + dom/base/nsGkAtomList.h | 2 ++ dom/events/EventNameList.h | 8 ++++++++ dom/html/HTMLInputElement.cpp | 34 +++++++++++++--------------------- widget/EventMessageList.h | 2 ++ widget/TextEvents.h | 2 +- 6 files changed, 27 insertions(+), 22 deletions(-) diff --git a/dom/base/nsContentUtils.cpp b/dom/base/nsContentUtils.cpp index 05407d173fac..5d11cc1ff0e0 100644 --- a/dom/base/nsContentUtils.cpp +++ b/dom/base/nsContentUtils.cpp @@ -890,6 +890,7 @@ nsContentUtils::InitializeEventTable() { #define EVENT(name_, _message, _type, _class) \ { nsGkAtoms::on##name_, _type, _message, _class, false }, #define WINDOW_ONLY_EVENT EVENT +#define DOCUMENT_ONLY_EVENT EVENT #define NON_IDL_EVENT EVENT #include "mozilla/EventNameList.h" #undef WINDOW_ONLY_EVENT diff --git a/dom/base/nsGkAtomList.h b/dom/base/nsGkAtomList.h index 627c4792e162..916d91931b7a 100644 --- a/dom/base/nsGkAtomList.h +++ b/dom/base/nsGkAtomList.h @@ -802,6 +802,7 @@ GK_ATOM(oncharacteristicchanged, "oncharacteristicchanged") GK_ATOM(onchargingchange, "onchargingchange") GK_ATOM(onchargingtimechange, "onchargingtimechange") GK_ATOM(onchecking, "onchecking") +GK_ATOM(onCheckboxStateChange, "onCheckboxStateChange") GK_ATOM(onclick, "onclick") GK_ATOM(onclirmodechange, "onclirmodechange") GK_ATOM(onclose, "onclose") @@ -970,6 +971,7 @@ GK_ATOM(onpushsubscriptionchange, "onpushsubscriptionchange") GK_ATOM(onpschange, "onpschange") GK_ATOM(onptychange, "onptychange") GK_ATOM(onradiostatechange, "onradiostatechange") +GK_ATOM(onRadioStateChange, "onRadioStateChange") GK_ATOM(onrdsdisabled, "onrdsdisabled") GK_ATOM(onrdsenabled, "onrdsenabled") GK_ATOM(onreaderror, "onreaderror") diff --git a/dom/events/EventNameList.h b/dom/events/EventNameList.h index bfc38376fe46..499eca02cfe1 100644 --- a/dom/events/EventNameList.h +++ b/dom/events/EventNameList.h @@ -164,6 +164,14 @@ EVENT(change, eFormChange, EventNameType_HTMLXUL, eBasicEventClass) +EVENT(CheckboxStateChange, + eFormCheckboxStateChange, + EventNameType_None, + eBasicEventClass) +EVENT(RadioStateChange, + eFormRadioStateChange, + EventNameType_None, + eBasicEventClass) EVENT(auxclick, eMouseAuxClick, EventNameType_All, diff --git a/dom/html/HTMLInputElement.cpp b/dom/html/HTMLInputElement.cpp index 4dc16b1ec130..0f890531ca93 100644 --- a/dom/html/HTMLInputElement.cpp +++ b/dom/html/HTMLInputElement.cpp @@ -1105,7 +1105,7 @@ UploadLastDir::Observe(nsISupports* aSubject, char const* aTopic, char16_t const //Helper method static nsresult FireEventForAccessibility(nsIDOMHTMLInputElement* aTarget, nsPresContext* aPresContext, - const nsAString& aEventType); + EventMessage aEventMessage); #endif nsTextEditorState* HTMLInputElement::sCachedTextEditorState = nullptr; @@ -4348,29 +4348,27 @@ HTMLInputElement::PostHandleEvent(EventChainPostVisitor& aVisitor) } } else { // Fire input event and then change event. - nsContentUtils::DispatchTrustedEvent(OwnerDoc(), - static_cast(this), - NS_LITERAL_STRING("input"), true, - false); + nsContentUtils::DispatchTrustedEvent + (OwnerDoc(), static_cast(this), + eEditorInput, true, false); - nsContentUtils::DispatchTrustedEvent(OwnerDoc(), - static_cast(this), - NS_LITERAL_STRING("change"), true, - false); + nsContentUtils::DispatchTrustedEvent + (OwnerDoc(), static_cast(this), + eFormChange, true, false); #ifdef ACCESSIBILITY // Fire an event to notify accessibility if (mType == NS_FORM_INPUT_CHECKBOX) { FireEventForAccessibility(this, aVisitor.mPresContext, - NS_LITERAL_STRING("CheckboxStateChange")); + eFormCheckboxStateChange); } else { FireEventForAccessibility(this, aVisitor.mPresContext, - NS_LITERAL_STRING("RadioStateChange")); + eFormRadioStateChange); // Fire event for the previous selected radio. nsCOMPtr previous = do_QueryInterface(aVisitor.mItemData); if (previous) { FireEventForAccessibility(previous, aVisitor.mPresContext, - NS_LITERAL_STRING("RadioStateChange")); + eFormRadioStateChange); } } #endif @@ -6283,17 +6281,11 @@ HTMLInputElement::SetSelectionDirection(const nsAString& aDirection, ErrorResult /*static*/ nsresult FireEventForAccessibility(nsIDOMHTMLInputElement* aTarget, nsPresContext* aPresContext, - const nsAString& aEventType) + EventMessage aEventMessage) { nsCOMPtr element = do_QueryInterface(aTarget); - RefPtr event = NS_NewDOMEvent(element, aPresContext, nullptr); - event->InitEvent(aEventType, true, true); - event->SetTrusted(true); - - EventDispatcher::DispatchDOMEvent(aTarget, nullptr, event, aPresContext, - nullptr); - - return NS_OK; + return nsContentUtils::DispatchTrustedEvent + (element->OwnerDoc(), aTarget, aEventMessage, true, true); } #endif diff --git a/widget/EventMessageList.h b/widget/EventMessageList.h index ab6e2bdd41bf..c42a4514e2ed 100644 --- a/widget/EventMessageList.h +++ b/widget/EventMessageList.h @@ -122,6 +122,8 @@ NS_EVENT_MESSAGE(eFormReset) NS_EVENT_MESSAGE(eFormChange) NS_EVENT_MESSAGE(eFormSelect) NS_EVENT_MESSAGE(eFormInvalid) +NS_EVENT_MESSAGE(eFormCheckboxStateChange) +NS_EVENT_MESSAGE(eFormRadioStateChange) //Need separate focus/blur notifications for non-native widgets NS_EVENT_MESSAGE(eFocus) diff --git a/widget/TextEvents.h b/widget/TextEvents.h index 084d4007f108..042092837441 100644 --- a/widget/TextEvents.h +++ b/widget/TextEvents.h @@ -1050,7 +1050,7 @@ public: } InternalEditorInputEvent(bool aIsTrusted, EventMessage aMessage, - nsIWidget* aWidget) + nsIWidget* aWidget = nullptr) : InternalUIEvent(aIsTrusted, aMessage, aWidget, eEditorInputEventClass) , mIsComposing(false) { From 16c4c4cfebec017ba0cd084c8ac33f90c48f3b39 Mon Sep 17 00:00:00 2001 From: Ehsan Akhgari Date: Fri, 16 Jun 2017 23:43:14 -0400 Subject: [PATCH 095/106] Bug 1373857 - Part 4: Optimize the selectionchange async event dispatcher to use direct WidgetEvent dispatch; r=smaug --- dom/base/SelectionChangeListener.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dom/base/SelectionChangeListener.cpp b/dom/base/SelectionChangeListener.cpp index 5f27e4859ee5..f3cdd62e12d5 100644 --- a/dom/base/SelectionChangeListener.cpp +++ b/dom/base/SelectionChangeListener.cpp @@ -146,7 +146,7 @@ SelectionChangeListener::NotifySelectionChanged(nsIDOMDocument* aDoc, if (target) { RefPtr asyncDispatcher = - new AsyncEventDispatcher(target, NS_LITERAL_STRING("selectionchange"), false); + new AsyncEventDispatcher(target, eSelectionChange, false); asyncDispatcher->PostDOMEvent(); } } else { @@ -161,7 +161,7 @@ SelectionChangeListener::NotifySelectionChanged(nsIDOMDocument* aDoc, nsCOMPtr doc = do_QueryInterface(aDoc); if (doc) { RefPtr asyncDispatcher = - new AsyncEventDispatcher(doc, NS_LITERAL_STRING("selectionchange"), false); + new AsyncEventDispatcher(doc, eSelectionChange, false); asyncDispatcher->PostDOMEvent(); } } From d30bedfd15fdb95829da7b34965b1002cdc60487 Mon Sep 17 00:00:00 2001 From: Olli Pettay Date: Fri, 28 Apr 2017 14:27:00 -0400 Subject: [PATCH 096/106] Bug 833143 - Don't GC in nsXREDirProvider::DoShutdown. r=bsmedberg, r=billm --- toolkit/xre/nsXREDirProvider.cpp | 9 --------- 1 file changed, 9 deletions(-) diff --git a/toolkit/xre/nsXREDirProvider.cpp b/toolkit/xre/nsXREDirProvider.cpp index fe717ca76936..fb66321daa77 100644 --- a/toolkit/xre/nsXREDirProvider.cpp +++ b/toolkit/xre/nsXREDirProvider.cpp @@ -1098,15 +1098,6 @@ nsXREDirProvider::DoShutdown() static const char16_t kShutdownPersist[] = u"shutdown-persist"; obsSvc->NotifyObservers(nullptr, "profile-change-net-teardown", kShutdownPersist); obsSvc->NotifyObservers(nullptr, "profile-change-teardown", kShutdownPersist); - - // Phase 2c: Now that things are torn down, force JS GC so that things which depend on - // resources which are about to go away in "profile-before-change" are destroyed first. - - if (JSContext* cx = dom::danger::GetJSContext()) { - JS_GC(cx); - } - - // Phase 3: Notify observers of a profile change obsSvc->NotifyObservers(nullptr, "profile-before-change", kShutdownPersist); obsSvc->NotifyObservers(nullptr, "profile-before-change-qm", kShutdownPersist); obsSvc->NotifyObservers(nullptr, "profile-before-change-telemetry", kShutdownPersist); From 6892764cecb8389753ba07edf657894c523f5d6b Mon Sep 17 00:00:00 2001 From: Aaron Klotz Date: Tue, 20 Jun 2017 12:32:21 -0600 Subject: [PATCH 097/106] Bug 1374643: Use IID instead of REFIID for a11y::HandlerProvider::mTargetUnkIid; r=jimm MozReview-Commit-ID: IMFMxhHsbp6 --- accessible/ipc/win/HandlerProvider.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/accessible/ipc/win/HandlerProvider.h b/accessible/ipc/win/HandlerProvider.h index 0540938ce512..8c879e70e105 100644 --- a/accessible/ipc/win/HandlerProvider.h +++ b/accessible/ipc/win/HandlerProvider.h @@ -64,7 +64,7 @@ private: Atomic mRefCnt; Mutex mMutex; // Protects mSerializer - REFIID mTargetUnkIid; + const IID mTargetUnkIid; mscom::InterceptorTargetPtr mTargetUnk; // Constant, main thread only UniquePtr mSerializer; }; From 0d4f03f58bbf3c14a2fc692275410a5b12798584 Mon Sep 17 00:00:00 2001 From: Aaron Klotz Date: Mon, 19 Jun 2017 16:43:24 -0600 Subject: [PATCH 098/106] Bug 1323069: mscom changes to facilitate resolution of remote client thread ID; r=jimm MozReview-Commit-ID: 9x9wZr7sRFI --- ipc/mscom/MainThreadClientInfo.cpp | 146 +++++++++++++++++++++++++++++ ipc/mscom/MainThreadClientInfo.h | 52 ++++++++++ ipc/mscom/MainThreadRuntime.cpp | 58 ++++++++++++ ipc/mscom/MainThreadRuntime.h | 13 +++ ipc/mscom/moz.build | 2 + 5 files changed, 271 insertions(+) create mode 100644 ipc/mscom/MainThreadClientInfo.cpp create mode 100644 ipc/mscom/MainThreadClientInfo.h diff --git a/ipc/mscom/MainThreadClientInfo.cpp b/ipc/mscom/MainThreadClientInfo.cpp new file mode 100644 index 000000000000..2a47f999fe6b --- /dev/null +++ b/ipc/mscom/MainThreadClientInfo.cpp @@ -0,0 +1,146 @@ +/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + +#include "MainThreadClientInfo.h" + +#include "MainThreadUtils.h" +#include "mozilla/Assertions.h" + +#include + +namespace mozilla { +namespace mscom { + +/* static */ +HRESULT +MainThreadClientInfo::Create(MainThreadClientInfo** aOutObj) +{ + MOZ_ASSERT(aOutObj && NS_IsMainThread()); + *aOutObj = nullptr; + + RefPtr obj(new MainThreadClientInfo()); + + RefPtr prevFilter; + HRESULT hr = ::CoRegisterMessageFilter(obj.get(), + getter_AddRefs(prevFilter)); + if (FAILED(hr)) { + return hr; + } + + obj->mPrevFilter = prevFilter.forget(); + + obj.forget(aOutObj); + return S_OK; +} + +DWORD +MainThreadClientInfo::GetLastRemoteCallThreadId() const +{ + MOZ_ASSERT(NS_IsMainThread()); + return mLastRemoteCallTid; +} + +HRESULT +MainThreadClientInfo::QueryInterface(REFIID aIid, void** aOutInterface) +{ + MOZ_ASSERT(NS_IsMainThread()); + + if (!aOutInterface) { + return E_INVALIDARG; + } + + if (aIid == IID_IUnknown || aIid == IID_IMessageFilter) { + RefPtr filter(this); + filter.forget(aOutInterface); + return S_OK; + } + + return E_NOINTERFACE; +} + +ULONG +MainThreadClientInfo::AddRef() +{ + MOZ_ASSERT(NS_IsMainThread()); + + return ++mRefCnt; +} + +ULONG +MainThreadClientInfo::Release() +{ + MOZ_ASSERT(NS_IsMainThread()); + + ULONG newCount = --mRefCnt; + if (!newCount) { + delete this; + } + return newCount; +} + +DWORD +MainThreadClientInfo::HandleInComingCall(DWORD aCallType, HTASK aCallerTid, + DWORD aTickCount, + LPINTERFACEINFO aInterfaceInfo) +{ + MOZ_ASSERT(NS_IsMainThread()); + + // aCallerTid is an HTASK for historical reasons but is actually just a + // regular DWORD Thread ID. + mLastRemoteCallTid = + static_cast(reinterpret_cast(aCallerTid)); + + if (!mPrevFilter) { + return SERVERCALL_ISHANDLED; + } + + return mPrevFilter->HandleInComingCall(aCallType, aCallerTid, aTickCount, + aInterfaceInfo); +} + +DWORD +MainThreadClientInfo::RetryRejectedCall(HTASK aCalleeTid, DWORD aTickCount, + DWORD aRejectType) +{ + MOZ_ASSERT(NS_IsMainThread()); + + if (!mPrevFilter) { + return 0; + } + + return mPrevFilter->RetryRejectedCall(aCalleeTid, aTickCount, aRejectType); +} + +DWORD +MainThreadClientInfo::MessagePending(HTASK aCalleeTid, DWORD aTickCount, + DWORD aPendingType) +{ + MOZ_ASSERT(NS_IsMainThread()); + + if (!mPrevFilter) { + return PENDINGMSG_WAITNOPROCESS; + } + + return mPrevFilter->MessagePending(aCalleeTid, aTickCount, aPendingType); +} + +MainThreadClientInfo::MainThreadClientInfo() + : mRefCnt(0) + , mLastRemoteCallTid(0) +{ + MOZ_ASSERT(NS_IsMainThread()); +} + +void +MainThreadClientInfo::Detach() +{ + MOZ_ASSERT(NS_IsMainThread()); + ::CoRegisterMessageFilter(mPrevFilter, nullptr); + mPrevFilter = nullptr; +} + +} // namespace mscom +} // namespace mozilla diff --git a/ipc/mscom/MainThreadClientInfo.h b/ipc/mscom/MainThreadClientInfo.h new file mode 100644 index 000000000000..06716b909964 --- /dev/null +++ b/ipc/mscom/MainThreadClientInfo.h @@ -0,0 +1,52 @@ +/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + +#ifndef mozilla_mscom_MainThreadClientInfo +#define mozilla_mscom_MainThreadClientInfo + +#include "mozilla/RefPtr.h" +#include "nsString.h" + +#include + +namespace mozilla { +namespace mscom { + +class MainThreadClientInfo final : public IMessageFilter +{ +public: + static HRESULT Create(MainThreadClientInfo** aOutObj); + + DWORD GetLastRemoteCallThreadId() const; + void Detach(); + + STDMETHODIMP QueryInterface(REFIID aIid, void** aOutInterface) override; + STDMETHODIMP_(ULONG) AddRef() override; + STDMETHODIMP_(ULONG) Release() override; + + STDMETHODIMP_(DWORD) HandleInComingCall(DWORD aCallType, HTASK aCallerTid, + DWORD aTickCount, + LPINTERFACEINFO aInterfaceInfo) override; + STDMETHODIMP_(DWORD) RetryRejectedCall(HTASK aCalleeTid, DWORD aTickCount, + DWORD aRejectType) override; + STDMETHODIMP_(DWORD) MessagePending(HTASK aCalleeTid, DWORD aTickCount, + DWORD aPendingType) override; + +private: + MainThreadClientInfo(); + ~MainThreadClientInfo() = default; + +private: + ULONG mRefCnt; + RefPtr mPrevFilter; + DWORD mLastRemoteCallTid; +}; + +} // namespace mscom +} // namespace mozilla + +#endif // mozilla_mscom_MainThreadClientInfo + diff --git a/ipc/mscom/MainThreadRuntime.cpp b/ipc/mscom/MainThreadRuntime.cpp index 7bd8e0049647..24f04166b68e 100644 --- a/ipc/mscom/MainThreadRuntime.cpp +++ b/ipc/mscom/MainThreadRuntime.cpp @@ -12,6 +12,7 @@ #include "mozilla/UniquePtr.h" #include "nsDebug.h" #include "nsWindowsHelpers.h" +#include "nsXULAppAPI.h" #include #include @@ -36,6 +37,8 @@ extern "C" void __cdecl SetOaNoCache(void); namespace mozilla { namespace mscom { +MainThreadRuntime* MainThreadRuntime::sInstance = nullptr; + MainThreadRuntime::MainThreadRuntime() : mInitResult(E_UNEXPECTED) { @@ -69,6 +72,61 @@ MainThreadRuntime::MainThreadRuntime() // Disable the BSTR cache (as it never invalidates, thus leaking memory) ::SetOaNoCache(); + + if (FAILED(mInitResult)) { + return; + } + + if (XRE_IsParentProcess()) { + MainThreadClientInfo::Create(getter_AddRefs(mClientInfo)); + } + + MOZ_ASSERT(!sInstance); + sInstance = this; +} + +MainThreadRuntime::~MainThreadRuntime() +{ + if (mClientInfo) { + mClientInfo->Detach(); + } + + MOZ_ASSERT(sInstance == this); + if (sInstance == this) { + sInstance = nullptr; + } +} + +/* static */ +DWORD +MainThreadRuntime::GetClientThreadId() +{ + MOZ_ASSERT(NS_IsMainThread()); + MOZ_ASSERT(XRE_IsParentProcess(), "Unsupported outside of parent process"); + if (!XRE_IsParentProcess()) { + return 0; + } + + // Don't check for a calling executable if the caller is in-process. + // We verify this by asking COM for a call context. If none exists, then + // we must be a local call. + RefPtr serverSecurity; + if (FAILED(::CoGetCallContext(IID_IServerSecurity, + getter_AddRefs(serverSecurity)))) { + return 0; + } + + MOZ_ASSERT(sInstance); + if (!sInstance) { + return 0; + } + + MOZ_ASSERT(sInstance->mClientInfo); + if (!sInstance->mClientInfo) { + return 0; + } + + return sInstance->mClientInfo->GetLastRemoteCallThreadId(); } HRESULT diff --git a/ipc/mscom/MainThreadRuntime.h b/ipc/mscom/MainThreadRuntime.h index 0e3e52c5f882..fbacacdf06ee 100644 --- a/ipc/mscom/MainThreadRuntime.h +++ b/ipc/mscom/MainThreadRuntime.h @@ -9,6 +9,8 @@ #include "mozilla/Attributes.h" #include "mozilla/mscom/COMApartmentRegion.h" +#include "mozilla/mscom/MainThreadClientInfo.h" +#include "mozilla/RefPtr.h" namespace mozilla { namespace mscom { @@ -17,6 +19,7 @@ class MOZ_NON_TEMPORARY_CLASS MainThreadRuntime { public: MainThreadRuntime(); + ~MainThreadRuntime(); explicit operator bool() const { @@ -28,11 +31,21 @@ public: MainThreadRuntime& operator=(MainThreadRuntime&) = delete; MainThreadRuntime& operator=(MainThreadRuntime&&) = delete; + /** + * @return 0 if call is in-process or resolving the calling thread failed, + * otherwise contains the thread id of the calling thread. + */ + static DWORD GetClientThreadId(); + private: HRESULT InitializeSecurity(); STARegion mStaRegion; HRESULT mInitResult; + + RefPtr mClientInfo; + + static MainThreadRuntime* sInstance; }; } // namespace mscom diff --git a/ipc/mscom/moz.build b/ipc/mscom/moz.build index a19f0faa480c..ca9415bee7df 100644 --- a/ipc/mscom/moz.build +++ b/ipc/mscom/moz.build @@ -11,6 +11,7 @@ EXPORTS.mozilla.mscom += [ 'COMApartmentRegion.h', 'COMPtrHolder.h', 'EnsureMTA.h', + 'MainThreadClientInfo.h', 'MainThreadRuntime.h', 'Objref.h', 'ProxyStream.h', @@ -21,6 +22,7 @@ EXPORTS.mozilla.mscom += [ UNIFIED_SOURCES += [ 'AgileReference.cpp', 'EnsureMTA.cpp', + 'MainThreadClientInfo.cpp', 'MainThreadRuntime.cpp', 'Objref.cpp', 'ProxyStream.cpp', From 1304f99552cae31b83215ceabeb9892016273603 Mon Sep 17 00:00:00 2001 From: Aaron Klotz Date: Thu, 15 Jun 2017 12:45:00 -0600 Subject: [PATCH 099/106] Bug 1323069: Declare A11Y_INSTANTIATORS telemetry probe; r=bsmedberg MozReview-Commit-ID: COqQ9NzgR7k --- toolkit/components/telemetry/Scalars.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/toolkit/components/telemetry/Scalars.yaml b/toolkit/components/telemetry/Scalars.yaml index 02a19d1a0e7d..4a00cc61a024 100644 --- a/toolkit/components/telemetry/Scalars.yaml +++ b/toolkit/components/telemetry/Scalars.yaml @@ -1,6 +1,24 @@ # This file contains a definition of the scalar probes that are recorded in Telemetry. # They are submitted with the "main" pings and can be inspected in about:telemetry. +# The following section contains the accessibility scalars. +a11y: + instantiators: + bug_numbers: + - 1323069 + description: > + The leaf name and version number of the binary for the process responsible + for remotely instantiating a11y. + expires: "61" + kind: string + notification_emails: + - dbolter@mozilla.com + record_in_processes: + - 'main' + release_channel_collection: opt-out + keyed: false + cpp_guard: 'ACCESSIBILITY' + # The following section contains the aushelper system add-on scalars. aushelper: websense_reg_version: From e07fd1e160a6f41a9cc95dff7a14a11a7b86c84b Mon Sep 17 00:00:00 2001 From: Aaron Klotz Date: Mon, 19 Jun 2017 20:57:35 -0600 Subject: [PATCH 100/106] Bug 1323069: Add ability to detect and identify remote a11y clients, as well as lazily instantiate a11y; r=eeejay MozReview-Commit-ID: FY5ZIValcp9 --- accessible/windows/msaa/LazyInstantiator.cpp | 833 ++++++++++++++++++ accessible/windows/msaa/LazyInstantiator.h | 133 +++ .../windows/msaa/RootAccessibleWrap.cpp | 63 +- accessible/windows/msaa/RootAccessibleWrap.h | 24 + accessible/windows/msaa/moz.build | 5 +- 5 files changed, 1054 insertions(+), 4 deletions(-) create mode 100644 accessible/windows/msaa/LazyInstantiator.cpp create mode 100644 accessible/windows/msaa/LazyInstantiator.h diff --git a/accessible/windows/msaa/LazyInstantiator.cpp b/accessible/windows/msaa/LazyInstantiator.cpp new file mode 100644 index 000000000000..266a41e743d6 --- /dev/null +++ b/accessible/windows/msaa/LazyInstantiator.cpp @@ -0,0 +1,833 @@ +/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + +#include "LazyInstantiator.h" + +#include "MainThreadUtils.h" +#include "mozilla/a11y/Accessible.h" +#include "mozilla/Assertions.h" +#include "mozilla/mscom/MainThreadRuntime.h" +#include "mozilla/mscom/Ptr.h" +#include "mozilla/mscom/Registration.h" +#include "mozilla/UniquePtr.h" +#include "nsAccessibilityService.h" +#include "nsWindowsHelpers.h" +#include "nsCOMPtr.h" +#include "nsIFile.h" +#include "nsXPCOM.h" +#include "RootAccessibleWrap.h" +#include "WinUtils.h" + +#if defined(MOZ_TELEMETRY_REPORTING) +#include "mozilla/Telemetry.h" +#endif // defined(MOZ_TELEMETRY_REPORTING) + +#include + +#if !defined(STATE_SYSTEM_NORMAL) +#define STATE_SYSTEM_NORMAL (0) +#endif // !defined(STATE_SYSTEM_NORMAL) + +/** + * Because our wrapped accessible is cycle-collected, we can't safely AddRef() + * or Release() ourselves off the main thread. This template specialization + * forces NewRunnableMethod() to use STAUniquePtr instead of RefPtr for managing + * a runnable's lifetime. Once the runnable has completed, the STAUniquePtr will + * post a runnable to the main thread to release ourselves from there. + */ +template<> +struct nsRunnableMethodReceiver +{ + mozilla::mscom::STAUniquePtr mObj; + explicit nsRunnableMethodReceiver(mozilla::a11y::LazyInstantiator* aObj) + : mObj(aObj) + { + MOZ_ASSERT(NS_IsMainThread()); + // STAUniquePtr does not implicitly AddRef(), so we must explicitly do so + // here. + aObj->AddRef(); + } + ~nsRunnableMethodReceiver() { Revoke(); } + mozilla::a11y::LazyInstantiator* Get() const { return mObj.get(); } + void Revoke() { mObj = nullptr; } + void SetDeadline(mozilla::TimeStamp aDeadline) {} +}; + +namespace mozilla { +namespace a11y { + +static const wchar_t kLazyInstantiatorProp[] = L"mozilla::a11y::LazyInstantiator"; + +/* static */ +already_AddRefed +LazyInstantiator::GetRootAccessible(HWND aHwnd) +{ + // There must only be one LazyInstantiator per HWND. + // To track this, we set the kLazyInstantiatorProp on the HWND with a pointer + // to an existing instance. We only create a new LazyInstatiator if that prop + // has not already been set. + LazyInstantiator* existingInstantiator = + reinterpret_cast(::GetProp(aHwnd, kLazyInstantiatorProp)); + + RefPtr result; + if (existingInstantiator) { + // Temporarily disable blind aggregation until we know that we have been + // marshaled. See EnableBlindAggregation for more information. + existingInstantiator->mAllowBlindAggregation = false; + result = existingInstantiator; + return result.forget(); + } + + // At this time we only want to check whether the acc service is running; We + // don't actually want to create the acc service yet. + if (!GetAccService()) { + // a11y is not running yet, there are no existing LazyInstantiators for this + // HWND, so create a new one and return it as a surrogate for the root + // accessible. + result = new LazyInstantiator(aHwnd); + return result.forget(); + } + + // a11y is running, so we just resolve the real root accessible. + a11y::Accessible* rootAcc = widget::WinUtils::GetRootAccessibleForHWND(aHwnd); + if (!rootAcc || !rootAcc->IsRoot()) { + return nullptr; + } + + // Subtle: rootAcc might still be wrapped by a LazyInstantiator, but we + // don't need LazyInstantiator's capabilities anymore (since a11y is already + // running). We can bypass LazyInstantiator by retrieving the internal + // unknown (which is not wrapped by the LazyInstantiator) and then querying + // that for IID_IAccessible. + a11y::RootAccessibleWrap* rootWrap = + static_cast(rootAcc); + RefPtr punk(rootWrap->GetInternalUnknown()); + + MOZ_ASSERT(punk); + if (!punk) { + return nullptr; + } + + punk->QueryInterface(IID_IAccessible, getter_AddRefs(result)); + return result.forget(); +} + +/** + * When marshaling an interface, COM makes a whole bunch of QueryInterface + * calls to determine what kind of marshaling the interface supports. We need + * to handle those queries without instantiating a11y, so we temporarily + * disable passing through of QueryInterface calls to a11y. Once we know that + * COM is finished marshaling, we call EnableBlindAggregation to re-enable + * QueryInterface passthrough. + */ +/* static */ +void +LazyInstantiator::EnableBlindAggregation(HWND aHwnd) +{ + LazyInstantiator* existingInstantiator = + reinterpret_cast(::GetProp(aHwnd, kLazyInstantiatorProp)); + + if (!existingInstantiator) { + return; + } + + existingInstantiator->mAllowBlindAggregation = true; +} + +LazyInstantiator::LazyInstantiator(HWND aHwnd) + : mHwnd(aHwnd) + , mAllowBlindAggregation(false) + , mWeakRootAccWrap(nullptr) + , mWeakAccessible(nullptr) + , mWeakDispatch(nullptr) +{ + MOZ_ASSERT(aHwnd); + // Assign ourselves as the designated LazyInstantiator for aHwnd + DebugOnly setPropOk = ::SetProp(aHwnd, kLazyInstantiatorProp, + reinterpret_cast(this)); + MOZ_ASSERT(setPropOk); +} + +LazyInstantiator::~LazyInstantiator() +{ + if (mRealRootUnk) { + // Disconnect ourselves from the root accessible. + RefPtr dummy(mWeakRootAccWrap->Aggregate(nullptr)); + } + + ClearProp(); +} + +void +LazyInstantiator::ClearProp() +{ + // Remove ourselves as the designated LazyInstantiator for mHwnd + DebugOnly removedProp = ::RemoveProp(mHwnd, kLazyInstantiatorProp); + MOZ_ASSERT(!removedProp || + reinterpret_cast(removedProp.value) == this); +} + +/** + * Given the remote client's thread ID, resolve its execuatable image name. + */ +bool +LazyInstantiator::GetClientExecutableName(const DWORD aClientTid, + nsIFile** aOutClientExe) +{ + nsAutoHandle callingThread(::OpenThread(THREAD_QUERY_LIMITED_INFORMATION, + FALSE, aClientTid)); + if (!callingThread) { + return false; + } + + DWORD callingPid = ::GetProcessIdOfThread(callingThread); + + nsAutoHandle callingProcess(::OpenProcess(PROCESS_QUERY_LIMITED_INFORMATION, + FALSE, callingPid)); + if (!callingProcess) { + return false; + } + + DWORD bufLen = MAX_PATH; + UniquePtr buf; + + while (true) { + buf = MakeUnique(bufLen); + if (::QueryFullProcessImageName(callingProcess, 0, buf.get(), &bufLen)) { + break; + } + + DWORD lastError = ::GetLastError(); + MOZ_ASSERT(lastError == ERROR_INSUFFICIENT_BUFFER); + if (lastError != ERROR_INSUFFICIENT_BUFFER) { + return false; + } + + bufLen *= 2; + } + + nsCOMPtr file; + nsresult rv = NS_NewLocalFile(nsDependentString(buf.get(), bufLen), false, + getter_AddRefs(file)); + if (NS_FAILED(rv)) { + return false; + } + + file.forget(aOutClientExe); + return NS_SUCCEEDED(rv); +} + +/** + * Given a remote client's thread ID, determine whether we should proceed with + * a11y instantiation. This is where telemetry should be gathered and any + * potential blocking of unwanted a11y clients should occur. + * + * @return true if we should instantiate a11y + */ +bool +LazyInstantiator::ShouldInstantiate(const DWORD aClientTid) +{ + if (!aClientTid) { + // aClientTid == 0 implies that this is either an in-process call, or else + // we failed to retrieve information about the remote caller. + // We should always default to instantiating a11y in this case. + return true; + } + + nsCOMPtr clientExe; + GetClientExecutableName(aClientTid, getter_AddRefs(clientExe)); + + // Blocklist checks should go here. return false if we should not instantiate. + /* + if (ClientShouldBeBlocked(clientExe)) { + return false; + } + */ + +#if defined(MOZ_TELEMETRY_REPORTING) + if (!mTelemetryThread) { + // Call GatherTelemetry on a background thread because it does I/O on + // the executable file to retrieve version information. + nsCOMPtr runnable( + NewRunnableMethod>(this, + &LazyInstantiator::GatherTelemetry, + clientExe)); + NS_NewThread(getter_AddRefs(mTelemetryThread), runnable); + } +#endif // defined(MOZ_TELEMETRY_REPORTING) + return true; +} + +#if defined(MOZ_TELEMETRY_REPORTING) +/** + * Appends version information in the format "|a.b.c.d". + * If there is no version information, we append nothing. + */ +void +LazyInstantiator::AppendVersionInfo(nsIFile* aClientExe, + nsAString& aStrToAppend) +{ + MOZ_ASSERT(!NS_IsMainThread()); + + nsAutoString fullPath; + nsresult rv = aClientExe->GetPath(fullPath); + if (NS_FAILED(rv)) { + return; + } + + DWORD verInfoSize = ::GetFileVersionInfoSize(fullPath.get(), nullptr); + if (!verInfoSize) { + return; + } + + auto verInfoBuf = MakeUnique(verInfoSize); + + if (!::GetFileVersionInfo(fullPath.get(), 0, verInfoSize, verInfoBuf.get())) { + return; + } + + VS_FIXEDFILEINFO* fixedInfo = nullptr; + UINT fixedInfoLen = 0; + + if (!::VerQueryValue(verInfoBuf.get(), L"\\", (LPVOID*) &fixedInfo, + &fixedInfoLen)) { + return; + } + + uint32_t major = HIWORD(fixedInfo->dwFileVersionMS); + uint32_t minor = LOWORD(fixedInfo->dwFileVersionMS); + uint32_t patch = HIWORD(fixedInfo->dwFileVersionLS); + uint32_t build = LOWORD(fixedInfo->dwFileVersionLS); + + aStrToAppend.AppendLiteral(u"|"); + + NS_NAMED_LITERAL_STRING(dot, "."); + + aStrToAppend.AppendInt(major); + aStrToAppend.Append(dot); + aStrToAppend.AppendInt(minor); + aStrToAppend.Append(dot); + aStrToAppend.AppendInt(patch); + aStrToAppend.Append(dot); + aStrToAppend.AppendInt(build); +} + +void +LazyInstantiator::GatherTelemetry(nsIFile* aClientExe) +{ + MOZ_ASSERT(!NS_IsMainThread()); + + nsAutoString value; + nsresult rv = aClientExe->GetLeafName(value); + if (NS_SUCCEEDED(rv)) { + AppendVersionInfo(aClientExe, value); + } + + // Now that we've (possibly) obtained version info, send the resulting + // string back to the main thread to accumulate in telemetry. + NS_DispatchToMainThread(NewNonOwningRunnableMethod(this, + &LazyInstantiator::AccumulateTelemetry, value)); +} + +void +LazyInstantiator::AccumulateTelemetry(const nsString& aValue) +{ + MOZ_ASSERT(NS_IsMainThread()); + + if (!aValue.IsEmpty()) { + Telemetry::ScalarSet(Telemetry::ScalarID::A11Y_INSTANTIATORS, aValue); + } + + mTelemetryThread->Shutdown(); + mTelemetryThread = nullptr; +} +#endif // defined(MOZ_TELEMETRY_REPORTING) + +RootAccessibleWrap* +LazyInstantiator::ResolveRootAccWrap() +{ + Accessible* acc = widget::WinUtils::GetRootAccessibleForHWND(mHwnd); + if (!acc || !acc->IsRoot()) { + return nullptr; + } + + return static_cast(acc); +} + +/** + * With COM aggregation, the aggregated inner object usually delegates its + * reference counting to the outer object. In other words, we would expect + * mRealRootUnk to delegate its AddRef() and Release() to this LazyInstantiator. + * + * This scheme will not work in our case because the RootAccessibleWrap is + * cycle-collected! + * + * Instead, once a LazyInstantiator aggregates a RootAccessibleWrap, we transfer + * our strong references into mRealRootUnk. Any future calls to AddRef or + * Release now operate on mRealRootUnk instead of our intrinsic reference + * count. This is a bit strange, but it is the only way for these objects to + * share their reference count in a way that is safe for cycle collection. + * + * How do we know when it is safe to destroy ourselves? In + * LazyInstantiator::Release, we examine the result of mRealRootUnk->Release(). + * If mRealRootUnk's resulting refcount is 1, then we know that the only + * remaining reference to mRealRootUnk is the mRealRootUnk reference itself (and + * thus nobody else holds references to either this or mRealRootUnk). Therefore + * we may now delete ourselves. + */ +void +LazyInstantiator::TransplantRefCnt() +{ + MOZ_ASSERT(mRefCnt > 0); + MOZ_ASSERT(mRealRootUnk); + + while (mRefCnt > 0) { + mRealRootUnk.get()->AddRef(); + --mRefCnt; + } +} + +HRESULT +LazyInstantiator::MaybeResolveRoot() +{ + MOZ_ASSERT(NS_IsMainThread()); + if (mWeakAccessible) { + return S_OK; + } + + if (GetAccService() || + ShouldInstantiate(mscom::MainThreadRuntime::GetClientThreadId())) { + mWeakRootAccWrap = ResolveRootAccWrap(); + if (!mWeakRootAccWrap) { + return E_POINTER; + } + + // Wrap ourselves around the root accessible wrap + mRealRootUnk = mWeakRootAccWrap->Aggregate(static_cast(this)); + if (!mRealRootUnk) { + return E_FAIL; + } + + // Move our strong references into the root accessible (see the comments + // above TransplantRefCnt for explanation). + TransplantRefCnt(); + + // Now obtain mWeakAccessible which we use to forward our incoming calls + // to the real accesssible. + HRESULT hr = mRealRootUnk->QueryInterface(IID_IAccessible, + (void**) &mWeakAccessible); + if (FAILED(hr)) { + return hr; + } + + // mWeakAccessible is weak, so don't hold a strong ref + mWeakAccessible->Release(); + + // Now that a11y is running, we don't need to remain registered with our + // HWND anymore. + ClearProp(); + + return S_OK; + } + + // If we don't want a real root, let's resolve a fake one. + + const WPARAM flags = 0xFFFFFFFFUL; + // Synthesize a WM_GETOBJECT request to obtain a system-implemented + // IAccessible object from DefWindowProc + LRESULT lresult = ::DefWindowProc(mHwnd, WM_GETOBJECT, flags, + static_cast(OBJID_CLIENT)); + + HRESULT hr = ObjectFromLresult(lresult, IID_IAccessible, flags, + getter_AddRefs(mRealRootUnk)); + if (FAILED(hr)) { + return hr; + } + + if (!mRealRootUnk) { + return E_NOTIMPL; + } + + hr = mRealRootUnk->QueryInterface(IID_IAccessible, + (void**) &mWeakAccessible); + if (FAILED(hr)) { + return hr; + } + + // mWeakAccessible is weak, so don't hold a strong ref + mWeakAccessible->Release(); + + return S_OK; +} + +#define RESOLVE_ROOT \ + { \ + HRESULT hr = MaybeResolveRoot(); \ + if (FAILED(hr)) { \ + return hr; \ + } \ + } + +IMPL_IUNKNOWN_QUERY_HEAD(LazyInstantiator) +IMPL_IUNKNOWN_QUERY_IFACE_AMBIGIOUS(IUnknown, IAccessible) +IMPL_IUNKNOWN_QUERY_IFACE(IAccessible) +IMPL_IUNKNOWN_QUERY_IFACE(IDispatch) +IMPL_IUNKNOWN_QUERY_IFACE(IServiceProvider) + // See EnableBlindAggregation for comments. + if (!mAllowBlindAggregation) { + return E_NOINTERFACE; + } +// If the client queries for an interface that LazyInstantiator does not +// intrinsically support, then we must resolve the root accessible and pass +// on the QueryInterface call to mRealRootUnk. +RESOLVE_ROOT +IMPL_IUNKNOWN_QUERY_TAIL_AGGREGATED(mRealRootUnk) + +ULONG +LazyInstantiator::AddRef() +{ + // Always delegate refcounting to mRealRootUnk when it exists + if (mRealRootUnk) { + return mRealRootUnk.get()->AddRef(); + } + + return ++mRefCnt; +} + +ULONG +LazyInstantiator::Release() +{ + ULONG result; + + // Always delegate refcounting to mRealRootUnk when it exists + if (mRealRootUnk) { + result = mRealRootUnk.get()->Release(); + if (result == 1) { + // mRealRootUnk is the only strong reference left, so nothing else holds + // a strong reference to us. Drop result to zero so that we destroy + // ourselves (See the comments above LazyInstantiator::TransplantRefCnt + // for more info). + --result; + } + } else { + result = --mRefCnt; + } + + if (!result) { + delete this; + } + return result; +} + +/** + * Create a standard IDispatch implementation. mStdDispatch will translate any + * IDispatch::Invoke calls into real IAccessible calls. + */ +HRESULT +LazyInstantiator::ResolveDispatch() +{ + if (mWeakDispatch) { + return S_OK; + } + + // The IAccessible typelib is embedded in oleacc.dll's resources. + auto typelib = mscom::RegisterTypelib(L"oleacc.dll", + mscom::RegistrationFlags::eUseSystemDirectory); + if (!typelib) { + return E_UNEXPECTED; + } + + // Extract IAccessible's type info + RefPtr accTypeInfo; + HRESULT hr = typelib->GetTypeInfoForGuid(IID_IAccessible, + getter_AddRefs(accTypeInfo)); + if (FAILED(hr)) { + return hr; + } + + // Now create the standard IDispatch for IAccessible + hr = ::CreateStdDispatch(static_cast(this), + static_cast(this), + accTypeInfo, getter_AddRefs(mStdDispatch)); + if (FAILED(hr)) { + return hr; + } + + hr = mStdDispatch->QueryInterface(IID_IDispatch, (void**)&mWeakDispatch); + if (FAILED(hr)) { + return hr; + } + + // WEAK reference + mWeakDispatch->Release(); + return S_OK; +} + +#define RESOLVE_IDISPATCH \ + { \ + HRESULT hr = ResolveDispatch(); \ + if (FAILED(hr)) { \ + return hr; \ + } \ + } + +/** + * The remaining methods implement IDispatch, IAccessible, and IServiceProvider, + * lazily resolving the real a11y objects and passing the call through. + */ + +HRESULT +LazyInstantiator::GetTypeInfoCount(UINT* pctinfo) +{ + RESOLVE_IDISPATCH; + return mWeakDispatch->GetTypeInfoCount(pctinfo); +} + +HRESULT +LazyInstantiator::GetTypeInfo(UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo) +{ + RESOLVE_IDISPATCH; + return mWeakDispatch->GetTypeInfo(iTInfo, lcid, ppTInfo); +} + +HRESULT +LazyInstantiator::GetIDsOfNames(REFIID riid, LPOLESTR *rgszNames, UINT cNames, + LCID lcid, DISPID* rgDispId) +{ + RESOLVE_IDISPATCH; + return mWeakDispatch->GetIDsOfNames(riid, rgszNames, cNames, lcid, rgDispId); +} + +HRESULT +LazyInstantiator::Invoke(DISPID dispIdMember, REFIID riid, LCID lcid, + WORD wFlags, DISPPARAMS* pDispParams, + VARIANT* pVarResult, EXCEPINFO* pExcepInfo, + UINT* puArgErr) +{ + RESOLVE_IDISPATCH; + return mWeakDispatch->Invoke(dispIdMember, riid, lcid, wFlags, pDispParams, + pVarResult, pExcepInfo, puArgErr); +} + +HRESULT +LazyInstantiator::get_accParent(IDispatch **ppdispParent) +{ + RESOLVE_ROOT; + return mWeakAccessible->get_accParent(ppdispParent); +} + +HRESULT +LazyInstantiator::get_accChildCount(long *pcountChildren) +{ + if (!pcountChildren) { + return E_INVALIDARG; + } + + RESOLVE_ROOT; + return mWeakAccessible->get_accChildCount(pcountChildren); +} + +HRESULT +LazyInstantiator::get_accChild(VARIANT varChild, IDispatch **ppdispChild) +{ + if (!ppdispChild) { + return E_INVALIDARG; + } + + RESOLVE_ROOT; + return mWeakAccessible->get_accChild(varChild, ppdispChild); +} + +HRESULT +LazyInstantiator::get_accName(VARIANT varChild, BSTR *pszName) +{ + if (!pszName) { + return E_INVALIDARG; + } + + RESOLVE_ROOT; + return mWeakAccessible->get_accName(varChild, pszName); +} + +HRESULT +LazyInstantiator::get_accValue(VARIANT varChild, BSTR *pszValue) +{ + if (!pszValue) { + return E_INVALIDARG; + } + + RESOLVE_ROOT; + return mWeakAccessible->get_accValue(varChild, pszValue); +} + +HRESULT +LazyInstantiator::get_accDescription(VARIANT varChild, BSTR *pszDescription) +{ + if (!pszDescription) { + return E_INVALIDARG; + } + + RESOLVE_ROOT; + return mWeakAccessible->get_accDescription(varChild, pszDescription); +} + +HRESULT +LazyInstantiator::get_accRole(VARIANT varChild, VARIANT *pvarRole) +{ + if (!pvarRole) { + return E_INVALIDARG; + } + + RESOLVE_ROOT; + return mWeakAccessible->get_accRole(varChild, pvarRole); +} + +HRESULT +LazyInstantiator::get_accState(VARIANT varChild, VARIANT *pvarState) +{ + if (!pvarState) { + return E_INVALIDARG; + } + + RESOLVE_ROOT; + return mWeakAccessible->get_accState(varChild, pvarState); +} + +HRESULT +LazyInstantiator::get_accHelp(VARIANT varChild, BSTR *pszHelp) +{ + return E_NOTIMPL; +} + +HRESULT +LazyInstantiator::get_accHelpTopic(BSTR *pszHelpFile, VARIANT varChild, + long *pidTopic) +{ + return E_NOTIMPL; +} + +HRESULT +LazyInstantiator::get_accKeyboardShortcut(VARIANT varChild, + BSTR *pszKeyboardShortcut) +{ + if (!pszKeyboardShortcut) { + return E_INVALIDARG; + } + + RESOLVE_ROOT; + return mWeakAccessible->get_accKeyboardShortcut(varChild, pszKeyboardShortcut); +} + +HRESULT +LazyInstantiator::get_accFocus(VARIANT *pvarChild) +{ + if (!pvarChild) { + return E_INVALIDARG; + } + + RESOLVE_ROOT; + return mWeakAccessible->get_accFocus(pvarChild); +} + +HRESULT +LazyInstantiator::get_accSelection(VARIANT *pvarChildren) +{ + if (!pvarChildren) { + return E_INVALIDARG; + } + + RESOLVE_ROOT; + return mWeakAccessible->get_accSelection(pvarChildren); +} + +HRESULT +LazyInstantiator::get_accDefaultAction(VARIANT varChild, BSTR *pszDefaultAction) +{ + if (!pszDefaultAction) { + return E_INVALIDARG; + } + + RESOLVE_ROOT; + return mWeakAccessible->get_accDefaultAction(varChild, pszDefaultAction); +} + +HRESULT +LazyInstantiator::accSelect(long flagsSelect, VARIANT varChild) +{ + RESOLVE_ROOT; + return mWeakAccessible->accSelect(flagsSelect, varChild); +} + +HRESULT +LazyInstantiator::accLocation(long *pxLeft, long *pyTop, long *pcxWidth, + long *pcyHeight, VARIANT varChild) +{ + RESOLVE_ROOT; + return mWeakAccessible->accLocation(pxLeft, pyTop, pcxWidth, pcyHeight, varChild); +} + +HRESULT +LazyInstantiator::accNavigate(long navDir, VARIANT varStart, + VARIANT *pvarEndUpAt) +{ + return E_NOTIMPL; +} + +HRESULT +LazyInstantiator::accHitTest(long xLeft, long yTop, VARIANT *pvarChild) +{ + if (!pvarChild) { + return E_INVALIDARG; + } + + RESOLVE_ROOT; + return mWeakAccessible->accHitTest(xLeft, yTop, pvarChild); +} + +HRESULT +LazyInstantiator::accDoDefaultAction(VARIANT varChild) +{ + RESOLVE_ROOT; + return mWeakAccessible->accDoDefaultAction(varChild); +} + +HRESULT +LazyInstantiator::put_accName(VARIANT varChild, BSTR szName) +{ + return E_NOTIMPL; +} + +HRESULT +LazyInstantiator::put_accValue(VARIANT varChild, BSTR szValue) +{ + return E_NOTIMPL; +} + +HRESULT +LazyInstantiator::QueryService(REFGUID aServiceId, REFIID aServiceIid, + void** aOutInterface) +{ + if (!aOutInterface) { + return E_INVALIDARG; + } + + *aOutInterface = nullptr; + + RESOLVE_ROOT; + + RefPtr servProv; + HRESULT hr = mRealRootUnk->QueryInterface(IID_IServiceProvider, + getter_AddRefs(servProv)); + if (FAILED(hr)) { + return hr; + } + + return servProv->QueryService(aServiceId, aServiceIid, aOutInterface); +} + +} // namespace a11y +} // namespace mozilla + diff --git a/accessible/windows/msaa/LazyInstantiator.h b/accessible/windows/msaa/LazyInstantiator.h new file mode 100644 index 000000000000..3b1ddf4cef19 --- /dev/null +++ b/accessible/windows/msaa/LazyInstantiator.h @@ -0,0 +1,133 @@ +/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + +#ifndef mozilla_a11y_LazyInstantiator_h +#define mozilla_a11y_LazyInstantiator_h + +#include "IUnknownImpl.h" +#include "mozilla/RefPtr.h" +#include "nsString.h" +#if defined(MOZ_TELEMETRY_REPORTING) +#include "nsThreadUtils.h" +#endif // defined(MOZ_TELEMETRY_REPORTING) + +#include + +class nsIFile; + +namespace mozilla { +namespace a11y { + +class RootAccessibleWrap; + +/** + * LazyInstantiator is an IAccessible that initially acts as a placeholder. + * The a11y service is not actually started until two conditions are met: + * + * (1) A method is called on the LazyInstantiator that would require a11y + * services in order to fulfill; and + * (2) LazyInstantiator::ShouldInstantiate returns true. + */ +class LazyInstantiator final : public IAccessible + , public IServiceProvider +{ +public: + static already_AddRefed GetRootAccessible(HWND aHwnd); + static void EnableBlindAggregation(HWND aHwnd); + + // IUnknown + STDMETHODIMP QueryInterface(REFIID aIid, void** aOutInterface) override; + STDMETHODIMP_(ULONG) AddRef() override; + STDMETHODIMP_(ULONG) Release() override; + + // IDispatch + STDMETHODIMP GetTypeInfoCount(UINT* pctinfo) override; + STDMETHODIMP GetTypeInfo(UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo) override; + STDMETHODIMP GetIDsOfNames(REFIID riid, LPOLESTR *rgszNames, UINT cNames, + LCID lcid, DISPID* rgDispId) override; + STDMETHODIMP Invoke(DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, + DISPPARAMS* pDispParams, VARIANT* pVarResult, + EXCEPINFO* pExcepInfo, UINT* puArgErr) override; + + // IAccessible + STDMETHODIMP get_accParent(IDispatch **ppdispParent) override; + STDMETHODIMP get_accChildCount(long *pcountChildren) override; + STDMETHODIMP get_accChild(VARIANT varChild, IDispatch **ppdispChild) override; + STDMETHODIMP get_accName(VARIANT varChild, BSTR *pszName) override; + STDMETHODIMP get_accValue(VARIANT varChild, BSTR *pszValue) override; + STDMETHODIMP get_accDescription(VARIANT varChild, BSTR *pszDescription) override; + STDMETHODIMP get_accRole(VARIANT varChild, VARIANT *pvarRole) override; + STDMETHODIMP get_accState(VARIANT varChild, VARIANT *pvarState) override; + STDMETHODIMP get_accHelp(VARIANT varChild, BSTR *pszHelp) override; + STDMETHODIMP get_accHelpTopic(BSTR *pszHelpFile, VARIANT varChild, long *pidTopic) override; + STDMETHODIMP get_accKeyboardShortcut(VARIANT varChild, BSTR *pszKeyboardShortcut) override; + STDMETHODIMP get_accFocus(VARIANT *pvarChild) override; + STDMETHODIMP get_accSelection(VARIANT *pvarChildren) override; + STDMETHODIMP get_accDefaultAction(VARIANT varChild, BSTR *pszDefaultAction) override; + STDMETHODIMP accSelect(long flagsSelect, VARIANT varChild) override; + STDMETHODIMP accLocation(long *pxLeft, long *pyTop, long *pcxWidth, long *pcyHeight, VARIANT varChild) override; + STDMETHODIMP accNavigate(long navDir, VARIANT varStart, VARIANT *pvarEndUpAt) override; + STDMETHODIMP accHitTest(long xLeft, long yTop, VARIANT *pvarChild) override; + STDMETHODIMP accDoDefaultAction(VARIANT varChild) override; + STDMETHODIMP put_accName(VARIANT varChild, BSTR szName) override; + STDMETHODIMP put_accValue(VARIANT varChild, BSTR szValue) override; + + // IServiceProvider + STDMETHODIMP QueryService(REFGUID aServiceId, REFIID aServiceIid, void** aOutInterface) override; + +private: + explicit LazyInstantiator(HWND aHwnd); + ~LazyInstantiator(); + + bool ShouldInstantiate(const DWORD aClientTid); + + bool GetClientExecutableName(const DWORD aClientTid, nsIFile** aOutClientExe); +#if defined(MOZ_TELEMETRY_REPORTING) + void AppendVersionInfo(nsIFile* aClientExe, nsAString& aStrToAppend); + void GatherTelemetry(nsIFile* aClientExe); + void AccumulateTelemetry(const nsString& aValue); +#endif // defined(MOZ_TELEMETRY_REPORTING) + + /** + * @return S_OK if we have a valid mRealRoot to invoke methods on + */ + HRESULT MaybeResolveRoot(); + + /** + * @return S_OK if we have a valid mWeakDispatch to invoke methods on + */ + HRESULT ResolveDispatch(); + + RootAccessibleWrap* ResolveRootAccWrap(); + void TransplantRefCnt(); + void ClearProp(); + +private: + mozilla::a11y::AutoRefCnt mRefCnt; + HWND mHwnd; + bool mAllowBlindAggregation; + RefPtr mRealRootUnk; + RefPtr mStdDispatch; + /** + * mWeakRootAccWrap, mWeakAccessible and mWeakDispatch are weak because they + * are interfaces that come from objects that we aggregate. Aggregated object + * interfaces share refcount methods with ours, so if we were to hold strong + * references to them, we would be holding strong references to ourselves, + * creating a cycle. + */ + RootAccessibleWrap* mWeakRootAccWrap; + IAccessible* mWeakAccessible; + IDispatch* mWeakDispatch; +#if defined(MOZ_TELEMETRY_REPORTING) + nsCOMPtr mTelemetryThread; +#endif // defined(MOZ_TELEMETRY_REPORTING) +}; + +} // namespace a11y +} // namespace mozilla + +#endif // mozilla_a11y_LazyInstantiator_h + diff --git a/accessible/windows/msaa/RootAccessibleWrap.cpp b/accessible/windows/msaa/RootAccessibleWrap.cpp index 30fe40c43e89..ed99b20a669f 100644 --- a/accessible/windows/msaa/RootAccessibleWrap.cpp +++ b/accessible/windows/msaa/RootAccessibleWrap.cpp @@ -14,9 +14,10 @@ using namespace mozilla::a11y; //////////////////////////////////////////////////////////////////////////////// // Constructor/destructor -RootAccessibleWrap:: - RootAccessibleWrap(nsIDocument* aDocument, nsIPresShell* aPresShell) : - RootAccessible(aDocument, aPresShell) +RootAccessibleWrap::RootAccessibleWrap(nsIDocument* aDocument, + nsIPresShell* aPresShell) + : RootAccessible(aDocument, aPresShell) + , mOuter(&mInternalUnknown) { } @@ -24,6 +25,62 @@ RootAccessibleWrap::~RootAccessibleWrap() { } +//////////////////////////////////////////////////////////////////////////////// +// Aggregated IUnknown +HRESULT +RootAccessibleWrap::InternalQueryInterface(REFIID aIid, void** aOutInterface) +{ + if (!aOutInterface) { + return E_INVALIDARG; + } + + // InternalQueryInterface should always return its internal unknown + // when queried for IID_IUnknown... + if (aIid == IID_IUnknown) { + RefPtr punk(&mInternalUnknown); + punk.forget(aOutInterface); + return S_OK; + } + + // ...Otherwise we pass through to the base COM implementation of + // QueryInterface which is provided by DocAccessibleWrap. + return DocAccessibleWrap::QueryInterface(aIid, aOutInterface); +} + +ULONG +RootAccessibleWrap::InternalAddRef() +{ + return DocAccessible::AddRef(); +} + +ULONG +RootAccessibleWrap::InternalRelease() +{ + return DocAccessible::Release(); +} + +already_AddRefed +RootAccessibleWrap::Aggregate(IUnknown* aOuter) +{ + MOZ_ASSERT(mOuter && (mOuter == &mInternalUnknown || mOuter == aOuter || !aOuter)); + if (!aOuter) { + // If there is no aOuter then we should always set mOuter to + // mInternalUnknown. This is standard COM aggregation stuff. + mOuter = &mInternalUnknown; + return nullptr; + } + + mOuter = aOuter; + return GetInternalUnknown(); +} + +already_AddRefed +RootAccessibleWrap::GetInternalUnknown() +{ + RefPtr result(&mInternalUnknown); + return result.forget(); +} + //////////////////////////////////////////////////////////////////////////////// // RootAccessible diff --git a/accessible/windows/msaa/RootAccessibleWrap.h b/accessible/windows/msaa/RootAccessibleWrap.h index 6aa6fefe38f6..676b08eea6f7 100644 --- a/accessible/windows/msaa/RootAccessibleWrap.h +++ b/accessible/windows/msaa/RootAccessibleWrap.h @@ -6,6 +6,7 @@ #ifndef mozilla_a11y_RootAccessibleWrap_h__ #define mozilla_a11y_RootAccessibleWrap_h__ +#include "mozilla/mscom/Aggregation.h" #include "RootAccessible.h" namespace mozilla { @@ -19,6 +20,29 @@ public: // RootAccessible virtual void DocumentActivated(DocAccessible* aDocument); + + /** + * This method enables a RootAccessibleWrap to be wrapped by a + * LazyInstantiator. + * + * @param aOuter The IUnknown of the object that is wrapping this + * RootAccessibleWrap, or nullptr to unwrap the aOuter from + * a previous call. + * @return This objects own IUnknown (as opposed to aOuter's IUnknown). + */ + already_AddRefed Aggregate(IUnknown* aOuter); + + /** + * @return This object's own IUnknown, as opposed to its wrapper's IUnknown + * which is what would be returned by QueryInterface(IID_IUnknown). + */ + already_AddRefed GetInternalUnknown(); + +private: + // DECLARE_AGGREGATABLE declares the internal IUnknown methods as well as + // mInternalUnknown. + DECLARE_AGGREGATABLE(RootAccessibleWrap); + IUnknown* mOuter; }; } // namespace a11y diff --git a/accessible/windows/msaa/moz.build b/accessible/windows/msaa/moz.build index 2886aff01a7f..feb64e23f21d 100644 --- a/accessible/windows/msaa/moz.build +++ b/accessible/windows/msaa/moz.build @@ -13,6 +13,7 @@ EXPORTS.mozilla.a11y += [ 'Compatibility.h', 'HyperTextAccessibleWrap.h', 'IDSet.h', + 'LazyInstantiator.h', 'MsaaIdGenerator.h', 'nsWinUtils.h', ] @@ -37,8 +38,10 @@ UNIFIED_SOURCES += [ 'TextLeafAccessibleWrap.cpp', ] -# This file cannot be built in unified mode because it includes ISimpleDOMNode_i.c. SOURCES += [ + # This file cannot be built in unified mode because it redefines _WIN32_WINNT + 'LazyInstantiator.cpp', + # This file cannot be built in unified mode because it includes ISimpleDOMNode_i.c. 'ServiceProvider.cpp', ] From 8910842b155da0e2b3ed59496e275ea2e2467fa4 Mon Sep 17 00:00:00 2001 From: Aaron Klotz Date: Thu, 15 Jun 2017 17:29:07 -0600 Subject: [PATCH 101/106] Bug 1323069: Widget changes to facilitate returning a11y::LazyInstantiator in response to WM_GETOBJECT; r=jimm MozReview-Commit-ID: JXbxr4tWEST --- widget/windows/WinUtils.cpp | 12 ++++++++++++ widget/windows/WinUtils.h | 8 ++++++++ widget/windows/nsWindow.cpp | 15 ++++++--------- 3 files changed, 26 insertions(+), 9 deletions(-) diff --git a/widget/windows/WinUtils.cpp b/widget/windows/WinUtils.cpp index fa4414190624..5a93c2201507 100644 --- a/widget/windows/WinUtils.cpp +++ b/widget/windows/WinUtils.cpp @@ -681,6 +681,18 @@ WinUtils::SetAPCPending() { sAPCPending = true; } + +/* static */ +a11y::Accessible* +WinUtils::GetRootAccessibleForHWND(HWND aHwnd) +{ + nsWindow* window = GetNSWindowPtr(aHwnd); + if (!window) { + return nullptr; + } + + return window->GetAccessible(); +} #endif // ACCESSIBILITY /* static */ diff --git a/widget/windows/WinUtils.h b/widget/windows/WinUtils.h index 497551379899..c1ab166da57a 100644 --- a/widget/windows/WinUtils.h +++ b/widget/windows/WinUtils.h @@ -105,6 +105,12 @@ typedef DPI_AWARENESS_CONTEXT(WINAPI * SetThreadDpiAwarenessContextProc)(DPI_AWA typedef BOOL(WINAPI * EnableNonClientDpiScalingProc)(HWND); namespace mozilla { +#if defined(ACCESSIBILITY) +namespace a11y { +class Accessible; +} // namespace a11y +#endif // defined(ACCESSIBILITY) + namespace widget { // Windows message debugging data @@ -492,6 +498,8 @@ public: #ifdef ACCESSIBILITY static void SetAPCPending(); + + static a11y::Accessible* GetRootAccessibleForHWND(HWND aHwnd); #endif private: diff --git a/widget/windows/nsWindow.cpp b/widget/windows/nsWindow.cpp index 07f5f8dd329e..8e25356c8323 100644 --- a/widget/windows/nsWindow.cpp +++ b/widget/windows/nsWindow.cpp @@ -163,6 +163,7 @@ #include #include "nsAccessibilityService.h" #include "mozilla/a11y/DocAccessible.h" +#include "mozilla/a11y/LazyInstantiator.h" #include "mozilla/a11y/Platform.h" #if !defined(WINABLEAPI) #include @@ -5940,15 +5941,11 @@ nsWindow::ProcessMessage(UINT msg, WPARAM& wParam, LPARAM& lParam, // for details). int32_t objId = static_cast(lParam); if (objId == OBJID_CLIENT) { // oleacc.dll will be loaded dynamically - a11y::Accessible* rootAccessible = GetAccessible(); // Held by a11y cache - if (rootAccessible) { - IAccessible *msaaAccessible = nullptr; - rootAccessible->GetNativeInterface((void**)&msaaAccessible); // does an addref - if (msaaAccessible) { - *aRetValue = LresultFromObject(IID_IAccessible, wParam, msaaAccessible); // does an addref - msaaAccessible->Release(); // release extra addref - result = true; // We handled the WM_GETOBJECT message - } + RefPtr root(a11y::LazyInstantiator::GetRootAccessible(mWnd)); + if (root) { + *aRetValue = LresultFromObject(IID_IAccessible, wParam, root); + a11y::LazyInstantiator::EnableBlindAggregation(mWnd); + result = true; } } } From a7ead2dafaa63e26c34ce510f0844f7977c00b21 Mon Sep 17 00:00:00 2001 From: Aaron Klotz Date: Tue, 20 Jun 2017 13:09:23 -0600 Subject: [PATCH 102/106] Bug 1323069: Fix conflict between this bug and bug 1371274; r=bustage CLOSED TREE --- accessible/windows/msaa/LazyInstantiator.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/accessible/windows/msaa/LazyInstantiator.cpp b/accessible/windows/msaa/LazyInstantiator.cpp index 266a41e743d6..04ce7d034c30 100644 --- a/accessible/windows/msaa/LazyInstantiator.cpp +++ b/accessible/windows/msaa/LazyInstantiator.cpp @@ -39,7 +39,7 @@ * post a runnable to the main thread to release ourselves from there. */ template<> -struct nsRunnableMethodReceiver +struct nsRunnableMethodReceiver { mozilla::mscom::STAUniquePtr mObj; explicit nsRunnableMethodReceiver(mozilla::a11y::LazyInstantiator* aObj) @@ -53,7 +53,6 @@ struct nsRunnableMethodReceiver ~nsRunnableMethodReceiver() { Revoke(); } mozilla::a11y::LazyInstantiator* Get() const { return mObj.get(); } void Revoke() { mObj = nullptr; } - void SetDeadline(mozilla::TimeStamp aDeadline) {} }; namespace mozilla { From d5e87c03747a1b32fd172d0d9e228f757459a30d Mon Sep 17 00:00:00 2001 From: Oriol Date: Tue, 20 Jun 2017 05:27:00 -0400 Subject: [PATCH 103/106] Bug 1370139 - Escape slashes in TreeView paths. r=Honza --- .../client/jsonview/components/json-panel.js | 30 +++-------- devtools/client/jsonview/test/browser.ini | 1 + .../jsonview/test/browser_jsonview_slash.js | 16 ++++++ .../src/components/properties-view.js | 40 +++------------ .../src/components/security-panel.js | 21 +------- .../shared/components/tree/tree-view.js | 51 ++++++++++++++++++- 6 files changed, 81 insertions(+), 78 deletions(-) create mode 100644 devtools/client/jsonview/test/browser_jsonview_slash.js diff --git a/devtools/client/jsonview/components/json-panel.js b/devtools/client/jsonview/components/json-panel.js index 66ced5ca6d58..7a91ae0ff6ef 100644 --- a/devtools/client/jsonview/components/json-panel.js +++ b/devtools/client/jsonview/components/json-panel.js @@ -8,7 +8,8 @@ define(function (require, exports, module) { const { DOM: dom, createFactory, createClass, PropTypes } = require("devtools/client/shared/vendor/react"); - const TreeView = createFactory(require("devtools/client/shared/components/tree/tree-view")); + const TreeViewClass = require("devtools/client/shared/components/tree/tree-view"); + const TreeView = createFactory(TreeViewClass); const { REPS, MODE } = require("devtools/client/shared/components/reps/reps"); const { createFactories } = require("devtools/client/shared/react-utils"); @@ -69,28 +70,6 @@ define(function (require, exports, module) { return json.toLowerCase().indexOf(this.props.searchFilter.toLowerCase()) >= 0; }, - getExpandedNodes: function (object, path = "", level = 0) { - if (typeof object != "object") { - return null; - } - - if (level > AUTO_EXPAND_MAX_LEVEL) { - return null; - } - - let expandedNodes = new Set(); - for (let prop in object) { - let nodePath = path + "/" + prop; - expandedNodes.add(nodePath); - - let nodes = this.getExpandedNodes(object[prop], nodePath, level + 1); - if (nodes) { - expandedNodes = new Set([...expandedNodes, ...nodes]); - } - } - return expandedNodes; - }, - renderValue: props => { let member = props.member; @@ -116,7 +95,10 @@ define(function (require, exports, module) { // Expand the document by default if its size isn't bigger than 100KB. let expandedNodes = new Set(); if (this.props.jsonTextLength <= AUTO_EXPAND_MAX_SIZE) { - expandedNodes = this.getExpandedNodes(this.props.data); + expandedNodes = TreeViewClass.getExpandedNodes( + this.props.data, + {maxLevel: AUTO_EXPAND_MAX_LEVEL} + ); } // Render tree component. diff --git a/devtools/client/jsonview/test/browser.ini b/devtools/client/jsonview/test/browser.ini index 07bb399eff5f..7a9e217be33a 100644 --- a/devtools/client/jsonview/test/browser.ini +++ b/devtools/client/jsonview/test/browser.ini @@ -36,6 +36,7 @@ skip-if = (os == 'linux' && bits == 32 && debug) # bug 1328915, disable linux32 [browser_jsonview_save_json.js] support-files = !/toolkit/content/tests/browser/common/mockTransfer.js +[browser_jsonview_slash.js] [browser_jsonview_utf8.js] [browser_jsonview_valid_json.js] [browser_json_refresh.js] diff --git a/devtools/client/jsonview/test/browser_jsonview_slash.js b/devtools/client/jsonview/test/browser_jsonview_slash.js new file mode 100644 index 000000000000..9a242b824ee5 --- /dev/null +++ b/devtools/client/jsonview/test/browser_jsonview_slash.js @@ -0,0 +1,16 @@ +/* -*- indent-tabs-mode: nil; js-indent-level: 2 -*- */ +/* vim: set ts=2 et sw=2 tw=80: */ +/* Any copyright is dedicated to the Public Domain. + * http://creativecommons.org/publicdomain/zero/1.0/ */ + +"use strict"; + +add_task(function* () { + info("Test JSON with NUL started."); + + const TEST_JSON_URL = "data:application/json,{\"a/b\":[1,2],\"a\":{\"b\":[3,4]}}"; + yield addJsonViewTab(TEST_JSON_URL); + + let countBefore = yield getElementCount(".jsonPanelBox .treeTable .treeRow"); + ok(countBefore == 7, "There must be seven rows"); +}); diff --git a/devtools/client/netmonitor/src/components/properties-view.js b/devtools/client/netmonitor/src/components/properties-view.js index 04b6aee2d400..1d52ae8b3a21 100644 --- a/devtools/client/netmonitor/src/components/properties-view.js +++ b/devtools/client/netmonitor/src/components/properties-view.js @@ -20,7 +20,8 @@ const { FILTER_SEARCH_DELAY } = require("../constants"); // Components const SearchBox = createFactory(require("devtools/client/shared/components/search-box")); -const TreeView = createFactory(require("devtools/client/shared/components/tree/tree-view")); +const TreeViewClass = require("devtools/client/shared/components/tree/tree-view"); +const TreeView = createFactory(TreeViewClass); const TreeRow = createFactory(require("devtools/client/shared/components/tree/tree-row")); const SourceEditor = createFactory(require("./source-editor")); @@ -137,38 +138,6 @@ const PropertiesView = createClass({ }); }, - getExpandedNodes: function (object, path = "", level = 0) { - if (typeof object != "object") { - return null; - } - - if (level > AUTO_EXPAND_MAX_LEVEL) { - return null; - } - - let expandedNodes = new Set(); - for (let prop in object) { - if (expandedNodes.size > AUTO_EXPAND_MAX_NODES) { - // If we reached the limit of expandable nodes, bail out to avoid performance - // issues. - break; - } - - let nodePath = path + "/" + prop; - expandedNodes.add(nodePath); - - let nodes = this.getExpandedNodes(object[prop], nodePath, level + 1); - if (nodes) { - let newSize = expandedNodes.size + nodes.size; - if (newSize < AUTO_EXPAND_MAX_NODES) { - // Avoid having a subtree half expanded. - expandedNodes = new Set([...expandedNodes, ...nodes]); - } - } - } - return expandedNodes; - }, - render() { const { decorator, @@ -205,7 +174,10 @@ const PropertiesView = createClass({ enableInput, expandableStrings, useQuotes: false, - expandedNodes: this.getExpandedNodes(object), + expandedNodes: TreeViewClass.getExpandedNodes( + object, + {maxLevel: AUTO_EXPAND_MAX_LEVEL, maxNodes: AUTO_EXPAND_MAX_NODES} + ), onFilter: (props) => this.onFilter(props, sectionNames), renderRow: renderRow || this.renderRowWithEditor, renderValue: renderValue || this.renderValueWithRep, diff --git a/devtools/client/netmonitor/src/components/security-panel.js b/devtools/client/netmonitor/src/components/security-panel.js index 7606448ceae2..faceb47996eb 100644 --- a/devtools/client/netmonitor/src/components/security-panel.js +++ b/devtools/client/netmonitor/src/components/security-panel.js @@ -13,6 +13,7 @@ const { L10N } = require("../utils/l10n"); const { getUrlHost } = require("../utils/request-utils"); // Components +const TreeViewClass = require("devtools/client/shared/components/tree/tree-view"); const PropertiesView = createFactory(require("./properties-view")); const { div, input, span } = DOM; @@ -95,7 +96,7 @@ function SecurityPanel({ request }) { object, renderValue: (props) => renderValue(props, securityInfo.weaknessReasons), enableFilter: false, - expandedNodes: getExpandedNodes(object), + expandedNodes: TreeViewClass.getExpandedNodes(object), }) ); } @@ -139,22 +140,4 @@ function renderValue(props, weaknessReasons = []) { ); } -function getExpandedNodes(object, path = "", level = 0) { - if (typeof object !== "object") { - return null; - } - - let expandedNodes = new Set(); - for (let prop in object) { - let nodePath = path + "/" + prop; - expandedNodes.add(nodePath); - - let nodes = getExpandedNodes(object[prop], nodePath, level + 1); - if (nodes) { - expandedNodes = new Set([...expandedNodes, ...nodes]); - } - } - return expandedNodes; -} - module.exports = SecurityPanel; diff --git a/devtools/client/shared/components/tree/tree-view.js b/devtools/client/shared/components/tree/tree-view.js index d23c9c7c0755..237aaca6435c 100644 --- a/devtools/client/shared/components/tree/tree-view.js +++ b/devtools/client/shared/components/tree/tree-view.js @@ -277,7 +277,7 @@ define(function (require, exports, module) { return children.map(child => { let key = provider.getKey(child); - let nodePath = path + "/" + key; + let nodePath = TreeView.subPath(path, key); let type = provider.getType(child); let hasChildren = provider.hasChildren(child); @@ -419,6 +419,55 @@ define(function (require, exports, module) { } }); + TreeView.subPath = function (path, subKey) { + return path + "/" + String(subKey).replace(/[\\/]/g, "\\$&"); + }; + + /** + * Creates a set with the paths of the nodes that should be expanded by default + * according to the passed options. + * @param {Object} The root node of the tree. + * @param {Object} [optional] An object with the following optional parameters: + * - maxLevel: nodes nested deeper than this level won't be expanded. + * - maxNodes: maximum number of nodes that can be expanded. The traversal is + breadth-first, so expanding nodes nearer to the root will be preferred. + Sibling nodes will either be all expanded or none expanded. + * } + */ + TreeView.getExpandedNodes = function (rootObj, + { maxLevel = Infinity, maxNodes = Infinity } = {} + ) { + let expandedNodes = new Set(); + let queue = [{ + object: rootObj, + level: 1, + path: "" + }]; + while (queue.length) { + let {object, level, path} = queue.shift(); + if (Object(object) !== object) { + continue; + } + let keys = Object.keys(object); + if (expandedNodes.size + keys.length > maxNodes) { + // Avoid having children half expanded. + break; + } + for (let key of keys) { + let nodePath = TreeView.subPath(path, key); + expandedNodes.add(nodePath); + if (level < maxLevel) { + queue.push({ + object: object[key], + level: level + 1, + path: nodePath + }); + } + } + } + return expandedNodes; + }; + // Helpers /** From 7566f0b60b19fd58cef6b6388756b02646ac759c Mon Sep 17 00:00:00 2001 From: ffxbld <> Date: Tue, 20 Jun 2017 08:46:58 -0700 Subject: [PATCH 104/106] No bug, Automated HSTS preload list update from host bld-linux64-spot-301 - a=hsts-update --- security/manager/ssl/nsSTSPreloadList.errors | 163 +- security/manager/ssl/nsSTSPreloadList.inc | 41810 ++++++++--------- 2 files changed, 20979 insertions(+), 20994 deletions(-) diff --git a/security/manager/ssl/nsSTSPreloadList.errors b/security/manager/ssl/nsSTSPreloadList.errors index f4ef6d1ad813..035ea0059b89 100644 --- a/security/manager/ssl/nsSTSPreloadList.errors +++ b/security/manager/ssl/nsSTSPreloadList.errors @@ -25,7 +25,6 @@ 12vpnchina.com: could not connect to host 163pwd.com: could not connect to host 16packets.com: could not connect to host -173vpn.cn: did not receive HSTS header 188betwarriors.co.uk: could not connect to host 188trafalgar.ca: did not receive HSTS header 1a-jva.de: could not connect to host @@ -62,7 +61,6 @@ 368mibn.com: could not connect to host 38sihu.com: could not connect to host 39sihu.com: could not connect to host -3ags.de: did not receive HSTS header 3chit.cf: could not connect to host 3click-loan.com: could not connect to host 3delivered.com: could not connect to host @@ -236,7 +234,6 @@ alberguecimballa.es: could not connect to host albertbogdanowicz.pl: did not receive HSTS header albertopimienta.com: did not receive HSTS header alcazaar.com: could not connect to host -alcnutrition.com: could not connect to host alecvannoten.be: did not receive HSTS header alenan.org: could not connect to host alessandro.pw: did not receive HSTS header @@ -349,6 +346,7 @@ antscript.com: did not receive HSTS header anycoin.me: could not connect to host aocast.info: could not connect to host aojf.fr: could not connect to host +aosus.org: did not receive HSTS header aozora.moe: could not connect to host apachelounge.com: did not receive HSTS header aparaatti.org: could not connect to host @@ -378,7 +376,6 @@ apps-for-fishing.com: could not connect to host appsbystudio.co.uk: could not connect to host appsdash.io: could not connect to host aqilacademy.com.au: could not connect to host -aqualogy.de: could not connect to host aquilalab.com: could not connect to host arabdigitalexpression.org: did not receive HSTS header aradulconteaza.ro: could not connect to host @@ -485,7 +482,6 @@ avantmfg.com: did not receive HSTS header avec-ou-sans-ordonnance.fr: could not connect to host avepol.cz: did not receive HSTS header avepol.eu: did not receive HSTS header -avi9526.pp.ua: could not connect to host aviacao.pt: did not receive HSTS header avinet.com: max-age too low: 0 avqueen.cn: did not receive HSTS header @@ -498,6 +494,7 @@ axeny.com: did not receive HSTS header ayuru.info: did not receive HSTS header az.search.yahoo.com: did not receive HSTS header azino777.ru: did not receive HSTS header +azort.com: did not receive HSTS header azprep.us: could not connect to host b-landia.net: could not connect to host b303.me: did not receive HSTS header @@ -625,7 +622,7 @@ bfelob.gov: max-age too low: 86400 bffm.biz: could not connect to host bgcparkstad.nl: did not receive HSTS header bgmn.net: could not connect to host -bhatia.at: could not connect to host +bhatia.at: [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsISiteSecurityService.processHeader]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: /builds/slave/m-cen-l64-periodicupdate-00000/getHSTSPreloadList.js :: processStsHeader :: line 118" data: no] bi.search.yahoo.com: did not receive HSTS header biblerhymes.com: did not receive HSTS header bidon.ca: did not receive HSTS header @@ -681,6 +678,7 @@ blackburn.link: could not connect to host blackdragoninc.org: could not connect to host blacklane.com: did not receive HSTS header blackly.uk: max-age too low: 0 +blacknova.io: could not connect to host blackpayment.ru: could not connect to host blackunicorn.wtf: could not connect to host blakerandall.xyz: could not connect to host @@ -792,12 +790,10 @@ buildsaver.co.za: did not receive HSTS header built.by: did not receive HSTS header bul3seas.eu: could not connect to host bulkbuy.tech: could not connect to host -bullbits.com: could not connect to host bulletpoint.cz: could not connect to host bullterrier.me: could not connect to host bulmafox.com: could not connect to host bumarkamoda.com: did not receive HSTS header -bunadarbankinn.is: could not connect to host bunaken.asia: did not receive HSTS header bunbomenu.de: could not connect to host bunsenlabs.org: max-age too low: 259200 @@ -1028,7 +1024,6 @@ cintdirect.com: could not connect to host ciplanutrition.com: did not receive HSTS header ciscommerce.net: [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsISiteSecurityService.processHeader]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: /builds/slave/m-cen-l64-periodicupdate-00000/getHSTSPreloadList.js :: processStsHeader :: line 118" data: no] citiagent.cz: could not connect to host -citymoobel.ee: did not receive HSTS header cityoflaurel.org: did not receive HSTS header ciuciucadou.ro: could not connect to host cium.ru: could not connect to host @@ -1048,6 +1043,7 @@ clickandshoot.nl: did not receive HSTS header clickgram.biz: could not connect to host clicn.bio: could not connect to host clicnbio.com: did not receive HSTS header +clientboss.com: did not receive HSTS header clientsecure.me: could not connect to host cliniquepariseau.com: could not connect to host clint.id.au: max-age too low: 0 @@ -1074,7 +1070,6 @@ cloudstrike.co: could not connect to host cloudwalk.io: did not receive HSTS header cloverleaf.net: max-age too low: 0 clowde.in: could not connect to host -cloxy.com: did not receive HSTS header clubmix.co.kr: could not connect to host cluster.id: could not connect to host clustermaze.net: could not connect to host @@ -1086,10 +1081,8 @@ cmsbattle.com: could not connect to host cmscafe.ru: did not receive HSTS header cmso-cal.com: could not connect to host cn.search.yahoo.com: did not receive HSTS header -cnc-lehrgang.de: could not connect to host cncn.us: did not receive HSTS header cni-certing.it: max-age too low: 0 -cnlic.com: could not connect to host cnwage.com: could not connect to host cobrasystems.nl: max-age too low: 0 cocktailfuture.fr: could not connect to host @@ -1118,6 +1111,8 @@ coffeestrategies.com: max-age too low: 0 coiffeurschnittstelle.ch: did not receive HSTS header coindam.com: could not connect to host coldlostsick.net: could not connect to host +colearnr.com: could not connect to host +colinchartier.com: could not connect to host collegepulse.org: did not receive HSTS header collies.eu: max-age too low: 3 collins.kg: did not receive HSTS header @@ -1152,6 +1147,9 @@ connect.ua: did not receive HSTS header connected-verhuurservice.nl: did not receive HSTS header connectfss.com: could not connect to host consciousandglamorous.com: could not connect to host +consciousbrand.org.au: could not connect to host +consciousbranding.org.au: could not connect to host +consciousbrands.net.au: could not connect to host console.python.org: did not receive HSTS header console.support: did not receive HSTS header constructionjobs.com: did not receive HSTS header @@ -1185,6 +1183,7 @@ corruption-mc.net: could not connect to host corruption-rsps.net: could not connect to host corruption-server.net: could not connect to host corsa-b.uk: could not connect to host +costow.club: could not connect to host count.sh: could not connect to host couragewhispers.ca: did not receive HSTS header coursdeprogrammation.com: could not connect to host @@ -1278,7 +1277,10 @@ cuvva.insure: did not receive HSTS header cuvva.io: did not receive HSTS header cuvva.it: did not receive HSTS header cuvva.me: did not receive HSTS header +cuvva.net: did not receive HSTS header cuvva.org: did not receive HSTS header +cuvva.uk: did not receive HSTS header +cuvva.us: did not receive HSTS header cyanogenmod.xxx: could not connect to host cyber-computer.club: could not connect to host cyberpunk.ca: could not connect to host @@ -1289,7 +1291,6 @@ cyberxpert.nl: could not connect to host cycleluxembourg.lu: did not receive HSTS header cydia-search.io: could not connect to host cyhour.com: did not receive HSTS header -cymtech.net: did not receive HSTS header cynoshair.com: could not connect to host cyphertite.com: could not connect to host cytadel.fr: did not receive HSTS header @@ -1308,6 +1309,7 @@ dalingk.co: could not connect to host damedrogy.cz: could not connect to host damianuv-blog.cz: did not receive HSTS header dancerdates.net: could not connect to host +dane-bre.net: could not connect to host daniel-steuer.de: could not connect to host danielcowie.me: could not connect to host danieldk.eu: did not receive HSTS header @@ -1423,7 +1425,6 @@ devafterdark.com: could not connect to host devcu.com: could not connect to host devcu.net: could not connect to host develop.cool: could not connect to host -developerfair.com: could not connect to host devincrow.me: could not connect to host devmsg.com: did not receive HSTS header devnsec.com: could not connect to host @@ -1573,8 +1574,10 @@ duesee.org: could not connect to host dullsir.com: did not receive HSTS header dungi.org: could not connect to host duskopy.top: could not connect to host +dutchessuganda.com: did not receive HSTS header dutchrank.com: did not receive HSTS header duuu.ch: could not connect to host +dworzak.ch: could not connect to host dycontrol.de: could not connect to host dyktig.as: did not receive HSTS header dylanscott.com.au: did not receive HSTS header @@ -1632,6 +1635,7 @@ edissecurity.sk: did not receive HSTS header edix.ru: could not connect to host edk.com.tr: did not receive HSTS header edmodo.com: did not receive HSTS header +eduif.nl: [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsISiteSecurityService.processHeader]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: /builds/slave/m-cen-l64-periodicupdate-00000/getHSTSPreloadList.js :: processStsHeader :: line 118" data: no] eduvance.in: did not receive HSTS header eeqj.com: could not connect to host efficienthealth.com: did not receive HSTS header @@ -1645,8 +1649,6 @@ ehito.ovh: could not connect to host ehrenamt-skpfcw.de: could not connect to host eicfood.com: could not connect to host ekbanden.nl: could not connect to host -ekedc.com: could not connect to host -ekedp.com: could not connect to host eksik.com: could not connect to host elaintehtaat.fi: did not receive HSTS header elan-organics.com: did not receive HSTS header @@ -1698,6 +1700,7 @@ endlesshorizon.net: could not connect to host endlesstone.com: did not receive HSTS header enefan.jp: could not connect to host engelwerbung.com: did not receive HSTS header +engineeryourmarketing.com: could not connect to host enginsight.com: did not receive HSTS header englishyamal.ru: did not receive HSTS header enigmacpt.com: did not receive HSTS header @@ -1751,7 +1754,6 @@ esko.bar: could not connect to host esln.org: did not receive HSTS header esn-ypci.com: could not connect to host esocweb.com: could not connect to host -esoterikerforum.de: did not receive HSTS header especificosba.com.mx: could not connect to host espo.com.ua: did not receive HSTS header espra.com: could not connect to host @@ -1762,6 +1764,7 @@ estebanborges.com: did not receive HSTS header estilosapeca.com: could not connect to host et-buchholz.de: could not connect to host et180.com: could not connect to host +etaxi.tn: could not connect to host etdonline.co.uk: could not connect to host eternitylove.us: could not connect to host eth9.net: could not connect to host @@ -1785,12 +1788,12 @@ euren.se: could not connect to host eurocamping.se: could not connect to host euroshop24.net: could not connect to host evafojtova.cz: did not receive HSTS header -evalesc.com: could not connect to host evdenevenakliyatankara.pw: did not receive HSTS header events12.com: did not receive HSTS header everybooks.com: max-age too low: 60 everylab.org: could not connect to host everything.place: could not connect to host +eveseat.net: could not connect to host evilnerd.de: did not receive HSTS header evilsay.com: could not connect to host evin.ml: could not connect to host @@ -1814,6 +1817,7 @@ extrathemeshowcase.net: could not connect to host extratorrentlive.xyz: could not connect to host extratorrents.tech: could not connect to host extreemhost.nl: did not receive HSTS header +extrememanual.net: did not receive HSTS header extremenetworking.net: could not connect to host exy.pw: could not connect to host exyplis.com: did not receive HSTS header @@ -1855,6 +1859,7 @@ fanyl.cn: could not connect to host farhadexchange.com: did not receive HSTS header fashioncare.cz: did not receive HSTS header fasset.jp: could not connect to host +fastcomcorp.com: could not connect to host fastdigitizing.com: max-age too low: 300 fastograph.com: could not connect to host fastopen.ml: could not connect to host @@ -1888,6 +1893,7 @@ fettbrot.tk: did not receive HSTS header fexmen.com: could not connect to host ffmradio.de: did not receive HSTS header fics-twosigma.com: could not connect to host +fifieldtech.com: could not connect to host fiftyshadesofluca.ml: could not connect to host fig.co: did not receive HSTS header fightr.co: could not connect to host @@ -1953,7 +1959,6 @@ flukethoughts.com: could not connect to host flurrybridge.com: did not receive HSTS header flushstudios.com: did not receive HSTS header flyaces.com: did not receive HSTS header -flyss.net: could not connect to host fm83.nl: could not connect to host fndout.com: did not receive HSTS header fnvsecurity.com: could not connect to host @@ -1983,6 +1988,7 @@ fotocerita.net: could not connect to host fotografosexpertos.com: did not receive HSTS header fotopasja.info: could not connect to host foudufafa.de: could not connect to host +fourchin.net: could not connect to host foxdev.io: did not receive HSTS header foxley-farm.co.uk: did not receive HSTS header foxley-seeds.co.uk: did not receive HSTS header @@ -2005,7 +2011,6 @@ frau-inge.de: could not connect to host fraurichter.net: could not connect to host fredvoyage.fr: did not receive HSTS header free.com.tw: did not receive HSTS header -freeboson.org: could not connect to host freeflow.tv: could not connect to host freelanced.co.za: could not connect to host freelo.cz: did not receive HSTS header @@ -2110,7 +2115,6 @@ gaptek.id: did not receive HSTS header garageon.net: did not receive HSTS header garciamartin.me: could not connect to host garden.trade: could not connect to host -garedtech.com: did not receive HSTS header gatapro.net: could not connect to host gatorsa.es: did not receive HSTS header gdegem.org: did not receive HSTS header @@ -2122,9 +2126,9 @@ geeky.software: could not connect to host geemo.top: could not connect to host geeq.ch: could not connect to host geli-graphics.com: did not receive HSTS header +gensonline.eu: could not connect to host genuu.com: could not connect to host genuxation.com: could not connect to host -genuxtsg.com: could not connect to host genyaa.com: could not connect to host genyhitch.com: did not receive HSTS header geofox.org: did not receive HSTS header @@ -2160,6 +2164,7 @@ getmassage.com.ng: could not connect to host getpake.com: could not connect to host getremembrall.com: could not connect to host getsello.com: could not connect to host +getwarden.net: could not connect to host getwashdaddy.com: could not connect to host gfelot.xyz: did not receive HSTS header gfm.tech: could not connect to host @@ -2297,6 +2302,7 @@ grupopgn.com.br: could not connect to host gryffin.ga: could not connect to host gryffin.ml: could not connect to host gryffin.tk: could not connect to host +gsgs.se: could not connect to host gsm-map.com: could not connect to host gsnort.com: could not connect to host gswtech.eu: max-age too low: 0 @@ -2360,13 +2366,13 @@ hackit.im: could not connect to host hadzic.co: could not connect to host haeckdesign.com: did not receive HSTS header haeckl.eu: did not receive HSTS header -haehnlein.at: could not connect to host haf.gr: could not connect to host hahayidu.org: could not connect to host haitschi.com: could not connect to host haitschi.de: did not receive HSTS header haitschi.net: could not connect to host haitschi.org: could not connect to host +hajnzic.at: could not connect to host haktec.de: could not connect to host haku.moe: could not connect to host hakugin.org: could not connect to host @@ -2439,12 +2445,11 @@ hekeki.com: could not connect to host helencrump.co.uk: did not receive HSTS header helloworldhost.com: did not receive HSTS header helpadmin.net: could not connect to host -helpium.de: could not connect to host +helpium.de: [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsISiteSecurityService.processHeader]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: /builds/slave/m-cen-l64-periodicupdate-00000/getHSTSPreloadList.js :: processStsHeader :: line 118" data: no] helpmebuild.com: did not receive HSTS header hemdal.se: could not connect to host hencagon.com: could not connect to host henriknoerr.com: could not connect to host -henriksen.is: could not connect to host hepteract.us: could not connect to host herbert.io: could not connect to host heritagedentistry.ca: did not receive HSTS header @@ -2460,6 +2465,7 @@ hiddendepth.ie: max-age too low: 0 hiddenmail.xyz: could not connect to host hiddenrefuge.eu.org: could not connect to host hideftv.deals: could not connect to host +highgrove.org.uk: could not connect to host highseer.com: did not receive HSTS header highsurf-miyazaki.com: did not receive HSTS header highvelocitydesign.com: could not connect to host @@ -2507,7 +2513,6 @@ hostgarou.com: did not receive HSTS header hostinaus.com.au: did not receive HSTS header hostingfj.com: did not receive HSTS header hostisan.com: could not connect to host -hotartup.com: could not connect to host hotchillibox.co.za: could not connect to host hotchillibox.com: max-age too low: 0 hotchoc.io: did not receive HSTS header @@ -2515,6 +2520,7 @@ hotelvue.nl: could not connect to host houkago-step.com: did not receive HSTS header housemaadiah.org: did not receive HSTS header housingstudents.org.uk: could not connect to host +howlongtobeatsteam.com: did not receive HSTS header howrandom.org: could not connect to host howtocuremysciatica.com: could not connect to host hr-intranet.com: could not connect to host @@ -2560,7 +2566,6 @@ iamokay.nl: did not receive HSTS header iamreubin.co.uk: did not receive HSTS header iamveto.com: could not connect to host iapws.com: could not connect to host -iavian.com: did not receive HSTS header iban.is: could not connect to host ibarf.nl: did not receive HSTS header ibnuwebhost.com: could not connect to host @@ -2589,7 +2594,6 @@ idecode.net: could not connect to host idedr.com: could not connect to host identitylabs.uk: could not connect to host idgsupply.com: could not connect to host -idinby.dk: did not receive HSTS header idisplay.es: did not receive HSTS header idlekernel.com: could not connect to host idontexist.me: did not receive HSTS header @@ -2612,6 +2616,7 @@ ihuanmeng.com: did not receive HSTS header iispeed.com: did not receive HSTS header ikujii.com: max-age too low: 0 ikwilguidobellen.nl: did not receive HSTS header +ikwilthepiratebay.org: could not connect to host ilbuongiorno.it: did not receive HSTS header ilikerainbows.co: could not connect to host ilikerainbows.co.uk: could not connect to host @@ -2702,6 +2707,7 @@ interhosts.co.za: could not connect to host interim-cto.de: could not connect to host interleucina.org: did not receive HSTS header interlun.com: could not connect to host +internect.co.za: did not receive HSTS header internetcasinos.de: could not connect to host internetcensus.org: could not connect to host interserved.com: did not receive HSTS header @@ -2757,7 +2763,6 @@ isdf.me: could not connect to host iseek.biz: max-age too low: 0 iseulde.com: did not receive HSTS header ishillaryclintoninprisonyet.com: could not connect to host -ishome.org: could not connect to host isitamor.pm: could not connect to host iskaz.rs: did not receive HSTS header isogen5.com: could not connect to host @@ -2767,8 +2772,10 @@ istanbultravelguide.info: could not connect to host istaspirtslietas.lv: did not receive HSTS header it-go.net: did not receive HSTS header itechgeek.com: max-age too low: 0 +iterror.co: could not connect to host ithakama.com: did not receive HSTS header ithakama.cz: did not receive HSTS header +itludens.com: could not connect to host itos.asia: did not receive HSTS header itos.pl: did not receive HSTS header itpros.ru: did not receive HSTS header @@ -2782,6 +2789,7 @@ itshost.ru: could not connect to host ivi-fertility.com: max-age too low: 0 ivi.es: max-age too low: 0 ivk.website: could not connect to host +iwannarefill.com: did not receive HSTS header ixec2.tk: could not connect to host izdiwho.com: could not connect to host izolight.ch: could not connect to host @@ -2798,6 +2806,7 @@ jadefalcons.de: could not connect to host jagido.de: did not receive HSTS header jahliveradio.com: could not connect to host jaksel.id: could not connect to host +jakubtopic.cz: could not connect to host james.je: could not connect to host jamesandpame.la: could not connect to host jamesbradach.com: did not receive HSTS header @@ -2893,7 +2902,6 @@ jkb.pics: could not connect to host jkbuster.com: could not connect to host jko.works: could not connect to host jmdekker.it: could not connect to host -jmk.hu: could not connect to host joakimalgroy.com: could not connect to host jobmedic.com: did not receive HSTS header jobshq.com: did not receive HSTS header @@ -2912,6 +2920,7 @@ jondarby.com: did not receive HSTS header jongha.me: could not connect to host jonn.me: could not connect to host jonnichols.info: did not receive HSTS header +jonnybarnes.uk: did not receive HSTS header joostbovee.nl: did not receive HSTS header jordanhamilton.me: could not connect to host josahrens.me: could not connect to host @@ -2920,6 +2929,7 @@ joshstroup.me: could not connect to host jotpics.com: could not connect to host jottit.com: could not connect to host jpbike.cz: could not connect to host +jpcdi.com: could not connect to host jrc9.ca: did not receive HSTS header jrgold.me: could not connect to host jrmd.io: could not connect to host @@ -2973,10 +2983,9 @@ kapucini.si: max-age too low: 0 kaputt.com: could not connect to host karaoketonight.com: could not connect to host karhukamera.com: could not connect to host -karlis-kavacis.id.lv: did not receive HSTS header karpanhellas.com: did not receive HSTS header karting34.com: could not connect to host -kasilag.me: did not receive HSTS header +kasilag.me: could not connect to host katiaetdavid.fr: could not connect to host katproxy.al: did not receive HSTS header katproxy.online: could not connect to host @@ -3004,7 +3013,6 @@ kermadec.blog: could not connect to host kermadec.net: could not connect to host kernl.us: did not receive HSTS header kevinbowers.me: did not receive HSTS header -keybored.me: could not connect to host keymaster.lookout.com: did not receive HSTS header kfbrussels.be: could not connect to host kg-rating.com: could not connect to host @@ -3094,9 +3102,11 @@ kotonehoko.net: could not connect to host kotovstyle.ru: could not connect to host koukni.cz: could not connect to host kourpe.online: could not connect to host +kpebetka.net: could not connect to host kprog.net: could not connect to host kr.search.yahoo.com: did not receive HSTS header kralik.xyz: could not connect to host +krampus-fischamend.at: could not connect to host kravelindo-adventure.com: could not connect to host krayx.com: did not receive HSTS header kreavis.com: did not receive HSTS header @@ -3104,7 +3114,6 @@ kreb.io: could not connect to host kredite.sale: could not connect to host krestanskydarek.cz: [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsISiteSecurityService.processHeader]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: /builds/slave/m-cen-l64-periodicupdate-00000/getHSTSPreloadList.js :: processStsHeader :: line 118" data: no] kriegt.es: did not receive HSTS header -kristikala.nl: could not connect to host krizevackapajdasija.hr: could not connect to host krizevci.info: did not receive HSTS header kroetenfuchs.de: could not connect to host @@ -3155,6 +3164,7 @@ lachlankidson.net: did not receive HSTS header lacledeslan.ninja: could not connect to host lacocinadelila.com: did not receive HSTS header laf.in.net: could not connect to host +lafkor.de: could not connect to host lagalerievirtuelle.fr: did not receive HSTS header lagoza.name: could not connect to host lamaland.ru: did not receive HSTS header @@ -3230,6 +3240,7 @@ level-10.net: did not receive HSTS header levelum.com: did not receive HSTS header levert.ch: could not connect to host levindesalpes.fr: did not receive HSTS header +levinus.de: could not connect to host lexpierce.social: could not connect to host lfullerdesign.com: did not receive HSTS header lg21.co: could not connect to host @@ -3296,6 +3307,7 @@ linuxforyou.com: could not connect to host linuxgeek.ro: could not connect to host linuxmint.cz: did not receive HSTS header linuxmonitoring.net: did not receive HSTS header +liquidcomm.net: could not connect to host liquorsanthe.in: could not connect to host lisaco.de: could not connect to host listafirmelor.com: could not connect to host @@ -3307,6 +3319,7 @@ livej.am: could not connect to host livi.co: did not receive HSTS header lixiang.one: could not connect to host lkp111138.me: did not receive HSTS header +lnoldan.com: could not connect to host loacg.com: did not receive HSTS header loadingdeck.com: did not receive HSTS header loadso.me: could not connect to host @@ -3326,7 +3339,6 @@ loginseite.com: could not connect to host lognot.net: could not connect to host lolicore.ch: could not connect to host lolidunno.com: could not connect to host -lolmegafroi.de: could not connect to host london-transfers.com: did not receive HSTS header londoncalling.co: did not receive HSTS header londonlanguageexchange.com: could not connect to host @@ -3528,7 +3540,6 @@ mclab.su: could not connect to host mclist.it: could not connect to host mdfnet.se: did not receive HSTS header mdscomp.net: did not receive HSTS header -meadowfen.farm: could not connect to host meamod.com: max-age too low: 0 mechmk1.me: did not receive HSTS header medallia.io: could not connect to host @@ -3546,6 +3557,7 @@ meedoennoordkop.nl: did not receive HSTS header meedoenzaanstad.nl: did not receive HSTS header meetfinch.com: could not connect to host meetings2.com: did not receive HSTS header +meetmibaby.co.uk: could not connect to host meetscompany.jp: did not receive HSTS header megakiste.de: could not connect to host megashur.se: did not receive HSTS header @@ -3575,6 +3587,7 @@ mersinunivercity.com: did not receive HSTS header merson.me: could not connect to host meshlab.co: could not connect to host mesmoque.com: did not receive HSTS header +metadatawiki.com: could not connect to host metagrader.com: could not connect to host metebalci.com: did not receive HSTS header meteosherbrooke.com: could not connect to host @@ -3627,7 +3640,6 @@ mikek.work: did not receive HSTS header mikeology.org: could not connect to host mikeybot.com: could not connect to host mikk.cz: could not connect to host -mikonmaa.fi: could not connect to host mikrom.cz: did not receive HSTS header miku.be: did not receive HSTS header miku.hatsune.my: max-age too low: 5184000 @@ -3645,6 +3657,7 @@ mini-piraten.de: did not receive HSTS header minikneet.nl: did not receive HSTS header minimoo.se: could not connect to host minnesotadata.com: could not connect to host +minnesotakinkyyouth.org: could not connect to host minora.io: could not connect to host minoris.se: could not connect to host miragrow.com: could not connect to host @@ -3666,6 +3679,7 @@ mlp.ee: could not connect to host mlpepilepsy.org: could not connect to host mmgazhomeloans.com: did not receive HSTS header mmin.us: could not connect to host +mmmm.com: could not connect to host mnec.io: could not connect to host mnemotiv.com: could not connect to host mnetworkingsolutions.co.uk: could not connect to host @@ -3703,12 +3717,12 @@ mols.me: could not connect to host mona.lu: did not receive HSTS header monarca.systems: could not connect to host monasterialis.eu: could not connect to host -mondar.io: did not receive HSTS header +mondar.io: could not connect to host mondopoint.com: did not receive HSTS header mondwandler.de: could not connect to host moneromerchant.com: could not connect to host moneychangersoftware.com: did not receive HSTS header -moneytoday.com: max-age too low: 0 +moneytoday.com: could not connect to host monika-sokol.de: did not receive HSTS header monitman.com: did not receive HSTS header monsieurbureau.com: did not receive HSTS header @@ -3765,7 +3779,6 @@ mt.me.uk: could not connect to host mt.search.yahoo.com: did not receive HSTS header mtcgf.com: did not receive HSTS header mtg-esport.de: did not receive HSTS header -mts-energia.eu: did not receive HSTS header mu.search.yahoo.com: did not receive HSTS header mudcrab.us: did not receive HSTS header mujadin.se: did not receive HSTS header @@ -3788,8 +3801,6 @@ muzykaprzeszladoplay.pl: did not receive HSTS header mvanmarketing.nl: did not receive HSTS header mvsecurity.nl: could not connect to host mw.search.yahoo.com: did not receive HSTS header -mwohlfarth.de: could not connect to host -my-dns.co.il: could not connect to host my-owncloud.com: could not connect to host my.alfresco.com: did not receive HSTS header my.swedbank.se: did not receive HSTS header @@ -3839,7 +3850,7 @@ nagoya-kyuyo.com: could not connect to host naiharngym.com: did not receive HSTS header najedlo.sk: did not receive HSTS header nakamastreamingcommunity.com: could not connect to host -nakliyatsirketi.biz: did not receive HSTS header +nakliyatsirketi.biz: could not connect to host nakuro.de: could not connect to host nalifornia.com: did not receive HSTS header nallon.com.br: could not connect to host @@ -4010,7 +4021,7 @@ noworrywp.com: could not connect to host nozoe.jp: could not connect to host np.search.yahoo.com: did not receive HSTS header npol.de: could not connect to host -nqesh.com: could not connect to host +nqesh.com: did not receive HSTS header nrechn.de: could not connect to host nrizzio.me: could not connect to host ntbs.pro: could not connect to host @@ -4132,6 +4143,7 @@ ooooush.co.uk: did not receive HSTS header oopsmycase.com: could not connect to host oopsorup.com: could not connect to host oost.io: could not connect to host +open-desk.org: could not connect to host open-mx.de: could not connect to host open-to-repair.fr: did not receive HSTS header openas.org: could not connect to host @@ -4294,7 +4306,7 @@ pdf.yt: could not connect to host peakapp.nl: could not connect to host peerherrmann.de: could not connect to host peetah.com: could not connect to host -peissen.com: could not connect to host +peissen.com: [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsISiteSecurityService.processHeader]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: /builds/slave/m-cen-l64-periodicupdate-00000/getHSTSPreloadList.js :: processStsHeader :: line 118" data: no] pekkapikkarainen.fi: did not receive HSTS header pekkarik.ru: could not connect to host peliculasaudiolatinoonline.com: could not connect to host @@ -4391,7 +4403,6 @@ play.google.com: did not receive HSTS header (error ignored - included regardles playerhunter.com: did not receive HSTS header playflick.com: did not receive HSTS header playmaker.io: could not connect to host -playmyplay.com: could not connect to host playnation.io: could not connect to host playsharp.com: could not connect to host pleier-it.de: did not receive HSTS header @@ -4430,6 +4441,7 @@ polycoise.com: could not connect to host polypho.nyc: could not connect to host pompefunebrilariviera.it: could not connect to host pompompoes.com: could not connect to host +ponolau.com: did not receive HSTS header pontualcomp.com: could not connect to host pony.today: could not connect to host poolsandstuff.com: did not receive HSTS header @@ -4527,6 +4539,7 @@ pstrozniak.com: could not connect to host psw.academy: did not receive HSTS header psw.consulting: did not receive HSTS header psxtr.com: could not connect to host +pterodactylus.cz: could not connect to host ptn.moscow: could not connect to host pubkey.is: could not connect to host pugliese.fr: could not connect to host @@ -4541,7 +4554,6 @@ push.world: did not receive HSTS header pushapp.org: did not receive HSTS header pwd.ovh: could not connect to host pwnsdx.pw: could not connect to host -pwntr.com: could not connect to host py.search.yahoo.com: did not receive HSTS header pyol.org: could not connect to host pypi-status.org: could not connect to host @@ -4653,6 +4665,7 @@ rede.ca: did not receive HSTS header redhorsemountainranch.com: did not receive HSTS header redicabo.de: could not connect to host redirectman.com: did not receive HSTS header +rediske.me: could not connect to host redlatam.org: did not receive HSTS header redmbk.com: did not receive HSTS header redports.org: could not connect to host @@ -4677,6 +4690,7 @@ relayawards.com: could not connect to host reliable-mail.de: did not receive HSTS header relisten.nl: did not receive HSTS header rem.pe: could not connect to host +remedica.fr: could not connect to host remedioskaseros.com: did not receive HSTS header remitatm.com: did not receive HSTS header remodela.com.ve: could not connect to host @@ -4692,7 +4706,6 @@ rentacarcluj.xyz: could not connect to host rentbrowsertrain.me: could not connect to host rentcarassist.com: could not connect to host renteater.com: could not connect to host -renuo.ch: did not receive HSTS header replacemychina.com: could not connect to host reprolife.co.uk: could not connect to host res-rheingau.de: did not receive HSTS header @@ -4854,9 +4867,11 @@ samsen.club: did not receive HSTS header sanasalud.org: could not connect to host sandviks.com: did not receive HSTS header sanguoxiu.com: could not connect to host +sanmuding.com: could not connect to host sansdev.com: could not connect to host sansemea.com: did not receive HSTS header sansonehowell.com: max-age too low: 0 +santodomingocg.org: could not connect to host sarah-beckett-harpist.com: did not receive HSTS header sarahsweetlife.com: could not connect to host sarahsweger.com: did not receive HSTS header @@ -4964,7 +4979,7 @@ selfcarecentral.com: did not receive HSTS header selfdefenserx.com: did not receive HSTS header selfhosters.com: could not connect to host selfie-france.fr: could not connect to host -selldorado.com: did not receive HSTS header +selldorado.com: could not connect to host sello.com: did not receive HSTS header sellocdn.com: could not connect to host sellservs.co.za: could not connect to host @@ -4977,6 +4992,7 @@ sendash.com: could not connect to host sendmeback.de: did not receive HSTS header sendya.me: did not receive HSTS header senedirect.com: did not receive HSTS header +senseofnumber.co.uk: did not receive HSTS header sensiblemn.org: could not connect to host sensibus.com: did not receive HSTS header seo.consulting: did not receive HSTS header @@ -5005,7 +5021,6 @@ setuid.de: could not connect to host setuid.io: did not receive HSTS header seyahatsagliksigortalari.com: could not connect to host sfsltd.com: did not receive HSTS header -shadiku.com: could not connect to host shadoom.com: did not receive HSTS header shadowmorph.info: did not receive HSTS header shadowsocks.net: could not connect to host @@ -5029,7 +5044,6 @@ shindorei.fr: did not receive HSTS header shinebijoux.com.br: could not connect to host shinju.moe: could not connect to host shiona.xyz: could not connect to host -shirosaki.org: could not connect to host shm-forum.org.uk: could not connect to host shocksrv.com: did not receive HSTS header shooshosha.com: could not connect to host @@ -5048,9 +5062,9 @@ siammedia.co: could not connect to host sichere-kartenakzeptanz.de: did not receive HSTS header siciliadigitale.pro: could not connect to host siddhant.me: max-age too low: 0 +sidium.de: did not receive HSTS header siebens.net: could not connect to host sifls.com: could not connect to host -sigsegv.run: could not connect to host sijimi.cn: did not receive HSTS header sikayetvar.com: did not receive HSTS header silaslova-ekb.ru: could not connect to host @@ -5147,14 +5161,14 @@ smzsq.com: did not receive HSTS header snailing.org: could not connect to host snakehosting.dk: did not receive HSTS header snapappts.com: could not connect to host -snapworks.net: did not receive HSTS header +snapworks.net: could not connect to host snel4u.nl: could not connect to host snelwerk.be: could not connect to host sng.my: could not connect to host sniderman.eu.org: could not connect to host snip.host: could not connect to host snoozedds.com: max-age too low: 600 -snoqualmiefiber.org: did not receive HSTS header +snoqualmiefiber.org: could not connect to host sobabox.ru: could not connect to host sobinski.pl: did not receive HSTS header sobotkama.eu: did not receive HSTS header @@ -5167,10 +5181,11 @@ socialhub.com: did not receive HSTS header socialprize.com: could not connect to host socialspirit.com.br: did not receive HSTS header sockeye.cc: could not connect to host -socomponents.co.uk: could not connect to host +socomponents.co.uk: did not receive HSTS header sodacore.com: could not connect to host software.rocks: could not connect to host sogeek.me: did not receive HSTS header +sogutma.com.tr: did not receive HSTS header sokolka.tv: did not receive HSTS header sol-3.de: did not receive HSTS header solidfuelappliancespares.co.uk: did not receive HSTS header @@ -5181,7 +5196,7 @@ somali-derp.com: could not connect to host someshit.xyz: could not connect to host somethingnew.xyz: could not connect to host sonic.network: did not receive HSTS header -sonicrainboom.rocks: could not connect to host +sonicrainboom.rocks: did not receive HSTS header soobi.org: did not receive HSTS header soondy.com: did not receive HSTS header sosaka.ml: could not connect to host @@ -5202,6 +5217,7 @@ sown.dyndns.org: could not connect to host spacefish.biz: could not connect to host spacehq.org: could not connect to host spaggel.nl: could not connect to host +spamwc.de: did not receive HSTS header sparelib.com: max-age too low: 3650 spark.team: could not connect to host sparklingsparklers.com: did not receive HSTS header @@ -5229,7 +5245,6 @@ spilsbury.io: could not connect to host spirit-dev.net: max-age too low: 0 spititout.it: could not connect to host spittersberger.recipes: did not receive HSTS header -splunk.net: could not connect to host sponsortobias.com: could not connect to host sportchirp-internal.azurewebsites.net: did not receive HSTS header sporthit.ru: did not receive HSTS header @@ -5268,6 +5283,7 @@ staffjoy.com: did not receive HSTS header staffjoystaging.com: did not receive HSTS header stahl.xyz: could not connect to host stalkerhispano.com: max-age too low: 0 +stalkr.net: did not receive HSTS header stalschermer.nl: could not connect to host standardssuck.org: did not receive HSTS header standingmist.com: did not receive HSTS header @@ -5397,6 +5413,7 @@ svatba-frantovi.cz: could not connect to host svenluijten.com: did not receive HSTS header swdatlantico.pt: could not connect to host sweetstreats.ca: could not connect to host +swehack.org: could not connect to host swimbee.nl: did not receive HSTS header swimming.ca: did not receive HSTS header swmd5c.org: did not receive HSTS header @@ -5413,7 +5430,6 @@ synapticconsulting.co.uk: could not connect to host syncappate.com: could not connect to host syncclinicalstudy.com: could not connect to host syncer.jp: did not receive HSTS header -synchtu.be: could not connect to host syncserve.net: did not receive HSTS header syneic.com: did not receive HSTS header syno.gq: could not connect to host @@ -5450,11 +5466,11 @@ talado.gr: could not connect to host tales-of-interia.de: could not connect to host talheim-records.ca: did not receive HSTS header talk.google.com: did not receive HSTS header (error ignored - included regardless) -talklifestyle.nl: could not connect to host talktwincities.com: could not connect to host tallr.se: could not connect to host tallshoe.com: could not connect to host tamex.xyz: could not connect to host +tanak3n.xyz: could not connect to host tandarts-haarlem.nl: did not receive HSTS header tangel.me: could not connect to host tangibilizing.com: could not connect to host @@ -5482,6 +5498,7 @@ taxiindenbosch.nl: did not receive HSTS header taxsnaps.co.nz: could not connect to host tazz.in: could not connect to host tc-bonito.de: did not receive HSTS header +tc.nz: did not receive HSTS header tcao.info: could not connect to host tcby45.xyz: could not connect to host tcdw.net: did not receive HSTS header @@ -5519,6 +5536,7 @@ tecnodritte.it: could not connect to host tecnogaming.com: did not receive HSTS header tegelsensanitaironline.nl: did not receive HSTS header tekiro.com: did not receive HSTS header +teknologi.or.id: could not connect to host teknotes.co.uk: could not connect to host tekshrek.com: did not receive HSTS header tel-dithmarschen.de: did not receive HSTS header @@ -5626,10 +5644,12 @@ thomasmeester.nl: did not receive HSTS header thomasschweizer.net: could not connect to host thorncreek.net: did not receive HSTS header thriveapproach.co.uk: did not receive HSTS header +throughthelookingglasslens.co.uk: could not connect to host thumbtack.com: did not receive HSTS header thundercampaign.com: could not connect to host thusoy.com: did not receive HSTS header ti.blog.br: could not connect to host +tibbitshall.ca: did not receive HSTS header tickettoaster.de: max-age too low: 0 tickopa.co.uk: could not connect to host tickreport.com: did not receive HSTS header @@ -5663,7 +5683,6 @@ timotrans.de: did not receive HSTS header timotrans.eu: did not receive HSTS header timowi.de: could not connect to host timowi.net: could not connect to host -timstoffel.net: did not receive HSTS header timwittenberg.com: could not connect to host tinkerboard.org: could not connect to host tipsyk.ru: could not connect to host @@ -5824,13 +5843,12 @@ tyroproducts.eu: did not receive HSTS header tzappa.net: could not connect to host u-blox.com: max-age too low: 0 ua.search.yahoo.com: did not receive HSTS header -uadp.pw: could not connect to host +uadp.pw: did not receive HSTS header uber.com.au: did not receive HSTS header uberfunction.com: did not receive HSTS header ubi.gg: could not connect to host ubicloud.de: could not connect to host ublox.com: did not receive HSTS header -uborcare.com: could not connect to host ubuntuhot.com: did not receive HSTS header uega.net: did not receive HSTS header ueu.me: could not connect to host @@ -5954,7 +5972,6 @@ vanestack.com: could not connect to host vanetv.com: could not connect to host vanitas.xyz: could not connect to host vanitynailworkz.com: could not connect to host -vanmalland.com: could not connect to host vansieleghem.com: could not connect to host vasanth.org: did not receive HSTS header vbulletin-russia.com: could not connect to host @@ -5992,8 +6009,7 @@ videoueberwachung-set.de: did not receive HSTS header vidid.net: did not receive HSTS header vidz.ga: could not connect to host vieaw.com: did not receive HSTS header -vietnamphotographytours.com: did not receive HSTS header -viewmyrecords.com: could not connect to host +vietnamphotographytours.com: could not connect to host vigilo.cf: could not connect to host vigilo.ga: could not connect to host vijos.org: did not receive HSTS header @@ -6041,8 +6057,6 @@ voodooladen.de: max-age too low: 86400 vooreenveiligthuis.nl: did not receive HSTS header vortexhobbies.com: did not receive HSTS header vosjesweb.nl: could not connect to host -votocek.cz: could not connect to host -votockova.cz: could not connect to host vox.vg: did not receive HSTS header vpip.net: could not connect to host vpl.me: did not receive HSTS header @@ -6052,7 +6066,6 @@ vps-szerver-berles.hu: could not connect to host vpsmojo.com: could not connect to host vratny.space: could not connect to host vrobert.fr: could not connect to host -vrtak-cz.net: could not connect to host vsestiralnie.com: did not receive HSTS header vvl.me: did not receive HSTS header vxstream-sandbox.com: did not receive HSTS header @@ -6139,13 +6152,12 @@ welkers.org: could not connect to host wellastore.ru: did not receive HSTS header welpy.com: could not connect to host weltmeisterschaft.net: could not connect to host -weltverschwoerung.de: did not receive HSTS header weme.eu: could not connect to host wendalyncheng.com: did not receive HSTS header werdeeintimo.de: did not receive HSTS header werkenbijkfc.nl: did not receive HSTS header werkplaatsoost.nl: did not receive HSTS header -werkruimtebottendaal.nl: did not receive HSTS header +werkruimtebottendaal.nl: could not connect to host wesleyharris.ca: did not receive HSTS header westendzone.com: max-age too low: 0 westerhoud.nl: did not receive HSTS header @@ -6207,7 +6219,6 @@ wittcher.com: could not connect to host wittydonut.com: could not connect to host witzemaschine.com: max-age too low: 0 wiz.biz: could not connect to host -wizzley.com: could not connect to host wjglerum.nl: could not connect to host wlzhiyin.cn: could not connect to host wmcuk.net: could not connect to host @@ -6247,6 +6258,7 @@ wphostingspot.com: did not receive HSTS header wpmetadatastandardsproject.org: did not receive HSTS header writeapp.me: did not receive HSTS header wrldevelopment.com: did not receive HSTS header +wrwg.ca: could not connect to host wsdezign.com: could not connect to host wsscompany.com.ve: could not connect to host wubthecaptain.eu: could not connect to host @@ -6277,7 +6289,6 @@ www.sandbox.mydigipass.com: could not connect to host www.surfeasy.com: did not receive HSTS header www.zenpayroll.com: did not receive HSTS header www3.info: did not receive HSTS header -wxrlab.com: could not connect to host wxukang.cn: could not connect to host wybmabiity.com: could not connect to host x-power-detox.com: could not connect to host @@ -6291,12 +6302,13 @@ xa.search.yahoo.com: did not receive HSTS header xandocs.com: could not connect to host xatr0z.org: could not connect to host xavierbarroso.com: could not connect to host +xbind.io: could not connect to host xcoop.me: could not connect to host xecure.zone: did not receive HSTS header xehoivn.vn: did not receive HSTS header xellos.ga: could not connect to host xellos.ml: could not connect to host -xendo.net: could not connect to host +xendo.net: did not receive HSTS header xenesisziarovky.sk: could not connect to host xett.com: did not receive HSTS header xf-liam.com: did not receive HSTS header @@ -6388,7 +6400,7 @@ yetii.net: could not connect to host yhrd.org: did not receive HSTS header yikzu.cn: could not connect to host yin.roma.it: did not receive HSTS header -yingyj.com: did not receive HSTS header +yingyj.com: could not connect to host yippie.nl: could not connect to host yjsoft.me: did not receive HSTS header ynode.co: did not receive HSTS header @@ -6400,6 +6412,7 @@ yoloboatrentals.com: did not receive HSTS header yoloprod.fr: could not connect to host yoloseo.com: could not connect to host yomepre.com: could not connect to host +yoramvandevelde.net: could not connect to host yoru.me: did not receive HSTS header youcontrol.ru: could not connect to host youlog.net: could not connect to host @@ -6409,6 +6422,7 @@ yourbapp.ch: could not connect to host yourcomputer.expert: did not receive HSTS header yoursecondphone.co: could not connect to host yourstrongbox.com: could not connect to host +yoyoost.duckdns.org: could not connect to host ypiresia.fr: could not connect to host ytcuber.xyz: could not connect to host yu.gg: did not receive HSTS header @@ -6473,6 +6487,7 @@ zirtue.io: did not receive HSTS header zittingskalender.be: could not connect to host zivy-ruzenec.cz: could not connect to host zivyruzenec.cz: could not connect to host +zixo.sk: could not connect to host ziyuanabc.xyz: could not connect to host zizoo.com: did not receive HSTS header zju.tv: could not connect to host diff --git a/security/manager/ssl/nsSTSPreloadList.inc b/security/manager/ssl/nsSTSPreloadList.inc index 5dfb7b73d43f..f62203e0a30f 100644 --- a/security/manager/ssl/nsSTSPreloadList.inc +++ b/security/manager/ssl/nsSTSPreloadList.inc @@ -8,7 +8,7 @@ /*****************************************************************************/ #include -const PRTime gPreloadListExpirationTime = INT64_C(1508772908419000); +const PRTime gPreloadListExpirationTime = INT64_C(1508859834955000); static const char kSTSHostTable[] = { /* "0.me.uk", true */ '0', '.', 'm', 'e', '.', 'u', 'k', '\0', @@ -110,6 +110,7 @@ static const char kSTSHostTable[] = { /* "1644091933.rsc.cdn77.org", true */ '1', '6', '4', '4', '0', '9', '1', '9', '3', '3', '.', 'r', 's', 'c', '.', 'c', 'd', 'n', '7', '7', '.', 'o', 'r', 'g', '\0', /* "166166.com", true */ '1', '6', '6', '1', '6', '6', '.', 'c', 'o', 'm', '\0', /* "16deza.com", true */ '1', '6', 'd', 'e', 'z', 'a', '.', 'c', 'o', 'm', '\0', + /* "173vpn.cn", true */ '1', '7', '3', 'v', 'p', 'n', '.', 'c', 'n', '\0', /* "174.net.nz", true */ '1', '7', '4', '.', 'n', 'e', 't', '.', 'n', 'z', '\0', /* "1750studios.com", false */ '1', '7', '5', '0', 's', 't', 'u', 'd', 'i', 'o', 's', '.', 'c', 'o', 'm', '\0', /* "17hats.com", true */ '1', '7', 'h', 'a', 't', 's', '.', 'c', 'o', 'm', '\0', @@ -221,6 +222,7 @@ static const char kSTSHostTable[] = { /* "393335.ml", true */ '3', '9', '3', '3', '3', '5', '.', 'm', 'l', '\0', /* "398.info", true */ '3', '9', '8', '.', 'i', 'n', 'f', 'o', '\0', /* "39988.com", true */ '3', '9', '9', '8', '8', '.', 'c', 'o', 'm', '\0', + /* "3ags.de", true */ '3', 'a', 'g', 's', '.', 'd', 'e', '\0', /* "3bakayottu.com", true */ '3', 'b', 'a', 'k', 'a', 'y', 'o', 't', 't', 'u', '.', 'c', 'o', 'm', '\0', /* "3bigking.com", true */ '3', 'b', 'i', 'g', 'k', 'i', 'n', 'g', '.', 'c', 'o', 'm', '\0', /* "3c-d.de", true */ '3', 'c', '-', 'd', '.', 'd', 'e', '\0', @@ -799,6 +801,7 @@ static const char kSTSHostTable[] = { /* "alboweb.nl", true */ 'a', 'l', 'b', 'o', 'w', 'e', 'b', '.', 'n', 'l', '\0', /* "albuic.tk", true */ 'a', 'l', 'b', 'u', 'i', 'c', '.', 't', 'k', '\0', /* "alca31.com", true */ 'a', 'l', 'c', 'a', '3', '1', '.', 'c', 'o', 'm', '\0', + /* "alcnutrition.com", true */ 'a', 'l', 'c', 'n', 'u', 't', 'r', 'i', 't', 'i', 'o', 'n', '.', 'c', 'o', 'm', '\0', /* "alcorao.org", true */ 'a', 'l', 'c', 'o', 'r', 'a', 'o', '.', 'o', 'r', 'g', '\0', /* "aldes.co.za", true */ 'a', 'l', 'd', 'e', 's', '.', 'c', 'o', '.', 'z', 'a', '\0', /* "aldous-huxley.com", true */ 'a', 'l', 'd', 'o', 'u', 's', '-', 'h', 'u', 'x', 'l', 'e', 'y', '.', 'c', 'o', 'm', '\0', @@ -1229,7 +1232,6 @@ static const char kSTSHostTable[] = { /* "aolabs.nz", true */ 'a', 'o', 'l', 'a', 'b', 's', '.', 'n', 'z', '\0', /* "aopedeure.nl", true */ 'a', 'o', 'p', 'e', 'd', 'e', 'u', 'r', 'e', '.', 'n', 'l', '\0', /* "aosc.io", false */ 'a', 'o', 's', 'c', '.', 'i', 'o', '\0', - /* "aosus.org", true */ 'a', 'o', 's', 'u', 's', '.', 'o', 'r', 'g', '\0', /* "aov.io", true */ 'a', 'o', 'v', '.', 'i', 'o', '\0', /* "aovcentrum.nl", true */ 'a', 'o', 'v', 'c', 'e', 'n', 't', 'r', 'u', 'm', '.', 'n', 'l', '\0', /* "ap-swiss.ch", true */ 'a', 'p', '-', 's', 'w', 'i', 's', 's', '.', 'c', 'h', '\0', @@ -1321,6 +1323,7 @@ static const char kSTSHostTable[] = { /* "aquahomo.com", true */ 'a', 'q', 'u', 'a', 'h', 'o', 'm', 'o', '.', 'c', 'o', 'm', '\0', /* "aqualife.com.gr", true */ 'a', 'q', 'u', 'a', 'l', 'i', 'f', 'e', '.', 'c', 'o', 'm', '.', 'g', 'r', '\0', /* "aqualifeprojects.com", true */ 'a', 'q', 'u', 'a', 'l', 'i', 'f', 'e', 'p', 'r', 'o', 'j', 'e', 'c', 't', 's', '.', 'c', 'o', 'm', '\0', + /* "aqualogy.de", true */ 'a', 'q', 'u', 'a', 'l', 'o', 'g', 'y', '.', 'd', 'e', '\0', /* "aquapoint.kiev.ua", true */ 'a', 'q', 'u', 'a', 'p', 'o', 'i', 'n', 't', '.', 'k', 'i', 'e', 'v', '.', 'u', 'a', '\0', /* "aquaron.com", true */ 'a', 'q', 'u', 'a', 'r', 'o', 'n', '.', 'c', 'o', 'm', '\0', /* "aquaundine.net", true */ 'a', 'q', 'u', 'a', 'u', 'n', 'd', 'i', 'n', 'e', '.', 'n', 'e', 't', '\0', @@ -1687,6 +1690,7 @@ static const char kSTSHostTable[] = { /* "averen.co.uk", true */ 'a', 'v', 'e', 'r', 'e', 'n', '.', 'c', 'o', '.', 'u', 'k', '\0', /* "averysphotography.com", true */ 'a', 'v', 'e', 'r', 'y', 's', 'p', 'h', 'o', 't', 'o', 'g', 'r', 'a', 'p', 'h', 'y', '.', 'c', 'o', 'm', '\0', /* "avg.club", true */ 'a', 'v', 'g', '.', 'c', 'l', 'u', 'b', '\0', + /* "avi9526.pp.ua", true */ 'a', 'v', 'i', '9', '5', '2', '6', '.', 'p', 'p', '.', 'u', 'a', '\0', /* "aviationstrategy.aero", true */ 'a', 'v', 'i', 'a', 't', 'i', 'o', 'n', 's', 't', 'r', 'a', 't', 'e', 'g', 'y', '.', 'a', 'e', 'r', 'o', '\0', /* "aviodeals.com", true */ 'a', 'v', 'i', 'o', 'd', 'e', 'a', 'l', 's', '.', 'c', 'o', 'm', '\0', /* "avmemo.com", true */ 'a', 'v', 'm', 'e', 'm', 'o', '.', 'c', 'o', 'm', '\0', @@ -1742,7 +1746,6 @@ static const char kSTSHostTable[] = { /* "azimut.fr", true */ 'a', 'z', 'i', 'm', 'u', 't', '.', 'f', 'r', '\0', /* "azirevpn.com", true */ 'a', 'z', 'i', 'r', 'e', 'v', 'p', 'n', '.', 'c', 'o', 'm', '\0', /* "azlk-team.ru", true */ 'a', 'z', 'l', 'k', '-', 't', 'e', 'a', 'm', '.', 'r', 'u', '\0', - /* "azort.com", true */ 'a', 'z', 'o', 'r', 't', '.', 'c', 'o', 'm', '\0', /* "azrazalea.net", true */ 'a', 'z', 'r', 'a', 'z', 'a', 'l', 'e', 'a', '.', 'n', 'e', 't', '\0', /* "aztrix.me", true */ 'a', 'z', 't', 'r', 'i', 'x', '.', 'm', 'e', '\0', /* "azun.pl", true */ 'a', 'z', 'u', 'n', '.', 'p', 'l', '\0', @@ -2462,7 +2465,6 @@ static const char kSTSHostTable[] = { /* "blackl.net", true */ 'b', 'l', 'a', 'c', 'k', 'l', '.', 'n', 'e', 't', '\0', /* "blackmirror.com.au", true */ 'b', 'l', 'a', 'c', 'k', 'm', 'i', 'r', 'r', 'o', 'r', '.', 'c', 'o', 'm', '.', 'a', 'u', '\0', /* "blacknetwork.eu", true */ 'b', 'l', 'a', 'c', 'k', 'n', 'e', 't', 'w', 'o', 'r', 'k', '.', 'e', 'u', '\0', - /* "blacknova.io", true */ 'b', 'l', 'a', 'c', 'k', 'n', 'o', 'v', 'a', '.', 'i', 'o', '\0', /* "blackonion.com", true */ 'b', 'l', 'a', 'c', 'k', 'o', 'n', 'i', 'o', 'n', '.', 'c', 'o', 'm', '\0', /* "blackpapermoon.de", true */ 'b', 'l', 'a', 'c', 'k', 'p', 'a', 'p', 'e', 'r', 'm', 'o', 'o', 'n', '.', 'd', 'e', '\0', /* "blackphantom.de", true */ 'b', 'l', 'a', 'c', 'k', 'p', 'h', 'a', 'n', 't', 'o', 'm', '.', 'd', 'e', '\0', @@ -2924,12 +2926,14 @@ static const char kSTSHostTable[] = { /* "bulkcandystore.com", true */ 'b', 'u', 'l', 'k', 'c', 'a', 'n', 'd', 'y', 's', 't', 'o', 'r', 'e', '.', 'c', 'o', 'm', '\0', /* "bulkingtime.com", true */ 'b', 'u', 'l', 'k', 'i', 'n', 'g', 't', 'i', 'm', 'e', '.', 'c', 'o', 'm', '\0', /* "bulktrade.de", true */ 'b', 'u', 'l', 'k', 't', 'r', 'a', 'd', 'e', '.', 'd', 'e', '\0', + /* "bullbits.com", true */ 'b', 'u', 'l', 'l', 'b', 'i', 't', 's', '.', 'c', 'o', 'm', '\0', /* "bulldog-hosting.de", true */ 'b', 'u', 'l', 'l', 'd', 'o', 'g', '-', 'h', 'o', 's', 't', 'i', 'n', 'g', '.', 'd', 'e', '\0', /* "bulledair-savons.ch", true */ 'b', 'u', 'l', 'l', 'e', 'd', 'a', 'i', 'r', '-', 's', 'a', 'v', 'o', 'n', 's', '.', 'c', 'h', '\0', /* "bullettags.com", true */ 'b', 'u', 'l', 'l', 'e', 't', 't', 'a', 'g', 's', '.', 'c', 'o', 'm', '\0', /* "bullterrier.nu", true */ 'b', 'u', 'l', 'l', 't', 'e', 'r', 'r', 'i', 'e', 'r', '.', 'n', 'u', '\0', /* "bulmastife.com.br", true */ 'b', 'u', 'l', 'm', 'a', 's', 't', 'i', 'f', 'e', '.', 'c', 'o', 'm', '.', 'b', 'r', '\0', /* "bumshow.ru", true */ 'b', 'u', 'm', 's', 'h', 'o', 'w', '.', 'r', 'u', '\0', + /* "bunadarbankinn.is", true */ 'b', 'u', 'n', 'a', 'd', 'a', 'r', 'b', 'a', 'n', 'k', 'i', 'n', 'n', '.', 'i', 's', '\0', /* "bunbun.be", false */ 'b', 'u', 'n', 'b', 'u', 'n', '.', 'b', 'e', '\0', /* "bund-von-theramore.de", true */ 'b', 'u', 'n', 'd', '-', 'v', 'o', 'n', '-', 't', 'h', 'e', 'r', 'a', 'm', 'o', 'r', 'e', '.', 'd', 'e', '\0', /* "bundaberg.com", true */ 'b', 'u', 'n', 'd', 'a', 'b', 'e', 'r', 'g', '.', 'c', 'o', 'm', '\0', @@ -3722,6 +3726,7 @@ static const char kSTSHostTable[] = { /* "citya.com", true */ 'c', 'i', 't', 'y', 'a', '.', 'c', 'o', 'm', '\0', /* "citybusexpress.com", true */ 'c', 'i', 't', 'y', 'b', 'u', 's', 'e', 'x', 'p', 'r', 'e', 's', 's', '.', 'c', 'o', 'm', '\0', /* "citylights.eu", true */ 'c', 'i', 't', 'y', 'l', 'i', 'g', 'h', 't', 's', '.', 'e', 'u', '\0', + /* "citymoobel.ee", true */ 'c', 'i', 't', 'y', 'm', 'o', 'o', 'b', 'e', 'l', '.', 'e', 'e', '\0', /* "citysportapp.com", true */ 'c', 'i', 't', 'y', 's', 'p', 'o', 'r', 't', 'a', 'p', 'p', '.', 'c', 'o', 'm', '\0', /* "citywalkr.com", true */ 'c', 'i', 't', 'y', 'w', 'a', 'l', 'k', 'r', '.', 'c', 'o', 'm', '\0', /* "cityworksonline.com", true */ 'c', 'i', 't', 'y', 'w', 'o', 'r', 'k', 's', 'o', 'n', 'l', 'i', 'n', 'e', '.', 'c', 'o', 'm', '\0', @@ -3780,7 +3785,6 @@ static const char kSTSHostTable[] = { /* "clickforclever.com", true */ 'c', 'l', 'i', 'c', 'k', 'f', 'o', 'r', 'c', 'l', 'e', 'v', 'e', 'r', '.', 'c', 'o', 'm', '\0', /* "clickphish.com", true */ 'c', 'l', 'i', 'c', 'k', 'p', 'h', 'i', 's', 'h', '.', 'c', 'o', 'm', '\0', /* "clicks.co.za", true */ 'c', 'l', 'i', 'c', 'k', 's', '.', 'c', 'o', '.', 'z', 'a', '\0', - /* "clientboss.com", true */ 'c', 'l', 'i', 'e', 'n', 't', 'b', 'o', 's', 's', '.', 'c', 'o', 'm', '\0', /* "clifflu.net", true */ 'c', 'l', 'i', 'f', 'f', 'l', 'u', '.', 'n', 'e', 't', '\0', /* "cliftons.com", true */ 'c', 'l', 'i', 'f', 't', 'o', 'n', 's', '.', 'c', 'o', 'm', '\0', /* "climaprecio.es", true */ 'c', 'l', 'i', 'm', 'a', 'p', 'r', 'e', 'c', 'i', 'o', '.', 'e', 's', '\0', @@ -3839,6 +3843,7 @@ static const char kSTSHostTable[] = { /* "clouz.de", true */ 'c', 'l', 'o', 'u', 'z', '.', 'd', 'e', '\0', /* "clovissantos.com", true */ 'c', 'l', 'o', 'v', 'i', 's', 's', 'a', 'n', 't', 'o', 's', '.', 'c', 'o', 'm', '\0', /* "clownish.co.il", true */ 'c', 'l', 'o', 'w', 'n', 'i', 's', 'h', '.', 'c', 'o', '.', 'i', 'l', '\0', + /* "cloxy.com", true */ 'c', 'l', 'o', 'x', 'y', '.', 'c', 'o', 'm', '\0', /* "clr3.com", true */ 'c', 'l', 'r', '3', '.', 'c', 'o', 'm', '\0', /* "clsimage.com", true */ 'c', 'l', 's', 'i', 'm', 'a', 'g', 'e', '.', 'c', 'o', 'm', '\0', /* "clsimplex.com", true */ 'c', 'l', 's', 'i', 'm', 'p', 'l', 'e', 'x', '.', 'c', 'o', 'm', '\0', @@ -3869,8 +3874,10 @@ static const char kSTSHostTable[] = { /* "cmylife.nl", true */ 'c', 'm', 'y', 'l', 'i', 'f', 'e', '.', 'n', 'l', '\0', /* "cnam.net", true */ 'c', 'n', 'a', 'm', '.', 'n', 'e', 't', '\0', /* "cnbs.ch", true */ 'c', 'n', 'b', 's', '.', 'c', 'h', '\0', + /* "cnc-lehrgang.de", true */ 'c', 'n', 'c', '-', 'l', 'e', 'h', 'r', 'g', 'a', 'n', 'g', '.', 'd', 'e', '\0', /* "cncfraises.fr", true */ 'c', 'n', 'c', 'f', 'r', 'a', 'i', 's', 'e', 's', '.', 'f', 'r', '\0', /* "cnetw.xyz", true */ 'c', 'n', 'e', 't', 'w', '.', 'x', 'y', 'z', '\0', + /* "cnlic.com", true */ 'c', 'n', 'l', 'i', 'c', '.', 'c', 'o', 'm', '\0', /* "cnwarn.com", true */ 'c', 'n', 'w', 'a', 'r', 'n', '.', 'c', 'o', 'm', '\0', /* "co-driversphoto.se", true */ 'c', 'o', '-', 'd', 'r', 'i', 'v', 'e', 'r', 's', 'p', 'h', 'o', 't', 'o', '.', 's', 'e', '\0', /* "co-factor.ro", true */ 'c', 'o', '-', 'f', 'a', 'c', 't', 'o', 'r', '.', 'r', 'o', '\0', @@ -3972,13 +3979,11 @@ static const char kSTSHostTable[] = { /* "coldfff.com", false */ 'c', 'o', 'l', 'd', 'f', 'f', 'f', '.', 'c', 'o', 'm', '\0', /* "coldhak.ca", true */ 'c', 'o', 'l', 'd', 'h', 'a', 'k', '.', 'c', 'a', '\0', /* "coldwatericecream.com", true */ 'c', 'o', 'l', 'd', 'w', 'a', 't', 'e', 'r', 'i', 'c', 'e', 'c', 'r', 'e', 'a', 'm', '.', 'c', 'o', 'm', '\0', - /* "colearnr.com", true */ 'c', 'o', 'l', 'e', 'a', 'r', 'n', 'r', '.', 'c', 'o', 'm', '\0', /* "colegiocierp.com.br", true */ 'c', 'o', 'l', 'e', 'g', 'i', 'o', 'c', 'i', 'e', 'r', 'p', '.', 'c', 'o', 'm', '.', 'b', 'r', '\0', /* "colemak.com", true */ 'c', 'o', 'l', 'e', 'm', 'a', 'k', '.', 'c', 'o', 'm', '\0', /* "colengo.com", true */ 'c', 'o', 'l', 'e', 'n', 'g', 'o', '.', 'c', 'o', 'm', '\0', /* "colibris.xyz", true */ 'c', 'o', 'l', 'i', 'b', 'r', 'i', 's', '.', 'x', 'y', 'z', '\0', /* "colincampbell.me", true */ 'c', 'o', 'l', 'i', 'n', 'c', 'a', 'm', 'p', 'b', 'e', 'l', 'l', '.', 'm', 'e', '\0', - /* "colinchartier.com", true */ 'c', 'o', 'l', 'i', 'n', 'c', 'h', 'a', 'r', 't', 'i', 'e', 'r', '.', 'c', 'o', 'm', '\0', /* "colinstark.ca", true */ 'c', 'o', 'l', 'i', 'n', 's', 't', 'a', 'r', 'k', '.', 'c', 'a', '\0', /* "colinwolff.com", true */ 'c', 'o', 'l', 'i', 'n', 'w', 'o', 'l', 'f', 'f', '.', 'c', 'o', 'm', '\0', /* "colisfrais.com", false */ 'c', 'o', 'l', 'i', 's', 'f', 'r', 'a', 'i', 's', '.', 'c', 'o', 'm', '\0', @@ -4111,9 +4116,6 @@ static const char kSTSHostTable[] = { /* "conpins.nl", true */ 'c', 'o', 'n', 'p', 'i', 'n', 's', '.', 'n', 'l', '\0', /* "conrad-kostecki.de", true */ 'c', 'o', 'n', 'r', 'a', 'd', '-', 'k', 'o', 's', 't', 'e', 'c', 'k', 'i', '.', 'd', 'e', '\0', /* "consciousbrand.co", true */ 'c', 'o', 'n', 's', 'c', 'i', 'o', 'u', 's', 'b', 'r', 'a', 'n', 'd', '.', 'c', 'o', '\0', - /* "consciousbrand.org.au", true */ 'c', 'o', 'n', 's', 'c', 'i', 'o', 'u', 's', 'b', 'r', 'a', 'n', 'd', '.', 'o', 'r', 'g', '.', 'a', 'u', '\0', - /* "consciousbranding.org.au", true */ 'c', 'o', 'n', 's', 'c', 'i', 'o', 'u', 's', 'b', 'r', 'a', 'n', 'd', 'i', 'n', 'g', '.', 'o', 'r', 'g', '.', 'a', 'u', '\0', - /* "consciousbrands.net.au", true */ 'c', 'o', 'n', 's', 'c', 'i', 'o', 'u', 's', 'b', 'r', 'a', 'n', 'd', 's', '.', 'n', 'e', 't', '.', 'a', 'u', '\0', /* "conservatoriesincornwall.com", true */ 'c', 'o', 'n', 's', 'e', 'r', 'v', 'a', 't', 'o', 'r', 'i', 'e', 's', 'i', 'n', 'c', 'o', 'r', 'n', 'w', 'a', 'l', 'l', '.', 'c', 'o', 'm', '\0', /* "consideredgifts.com", true */ 'c', 'o', 'n', 's', 'i', 'd', 'e', 'r', 'e', 'd', 'g', 'i', 'f', 't', 's', '.', 'c', 'o', 'm', '\0', /* "consilium-vitae.ch", true */ 'c', 'o', 'n', 's', 'i', 'l', 'i', 'u', 'm', '-', 'v', 'i', 't', 'a', 'e', '.', 'c', 'h', '\0', @@ -4209,7 +4211,6 @@ static const char kSTSHostTable[] = { /* "cosmundi.de", true */ 'c', 'o', 's', 'm', 'u', 'n', 'd', 'i', '.', 'd', 'e', '\0', /* "cosplayer.com", true */ 'c', 'o', 's', 'p', 'l', 'a', 'y', 'e', 'r', '.', 'c', 'o', 'm', '\0', /* "costablancavoorjou.com", true */ 'c', 'o', 's', 't', 'a', 'b', 'l', 'a', 'n', 'c', 'a', 'v', 'o', 'o', 'r', 'j', 'o', 'u', '.', 'c', 'o', 'm', '\0', - /* "costow.club", true */ 'c', 'o', 's', 't', 'o', 'w', '.', 'c', 'l', 'u', 'b', '\0', /* "costreportdata.com", true */ 'c', 'o', 's', 't', 'r', 'e', 'p', 'o', 'r', 't', 'd', 'a', 't', 'a', '.', 'c', 'o', 'm', '\0', /* "cotonea.de", true */ 'c', 'o', 't', 'o', 'n', 'e', 'a', '.', 'd', 'e', '\0', /* "cotwe-ge.ch", true */ 'c', 'o', 't', 'w', 'e', '-', 'g', 'e', '.', 'c', 'h', '\0', @@ -4498,9 +4499,6 @@ static const char kSTSHostTable[] = { /* "cutimbo.ovh", true */ 'c', 'u', 't', 'i', 'm', 'b', 'o', '.', 'o', 'v', 'h', '\0', /* "cuvva.co", true */ 'c', 'u', 'v', 'v', 'a', '.', 'c', 'o', '\0', /* "cuvva.com", true */ 'c', 'u', 'v', 'v', 'a', '.', 'c', 'o', 'm', '\0', - /* "cuvva.net", true */ 'c', 'u', 'v', 'v', 'a', '.', 'n', 'e', 't', '\0', - /* "cuvva.uk", true */ 'c', 'u', 'v', 'v', 'a', '.', 'u', 'k', '\0', - /* "cuvva.us", true */ 'c', 'u', 'v', 'v', 'a', '.', 'u', 's', '\0', /* "cve-le-carrousel.ch", true */ 'c', 'v', 'e', '-', 'l', 'e', '-', 'c', 'a', 'r', 'r', 'o', 'u', 's', 'e', 'l', '.', 'c', 'h', '\0', /* "cviip.ca", true */ 'c', 'v', 'i', 'i', 'p', '.', 'c', 'a', '\0', /* "cviip.com", true */ 'c', 'v', 'i', 'i', 'p', '.', 'c', 'o', 'm', '\0', @@ -4549,6 +4547,7 @@ static const char kSTSHostTable[] = { /* "cyclehackluxembourgcity.lu", true */ 'c', 'y', 'c', 'l', 'e', 'h', 'a', 'c', 'k', 'l', 'u', 'x', 'e', 'm', 'b', 'o', 'u', 'r', 'g', 'c', 'i', 't', 'y', '.', 'l', 'u', '\0', /* "cyfly.org", true */ 'c', 'y', 'f', 'l', 'y', '.', 'o', 'r', 'g', '\0', /* "cygnius.net", true */ 'c', 'y', 'g', 'n', 'i', 'u', 's', '.', 'n', 'e', 't', '\0', + /* "cymtech.net", true */ 'c', 'y', 'm', 't', 'e', 'c', 'h', '.', 'n', 'e', 't', '\0', /* "cyoda.com", true */ 'c', 'y', 'o', 'd', 'a', '.', 'c', 'o', 'm', '\0', /* "cyon.ch", true */ 'c', 'y', 'o', 'n', '.', 'c', 'h', '\0', /* "cyph.audio", true */ 'c', 'y', 'p', 'h', '.', 'a', 'u', 'd', 'i', 'o', '\0', @@ -4635,7 +4634,6 @@ static const char kSTSHostTable[] = { /* "danbarrett.com.au", true */ 'd', 'a', 'n', 'b', 'a', 'r', 'r', 'e', 't', 't', '.', 'c', 'o', 'm', '.', 'a', 'u', '\0', /* "danchen.org", true */ 'd', 'a', 'n', 'c', 'h', 'e', 'n', '.', 'o', 'r', 'g', '\0', /* "dandenongroadapartments.com.au", true */ 'd', 'a', 'n', 'd', 'e', 'n', 'o', 'n', 'g', 'r', 'o', 'a', 'd', 'a', 'p', 'a', 'r', 't', 'm', 'e', 'n', 't', 's', '.', 'c', 'o', 'm', '.', 'a', 'u', '\0', - /* "dane-bre.net", true */ 'd', 'a', 'n', 'e', '-', 'b', 'r', 'e', '.', 'n', 'e', 't', '\0', /* "dango.in", true */ 'd', 'a', 'n', 'g', 'o', '.', 'i', 'n', '\0', /* "daniel-baumann.ch", true */ 'd', 'a', 'n', 'i', 'e', 'l', '-', 'b', 'a', 'u', 'm', 'a', 'n', 'n', '.', 'c', 'h', '\0', /* "daniel-du.com", true */ 'd', 'a', 'n', 'i', 'e', 'l', '-', 'd', 'u', '.', 'c', 'o', 'm', '\0', @@ -5064,6 +5062,7 @@ static const char kSTSHostTable[] = { /* "devel.cz", true */ 'd', 'e', 'v', 'e', 'l', '.', 'c', 'z', '\0', /* "develop.fitness", true */ 'd', 'e', 'v', 'e', 'l', 'o', 'p', '.', 'f', 'i', 't', 'n', 'e', 's', 's', '\0', /* "developer.mydigipass.com", false */ 'd', 'e', 'v', 'e', 'l', 'o', 'p', 'e', 'r', '.', 'm', 'y', 'd', 'i', 'g', 'i', 'p', 'a', 's', 's', '.', 'c', 'o', 'm', '\0', + /* "developerfair.com", true */ 'd', 'e', 'v', 'e', 'l', 'o', 'p', 'e', 'r', 'f', 'a', 'i', 'r', '.', 'c', 'o', 'm', '\0', /* "developers.facebook.com", false */ 'd', 'e', 'v', 'e', 'l', 'o', 'p', 'e', 'r', 's', '.', 'f', 'a', 'c', 'e', 'b', 'o', 'o', 'k', '.', 'c', 'o', 'm', '\0', /* "developfx.com", true */ 'd', 'e', 'v', 'e', 'l', 'o', 'p', 'f', 'x', '.', 'c', 'o', 'm', '\0', /* "developmentaid.org", true */ 'd', 'e', 'v', 'e', 'l', 'o', 'p', 'm', 'e', 'n', 't', 'a', 'i', 'd', '.', 'o', 'r', 'g', '\0', @@ -5660,7 +5659,6 @@ static const char kSTSHostTable[] = { /* "dustri.org", true */ 'd', 'u', 's', 't', 'r', 'i', '.', 'o', 'r', 'g', '\0', /* "dustygroove.com", true */ 'd', 'u', 's', 't', 'y', 'g', 'r', 'o', 'o', 'v', 'e', '.', 'c', 'o', 'm', '\0', /* "dutch1.nl", true */ 'd', 'u', 't', 'c', 'h', '1', '.', 'n', 'l', '\0', - /* "dutchessuganda.com", true */ 'd', 'u', 't', 'c', 'h', 'e', 's', 's', 'u', 'g', 'a', 'n', 'd', 'a', '.', 'c', 'o', 'm', '\0', /* "dutchrank.nl", true */ 'd', 'u', 't', 'c', 'h', 'r', 'a', 'n', 'k', '.', 'n', 'l', '\0', /* "dutchwanderers.nl", true */ 'd', 'u', 't', 'c', 'h', 'w', 'a', 'n', 'd', 'e', 'r', 'e', 'r', 's', '.', 'n', 'l', '\0', /* "dutchweballiance.nl", true */ 'd', 'u', 't', 'c', 'h', 'w', 'e', 'b', 'a', 'l', 'l', 'i', 'a', 'n', 'c', 'e', '.', 'n', 'l', '\0', @@ -5673,7 +5671,6 @@ static const char kSTSHostTable[] = { /* "dvx.cloud", true */ 'd', 'v', 'x', '.', 'c', 'l', 'o', 'u', 'd', '\0', /* "dwhd.org", true */ 'd', 'w', 'h', 'd', '.', 'o', 'r', 'g', '\0', /* "dwnld.me", true */ 'd', 'w', 'n', 'l', 'd', '.', 'm', 'e', '\0', - /* "dworzak.ch", true */ 'd', 'w', 'o', 'r', 'z', 'a', 'k', '.', 'c', 'h', '\0', /* "dwtm.ch", true */ 'd', 'w', 't', 'm', '.', 'c', 'h', '\0', /* "dwworld.co.uk", true */ 'd', 'w', 'w', 'o', 'r', 'l', 'd', '.', 'c', 'o', '.', 'u', 'k', '\0', /* "dxa.io", false */ 'd', 'x', 'a', '.', 'i', 'o', '\0', @@ -5852,7 +5849,6 @@ static const char kSTSHostTable[] = { /* "eductf.org", true */ 'e', 'd', 'u', 'c', 't', 'f', '.', 'o', 'r', 'g', '\0', /* "edudrugs.com", true */ 'e', 'd', 'u', 'd', 'r', 'u', 'g', 's', '.', 'c', 'o', 'm', '\0', /* "eduid.se", true */ 'e', 'd', 'u', 'i', 'd', '.', 's', 'e', '\0', - /* "eduif.nl", false */ 'e', 'd', 'u', 'i', 'f', '.', 'n', 'l', '\0', /* "edumundo.nl", true */ 'e', 'd', 'u', 'm', 'u', 'n', 'd', 'o', '.', 'n', 'l', '\0', /* "eduroam.no", true */ 'e', 'd', 'u', 'r', 'o', 'a', 'm', '.', 'n', 'o', '\0', /* "edusantorini.com", true */ 'e', 'd', 'u', 's', 'a', 'n', 't', 'o', 'r', 'i', 'n', 'i', '.', 'c', 'o', 'm', '\0', @@ -5951,6 +5947,8 @@ static const char kSTSHostTable[] = { /* "ejeff.org", true */ 'e', 'j', 'e', 'f', 'f', '.', 'o', 'r', 'g', '\0', /* "ejgconsultancy.co.uk", true */ 'e', 'j', 'g', 'c', 'o', 'n', 's', 'u', 'l', 't', 'a', 'n', 'c', 'y', '.', 'c', 'o', '.', 'u', 'k', '\0', /* "ejone.co", true */ 'e', 'j', 'o', 'n', 'e', '.', 'c', 'o', '\0', + /* "ekedc.com", true */ 'e', 'k', 'e', 'd', 'c', '.', 'c', 'o', 'm', '\0', + /* "ekedp.com", true */ 'e', 'k', 'e', 'd', 'p', '.', 'c', 'o', 'm', '\0', /* "ekodevices.com", true */ 'e', 'k', 'o', 'd', 'e', 'v', 'i', 'c', 'e', 's', '.', 'c', 'o', 'm', '\0', /* "ekokontakt.cz", true */ 'e', 'k', 'o', 'k', 'o', 'n', 't', 'a', 'k', 't', '.', 'c', 'z', '\0', /* "ekonbenefits.com", true */ 'e', 'k', 'o', 'n', 'b', 'e', 'n', 'e', 'f', 'i', 't', 's', '.', 'c', 'o', 'm', '\0', @@ -6142,7 +6140,6 @@ static const char kSTSHostTable[] = { /* "engaugetools.com", true */ 'e', 'n', 'g', 'a', 'u', 'g', 'e', 't', 'o', 'o', 'l', 's', '.', 'c', 'o', 'm', '\0', /* "engelundlicht.ch", true */ 'e', 'n', 'g', 'e', 'l', 'u', 'n', 'd', 'l', 'i', 'c', 'h', 't', '.', 'c', 'h', '\0', /* "engg.ca", true */ 'e', 'n', 'g', 'g', '.', 'c', 'a', '\0', - /* "engineeryourmarketing.com", false */ 'e', 'n', 'g', 'i', 'n', 'e', 'e', 'r', 'y', 'o', 'u', 'r', 'm', 'a', 'r', 'k', 'e', 't', 'i', 'n', 'g', '.', 'c', 'o', 'm', '\0', /* "engineowning.com", true */ 'e', 'n', 'g', 'i', 'n', 'e', 'o', 'w', 'n', 'i', 'n', 'g', '.', 'c', 'o', 'm', '\0', /* "enginepit.com", true */ 'e', 'n', 'g', 'i', 'n', 'e', 'p', 'i', 't', '.', 'c', 'o', 'm', '\0', /* "enginx.net", true */ 'e', 'n', 'g', 'i', 'n', 'x', '.', 'n', 'e', 't', '\0', @@ -6306,6 +6303,7 @@ static const char kSTSHostTable[] = { /* "esoko.eu", true */ 'e', 's', 'o', 'k', 'o', '.', 'e', 'u', '\0', /* "esono.de", true */ 'e', 's', 'o', 'n', 'o', '.', 'd', 'e', '\0', /* "esoterik.link", true */ 'e', 's', 'o', 't', 'e', 'r', 'i', 'k', '.', 'l', 'i', 'n', 'k', '\0', + /* "esoterikerforum.de", true */ 'e', 's', 'o', 't', 'e', 'r', 'i', 'k', 'e', 'r', 'f', 'o', 'r', 'u', 'm', '.', 'd', 'e', '\0', /* "esp8285.store", true */ 'e', 's', 'p', '8', '2', '8', '5', '.', 's', 't', 'o', 'r', 'e', '\0', /* "espace-gestion.fr", true */ 'e', 's', 'p', 'a', 'c', 'e', '-', 'g', 'e', 's', 't', 'i', 'o', 'n', '.', 'f', 'r', '\0', /* "espacemontmorency.com", true */ 'e', 's', 'p', 'a', 'c', 'e', 'm', 'o', 'n', 't', 'm', 'o', 'r', 'e', 'n', 'c', 'y', '.', 'c', 'o', 'm', '\0', @@ -6337,7 +6335,6 @@ static const char kSTSHostTable[] = { /* "etaes.eu", true */ 'e', 't', 'a', 'e', 's', '.', 'e', 'u', '\0', /* "etaoinwu.tk", true */ 'e', 't', 'a', 'o', 'i', 'n', 'w', 'u', '.', 't', 'k', '\0', /* "etath.com", true */ 'e', 't', 'a', 't', 'h', '.', 'c', 'o', 'm', '\0', - /* "etaxi.tn", true */ 'e', 't', 'a', 'x', 'i', '.', 't', 'n', '\0', /* "eteesheet.com", true */ 'e', 't', 'e', 'e', 's', 'h', 'e', 'e', 't', '.', 'c', 'o', 'm', '\0', /* "etelej.com", false */ 'e', 't', 'e', 'l', 'e', 'j', '.', 'c', 'o', 'm', '\0', /* "etenendrinken.nu", true */ 'e', 't', 'e', 'n', 'e', 'n', 'd', 'r', 'i', 'n', 'k', 'e', 'n', '.', 'n', 'u', '\0', @@ -6425,6 +6422,7 @@ static const char kSTSHostTable[] = { /* "ev-zertifikate.de", true */ 'e', 'v', '-', 'z', 'e', 'r', 't', 'i', 'f', 'i', 'k', 'a', 't', 'e', '.', 'd', 'e', '\0', /* "eva.cz", true */ 'e', 'v', 'a', '.', 'c', 'z', '\0', /* "evades.io", true */ 'e', 'v', 'a', 'd', 'e', 's', '.', 'i', 'o', '\0', + /* "evalesc.com", true */ 'e', 'v', 'a', 'l', 'e', 's', 'c', '.', 'c', 'o', 'm', '\0', /* "evangelosm.com", true */ 'e', 'v', 'a', 'n', 'g', 'e', 'l', 'o', 's', 'm', '.', 'c', 'o', 'm', '\0', /* "evanhandgraaf.nl", true */ 'e', 'v', 'a', 'n', 'h', 'a', 'n', 'd', 'g', 'r', 'a', 'a', 'f', '.', 'n', 'l', '\0', /* "evankurniawan.com", true */ 'e', 'v', 'a', 'n', 'k', 'u', 'r', 'n', 'i', 'a', 'w', 'a', 'n', '.', 'c', 'o', 'm', '\0', @@ -6454,7 +6452,6 @@ static const char kSTSHostTable[] = { /* "everygayporn.com", true */ 'e', 'v', 'e', 'r', 'y', 'g', 'a', 'y', 'p', 'o', 'r', 'n', '.', 'c', 'o', 'm', '\0', /* "everymove.org", true */ 'e', 'v', 'e', 'r', 'y', 'm', 'o', 'v', 'e', '.', 'o', 'r', 'g', '\0', /* "everywhere.cloud", true */ 'e', 'v', 'e', 'r', 'y', 'w', 'h', 'e', 'r', 'e', '.', 'c', 'l', 'o', 'u', 'd', '\0', - /* "eveseat.net", true */ 'e', 'v', 'e', 's', 'e', 'a', 't', '.', 'n', 'e', 't', '\0', /* "eveshaiwu.com", true */ 'e', 'v', 'e', 's', 'h', 'a', 'i', 'w', 'u', '.', 'c', 'o', 'm', '\0', /* "eveshamglass.co.uk", true */ 'e', 'v', 'e', 's', 'h', 'a', 'm', 'g', 'l', 'a', 's', 's', '.', 'c', 'o', '.', 'u', 'k', '\0', /* "evexia.xyz", true */ 'e', 'v', 'e', 'x', 'i', 'a', '.', 'x', 'y', 'z', '\0', @@ -6536,7 +6533,6 @@ static const char kSTSHostTable[] = { /* "extrapagetab.com", true */ 'e', 'x', 't', 'r', 'a', 'p', 'a', 'g', 'e', 't', 'a', 'b', '.', 'c', 'o', 'm', '\0', /* "extreme-gaming.de", true */ 'e', 'x', 't', 'r', 'e', 'm', 'e', '-', 'g', 'a', 'm', 'i', 'n', 'g', '.', 'd', 'e', '\0', /* "extreme-gaming.us", true */ 'e', 'x', 't', 'r', 'e', 'm', 'e', '-', 'g', 'a', 'm', 'i', 'n', 'g', '.', 'u', 's', '\0', - /* "extrememanual.net", false */ 'e', 'x', 't', 'r', 'e', 'm', 'e', 'm', 'a', 'n', 'u', 'a', 'l', '.', 'n', 'e', 't', '\0', /* "eyasc.nl", true */ 'e', 'y', 'a', 's', 'c', '.', 'n', 'l', '\0', /* "eydesignguidelines.com", true */ 'e', 'y', 'd', 'e', 's', 'i', 'g', 'n', 'g', 'u', 'i', 'd', 'e', 'l', 'i', 'n', 'e', 's', '.', 'c', 'o', 'm', '\0', /* "eye-carat.com", true */ 'e', 'y', 'e', '-', 'c', 'a', 'r', 'a', 't', '.', 'c', 'o', 'm', '\0', @@ -6693,7 +6689,6 @@ static const char kSTSHostTable[] = { /* "fassadenverkleidung24.de", true */ 'f', 'a', 's', 's', 'a', 'd', 'e', 'n', 'v', 'e', 'r', 'k', 'l', 'e', 'i', 'd', 'u', 'n', 'g', '2', '4', '.', 'd', 'e', '\0', /* "fastaim.de", true */ 'f', 'a', 's', 't', 'a', 'i', 'm', '.', 'd', 'e', '\0', /* "fastbackmbg.be", true */ 'f', 'a', 's', 't', 'b', 'a', 'c', 'k', 'm', 'b', 'g', '.', 'b', 'e', '\0', - /* "fastcomcorp.com", true */ 'f', 'a', 's', 't', 'c', 'o', 'm', 'c', 'o', 'r', 'p', '.', 'c', 'o', 'm', '\0', /* "fastcomcorp.net", true */ 'f', 'a', 's', 't', 'c', 'o', 'm', 'c', 'o', 'r', 'p', '.', 'n', 'e', 't', '\0', /* "fastconfirm.com", true */ 'f', 'a', 's', 't', 'c', 'o', 'n', 'f', 'i', 'r', 'm', '.', 'c', 'o', 'm', '\0', /* "fastforwardthemes.com", true */ 'f', 'a', 's', 't', 'f', 'o', 'r', 'w', 'a', 'r', 'd', 't', 'h', 'e', 'm', 'e', 's', '.', 'c', 'o', 'm', '\0', @@ -6829,7 +6824,6 @@ static const char kSTSHostTable[] = { /* "fierman.net", false */ 'f', 'i', 'e', 'r', 'm', 'a', 'n', '.', 'n', 'e', 't', '\0', /* "fierman.us", false */ 'f', 'i', 'e', 'r', 'm', 'a', 'n', '.', 'u', 's', '\0', /* "fifichachnil.paris", true */ 'f', 'i', 'f', 'i', 'c', 'h', 'a', 'c', 'h', 'n', 'i', 'l', '.', 'p', 'a', 'r', 'i', 's', '\0', - /* "fifieldtech.com", true */ 'f', 'i', 'f', 'i', 'e', 'l', 'd', 't', 'e', 'c', 'h', '.', 'c', 'o', 'm', '\0', /* "fight215.com", true */ 'f', 'i', 'g', 'h', 't', '2', '1', '5', '.', 'c', 'o', 'm', '\0', /* "fight215.org", true */ 'f', 'i', 'g', 'h', 't', '2', '1', '5', '.', 'o', 'r', 'g', '\0', /* "figura.cz", true */ 'f', 'i', 'g', 'u', 'r', 'a', '.', 'c', 'z', '\0', @@ -7039,6 +7033,7 @@ static const char kSTSHostTable[] = { /* "flymns.fr", true */ 'f', 'l', 'y', 'm', 'n', 's', '.', 'f', 'r', '\0', /* "flynn.io", true */ 'f', 'l', 'y', 'n', 'n', '.', 'i', 'o', '\0', /* "flyserver.co.il", true */ 'f', 'l', 'y', 's', 'e', 'r', 'v', 'e', 'r', '.', 'c', 'o', '.', 'i', 'l', '\0', + /* "flyss.net", true */ 'f', 'l', 'y', 's', 's', '.', 'n', 'e', 't', '\0', /* "fm.ie", true */ 'f', 'm', '.', 'i', 'e', '\0', /* "fmapplication.com", true */ 'f', 'm', 'a', 'p', 'p', 'l', 'i', 'c', 'a', 't', 'i', 'o', 'n', '.', 'c', 'o', 'm', '\0', /* "fmarchal.fr", true */ 'f', 'm', 'a', 'r', 'c', 'h', 'a', 'l', '.', 'f', 'r', '\0', @@ -7164,7 +7159,6 @@ static const char kSTSHostTable[] = { /* "fotowolfy.com", true */ 'f', 'o', 't', 'o', 'w', 'o', 'l', 'f', 'y', '.', 'c', 'o', 'm', '\0', /* "found.website", true */ 'f', 'o', 'u', 'n', 'd', '.', 'w', 'e', 'b', 's', 'i', 't', 'e', '\0', /* "foundsounds.me", true */ 'f', 'o', 'u', 'n', 'd', 's', 'o', 'u', 'n', 'd', 's', '.', 'm', 'e', '\0', - /* "fourchin.net", true */ 'f', 'o', 'u', 'r', 'c', 'h', 'i', 'n', '.', 'n', 'e', 't', '\0', /* "fourwheelpartloanssimple.com", true */ 'f', 'o', 'u', 'r', 'w', 'h', 'e', 'e', 'l', 'p', 'a', 'r', 't', 'l', 'o', 'a', 'n', 's', 's', 'i', 'm', 'p', 'l', 'e', '.', 'c', 'o', 'm', '\0', /* "foxbnc.co.uk", true */ 'f', 'o', 'x', 'b', 'n', 'c', '.', 'c', 'o', '.', 'u', 'k', '\0', /* "foxdev.co", true */ 'f', 'o', 'x', 'd', 'e', 'v', '.', 'c', 'o', '\0', @@ -7228,6 +7222,7 @@ static const char kSTSHostTable[] = { /* "freeasyshop.com", true */ 'f', 'r', 'e', 'e', 'a', 's', 'y', 's', 'h', 'o', 'p', '.', 'c', 'o', 'm', '\0', /* "freeben666.fr", true */ 'f', 'r', 'e', 'e', 'b', 'e', 'n', '6', '6', '6', '.', 'f', 'r', '\0', /* "freebetoffers.co.uk", true */ 'f', 'r', 'e', 'e', 'b', 'e', 't', 'o', 'f', 'f', 'e', 'r', 's', '.', 'c', 'o', '.', 'u', 'k', '\0', + /* "freeboson.org", true */ 'f', 'r', 'e', 'e', 'b', 'o', 's', 'o', 'n', '.', 'o', 'r', 'g', '\0', /* "freebus.org", true */ 'f', 'r', 'e', 'e', 'b', 'u', 's', '.', 'o', 'r', 'g', '\0', /* "freecloud.at", true */ 'f', 'r', 'e', 'e', 'c', 'l', 'o', 'u', 'd', '.', 'a', 't', '\0', /* "freedev.cz", true */ 'f', 'r', 'e', 'e', 'd', 'e', 'v', '.', 'c', 'z', '\0', @@ -7528,6 +7523,7 @@ static const char kSTSHostTable[] = { /* "gardencarezone.com", true */ 'g', 'a', 'r', 'd', 'e', 'n', 'c', 'a', 'r', 'e', 'z', 'o', 'n', 'e', '.', 'c', 'o', 'm', '\0', /* "garderobche.eu", true */ 'g', 'a', 'r', 'd', 'e', 'r', 'o', 'b', 'c', 'h', 'e', '.', 'e', 'u', '\0', /* "gardikagigih.com", true */ 'g', 'a', 'r', 'd', 'i', 'k', 'a', 'g', 'i', 'g', 'i', 'h', '.', 'c', 'o', 'm', '\0', + /* "garedtech.com", true */ 'g', 'a', 'r', 'e', 'd', 't', 'e', 'c', 'h', '.', 'c', 'o', 'm', '\0', /* "garfieldairlines.net", true */ 'g', 'a', 'r', 'f', 'i', 'e', 'l', 'd', 'a', 'i', 'r', 'l', 'i', 'n', 'e', 's', '.', 'n', 'e', 't', '\0', /* "gargazon.net", true */ 'g', 'a', 'r', 'g', 'a', 'z', 'o', 'n', '.', 'n', 'e', 't', '\0', /* "garron.net", true */ 'g', 'a', 'r', 'r', 'o', 'n', '.', 'n', 'e', 't', '\0', @@ -7647,7 +7643,7 @@ static const char kSTSHostTable[] = { /* "genshiken.org", true */ 'g', 'e', 'n', 's', 'h', 'i', 'k', 'e', 'n', '.', 'o', 'r', 'g', '\0', /* "genslerapps.com", true */ 'g', 'e', 'n', 's', 'l', 'e', 'r', 'a', 'p', 'p', 's', '.', 'c', 'o', 'm', '\0', /* "genslerwisp.com", true */ 'g', 'e', 'n', 's', 'l', 'e', 'r', 'w', 'i', 's', 'p', '.', 'c', 'o', 'm', '\0', - /* "gensonline.eu", true */ 'g', 'e', 'n', 's', 'o', 'n', 'l', 'i', 'n', 'e', '.', 'e', 'u', '\0', + /* "genuxtsg.com", true */ 'g', 'e', 'n', 'u', 'x', 't', 's', 'g', '.', 'c', 'o', 'm', '\0', /* "genxbeats.com", true */ 'g', 'e', 'n', 'x', 'b', 'e', 'a', 't', 's', '.', 'c', 'o', 'm', '\0', /* "genxnotes.com", true */ 'g', 'e', 'n', 'x', 'n', 'o', 't', 'e', 's', '.', 'c', 'o', 'm', '\0', /* "geoffdev.com", true */ 'g', 'e', 'o', 'f', 'f', 'd', 'e', 'v', '.', 'c', 'o', 'm', '\0', @@ -7725,7 +7721,6 @@ static const char kSTSHostTable[] = { /* "getsubs.net", true */ 'g', 'e', 't', 's', 'u', 'b', 's', '.', 'n', 'e', 't', '\0', /* "getts.ro", true */ 'g', 'e', 't', 't', 's', '.', 'r', 'o', '\0', /* "getvdownloader.com", true */ 'g', 'e', 't', 'v', 'd', 'o', 'w', 'n', 'l', 'o', 'a', 'd', 'e', 'r', '.', 'c', 'o', 'm', '\0', - /* "getwarden.net", true */ 'g', 'e', 't', 'w', 'a', 'r', 'd', 'e', 'n', '.', 'n', 'e', 't', '\0', /* "getwpd.com", true */ 'g', 'e', 't', 'w', 'p', 'd', '.', 'c', 'o', 'm', '\0', /* "gfast.ru", true */ 'g', 'f', 'a', 's', 't', '.', 'r', 'u', '\0', /* "gfhgiro.nl", false */ 'g', 'f', 'h', 'g', 'i', 'r', 'o', '.', 'n', 'l', '\0', @@ -8141,7 +8136,6 @@ static const char kSTSHostTable[] = { /* "grusig-geil.ch", true */ 'g', 'r', 'u', 's', 'i', 'g', '-', 'g', 'e', 'i', 'l', '.', 'c', 'h', '\0', /* "grytics.com", true */ 'g', 'r', 'y', 't', 'i', 'c', 's', '.', 'c', 'o', 'm', '\0', /* "gs-net.at", true */ 'g', 's', '-', 'n', 'e', 't', '.', 'a', 't', '\0', - /* "gsgs.se", true */ 'g', 's', 'g', 's', '.', 's', 'e', '\0', /* "gsi-network.com", true */ 'g', 's', 'i', '-', 'n', 'e', 't', 'w', 'o', 'r', 'k', '.', 'c', 'o', 'm', '\0', /* "gsimagebank.co.uk", true */ 'g', 's', 'i', 'm', 'a', 'g', 'e', 'b', 'a', 'n', 'k', '.', 'c', 'o', '.', 'u', 'k', '\0', /* "gsmkungen.com", true */ 'g', 's', 'm', 'k', 'u', 'n', 'g', 'e', 'n', '.', 'c', 'o', 'm', '\0', @@ -8282,13 +8276,13 @@ static const char kSTSHostTable[] = { /* "hadouk.in", true */ 'h', 'a', 'd', 'o', 'u', 'k', '.', 'i', 'n', '\0', /* "hadrons.org", true */ 'h', 'a', 'd', 'r', 'o', 'n', 's', '.', 'o', 'r', 'g', '\0', /* "haefligermedia.ch", true */ 'h', 'a', 'e', 'f', 'l', 'i', 'g', 'e', 'r', 'm', 'e', 'd', 'i', 'a', '.', 'c', 'h', '\0', + /* "haehnlein.at", true */ 'h', 'a', 'e', 'h', 'n', 'l', 'e', 'i', 'n', '.', 'a', 't', '\0', /* "haens.li", true */ 'h', 'a', 'e', 'n', 's', '.', 'l', 'i', '\0', /* "hafniatimes.com", true */ 'h', 'a', 'f', 'n', 'i', 'a', 't', 'i', 'm', 'e', 's', '.', 'c', 'o', 'm', '\0', /* "haiboxu.com", true */ 'h', 'a', 'i', 'b', 'o', 'x', 'u', '.', 'c', 'o', 'm', '\0', /* "hail2u.net", true */ 'h', 'a', 'i', 'l', '2', 'u', '.', 'n', 'e', 't', '\0', /* "hailer.com", true */ 'h', 'a', 'i', 'l', 'e', 'r', '.', 'c', 'o', 'm', '\0', /* "haircrazy.com", true */ 'h', 'a', 'i', 'r', 'c', 'r', 'a', 'z', 'y', '.', 'c', 'o', 'm', '\0', - /* "hajnzic.at", true */ 'h', 'a', 'j', 'n', 'z', 'i', 'c', '.', 'a', 't', '\0', /* "hakase.kr", true */ 'h', 'a', 'k', 'a', 's', 'e', '.', 'k', 'r', '\0', /* "hakatabijin-mind.com", true */ 'h', 'a', 'k', 'a', 't', 'a', 'b', 'i', 'j', 'i', 'n', '-', 'm', 'i', 'n', 'd', '.', 'c', 'o', 'm', '\0', /* "hake.me", true */ 'h', 'a', 'k', 'e', '.', 'm', 'e', '\0', @@ -8567,6 +8561,7 @@ static const char kSTSHostTable[] = { /* "hennecke-forstbetrieb.de", true */ 'h', 'e', 'n', 'n', 'e', 'c', 'k', 'e', '-', 'f', 'o', 'r', 's', 't', 'b', 'e', 't', 'r', 'i', 'e', 'b', '.', 'd', 'e', '\0', /* "hennymerkel.com", true */ 'h', 'e', 'n', 'n', 'y', 'm', 'e', 'r', 'k', 'e', 'l', '.', 'c', 'o', 'm', '\0', /* "henok.eu", true */ 'h', 'e', 'n', 'o', 'k', '.', 'e', 'u', '\0', + /* "henriksen.is", true */ 'h', 'e', 'n', 'r', 'i', 'k', 's', 'e', 'n', '.', 'i', 's', '\0', /* "henrock.net", true */ 'h', 'e', 'n', 'r', 'o', 'c', 'k', '.', 'n', 'e', 't', '\0', /* "henry.gg", true */ 'h', 'e', 'n', 'r', 'y', '.', 'g', 'g', '\0', /* "henryphan.com", false */ 'h', 'e', 'n', 'r', 'y', 'p', 'h', 'a', 'n', '.', 'c', 'o', 'm', '\0', @@ -8633,7 +8628,6 @@ static const char kSTSHostTable[] = { /* "hiexmerida-mailing.com", true */ 'h', 'i', 'e', 'x', 'm', 'e', 'r', 'i', 'd', 'a', '-', 'm', 'a', 'i', 'l', 'i', 'n', 'g', '.', 'c', 'o', 'm', '\0', /* "higgstools.org", true */ 'h', 'i', 'g', 'g', 's', 't', 'o', 'o', 'l', 's', '.', 'o', 'r', 'g', '\0', /* "higherpress.org", true */ 'h', 'i', 'g', 'h', 'e', 'r', 'p', 'r', 'e', 's', 's', '.', 'o', 'r', 'g', '\0', - /* "highgrove.org.uk", true */ 'h', 'i', 'g', 'h', 'g', 'r', 'o', 'v', 'e', '.', 'o', 'r', 'g', '.', 'u', 'k', '\0', /* "highspeed-arnsberg.de", true */ 'h', 'i', 'g', 'h', 's', 'p', 'e', 'e', 'd', '-', 'a', 'r', 'n', 's', 'b', 'e', 'r', 'g', '.', 'd', 'e', '\0', /* "hightechbasementsystems.com", true */ 'h', 'i', 'g', 'h', 't', 'e', 'c', 'h', 'b', 'a', 's', 'e', 'm', 'e', 'n', 't', 's', 'y', 's', 't', 'e', 'm', 's', '.', 'c', 'o', 'm', '\0', /* "highwaytohoell.de", true */ 'h', 'i', 'g', 'h', 'w', 'a', 'y', 't', 'o', 'h', 'o', 'e', 'l', 'l', '.', 'd', 'e', '\0', @@ -8834,6 +8828,7 @@ static const char kSTSHostTable[] = { /* "hostserv.org", true */ 'h', 'o', 's', 't', 's', 'e', 'r', 'v', '.', 'o', 'r', 'g', '\0', /* "hosyaku.gr.jp", true */ 'h', 'o', 's', 'y', 'a', 'k', 'u', '.', 'g', 'r', '.', 'j', 'p', '\0', /* "hot-spa.ch", true */ 'h', 'o', 't', '-', 's', 'p', 'a', '.', 'c', 'h', '\0', + /* "hotartup.com", true */ 'h', 'o', 't', 'a', 'r', 't', 'u', 'p', '.', 'c', 'o', 'm', '\0', /* "hotel-huberhof.at", true */ 'h', 'o', 't', 'e', 'l', '-', 'h', 'u', 'b', 'e', 'r', 'h', 'o', 'f', '.', 'a', 't', '\0', /* "hotel-kronjuwel.de", true */ 'h', 'o', 't', 'e', 'l', '-', 'k', 'r', 'o', 'n', 'j', 'u', 'w', 'e', 'l', '.', 'd', 'e', '\0', /* "hotel-pension-sonnalp.eu", true */ 'h', 'o', 't', 'e', 'l', '-', 'p', 'e', 'n', 's', 'i', 'o', 'n', '-', 's', 'o', 'n', 'n', 'a', 'l', 'p', '.', 'e', 'u', '\0', @@ -8864,7 +8859,6 @@ static const char kSTSHostTable[] = { /* "howbehealthy.com", true */ 'h', 'o', 'w', 'b', 'e', 'h', 'e', 'a', 'l', 't', 'h', 'y', '.', 'c', 'o', 'm', '\0', /* "howbigismybuilding.com", true */ 'h', 'o', 'w', 'b', 'i', 'g', 'i', 's', 'm', 'y', 'b', 'u', 'i', 'l', 'd', 'i', 'n', 'g', '.', 'c', 'o', 'm', '\0', /* "howfargames.com", true */ 'h', 'o', 'w', 'f', 'a', 'r', 'g', 'a', 'm', 'e', 's', '.', 'c', 'o', 'm', '\0', - /* "howlongtobeatsteam.com", true */ 'h', 'o', 'w', 'l', 'o', 'n', 'g', 't', 'o', 'b', 'e', 'a', 't', 's', 't', 'e', 'a', 'm', '.', 'c', 'o', 'm', '\0', /* "howsecureismypassword.net", true */ 'h', 'o', 'w', 's', 'e', 'c', 'u', 'r', 'e', 'i', 's', 'm', 'y', 'p', 'a', 's', 's', 'w', 'o', 'r', 'd', '.', 'n', 'e', 't', '\0', /* "howsmyssl.com", true */ 'h', 'o', 'w', 's', 'm', 'y', 's', 's', 'l', '.', 'c', 'o', 'm', '\0', /* "howsmytls.com", true */ 'h', 'o', 'w', 's', 'm', 'y', 't', 'l', 's', '.', 'c', 'o', 'm', '\0', @@ -9033,7 +9027,7 @@ static const char kSTSHostTable[] = { /* "i-stats.net", true */ 'i', '-', 's', 't', 'a', 't', 's', '.', 'n', 'e', 't', '\0', /* "i1314.gdn", true */ 'i', '1', '3', '1', '4', '.', 'g', 'd', 'n', '\0', /* "i28s.com", true */ 'i', '2', '8', 's', '.', 'c', 'o', 'm', '\0', - /* "i496.eu", false */ 'i', '4', '9', '6', '.', 'e', 'u', '\0', + /* "i496.eu", true */ 'i', '4', '9', '6', '.', 'e', 'u', '\0', /* "i5y.co.uk", true */ 'i', '5', 'y', '.', 'c', 'o', '.', 'u', 'k', '\0', /* "i95.me", false */ 'i', '9', '5', '.', 'm', 'e', '\0', /* "iactu.info", true */ 'i', 'a', 'c', 't', 'u', '.', 'i', 'n', 'f', 'o', '\0', @@ -9048,6 +9042,7 @@ static const char kSTSHostTable[] = { /* "ian.sh", true */ 'i', 'a', 'n', '.', 's', 'h', '\0', /* "iandouglasscott.com", true */ 'i', 'a', 'n', 'd', 'o', 'u', 'g', 'l', 'a', 's', 's', 'c', 'o', 't', 't', '.', 'c', 'o', 'm', '\0', /* "ianix.com", true */ 'i', 'a', 'n', 'i', 'x', '.', 'c', 'o', 'm', '\0', + /* "iavian.com", true */ 'i', 'a', 'v', 'i', 'a', 'n', '.', 'c', 'o', 'm', '\0', /* "ib-wedler.de", false */ 'i', 'b', '-', 'w', 'e', 'd', 'l', 'e', 'r', '.', 'd', 'e', '\0', /* "iba.community", true */ 'i', 'b', 'a', '.', 'c', 'o', 'm', 'm', 'u', 'n', 'i', 't', 'y', '\0', /* "ibacktraced.it", true */ 'i', 'b', 'a', 'c', 'k', 't', 'r', 'a', 'c', 'e', 'd', '.', 'i', 't', '\0', @@ -9115,6 +9110,7 @@ static const char kSTSHostTable[] = { /* "idgard.de", true */ 'i', 'd', 'g', 'a', 'r', 'd', '.', 'd', 'e', '\0', /* "idhosts.co.id", true */ 'i', 'd', 'h', 'o', 's', 't', 's', '.', 'c', 'o', '.', 'i', 'd', '\0', /* "idid.tk", true */ 'i', 'd', 'i', 'd', '.', 't', 'k', '\0', + /* "idinby.dk", true */ 'i', 'd', 'i', 'n', 'b', 'y', '.', 'd', 'k', '\0', /* "idiopolis.org", true */ 'i', 'd', 'i', 'o', 'p', 'o', 'l', 'i', 's', '.', 'o', 'r', 'g', '\0', /* "idmanagement.gov", true */ 'i', 'd', 'm', 'a', 'n', 'a', 'g', 'e', 'm', 'e', 'n', 't', '.', 'g', 'o', 'v', '\0', /* "idmobile.co.uk", true */ 'i', 'd', 'm', 'o', 'b', 'i', 'l', 'e', '.', 'c', 'o', '.', 'u', 'k', '\0', @@ -9190,7 +9186,6 @@ static const char kSTSHostTable[] = { /* "ikon.name", true */ 'i', 'k', 'o', 'n', '.', 'n', 'a', 'm', 'e', '\0', /* "ikulist.me", true */ 'i', 'k', 'u', 'l', 'i', 's', 't', '.', 'm', 'e', '\0', /* "ikvts.de", true */ 'i', 'k', 'v', 't', 's', '.', 'd', 'e', '\0', - /* "ikwilthepiratebay.org", true */ 'i', 'k', 'w', 'i', 'l', 't', 'h', 'e', 'p', 'i', 'r', 'a', 't', 'e', 'b', 'a', 'y', '.', 'o', 'r', 'g', '\0', /* "ikzoekeengoedkopeauto.nl", true */ 'i', 'k', 'z', 'o', 'e', 'k', 'e', 'e', 'n', 'g', 'o', 'e', 'd', 'k', 'o', 'p', 'e', 'a', 'u', 't', 'o', '.', 'n', 'l', '\0', /* "ikzoekjeugdhulp.nl", true */ 'i', 'k', 'z', 'o', 'e', 'k', 'j', 'e', 'u', 'g', 'd', 'h', 'u', 'l', 'p', '.', 'n', 'l', '\0', /* "ila.fi", true */ 'i', 'l', 'a', '.', 'f', 'i', '\0', @@ -9467,7 +9462,6 @@ static const char kSTSHostTable[] = { /* "international-arbitration-attorney.com", true */ 'i', 'n', 't', 'e', 'r', 'n', 'a', 't', 'i', 'o', 'n', 'a', 'l', '-', 'a', 'r', 'b', 'i', 't', 'r', 'a', 't', 'i', 'o', 'n', '-', 'a', 't', 't', 'o', 'r', 'n', 'e', 'y', '.', 'c', 'o', 'm', '\0', /* "internationalfashionjobs.com", true */ 'i', 'n', 't', 'e', 'r', 'n', 'a', 't', 'i', 'o', 'n', 'a', 'l', 'f', 'a', 's', 'h', 'i', 'o', 'n', 'j', 'o', 'b', 's', '.', 'c', 'o', 'm', '\0', /* "internaut.co.za", true */ 'i', 'n', 't', 'e', 'r', 'n', 'a', 'u', 't', '.', 'c', 'o', '.', 'z', 'a', '\0', - /* "internect.co.za", true */ 'i', 'n', 't', 'e', 'r', 'n', 'e', 'c', 't', '.', 'c', 'o', '.', 'z', 'a', '\0', /* "internet-pornografie.de", true */ 'i', 'n', 't', 'e', 'r', 'n', 'e', 't', '-', 'p', 'o', 'r', 'n', 'o', 'g', 'r', 'a', 'f', 'i', 'e', '.', 'd', 'e', '\0', /* "internetaanbieders.eu", true */ 'i', 'n', 't', 'e', 'r', 'n', 'e', 't', 'a', 'a', 'n', 'b', 'i', 'e', 'd', 'e', 'r', 's', '.', 'e', 'u', '\0', /* "internetbank.swedbank.se", true */ 'i', 'n', 't', 'e', 'r', 'n', 'e', 't', 'b', 'a', 'n', 'k', '.', 's', 'w', 'e', 'd', 'b', 'a', 'n', 'k', '.', 's', 'e', '\0', @@ -9623,6 +9617,7 @@ static const char kSTSHostTable[] = { /* "ishadowsocks.ltd", true */ 'i', 's', 'h', 'a', 'd', 'o', 'w', 's', 'o', 'c', 'k', 's', '.', 'l', 't', 'd', '\0', /* "ishangirdhar.com", true */ 'i', 's', 'h', 'a', 'n', 'g', 'i', 'r', 'd', 'h', 'a', 'r', '.', 'c', 'o', 'm', '\0', /* "ishiharaken.com", true */ 'i', 's', 'h', 'i', 'h', 'a', 'r', 'a', 'k', 'e', 'n', '.', 'c', 'o', 'm', '\0', + /* "ishome.org", true */ 'i', 's', 'h', 'o', 'm', 'e', '.', 'o', 'r', 'g', '\0', /* "isil.fi", true */ 'i', 's', 'i', 'l', '.', 'f', 'i', '\0', /* "isimonbrown.co.uk", true */ 'i', 's', 'i', 'm', 'o', 'n', 'b', 'r', 'o', 'w', 'n', '.', 'c', 'o', '.', 'u', 'k', '\0', /* "isincheck.com", true */ 'i', 's', 'i', 'n', 'c', 'h', 'e', 'c', 'k', '.', 'c', 'o', 'm', '\0', @@ -9713,7 +9708,6 @@ static const char kSTSHostTable[] = { /* "iteli.eu", true */ 'i', 't', 'e', 'l', 'i', '.', 'e', 'u', '\0', /* "items.lv", true */ 'i', 't', 'e', 'm', 's', '.', 'l', 'v', '\0', /* "itemton.com", true */ 'i', 't', 'e', 'm', 't', 'o', 'n', '.', 'c', 'o', 'm', '\0', - /* "iterror.co", true */ 'i', 't', 'e', 'r', 'r', 'o', 'r', '.', 'c', 'o', '\0', /* "itfaq.nl", true */ 'i', 't', 'f', 'a', 'q', '.', 'n', 'l', '\0', /* "itfh.eu", true */ 'i', 't', 'f', 'h', '.', 'e', 'u', '\0', /* "itfix.cz", true */ 'i', 't', 'f', 'i', 'x', '.', 'c', 'z', '\0', @@ -9722,7 +9716,6 @@ static const char kSTSHostTable[] = { /* "itilo.de", true */ 'i', 't', 'i', 'l', 'o', '.', 'd', 'e', '\0', /* "itinsight.hu", true */ 'i', 't', 'i', 'n', 's', 'i', 'g', 'h', 't', '.', 'h', 'u', '\0', /* "itis4u.ch", true */ 'i', 't', 'i', 's', '4', 'u', '.', 'c', 'h', '\0', - /* "itludens.com", true */ 'i', 't', 'l', 'u', 'd', 'e', 'n', 's', '.', 'c', 'o', 'm', '\0', /* "itmanie.cz", true */ 'i', 't', 'm', 'a', 'n', 'i', 'e', '.', 'c', 'z', '\0', /* "itneeds.tech", true */ 'i', 't', 'n', 'e', 'e', 'd', 's', '.', 't', 'e', 'c', 'h', '\0', /* "itnews-bg.com", true */ 'i', 't', 'n', 'e', 'w', 's', '-', 'b', 'g', '.', 'c', 'o', 'm', '\0', @@ -9769,7 +9762,6 @@ static const char kSTSHostTable[] = { /* "ivvl.ru", true */ 'i', 'v', 'v', 'l', '.', 'r', 'u', '\0', /* "iwader.co.uk", true */ 'i', 'w', 'a', 'd', 'e', 'r', '.', 'c', 'o', '.', 'u', 'k', '\0', /* "iwalton.com", true */ 'i', 'w', 'a', 'l', 't', 'o', 'n', '.', 'c', 'o', 'm', '\0', - /* "iwannarefill.com", true */ 'i', 'w', 'a', 'n', 'n', 'a', 'r', 'e', 'f', 'i', 'l', 'l', '.', 'c', 'o', 'm', '\0', /* "iwilcox.me.uk", true */ 'i', 'w', 'i', 'l', 'c', 'o', 'x', '.', 'm', 'e', '.', 'u', 'k', '\0', /* "iwizerunek.pl", true */ 'i', 'w', 'i', 'z', 'e', 'r', 'u', 'n', 'e', 'k', '.', 'p', 'l', '\0', /* "iww.me", true */ 'i', 'w', 'w', '.', 'm', 'e', '\0', @@ -9846,7 +9838,6 @@ static const char kSTSHostTable[] = { /* "jaksi.io", true */ 'j', 'a', 'k', 's', 'i', '.', 'i', 'o', '\0', /* "jakub-boucek.cz", true */ 'j', 'a', 'k', 'u', 'b', '-', 'b', 'o', 'u', 'c', 'e', 'k', '.', 'c', 'z', '\0', /* "jakubboucek.cz", true */ 'j', 'a', 'k', 'u', 'b', 'b', 'o', 'u', 'c', 'e', 'k', '.', 'c', 'z', '\0', - /* "jakubtopic.cz", true */ 'j', 'a', 'k', 'u', 'b', 't', 'o', 'p', 'i', 'c', '.', 'c', 'z', '\0', /* "jakubvrba.cz", true */ 'j', 'a', 'k', 'u', 'b', 'v', 'r', 'b', 'a', '.', 'c', 'z', '\0', /* "jamanji.com.ng", true */ 'j', 'a', 'm', 'a', 'n', 'j', 'i', '.', 'c', 'o', 'm', '.', 'n', 'g', '\0', /* "jamberrynails.co.uk", true */ 'j', 'a', 'm', 'b', 'e', 'r', 'r', 'y', 'n', 'a', 'i', 'l', 's', '.', 'c', 'o', '.', 'u', 'k', '\0', @@ -10072,6 +10063,7 @@ static const char kSTSHostTable[] = { /* "jmb.lc", true */ 'j', 'm', 'b', '.', 'l', 'c', '\0', /* "jmcleaning.services", true */ 'j', 'm', 'c', 'l', 'e', 'a', 'n', 'i', 'n', 'g', '.', 's', 'e', 'r', 'v', 'i', 'c', 'e', 's', '\0', /* "jmedved.com", true */ 'j', 'm', 'e', 'd', 'v', 'e', 'd', '.', 'c', 'o', 'm', '\0', + /* "jmk.hu", true */ 'j', 'm', 'k', '.', 'h', 'u', '\0', /* "jmpmotorsport.co.uk", true */ 'j', 'm', 'p', 'm', 'o', 't', 'o', 'r', 's', 'p', 'o', 'r', 't', '.', 'c', 'o', '.', 'u', 'k', '\0', /* "jmvbmx.ch", true */ 'j', 'm', 'v', 'b', 'm', 'x', '.', 'c', 'h', '\0', /* "jmvdigital.com", true */ 'j', 'm', 'v', 'd', 'i', 'g', 'i', 't', 'a', 'l', '.', 'c', 'o', 'm', '\0', @@ -10156,7 +10148,6 @@ static const char kSTSHostTable[] = { /* "jonirrings.com", true */ 'j', 'o', 'n', 'i', 'r', 'r', 'i', 'n', 'g', 's', '.', 'c', 'o', 'm', '\0', /* "jonkermedia.nl", true */ 'j', 'o', 'n', 'k', 'e', 'r', 'm', 'e', 'd', 'i', 'a', '.', 'n', 'l', '\0', /* "jonlabelle.com", true */ 'j', 'o', 'n', 'l', 'a', 'b', 'e', 'l', 'l', 'e', '.', 'c', 'o', 'm', '\0', - /* "jonnybarnes.uk", true */ 'j', 'o', 'n', 'n', 'y', 'b', 'a', 'r', 'n', 'e', 's', '.', 'u', 'k', '\0', /* "jonnystoten.com", true */ 'j', 'o', 'n', 'n', 'y', 's', 't', 'o', 't', 'e', 'n', '.', 'c', 'o', 'm', '\0', /* "jonoalderson.com", true */ 'j', 'o', 'n', 'o', 'a', 'l', 'd', 'e', 'r', 's', 'o', 'n', '.', 'c', 'o', 'm', '\0', /* "jonpads.com", true */ 'j', 'o', 'n', 'p', 'a', 'd', 's', '.', 'c', 'o', 'm', '\0', @@ -10205,7 +10196,6 @@ static const char kSTSHostTable[] = { /* "joyofcookingandbaking.com", true */ 'j', 'o', 'y', 'o', 'f', 'c', 'o', 'o', 'k', 'i', 'n', 'g', 'a', 'n', 'd', 'b', 'a', 'k', 'i', 'n', 'g', '.', 'c', 'o', 'm', '\0', /* "joyqi.com", true */ 'j', 'o', 'y', 'q', 'i', '.', 'c', 'o', 'm', '\0', /* "jpaglier.com", true */ 'j', 'p', 'a', 'g', 'l', 'i', 'e', 'r', '.', 'c', 'o', 'm', '\0', - /* "jpcdi.com", true */ 'j', 'p', 'c', 'd', 'i', '.', 'c', 'o', 'm', '\0', /* "jpeaches.xyz", true */ 'j', 'p', 'e', 'a', 'c', 'h', 'e', 's', '.', 'x', 'y', 'z', '\0', /* "jpeg.io", true */ 'j', 'p', 'e', 'g', '.', 'i', 'o', '\0', /* "jpgangbang.com", true */ 'j', 'p', 'g', 'a', 'n', 'g', 'b', 'a', 'n', 'g', '.', 'c', 'o', 'm', '\0', @@ -10405,6 +10395,7 @@ static const char kSTSHostTable[] = { /* "karit.nz", true */ 'k', 'a', 'r', 'i', 't', '.', 'n', 'z', '\0', /* "karjala-ski.ru", true */ 'k', 'a', 'r', 'j', 'a', 'l', 'a', '-', 's', 'k', 'i', '.', 'r', 'u', '\0', /* "karlbowden.com", true */ 'k', 'a', 'r', 'l', 'b', 'o', 'w', 'd', 'e', 'n', '.', 'c', 'o', 'm', '\0', + /* "karlis-kavacis.id.lv", true */ 'k', 'a', 'r', 'l', 'i', 's', '-', 'k', 'a', 'v', 'a', 'c', 'i', 's', '.', 'i', 'd', '.', 'l', 'v', '\0', /* "karloskontana.tk", true */ 'k', 'a', 'r', 'l', 'o', 's', 'k', 'o', 'n', 't', 'a', 'n', 'a', '.', 't', 'k', '\0', /* "karlstabo.se", true */ 'k', 'a', 'r', 'l', 's', 't', 'a', 'b', 'o', '.', 's', 'e', '\0', /* "karmaassurance.ca", true */ 'k', 'a', 'r', 'm', 'a', 'a', 's', 's', 'u', 'r', 'a', 'n', 'c', 'e', '.', 'c', 'a', '\0', @@ -10562,6 +10553,7 @@ static const char kSTSHostTable[] = { /* "kevinratcliff.com", true */ 'k', 'e', 'v', 'i', 'n', 'r', 'a', 't', 'c', 'l', 'i', 'f', 'f', '.', 'c', 'o', 'm', '\0', /* "kewego.co.uk", true */ 'k', 'e', 'w', 'e', 'g', 'o', '.', 'c', 'o', '.', 'u', 'k', '\0', /* "keybase.io", true */ 'k', 'e', 'y', 'b', 'a', 's', 'e', '.', 'i', 'o', '\0', + /* "keybored.me", true */ 'k', 'e', 'y', 'b', 'o', 'r', 'e', 'd', '.', 'm', 'e', '\0', /* "keycdn.com", true */ 'k', 'e', 'y', 'c', 'd', 'n', '.', 'c', 'o', 'm', '\0', /* "keyerror.com", true */ 'k', 'e', 'y', 'e', 'r', 'r', 'o', 'r', '.', 'c', 'o', 'm', '\0', /* "keyholdingservices.co.uk", true */ 'k', 'e', 'y', 'h', 'o', 'l', 'd', 'i', 'n', 'g', 's', 'e', 'r', 'v', 'i', 'c', 'e', 's', '.', 'c', 'o', '.', 'u', 'k', '\0', @@ -10866,7 +10858,6 @@ static const char kSTSHostTable[] = { /* "kozmik.co", true */ 'k', 'o', 'z', 'm', 'i', 'k', '.', 'c', 'o', '\0', /* "kozuch.biz", true */ 'k', 'o', 'z', 'u', 'c', 'h', '.', 'b', 'i', 'z', '\0', /* "kpdyer.com", true */ 'k', 'p', 'd', 'y', 'e', 'r', '.', 'c', 'o', 'm', '\0', - /* "kpebetka.net", true */ 'k', 'p', 'e', 'b', 'e', 't', 'k', 'a', '.', 'n', 'e', 't', '\0', /* "kpfanworld.com", true */ 'k', 'p', 'f', 'a', 'n', 'w', 'o', 'r', 'l', 'd', '.', 'c', 'o', 'm', '\0', /* "kpinvest.eu", true */ 'k', 'p', 'i', 'n', 'v', 'e', 's', 't', '.', 'e', 'u', '\0', /* "kpn-dnssec.com", true */ 'k', 'p', 'n', '-', 'd', 'n', 's', 's', 'e', 'c', '.', 'c', 'o', 'm', '\0', @@ -10885,7 +10876,6 @@ static const char kSTSHostTable[] = { /* "kraken.io", true */ 'k', 'r', 'a', 'k', 'e', 'n', '.', 'i', 'o', '\0', /* "kralik.io", true */ 'k', 'r', 'a', 'l', 'i', 'k', '.', 'i', 'o', '\0', /* "krambeutel.de", true */ 'k', 'r', 'a', 'm', 'b', 'e', 'u', 't', 'e', 'l', '.', 'd', 'e', '\0', - /* "krampus-fischamend.at", true */ 'k', 'r', 'a', 'm', 'p', 'u', 's', '-', 'f', 'i', 's', 'c', 'h', 'a', 'm', 'e', 'n', 'd', '.', 'a', 't', '\0', /* "kramsj.uk", true */ 'k', 'r', 'a', 'm', 's', 'j', '.', 'u', 'k', '\0', /* "krang.org.uk", true */ 'k', 'r', 'a', 'n', 'g', '.', 'o', 'r', 'g', '.', 'u', 'k', '\0', /* "krasota.ru", false */ 'k', 'r', 'a', 's', 'o', 't', 'a', '.', 'r', 'u', '\0', @@ -10908,6 +10898,7 @@ static const char kSTSHostTable[] = { /* "kriptosec.com", true */ 'k', 'r', 'i', 'p', 't', 'o', 's', 'e', 'c', '.', 'c', 'o', 'm', '\0', /* "krislamoureux.com", true */ 'k', 'r', 'i', 's', 'l', 'a', 'm', 'o', 'u', 'r', 'e', 'u', 'x', '.', 'c', 'o', 'm', '\0', /* "krisstarkey.co.uk", true */ 'k', 'r', 'i', 's', 's', 't', 'a', 'r', 'k', 'e', 'y', '.', 'c', 'o', '.', 'u', 'k', '\0', + /* "kristikala.nl", true */ 'k', 'r', 'i', 's', 't', 'i', 'k', 'a', 'l', 'a', '.', 'n', 'l', '\0', /* "kristinbailey.com", true */ 'k', 'r', 'i', 's', 't', 'i', 'n', 'b', 'a', 'i', 'l', 'e', 'y', '.', 'c', 'o', 'm', '\0', /* "kristjanrang.eu", true */ 'k', 'r', 'i', 's', 't', 'j', 'a', 'n', 'r', 'a', 'n', 'g', '.', 'e', 'u', '\0', /* "kristofferkoch.com", true */ 'k', 'r', 'i', 's', 't', 'o', 'f', 'f', 'e', 'r', 'k', 'o', 'c', 'h', '.', 'c', 'o', 'm', '\0', @@ -11058,7 +11049,6 @@ static const char kSTSHostTable[] = { /* "lafillepolyvalente.ca", true */ 'l', 'a', 'f', 'i', 'l', 'l', 'e', 'p', 'o', 'l', 'y', 'v', 'a', 'l', 'e', 'n', 't', 'e', '.', 'c', 'a', '\0', /* "lafillepolyvalente.com", true */ 'l', 'a', 'f', 'i', 'l', 'l', 'e', 'p', 'o', 'l', 'y', 'v', 'a', 'l', 'e', 'n', 't', 'e', '.', 'c', 'o', 'm', '\0', /* "lafka.org", true */ 'l', 'a', 'f', 'k', 'a', '.', 'o', 'r', 'g', '\0', - /* "lafkor.de", true */ 'l', 'a', 'f', 'k', 'o', 'r', '.', 'd', 'e', '\0', /* "lafosseobservatoire.be", true */ 'l', 'a', 'f', 'o', 's', 's', 'e', 'o', 'b', 's', 'e', 'r', 'v', 'a', 't', 'o', 'i', 'r', 'e', '.', 'b', 'e', '\0', /* "lafr4nc3.xyz", true */ 'l', 'a', 'f', 'r', '4', 'n', 'c', '3', '.', 'x', 'y', 'z', '\0', /* "lagarderob.ru", false */ 'l', 'a', 'g', 'a', 'r', 'd', 'e', 'r', 'o', 'b', '.', 'r', 'u', '\0', @@ -11388,7 +11378,6 @@ static const char kSTSHostTable[] = { /* "levensbron.nl", true */ 'l', 'e', 'v', 'e', 'n', 's', 'b', 'r', 'o', 'n', '.', 'n', 'l', '\0', /* "leveredge.net", true */ 'l', 'e', 'v', 'e', 'r', 'e', 'd', 'g', 'e', '.', 'n', 'e', 't', '\0', /* "levermann.eu", true */ 'l', 'e', 'v', 'e', 'r', 'm', 'a', 'n', 'n', '.', 'e', 'u', '\0', - /* "levinus.de", true */ 'l', 'e', 'v', 'i', 'n', 'u', 's', '.', 'd', 'e', '\0', /* "lew.im", true */ 'l', 'e', 'w', '.', 'i', 'm', '\0', /* "lewis.li", true */ 'l', 'e', 'w', 'i', 's', '.', 'l', 'i', '\0', /* "lewisjuggins.co.uk", true */ 'l', 'e', 'w', 'i', 's', 'j', 'u', 'g', 'g', 'i', 'n', 's', '.', 'c', 'o', '.', 'u', 'k', '\0', @@ -11538,7 +11527,6 @@ static const char kSTSHostTable[] = { /* "liqd.net", true */ 'l', 'i', 'q', 'd', '.', 'n', 'e', 't', '\0', /* "liquid.cz", true */ 'l', 'i', 'q', 'u', 'i', 'd', '.', 'c', 'z', '\0', /* "liquid.solutions", true */ 'l', 'i', 'q', 'u', 'i', 'd', '.', 's', 'o', 'l', 'u', 't', 'i', 'o', 'n', 's', '\0', - /* "liquidcomm.net", true */ 'l', 'i', 'q', 'u', 'i', 'd', 'c', 'o', 'm', 'm', '.', 'n', 'e', 't', '\0', /* "liquidhost.co", true */ 'l', 'i', 'q', 'u', 'i', 'd', 'h', 'o', 's', 't', '.', 'c', 'o', '\0', /* "lirion.de", true */ 'l', 'i', 'r', 'i', 'o', 'n', '.', 'd', 'e', '\0', /* "liris-beautywelt.de", true */ 'l', 'i', 'r', 'i', 's', '-', 'b', 'e', 'a', 'u', 't', 'y', 'w', 'e', 'l', 't', '.', 'd', 'e', '\0', @@ -11617,7 +11605,6 @@ static const char kSTSHostTable[] = { /* "lmsptfy.com", true */ 'l', 'm', 's', 'p', 't', 'f', 'y', '.', 'c', 'o', 'm', '\0', /* "lmtm.eu", true */ 'l', 'm', 't', 'm', '.', 'e', 'u', '\0', /* "ln.io", true */ 'l', 'n', '.', 'i', 'o', '\0', - /* "lnoldan.com", true */ 'l', 'n', 'o', 'l', 'd', 'a', 'n', '.', 'c', 'o', 'm', '\0', /* "lntu.org", true */ 'l', 'n', 't', 'u', '.', 'o', 'r', 'g', '\0', /* "lnx.li", true */ 'l', 'n', 'x', '.', 'l', 'i', '\0', /* "load-ev.de", true */ 'l', 'o', 'a', 'd', '-', 'e', 'v', '.', 'd', 'e', '\0', @@ -11688,6 +11675,7 @@ static const char kSTSHostTable[] = { /* "lolicon.eu", true */ 'l', 'o', 'l', 'i', 'c', 'o', 'n', '.', 'e', 'u', '\0', /* "lolicon.info", true */ 'l', 'o', 'l', 'i', 'c', 'o', 'n', '.', 'i', 'n', 'f', 'o', '\0', /* "lolkot.ru", true */ 'l', 'o', 'l', 'k', 'o', 't', '.', 'r', 'u', '\0', + /* "lolmegafroi.de", true */ 'l', 'o', 'l', 'm', 'e', 'g', 'a', 'f', 'r', 'o', 'i', '.', 'd', 'e', '\0', /* "lolpatrol.de", true */ 'l', 'o', 'l', 'p', 'a', 't', 'r', 'o', 'l', '.', 'd', 'e', '\0', /* "lolpatrol.wtf", true */ 'l', 'o', 'l', 'p', 'a', 't', 'r', 'o', 'l', '.', 'w', 't', 'f', '\0', /* "lona.io", true */ 'l', 'o', 'n', 'a', '.', 'i', 'o', '\0', @@ -12429,6 +12417,7 @@ static const char kSTSHostTable[] = { /* "mdx.no", true */ 'm', 'd', 'x', '.', 'n', 'o', '\0', /* "mdxn.org", true */ 'm', 'd', 'x', 'n', '.', 'o', 'r', 'g', '\0', /* "me.net.nz", true */ 'm', 'e', '.', 'n', 'e', 't', '.', 'n', 'z', '\0', + /* "meadowfen.farm", true */ 'm', 'e', 'a', 'd', 'o', 'w', 'f', 'e', 'n', '.', 'f', 'a', 'r', 'm', '\0', /* "meadowviewfarms.org", true */ 'm', 'e', 'a', 'd', 'o', 'w', 'v', 'i', 'e', 'w', 'f', 'a', 'r', 'm', 's', '.', 'o', 'r', 'g', '\0', /* "mealgoo.com", true */ 'm', 'e', 'a', 'l', 'g', 'o', 'o', '.', 'c', 'o', 'm', '\0', /* "meanevo.com", true */ 'm', 'e', 'a', 'n', 'e', 'v', 'o', '.', 'c', 'o', 'm', '\0', @@ -12484,7 +12473,6 @@ static const char kSTSHostTable[] = { /* "meetbot.fedoraproject.org", true */ 'm', 'e', 'e', 't', 'b', 'o', 't', '.', 'f', 'e', 'd', 'o', 'r', 'a', 'p', 'r', 'o', 'j', 'e', 'c', 't', '.', 'o', 'r', 'g', '\0', /* "meetingmanage.nl", true */ 'm', 'e', 'e', 't', 'i', 'n', 'g', 'm', 'a', 'n', 'a', 'g', 'e', '.', 'n', 'l', '\0', /* "meetingmanager.ovh", true */ 'm', 'e', 'e', 't', 'i', 'n', 'g', 'm', 'a', 'n', 'a', 'g', 'e', 'r', '.', 'o', 'v', 'h', '\0', - /* "meetmibaby.co.uk", true */ 'm', 'e', 'e', 't', 'm', 'i', 'b', 'a', 'b', 'y', '.', 'c', 'o', '.', 'u', 'k', '\0', /* "mega-feeling.de", true */ 'm', 'e', 'g', 'a', '-', 'f', 'e', 'e', 'l', 'i', 'n', 'g', '.', 'd', 'e', '\0', /* "mega.co.nz", true */ 'm', 'e', 'g', 'a', '.', 'c', 'o', '.', 'n', 'z', '\0', /* "mega.nz", true */ 'm', 'e', 'g', 'a', '.', 'n', 'z', '\0', @@ -12594,7 +12582,6 @@ static const char kSTSHostTable[] = { /* "meta.sc", true */ 'm', 'e', 't', 'a', '.', 's', 'c', '\0', /* "metachris.com", true */ 'm', 'e', 't', 'a', 'c', 'h', 'r', 'i', 's', '.', 'c', 'o', 'm', '\0', /* "metacode.biz", true */ 'm', 'e', 't', 'a', 'c', 'o', 'd', 'e', '.', 'b', 'i', 'z', '\0', - /* "metadatawiki.com", true */ 'm', 'e', 't', 'a', 'd', 'a', 't', 'a', 'w', 'i', 'k', 'i', '.', 'c', 'o', 'm', '\0', /* "metaether.net", true */ 'm', 'e', 't', 'a', 'e', 't', 'h', 'e', 'r', '.', 'n', 'e', 't', '\0', /* "metalsculpture.co.uk", true */ 'm', 'e', 't', 'a', 'l', 's', 'c', 'u', 'l', 'p', 't', 'u', 'r', 'e', '.', 'c', 'o', '.', 'u', 'k', '\0', /* "metapeen.nl", true */ 'm', 'e', 't', 'a', 'p', 'e', 'e', 'n', '.', 'n', 'l', '\0', @@ -12725,6 +12712,7 @@ static const char kSTSHostTable[] = { /* "mikkelvej.dk", true */ 'm', 'i', 'k', 'k', 'e', 'l', 'v', 'e', 'j', '.', 'd', 'k', '\0', /* "miklcct.com", true */ 'm', 'i', 'k', 'l', 'c', 'c', 't', '.', 'c', 'o', 'm', '\0', /* "miknight.com", true */ 'm', 'i', 'k', 'n', 'i', 'g', 'h', 't', '.', 'c', 'o', 'm', '\0', + /* "mikonmaa.fi", true */ 'm', 'i', 'k', 'o', 'n', 'm', 'a', 'a', '.', 'f', 'i', '\0', /* "mikori.sk", true */ 'm', 'i', 'k', 'o', 'r', 'i', '.', 's', 'k', '\0', /* "mikro-inwestycje.co.uk", true */ 'm', 'i', 'k', 'r', 'o', '-', 'i', 'n', 'w', 'e', 's', 't', 'y', 'c', 'j', 'e', '.', 'c', 'o', '.', 'u', 'k', '\0', /* "mikropixel.de", true */ 'm', 'i', 'k', 'r', 'o', 'p', 'i', 'x', 'e', 'l', '.', 'd', 'e', '\0', @@ -12813,7 +12801,6 @@ static const char kSTSHostTable[] = { /* "minitrucktalk.com", true */ 'm', 'i', 'n', 'i', 't', 'r', 'u', 'c', 'k', 't', 'a', 'l', 'k', '.', 'c', 'o', 'm', '\0', /* "minkondom.nu", true */ 'm', 'i', 'n', 'k', 'o', 'n', 'd', 'o', 'm', '.', 'n', 'u', '\0', /* "minkymoon.jp", true */ 'm', 'i', 'n', 'k', 'y', 'm', 'o', 'o', 'n', '.', 'j', 'p', '\0', - /* "minnesotakinkyyouth.org", true */ 'm', 'i', 'n', 'n', 'e', 's', 'o', 't', 'a', 'k', 'i', 'n', 'k', 'y', 'y', 'o', 'u', 't', 'h', '.', 'o', 'r', 'g', '\0', /* "minnesotamathcorps.org", true */ 'm', 'i', 'n', 'n', 'e', 's', 'o', 't', 'a', 'm', 'a', 't', 'h', 'c', 'o', 'r', 'p', 's', '.', 'o', 'r', 'g', '\0', /* "minnesotareadingcorps.org", true */ 'm', 'i', 'n', 'n', 'e', 's', 'o', 't', 'a', 'r', 'e', 'a', 'd', 'i', 'n', 'g', 'c', 'o', 'r', 'p', 's', '.', 'o', 'r', 'g', '\0', /* "minobar.com", true */ 'm', 'i', 'n', 'o', 'b', 'a', 'r', '.', 'c', 'o', 'm', '\0', @@ -12921,7 +12908,6 @@ static const char kSTSHostTable[] = { /* "mmbb.org", true */ 'm', 'm', 'b', 'b', '.', 'o', 'r', 'g', '\0', /* "mmcc.pe", true */ 'm', 'm', 'c', 'c', '.', 'p', 'e', '\0', /* "mmilog.hu", true */ 'm', 'm', 'i', 'l', 'o', 'g', '.', 'h', 'u', '\0', - /* "mmmm.com", true */ 'm', 'm', 'm', 'm', '.', 'c', 'o', 'm', '\0', /* "mmogah.com", true */ 'm', 'm', 'o', 'g', 'a', 'h', '.', 'c', 'o', 'm', '\0', /* "mmonit.com", true */ 'm', 'm', 'o', 'n', 'i', 't', '.', 'c', 'o', 'm', '\0', /* "mmt.my", true */ 'm', 'm', 't', '.', 'm', 'y', '\0', @@ -13203,6 +13189,7 @@ static const char kSTSHostTable[] = { /* "mtnz.co.za", true */ 'm', 't', 'n', 'z', '.', 'c', 'o', '.', 'z', 'a', '\0', /* "mtouch.facebook.com", false */ 'm', 't', 'o', 'u', 'c', 'h', '.', 'f', 'a', 'c', 'e', 'b', 'o', 'o', 'k', '.', 'c', 'o', 'm', '\0', /* "mtr.md", true */ 'm', 't', 'r', '.', 'm', 'd', '\0', + /* "mts-energia.eu", true */ 'm', 't', 's', '-', 'e', 'n', 'e', 'r', 'g', 'i', 'a', '.', 'e', 'u', '\0', /* "mts-server.com", true */ 'm', 't', 's', '-', 's', 'e', 'r', 'v', 'e', 'r', '.', 'c', 'o', 'm', '\0', /* "mtsolar.es", true */ 'm', 't', 's', 'o', 'l', 'a', 'r', '.', 'e', 's', '\0', /* "muabannhanh.com", false */ 'm', 'u', 'a', 'b', 'a', 'n', 'n', 'h', 'a', 'n', 'h', '.', 'c', 'o', 'm', '\0', @@ -13287,6 +13274,7 @@ static const char kSTSHostTable[] = { /* "mwavuli.co.ke", true */ 'm', 'w', 'a', 'v', 'u', 'l', 'i', '.', 'c', 'o', '.', 'k', 'e', '\0', /* "mwba.org", true */ 'm', 'w', 'b', 'a', '.', 'o', 'r', 'g', '\0', /* "mwe.st", true */ 'm', 'w', 'e', '.', 's', 't', '\0', + /* "mwohlfarth.de", true */ 'm', 'w', 'o', 'h', 'l', 'f', 'a', 'r', 't', 'h', '.', 'd', 'e', '\0', /* "mx.org.ua", true */ 'm', 'x', '.', 'o', 'r', 'g', '.', 'u', 'a', '\0', /* "mx.search.yahoo.com", false */ 'm', 'x', '.', 's', 'e', 'a', 'r', 'c', 'h', '.', 'y', 'a', 'h', 'o', 'o', '.', 'c', 'o', 'm', '\0', /* "mxawei.cn", true */ 'm', 'x', 'a', 'w', 'e', 'i', '.', 'c', 'n', '\0', @@ -13295,6 +13283,7 @@ static const char kSTSHostTable[] = { /* "my-cdn.de", true */ 'm', 'y', '-', 'c', 'd', 'n', '.', 'd', 'e', '\0', /* "my-demo.co", true */ 'm', 'y', '-', 'd', 'e', 'm', 'o', '.', 'c', 'o', '\0', /* "my-dick.ru", true */ 'm', 'y', '-', 'd', 'i', 'c', 'k', '.', 'r', 'u', '\0', + /* "my-dns.co.il", true */ 'm', 'y', '-', 'd', 'n', 's', '.', 'c', 'o', '.', 'i', 'l', '\0', /* "my-floor.com", true */ 'm', 'y', '-', 'f', 'l', 'o', 'o', 'r', '.', 'c', 'o', 'm', '\0', /* "my-hps.de", true */ 'm', 'y', '-', 'h', 'p', 's', '.', 'd', 'e', '\0', /* "my-pawnshop.com.ua", false */ 'm', 'y', '-', 'p', 'a', 'w', 'n', 's', 'h', 'o', 'p', '.', 'c', 'o', 'm', '.', 'u', 'a', '\0', @@ -14413,7 +14402,6 @@ static const char kSTSHostTable[] = { /* "opcenter.de", true */ 'o', 'p', 'c', 'e', 'n', 't', 'e', 'r', '.', 'd', 'e', '\0', /* "open-bs.com", true */ 'o', 'p', 'e', 'n', '-', 'b', 's', '.', 'c', 'o', 'm', '\0', /* "open-bs.ru", true */ 'o', 'p', 'e', 'n', '-', 'b', 's', '.', 'r', 'u', '\0', - /* "open-desk.org", true */ 'o', 'p', 'e', 'n', '-', 'd', 'e', 's', 'k', '.', 'o', 'r', 'g', '\0', /* "open-freax.fr", true */ 'o', 'p', 'e', 'n', '-', 'f', 'r', 'e', 'a', 'x', '.', 'f', 'r', '\0', /* "open-future.be", true */ 'o', 'p', 'e', 'n', '-', 'f', 'u', 't', 'u', 'r', 'e', '.', 'b', 'e', '\0', /* "open-infrastructure.net", true */ 'o', 'p', 'e', 'n', '-', 'i', 'n', 'f', 'r', 'a', 's', 't', 'r', 'u', 'c', 't', 'u', 'r', 'e', '.', 'n', 'e', 't', '\0', @@ -15280,6 +15268,7 @@ static const char kSTSHostTable[] = { /* "playhappywheelsunblocked.com", true */ 'p', 'l', 'a', 'y', 'h', 'a', 'p', 'p', 'y', 'w', 'h', 'e', 'e', 'l', 's', 'u', 'n', 'b', 'l', 'o', 'c', 'k', 'e', 'd', '.', 'c', 'o', 'm', '\0', /* "playkh.com", true */ 'p', 'l', 'a', 'y', 'k', 'h', '.', 'c', 'o', 'm', '\0', /* "playmfe.com", true */ 'p', 'l', 'a', 'y', 'm', 'f', 'e', '.', 'c', 'o', 'm', '\0', + /* "playmyplay.com", true */ 'p', 'l', 'a', 'y', 'm', 'y', 'p', 'l', 'a', 'y', '.', 'c', 'o', 'm', '\0', /* "playpirates.com", true */ 'p', 'l', 'a', 'y', 'p', 'i', 'r', 'a', 't', 'e', 's', '.', 'c', 'o', 'm', '\0', /* "playsnake.org", true */ 'p', 'l', 'a', 'y', 's', 'n', 'a', 'k', 'e', '.', 'o', 'r', 'g', '\0', /* "playsoundevents.be", true */ 'p', 'l', 'a', 'y', 's', 'o', 'u', 'n', 'd', 'e', 'v', 'e', 'n', 't', 's', '.', 'b', 'e', '\0', @@ -15394,7 +15383,6 @@ static const char kSTSHostTable[] = { /* "pondof.fish", true */ 'p', 'o', 'n', 'd', 'o', 'f', '.', 'f', 'i', 's', 'h', '\0', /* "poneypourtous.com", true */ 'p', 'o', 'n', 'e', 'y', 'p', 'o', 'u', 'r', 't', 'o', 'u', 's', '.', 'c', 'o', 'm', '\0', /* "poneytelecom.org", true */ 'p', 'o', 'n', 'e', 'y', 't', 'e', 'l', 'e', 'c', 'o', 'm', '.', 'o', 'r', 'g', '\0', - /* "ponolau.com", true */ 'p', 'o', 'n', 'o', 'l', 'a', 'u', '.', 'c', 'o', 'm', '\0', /* "ponteencima.com", true */ 'p', 'o', 'n', 't', 'e', 'e', 'n', 'c', 'i', 'm', 'a', '.', 'c', 'o', 'm', '\0', /* "pontokay.com.br", false */ 'p', 'o', 'n', 't', 'o', 'k', 'a', 'y', '.', 'c', 'o', 'm', '.', 'b', 'r', '\0', /* "ponychan.net", true */ 'p', 'o', 'n', 'y', 'c', 'h', 'a', 'n', '.', 'n', 'e', 't', '\0', @@ -15749,7 +15737,6 @@ static const char kSTSHostTable[] = { /* "pt-server.de", true */ 'p', 't', '-', 's', 'e', 'r', 'v', 'e', 'r', '.', 'd', 'e', '\0', /* "ptbi.org.pl", true */ 'p', 't', 'b', 'i', '.', 'o', 'r', 'g', '.', 'p', 'l', '\0', /* "ptbx.co", true */ 'p', 't', 'b', 'x', '.', 'c', 'o', '\0', - /* "pterodactylus.cz", true */ 'p', 't', 'e', 'r', 'o', 'd', 'a', 'c', 't', 'y', 'l', 'u', 's', '.', 'c', 'z', '\0', /* "ptgoldensun.com", true */ 'p', 't', 'g', 'o', 'l', 'd', 'e', 'n', 's', 'u', 'n', '.', 'c', 'o', 'm', '\0', /* "ptm.ro", false */ 'p', 't', 'm', '.', 'r', 'o', '\0', /* "ptonet.com", true */ 'p', 't', 'o', 'n', 'e', 't', '.', 'c', 'o', 'm', '\0', @@ -15811,6 +15798,7 @@ static const char kSTSHostTable[] = { /* "pwe.vision", true */ 'p', 'w', 'e', '.', 'v', 'i', 's', 'i', 'o', 'n', '\0', /* "pwfrance.com", true */ 'p', 'w', 'f', 'r', 'a', 'n', 'c', 'e', '.', 'c', 'o', 'm', '\0', /* "pwnies.dk", true */ 'p', 'w', 'n', 'i', 'e', 's', '.', 'd', 'k', '\0', + /* "pwntr.com", true */ 'p', 'w', 'n', 't', 'r', '.', 'c', 'o', 'm', '\0', /* "pwolk.com", true */ 'p', 'w', 'o', 'l', 'k', '.', 'c', 'o', 'm', '\0', /* "pxx.io", true */ 'p', 'x', 'x', '.', 'i', 'o', '\0', /* "pycrypto.org", true */ 'p', 'y', 'c', 'r', 'y', 'p', 't', 'o', '.', 'o', 'r', 'g', '\0', @@ -16163,7 +16151,6 @@ static const char kSTSHostTable[] = { /* "redigest.it", true */ 'r', 'e', 'd', 'i', 'g', 'e', 's', 't', '.', 'i', 't', '\0', /* "redirect.fedoraproject.org", true */ 'r', 'e', 'd', 'i', 'r', 'e', 'c', 't', '.', 'f', 'e', 'd', 'o', 'r', 'a', 'p', 'r', 'o', 'j', 'e', 'c', 't', '.', 'o', 'r', 'g', '\0', /* "redirect.stg.fedoraproject.org", true */ 'r', 'e', 'd', 'i', 'r', 'e', 'c', 't', '.', 's', 't', 'g', '.', 'f', 'e', 'd', 'o', 'r', 'a', 'p', 'r', 'o', 'j', 'e', 'c', 't', '.', 'o', 'r', 'g', '\0', - /* "rediske.me", true */ 'r', 'e', 'd', 'i', 's', 'k', 'e', '.', 'm', 'e', '\0', /* "redit.com", true */ 'r', 'e', 'd', 'i', 't', '.', 'c', 'o', 'm', '\0', /* "redletter.link", true */ 'r', 'e', 'd', 'l', 'e', 't', 't', 'e', 'r', '.', 'l', 'i', 'n', 'k', '\0', /* "redlink.de", true */ 'r', 'e', 'd', 'l', 'i', 'n', 'k', '.', 'd', 'e', '\0', @@ -16253,7 +16240,6 @@ static const char kSTSHostTable[] = { /* "rema.site", true */ 'r', 'e', 'm', 'a', '.', 's', 'i', 't', 'e', '\0', /* "remaimodern.org", true */ 'r', 'e', 'm', 'a', 'i', 'm', 'o', 'd', 'e', 'r', 'n', '.', 'o', 'r', 'g', '\0', /* "remambo.jp", true */ 'r', 'e', 'm', 'a', 'm', 'b', 'o', '.', 'j', 'p', '\0', - /* "remedica.fr", true */ 'r', 'e', 'm', 'e', 'd', 'i', 'c', 'a', '.', 'f', 'r', '\0', /* "remedium.de", true */ 'r', 'e', 'm', 'e', 'd', 'i', 'u', 'm', '.', 'd', 'e', '\0', /* "rememberthemilk.com", false */ 'r', 'e', 'm', 'e', 'm', 'b', 'e', 'r', 't', 'h', 'e', 'm', 'i', 'l', 'k', '.', 'c', 'o', 'm', '\0', /* "rememberthis.co.za", true */ 'r', 'e', 'm', 'e', 'm', 'b', 'e', 'r', 't', 'h', 'i', 's', '.', 'c', 'o', '.', 'z', 'a', '\0', @@ -16279,6 +16265,7 @@ static const char kSTSHostTable[] = { /* "rentbrowser.com", true */ 'r', 'e', 'n', 't', 'b', 'r', 'o', 'w', 's', 'e', 'r', '.', 'c', 'o', 'm', '\0', /* "rentex.com", true */ 'r', 'e', 'n', 't', 'e', 'x', '.', 'c', 'o', 'm', '\0', /* "rentinsingapore.com.sg", true */ 'r', 'e', 'n', 't', 'i', 'n', 's', 'i', 'n', 'g', 'a', 'p', 'o', 'r', 'e', '.', 'c', 'o', 'm', '.', 's', 'g', '\0', + /* "renuo.ch", false */ 'r', 'e', 'n', 'u', 'o', '.', 'c', 'h', '\0', /* "reox.at", false */ 'r', 'e', 'o', 'x', '.', 'a', 't', '\0', /* "repair.by", true */ 'r', 'e', 'p', 'a', 'i', 'r', '.', 'b', 'y', '\0', /* "repaper.org", true */ 'r', 'e', 'p', 'a', 'p', 'e', 'r', '.', 'o', 'r', 'g', '\0', @@ -16914,13 +16901,11 @@ static const char kSTSHostTable[] = { /* "sanhei.ch", true */ 's', 'a', 'n', 'h', 'e', 'i', '.', 'c', 'h', '\0', /* "sanik.my", true */ 's', 'a', 'n', 'i', 'k', '.', 'm', 'y', '\0', /* "sanissimo.com.mx", true */ 's', 'a', 'n', 'i', 's', 's', 'i', 'm', 'o', '.', 'c', 'o', 'm', '.', 'm', 'x', '\0', - /* "sanmuding.com", true */ 's', 'a', 'n', 'm', 'u', 'd', 'i', 'n', 'g', '.', 'c', 'o', 'm', '\0', /* "sanpham-balea.org", true */ 's', 'a', 'n', 'p', 'h', 'a', 'm', '-', 'b', 'a', 'l', 'e', 'a', '.', 'o', 'r', 'g', '\0', /* "sanradon.by", true */ 's', 'a', 'n', 'r', 'a', 'd', 'o', 'n', '.', 'b', 'y', '\0', /* "santanderideas.com", true */ 's', 'a', 'n', 't', 'a', 'n', 'd', 'e', 'r', 'i', 'd', 'e', 'a', 's', '.', 'c', 'o', 'm', '\0', /* "santing.net", true */ 's', 'a', 'n', 't', 'i', 'n', 'g', '.', 'n', 'e', 't', '\0', /* "santmark.fi", true */ 's', 'a', 'n', 't', 'm', 'a', 'r', 'k', '.', 'f', 'i', '\0', - /* "santodomingocg.org", true */ 's', 'a', 'n', 't', 'o', 'd', 'o', 'm', 'i', 'n', 'g', 'o', 'c', 'g', '.', 'o', 'r', 'g', '\0', /* "santojuken.co.jp", true */ 's', 'a', 'n', 't', 'o', 'j', 'u', 'k', 'e', 'n', '.', 'c', 'o', '.', 'j', 'p', '\0', /* "santouri.be", true */ 's', 'a', 'n', 't', 'o', 'u', 'r', 'i', '.', 'b', 'e', '\0', /* "sanvitolocapobus.com", true */ 's', 'a', 'n', 'v', 'i', 't', 'o', 'l', 'o', 'c', 'a', 'p', 'o', 'b', 'u', 's', '.', 'c', 'o', 'm', '\0', @@ -17340,7 +17325,6 @@ static const char kSTSHostTable[] = { /* "senorcontento.com", true */ 's', 'e', 'n', 'o', 'r', 'c', 'o', 'n', 't', 'e', 'n', 't', 'o', '.', 'c', 'o', 'm', '\0', /* "sensebridge.com", true */ 's', 'e', 'n', 's', 'e', 'b', 'r', 'i', 'd', 'g', 'e', '.', 'c', 'o', 'm', '\0', /* "sensebridge.net", true */ 's', 'e', 'n', 's', 'e', 'b', 'r', 'i', 'd', 'g', 'e', '.', 'n', 'e', 't', '\0', - /* "senseofnumber.co.uk", true */ 's', 'e', 'n', 's', 'e', 'o', 'f', 'n', 'u', 'm', 'b', 'e', 'r', '.', 'c', 'o', '.', 'u', 'k', '\0', /* "sensepixel.com", true */ 's', 'e', 'n', 's', 'e', 'p', 'i', 'x', 'e', 'l', '.', 'c', 'o', 'm', '\0', /* "senshudo.tv", true */ 's', 'e', 'n', 's', 'h', 'u', 'd', 'o', '.', 't', 'v', '\0', /* "sensualism.com", true */ 's', 'e', 'n', 's', 'u', 'a', 'l', 'i', 's', 'm', '.', 'c', 'o', 'm', '\0', @@ -17444,6 +17428,7 @@ static const char kSTSHostTable[] = { /* "shadesofgrayadr.com", true */ 's', 'h', 'a', 'd', 'e', 's', 'o', 'f', 'g', 'r', 'a', 'y', 'a', 'd', 'r', '.', 'c', 'o', 'm', '\0', /* "shadesofgraylaw.com", true */ 's', 'h', 'a', 'd', 'e', 's', 'o', 'f', 'g', 'r', 'a', 'y', 'l', 'a', 'w', '.', 'c', 'o', 'm', '\0', /* "shadex.net", true */ 's', 'h', 'a', 'd', 'e', 'x', '.', 'n', 'e', 't', '\0', + /* "shadiku.com", true */ 's', 'h', 'a', 'd', 'i', 'k', 'u', '.', 'c', 'o', 'm', '\0', /* "shadow-socks.net", true */ 's', 'h', 'a', 'd', 'o', 'w', '-', 's', 'o', 'c', 'k', 's', '.', 'n', 'e', 't', '\0', /* "shadow-socks.org", true */ 's', 'h', 'a', 'd', 'o', 'w', '-', 's', 'o', 'c', 'k', 's', '.', 'o', 'r', 'g', '\0', /* "shadow-socks.pro", true */ 's', 'h', 'a', 'd', 'o', 'w', '-', 's', 'o', 'c', 'k', 's', '.', 'p', 'r', 'o', '\0', @@ -17554,6 +17539,7 @@ static const char kSTSHostTable[] = { /* "shipping24h.com", true */ 's', 'h', 'i', 'p', 'p', 'i', 'n', 'g', '2', '4', 'h', '.', 'c', 'o', 'm', '\0', /* "shirakaba-cc.com", true */ 's', 'h', 'i', 'r', 'a', 'k', 'a', 'b', 'a', '-', 'c', 'c', '.', 'c', 'o', 'm', '\0', /* "shiroki-k.net", true */ 's', 'h', 'i', 'r', 'o', 'k', 'i', '-', 'k', '.', 'n', 'e', 't', '\0', + /* "shirosaki.org", true */ 's', 'h', 'i', 'r', 'o', 's', 'a', 'k', 'i', '.', 'o', 'r', 'g', '\0', /* "shirt2go.shop", true */ 's', 'h', 'i', 'r', 't', '2', 'g', 'o', '.', 's', 'h', 'o', 'p', '\0', /* "shirtsofholland.com", true */ 's', 'h', 'i', 'r', 't', 's', 'o', 'f', 'h', 'o', 'l', 'l', 'a', 'n', 'd', '.', 'c', 'o', 'm', '\0', /* "shishamania.de", true */ 's', 'h', 'i', 's', 'h', 'a', 'm', 'a', 'n', 'i', 'a', '.', 'd', 'e', '\0', @@ -17622,7 +17608,6 @@ static const char kSTSHostTable[] = { /* "sidepodcastdaily.com", true */ 's', 'i', 'd', 'e', 'p', 'o', 'd', 'c', 'a', 's', 't', 'd', 'a', 'i', 'l', 'y', '.', 'c', 'o', 'm', '\0', /* "sidepodcastextra.com", true */ 's', 'i', 'd', 'e', 'p', 'o', 'd', 'c', 'a', 's', 't', 'e', 'x', 't', 'r', 'a', '.', 'c', 'o', 'm', '\0', /* "sideshowbarker.net", true */ 's', 'i', 'd', 'e', 's', 'h', 'o', 'w', 'b', 'a', 'r', 'k', 'e', 'r', '.', 'n', 'e', 't', '\0', - /* "sidium.de", true */ 's', 'i', 'd', 'i', 'u', 'm', '.', 'd', 'e', '\0', /* "sidnicio.us", true */ 's', 'i', 'd', 'n', 'i', 'c', 'i', 'o', '.', 'u', 's', '\0', /* "siebeve.be", true */ 's', 'i', 'e', 'b', 'e', 'v', 'e', '.', 'b', 'e', '\0', /* "siegemund-frankfurt.de", true */ 's', 'i', 'e', 'g', 'e', 'm', 'u', 'n', 'd', '-', 'f', 'r', 'a', 'n', 'k', 'f', 'u', 'r', 't', '.', 'd', 'e', '\0', @@ -17647,6 +17632,7 @@ static const char kSTSHostTable[] = { /* "signosquecombinam.com.br", true */ 's', 'i', 'g', 'n', 'o', 's', 'q', 'u', 'e', 'c', 'o', 'm', 'b', 'i', 'n', 'a', 'm', '.', 'c', 'o', 'm', '.', 'b', 'r', '\0', /* "signslabelstapesandmore.com", false */ 's', 'i', 'g', 'n', 's', 'l', 'a', 'b', 'e', 'l', 's', 't', 'a', 'p', 'e', 's', 'a', 'n', 'd', 'm', 'o', 'r', 'e', '.', 'c', 'o', 'm', '\0', /* "signtul.com", false */ 's', 'i', 'g', 'n', 't', 'u', 'l', '.', 'c', 'o', 'm', '\0', + /* "sigsegv.run", true */ 's', 'i', 'g', 's', 'e', 'g', 'v', '.', 'r', 'u', 'n', '\0', /* "sigterm.no", true */ 's', 'i', 'g', 't', 'e', 'r', 'm', '.', 'n', 'o', '\0', /* "sigterm.sh", true */ 's', 'i', 'g', 't', 'e', 'r', 'm', '.', 's', 'h', '\0', /* "siirtutkusu.com", true */ 's', 'i', 'i', 'r', 't', 'u', 't', 'k', 'u', 's', 'u', '.', 'c', 'o', 'm', '\0', @@ -17709,7 +17695,7 @@ static const char kSTSHostTable[] = { /* "simam.de", true */ 's', 'i', 'm', 'a', 'm', '.', 'd', 'e', '\0', /* "simbeton.nl", true */ 's', 'i', 'm', 'b', 'e', 't', 'o', 'n', '.', 'n', 'l', '\0', /* "simbolo.co.uk", false */ 's', 'i', 'm', 'b', 'o', 'l', 'o', '.', 'c', 'o', '.', 'u', 'k', '\0', - /* "simccorp.com", true */ 's', 'i', 'm', 'c', 'c', 'o', 'r', 'p', '.', 'c', 'o', 'm', '\0', + /* "simccorp.com", false */ 's', 'i', 'm', 'c', 'c', 'o', 'r', 'p', '.', 'c', 'o', 'm', '\0', /* "simeon.us", true */ 's', 'i', 'm', 'e', 'o', 'n', '.', 'u', 's', '\0', /* "simeonoff.ninja", true */ 's', 'i', 'm', 'e', 'o', 'n', 'o', 'f', 'f', '.', 'n', 'i', 'n', 'j', 'a', '\0', /* "simetal.ch", true */ 's', 'i', 'm', 'e', 't', 'a', 'l', '.', 'c', 'h', '\0', @@ -18073,7 +18059,6 @@ static const char kSTSHostTable[] = { /* "softwerk-edv.de", true */ 's', 'o', 'f', 't', 'w', 'e', 'r', 'k', '-', 'e', 'd', 'v', '.', 'd', 'e', '\0', /* "sogravatas.com.br", true */ 's', 'o', 'g', 'r', 'a', 'v', 'a', 't', 'a', 's', '.', 'c', 'o', 'm', '.', 'b', 'r', '\0', /* "sogravatas.net.br", true */ 's', 'o', 'g', 'r', 'a', 'v', 'a', 't', 'a', 's', '.', 'n', 'e', 't', '.', 'b', 'r', '\0', - /* "sogutma.com.tr", true */ 's', 'o', 'g', 'u', 't', 'm', 'a', '.', 'c', 'o', 'm', '.', 't', 'r', '\0', /* "soia.ca", true */ 's', 'o', 'i', 'a', '.', 'c', 'a', '\0', /* "sojingle.net", true */ 's', 'o', 'j', 'i', 'n', 'g', 'l', 'e', '.', 'n', 'e', 't', '\0', /* "soju.fi", true */ 's', 'o', 'j', 'u', '.', 'f', 'i', '\0', @@ -18216,7 +18201,6 @@ static const char kSTSHostTable[] = { /* "spacountryexplorer.org.au", true */ 's', 'p', 'a', 'c', 'o', 'u', 'n', 't', 'r', 'y', 'e', 'x', 'p', 'l', 'o', 'r', 'e', 'r', '.', 'o', 'r', 'g', '.', 'a', 'u', '\0', /* "spam.lol", true */ 's', 'p', 'a', 'm', '.', 'l', 'o', 'l', '\0', /* "spamloco.net", true */ 's', 'p', 'a', 'm', 'l', 'o', 'c', 'o', '.', 'n', 'e', 't', '\0', - /* "spamwc.de", true */ 's', 'p', 'a', 'm', 'w', 'c', '.', 'd', 'e', '\0', /* "spangehlassociates.com", true */ 's', 'p', 'a', 'n', 'g', 'e', 'h', 'l', 'a', 's', 's', 'o', 'c', 'i', 'a', 't', 'e', 's', '.', 'c', 'o', 'm', '\0', /* "sparkbase.cn", true */ 's', 'p', 'a', 'r', 'k', 'b', 'a', 's', 'e', '.', 'c', 'n', '\0', /* "sparkforautism.org", true */ 's', 'p', 'a', 'r', 'k', 'f', 'o', 'r', 'a', 'u', 't', 'i', 's', 'm', '.', 'o', 'r', 'g', '\0', @@ -18273,6 +18257,7 @@ static const char kSTSHostTable[] = { /* "split.is", true */ 's', 'p', 'l', 'i', 't', '.', 'i', 's', '\0', /* "splitdna.com", true */ 's', 'p', 'l', 'i', 't', 'd', 'n', 'a', '.', 'c', 'o', 'm', '\0', /* "splitreflection.com", true */ 's', 'p', 'l', 'i', 't', 'r', 'e', 'f', 'l', 'e', 'c', 't', 'i', 'o', 'n', '.', 'c', 'o', 'm', '\0', + /* "splunk.net", true */ 's', 'p', 'l', 'u', 'n', 'k', '.', 'n', 'e', 't', '\0', /* "spodelime.com", true */ 's', 'p', 'o', 'd', 'e', 'l', 'i', 'm', 'e', '.', 'c', 'o', 'm', '\0', /* "spoketwist.com", true */ 's', 'p', 'o', 'k', 'e', 't', 'w', 'i', 's', 't', '.', 'c', 'o', 'm', '\0', /* "spokonline.com", true */ 's', 'p', 'o', 'k', 'o', 'n', 'l', 'i', 'n', 'e', '.', 'c', 'o', 'm', '\0', @@ -18407,7 +18392,6 @@ static const char kSTSHostTable[] = { /* "stalder.work", true */ 's', 't', 'a', 'l', 'd', 'e', 'r', '.', 'w', 'o', 'r', 'k', '\0', /* "stalker-shop.com", true */ 's', 't', 'a', 'l', 'k', 'e', 'r', '-', 's', 'h', 'o', 'p', '.', 'c', 'o', 'm', '\0', /* "stalkerteam.pl", true */ 's', 't', 'a', 'l', 'k', 'e', 'r', 't', 'e', 'a', 'm', '.', 'p', 'l', '\0', - /* "stalkr.net", true */ 's', 't', 'a', 'l', 'k', 'r', '.', 'n', 'e', 't', '\0', /* "stalkthe.net", true */ 's', 't', 'a', 'l', 'k', 't', 'h', 'e', '.', 'n', 'e', 't', '\0', /* "stamboommuller.nl", true */ 's', 't', 'a', 'm', 'b', 'o', 'o', 'm', 'm', 'u', 'l', 'l', 'e', 'r', '.', 'n', 'l', '\0', /* "stamboomvanderwal.nl", true */ 's', 't', 'a', 'm', 'b', 'o', 'o', 'm', 'v', 'a', 'n', 'd', 'e', 'r', 'w', 'a', 'l', '.', 'n', 'l', '\0', @@ -18623,7 +18607,7 @@ static const char kSTSHostTable[] = { /* "strobotti.com", true */ 's', 't', 'r', 'o', 'b', 'o', 't', 't', 'i', '.', 'c', 'o', 'm', '\0', /* "stroginohelp.ru", true */ 's', 't', 'r', 'o', 'g', 'i', 'n', 'o', 'h', 'e', 'l', 'p', '.', 'r', 'u', '\0', /* "strom.family", true */ 's', 't', 'r', 'o', 'm', '.', 'f', 'a', 'm', 'i', 'l', 'y', '\0', - /* "strongrandom.com", true */ 's', 't', 'r', 'o', 'n', 'g', 'r', 'a', 'n', 'd', 'o', 'm', '.', 'c', 'o', 'm', '\0', + /* "strongrandom.com", false */ 's', 't', 'r', 'o', 'n', 'g', 'r', 'a', 'n', 'd', 'o', 'm', '.', 'c', 'o', 'm', '\0', /* "structurally.net", true */ 's', 't', 'r', 'u', 'c', 't', 'u', 'r', 'a', 'l', 'l', 'y', '.', 'n', 'e', 't', '\0', /* "strugee.net", true */ 's', 't', 'r', 'u', 'g', 'e', 'e', '.', 'n', 'e', 't', '\0', /* "strutta.me", true */ 's', 't', 'r', 'u', 't', 't', 'a', '.', 'm', 'e', '\0', @@ -18812,7 +18796,6 @@ static const char kSTSHostTable[] = { /* "sweetlegs.jp", true */ 's', 'w', 'e', 'e', 't', 'l', 'e', 'g', 's', '.', 'j', 'p', '\0', /* "sweetll.me", false */ 's', 'w', 'e', 'e', 't', 'l', 'l', '.', 'm', 'e', '\0', /* "sweetvanilla.jp", true */ 's', 'w', 'e', 'e', 't', 'v', 'a', 'n', 'i', 'l', 'l', 'a', '.', 'j', 'p', '\0', - /* "swehack.org", true */ 's', 'w', 'e', 'h', 'a', 'c', 'k', '.', 'o', 'r', 'g', '\0', /* "sweharris.org", true */ 's', 'w', 'e', 'h', 'a', 'r', 'r', 'i', 's', '.', 'o', 'r', 'g', '\0', /* "swfloshatraining.com", true */ 's', 'w', 'f', 'l', 'o', 's', 'h', 'a', 't', 'r', 'a', 'i', 'n', 'i', 'n', 'g', '.', 'c', 'o', 'm', '\0', /* "swift-devedge.de", true */ 's', 'w', 'i', 'f', 't', '-', 'd', 'e', 'v', 'e', 'd', 'g', 'e', '.', 'd', 'e', '\0', @@ -18856,6 +18839,7 @@ static const char kSTSHostTable[] = { /* "sync-it.no", true */ 's', 'y', 'n', 'c', '-', 'i', 't', '.', 'n', 'o', '\0', /* "syncaddict.net", true */ 's', 'y', 'n', 'c', 'a', 'd', 'd', 'i', 'c', 't', '.', 'n', 'e', 't', '\0', /* "synchrocube.com", true */ 's', 'y', 'n', 'c', 'h', 'r', 'o', 'c', 'u', 'b', 'e', '.', 'c', 'o', 'm', '\0', + /* "synchtu.be", false */ 's', 'y', 'n', 'c', 'h', 't', 'u', '.', 'b', 'e', '\0', /* "syncmylife.net", false */ 's', 'y', 'n', 'c', 'm', 'y', 'l', 'i', 'f', 'e', '.', 'n', 'e', 't', '\0', /* "syncrise.co.jp", true */ 's', 'y', 'n', 'c', 'r', 'i', 's', 'e', '.', 'c', 'o', '.', 'j', 'p', '\0', /* "syndic-discount.fr", false */ 's', 'y', 'n', 'd', 'i', 'c', '-', 'd', 'i', 's', 'c', 'o', 'u', 'n', 't', '.', 'f', 'r', '\0', @@ -18949,6 +18933,7 @@ static const char kSTSHostTable[] = { /* "talkgadget.google.com", true */ 't', 'a', 'l', 'k', 'g', 'a', 'd', 'g', 'e', 't', '.', 'g', 'o', 'o', 'g', 'l', 'e', '.', 'c', 'o', 'm', '\0', /* "talkitup.mx", true */ 't', 'a', 'l', 'k', 'i', 't', 'u', 'p', '.', 'm', 'x', '\0', /* "talkitup.online", true */ 't', 'a', 'l', 'k', 'i', 't', 'u', 'p', '.', 'o', 'n', 'l', 'i', 'n', 'e', '\0', + /* "talklifestyle.nl", true */ 't', 'a', 'l', 'k', 'l', 'i', 'f', 'e', 's', 't', 'y', 'l', 'e', '.', 'n', 'l', '\0', /* "talktodarcy.com", true */ 't', 'a', 'l', 'k', 't', 'o', 'd', 'a', 'r', 'c', 'y', '.', 'c', 'o', 'm', '\0', /* "tallcraft.com", true */ 't', 'a', 'l', 'l', 'c', 'r', 'a', 'f', 't', '.', 'c', 'o', 'm', '\0', /* "talldude.net", true */ 't', 'a', 'l', 'l', 'd', 'u', 'd', 'e', '.', 'n', 'e', 't', '\0', @@ -18958,7 +18943,6 @@ static const char kSTSHostTable[] = { /* "tamchunho.com", true */ 't', 'a', 'm', 'c', 'h', 'u', 'n', 'h', 'o', '.', 'c', 'o', 'm', '\0', /* "tammy.pro", true */ 't', 'a', 'm', 'm', 'y', '.', 'p', 'r', 'o', '\0', /* "tampabaybusinesslistings.com", true */ 't', 'a', 'm', 'p', 'a', 'b', 'a', 'y', 'b', 'u', 's', 'i', 'n', 'e', 's', 's', 'l', 'i', 's', 't', 'i', 'n', 'g', 's', '.', 'c', 'o', 'm', '\0', - /* "tanak3n.xyz", true */ 't', 'a', 'n', 'a', 'k', '3', 'n', '.', 'x', 'y', 'z', '\0', /* "tancredi.nl", true */ 't', 'a', 'n', 'c', 'r', 'e', 'd', 'i', '.', 'n', 'l', '\0', /* "tangiblesecurity.com", true */ 't', 'a', 'n', 'g', 'i', 'b', 'l', 'e', 's', 'e', 'c', 'u', 'r', 'i', 't', 'y', '.', 'c', 'o', 'm', '\0', /* "tango-cats.de", true */ 't', 'a', 'n', 'g', 'o', '-', 'c', 'a', 't', 's', '.', 'd', 'e', '\0', @@ -19016,7 +19000,6 @@ static const char kSTSHostTable[] = { /* "tbspace.de", true */ 't', 'b', 's', 'p', 'a', 'c', 'e', '.', 'd', 'e', '\0', /* "tbuchloh.de", true */ 't', 'b', 'u', 'c', 'h', 'l', 'o', 'h', '.', 'd', 'e', '\0', /* "tc-st-leonard.ch", true */ 't', 'c', '-', 's', 't', '-', 'l', 'e', 'o', 'n', 'a', 'r', 'd', '.', 'c', 'h', '\0', - /* "tc.nz", true */ 't', 'c', '.', 'n', 'z', '\0', /* "tcacademy.co.uk", true */ 't', 'c', 'a', 'c', 'a', 'd', 'e', 'm', 'y', '.', 'c', 'o', '.', 'u', 'k', '\0', /* "tcgrepublic.com", true */ 't', 'c', 'g', 'r', 'e', 'p', 'u', 'b', 'l', 'i', 'c', '.', 'c', 'o', 'm', '\0', /* "tchebb.me", true */ 't', 'c', 'h', 'e', 'b', 'b', '.', 'm', 'e', '\0', @@ -19140,7 +19123,6 @@ static const char kSTSHostTable[] = { /* "teixobactin.com", true */ 't', 'e', 'i', 'x', 'o', 'b', 'a', 'c', 't', 'i', 'n', '.', 'c', 'o', 'm', '\0', /* "teknik.io", true */ 't', 'e', 'k', 'n', 'i', 'k', '.', 'i', 'o', '\0', /* "teknogeek.id", true */ 't', 'e', 'k', 'n', 'o', 'g', 'e', 'e', 'k', '.', 'i', 'd', '\0', - /* "teknologi.or.id", false */ 't', 'e', 'k', 'n', 'o', 'l', 'o', 'g', 'i', '.', 'o', 'r', '.', 'i', 'd', '\0', /* "tektoria.de", false */ 't', 'e', 'k', 't', 'o', 'r', 'i', 'a', '.', 'd', 'e', '\0', /* "tekuteku.jp", true */ 't', 'e', 'k', 'u', 't', 'e', 'k', 'u', '.', 'j', 'p', '\0', /* "telecamera.pro", false */ 't', 'e', 'l', 'e', 'c', 'a', 'm', 'e', 'r', 'a', '.', 'p', 'r', 'o', '\0', @@ -19513,7 +19495,6 @@ static const char kSTSHostTable[] = { /* "thrivewellnesshub.co.za", true */ 't', 'h', 'r', 'i', 'v', 'e', 'w', 'e', 'l', 'l', 'n', 'e', 's', 's', 'h', 'u', 'b', '.', 'c', 'o', '.', 'z', 'a', '\0', /* "throttlerz.in", true */ 't', 'h', 'r', 'o', 't', 't', 'l', 'e', 'r', 'z', '.', 'i', 'n', '\0', /* "throughtheglass.photo", true */ 't', 'h', 'r', 'o', 'u', 'g', 'h', 't', 'h', 'e', 'g', 'l', 'a', 's', 's', '.', 'p', 'h', 'o', 't', 'o', '\0', - /* "throughthelookingglasslens.co.uk", true */ 't', 'h', 'r', 'o', 'u', 'g', 'h', 't', 'h', 'e', 'l', 'o', 'o', 'k', 'i', 'n', 'g', 'g', 'l', 'a', 's', 's', 'l', 'e', 'n', 's', '.', 'c', 'o', '.', 'u', 'k', '\0', /* "throwaway.link", true */ 't', 'h', 'r', 'o', 'w', 'a', 'w', 'a', 'y', '.', 'l', 'i', 'n', 'k', '\0', /* "throwpass.com", true */ 't', 'h', 'r', 'o', 'w', 'p', 'a', 's', 's', '.', 'c', 'o', 'm', '\0', /* "thrx.net", true */ 't', 'h', 'r', 'x', '.', 'n', 'e', 't', '\0', @@ -19536,7 +19517,6 @@ static const char kSTSHostTable[] = { /* "tianxing.pro", true */ 't', 'i', 'a', 'n', 'x', 'i', 'n', 'g', '.', 'p', 'r', 'o', '\0', /* "tianxingvpn.pro", true */ 't', 'i', 'a', 'n', 'x', 'i', 'n', 'g', 'v', 'p', 'n', '.', 'p', 'r', 'o', '\0', /* "tianya.tv", true */ 't', 'i', 'a', 'n', 'y', 'a', '.', 't', 'v', '\0', - /* "tibbitshall.ca", true */ 't', 'i', 'b', 'b', 'i', 't', 's', 'h', 'a', 'l', 'l', '.', 'c', 'a', '\0', /* "ticfleet.com", true */ 't', 'i', 'c', 'f', 'l', 'e', 'e', 't', '.', 'c', 'o', 'm', '\0', /* "ticketmates.com.au", true */ 't', 'i', 'c', 'k', 'e', 't', 'm', 'a', 't', 'e', 's', '.', 'c', 'o', 'm', '.', 'a', 'u', '\0', /* "ticketoplichting.nl", true */ 't', 'i', 'c', 'k', 'e', 't', 'o', 'p', 'l', 'i', 'c', 'h', 't', 'i', 'n', 'g', '.', 'n', 'l', '\0', @@ -19578,6 +19558,7 @@ static const char kSTSHostTable[] = { /* "timoxbrow.com", true */ 't', 'i', 'm', 'o', 'x', 'b', 'r', 'o', 'w', '.', 'c', 'o', 'm', '\0', /* "timroes.de", true */ 't', 'i', 'm', 'r', 'o', 'e', 's', '.', 'd', 'e', '\0', /* "timschubert.net", true */ 't', 'i', 'm', 's', 'c', 'h', 'u', 'b', 'e', 'r', 't', '.', 'n', 'e', 't', '\0', + /* "timstoffel.net", false */ 't', 'i', 'm', 's', 't', 'o', 'f', 'f', 'e', 'l', '.', 'n', 'e', 't', '\0', /* "timtaubert.de", true */ 't', 'i', 'm', 't', 'a', 'u', 'b', 'e', 'r', 't', '.', 'd', 'e', '\0', /* "timtelfer.com", true */ 't', 'i', 'm', 't', 'e', 'l', 'f', 'e', 'r', '.', 'c', 'o', 'm', '\0', /* "timtj.ca", true */ 't', 'i', 'm', 't', 'j', '.', 'c', 'a', '\0', @@ -20259,6 +20240,7 @@ static const char kSTSHostTable[] = { /* "uberwald.ws", true */ 'u', 'b', 'e', 'r', 'w', 'a', 'l', 'd', '.', 'w', 's', '\0', /* "ubicv.com", true */ 'u', 'b', 'i', 'c', 'v', '.', 'c', 'o', 'm', '\0', /* "ublaboo.org", true */ 'u', 'b', 'l', 'a', 'b', 'o', 'o', '.', 'o', 'r', 'g', '\0', + /* "uborcare.com", true */ 'u', 'b', 'o', 'r', 'c', 'a', 'r', 'e', '.', 'c', 'o', 'm', '\0', /* "ubtce.com", true */ 'u', 'b', 't', 'c', 'e', '.', 'c', 'o', 'm', '\0', /* "ucangiller.com", true */ 'u', 'c', 'a', 'n', 'g', 'i', 'l', 'l', 'e', 'r', '.', 'c', 'o', 'm', '\0', /* "ucfirst.nl", true */ 'u', 'c', 'f', 'i', 'r', 's', 't', '.', 'n', 'l', '\0', @@ -20593,6 +20575,7 @@ static const char kSTSHostTable[] = { /* "vanhoutte.be", false */ 'v', 'a', 'n', 'h', 'o', 'u', 't', 't', 'e', '.', 'b', 'e', '\0', /* "vanhove.biz", true */ 'v', 'a', 'n', 'h', 'o', 'v', 'e', '.', 'b', 'i', 'z', '\0', /* "vanlaanen.com", true */ 'v', 'a', 'n', 'l', 'a', 'a', 'n', 'e', 'n', '.', 'c', 'o', 'm', '\0', + /* "vanmalland.com", true */ 'v', 'a', 'n', 'm', 'a', 'l', 'l', 'a', 'n', 'd', '.', 'c', 'o', 'm', '\0', /* "vante.me", true */ 'v', 'a', 'n', 't', 'e', '.', 'm', 'e', '\0', /* "vantien.com", true */ 'v', 'a', 'n', 't', 'i', 'e', 'n', '.', 'c', 'o', 'm', '\0', /* "vantru.is", true */ 'v', 'a', 'n', 't', 'r', 'u', '.', 'i', 's', '\0', @@ -20755,6 +20738,7 @@ static const char kSTSHostTable[] = { /* "vietnamhost.vn", false */ 'v', 'i', 'e', 't', 'n', 'a', 'm', 'h', 'o', 's', 't', '.', 'v', 'n', '\0', /* "vietnamwomenveterans.org", true */ 'v', 'i', 'e', 't', 'n', 'a', 'm', 'w', 'o', 'm', 'e', 'n', 'v', 'e', 't', 'e', 'r', 'a', 'n', 's', '.', 'o', 'r', 'g', '\0', /* "vieux.pro", true */ 'v', 'i', 'e', 'u', 'x', '.', 'p', 'r', 'o', '\0', + /* "viewmyrecords.com", true */ 'v', 'i', 'e', 'w', 'm', 'y', 'r', 'e', 'c', 'o', 'r', 'd', 's', '.', 'c', 'o', 'm', '\0', /* "viewsea.com", false */ 'v', 'i', 'e', 'w', 's', 'e', 'a', '.', 'c', 'o', 'm', '\0', /* "vigenebio.com", true */ 'v', 'i', 'g', 'e', 'n', 'e', 'b', 'i', 'o', '.', 'c', 'o', 'm', '\0', /* "vigilantnow.com", true */ 'v', 'i', 'g', 'i', 'l', 'a', 'n', 't', 'n', 'o', 'w', '.', 'c', 'o', 'm', '\0', @@ -20907,6 +20891,8 @@ static const char kSTSHostTable[] = { /* "voshod.org", true */ 'v', 'o', 's', 'h', 'o', 'd', '.', 'o', 'r', 'g', '\0', /* "vostronet.com", true */ 'v', 'o', 's', 't', 'r', 'o', 'n', 'e', 't', '.', 'c', 'o', 'm', '\0', /* "voter-info.uk", true */ 'v', 'o', 't', 'e', 'r', '-', 'i', 'n', 'f', 'o', '.', 'u', 'k', '\0', + /* "votocek.cz", true */ 'v', 'o', 't', 'o', 'c', 'e', 'k', '.', 'c', 'z', '\0', + /* "votockova.cz", true */ 'v', 'o', 't', 'o', 'c', 'k', 'o', 'v', 'a', '.', 'c', 'z', '\0', /* "votoot.com", true */ 'v', 'o', 't', 'o', 'o', 't', '.', 'c', 'o', 'm', '\0', /* "vow.vn", true */ 'v', 'o', 'w', '.', 'v', 'n', '\0', /* "voxml.com", true */ 'v', 'o', 'x', 'm', 'l', '.', 'c', 'o', 'm', '\0', @@ -20932,6 +20918,7 @@ static const char kSTSHostTable[] = { /* "vrijstaandhuis-in-zuidplas-kopen.nl", true */ 'v', 'r', 'i', 'j', 's', 't', 'a', 'a', 'n', 'd', 'h', 'u', 'i', 's', '-', 'i', 'n', '-', 'z', 'u', 'i', 'd', 'p', 'l', 'a', 's', '-', 'k', 'o', 'p', 'e', 'n', '.', 'n', 'l', '\0', /* "vrijstaandhuis-in-zwartewaterland-kopen.nl", true */ 'v', 'r', 'i', 'j', 's', 't', 'a', 'a', 'n', 'd', 'h', 'u', 'i', 's', '-', 'i', 'n', '-', 'z', 'w', 'a', 'r', 't', 'e', 'w', 'a', 't', 'e', 'r', 'l', 'a', 'n', 'd', '-', 'k', 'o', 'p', 'e', 'n', '.', 'n', 'l', '\0', /* "vrijstaandhuisverkopen.nl", true */ 'v', 'r', 'i', 'j', 's', 't', 'a', 'a', 'n', 'd', 'h', 'u', 'i', 's', 'v', 'e', 'r', 'k', 'o', 'p', 'e', 'n', '.', 'n', 'l', '\0', + /* "vrtak-cz.net", true */ 'v', 'r', 't', 'a', 'k', '-', 'c', 'z', '.', 'n', 'e', 't', '\0', /* "vrzl.pro", true */ 'v', 'r', 'z', 'l', '.', 'p', 'r', 'o', '\0', /* "vsc-don-stocksport.de", true */ 'v', 's', 'c', '-', 'd', 'o', 'n', '-', 's', 't', 'o', 'c', 'k', 's', 'p', 'o', 'r', 't', '.', 'd', 'e', '\0', /* "vscale.io", true */ 'v', 's', 'c', 'a', 'l', 'e', '.', 'i', 'o', '\0', @@ -21225,6 +21212,7 @@ static const char kSTSHostTable[] = { /* "weltengilde.de", true */ 'w', 'e', 'l', 't', 'e', 'n', 'g', 'i', 'l', 'd', 'e', '.', 'd', 'e', '\0', /* "weltenhueter.de", true */ 'w', 'e', 'l', 't', 'e', 'n', 'h', 'u', 'e', 't', 'e', 'r', '.', 'd', 'e', '\0', /* "weltentreff.com", true */ 'w', 'e', 'l', 't', 'e', 'n', 't', 'r', 'e', 'f', 'f', '.', 'c', 'o', 'm', '\0', + /* "weltverschwoerung.de", true */ 'w', 'e', 'l', 't', 'v', 'e', 'r', 's', 'c', 'h', 'w', 'o', 'e', 'r', 'u', 'n', 'g', '.', 'd', 'e', '\0', /* "wemakemenus.com", true */ 'w', 'e', 'm', 'a', 'k', 'e', 'm', 'e', 'n', 'u', 's', '.', 'c', 'o', 'm', '\0', /* "wemakeonlinereviews.com", true */ 'w', 'e', 'm', 'a', 'k', 'e', 'o', 'n', 'l', 'i', 'n', 'e', 'r', 'e', 'v', 'i', 'e', 'w', 's', '.', 'c', 'o', 'm', '\0', /* "wendigo.pl", true */ 'w', 'e', 'n', 'd', 'i', 'g', 'o', '.', 'p', 'l', '\0', @@ -21473,6 +21461,7 @@ static const char kSTSHostTable[] = { /* "witway.nl", false */ 'w', 'i', 't', 'w', 'a', 'y', '.', 'n', 'l', '\0', /* "wiz.at", true */ 'w', 'i', 'z', '.', 'a', 't', '\0', /* "wizard.gov", true */ 'w', 'i', 'z', 'a', 'r', 'd', '.', 'g', 'o', 'v', '\0', + /* "wizzley.com", false */ 'w', 'i', 'z', 'z', 'l', 'e', 'y', '.', 'c', 'o', 'm', '\0', /* "wizzr.nl", true */ 'w', 'i', 'z', 'z', 'r', '.', 'n', 'l', '\0', /* "wje-online.de", true */ 'w', 'j', 'e', '-', 'o', 'n', 'l', 'i', 'n', 'e', '.', 'd', 'e', '\0', /* "wkennington.com", true */ 'w', 'k', 'e', 'n', 'n', 'i', 'n', 'g', 't', 'o', 'n', '.', 'c', 'o', 'm', '\0', @@ -21604,7 +21593,6 @@ static const char kSTSHostTable[] = { /* "writeoff.me", true */ 'w', 'r', 'i', 't', 'e', 'o', 'f', 'f', '.', 'm', 'e', '\0', /* "writereditor.com", true */ 'w', 'r', 'i', 't', 'e', 'r', 'e', 'd', 'i', 't', 'o', 'r', '.', 'c', 'o', 'm', '\0', /* "wrp.gov", true */ 'w', 'r', 'p', '.', 'g', 'o', 'v', '\0', - /* "wrwg.ca", true */ 'w', 'r', 'w', 'g', '.', 'c', 'a', '\0', /* "wsa.poznan.pl", true */ 'w', 's', 'a', '.', 'p', 'o', 'z', 'n', 'a', 'n', '.', 'p', 'l', '\0', /* "wsb-immo.at", true */ 'w', 's', 'b', '-', 'i', 'm', 'm', 'o', '.', 'a', 't', '\0', /* "wscales.com", true */ 'w', 's', 'c', 'a', 'l', 'e', 's', '.', 'c', 'o', 'm', '\0', @@ -21711,6 +21699,7 @@ static const char kSTSHostTable[] = { /* "www.wordpress.com", false */ 'w', 'w', 'w', '.', 'w', 'o', 'r', 'd', 'p', 'r', 'e', 's', 's', '.', 'c', 'o', 'm', '\0', /* "wxcafe.net", true */ 'w', 'x', 'c', 'a', 'f', 'e', '.', 'n', 'e', 't', '\0', /* "wxh.jp", true */ 'w', 'x', 'h', '.', 'j', 'p', '\0', + /* "wxrlab.com", true */ 'w', 'x', 'r', 'l', 'a', 'b', '.', 'c', 'o', 'm', '\0', /* "wxster.com", true */ 'w', 'x', 's', 't', 'e', 'r', '.', 'c', 'o', 'm', '\0', /* "wy6.org", true */ 'w', 'y', '6', '.', 'o', 'r', 'g', '\0', /* "wyam.io", true */ 'w', 'y', 'a', 'm', '.', 'i', 'o', '\0', @@ -21743,7 +21732,6 @@ static const char kSTSHostTable[] = { /* "xbb.hk", true */ 'x', 'b', 'b', '.', 'h', 'k', '\0', /* "xbb.li", true */ 'x', 'b', 'b', '.', 'l', 'i', '\0', /* "xbc.nz", true */ 'x', 'b', 'c', '.', 'n', 'z', '\0', - /* "xbind.io", true */ 'x', 'b', 'i', 'n', 'd', '.', 'i', 'o', '\0', /* "xboxdownloadthat.com", true */ 'x', 'b', 'o', 'x', 'd', 'o', 'w', 'n', 'l', 'o', 'a', 'd', 't', 'h', 'a', 't', '.', 'c', 'o', 'm', '\0', /* "xboxlivegoldshop.nl", true */ 'x', 'b', 'o', 'x', 'l', 'i', 'v', 'e', 'g', 'o', 'l', 'd', 's', 'h', 'o', 'p', '.', 'n', 'l', '\0', /* "xbrlsuccess.appspot.com", true */ 'x', 'b', 'r', 'l', 's', 'u', 'c', 'c', 'e', 's', 's', '.', 'a', 'p', 'p', 's', 'p', 'o', 't', '.', 'c', 'o', 'm', '\0', @@ -22024,7 +22012,6 @@ static const char kSTSHostTable[] = { /* "yomena.in", true */ 'y', 'o', 'm', 'e', 'n', 'a', '.', 'i', 'n', '\0', /* "yooooex.com", true */ 'y', 'o', 'o', 'o', 'o', 'e', 'x', '.', 'c', 'o', 'm', '\0', /* "yopers.com", true */ 'y', 'o', 'p', 'e', 'r', 's', '.', 'c', 'o', 'm', '\0', - /* "yoramvandevelde.net", true */ 'y', 'o', 'r', 'a', 'm', 'v', 'a', 'n', 'd', 'e', 'v', 'e', 'l', 'd', 'e', '.', 'n', 'e', 't', '\0', /* "yorcom.nl", false */ 'y', 'o', 'r', 'c', 'o', 'm', '.', 'n', 'l', '\0', /* "yorkshireterrier.com.br", true */ 'y', 'o', 'r', 'k', 's', 'h', 'i', 'r', 'e', 't', 'e', 'r', 'r', 'i', 'e', 'r', '.', 'c', 'o', 'm', '.', 'b', 'r', '\0', /* "yorname.ml", true */ 'y', 'o', 'r', 'n', 'a', 'm', 'e', '.', 'm', 'l', '\0', @@ -22062,7 +22049,6 @@ static const char kSTSHostTable[] = { /* "youtous.me", true */ 'y', 'o', 'u', 't', 'o', 'u', 's', '.', 'm', 'e', '\0', /* "youtubedownloader.com", true */ 'y', 'o', 'u', 't', 'u', 'b', 'e', 'd', 'o', 'w', 'n', 'l', 'o', 'a', 'd', 'e', 'r', '.', 'c', 'o', 'm', '\0', /* "youyoulemon.com", true */ 'y', 'o', 'u', 'y', 'o', 'u', 'l', 'e', 'm', 'o', 'n', '.', 'c', 'o', 'm', '\0', - /* "yoyoost.duckdns.org", true */ 'y', 'o', 'y', 'o', 'o', 's', 't', '.', 'd', 'u', 'c', 'k', 'd', 'n', 's', '.', 'o', 'r', 'g', '\0', /* "ypart.eu", true */ 'y', 'p', 'a', 'r', 't', '.', 'e', 'u', '\0', /* "ypcs.fi", true */ 'y', 'p', 'c', 's', '.', 'f', 'i', '\0', /* "ypid.de", true */ 'y', 'p', 'i', 'd', '.', 'd', 'e', '\0', @@ -22272,7 +22258,6 @@ static const char kSTSHostTable[] = { /* "zivava.ge", true */ 'z', 'i', 'v', 'a', 'v', 'a', '.', 'g', 'e', '\0', /* "zivmergers.com", true */ 'z', 'i', 'v', 'm', 'e', 'r', 'g', 'e', 'r', 's', '.', 'c', 'o', 'm', '\0', /* "zixiao.wang", true */ 'z', 'i', 'x', 'i', 'a', 'o', '.', 'w', 'a', 'n', 'g', '\0', - /* "zixo.sk", true */ 'z', 'i', 'x', 'o', '.', 's', 'k', '\0', /* "zkrypt.cc", true */ 'z', 'k', 'r', 'y', 'p', 't', '.', 'c', 'c', '\0', /* "zlatosnadno.cz", true */ 'z', 'l', 'a', 't', 'o', 's', 'n', 'a', 'd', 'n', 'o', '.', 'c', 'z', '\0', /* "zlavomat.sk", true */ 'z', 'l', 'a', 'v', 'o', 'm', 'a', 't', '.', 's', 'k', '\0', @@ -22470,6268 +22455,6270 @@ static const nsSTSPreload kSTSPreloadList[] = { { 1119, true }, { 1130, true }, { 1141, true }, - { 1152, false }, - { 1168, true }, - { 1179, true }, - { 1187, false }, - { 1199, true }, + { 1151, true }, + { 1162, false }, + { 1178, true }, + { 1189, true }, + { 1197, false }, { 1209, true }, - { 1234, true }, - { 1259, true }, - { 1281, true }, - { 1298, true }, - { 1321, true }, - { 1332, true }, - { 1345, true }, - { 1359, true }, - { 1366, true }, - { 1388, true }, + { 1219, true }, + { 1244, true }, + { 1269, true }, + { 1291, true }, + { 1308, true }, + { 1331, true }, + { 1342, true }, + { 1355, true }, + { 1369, true }, + { 1376, true }, { 1398, true }, - { 1410, true }, - { 1417, true }, - { 1428, true }, - { 1435, true }, - { 1443, true }, - { 1454, true }, - { 1465, false }, - { 1471, true }, - { 1484, true }, + { 1408, true }, + { 1420, true }, + { 1427, true }, + { 1438, true }, + { 1445, true }, + { 1453, true }, + { 1464, true }, + { 1475, false }, + { 1481, true }, { 1494, true }, - { 1501, true }, - { 1508, true }, - { 1519, true }, - { 1526, true }, - { 1537, true }, - { 1549, true }, - { 1566, true }, - { 1580, true }, - { 1592, true }, - { 1603, true }, - { 1612, true }, - { 1618, true }, - { 1625, true }, - { 1633, true }, - { 1642, true }, - { 1653, true }, - { 1662, true }, - { 1670, true }, + { 1504, true }, + { 1511, true }, + { 1518, true }, + { 1529, true }, + { 1536, true }, + { 1547, true }, + { 1559, true }, + { 1576, true }, + { 1590, true }, + { 1602, true }, + { 1613, true }, + { 1622, true }, + { 1628, true }, + { 1635, true }, + { 1643, true }, + { 1652, true }, + { 1663, true }, + { 1672, true }, { 1680, true }, - { 1698, true }, - { 1716, true }, - { 1725, true }, - { 1733, true }, - { 1741, true }, - { 1749, true }, - { 1765, true }, - { 1783, true }, - { 1794, true }, - { 1803, true }, - { 1812, true }, + { 1690, true }, + { 1708, true }, + { 1726, true }, + { 1735, true }, + { 1743, true }, + { 1751, true }, + { 1759, true }, + { 1775, true }, + { 1793, true }, + { 1804, true }, + { 1813, true }, { 1822, true }, - { 1834, true }, - { 1848, true }, - { 1856, true }, - { 1869, true }, + { 1832, true }, + { 1844, true }, + { 1858, true }, + { 1866, true }, { 1879, true }, - { 1888, true }, - { 1897, true }, - { 1906, true }, - { 1915, true }, - { 1926, true }, - { 1937, true }, - { 1948, false }, - { 1961, true }, - { 1970, true }, - { 1984, true }, - { 1991, true }, - { 2002, true }, - { 2011, true }, - { 2032, true }, - { 2041, true }, - { 2053, true }, - { 2067, true }, + { 1889, true }, + { 1898, true }, + { 1907, true }, + { 1916, true }, + { 1925, true }, + { 1936, true }, + { 1947, true }, + { 1958, false }, + { 1971, true }, + { 1980, true }, + { 1994, true }, + { 2001, true }, + { 2012, true }, + { 2021, true }, + { 2042, true }, + { 2051, true }, + { 2063, true }, { 2077, true }, - { 2092, true }, - { 2100, true }, - { 2116, true }, - { 2129, true }, - { 2141, true }, - { 2153, true }, - { 2161, true }, - { 2172, true }, - { 2179, true }, - { 2188, true }, - { 2197, true }, - { 2205, true }, - { 2212, true }, - { 2225, true }, - { 2234, true }, - { 2245, true }, - { 2254, true }, - { 2266, true }, - { 2285, true }, - { 2296, true }, - { 2315, true }, - { 2334, true }, - { 2346, true }, - { 2360, true }, - { 2369, true }, - { 2381, true }, - { 2392, true }, + { 2087, true }, + { 2102, true }, + { 2110, true }, + { 2126, true }, + { 2139, true }, + { 2151, true }, + { 2163, true }, + { 2171, true }, + { 2182, true }, + { 2189, true }, + { 2198, true }, + { 2207, true }, + { 2215, true }, + { 2222, true }, + { 2235, true }, + { 2244, true }, + { 2255, true }, + { 2264, true }, + { 2276, true }, + { 2295, true }, + { 2306, true }, + { 2325, true }, + { 2344, true }, + { 2356, true }, + { 2370, true }, + { 2379, true }, + { 2391, true }, { 2402, true }, - { 2411, true }, + { 2412, true }, { 2421, true }, - { 2436, true }, - { 2449, true }, - { 2457, true }, + { 2431, true }, + { 2439, true }, + { 2454, true }, { 2467, true }, + { 2475, true }, { 2485, true }, - { 2492, true }, - { 2506, true }, - { 2517, true }, - { 2529, true }, - { 2542, true }, - { 2562, true }, - { 2577, true }, - { 2597, true }, - { 2617, true }, - { 2626, true }, - { 2636, true }, - { 2646, true }, - { 2660, true }, - { 2674, true }, - { 2684, true }, - { 2693, true }, - { 2712, true }, - { 2726, true }, - { 2734, true }, - { 2741, true }, - { 2755, true }, - { 2774, true }, - { 2785, true }, - { 2798, true }, - { 2807, true }, - { 2819, true }, - { 2830, true }, - { 2849, true }, - { 2860, true }, - { 2870, true }, - { 2881, true }, - { 2892, true }, - { 2902, true }, + { 2503, true }, + { 2510, true }, + { 2524, true }, + { 2535, true }, + { 2547, true }, + { 2560, true }, + { 2580, true }, + { 2595, true }, + { 2615, true }, + { 2635, true }, + { 2644, true }, + { 2654, true }, + { 2664, true }, + { 2678, true }, + { 2692, true }, + { 2702, true }, + { 2711, true }, + { 2730, true }, + { 2744, true }, + { 2752, true }, + { 2759, true }, + { 2773, true }, + { 2792, true }, + { 2803, true }, + { 2816, true }, + { 2825, true }, + { 2837, true }, + { 2848, true }, + { 2867, true }, + { 2878, true }, + { 2888, true }, + { 2899, true }, { 2910, true }, { 2920, true }, - { 2931, true }, - { 2946, false }, - { 2959, true }, - { 2969, true }, + { 2928, true }, + { 2938, true }, + { 2949, true }, + { 2964, false }, { 2977, true }, - { 2985, true }, - { 2997, true }, - { 3008, true }, - { 3023, true }, - { 3042, true }, - { 3054, true }, - { 3065, true }, + { 2987, true }, + { 2995, true }, + { 3003, true }, + { 3015, true }, + { 3026, true }, + { 3041, true }, + { 3060, true }, { 3072, true }, - { 3082, true }, - { 3088, true }, - { 3097, true }, - { 3105, true }, - { 3118, true }, - { 3127, true }, - { 3141, true }, - { 3153, true }, - { 3162, true }, - { 3175, true }, - { 3185, true }, - { 3224, true }, - { 3234, false }, - { 3241, true }, - { 3252, true }, - { 3264, true }, - { 3276, true }, - { 3288, true }, - { 3300, true }, - { 3311, true }, - { 3322, true }, - { 3334, true }, - { 3342, true }, - { 3358, true }, - { 3365, true }, - { 3374, true }, - { 3384, true }, - { 3403, true }, - { 3411, true }, - { 3418, true }, + { 3083, true }, + { 3090, true }, + { 3100, true }, + { 3106, true }, + { 3115, true }, + { 3123, true }, + { 3136, true }, + { 3145, true }, + { 3159, true }, + { 3171, true }, + { 3180, true }, + { 3193, true }, + { 3203, true }, + { 3242, true }, + { 3252, false }, + { 3259, true }, + { 3270, true }, + { 3282, true }, + { 3294, true }, + { 3306, true }, + { 3318, true }, + { 3329, true }, + { 3340, true }, + { 3352, true }, + { 3360, true }, + { 3376, true }, + { 3383, true }, + { 3392, true }, + { 3402, true }, + { 3421, true }, { 3429, true }, - { 3439, true }, - { 3451, true }, - { 3468, true }, - { 3475, true }, - { 3484, true }, - { 3505, true }, - { 3529, true }, - { 3541, true }, - { 3556, true }, - { 3564, true }, - { 3575, true }, - { 3586, true }, - { 3596, true }, - { 3607, true }, - { 3618, true }, - { 3631, true }, - { 3643, true }, - { 3655, true }, - { 3665, true }, + { 3436, true }, + { 3447, true }, + { 3457, true }, + { 3469, true }, + { 3486, true }, + { 3493, true }, + { 3502, true }, + { 3523, true }, + { 3547, true }, + { 3559, true }, + { 3574, true }, + { 3582, true }, + { 3593, true }, + { 3604, true }, + { 3614, true }, + { 3625, true }, + { 3636, true }, + { 3649, true }, + { 3661, true }, { 3673, true }, - { 3689, true }, - { 3699, false }, - { 3706, true }, - { 3723, true }, - { 3732, true }, - { 3739, true }, - { 3748, true }, - { 3769, true }, - { 3784, false }, - { 3797, true }, - { 3807, true }, - { 3860, true }, - { 3872, true }, - { 3881, true }, - { 3891, true }, - { 3901, true }, - { 3915, true }, - { 3925, true }, + { 3683, true }, + { 3691, true }, + { 3707, true }, + { 3717, false }, + { 3724, true }, + { 3741, true }, + { 3750, true }, + { 3757, true }, + { 3766, true }, + { 3787, true }, + { 3802, false }, + { 3815, true }, + { 3825, true }, + { 3878, true }, + { 3890, true }, + { 3899, true }, + { 3909, true }, + { 3919, true }, { 3933, true }, - { 3940, true }, - { 3968, true }, - { 3980, true }, - { 3989, true }, - { 4011, true }, - { 4027, true }, - { 4032, true }, - { 4056, true }, - { 4066, true }, + { 3943, true }, + { 3951, true }, + { 3958, true }, + { 3986, true }, + { 3998, true }, + { 4007, true }, + { 4029, true }, + { 4045, true }, + { 4050, true }, { 4074, true }, - { 4085, true }, - { 4093, true }, - { 4112, true }, - { 4129, true }, - { 4140, true }, - { 4151, true }, - { 4165, true }, - { 4179, true }, - { 4189, true }, + { 4084, true }, + { 4092, true }, + { 4103, true }, + { 4111, true }, + { 4130, true }, + { 4147, true }, + { 4158, true }, + { 4169, true }, + { 4183, true }, + { 4197, true }, { 4207, true }, - { 4218, true }, - { 4231, true }, - { 4248, true }, - { 4264, true }, - { 4279, true }, - { 4294, true }, - { 4302, true }, - { 4319, true }, - { 4334, true }, - { 4349, true }, - { 4360, true }, - { 4372, true }, - { 4388, true }, - { 4398, true }, - { 4405, true }, + { 4225, true }, + { 4236, true }, + { 4249, true }, + { 4266, true }, + { 4282, true }, + { 4297, true }, + { 4312, true }, + { 4320, true }, + { 4337, true }, + { 4352, true }, + { 4367, true }, + { 4378, true }, + { 4390, true }, + { 4406, true }, { 4416, true }, - { 4428, true }, - { 4443, false }, - { 4453, false }, - { 4468, true }, - { 4496, true }, - { 4510, true }, - { 4530, true }, - { 4549, true }, - { 4559, true }, - { 4573, true }, - { 4584, true }, - { 4595, true }, - { 4607, true }, + { 4423, true }, + { 4434, true }, + { 4446, true }, + { 4461, false }, + { 4471, false }, + { 4486, true }, + { 4514, true }, + { 4528, true }, + { 4548, true }, + { 4567, true }, + { 4577, true }, + { 4591, true }, + { 4602, true }, + { 4613, true }, { 4625, true }, - { 4636, true }, - { 4650, true }, - { 4663, true }, - { 4675, true }, - { 4697, true }, - { 4708, false }, - { 4724, false }, - { 4736, true }, - { 4749, true }, - { 4762, true }, - { 4784, true }, - { 4803, true }, - { 4816, true }, - { 4830, true }, - { 4846, true }, - { 4865, true }, - { 4882, true }, - { 4898, true }, - { 4915, true }, - { 4931, true }, - { 4956, true }, - { 4981, true }, - { 4997, true }, - { 5016, true }, - { 5033, true }, - { 5049, true }, - { 5066, true }, - { 5082, true }, - { 5104, true }, - { 5128, true }, - { 5152, true }, - { 5171, true }, - { 5189, false }, - { 5197, true }, - { 5221, true }, - { 5240, true }, - { 5255, true }, - { 5268, true }, - { 5280, true }, - { 5294, true }, - { 5305, true }, - { 5322, true }, - { 5357, true }, + { 4643, true }, + { 4654, true }, + { 4668, true }, + { 4681, true }, + { 4693, true }, + { 4715, true }, + { 4726, false }, + { 4742, false }, + { 4754, true }, + { 4767, true }, + { 4780, true }, + { 4802, true }, + { 4821, true }, + { 4834, true }, + { 4848, true }, + { 4864, true }, + { 4883, true }, + { 4900, true }, + { 4916, true }, + { 4933, true }, + { 4949, true }, + { 4974, true }, + { 4999, true }, + { 5015, true }, + { 5034, true }, + { 5051, true }, + { 5067, true }, + { 5084, true }, + { 5100, true }, + { 5122, true }, + { 5146, true }, + { 5170, true }, + { 5189, true }, + { 5207, false }, + { 5215, true }, + { 5239, true }, + { 5258, true }, + { 5273, true }, + { 5286, true }, + { 5298, true }, + { 5312, true }, + { 5323, true }, + { 5340, true }, { 5375, true }, - { 5399, true }, - { 5412, true }, - { 5425, true }, - { 5438, true }, - { 5447, true }, - { 5464, true }, - { 5476, true }, - { 5488, true }, - { 5507, true }, - { 5530, true }, - { 5547, true }, - { 5567, true }, - { 5581, true }, - { 5589, true }, - { 5608, true }, - { 5632, true }, - { 5645, true }, - { 5664, true }, - { 5679, true }, - { 5703, true }, - { 5716, true }, + { 5393, true }, + { 5417, true }, + { 5430, true }, + { 5443, true }, + { 5456, true }, + { 5465, true }, + { 5482, true }, + { 5494, true }, + { 5506, true }, + { 5525, true }, + { 5548, true }, + { 5565, true }, + { 5585, true }, + { 5599, true }, + { 5607, true }, + { 5626, true }, + { 5650, true }, + { 5663, true }, + { 5682, true }, + { 5697, true }, + { 5721, true }, { 5734, true }, - { 5755, true }, - { 5775, true }, - { 5800, true }, - { 5812, true }, - { 5827, true }, - { 5846, true }, - { 5860, true }, - { 5879, true }, - { 5886, true }, - { 5895, true }, - { 5908, true }, - { 5929, true }, - { 5941, true }, - { 5954, true }, - { 5970, true }, - { 6002, true }, - { 6023, true }, - { 6035, true }, - { 6046, true }, - { 6059, false }, - { 6068, true }, - { 6078, true }, - { 6094, false }, - { 6104, true }, - { 6119, true }, - { 6136, true }, - { 6147, true }, - { 6175, false }, - { 6189, true }, - { 6202, true }, - { 6218, true }, - { 6234, true }, - { 6245, true }, - { 6257, true }, - { 6269, true }, - { 6290, true }, - { 6308, false }, - { 6318, true }, - { 6333, true }, - { 6347, true }, - { 6368, false }, - { 6381, true }, - { 6390, true }, - { 6405, true }, - { 6421, true }, - { 6435, true }, - { 6447, true }, - { 6462, true }, - { 6475, true }, - { 6487, true }, - { 6499, true }, - { 6511, true }, - { 6523, true }, - { 6535, true }, - { 6543, true }, - { 6554, true }, - { 6571, true }, - { 6585, true }, - { 6601, true }, - { 6615, true }, - { 6632, true }, - { 6648, true }, - { 6663, true }, - { 6678, true }, + { 5752, true }, + { 5773, true }, + { 5793, true }, + { 5818, true }, + { 5830, true }, + { 5845, true }, + { 5864, true }, + { 5878, true }, + { 5897, true }, + { 5904, true }, + { 5913, true }, + { 5926, true }, + { 5947, true }, + { 5959, true }, + { 5972, true }, + { 5988, true }, + { 6020, true }, + { 6041, true }, + { 6053, true }, + { 6064, true }, + { 6077, false }, + { 6086, true }, + { 6096, true }, + { 6112, false }, + { 6122, true }, + { 6137, true }, + { 6154, true }, + { 6165, true }, + { 6193, false }, + { 6207, true }, + { 6220, true }, + { 6236, true }, + { 6252, true }, + { 6263, true }, + { 6275, true }, + { 6287, true }, + { 6308, true }, + { 6326, false }, + { 6336, true }, + { 6351, true }, + { 6365, true }, + { 6386, false }, + { 6399, true }, + { 6408, true }, + { 6423, true }, + { 6439, true }, + { 6453, true }, + { 6465, true }, + { 6480, true }, + { 6493, true }, + { 6505, true }, + { 6517, true }, + { 6529, true }, + { 6541, true }, + { 6553, true }, + { 6561, true }, + { 6572, true }, + { 6589, true }, + { 6603, true }, + { 6619, true }, + { 6633, true }, + { 6650, true }, + { 6666, true }, + { 6681, true }, { 6696, true }, - { 6705, true }, - { 6718, true }, - { 6733, true }, - { 6754, true }, - { 6763, true }, - { 6773, true }, - { 6798, true }, - { 6809, true }, - { 6821, true }, - { 6840, true }, - { 6852, true }, - { 6871, true }, - { 6890, true }, - { 6909, true }, - { 6921, true }, - { 6936, true }, - { 6951, true }, - { 6962, true }, - { 6975, true }, - { 6987, true }, - { 7000, true }, - { 7014, true }, - { 7029, true }, - { 7051, true }, - { 7061, true }, - { 7072, true }, - { 7094, true }, - { 7103, true }, - { 7116, true }, - { 7130, true }, - { 7142, true }, - { 7169, true }, - { 7195, true }, - { 7206, true }, - { 7219, true }, - { 7233, true }, - { 7244, true }, - { 7268, true }, - { 7285, true }, - { 7313, true }, - { 7337, true }, - { 7349, true }, - { 7363, true }, - { 7374, true }, - { 7386, true }, - { 7395, true }, - { 7409, true }, - { 7419, true }, - { 7428, true }, - { 7442, true }, - { 7461, true }, - { 7484, true }, - { 7494, true }, - { 7511, true }, - { 7523, true }, - { 7537, true }, - { 7545, true }, - { 7560, false }, - { 7581, true }, + { 6714, true }, + { 6723, true }, + { 6736, true }, + { 6751, true }, + { 6772, true }, + { 6781, true }, + { 6791, true }, + { 6816, true }, + { 6827, true }, + { 6839, true }, + { 6858, true }, + { 6870, true }, + { 6889, true }, + { 6908, true }, + { 6927, true }, + { 6939, true }, + { 6954, true }, + { 6969, true }, + { 6980, true }, + { 6993, true }, + { 7005, true }, + { 7018, true }, + { 7032, true }, + { 7047, true }, + { 7069, true }, + { 7079, true }, + { 7090, true }, + { 7112, true }, + { 7121, true }, + { 7134, true }, + { 7148, true }, + { 7160, true }, + { 7187, true }, + { 7213, true }, + { 7224, true }, + { 7237, true }, + { 7251, true }, + { 7262, true }, + { 7286, true }, + { 7303, true }, + { 7331, true }, + { 7355, true }, + { 7367, true }, + { 7381, true }, + { 7392, true }, + { 7404, true }, + { 7413, true }, + { 7427, true }, + { 7437, true }, + { 7446, true }, + { 7460, true }, + { 7479, true }, + { 7502, true }, + { 7512, true }, + { 7529, true }, + { 7541, true }, + { 7555, true }, + { 7563, true }, + { 7578, false }, { 7599, true }, { 7617, true }, { 7635, true }, - { 7652, true }, - { 7673, true }, - { 7684, true }, - { 7695, true }, - { 7704, true }, - { 7720, true }, - { 7736, true }, - { 7755, true }, - { 7776, true }, - { 7790, true }, - { 7809, true }, - { 7822, true }, - { 7849, true }, - { 7860, true }, - { 7880, true }, + { 7653, true }, + { 7670, true }, + { 7691, true }, + { 7702, true }, + { 7713, true }, + { 7722, true }, + { 7738, true }, + { 7754, true }, + { 7773, true }, + { 7794, true }, + { 7808, true }, + { 7827, true }, + { 7840, true }, + { 7867, true }, + { 7878, true }, { 7898, true }, - { 7916, false }, - { 7935, true }, - { 7949, true }, - { 7970, true }, - { 7990, true }, - { 8006, true }, - { 8016, true }, - { 8029, true }, - { 8042, true }, - { 8056, true }, - { 8070, true }, - { 8080, true }, - { 8090, true }, - { 8100, true }, - { 8110, true }, - { 8120, true }, - { 8130, true }, - { 8147, true }, - { 8164, true }, - { 8179, true }, + { 7916, true }, + { 7934, false }, + { 7953, true }, + { 7967, true }, + { 7988, true }, + { 8008, true }, + { 8024, true }, + { 8034, true }, + { 8047, true }, + { 8060, true }, + { 8074, true }, + { 8088, true }, + { 8098, true }, + { 8108, true }, + { 8118, true }, + { 8128, true }, + { 8138, true }, + { 8148, true }, + { 8165, true }, + { 8182, true }, { 8197, true }, - { 8213, true }, - { 8223, true }, + { 8215, true }, { 8231, true }, - { 8243, false }, - { 8254, true }, - { 8265, true }, - { 8275, true }, - { 8284, true }, - { 8298, true }, - { 8310, true }, - { 8321, true }, - { 8333, true }, - { 8342, true }, - { 8356, true }, - { 8376, true }, - { 8408, true }, - { 8420, true }, - { 8437, true }, - { 8461, true }, - { 8486, true }, - { 8515, true }, - { 8529, true }, - { 8548, true }, - { 8570, true }, - { 8582, true }, - { 8598, true }, - { 8609, true }, - { 8617, true }, - { 8631, true }, - { 8647, true }, - { 8662, true }, - { 8671, true }, - { 8686, true }, - { 8694, true }, - { 8703, true }, - { 8720, true }, - { 8739, true }, - { 8756, true }, - { 8764, true }, - { 8797, false }, - { 8813, true }, + { 8241, true }, + { 8249, true }, + { 8261, false }, + { 8272, true }, + { 8283, true }, + { 8293, true }, + { 8302, true }, + { 8316, true }, + { 8328, true }, + { 8339, true }, + { 8351, true }, + { 8360, true }, + { 8374, true }, + { 8394, true }, + { 8426, true }, + { 8438, true }, + { 8455, true }, + { 8479, true }, + { 8504, true }, + { 8533, true }, + { 8547, true }, + { 8566, true }, + { 8588, true }, + { 8600, true }, + { 8616, true }, + { 8627, true }, + { 8635, true }, + { 8649, true }, + { 8665, true }, + { 8680, true }, + { 8689, true }, + { 8704, true }, + { 8712, true }, + { 8721, true }, + { 8738, true }, + { 8757, true }, + { 8774, true }, + { 8782, true }, + { 8815, false }, { 8831, true }, - { 8845, true }, - { 8858, true }, - { 8866, true }, - { 8880, false }, - { 8894, true }, - { 8906, true }, - { 8916, true }, - { 8926, false }, - { 8939, true }, - { 8951, true }, - { 8960, true }, - { 8972, true }, - { 8986, true }, - { 8999, true }, - { 9011, true }, - { 9027, true }, - { 9039, true }, - { 9059, true }, - { 9069, false }, - { 9079, false }, - { 9087, true }, - { 9097, true }, - { 9106, true }, - { 9120, true }, - { 9133, true }, - { 9147, true }, - { 9155, true }, - { 9167, true }, - { 9179, true }, - { 9203, true }, - { 9222, true }, - { 9241, false }, - { 9250, false }, - { 9264, true }, - { 9274, true }, - { 9307, true }, - { 9317, true }, - { 9331, true }, - { 9338, true }, - { 9350, true }, - { 9363, true }, - { 9374, true }, - { 9388, true }, - { 9405, true }, - { 9416, true }, - { 9427, true }, - { 9443, true }, - { 9450, true }, - { 9464, true }, - { 9472, true }, - { 9483, true }, + { 8849, true }, + { 8863, true }, + { 8876, true }, + { 8884, true }, + { 8898, false }, + { 8912, true }, + { 8924, true }, + { 8934, true }, + { 8944, false }, + { 8957, true }, + { 8969, true }, + { 8978, true }, + { 8990, true }, + { 9004, true }, + { 9017, true }, + { 9029, true }, + { 9045, true }, + { 9057, true }, + { 9077, true }, + { 9087, false }, + { 9097, false }, + { 9105, true }, + { 9115, true }, + { 9124, true }, + { 9138, true }, + { 9151, true }, + { 9165, true }, + { 9173, true }, + { 9185, true }, + { 9197, true }, + { 9221, true }, + { 9240, true }, + { 9259, false }, + { 9268, false }, + { 9282, true }, + { 9292, true }, + { 9325, true }, + { 9335, true }, + { 9349, true }, + { 9356, true }, + { 9368, true }, + { 9381, true }, + { 9392, true }, + { 9406, true }, + { 9423, true }, + { 9434, true }, + { 9445, true }, + { 9461, true }, + { 9468, true }, + { 9482, true }, + { 9490, true }, { 9501, true }, - { 9524, true }, - { 9539, true }, - { 9554, true }, - { 9571, true }, - { 9584, true }, - { 9594, true }, - { 9606, true }, - { 9619, true }, - { 9630, true }, - { 9641, true }, - { 9656, true }, - { 9666, true }, - { 9689, true }, - { 9700, true }, - { 9712, true }, - { 9723, true }, - { 9734, true }, - { 9745, true }, - { 9756, true }, - { 9772, true }, - { 9802, true }, - { 9813, true }, - { 9824, true }, - { 9837, true }, + { 9519, true }, + { 9542, true }, + { 9557, true }, + { 9572, true }, + { 9589, true }, + { 9602, true }, + { 9612, true }, + { 9624, true }, + { 9637, true }, + { 9648, true }, + { 9659, true }, + { 9674, true }, + { 9684, true }, + { 9707, true }, + { 9718, true }, + { 9730, true }, + { 9741, true }, + { 9752, true }, + { 9763, true }, + { 9774, true }, + { 9790, true }, + { 9820, true }, + { 9831, true }, + { 9842, true }, { 9855, true }, - { 9867, true }, - { 9884, true }, + { 9873, true }, + { 9885, true }, { 9902, true }, - { 9911, true }, - { 9925, true }, - { 9935, true }, - { 9947, true }, - { 9957, true }, - { 9968, true }, - { 9979, true }, - { 9996, true }, - { 10012, true }, - { 10025, true }, - { 10036, true }, - { 10044, false }, - { 10070, false }, - { 10081, false }, - { 10098, true }, - { 10108, true }, - { 10120, true }, - { 10139, true }, - { 10156, true }, - { 10169, true }, - { 10181, true }, - { 10190, true }, + { 9920, true }, + { 9929, true }, + { 9943, true }, + { 9953, true }, + { 9965, true }, + { 9975, true }, + { 9986, true }, + { 9997, true }, + { 10014, true }, + { 10030, true }, + { 10043, true }, + { 10054, true }, + { 10062, false }, + { 10088, false }, + { 10099, false }, + { 10116, true }, + { 10126, true }, + { 10138, true }, + { 10157, true }, + { 10174, true }, + { 10187, true }, { 10199, true }, - { 10216, true }, - { 10223, true }, - { 10247, true }, - { 10263, true }, - { 10283, true }, - { 10308, true }, - { 10333, true }, - { 10358, true }, - { 10370, true }, - { 10392, true }, - { 10402, true }, - { 10414, true }, - { 10423, true }, - { 10435, true }, - { 10462, true }, - { 10490, true }, - { 10503, false }, - { 10512, true }, - { 10526, true }, - { 10542, true }, - { 10558, true }, - { 10570, true }, - { 10585, true }, - { 10599, true }, - { 10612, true }, - { 10627, true }, - { 10639, true }, - { 10650, true }, - { 10660, true }, - { 10671, true }, - { 10683, true }, - { 10695, true }, - { 10713, true }, - { 10722, true }, - { 10734, true }, - { 10753, true }, - { 10766, true }, - { 10782, true }, - { 10793, true }, - { 10802, true }, - { 10820, true }, - { 10834, true }, - { 10848, true }, - { 10864, true }, - { 10880, true }, - { 10900, true }, - { 10921, true }, + { 10208, true }, + { 10217, true }, + { 10234, true }, + { 10241, true }, + { 10265, true }, + { 10281, true }, + { 10301, true }, + { 10326, true }, + { 10351, true }, + { 10376, true }, + { 10388, true }, + { 10410, true }, + { 10420, true }, + { 10432, true }, + { 10441, true }, + { 10453, true }, + { 10480, true }, + { 10508, true }, + { 10521, false }, + { 10530, true }, + { 10544, true }, + { 10560, true }, + { 10576, true }, + { 10588, true }, + { 10603, true }, + { 10617, true }, + { 10630, true }, + { 10645, true }, + { 10657, true }, + { 10668, true }, + { 10678, true }, + { 10689, true }, + { 10706, true }, + { 10718, true }, + { 10730, true }, + { 10748, true }, + { 10757, true }, + { 10769, true }, + { 10788, true }, + { 10801, true }, + { 10817, true }, + { 10828, true }, + { 10837, true }, + { 10855, true }, + { 10869, true }, + { 10883, true }, + { 10899, true }, + { 10915, true }, { 10935, true }, - { 10949, true }, - { 10964, true }, - { 10977, true }, - { 10987, true }, - { 11005, true }, - { 11020, true }, - { 11038, true }, - { 11048, true }, - { 11065, true }, - { 11080, true }, - { 11098, true }, - { 11112, true }, - { 11126, true }, - { 11140, true }, - { 11152, true }, - { 11165, true }, - { 11177, true }, - { 11192, true }, - { 11206, true }, - { 11221, true }, - { 11231, true }, - { 11245, true }, - { 11260, true }, - { 11269, true }, - { 11284, true }, - { 11298, true }, - { 11312, true }, - { 11328, true }, - { 11340, true }, - { 11353, false }, - { 11368, true }, - { 11395, true }, - { 11416, true }, - { 11428, true }, - { 11442, true }, - { 11457, true }, - { 11467, true }, - { 11482, true }, - { 11496, true }, - { 11510, true }, - { 11532, true }, - { 11544, true }, + { 10956, true }, + { 10970, true }, + { 10984, true }, + { 10999, true }, + { 11012, true }, + { 11022, true }, + { 11040, true }, + { 11055, true }, + { 11073, true }, + { 11083, true }, + { 11100, true }, + { 11115, true }, + { 11133, true }, + { 11147, true }, + { 11161, true }, + { 11175, true }, + { 11187, true }, + { 11200, true }, + { 11212, true }, + { 11227, true }, + { 11241, true }, + { 11256, true }, + { 11266, true }, + { 11280, true }, + { 11295, true }, + { 11304, true }, + { 11319, true }, + { 11333, true }, + { 11347, true }, + { 11363, true }, + { 11375, true }, + { 11388, false }, + { 11403, true }, + { 11430, true }, + { 11451, true }, + { 11463, true }, + { 11477, true }, + { 11492, true }, + { 11502, true }, + { 11517, true }, + { 11531, true }, + { 11545, true }, { 11567, true }, - { 11588, true }, - { 11607, true }, - { 11619, true }, - { 11635, true }, - { 11649, true }, - { 11667, true }, - { 11680, true }, - { 11692, true }, - { 11705, true }, + { 11579, true }, + { 11602, true }, + { 11623, true }, + { 11642, true }, + { 11654, true }, + { 11670, true }, + { 11684, true }, + { 11702, true }, { 11715, true }, - { 11726, true }, - { 11741, true }, - { 11752, false }, - { 11768, true }, - { 11786, true }, - { 11797, true }, - { 11809, true }, - { 11829, true }, - { 11851, true }, - { 11871, true }, - { 11884, true }, - { 11896, true }, - { 11916, true }, - { 11929, true }, - { 11943, true }, - { 11956, true }, - { 11980, true }, - { 11993, true }, - { 12011, true }, - { 12024, true }, - { 12042, true }, - { 12064, true }, - { 12081, true }, - { 12105, true }, - { 12129, true }, - { 12148, true }, + { 11727, true }, + { 11740, true }, + { 11750, true }, + { 11761, true }, + { 11776, true }, + { 11787, false }, + { 11803, true }, + { 11821, true }, + { 11832, true }, + { 11844, true }, + { 11864, true }, + { 11886, true }, + { 11906, true }, + { 11919, true }, + { 11931, true }, + { 11951, true }, + { 11964, true }, + { 11978, true }, + { 11991, true }, + { 12015, true }, + { 12028, true }, + { 12046, true }, + { 12059, true }, + { 12077, true }, + { 12099, true }, + { 12116, true }, + { 12140, true }, { 12164, true }, - { 12176, true }, - { 12190, true }, + { 12183, true }, { 12199, true }, - { 12215, true }, - { 12236, true }, - { 12255, true }, - { 12268, true }, + { 12211, true }, + { 12225, true }, + { 12234, true }, + { 12250, true }, + { 12271, true }, { 12290, true }, - { 12311, true }, - { 12331, true }, - { 12351, true }, - { 12367, true }, - { 12380, false }, - { 12393, true }, - { 12406, true }, - { 12418, true }, + { 12303, true }, + { 12325, true }, + { 12346, true }, + { 12366, true }, + { 12386, true }, + { 12402, true }, + { 12415, false }, { 12428, true }, + { 12441, true }, { 12453, true }, - { 12466, true }, - { 12480, true }, - { 12495, true }, + { 12463, true }, + { 12488, true }, + { 12501, true }, { 12515, true }, - { 12531, true }, - { 12545, true }, - { 12559, true }, - { 12575, true }, - { 12589, true }, - { 12605, true }, - { 12619, true }, - { 12631, true }, - { 12645, true }, - { 12662, true }, - { 12673, true }, - { 12692, true }, - { 12705, true }, - { 12722, true }, - { 12736, true }, - { 12744, true }, + { 12530, true }, + { 12550, true }, + { 12566, true }, + { 12580, true }, + { 12594, true }, + { 12610, true }, + { 12624, true }, + { 12640, true }, + { 12654, true }, + { 12666, true }, + { 12680, true }, + { 12697, true }, + { 12708, true }, + { 12727, true }, + { 12740, true }, { 12757, true }, - { 12769, true }, - { 12782, true }, - { 12798, true }, - { 12813, true }, - { 12826, true }, - { 12838, true }, - { 12855, true }, + { 12771, true }, + { 12779, true }, + { 12792, true }, + { 12804, true }, + { 12817, true }, + { 12833, true }, + { 12848, true }, + { 12861, true }, { 12873, true }, - { 12892, true }, + { 12890, true }, { 12908, true }, - { 12920, true }, - { 12934, true }, - { 12956, true }, - { 12970, true }, - { 12982, true }, - { 12994, true }, - { 13008, true }, - { 13023, true }, - { 13034, true }, - { 13055, true }, - { 13067, true }, - { 13078, true }, - { 13089, true }, - { 13101, true }, - { 13127, true }, - { 13141, true }, - { 13153, true }, - { 13164, true }, - { 13174, true }, - { 13193, true }, - { 13206, true }, - { 13218, true }, - { 13231, false }, - { 13251, true }, - { 13263, true }, - { 13275, true }, - { 13301, true }, - { 13319, true }, - { 13347, true }, - { 13362, true }, - { 13380, true }, - { 13393, true }, - { 13402, true }, - { 13418, true }, - { 13431, true }, - { 13443, true }, - { 13457, true }, - { 13470, true }, - { 13481, true }, - { 13491, true }, - { 13502, true }, - { 13512, true }, - { 13523, true }, - { 13532, true }, - { 13548, true }, - { 13564, true }, - { 13589, true }, - { 13617, true }, - { 13648, true }, - { 13663, true }, + { 12927, true }, + { 12943, true }, + { 12955, true }, + { 12969, true }, + { 12991, true }, + { 13005, true }, + { 13017, true }, + { 13029, true }, + { 13043, true }, + { 13058, true }, + { 13069, true }, + { 13090, true }, + { 13102, true }, + { 13113, true }, + { 13124, true }, + { 13136, true }, + { 13162, true }, + { 13176, true }, + { 13188, true }, + { 13199, true }, + { 13209, true }, + { 13228, true }, + { 13241, true }, + { 13253, true }, + { 13266, false }, + { 13286, true }, + { 13298, true }, + { 13310, true }, + { 13336, true }, + { 13354, true }, + { 13382, true }, + { 13397, true }, + { 13415, true }, + { 13428, true }, + { 13437, true }, + { 13453, true }, + { 13466, true }, + { 13478, true }, + { 13492, true }, + { 13505, true }, + { 13516, true }, + { 13526, true }, + { 13537, true }, + { 13547, true }, + { 13558, true }, + { 13567, true }, + { 13583, true }, + { 13599, true }, + { 13624, true }, + { 13652, true }, { 13683, true }, - { 13695, true }, - { 13715, true }, - { 13727, true }, - { 13740, true }, - { 13749, true }, - { 13758, true }, - { 13768, true }, + { 13698, true }, + { 13718, true }, + { 13730, true }, + { 13750, true }, + { 13762, true }, { 13775, true }, - { 13794, true }, - { 13805, true }, - { 13816, true }, - { 13831, true }, + { 13784, true }, + { 13793, true }, + { 13803, true }, + { 13810, true }, + { 13829, true }, + { 13840, true }, { 13851, true }, - { 13869, true }, - { 13879, true }, - { 13909, true }, - { 13919, true }, - { 13946, true }, - { 13963, true }, - { 13974, true }, - { 13984, true }, + { 13866, true }, + { 13886, true }, + { 13904, true }, + { 13914, true }, + { 13944, true }, + { 13954, true }, + { 13981, true }, { 13998, true }, - { 14015, true }, - { 14026, true }, - { 14035, true }, - { 14046, true }, - { 14066, true }, - { 14085, true }, - { 14096, true }, - { 14107, true }, - { 14125, false }, - { 14136, true }, - { 14155, true }, - { 14169, true }, - { 14187, true }, - { 14205, true }, - { 14227, true }, - { 14249, true }, - { 14263, true }, - { 14278, true }, - { 14292, true }, - { 14306, true }, - { 14321, true }, - { 14342, true }, - { 14352, true }, - { 14372, true }, - { 14387, false }, - { 14418, true }, - { 14429, false }, + { 14009, true }, + { 14019, true }, + { 14033, true }, + { 14050, true }, + { 14061, true }, + { 14070, true }, + { 14081, true }, + { 14101, true }, + { 14120, true }, + { 14131, true }, + { 14142, true }, + { 14160, false }, + { 14171, true }, + { 14190, true }, + { 14204, true }, + { 14222, true }, + { 14240, true }, + { 14262, true }, + { 14284, true }, + { 14298, true }, + { 14313, true }, + { 14327, true }, + { 14341, true }, + { 14356, true }, + { 14377, true }, + { 14387, true }, + { 14407, true }, + { 14422, false }, { 14453, true }, - { 14474, true }, - { 14492, true }, - { 14503, true }, - { 14521, true }, + { 14464, false }, + { 14488, true }, + { 14509, true }, + { 14527, true }, { 14538, true }, - { 14554, true }, + { 14556, true }, { 14573, true }, - { 14586, true }, - { 14594, true }, - { 14611, true }, - { 14624, true }, - { 14639, true }, - { 14651, true }, - { 14670, true }, + { 14589, true }, + { 14608, true }, + { 14621, true }, + { 14629, true }, + { 14646, true }, + { 14659, true }, + { 14674, true }, { 14686, true }, - { 14704, false }, - { 14726, true }, - { 14741, true }, - { 14758, true }, - { 14780, true }, - { 14795, true }, - { 14812, true }, - { 14833, true }, - { 14849, true }, - { 14865, true }, - { 14882, true }, - { 14899, true }, - { 14914, true }, - { 14929, true }, - { 14942, true }, - { 14956, true }, - { 14972, true }, - { 14986, true }, - { 15003, true }, - { 15020, true }, - { 15032, true }, - { 15048, true }, - { 15062, true }, - { 15079, true }, + { 14705, true }, + { 14721, true }, + { 14739, false }, + { 14761, true }, + { 14776, true }, + { 14793, true }, + { 14815, true }, + { 14830, true }, + { 14847, true }, + { 14868, true }, + { 14884, true }, + { 14900, true }, + { 14917, true }, + { 14934, true }, + { 14949, true }, + { 14964, true }, + { 14977, true }, + { 14991, true }, + { 15007, true }, + { 15021, true }, + { 15038, true }, + { 15055, true }, + { 15067, true }, + { 15083, true }, { 15097, true }, - { 15112, true }, - { 15124, true }, - { 15137, true }, - { 15153, true }, - { 15167, true }, - { 15180, true }, - { 15194, true }, - { 15212, true }, - { 15230, true }, + { 15114, true }, + { 15132, true }, + { 15147, true }, + { 15159, true }, + { 15172, true }, + { 15188, true }, + { 15202, true }, + { 15215, true }, + { 15229, true }, { 15247, true }, - { 15266, true }, - { 15281, true }, - { 15293, true }, - { 15313, true }, - { 15333, true }, + { 15265, true }, + { 15282, true }, + { 15301, true }, + { 15316, true }, + { 15328, true }, { 15348, true }, - { 15359, true }, - { 15370, true }, - { 15381, true }, + { 15368, true }, + { 15383, true }, { 15394, true }, - { 15410, true }, - { 15425, true }, - { 15436, true }, - { 15450, true }, - { 15467, true }, - { 15483, true }, + { 15405, true }, + { 15416, true }, + { 15429, true }, + { 15445, true }, + { 15460, true }, + { 15471, true }, + { 15485, true }, { 15502, true }, - { 15513, true }, - { 15524, true }, - { 15546, true }, - { 15558, true }, - { 15568, true }, - { 15583, true }, - { 15596, true }, - { 15615, true }, - { 15626, true }, - { 15639, true }, - { 15648, true }, - { 15675, true }, - { 15689, true }, - { 15704, true }, - { 15719, true }, - { 15741, true }, - { 15765, true }, - { 15783, false }, - { 15796, false }, - { 15805, true }, - { 15815, true }, - { 15827, true }, - { 15849, true }, - { 15866, true }, - { 15883, true }, - { 15903, true }, - { 15914, true }, - { 15925, true }, - { 15943, true }, - { 15975, true }, - { 16002, true }, - { 16027, true }, - { 16051, true }, + { 15518, true }, + { 15537, true }, + { 15548, true }, + { 15559, true }, + { 15581, true }, + { 15593, true }, + { 15603, true }, + { 15618, true }, + { 15631, true }, + { 15650, true }, + { 15661, true }, + { 15674, true }, + { 15683, true }, + { 15710, true }, + { 15724, true }, + { 15739, true }, + { 15754, true }, + { 15776, true }, + { 15800, true }, + { 15818, false }, + { 15831, false }, + { 15840, true }, + { 15850, true }, + { 15862, true }, + { 15884, true }, + { 15901, true }, + { 15918, true }, + { 15938, true }, + { 15949, true }, + { 15960, true }, + { 15978, true }, + { 16010, true }, + { 16037, true }, { 16062, true }, - { 16074, true }, - { 16084, true }, - { 16102, true }, - { 16117, true }, - { 16131, true }, - { 16143, true }, - { 16172, true }, - { 16184, true }, - { 16204, true }, - { 16223, true }, - { 16243, true }, - { 16259, true }, - { 16282, true }, - { 16299, false }, - { 16323, true }, - { 16335, true }, - { 16346, true }, - { 16359, true }, - { 16374, true }, - { 16386, true }, - { 16398, true }, - { 16410, true }, - { 16426, true }, - { 16443, true }, - { 16462, true }, + { 16086, true }, + { 16097, true }, + { 16109, true }, + { 16119, true }, + { 16137, true }, + { 16152, true }, + { 16166, true }, + { 16178, true }, + { 16207, true }, + { 16219, true }, + { 16239, true }, + { 16258, true }, + { 16278, true }, + { 16294, true }, + { 16317, true }, + { 16334, false }, + { 16358, true }, + { 16370, true }, + { 16381, true }, + { 16394, true }, + { 16409, true }, + { 16421, true }, + { 16433, true }, + { 16445, true }, + { 16461, true }, { 16478, true }, { 16497, true }, - { 16518, true }, - { 16535, true }, - { 16548, true }, - { 16558, true }, - { 16567, true }, - { 16577, true }, - { 16590, true }, + { 16513, true }, + { 16532, true }, + { 16553, true }, + { 16570, true }, + { 16583, true }, + { 16593, true }, { 16602, true }, - { 16615, true }, - { 16633, true }, + { 16612, true }, + { 16625, true }, + { 16637, true }, { 16650, true }, - { 16669, true }, + { 16668, true }, { 16685, true }, - { 16697, true }, - { 16708, true }, - { 16728, true }, - { 16744, true }, - { 16765, true }, - { 16782, true }, - { 16796, true }, - { 16811, true }, - { 16826, true }, - { 16847, true }, - { 16865, true }, - { 16880, true }, - { 16891, true }, - { 16901, true }, - { 16919, true }, - { 16938, true }, - { 16957, true }, - { 16969, true }, - { 16988, true }, - { 17002, true }, - { 17017, true }, - { 17027, true }, - { 17043, true }, - { 17056, true }, - { 17073, true }, - { 17089, false }, - { 17096, true }, - { 17109, true }, - { 17119, true }, - { 17132, true }, - { 17145, true }, - { 17161, true }, - { 17172, true }, - { 17184, true }, - { 17195, true }, - { 17202, false }, - { 17213, true }, - { 17224, true }, - { 17234, true }, - { 17247, false }, - { 17255, true }, - { 17265, true }, - { 17272, true }, - { 17286, true }, - { 17298, false }, - { 17312, true }, - { 17328, true }, - { 17343, true }, - { 17362, true }, + { 16704, true }, + { 16720, true }, + { 16732, true }, + { 16743, true }, + { 16763, true }, + { 16779, true }, + { 16800, true }, + { 16817, true }, + { 16831, true }, + { 16846, true }, + { 16861, true }, + { 16882, true }, + { 16900, true }, + { 16915, true }, + { 16926, true }, + { 16936, true }, + { 16954, true }, + { 16973, true }, + { 16992, true }, + { 17004, true }, + { 17023, true }, + { 17037, true }, + { 17052, true }, + { 17062, true }, + { 17078, true }, + { 17091, true }, + { 17108, true }, + { 17124, false }, + { 17131, true }, + { 17144, true }, + { 17154, true }, + { 17167, true }, + { 17180, true }, + { 17196, true }, + { 17207, true }, + { 17219, true }, + { 17230, true }, + { 17237, false }, + { 17248, true }, + { 17259, true }, + { 17269, true }, + { 17282, false }, + { 17290, true }, + { 17297, true }, + { 17311, true }, + { 17323, false }, + { 17337, true }, + { 17353, true }, + { 17368, true }, { 17387, true }, - { 17396, true }, - { 17407, true }, - { 17415, true }, - { 17427, true }, - { 17457, true }, - { 17480, true }, - { 17493, true }, - { 17512, true }, - { 17524, true }, - { 17537, false }, - { 17556, true }, - { 17572, false }, - { 17588, true }, - { 17604, false }, - { 17619, false }, - { 17632, true }, - { 17643, true }, - { 17652, true }, + { 17412, true }, + { 17421, true }, + { 17432, true }, + { 17440, true }, + { 17452, true }, + { 17482, true }, + { 17505, true }, + { 17518, true }, + { 17537, true }, + { 17549, true }, + { 17562, false }, + { 17581, true }, + { 17597, false }, + { 17613, true }, + { 17629, false }, + { 17644, false }, + { 17657, true }, { 17668, true }, - { 17680, true }, - { 17702, true }, - { 17721, true }, - { 17729, true }, - { 17750, true }, - { 17760, true }, - { 17773, true }, - { 17782, true }, - { 17795, true }, - { 17805, true }, - { 17816, true }, - { 17827, true }, - { 17838, true }, - { 17849, true }, - { 17861, true }, - { 17877, true }, - { 17894, false }, - { 17911, true }, - { 17933, true }, - { 17959, true }, - { 17972, true }, - { 17986, true }, - { 18005, true }, - { 18026, true }, - { 18038, true }, - { 18052, true }, - { 18061, true }, - { 18074, true }, - { 18087, true }, - { 18101, true }, - { 18114, true }, - { 18130, true }, - { 18147, true }, - { 18158, true }, - { 18167, true }, - { 18180, true }, - { 18194, true }, - { 18207, true }, + { 17677, true }, + { 17693, true }, + { 17705, true }, + { 17727, true }, + { 17746, true }, + { 17754, true }, + { 17775, true }, + { 17785, true }, + { 17798, true }, + { 17807, true }, + { 17820, true }, + { 17830, true }, + { 17841, true }, + { 17852, true }, + { 17863, true }, + { 17874, true }, + { 17886, true }, + { 17902, true }, + { 17919, false }, + { 17936, true }, + { 17958, true }, + { 17984, true }, + { 17997, true }, + { 18011, true }, + { 18030, true }, + { 18051, true }, + { 18063, true }, + { 18077, true }, + { 18086, true }, + { 18099, true }, + { 18112, true }, + { 18126, true }, + { 18139, true }, + { 18155, true }, + { 18172, true }, + { 18183, true }, + { 18192, true }, + { 18205, true }, { 18219, true }, - { 18240, false }, - { 18258, true }, - { 18281, true }, - { 18308, false }, - { 18329, false }, - { 18342, true }, - { 18356, true }, - { 18368, true }, - { 18388, true }, - { 18399, true }, - { 18412, true }, - { 18429, true }, - { 18441, true }, - { 18450, true }, - { 18464, true }, - { 18472, true }, + { 18232, true }, + { 18244, true }, + { 18265, false }, + { 18283, true }, + { 18306, true }, + { 18333, false }, + { 18354, false }, + { 18367, true }, + { 18381, true }, + { 18393, true }, + { 18413, true }, + { 18424, true }, + { 18437, true }, + { 18454, true }, + { 18466, true }, + { 18475, true }, { 18489, true }, - { 18502, true }, - { 18515, true }, - { 18528, true }, + { 18497, true }, + { 18514, true }, + { 18527, true }, { 18540, true }, - { 18550, true }, - { 18563, true }, - { 18579, true }, - { 18600, true }, - { 18618, true }, - { 18630, true }, - { 18645, true }, - { 18668, true }, - { 18681, true }, - { 18697, true }, - { 18703, true }, - { 18715, true }, - { 18725, true }, - { 18741, true }, - { 18753, true }, - { 18764, true }, - { 18774, true }, - { 18791, true }, - { 18805, true }, - { 18824, true }, - { 18836, false }, - { 18848, true }, + { 18553, true }, + { 18565, true }, + { 18575, true }, + { 18588, true }, + { 18604, true }, + { 18625, true }, + { 18637, true }, + { 18655, true }, + { 18667, true }, + { 18682, true }, + { 18705, true }, + { 18718, true }, + { 18734, true }, + { 18740, true }, + { 18752, true }, + { 18762, true }, + { 18778, true }, + { 18790, true }, + { 18801, true }, + { 18811, true }, + { 18828, true }, + { 18842, true }, { 18861, true }, - { 18890, true }, - { 18916, true }, - { 18932, true }, - { 18945, true }, - { 18959, true }, - { 18974, true }, - { 18985, true }, - { 18995, true }, + { 18873, false }, + { 18885, true }, + { 18898, true }, + { 18927, true }, + { 18953, true }, + { 18969, true }, + { 18982, true }, + { 18996, true }, { 19011, true }, - { 19030, true }, - { 19054, true }, - { 19082, true }, - { 19095, true }, - { 19109, true }, - { 19121, true }, - { 19131, true }, - { 19142, true }, - { 19160, true }, - { 19173, true }, - { 19182, true }, - { 19195, true }, - { 19207, true }, + { 19022, true }, + { 19032, true }, + { 19048, true }, + { 19067, true }, + { 19091, true }, + { 19119, true }, + { 19132, true }, + { 19146, true }, + { 19158, true }, + { 19168, true }, + { 19179, true }, + { 19197, true }, + { 19210, true }, { 19219, true }, - { 19235, true }, - { 19249, true }, - { 19265, true }, - { 19281, true }, - { 19301, true }, - { 19309, true }, - { 19323, true }, - { 19331, true }, - { 19341, true }, - { 19361, true }, - { 19383, true }, - { 19396, true }, - { 19408, true }, - { 19424, true }, - { 19438, false }, - { 19451, true }, - { 19466, true }, - { 19479, true }, - { 19497, true }, - { 19509, true }, - { 19523, true }, - { 19537, true }, + { 19232, true }, + { 19244, true }, + { 19256, true }, + { 19272, true }, + { 19286, true }, + { 19302, true }, + { 19318, true }, + { 19338, true }, + { 19346, true }, + { 19360, true }, + { 19368, true }, + { 19378, true }, + { 19398, true }, + { 19420, true }, + { 19433, true }, + { 19445, true }, + { 19461, true }, + { 19475, false }, + { 19488, true }, + { 19503, true }, + { 19516, true }, + { 19534, true }, { 19546, true }, - { 19558, true }, - { 19576, true }, - { 19596, false }, - { 19611, true }, - { 19624, true }, - { 19637, true }, - { 19651, true }, - { 19677, true }, - { 19687, true }, - { 19701, true }, - { 19713, true }, - { 19727, true }, - { 19745, true }, - { 19763, false }, - { 19779, true }, - { 19789, true }, - { 19800, true }, - { 19813, true }, - { 19829, true }, - { 19851, true }, + { 19560, true }, + { 19574, true }, + { 19583, true }, + { 19595, true }, + { 19613, true }, + { 19633, false }, + { 19648, true }, + { 19661, true }, + { 19674, true }, + { 19688, true }, + { 19714, true }, + { 19724, true }, + { 19738, true }, + { 19750, true }, + { 19764, true }, + { 19782, true }, + { 19800, false }, + { 19816, true }, + { 19826, true }, + { 19837, true }, + { 19850, true }, { 19866, true }, - { 19877, true }, - { 19887, true }, - { 19909, true }, + { 19888, true }, + { 19903, true }, + { 19914, true }, { 19924, true }, - { 19943, true }, - { 19956, false }, - { 19971, true }, - { 19991, true }, - { 20002, true }, - { 20012, true }, - { 20024, true }, - { 20036, true }, + { 19946, true }, + { 19961, true }, + { 19980, true }, + { 19993, false }, + { 20008, true }, + { 20028, true }, + { 20039, true }, { 20049, true }, - { 20069, true }, - { 20081, true }, - { 20095, true }, - { 20107, false }, - { 20121, true }, - { 20133, true }, - { 20143, true }, - { 20156, false }, - { 20171, true }, - { 20189, true }, - { 20203, true }, - { 20216, true }, - { 20229, true }, - { 20241, true }, - { 20255, true }, - { 20275, true }, + { 20061, true }, + { 20073, true }, + { 20086, true }, + { 20106, true }, + { 20118, true }, + { 20132, true }, + { 20144, false }, + { 20158, true }, + { 20170, true }, + { 20180, true }, + { 20193, false }, + { 20208, true }, + { 20226, true }, + { 20240, true }, + { 20253, true }, + { 20266, true }, + { 20278, true }, { 20292, true }, - { 20305, true }, - { 20319, true }, - { 20332, true }, - { 20344, true }, - { 20362, true }, - { 20374, true }, - { 20385, true }, - { 20396, true }, - { 20409, true }, + { 20312, true }, + { 20329, true }, + { 20342, true }, + { 20356, true }, + { 20369, true }, + { 20381, true }, + { 20399, true }, + { 20411, true }, { 20422, true }, - { 20437, true }, - { 20448, true }, + { 20433, true }, + { 20446, true }, { 20459, true }, { 20474, true }, - { 20488, true }, - { 20499, true }, - { 20509, true }, - { 20521, true }, - { 20542, true }, - { 20553, true }, - { 20562, true }, - { 20582, true }, - { 20601, true }, - { 20608, true }, - { 20625, true }, - { 20639, true }, - { 20649, true }, + { 20485, true }, + { 20496, true }, + { 20511, true }, + { 20525, true }, + { 20536, true }, + { 20546, true }, + { 20558, true }, + { 20579, true }, + { 20590, true }, + { 20599, true }, + { 20619, true }, + { 20638, true }, + { 20645, true }, { 20662, true }, - { 20675, true }, - { 20687, true }, + { 20676, true }, + { 20686, true }, { 20699, true }, - { 20716, true }, - { 20727, true }, - { 20740, true }, - { 20754, true }, - { 20767, true }, + { 20712, true }, + { 20724, true }, + { 20736, true }, + { 20753, true }, + { 20764, true }, { 20777, true }, - { 20795, true }, - { 20805, true }, - { 20819, true }, - { 20836, true }, - { 20850, true }, - { 20860, true }, - { 20876, true }, + { 20791, true }, + { 20804, true }, + { 20814, true }, + { 20832, true }, + { 20842, true }, + { 20856, true }, + { 20873, true }, { 20887, true }, - { 20906, true }, - { 20921, true }, - { 20945, true }, - { 20962, true }, - { 20981, true }, - { 20998, true }, - { 21010, true }, - { 21026, true }, - { 21048, true }, - { 21074, true }, - { 21089, true }, - { 21102, true }, - { 21120, true }, - { 21131, true }, - { 21141, true }, - { 21151, true }, - { 21161, true }, - { 21180, true }, - { 21192, true }, - { 21212, true }, - { 21224, true }, - { 21242, true }, - { 21256, true }, - { 21270, true }, - { 21280, true }, - { 21287, true }, - { 21297, true }, + { 20897, true }, + { 20913, true }, + { 20924, true }, + { 20943, true }, + { 20958, true }, + { 20982, true }, + { 20999, true }, + { 21018, true }, + { 21035, true }, + { 21047, true }, + { 21063, true }, + { 21085, true }, + { 21111, true }, + { 21126, true }, + { 21139, true }, + { 21157, true }, + { 21168, true }, + { 21178, true }, + { 21188, true }, + { 21198, true }, + { 21217, true }, + { 21229, true }, + { 21249, true }, + { 21261, true }, + { 21279, true }, + { 21293, true }, { 21307, true }, - { 21322, true }, - { 21347, true }, - { 21369, true }, - { 21392, true }, - { 21404, true }, - { 21417, true }, - { 21435, false }, - { 21447, true }, - { 21469, true }, - { 21482, true }, - { 21498, true }, - { 21518, true }, - { 21546, true }, - { 21566, true }, - { 21579, true }, - { 21589, true }, - { 21597, true }, - { 21609, true }, - { 21618, false }, - { 21627, true }, - { 21637, false }, - { 21657, true }, + { 21317, true }, + { 21324, true }, + { 21334, true }, + { 21344, true }, + { 21359, true }, + { 21384, true }, + { 21406, true }, + { 21429, true }, + { 21441, true }, + { 21454, true }, + { 21472, false }, + { 21484, true }, + { 21506, true }, + { 21519, true }, + { 21535, true }, + { 21555, true }, + { 21583, true }, + { 21603, true }, + { 21616, true }, + { 21626, true }, + { 21634, true }, + { 21646, true }, + { 21655, false }, { 21664, true }, - { 21671, true }, - { 21687, true }, - { 21703, true }, - { 21718, true }, - { 21728, true }, - { 21746, true }, - { 21761, true }, - { 21788, true }, - { 21805, true }, - { 21828, true }, - { 21846, true }, - { 21854, true }, - { 21869, true }, + { 21674, false }, + { 21694, true }, + { 21701, true }, + { 21708, true }, + { 21724, true }, + { 21740, true }, + { 21755, true }, + { 21765, true }, + { 21783, true }, + { 21798, true }, + { 21825, true }, + { 21842, true }, + { 21865, true }, { 21883, true }, - { 21894, true }, - { 21903, true }, - { 21924, true }, - { 21951, true }, - { 21959, true }, - { 21969, true }, - { 21985, true }, - { 21997, true }, - { 22012, true }, - { 22024, true }, - { 22039, true }, - { 22054, true }, - { 22066, true }, - { 22089, true }, - { 22102, true }, - { 22120, true }, - { 22142, true }, - { 22163, true }, - { 22183, true }, + { 21891, true }, + { 21906, true }, + { 21920, true }, + { 21931, true }, + { 21940, true }, + { 21961, true }, + { 21988, true }, + { 21996, true }, + { 22006, true }, + { 22022, true }, + { 22034, true }, + { 22049, true }, + { 22061, true }, + { 22076, true }, + { 22091, true }, + { 22103, true }, + { 22126, true }, + { 22139, true }, + { 22157, true }, + { 22179, true }, { 22200, true }, - { 22226, true }, - { 22235, true }, - { 22257, true }, - { 22275, true }, - { 22289, true }, - { 22301, true }, - { 22315, true }, - { 22325, true }, - { 22339, true }, - { 22349, true }, - { 22364, true }, - { 22379, true }, - { 22390, true }, - { 22403, true }, - { 22415, true }, - { 22428, true }, + { 22220, true }, + { 22237, true }, + { 22263, true }, + { 22272, true }, + { 22294, true }, + { 22312, true }, + { 22326, true }, + { 22338, true }, + { 22352, true }, + { 22362, true }, + { 22376, true }, + { 22386, true }, + { 22401, true }, + { 22416, true }, + { 22427, true }, { 22440, true }, - { 22448, true }, - { 22466, true }, - { 22487, true }, - { 22508, true }, - { 22529, true }, - { 22543, true }, - { 22559, true }, - { 22572, false }, - { 22583, true }, - { 22595, true }, - { 22607, true }, - { 22619, true }, - { 22631, true }, + { 22452, true }, + { 22465, true }, + { 22477, true }, + { 22485, true }, + { 22503, true }, + { 22524, true }, + { 22545, true }, + { 22566, true }, + { 22580, true }, + { 22596, true }, + { 22609, false }, + { 22620, true }, + { 22632, true }, { 22644, true }, - { 22654, true }, - { 22663, true }, - { 22673, true }, - { 22688, true }, - { 22699, true }, - { 22724, true }, - { 22739, true }, - { 22752, true }, - { 22771, true }, - { 22783, true }, - { 22799, true }, - { 22811, true }, - { 22827, true }, - { 22846, true }, - { 22865, true }, - { 22891, true }, - { 22903, true }, - { 22916, true }, - { 22931, true }, - { 22951, true }, - { 22962, true }, - { 22973, true }, + { 22656, true }, + { 22668, true }, + { 22681, true }, + { 22691, true }, + { 22700, true }, + { 22710, true }, + { 22725, true }, + { 22736, true }, + { 22761, true }, + { 22776, true }, + { 22789, true }, + { 22808, true }, + { 22820, true }, + { 22836, true }, + { 22848, true }, + { 22864, true }, + { 22883, true }, + { 22902, true }, + { 22928, true }, + { 22940, true }, + { 22953, true }, + { 22968, true }, { 22988, true }, - { 23006, true }, - { 23036, true }, - { 23059, true }, - { 23072, false }, - { 23080, true }, - { 23097, true }, - { 23107, true }, + { 22999, true }, + { 23010, true }, + { 23025, true }, + { 23043, true }, + { 23073, true }, + { 23096, true }, + { 23109, false }, { 23117, true }, - { 23125, true }, - { 23139, true }, - { 23155, true }, - { 23175, true }, - { 23196, true }, - { 23207, true }, - { 23224, true }, + { 23134, true }, + { 23144, true }, + { 23154, true }, + { 23162, true }, + { 23176, true }, + { 23192, true }, + { 23212, true }, { 23233, true }, - { 23262, true }, - { 23278, true }, - { 23304, true }, - { 23322, true }, - { 23343, true }, - { 23355, true }, - { 23366, true }, - { 23388, true }, - { 23401, true }, - { 23413, true }, - { 23431, true }, - { 23449, true }, - { 23470, true }, - { 23495, true }, - { 23510, true }, - { 23528, true }, + { 23244, true }, + { 23261, true }, + { 23270, true }, + { 23299, true }, + { 23315, true }, + { 23341, true }, + { 23359, true }, + { 23380, true }, + { 23392, true }, + { 23403, true }, + { 23425, true }, + { 23438, true }, + { 23450, true }, + { 23468, true }, + { 23486, true }, + { 23507, true }, + { 23532, true }, { 23547, true }, - { 23572, true }, - { 23585, true }, - { 23600, true }, - { 23628, true }, - { 23651, true }, - { 23666, true }, - { 23679, true }, - { 23692, true }, - { 23705, true }, - { 23721, true }, - { 23734, true }, - { 23747, true }, - { 23760, true }, - { 23789, true }, - { 23800, true }, - { 23818, false }, - { 23834, true }, - { 23844, true }, - { 23856, true }, - { 23872, true }, - { 23889, true }, - { 23901, true }, + { 23565, true }, + { 23584, true }, + { 23609, true }, + { 23622, true }, + { 23637, true }, + { 23665, true }, + { 23688, true }, + { 23703, true }, + { 23716, true }, + { 23729, true }, + { 23742, true }, + { 23758, true }, + { 23771, true }, + { 23784, true }, + { 23797, true }, + { 23826, true }, + { 23837, true }, + { 23855, false }, + { 23871, true }, + { 23881, true }, + { 23893, true }, { 23909, true }, - { 23920, true }, - { 23931, true }, - { 23949, true }, - { 23961, true }, - { 23976, true }, - { 23985, true }, - { 24003, true }, - { 24016, true }, - { 24038, true }, - { 24047, true }, - { 24069, true }, - { 24083, true }, - { 24094, true }, - { 24102, true }, - { 24112, true }, - { 24135, true }, - { 24147, true }, - { 24158, true }, - { 24166, true }, - { 24176, true }, - { 24188, true }, - { 24201, true }, - { 24213, true }, - { 24228, true }, - { 24236, true }, - { 24246, true }, - { 24262, true }, - { 24272, true }, - { 24296, true }, - { 24305, true }, - { 24312, true }, - { 24329, true }, - { 24348, true }, + { 23926, true }, + { 23938, true }, + { 23946, true }, + { 23957, true }, + { 23968, true }, + { 23986, true }, + { 23998, true }, + { 24013, true }, + { 24022, true }, + { 24040, true }, + { 24053, true }, + { 24075, true }, + { 24084, true }, + { 24098, true }, + { 24120, true }, + { 24134, true }, + { 24145, true }, + { 24153, true }, + { 24163, true }, + { 24186, true }, + { 24198, true }, + { 24209, true }, + { 24217, true }, + { 24227, true }, + { 24239, true }, + { 24252, true }, + { 24264, true }, + { 24279, true }, + { 24287, true }, + { 24297, true }, + { 24313, true }, + { 24323, true }, + { 24347, true }, { 24356, true }, - { 24367, true }, - { 24374, true }, - { 24390, true }, - { 24402, true }, - { 24413, true }, - { 24424, true }, - { 24435, true }, - { 24447, true }, - { 24459, false }, - { 24468, true }, - { 24484, true }, - { 24497, true }, - { 24506, true }, - { 24515, true }, - { 24536, true }, - { 24545, true }, - { 24560, true }, - { 24570, true }, - { 24582, true }, - { 24600, true }, - { 24614, true }, - { 24634, false }, - { 24650, true }, - { 24662, true }, - { 24673, true }, - { 24683, true }, - { 24693, true }, - { 24703, true }, + { 24363, true }, + { 24380, true }, + { 24399, true }, + { 24407, true }, + { 24418, true }, + { 24425, true }, + { 24441, true }, + { 24453, true }, + { 24464, true }, + { 24475, true }, + { 24486, true }, + { 24498, true }, + { 24510, false }, + { 24519, true }, + { 24535, true }, + { 24548, true }, + { 24557, true }, + { 24566, true }, + { 24587, true }, + { 24596, true }, + { 24611, true }, + { 24621, true }, + { 24633, true }, + { 24651, true }, + { 24665, true }, + { 24685, false }, + { 24701, true }, { 24713, true }, - { 24726, true }, - { 24739, true }, - { 24749, true }, - { 24763, true }, - { 24773, true }, - { 24781, true }, - { 24791, true }, - { 24803, true }, - { 24815, true }, - { 24827, true }, + { 24724, true }, + { 24734, true }, + { 24744, true }, + { 24754, true }, + { 24764, true }, + { 24777, true }, + { 24790, true }, + { 24804, true }, + { 24814, true }, + { 24822, true }, + { 24832, true }, { 24844, true }, - { 24860, true }, - { 24876, true }, - { 24887, true }, - { 24898, false }, - { 24908, true }, - { 24925, true }, - { 24937, true }, - { 24946, true }, - { 24960, true }, - { 24990, true }, - { 25005, false }, - { 25014, true }, - { 25028, true }, - { 25042, true }, - { 25063, true }, - { 25075, true }, - { 25099, true }, + { 24856, true }, + { 24868, true }, + { 24885, true }, + { 24901, true }, + { 24917, true }, + { 24928, true }, + { 24939, false }, + { 24949, true }, + { 24966, true }, + { 24978, true }, + { 24987, true }, + { 25001, true }, + { 25031, true }, + { 25046, false }, + { 25055, true }, + { 25069, true }, + { 25083, true }, + { 25104, true }, { 25116, true }, - { 25133, true }, - { 25146, true }, - { 25158, true }, - { 25181, true }, - { 25192, true }, - { 25203, true }, - { 25228, true }, - { 25252, true }, - { 25268, true }, - { 25300, true }, - { 25320, true }, - { 25338, true }, - { 25356, true }, - { 25371, true }, - { 25386, true }, - { 25406, true }, + { 25140, true }, + { 25157, true }, + { 25174, true }, + { 25187, true }, + { 25199, true }, + { 25222, true }, + { 25233, true }, + { 25244, true }, + { 25269, true }, + { 25293, true }, + { 25309, true }, + { 25341, true }, + { 25361, true }, + { 25379, true }, + { 25397, true }, + { 25412, true }, { 25427, true }, - { 25451, true }, - { 25461, true }, - { 25471, true }, - { 25480, true }, - { 25489, true }, - { 25499, true }, - { 25510, true }, - { 25535, true }, - { 25564, true }, - { 25577, true }, - { 25589, true }, - { 25599, true }, - { 25616, false }, - { 25624, false }, - { 25633, true }, - { 25647, false }, - { 25664, true }, - { 25676, true }, - { 25691, true }, - { 25706, true }, - { 25713, true }, - { 25726, true }, - { 25738, true }, - { 25752, true }, - { 25760, true }, - { 25784, true }, - { 25799, true }, - { 25808, true }, - { 25821, true }, - { 25833, true }, - { 25847, true }, - { 25858, true }, - { 25867, true }, - { 25886, true }, - { 25903, true }, - { 25913, true }, - { 25923, true }, - { 25940, true }, - { 25953, true }, - { 25969, true }, - { 25979, true }, - { 25992, true }, - { 26006, true }, + { 25447, true }, + { 25468, true }, + { 25492, true }, + { 25502, true }, + { 25512, true }, + { 25521, true }, + { 25530, true }, + { 25540, true }, + { 25551, true }, + { 25576, true }, + { 25605, true }, + { 25618, true }, + { 25630, true }, + { 25640, true }, + { 25657, false }, + { 25665, false }, + { 25674, true }, + { 25688, false }, + { 25705, true }, + { 25717, true }, + { 25732, true }, + { 25747, true }, + { 25754, true }, + { 25767, true }, + { 25779, true }, + { 25793, true }, + { 25801, true }, + { 25825, true }, + { 25840, true }, + { 25849, true }, + { 25862, true }, + { 25874, true }, + { 25888, true }, + { 25899, true }, + { 25908, true }, + { 25927, true }, + { 25944, true }, + { 25954, true }, + { 25964, true }, + { 25981, true }, + { 25994, true }, + { 26010, true }, { 26020, true }, - { 26032, true }, - { 26052, true }, - { 26067, true }, - { 26083, true }, - { 26097, true }, - { 26112, true }, - { 26135, true }, - { 26148, true }, - { 26157, true }, - { 26169, true }, - { 26184, true }, - { 26196, true }, - { 26211, true }, - { 26223, true }, - { 26234, true }, - { 26245, true }, - { 26256, true }, - { 26279, true }, - { 26294, true }, - { 26309, false }, - { 26324, false }, - { 26340, true }, - { 26362, true }, - { 26380, true }, - { 26397, true }, - { 26415, true }, - { 26426, true }, - { 26439, true }, + { 26033, true }, + { 26047, true }, + { 26061, true }, + { 26073, true }, + { 26093, true }, + { 26108, true }, + { 26124, true }, + { 26138, true }, + { 26153, true }, + { 26176, true }, + { 26189, true }, + { 26198, true }, + { 26210, true }, + { 26225, true }, + { 26237, true }, + { 26252, true }, + { 26264, true }, + { 26275, true }, + { 26286, true }, + { 26297, true }, + { 26320, true }, + { 26335, true }, + { 26350, false }, + { 26365, false }, + { 26381, true }, + { 26403, true }, + { 26421, true }, + { 26438, true }, { 26456, true }, - { 26483, true }, - { 26501, true }, - { 26510, true }, - { 26526, true }, - { 26543, true }, - { 26563, true }, - { 26578, true }, - { 26593, true }, + { 26467, true }, + { 26480, true }, + { 26497, true }, + { 26524, true }, + { 26542, true }, + { 26551, true }, + { 26567, true }, + { 26584, true }, { 26604, true }, - { 26627, true }, - { 26639, true }, - { 26652, true }, - { 26665, true }, - { 26679, true }, - { 26692, true }, - { 26710, true }, - { 26728, true }, - { 26746, true }, - { 26763, true }, - { 26777, true }, + { 26619, true }, + { 26634, true }, + { 26645, true }, + { 26668, true }, + { 26680, true }, + { 26693, true }, + { 26706, true }, + { 26720, true }, + { 26733, true }, + { 26751, true }, + { 26769, true }, { 26787, true }, - { 26800, true }, - { 26816, true }, - { 26829, true }, - { 26838, true }, - { 26853, true }, + { 26804, true }, + { 26818, true }, + { 26828, true }, + { 26841, true }, + { 26857, true }, { 26870, true }, - { 26881, false }, - { 26891, true }, - { 26902, true }, - { 26916, true }, - { 26929, true }, - { 26939, true }, - { 26952, true }, - { 26966, true }, - { 26977, true }, - { 26987, true }, - { 26998, true }, - { 27021, true }, - { 27041, true }, - { 27054, true }, - { 27073, true }, - { 27101, true }, - { 27110, true }, - { 27131, true }, - { 27141, true }, - { 27158, true }, - { 27178, true }, - { 27197, true }, - { 27212, true }, - { 27225, true }, - { 27245, true }, - { 27263, true }, - { 27274, true }, - { 27287, true }, - { 27302, true }, - { 27312, true }, - { 27325, true }, - { 27336, true }, - { 27347, true }, - { 27361, true }, + { 26879, true }, + { 26894, true }, + { 26911, true }, + { 26922, false }, + { 26932, true }, + { 26943, true }, + { 26957, true }, + { 26970, true }, + { 26980, true }, + { 26993, true }, + { 27007, true }, + { 27018, true }, + { 27028, true }, + { 27039, true }, + { 27062, true }, + { 27082, true }, + { 27095, true }, + { 27114, true }, + { 27142, true }, + { 27151, true }, + { 27172, true }, + { 27182, true }, + { 27199, true }, + { 27219, true }, + { 27238, true }, + { 27253, true }, + { 27266, true }, + { 27286, true }, + { 27304, true }, + { 27315, true }, + { 27328, true }, + { 27343, true }, + { 27353, true }, + { 27366, true }, { 27377, true }, - { 27403, true }, - { 27419, true }, - { 27429, true }, - { 27451, true }, - { 27462, true }, - { 27485, true }, - { 27496, true }, - { 27513, true }, - { 27529, true }, - { 27545, true }, - { 27560, true }, - { 27576, true }, - { 27591, true }, - { 27606, true }, - { 27623, true }, - { 27635, true }, - { 27662, true }, - { 27674, false }, - { 27686, true }, + { 27388, true }, + { 27402, true }, + { 27418, true }, + { 27444, true }, + { 27460, true }, + { 27470, true }, + { 27492, true }, + { 27503, true }, + { 27526, true }, + { 27537, true }, + { 27554, true }, + { 27570, true }, + { 27586, true }, + { 27601, true }, + { 27617, true }, + { 27632, true }, + { 27647, true }, + { 27664, true }, + { 27676, true }, { 27703, true }, - { 27712, true }, - { 27721, true }, - { 27730, true }, - { 27749, true }, - { 27764, true }, - { 27773, true }, - { 27788, true }, + { 27715, false }, + { 27727, true }, + { 27744, true }, + { 27753, true }, + { 27762, true }, + { 27771, true }, + { 27790, true }, { 27805, true }, - { 27821, true }, - { 27831, true }, - { 27840, true }, - { 27851, true }, - { 27861, true }, - { 27879, true }, - { 27890, true }, + { 27814, true }, + { 27829, true }, + { 27846, true }, + { 27862, true }, + { 27872, true }, + { 27881, true }, + { 27892, true }, { 27902, true }, - { 27910, true }, - { 27928, true }, - { 27941, true }, + { 27920, true }, + { 27931, true }, + { 27943, true }, { 27951, true }, - { 27962, true }, - { 27976, true }, - { 27986, true }, - { 27996, true }, - { 28009, true }, - { 28019, true }, - { 28043, false }, - { 28054, true }, - { 28072, true }, - { 28079, true }, - { 28100, true }, - { 28116, true }, - { 28125, true }, - { 28138, true }, - { 28151, true }, - { 28168, true }, - { 28180, true }, + { 27969, true }, + { 27982, true }, + { 27992, true }, + { 28003, true }, + { 28017, true }, + { 28027, true }, + { 28037, true }, + { 28050, true }, + { 28060, true }, + { 28084, false }, + { 28095, true }, + { 28113, true }, + { 28120, true }, + { 28141, true }, + { 28157, true }, + { 28166, true }, + { 28179, true }, { 28192, true }, - { 28211, true }, - { 28225, true }, - { 28238, false }, + { 28209, true }, + { 28221, true }, + { 28233, true }, { 28252, true }, - { 28265, true }, - { 28276, true }, - { 28287, true }, - { 28299, true }, - { 28313, true }, - { 28331, true }, - { 28347, true }, - { 28359, true }, + { 28266, true }, + { 28279, false }, + { 28293, true }, + { 28306, true }, + { 28317, true }, + { 28328, true }, + { 28340, true }, + { 28354, true }, { 28372, true }, - { 28381, true }, - { 28399, true }, - { 28416, true }, - { 28437, true }, - { 28448, true }, - { 28459, true }, - { 28484, true }, - { 28497, true }, - { 28508, true }, - { 28518, true }, - { 28532, true }, - { 28545, true }, + { 28388, true }, + { 28400, true }, + { 28413, true }, + { 28422, true }, + { 28440, true }, + { 28457, true }, + { 28478, true }, + { 28489, true }, + { 28500, true }, + { 28525, true }, + { 28538, true }, + { 28549, true }, { 28559, true }, - { 28572, true }, + { 28573, true }, { 28586, true }, - { 28598, true }, - { 28615, true }, - { 28631, true }, - { 28651, true }, - { 28668, true }, - { 28684, true }, - { 28694, false }, - { 28705, true }, - { 28720, true }, - { 28738, true }, - { 28751, true }, - { 28764, true }, - { 28780, true }, - { 28794, true }, - { 28808, true }, - { 28827, true }, - { 28840, true }, - { 28855, true }, - { 28867, true }, - { 28883, true }, + { 28600, true }, + { 28613, true }, + { 28627, true }, + { 28639, true }, + { 28656, true }, + { 28672, true }, + { 28692, true }, + { 28709, true }, + { 28725, true }, + { 28735, false }, + { 28746, true }, + { 28761, true }, + { 28779, true }, + { 28792, true }, + { 28805, true }, + { 28821, true }, + { 28835, true }, + { 28849, true }, + { 28868, true }, + { 28881, true }, { 28896, true }, - { 28921, true }, - { 28932, true }, - { 28944, true }, - { 28972, true }, - { 28987, true }, - { 29003, true }, - { 29014, true }, - { 29024, true }, - { 29040, true }, - { 29053, true }, - { 29063, true }, - { 29074, true }, - { 29085, true }, - { 29096, true }, - { 29107, true }, - { 29118, true }, - { 29129, true }, - { 29140, true }, - { 29162, false }, - { 29176, true }, - { 29188, true }, - { 29197, true }, - { 29209, true }, - { 29223, true }, - { 29235, false }, - { 29254, true }, - { 29281, true }, - { 29297, true }, - { 29324, true }, - { 29345, true }, - { 29361, true }, - { 29372, true }, - { 29382, true }, - { 29400, true }, - { 29415, true }, - { 29426, false }, + { 28908, true }, + { 28924, true }, + { 28937, true }, + { 28962, true }, + { 28973, true }, + { 28985, true }, + { 29013, true }, + { 29028, true }, + { 29044, true }, + { 29055, true }, + { 29065, true }, + { 29081, true }, + { 29094, true }, + { 29104, true }, + { 29115, true }, + { 29126, true }, + { 29137, true }, + { 29148, true }, + { 29159, true }, + { 29170, true }, + { 29181, true }, + { 29203, false }, + { 29217, true }, + { 29229, true }, + { 29238, true }, + { 29250, true }, + { 29264, true }, + { 29276, false }, + { 29295, true }, + { 29322, true }, + { 29338, true }, + { 29365, true }, + { 29386, true }, + { 29402, true }, + { 29413, true }, + { 29423, true }, { 29441, true }, - { 29451, true }, - { 29464, true }, - { 29475, true }, - { 29487, true }, - { 29501, true }, - { 29515, true }, - { 29537, true }, - { 29550, true }, - { 29565, true }, - { 29580, true }, - { 29599, true }, - { 29620, true }, - { 29630, true }, - { 29644, true }, - { 29654, true }, - { 29667, true }, - { 29682, true }, - { 29703, true }, - { 29724, true }, - { 29742, true }, - { 29754, true }, - { 29772, true }, - { 29793, true }, + { 29456, true }, + { 29467, false }, + { 29482, true }, + { 29492, true }, + { 29505, true }, + { 29516, true }, + { 29528, true }, + { 29542, true }, + { 29556, true }, + { 29578, true }, + { 29591, true }, + { 29606, true }, + { 29621, true }, + { 29640, true }, + { 29661, true }, + { 29671, true }, + { 29685, true }, + { 29695, true }, + { 29708, true }, + { 29723, true }, + { 29744, true }, + { 29765, true }, + { 29783, true }, + { 29795, true }, { 29813, true }, - { 29831, true }, - { 29849, true }, - { 29863, true }, - { 29876, true }, - { 29895, false }, - { 29909, true }, - { 29919, true }, - { 29930, true }, - { 29940, true }, - { 29955, true }, - { 29970, true }, - { 29984, true }, - { 29998, true }, + { 29834, true }, + { 29854, true }, + { 29872, true }, + { 29890, true }, + { 29904, true }, + { 29917, true }, + { 29936, false }, + { 29950, true }, + { 29960, true }, + { 29971, true }, + { 29981, true }, + { 29996, true }, { 30011, true }, - { 30024, true }, - { 30038, true }, - { 30055, true }, - { 30072, true }, - { 30082, true }, - { 30095, true }, - { 30112, true }, - { 30121, true }, - { 30135, true }, - { 30155, true }, - { 30173, true }, - { 30193, true }, - { 30207, true }, - { 30223, false }, - { 30236, true }, - { 30245, true }, - { 30266, true }, - { 30276, true }, - { 30305, true }, - { 30333, true }, - { 30350, true }, - { 30358, true }, - { 30367, true }, - { 30386, true }, - { 30403, true }, - { 30412, true }, - { 30429, true }, - { 30446, true }, - { 30471, true }, - { 30484, true }, - { 30494, true }, - { 30504, true }, - { 30522, true }, - { 30541, true }, - { 30565, true }, - { 30591, true }, - { 30611, true }, - { 30626, true }, - { 30641, true }, - { 30674, true }, - { 30692, true }, - { 30720, true }, - { 30736, true }, - { 30754, true }, - { 30776, true }, - { 30793, true }, - { 30807, true }, - { 30833, true }, - { 30847, true }, - { 30865, true }, - { 30887, true }, - { 30901, true }, - { 30921, true }, - { 30934, true }, - { 30946, true }, - { 30958, true }, - { 30970, true }, - { 30986, true }, - { 31002, true }, - { 31016, true }, - { 31034, true }, - { 31049, true }, - { 31061, true }, - { 31069, true }, - { 31088, true }, - { 31106, true }, - { 31128, true }, - { 31145, true }, - { 31160, true }, - { 31181, true }, - { 31199, true }, - { 31213, true }, - { 31229, true }, - { 31248, true }, - { 31269, true }, - { 31286, true }, - { 31300, true }, - { 31314, true }, - { 31335, true }, - { 31348, true }, - { 31359, true }, - { 31369, true }, - { 31399, true }, - { 31415, true }, - { 31428, true }, - { 31447, true }, - { 31464, true }, - { 31482, true }, - { 31500, true }, - { 31509, true }, - { 31525, true }, - { 31532, true }, - { 31552, true }, - { 31571, true }, - { 31589, true }, - { 31605, true }, - { 31619, true }, - { 31631, true }, - { 31642, true }, + { 30025, true }, + { 30039, true }, + { 30052, true }, + { 30065, true }, + { 30079, true }, + { 30096, true }, + { 30113, true }, + { 30123, true }, + { 30136, true }, + { 30153, true }, + { 30162, true }, + { 30176, true }, + { 30196, true }, + { 30214, true }, + { 30234, true }, + { 30248, true }, + { 30264, false }, + { 30277, true }, + { 30286, true }, + { 30307, true }, + { 30317, true }, + { 30346, true }, + { 30374, true }, + { 30391, true }, + { 30399, true }, + { 30408, true }, + { 30427, true }, + { 30444, true }, + { 30453, true }, + { 30470, true }, + { 30487, true }, + { 30512, true }, + { 30525, true }, + { 30535, true }, + { 30545, true }, + { 30563, true }, + { 30582, true }, + { 30606, true }, + { 30632, true }, + { 30652, true }, + { 30667, true }, + { 30682, true }, + { 30715, true }, + { 30733, true }, + { 30761, true }, + { 30777, true }, + { 30795, true }, + { 30817, true }, + { 30834, true }, + { 30848, true }, + { 30874, true }, + { 30888, true }, + { 30906, true }, + { 30928, true }, + { 30942, true }, + { 30962, true }, + { 30975, true }, + { 30987, true }, + { 30999, true }, + { 31011, true }, + { 31027, true }, + { 31043, true }, + { 31057, true }, + { 31075, true }, + { 31090, true }, + { 31102, true }, + { 31110, true }, + { 31129, true }, + { 31147, true }, + { 31169, true }, + { 31186, true }, + { 31201, true }, + { 31222, true }, + { 31240, true }, + { 31254, true }, + { 31270, true }, + { 31289, true }, + { 31310, true }, + { 31327, true }, + { 31341, true }, + { 31355, true }, + { 31376, true }, + { 31389, true }, + { 31400, true }, + { 31410, true }, + { 31440, true }, + { 31456, true }, + { 31469, true }, + { 31488, true }, + { 31505, true }, + { 31523, true }, + { 31541, true }, + { 31550, true }, + { 31566, true }, + { 31573, true }, + { 31593, true }, + { 31612, true }, + { 31630, true }, + { 31646, true }, { 31660, true }, - { 31678, true }, - { 31692, true }, - { 31702, true }, - { 31712, false }, - { 31721, true }, - { 31735, true }, - { 31749, true }, - { 31766, true }, - { 31778, true }, - { 31793, true }, - { 31801, true }, - { 31813, true }, - { 31827, true }, + { 31672, true }, + { 31683, true }, + { 31701, true }, + { 31719, true }, + { 31733, true }, + { 31743, true }, + { 31753, false }, + { 31762, true }, + { 31776, true }, + { 31790, true }, + { 31807, true }, + { 31819, true }, + { 31834, true }, { 31842, true }, - { 31855, true }, - { 31869, true }, - { 31882, true }, - { 31893, true }, - { 31901, true }, - { 31924, true }, - { 31943, true }, - { 31955, true }, - { 31970, true }, - { 31986, true }, - { 31995, true }, - { 32010, true }, - { 32023, true }, - { 32038, true }, + { 31854, true }, + { 31868, true }, + { 31883, true }, + { 31896, true }, + { 31910, true }, + { 31923, true }, + { 31934, true }, + { 31942, true }, + { 31965, true }, + { 31984, true }, + { 31996, true }, + { 32011, true }, + { 32027, true }, + { 32036, true }, { 32051, true }, - { 32062, true }, - { 32072, true }, - { 32084, true }, - { 32104, true }, - { 32117, true }, - { 32136, true }, - { 32146, true }, - { 32154, true }, - { 32173, true }, - { 32183, true }, - { 32204, true }, - { 32216, true }, - { 32231, true }, - { 32246, true }, - { 32261, true }, - { 32276, true }, - { 32291, true }, - { 32304, true }, - { 32314, true }, - { 32326, true }, - { 32341, true }, - { 32357, true }, - { 32376, true }, - { 32392, true }, - { 32413, true }, - { 32422, true }, + { 32064, true }, + { 32079, true }, + { 32092, true }, + { 32103, true }, + { 32113, true }, + { 32125, true }, + { 32145, true }, + { 32158, true }, + { 32177, true }, + { 32187, true }, + { 32195, true }, + { 32214, true }, + { 32224, true }, + { 32245, true }, + { 32257, true }, + { 32272, true }, + { 32287, true }, + { 32302, true }, + { 32317, true }, + { 32332, true }, + { 32345, true }, + { 32355, true }, + { 32367, true }, + { 32382, true }, + { 32398, true }, + { 32417, true }, { 32433, true }, - { 32462, true }, - { 32472, true }, - { 32492, true }, - { 32506, true }, - { 32521, true }, - { 32532, true }, - { 32545, true }, - { 32560, true }, - { 32579, true }, - { 32594, true }, - { 32609, true }, - { 32619, true }, - { 32629, true }, - { 32648, true }, + { 32454, true }, + { 32463, true }, + { 32474, true }, + { 32503, true }, + { 32513, true }, + { 32533, true }, + { 32547, true }, + { 32562, true }, + { 32573, true }, + { 32586, true }, + { 32601, true }, + { 32620, true }, + { 32635, true }, + { 32650, true }, + { 32660, true }, { 32670, true }, - { 32685, true }, - { 32698, true }, - { 32725, true }, - { 32745, true }, - { 32759, false }, - { 32771, true }, + { 32689, true }, + { 32711, true }, + { 32726, true }, + { 32739, true }, + { 32766, true }, { 32786, true }, - { 32800, true }, - { 32821, true }, - { 32836, true }, - { 32844, true }, - { 32861, true }, - { 32883, true }, - { 32901, false }, - { 32920, true }, - { 32934, true }, - { 32954, true }, - { 32966, true }, - { 32981, true }, - { 32996, true }, - { 33013, true }, - { 33028, true }, - { 33039, true }, - { 33057, true }, - { 33067, true }, - { 33083, true }, - { 33101, true }, - { 33113, true }, - { 33125, true }, + { 32800, false }, + { 32812, true }, + { 32827, true }, + { 32841, true }, + { 32862, true }, + { 32877, true }, + { 32885, true }, + { 32902, true }, + { 32924, true }, + { 32942, false }, + { 32961, true }, + { 32975, true }, + { 32995, true }, + { 33007, true }, + { 33022, true }, + { 33037, true }, + { 33054, true }, + { 33069, true }, + { 33080, true }, + { 33098, true }, + { 33108, true }, + { 33124, true }, { 33142, true }, - { 33172, false }, - { 33185, true }, - { 33203, true }, - { 33217, true }, - { 33234, true }, - { 33252, true }, - { 33263, true }, - { 33276, true }, - { 33292, true }, + { 33154, true }, + { 33166, true }, + { 33183, true }, + { 33213, false }, + { 33226, true }, + { 33244, true }, + { 33258, true }, + { 33275, true }, + { 33293, true }, { 33304, true }, - { 33327, true }, - { 33346, true }, - { 33359, true }, - { 33371, false }, - { 33382, true }, - { 33395, true }, - { 33413, true }, - { 33437, true }, - { 33457, true }, - { 33473, true }, - { 33485, true }, - { 33506, true }, - { 33522, true }, - { 33533, true }, - { 33545, true }, - { 33562, true }, - { 33580, true }, - { 33593, true }, - { 33607, true }, - { 33617, true }, + { 33317, true }, + { 33333, true }, + { 33345, true }, + { 33368, true }, + { 33387, true }, + { 33400, true }, + { 33412, false }, + { 33423, true }, + { 33436, true }, + { 33454, true }, + { 33478, true }, + { 33498, true }, + { 33514, true }, + { 33526, true }, + { 33547, true }, + { 33563, true }, + { 33574, true }, + { 33586, true }, + { 33603, true }, + { 33621, true }, { 33634, true }, - { 33645, true }, - { 33654, true }, - { 33666, true }, - { 33676, true }, - { 33690, true }, - { 33703, true }, + { 33648, true }, + { 33658, true }, + { 33675, true }, + { 33686, true }, + { 33695, true }, + { 33707, true }, { 33717, true }, { 33731, true }, - { 33749, true }, - { 33768, true }, - { 33786, true }, - { 33804, true }, - { 33817, true }, - { 33828, true }, - { 33842, true }, - { 33854, true }, - { 33865, true }, - { 33876, true }, - { 33889, true }, - { 33901, true }, - { 33912, true }, - { 33931, true }, - { 33947, true }, - { 33962, true }, - { 33976, true }, - { 33993, true }, - { 34008, true }, - { 34033, true }, - { 34051, true }, - { 34063, true }, - { 34072, true }, - { 34087, true }, - { 34101, true }, - { 34114, true }, - { 34126, true }, - { 34136, true }, - { 34148, true }, - { 34163, true }, - { 34182, true }, - { 34197, true }, - { 34217, true }, - { 34240, true }, - { 34259, true }, - { 34273, true }, - { 34284, true }, - { 34298, true }, - { 34309, true }, - { 34320, true }, - { 34330, true }, - { 34344, true }, - { 34354, true }, - { 34367, true }, - { 34378, true }, - { 34389, true }, - { 34404, true }, - { 34417, true }, - { 34431, true }, - { 34443, true }, - { 34457, true }, - { 34469, true }, - { 34482, true }, - { 34507, false }, - { 34519, true }, - { 34536, true }, - { 34547, true }, - { 34558, true }, - { 34569, true }, + { 33744, true }, + { 33758, true }, + { 33772, true }, + { 33790, true }, + { 33809, true }, + { 33827, true }, + { 33845, true }, + { 33858, true }, + { 33869, true }, + { 33883, true }, + { 33895, true }, + { 33906, true }, + { 33917, true }, + { 33930, true }, + { 33942, true }, + { 33953, true }, + { 33972, true }, + { 33988, true }, + { 34003, true }, + { 34017, true }, + { 34034, true }, + { 34049, true }, + { 34074, true }, + { 34092, true }, + { 34104, true }, + { 34113, true }, + { 34128, true }, + { 34142, true }, + { 34155, true }, + { 34167, true }, + { 34177, true }, + { 34189, true }, + { 34204, true }, + { 34223, true }, + { 34238, true }, + { 34258, true }, + { 34281, true }, + { 34300, true }, + { 34314, true }, + { 34325, true }, + { 34339, true }, + { 34350, true }, + { 34361, true }, + { 34371, true }, + { 34385, true }, + { 34395, true }, + { 34408, true }, + { 34419, true }, + { 34430, true }, + { 34445, true }, + { 34458, true }, + { 34472, true }, + { 34484, true }, + { 34498, true }, + { 34510, true }, + { 34523, true }, + { 34548, false }, + { 34560, true }, + { 34577, true }, { 34588, true }, - { 34603, true }, - { 34619, true }, + { 34599, true }, + { 34610, true }, { 34629, true }, - { 34639, true }, - { 34653, true }, + { 34644, true }, + { 34660, true }, { 34670, true }, - { 34681, true }, - { 34693, true }, - { 34708, true }, - { 34717, true }, - { 34736, true }, - { 34753, true }, - { 34761, true }, - { 34779, false }, - { 34787, true }, - { 34800, true }, - { 34812, true }, - { 34824, true }, - { 34838, true }, - { 34851, true }, - { 34864, true }, - { 34880, true }, - { 34894, true }, - { 34911, true }, - { 34928, true }, - { 34941, true }, - { 34954, true }, - { 34967, true }, - { 34980, true }, - { 34993, true }, - { 35006, true }, - { 35019, true }, - { 35032, true }, - { 35045, true }, - { 35058, true }, - { 35071, true }, - { 35084, true }, - { 35097, true }, - { 35110, true }, - { 35127, true }, - { 35146, true }, - { 35161, true }, - { 35174, true }, - { 35185, true }, - { 35197, true }, - { 35219, true }, - { 35231, true }, - { 35254, true }, - { 35278, true }, - { 35296, true }, - { 35310, true }, - { 35330, true }, - { 35343, true }, - { 35359, true }, - { 35374, true }, - { 35395, true }, - { 35406, true }, - { 35425, true }, - { 35441, true }, - { 35454, true }, - { 35469, true }, - { 35487, true }, - { 35503, true }, - { 35519, true }, - { 35545, true }, - { 35564, true }, - { 35574, true }, - { 35588, true }, - { 35603, true }, - { 35622, true }, - { 35639, true }, + { 34680, true }, + { 34694, true }, + { 34711, true }, + { 34722, true }, + { 34734, true }, + { 34749, true }, + { 34758, true }, + { 34777, true }, + { 34794, true }, + { 34802, true }, + { 34820, false }, + { 34828, true }, + { 34841, true }, + { 34853, true }, + { 34865, true }, + { 34879, true }, + { 34892, true }, + { 34905, true }, + { 34921, true }, + { 34935, true }, + { 34952, true }, + { 34969, true }, + { 34982, true }, + { 34995, true }, + { 35008, true }, + { 35021, true }, + { 35034, true }, + { 35047, true }, + { 35060, true }, + { 35073, true }, + { 35086, true }, + { 35099, true }, + { 35112, true }, + { 35125, true }, + { 35138, true }, + { 35151, true }, + { 35168, true }, + { 35187, true }, + { 35202, true }, + { 35215, true }, + { 35226, true }, + { 35238, true }, + { 35260, true }, + { 35272, true }, + { 35295, true }, + { 35319, true }, + { 35337, true }, + { 35351, true }, + { 35371, true }, + { 35384, true }, + { 35400, true }, + { 35415, true }, + { 35436, true }, + { 35447, true }, + { 35466, true }, + { 35482, true }, + { 35497, true }, + { 35515, true }, + { 35531, true }, + { 35547, true }, + { 35573, true }, + { 35592, true }, + { 35602, true }, + { 35616, true }, + { 35631, true }, { 35650, true }, - { 35666, true }, + { 35667, true }, { 35678, true }, - { 35688, true }, - { 35704, true }, - { 35715, true }, - { 35725, true }, - { 35746, true }, - { 35760, true }, - { 35776, true }, - { 35798, true }, - { 35810, true }, - { 35821, true }, - { 35841, true }, - { 35856, true }, - { 35871, true }, - { 35890, true }, - { 35903, true }, - { 35917, true }, - { 35939, true }, - { 35958, true }, - { 35977, true }, - { 35997, true }, - { 36011, true }, + { 35694, true }, + { 35706, true }, + { 35716, true }, + { 35732, true }, + { 35743, true }, + { 35753, true }, + { 35774, true }, + { 35788, true }, + { 35804, true }, + { 35826, true }, + { 35838, true }, + { 35849, true }, + { 35869, true }, + { 35884, true }, + { 35899, true }, + { 35918, true }, + { 35931, true }, + { 35945, true }, + { 35967, true }, + { 35986, true }, + { 36005, true }, { 36025, true }, - { 36033, true }, - { 36046, true }, - { 36060, true }, - { 36071, true }, - { 36084, true }, + { 36039, true }, + { 36053, true }, + { 36061, true }, + { 36074, true }, + { 36088, true }, { 36099, true }, - { 36115, true }, - { 36130, true }, - { 36142, true }, - { 36156, true }, - { 36168, true }, - { 36180, true }, - { 36197, false }, - { 36213, false }, - { 36230, true }, - { 36242, true }, - { 36255, true }, + { 36112, true }, + { 36127, true }, + { 36143, true }, + { 36158, true }, + { 36170, true }, + { 36184, true }, + { 36196, true }, + { 36208, true }, + { 36225, false }, + { 36241, false }, + { 36258, true }, { 36270, true }, - { 36287, true }, - { 36303, true }, - { 36328, true }, - { 36341, true }, - { 36354, true }, - { 36367, true }, - { 36383, true }, - { 36397, true }, + { 36283, true }, + { 36298, true }, + { 36315, true }, + { 36331, true }, + { 36356, true }, + { 36369, true }, + { 36382, true }, + { 36395, true }, { 36411, true }, - { 36419, true }, - { 36430, true }, + { 36425, true }, { 36439, true }, - { 36448, true }, - { 36457, true }, - { 36469, true }, + { 36447, true }, + { 36458, true }, + { 36467, true }, + { 36476, true }, { 36485, true }, - { 36499, true }, - { 36515, true }, - { 36526, true }, - { 36539, true }, + { 36497, true }, + { 36513, true }, + { 36527, true }, + { 36543, true }, { 36554, true }, - { 36565, true }, - { 36579, true }, + { 36567, true }, + { 36582, true }, { 36593, true }, - { 36606, true }, - { 36618, true }, - { 36630, true }, - { 36655, true }, - { 36679, true }, - { 36692, true }, - { 36706, true }, - { 36719, true }, - { 36740, true }, - { 36760, true }, - { 36774, true }, - { 36789, true }, - { 36812, true }, - { 36821, true }, - { 36832, true }, - { 36842, true }, - { 36852, true }, - { 36869, true }, - { 36887, true }, - { 36912, true }, - { 36934, true }, - { 36947, true }, - { 36961, true }, - { 36974, true }, - { 36987, true }, - { 36998, true }, - { 37006, true }, - { 37025, true }, - { 37035, true }, - { 37048, true }, - { 37065, true }, - { 37078, true }, - { 37092, true }, - { 37101, true }, - { 37114, true }, - { 37132, true }, + { 36607, true }, + { 36621, true }, + { 36634, true }, + { 36646, true }, + { 36658, true }, + { 36683, true }, + { 36707, true }, + { 36720, true }, + { 36734, true }, + { 36747, true }, + { 36768, true }, + { 36788, true }, + { 36802, true }, + { 36817, true }, + { 36840, true }, + { 36849, true }, + { 36860, true }, + { 36870, true }, + { 36880, true }, + { 36897, true }, + { 36915, true }, + { 36940, true }, + { 36962, true }, + { 36975, true }, + { 36989, true }, + { 37002, true }, + { 37015, true }, + { 37026, true }, + { 37034, true }, + { 37053, true }, + { 37063, true }, + { 37076, true }, + { 37093, true }, + { 37106, true }, + { 37120, true }, + { 37129, true }, { 37142, true }, - { 37159, true }, - { 37171, true }, + { 37160, true }, + { 37170, true }, { 37187, true }, - { 37196, false }, - { 37207, true }, - { 37218, true }, - { 37231, true }, - { 37243, true }, - { 37253, true }, - { 37264, true }, - { 37278, true }, - { 37302, true }, - { 37317, true }, - { 37335, true }, - { 37350, true }, - { 37372, true }, - { 37390, true }, + { 37199, true }, + { 37215, true }, + { 37224, false }, + { 37235, true }, + { 37246, true }, + { 37259, true }, + { 37271, true }, + { 37281, true }, + { 37292, true }, + { 37306, true }, + { 37330, true }, + { 37345, true }, + { 37363, true }, + { 37378, true }, { 37400, true }, - { 37416, true }, - { 37427, true }, - { 37440, true }, - { 37460, true }, - { 37471, true }, - { 37490, true }, - { 37509, true }, - { 37521, true }, - { 37535, true }, - { 37543, true }, - { 37558, true }, - { 37575, true }, - { 37598, true }, - { 37610, true }, - { 37629, true }, - { 37639, true }, - { 37653, false }, - { 37663, true }, - { 37678, true }, + { 37418, true }, + { 37428, true }, + { 37444, true }, + { 37455, true }, + { 37468, true }, + { 37488, true }, + { 37499, true }, + { 37518, true }, + { 37537, true }, + { 37549, true }, + { 37563, true }, + { 37571, true }, + { 37586, true }, + { 37603, true }, + { 37626, true }, + { 37638, true }, + { 37657, true }, + { 37667, true }, + { 37681, false }, + { 37691, true }, { 37706, true }, - { 37721, true }, - { 37736, true }, - { 37751, true }, - { 37766, true }, - { 37776, true }, - { 37788, true }, - { 37804, false }, - { 37813, true }, - { 37831, true }, - { 37845, true }, + { 37734, true }, + { 37749, true }, + { 37764, true }, + { 37779, true }, + { 37794, true }, + { 37804, true }, + { 37816, true }, + { 37832, false }, + { 37841, true }, { 37859, true }, - { 37871, true }, - { 37883, true }, - { 37903, true }, - { 37920, true }, - { 37928, true }, - { 37943, true }, - { 37957, true }, + { 37873, true }, + { 37887, true }, + { 37899, true }, + { 37911, true }, + { 37931, true }, + { 37948, true }, + { 37956, true }, { 37971, true }, - { 37983, true }, - { 37992, true }, - { 38001, true }, - { 38013, true }, - { 38030, true }, - { 38044, true }, - { 38057, true }, - { 38069, true }, - { 38087, true }, - { 38098, true }, - { 38114, true }, + { 37985, true }, + { 37999, true }, + { 38011, true }, + { 38020, true }, + { 38029, true }, + { 38041, true }, + { 38058, true }, + { 38072, true }, + { 38085, true }, + { 38097, true }, + { 38115, true }, { 38126, true }, - { 38143, true }, - { 38161, true }, - { 38179, true }, - { 38191, true }, - { 38203, true }, - { 38217, true }, - { 38229, true }, - { 38243, true }, - { 38251, true }, - { 38268, true }, - { 38277, true }, - { 38298, true }, - { 38317, true }, - { 38343, true }, - { 38357, true }, - { 38367, true }, - { 38389, true }, - { 38399, true }, - { 38411, true }, - { 38428, true }, - { 38445, true }, - { 38467, false }, - { 38481, true }, - { 38497, true }, - { 38514, true }, - { 38526, true }, - { 38544, false }, - { 38566, false }, - { 38591, false }, - { 38615, true }, + { 38142, true }, + { 38154, true }, + { 38171, true }, + { 38189, true }, + { 38207, true }, + { 38219, true }, + { 38231, true }, + { 38245, true }, + { 38257, true }, + { 38271, true }, + { 38279, true }, + { 38296, true }, + { 38305, true }, + { 38326, true }, + { 38345, true }, + { 38371, true }, + { 38385, true }, + { 38395, true }, + { 38417, true }, + { 38427, true }, + { 38439, true }, + { 38456, true }, + { 38473, true }, + { 38495, false }, + { 38509, true }, + { 38525, true }, + { 38542, true }, + { 38554, true }, + { 38572, false }, + { 38594, false }, + { 38619, false }, { 38643, true }, - { 38655, true }, - { 38665, true }, - { 38678, true }, - { 38688, true }, - { 38698, true }, - { 38708, true }, - { 38718, true }, - { 38728, true }, - { 38738, true }, - { 38748, true }, - { 38762, true }, - { 38779, true }, - { 38797, true }, - { 38811, true }, - { 38829, true }, - { 38841, true }, - { 38852, true }, - { 38864, true }, - { 38875, true }, - { 38889, true }, - { 38904, true }, - { 38912, true }, - { 38926, true }, - { 38933, false }, - { 38953, true }, - { 38964, true }, - { 38985, true }, - { 39004, true }, - { 39019, true }, - { 39031, true }, - { 39046, true }, - { 39071, true }, - { 39084, true }, + { 38671, true }, + { 38683, true }, + { 38693, true }, + { 38706, true }, + { 38716, true }, + { 38726, true }, + { 38736, true }, + { 38746, true }, + { 38756, true }, + { 38766, true }, + { 38776, true }, + { 38790, true }, + { 38807, true }, + { 38825, true }, + { 38839, true }, + { 38857, true }, + { 38869, true }, + { 38880, true }, + { 38892, true }, + { 38903, true }, + { 38917, true }, + { 38932, true }, + { 38940, true }, + { 38954, true }, + { 38961, false }, + { 38981, true }, + { 38992, true }, + { 39013, true }, + { 39032, true }, + { 39047, true }, + { 39059, true }, + { 39074, true }, { 39099, true }, - { 39117, true }, - { 39128, true }, - { 39143, true }, - { 39157, true }, - { 39169, true }, - { 39182, true }, - { 39196, true }, - { 39211, true }, - { 39228, false }, - { 39241, true }, - { 39258, true }, - { 39280, true }, - { 39296, true }, - { 39309, true }, - { 39321, true }, + { 39112, true }, + { 39127, true }, + { 39145, true }, + { 39156, true }, + { 39171, true }, + { 39185, true }, + { 39197, true }, + { 39210, true }, + { 39224, true }, + { 39239, true }, + { 39256, false }, + { 39269, true }, + { 39286, true }, + { 39308, true }, + { 39324, true }, { 39337, true }, - { 39352, true }, - { 39362, true }, - { 39377, true }, - { 39402, true }, - { 39421, true }, - { 39435, true }, - { 39451, true }, - { 39470, true }, - { 39484, true }, - { 39501, true }, - { 39520, true }, - { 39530, true }, - { 39540, true }, - { 39560, true }, - { 39572, true }, + { 39349, true }, + { 39365, true }, + { 39380, true }, + { 39390, true }, + { 39405, true }, + { 39430, true }, + { 39449, true }, + { 39463, true }, + { 39479, true }, + { 39498, true }, + { 39512, true }, + { 39529, true }, + { 39548, true }, + { 39558, true }, + { 39568, true }, { 39588, true }, - { 39606, true }, - { 39626, true }, - { 39654, false }, - { 39666, true }, - { 39679, true }, - { 39693, true }, - { 39710, true }, - { 39727, true }, - { 39736, true }, - { 39746, true }, - { 39763, true }, - { 39772, true }, - { 39779, true }, - { 39795, true }, - { 39805, true }, - { 39820, true }, - { 39835, true }, - { 39846, false }, - { 39862, true }, - { 39879, true }, + { 39600, true }, + { 39616, true }, + { 39634, true }, + { 39654, true }, + { 39682, false }, + { 39694, true }, + { 39707, true }, + { 39721, true }, + { 39738, true }, + { 39755, true }, + { 39764, true }, + { 39774, true }, + { 39791, true }, + { 39800, true }, + { 39807, true }, + { 39823, true }, + { 39833, true }, + { 39848, true }, + { 39863, true }, + { 39874, false }, { 39890, true }, - { 39904, true }, - { 39915, true }, - { 39925, true }, - { 39935, true }, - { 39955, true }, - { 39966, true }, - { 39981, true }, - { 40000, true }, - { 40017, true }, - { 40035, true }, - { 40050, true }, + { 39907, true }, + { 39918, true }, + { 39932, true }, + { 39943, true }, + { 39953, true }, + { 39963, true }, + { 39983, true }, + { 39994, true }, + { 40009, true }, + { 40028, true }, + { 40045, true }, { 40063, true }, { 40078, true }, - { 40089, true }, - { 40105, true }, - { 40131, true }, - { 40148, true }, - { 40165, true }, - { 40183, true }, - { 40196, true }, - { 40217, true }, - { 40225, true }, - { 40248, true }, - { 40262, true }, - { 40272, true }, - { 40297, true }, - { 40314, false }, - { 40335, false }, - { 40354, false }, - { 40372, true }, - { 40388, true }, - { 40412, true }, + { 40091, true }, + { 40106, true }, + { 40117, true }, + { 40133, true }, + { 40159, true }, + { 40176, true }, + { 40193, true }, + { 40211, true }, + { 40224, true }, + { 40245, true }, + { 40253, true }, + { 40276, true }, + { 40290, true }, + { 40300, true }, + { 40325, true }, + { 40342, false }, + { 40363, false }, + { 40382, false }, + { 40400, true }, + { 40416, true }, { 40440, true }, - { 40451, true }, - { 40464, true }, - { 40489, true }, - { 40504, true }, - { 40520, true }, - { 40544, true }, - { 40563, true }, - { 40579, true }, - { 40602, true }, - { 40620, true }, - { 40644, true }, - { 40658, true }, - { 40669, true }, - { 40691, true }, - { 40698, true }, - { 40716, true }, - { 40731, true }, - { 40746, true }, + { 40468, true }, + { 40479, true }, + { 40492, true }, + { 40517, true }, + { 40532, true }, + { 40548, true }, + { 40572, true }, + { 40591, true }, + { 40607, true }, + { 40630, true }, + { 40648, true }, + { 40672, true }, + { 40686, true }, + { 40697, true }, + { 40719, true }, + { 40726, true }, + { 40744, true }, { 40759, true }, - { 40772, true }, - { 40785, true }, - { 40807, true }, - { 40822, true }, - { 40839, true }, - { 40858, true }, - { 40885, true }, - { 40897, true }, - { 40912, true }, - { 40926, true }, - { 40945, true }, - { 40963, true }, - { 40971, true }, - { 40979, true }, - { 40988, true }, - { 41000, true }, - { 41013, true }, - { 41025, true }, - { 41039, true }, - { 41057, true }, - { 41075, true }, - { 41090, true }, - { 41105, true }, - { 41114, true }, - { 41130, true }, - { 41147, true }, - { 41162, true }, + { 40774, true }, + { 40787, true }, + { 40800, true }, + { 40813, true }, + { 40835, true }, + { 40850, true }, + { 40867, true }, + { 40886, true }, + { 40913, true }, + { 40925, true }, + { 40940, true }, + { 40954, true }, + { 40973, true }, + { 40991, true }, + { 40999, true }, + { 41007, true }, + { 41016, true }, + { 41028, true }, + { 41041, true }, + { 41053, true }, + { 41067, true }, + { 41085, true }, + { 41103, true }, + { 41118, true }, + { 41133, true }, + { 41142, true }, + { 41158, true }, { 41175, true }, - { 41187, true }, - { 41200, true }, - { 41210, true }, - { 41230, true }, - { 41243, false }, - { 41257, true }, - { 41273, true }, - { 41294, true }, - { 41307, true }, - { 41320, true }, - { 41332, true }, - { 41342, true }, - { 41358, false }, - { 41365, true }, - { 41375, true }, - { 41389, true }, - { 41404, true }, - { 41414, true }, - { 41422, true }, - { 41440, true }, - { 41453, true }, - { 41461, true }, - { 41471, true }, + { 41190, true }, + { 41203, true }, + { 41215, true }, + { 41228, true }, + { 41238, true }, + { 41258, true }, + { 41271, false }, + { 41285, true }, + { 41301, true }, + { 41322, true }, + { 41335, true }, + { 41348, true }, + { 41360, true }, + { 41370, true }, + { 41386, false }, + { 41393, true }, + { 41403, true }, + { 41417, true }, + { 41432, true }, + { 41442, true }, + { 41450, true }, + { 41468, true }, { 41481, true }, + { 41489, true }, { 41499, true }, - { 41517, true }, - { 41530, true }, - { 41543, true }, - { 41560, true }, - { 41574, true }, - { 41583, true }, - { 41598, true }, - { 41613, true }, - { 41642, true }, - { 41659, true }, - { 41677, true }, + { 41509, true }, + { 41527, true }, + { 41545, true }, + { 41558, true }, + { 41571, true }, + { 41588, true }, + { 41602, true }, + { 41611, true }, + { 41626, true }, + { 41641, true }, + { 41670, true }, { 41687, true }, - { 41701, true }, - { 41713, true }, - { 41724, true }, - { 41735, true }, - { 41762, true }, - { 41782, true }, - { 41796, true }, - { 41818, true }, - { 41843, true }, - { 41856, true }, - { 41873, true }, - { 41891, true }, - { 41906, true }, - { 41921, true }, - { 41932, true }, - { 41942, true }, - { 41963, true }, - { 41973, true }, - { 41992, true }, - { 42004, true }, - { 42019, true }, - { 42048, true }, - { 42066, true }, - { 42084, true }, - { 42102, true }, - { 42120, true }, - { 42138, true }, - { 42156, true }, - { 42185, true }, - { 42206, true }, - { 42220, true }, + { 41705, true }, + { 41715, true }, + { 41729, true }, + { 41741, true }, + { 41752, true }, + { 41763, true }, + { 41790, true }, + { 41810, true }, + { 41824, true }, + { 41846, true }, + { 41871, true }, + { 41884, true }, + { 41901, true }, + { 41919, true }, + { 41934, true }, + { 41949, true }, + { 41960, true }, + { 41970, true }, + { 41991, true }, + { 42001, true }, + { 42020, true }, + { 42032, true }, + { 42047, true }, + { 42076, true }, + { 42094, true }, + { 42112, true }, + { 42130, true }, + { 42148, true }, + { 42166, true }, + { 42184, true }, + { 42213, true }, { 42234, true }, - { 42242, true }, - { 42252, true }, - { 42265, true }, - { 42277, true }, + { 42248, true }, + { 42262, true }, + { 42270, true }, + { 42280, true }, { 42293, true }, - { 42307, true }, - { 42329, true }, - { 42348, true }, - { 42364, true }, - { 42377, true }, - { 42396, true }, - { 42416, true }, - { 42431, true }, - { 42446, true }, - { 42464, true }, - { 42475, false }, - { 42485, true }, - { 42507, true }, - { 42521, true }, + { 42305, true }, + { 42321, true }, + { 42335, true }, + { 42357, true }, + { 42376, true }, + { 42392, true }, + { 42405, true }, + { 42418, true }, + { 42437, true }, + { 42457, true }, + { 42472, true }, + { 42487, true }, + { 42505, true }, + { 42516, true }, + { 42534, false }, { 42544, true }, - { 42560, true }, - { 42578, true }, - { 42594, true }, - { 42608, true }, - { 42621, true }, - { 42638, true }, - { 42656, true }, - { 42667, false }, - { 42675, true }, - { 42688, true }, - { 42703, true }, - { 42723, true }, - { 42737, true }, - { 42751, true }, - { 42759, true }, - { 42776, true }, - { 42791, true }, - { 42804, true }, - { 42816, true }, - { 42833, true }, - { 42846, true }, - { 42857, true }, - { 42870, true }, - { 42883, true }, - { 42903, false }, - { 42925, true }, - { 42949, true }, - { 42976, true }, - { 42996, true }, - { 43019, true }, - { 43037, true }, - { 43052, true }, - { 43068, true }, - { 43091, true }, - { 43109, true }, - { 43123, true }, - { 43152, true }, - { 43164, true }, - { 43180, true }, - { 43191, true }, - { 43207, true }, - { 43219, true }, - { 43232, true }, - { 43245, true }, - { 43262, true }, - { 43273, true }, + { 42566, true }, + { 42580, true }, + { 42603, true }, + { 42619, true }, + { 42637, true }, + { 42653, true }, + { 42667, true }, + { 42680, true }, + { 42697, true }, + { 42715, true }, + { 42726, false }, + { 42734, true }, + { 42747, true }, + { 42762, true }, + { 42782, true }, + { 42796, true }, + { 42810, true }, + { 42818, true }, + { 42835, true }, + { 42850, true }, + { 42863, true }, + { 42875, true }, + { 42892, true }, + { 42905, true }, + { 42916, true }, + { 42929, true }, + { 42942, true }, + { 42962, false }, + { 42984, true }, + { 43008, true }, + { 43035, true }, + { 43055, true }, + { 43078, true }, + { 43096, true }, + { 43111, true }, + { 43127, true }, + { 43150, true }, + { 43168, true }, + { 43182, true }, + { 43211, true }, + { 43223, true }, + { 43239, true }, + { 43250, true }, + { 43266, true }, + { 43278, true }, { 43291, true }, { 43304, true }, - { 43313, true }, - { 43330, true }, - { 43339, true }, - { 43356, true }, - { 43365, true }, - { 43373, true }, - { 43381, true }, - { 43390, true }, - { 43399, true }, - { 43408, true }, - { 43418, true }, - { 43442, true }, - { 43452, true }, - { 43462, true }, - { 43471, true }, - { 43484, true }, - { 43494, true }, - { 43503, true }, - { 43512, true }, - { 43523, true }, - { 43537, true }, - { 43546, true }, - { 43560, true }, - { 43570, true }, - { 43583, true }, - { 43598, true }, - { 43611, true }, - { 43621, true }, - { 43634, true }, - { 43644, true }, - { 43659, true }, - { 43674, true }, - { 43688, true }, - { 43701, true }, - { 43719, true }, - { 43734, true }, - { 43753, true }, - { 43769, true }, - { 43783, true }, - { 43799, true }, - { 43814, true }, - { 43825, true }, - { 43839, true }, - { 43849, true }, - { 43860, true }, - { 43876, true }, - { 43886, true }, + { 43321, true }, + { 43332, true }, + { 43350, true }, + { 43363, true }, + { 43372, true }, + { 43389, true }, + { 43398, true }, + { 43415, true }, + { 43424, true }, + { 43432, true }, + { 43440, true }, + { 43449, true }, + { 43458, true }, + { 43467, true }, + { 43477, true }, + { 43501, true }, + { 43511, true }, + { 43521, true }, + { 43530, true }, + { 43543, true }, + { 43553, true }, + { 43562, true }, + { 43571, true }, + { 43582, true }, + { 43596, true }, + { 43605, true }, + { 43619, true }, + { 43629, true }, + { 43642, true }, + { 43657, true }, + { 43670, true }, + { 43680, true }, + { 43693, true }, + { 43703, true }, + { 43718, true }, + { 43733, true }, + { 43747, true }, + { 43760, true }, + { 43778, true }, + { 43793, true }, + { 43812, true }, + { 43828, true }, + { 43842, true }, + { 43858, true }, + { 43873, true }, + { 43884, true }, { 43898, true }, - { 43914, true }, - { 43928, true }, - { 43933, true }, - { 43941, true }, - { 43949, true }, - { 43956, true }, - { 43962, true }, - { 43972, true }, - { 43981, true }, - { 43991, true }, - { 44020, true }, - { 44035, false }, - { 44055, true }, - { 44065, true }, - { 44078, true }, - { 44096, true }, - { 44116, true }, - { 44129, true }, - { 44145, true }, - { 44157, true }, - { 44169, true }, - { 44182, true }, - { 44193, true }, - { 44203, true }, - { 44214, true }, - { 44226, true }, - { 44240, true }, - { 44258, false }, - { 44274, true }, - { 44293, true }, - { 44308, true }, - { 44323, true }, - { 44343, true }, - { 44353, true }, - { 44373, true }, - { 44381, true }, - { 44392, true }, - { 44404, true }, - { 44413, true }, - { 44427, true }, - { 44441, true }, - { 44457, true }, - { 44468, true }, - { 44487, true }, - { 44495, true }, - { 44522, true }, - { 44541, true }, - { 44555, true }, - { 44572, false }, - { 44588, true }, - { 44605, true }, - { 44616, true }, - { 44628, false }, - { 44643, true }, - { 44655, true }, - { 44674, true }, - { 44682, true }, - { 44694, true }, - { 44706, true }, - { 44717, true }, - { 44731, true }, - { 44744, true }, - { 44756, true }, - { 44768, true }, - { 44781, true }, - { 44791, true }, - { 44810, false }, - { 44829, true }, - { 44847, true }, - { 44858, true }, - { 44870, true }, - { 44887, true }, - { 44910, true }, - { 44921, true }, - { 44933, true }, - { 44953, true }, - { 44964, true }, + { 43908, true }, + { 43919, true }, + { 43935, true }, + { 43945, true }, + { 43957, true }, + { 43973, true }, + { 43987, true }, + { 43992, true }, + { 44000, true }, + { 44008, true }, + { 44015, true }, + { 44021, true }, + { 44031, true }, + { 44040, true }, + { 44050, true }, + { 44079, true }, + { 44094, false }, + { 44114, true }, + { 44124, true }, + { 44137, true }, + { 44155, true }, + { 44175, true }, + { 44188, true }, + { 44204, true }, + { 44216, true }, + { 44228, true }, + { 44241, true }, + { 44252, true }, + { 44262, true }, + { 44273, true }, + { 44285, true }, + { 44299, true }, + { 44317, false }, + { 44333, true }, + { 44352, true }, + { 44367, true }, + { 44382, true }, + { 44402, true }, + { 44412, true }, + { 44432, true }, + { 44440, true }, + { 44451, true }, + { 44463, true }, + { 44472, true }, + { 44486, true }, + { 44500, true }, + { 44516, true }, + { 44527, true }, + { 44546, true }, + { 44554, true }, + { 44581, true }, + { 44600, true }, + { 44614, true }, + { 44631, false }, + { 44647, true }, + { 44664, true }, + { 44675, true }, + { 44687, false }, + { 44702, true }, + { 44714, true }, + { 44733, true }, + { 44741, true }, + { 44753, true }, + { 44765, true }, + { 44776, true }, + { 44790, true }, + { 44803, true }, + { 44815, true }, + { 44827, true }, + { 44840, true }, + { 44850, true }, + { 44869, false }, + { 44888, true }, + { 44906, true }, + { 44917, true }, + { 44929, true }, + { 44946, true }, + { 44969, true }, { 44980, true }, - { 44996, false }, - { 45019, true }, + { 44992, true }, + { 45012, true }, + { 45023, true }, { 45039, true }, - { 45054, true }, + { 45055, false }, { 45078, true }, - { 45092, true }, - { 45107, true }, - { 45130, true }, - { 45158, true }, - { 45177, true }, - { 45195, true }, - { 45212, true }, - { 45233, true }, - { 45244, true }, - { 45270, true }, - { 45289, true }, - { 45304, true }, - { 45320, true }, - { 45339, true }, - { 45355, true }, - { 45369, true }, - { 45390, true }, - { 45406, false }, - { 45431, true }, - { 45456, true }, - { 45474, true }, - { 45493, true }, - { 45519, false }, + { 45098, true }, + { 45113, true }, + { 45137, true }, + { 45151, true }, + { 45166, true }, + { 45189, true }, + { 45217, true }, + { 45236, true }, + { 45254, true }, + { 45271, true }, + { 45292, true }, + { 45303, true }, + { 45329, true }, + { 45348, true }, + { 45363, true }, + { 45379, true }, + { 45398, true }, + { 45414, true }, + { 45428, true }, + { 45449, true }, + { 45465, false }, + { 45490, true }, + { 45515, true }, { 45533, true }, - { 45551, true }, - { 45565, true }, - { 45574, true }, - { 45586, true }, - { 45601, true }, - { 45614, true }, - { 45627, true }, - { 45639, true }, - { 45659, true }, - { 45674, true }, - { 45697, true }, - { 45710, true }, - { 45722, true }, - { 45734, true }, - { 45749, true }, - { 45762, true }, - { 45776, true }, - { 45786, true }, - { 45799, true }, - { 45807, true }, - { 45814, true }, - { 45839, true }, - { 45865, true }, - { 45877, true }, + { 45552, true }, + { 45578, false }, + { 45592, true }, + { 45610, true }, + { 45624, true }, + { 45633, true }, + { 45645, true }, + { 45660, true }, + { 45673, true }, + { 45686, true }, + { 45698, true }, + { 45718, true }, + { 45733, true }, + { 45756, true }, + { 45769, true }, + { 45781, true }, + { 45793, true }, + { 45808, true }, + { 45821, true }, + { 45835, true }, + { 45845, true }, + { 45858, true }, + { 45866, true }, + { 45873, true }, { 45898, true }, - { 45910, true }, - { 45925, true }, - { 45941, true }, - { 45958, true }, + { 45924, true }, + { 45936, true }, + { 45957, true }, + { 45969, true }, { 45984, true }, - { 45996, true }, - { 46018, true }, - { 46038, true }, - { 46050, true }, - { 46060, true }, - { 46073, true }, - { 46094, true }, - { 46102, true }, - { 46117, true }, - { 46131, true }, - { 46145, false }, - { 46159, true }, - { 46175, true }, - { 46199, true }, - { 46219, true }, - { 46230, true }, - { 46247, true }, - { 46260, true }, - { 46269, true }, + { 46000, true }, + { 46017, true }, + { 46043, true }, + { 46055, true }, + { 46077, true }, + { 46097, true }, + { 46109, true }, + { 46119, true }, + { 46132, true }, + { 46153, true }, + { 46161, true }, + { 46176, true }, + { 46190, true }, + { 46204, false }, + { 46218, true }, + { 46234, true }, + { 46258, true }, { 46278, true }, - { 46293, true }, - { 46315, true }, - { 46338, true }, - { 46362, true }, - { 46385, true }, - { 46409, true }, - { 46428, true }, - { 46441, true }, - { 46459, true }, - { 46490, false }, - { 46505, true }, - { 46517, true }, - { 46526, true }, - { 46539, true }, - { 46553, true }, - { 46567, true }, - { 46581, true }, - { 46595, true }, - { 46615, true }, - { 46630, true }, - { 46646, true }, - { 46657, true }, - { 46667, true }, - { 46677, true }, - { 46687, true }, - { 46697, true }, - { 46720, true }, + { 46289, true }, + { 46306, true }, + { 46319, true }, + { 46328, true }, + { 46337, true }, + { 46352, true }, + { 46374, true }, + { 46397, true }, + { 46421, true }, + { 46444, true }, + { 46468, true }, + { 46487, true }, + { 46500, true }, + { 46518, true }, + { 46549, false }, + { 46564, true }, + { 46576, true }, + { 46585, true }, + { 46598, true }, + { 46612, true }, + { 46626, true }, + { 46640, true }, + { 46654, true }, + { 46674, true }, + { 46689, true }, + { 46705, true }, + { 46716, true }, + { 46726, true }, { 46736, true }, - { 46747, true }, - { 46761, true }, - { 46771, true }, - { 46780, false }, - { 46793, true }, + { 46746, true }, + { 46756, true }, + { 46779, true }, + { 46795, true }, { 46806, true }, - { 46823, true }, - { 46842, true }, - { 46856, true }, - { 46870, true }, + { 46820, true }, + { 46830, true }, + { 46839, false }, + { 46852, true }, + { 46865, true }, { 46882, true }, { 46901, true }, { 46915, true }, - { 46932, true }, - { 46945, true }, - { 46959, true }, - { 46988, true }, - { 47005, true }, - { 47025, true }, - { 47041, true }, - { 47063, true }, - { 47086, true }, - { 47099, true }, - { 47120, true }, - { 47131, true }, - { 47142, true }, - { 47154, true }, - { 47166, true }, - { 47177, true }, - { 47195, true }, - { 47209, true }, - { 47220, true }, + { 46929, true }, + { 46941, true }, + { 46960, true }, + { 46974, true }, + { 46991, true }, + { 47004, true }, + { 47018, true }, + { 47047, true }, + { 47064, true }, + { 47084, true }, + { 47100, true }, + { 47122, true }, + { 47145, true }, + { 47158, true }, + { 47179, true }, + { 47190, true }, + { 47201, true }, + { 47213, true }, + { 47225, true }, { 47236, true }, - { 47253, true }, - { 47281, true }, - { 47297, true }, - { 47306, true }, - { 47319, true }, - { 47334, true }, - { 47348, true }, - { 47369, true }, - { 47386, true }, - { 47402, true }, - { 47415, true }, + { 47254, true }, + { 47268, true }, + { 47279, true }, + { 47295, true }, + { 47312, true }, + { 47340, true }, + { 47356, true }, + { 47365, true }, + { 47378, true }, + { 47393, true }, + { 47407, true }, { 47428, true }, - { 47440, true }, - { 47457, true }, - { 47470, true }, - { 47483, true }, - { 47506, true }, - { 47518, true }, - { 47530, true }, + { 47445, true }, + { 47461, true }, + { 47474, true }, + { 47487, true }, + { 47499, true }, + { 47516, true }, + { 47529, true }, { 47542, true }, - { 47557, true }, - { 47576, true }, - { 47591, true }, - { 47607, true }, - { 47619, true }, - { 47640, true }, - { 47653, true }, - { 47671, true }, - { 47682, true }, - { 47690, true }, - { 47701, false }, - { 47724, true }, - { 47738, true }, - { 47755, true }, - { 47772, true }, - { 47785, true }, - { 47809, true }, - { 47826, true }, - { 47837, true }, - { 47848, true }, - { 47860, false }, - { 47870, true }, - { 47883, true }, - { 47899, false }, - { 47910, true }, - { 47941, true }, - { 47978, true }, - { 47993, true }, + { 47565, true }, + { 47577, true }, + { 47589, true }, + { 47601, true }, + { 47616, true }, + { 47635, true }, + { 47650, true }, + { 47666, true }, + { 47678, true }, + { 47699, true }, + { 47712, true }, + { 47730, true }, + { 47741, true }, + { 47749, true }, + { 47760, false }, + { 47783, true }, + { 47797, true }, + { 47814, true }, + { 47831, true }, + { 47844, true }, + { 47868, true }, + { 47885, true }, + { 47896, true }, + { 47907, true }, + { 47919, false }, + { 47929, true }, + { 47942, true }, + { 47958, false }, + { 47969, true }, { 48000, true }, - { 48009, true }, - { 48043, true }, + { 48037, true }, + { 48052, true }, { 48059, true }, - { 48069, true }, - { 48087, true }, - { 48105, true }, - { 48116, true }, - { 48126, true }, - { 48137, true }, - { 48148, true }, - { 48157, true }, - { 48169, true }, - { 48190, true }, + { 48068, true }, + { 48102, true }, + { 48118, true }, + { 48128, true }, + { 48146, true }, + { 48164, true }, + { 48175, true }, + { 48185, true }, + { 48196, true }, + { 48207, true }, { 48216, true }, - { 48225, true }, - { 48241, true }, - { 48249, false }, - { 48257, true }, - { 48268, true }, - { 48278, true }, - { 48288, true }, - { 48302, true }, - { 48309, true }, - { 48322, true }, - { 48339, true }, - { 48353, true }, - { 48363, true }, - { 48378, true }, - { 48392, true }, - { 48406, true }, - { 48419, true }, - { 48430, true }, - { 48438, true }, - { 48448, true }, - { 48456, true }, - { 48470, true }, - { 48483, true }, - { 48492, true }, - { 48513, true }, - { 48532, true }, - { 48546, true }, - { 48562, true }, - { 48579, true }, - { 48597, true }, - { 48604, true }, - { 48615, true }, - { 48628, true }, - { 48643, false }, - { 48653, true }, - { 48664, true }, - { 48683, false }, - { 48696, true }, - { 48714, true }, - { 48730, true }, - { 48741, true }, - { 48759, true }, - { 48767, true }, - { 48783, true }, - { 48799, true }, - { 48809, true }, - { 48831, true }, - { 48851, false }, + { 48228, true }, + { 48249, true }, + { 48275, true }, + { 48284, true }, + { 48300, true }, + { 48308, false }, + { 48316, true }, + { 48327, true }, + { 48337, true }, + { 48347, true }, + { 48361, true }, + { 48368, true }, + { 48381, true }, + { 48398, true }, + { 48412, true }, + { 48422, true }, + { 48437, true }, + { 48451, true }, + { 48465, true }, + { 48478, true }, + { 48489, true }, + { 48497, true }, + { 48507, true }, + { 48515, true }, + { 48529, true }, + { 48542, true }, + { 48551, true }, + { 48572, true }, + { 48591, true }, + { 48605, true }, + { 48621, true }, + { 48638, true }, + { 48656, true }, + { 48663, true }, + { 48674, true }, + { 48687, true }, + { 48702, false }, + { 48712, true }, + { 48723, true }, + { 48742, false }, + { 48755, true }, + { 48773, true }, + { 48789, true }, + { 48800, true }, + { 48818, true }, + { 48826, true }, + { 48842, true }, + { 48858, true }, { 48868, true }, - { 48884, true }, - { 48896, true }, - { 48908, true }, - { 48922, true }, - { 48941, true }, - { 48958, true }, - { 48973, true }, - { 48992, true }, - { 49007, true }, - { 49022, true }, - { 49043, true }, - { 49061, true }, - { 49078, true }, - { 49097, true }, - { 49109, true }, - { 49122, true }, - { 49135, true }, - { 49145, true }, - { 49159, true }, - { 49173, true }, - { 49184, true }, - { 49197, true }, - { 49216, true }, - { 49234, true }, - { 49245, true }, - { 49259, true }, - { 49276, true }, - { 49291, true }, - { 49305, true }, - { 49319, true }, - { 49332, true }, - { 49343, true }, - { 49366, true }, - { 49376, true }, - { 49393, true }, - { 49409, true }, + { 48890, true }, + { 48910, false }, + { 48927, true }, + { 48943, true }, + { 48955, true }, + { 48967, true }, + { 48981, true }, + { 49000, true }, + { 49017, true }, + { 49032, true }, + { 49051, true }, + { 49066, true }, + { 49081, true }, + { 49102, true }, + { 49120, true }, + { 49137, true }, + { 49156, true }, + { 49168, true }, + { 49181, true }, + { 49194, true }, + { 49204, true }, + { 49218, true }, + { 49232, true }, + { 49243, true }, + { 49256, true }, + { 49275, true }, + { 49293, true }, + { 49304, true }, + { 49318, true }, + { 49335, true }, + { 49350, true }, + { 49364, true }, + { 49378, true }, + { 49391, true }, + { 49402, true }, { 49425, true }, - { 49440, true }, - { 49450, true }, - { 49465, true }, - { 49477, true }, - { 49488, true }, - { 49500, false }, - { 49508, true }, - { 49529, true }, - { 49539, true }, + { 49435, true }, + { 49452, true }, + { 49468, true }, + { 49484, true }, + { 49499, true }, + { 49509, true }, + { 49524, true }, + { 49536, true }, { 49547, true }, - { 49558, true }, - { 49571, true }, - { 49579, true }, - { 49587, true }, - { 49601, true }, - { 49615, true }, - { 49623, true }, - { 49631, true }, - { 49648, true }, - { 49662, true }, + { 49559, false }, + { 49567, true }, + { 49588, true }, + { 49598, true }, + { 49606, true }, + { 49617, true }, + { 49630, true }, + { 49638, true }, + { 49646, true }, + { 49660, true }, + { 49674, true }, { 49682, true }, - { 49696, true }, - { 49704, true }, - { 49713, false }, - { 49733, true }, - { 49751, false }, - { 49762, true }, - { 49789, true }, - { 49800, true }, - { 49816, true }, - { 49834, true }, - { 49845, false }, - { 49863, true }, - { 49883, true }, - { 49895, true }, - { 49907, true }, - { 49917, true }, - { 49933, true }, - { 49946, true }, - { 49965, true }, - { 49980, true }, - { 49993, true }, - { 50007, true }, - { 50020, true }, - { 50036, true }, - { 50050, true }, - { 50067, true }, - { 50084, true }, - { 50102, true }, - { 50121, true }, - { 50139, true }, - { 50160, true }, - { 50170, true }, - { 50183, true }, - { 50193, true }, - { 50210, true }, - { 50223, true }, - { 50236, true }, - { 50249, true }, - { 50261, true }, - { 50275, true }, - { 50294, true }, - { 50304, true }, + { 49690, true }, + { 49707, true }, + { 49721, true }, + { 49741, true }, + { 49755, true }, + { 49763, true }, + { 49772, false }, + { 49792, true }, + { 49810, false }, + { 49821, true }, + { 49848, true }, + { 49859, true }, + { 49875, true }, + { 49893, true }, + { 49904, false }, + { 49922, true }, + { 49942, true }, + { 49954, true }, + { 49966, true }, + { 49976, true }, + { 49992, true }, + { 50005, true }, + { 50024, true }, + { 50039, true }, + { 50052, true }, + { 50066, true }, + { 50079, true }, + { 50095, true }, + { 50109, true }, + { 50126, true }, + { 50143, true }, + { 50161, true }, + { 50180, true }, + { 50198, true }, + { 50219, true }, + { 50229, true }, + { 50242, true }, + { 50252, true }, + { 50269, true }, + { 50282, true }, + { 50295, true }, + { 50308, true }, { 50320, true }, - { 50340, true }, - { 50359, true }, - { 50376, true }, - { 50396, true }, - { 50424, true }, - { 50438, true }, - { 50458, true }, - { 50476, true }, + { 50334, true }, + { 50353, true }, + { 50363, true }, + { 50379, true }, + { 50399, true }, + { 50418, true }, + { 50435, true }, + { 50455, true }, + { 50483, true }, { 50497, true }, { 50517, true }, - { 50552, true }, - { 50566, true }, - { 50575, true }, - { 50585, true }, - { 50615, true }, - { 50630, true }, - { 50641, true }, - { 50653, true }, - { 50668, true }, - { 50681, true }, - { 50697, true }, - { 50710, true }, - { 50739, true }, - { 50750, true }, - { 50764, true }, - { 50779, true }, - { 50799, true }, - { 50819, true }, - { 50845, true }, - { 50860, true }, - { 50872, true }, - { 50886, true }, - { 50900, true }, - { 50917, true }, - { 50934, true }, - { 50951, true }, - { 50960, true }, - { 50969, true }, - { 50988, true }, - { 50999, true }, - { 51015, true }, - { 51030, true }, - { 51047, false }, - { 51061, true }, - { 51071, false }, - { 51082, true }, - { 51090, true }, - { 51098, true }, - { 51121, true }, - { 51134, true }, - { 51155, true }, - { 51176, true }, - { 51197, false }, - { 51213, true }, - { 51226, true }, - { 51241, false }, - { 51262, true }, - { 51282, true }, - { 51304, true }, - { 51318, true }, - { 51330, true }, - { 51348, true }, - { 51371, true }, - { 51391, true }, + { 50535, true }, + { 50556, true }, + { 50576, true }, + { 50611, true }, + { 50625, true }, + { 50634, true }, + { 50644, true }, + { 50674, true }, + { 50689, true }, + { 50700, true }, + { 50712, true }, + { 50727, true }, + { 50740, true }, + { 50756, true }, + { 50769, true }, + { 50798, true }, + { 50809, true }, + { 50823, true }, + { 50838, true }, + { 50858, true }, + { 50878, true }, + { 50904, true }, + { 50919, true }, + { 50931, true }, + { 50945, true }, + { 50959, true }, + { 50976, true }, + { 50993, true }, + { 51010, true }, + { 51019, true }, + { 51028, true }, + { 51047, true }, + { 51058, true }, + { 51074, true }, + { 51089, true }, + { 51106, false }, + { 51120, true }, + { 51130, false }, + { 51141, true }, + { 51149, true }, + { 51157, true }, + { 51180, true }, + { 51193, true }, + { 51214, true }, + { 51235, true }, + { 51256, false }, + { 51272, true }, + { 51285, true }, + { 51300, false }, + { 51321, true }, + { 51341, true }, + { 51363, true }, + { 51377, true }, + { 51389, true }, { 51407, true }, - { 51421, true }, - { 51437, true }, - { 51455, true }, - { 51470, true }, - { 51481, true }, - { 51492, true }, - { 51505, true }, - { 51518, true }, - { 51535, true }, - { 51552, true }, - { 51567, true }, - { 51586, true }, - { 51602, true }, - { 51614, true }, - { 51624, true }, - { 51635, false }, - { 51657, true }, - { 51668, true }, - { 51676, true }, - { 51692, true }, - { 51707, true }, - { 51723, true }, - { 51740, true }, - { 51755, true }, - { 51772, true }, - { 51790, true }, - { 51802, true }, - { 51822, true }, - { 51833, true }, - { 51859, true }, - { 51883, true }, - { 51899, true }, - { 51909, true }, + { 51430, true }, + { 51450, true }, + { 51466, true }, + { 51480, true }, + { 51496, true }, + { 51514, true }, + { 51529, true }, + { 51540, true }, + { 51551, true }, + { 51564, true }, + { 51577, true }, + { 51594, true }, + { 51611, true }, + { 51626, true }, + { 51645, true }, + { 51661, true }, + { 51673, true }, + { 51683, true }, + { 51694, false }, + { 51716, true }, + { 51727, true }, + { 51735, true }, + { 51751, true }, + { 51766, true }, + { 51782, true }, + { 51799, true }, + { 51814, true }, + { 51831, true }, + { 51849, true }, + { 51861, true }, + { 51881, true }, + { 51892, true }, { 51918, true }, - { 51934, true }, - { 51949, true }, - { 51964, true }, + { 51942, true }, + { 51958, true }, + { 51968, true }, { 51977, true }, - { 51998, true }, - { 52007, true }, - { 52022, true }, - { 52035, false }, - { 52045, true }, - { 52064, true }, - { 52078, true }, - { 52098, true }, - { 52113, true }, - { 52122, true }, - { 52140, true }, - { 52162, false }, - { 52184, true }, - { 52203, true }, - { 52219, true }, - { 52234, false }, - { 52250, true }, - { 52274, false }, - { 52288, true }, - { 52302, true }, - { 52318, true }, - { 52337, true }, - { 52349, true }, - { 52358, true }, - { 52373, true }, - { 52391, true }, - { 52406, true }, - { 52419, true }, - { 52431, true }, - { 52443, true }, - { 52461, true }, - { 52481, true }, - { 52503, true }, - { 52521, true }, - { 52531, true }, - { 52542, true }, - { 52559, true }, - { 52576, true }, - { 52591, true }, - { 52608, true }, - { 52623, true }, - { 52640, true }, - { 52654, true }, - { 52668, true }, - { 52685, true }, - { 52701, true }, - { 52720, true }, - { 52737, true }, - { 52754, false }, - { 52769, true }, + { 51993, true }, + { 52008, true }, + { 52023, true }, + { 52036, true }, + { 52057, true }, + { 52066, true }, + { 52081, true }, + { 52094, false }, + { 52104, true }, + { 52123, true }, + { 52137, true }, + { 52157, true }, + { 52172, true }, + { 52181, true }, + { 52199, true }, + { 52221, false }, + { 52243, true }, + { 52262, true }, + { 52278, true }, + { 52293, false }, + { 52309, true }, + { 52333, false }, + { 52347, true }, + { 52361, true }, + { 52377, true }, + { 52396, true }, + { 52408, true }, + { 52417, true }, + { 52432, true }, + { 52450, true }, + { 52465, true }, + { 52478, true }, + { 52490, true }, + { 52502, true }, + { 52520, true }, + { 52540, true }, + { 52562, true }, + { 52580, true }, + { 52590, true }, + { 52601, true }, + { 52618, true }, + { 52635, true }, + { 52650, true }, + { 52667, true }, + { 52682, true }, + { 52699, true }, + { 52713, true }, + { 52727, true }, + { 52744, true }, + { 52760, true }, + { 52779, true }, { 52796, true }, - { 52816, true }, - { 52836, true }, - { 52858, true }, - { 52877, false }, - { 52896, true }, - { 52916, true }, - { 52937, true }, - { 52960, true }, - { 52986, true }, - { 53006, true }, - { 53024, true }, - { 53042, true }, + { 52813, false }, + { 52828, true }, + { 52855, true }, + { 52875, true }, + { 52895, true }, + { 52917, true }, + { 52936, false }, + { 52955, true }, + { 52975, true }, + { 52996, true }, + { 53019, true }, + { 53045, true }, { 53065, true }, - { 53084, true }, - { 53103, true }, - { 53125, true }, - { 53144, true }, - { 53161, true }, + { 53083, true }, + { 53101, true }, + { 53124, true }, + { 53143, true }, + { 53162, true }, { 53184, true }, - { 53204, true }, - { 53221, true }, - { 53248, true }, - { 53271, true }, - { 53294, true }, - { 53312, true }, - { 53326, true }, - { 53343, true }, - { 53359, true }, - { 53373, true }, - { 53387, true }, - { 53400, true }, - { 53437, false }, - { 53448, true }, - { 53466, true }, - { 53486, true }, - { 53509, true }, - { 53534, false }, - { 53565, true }, - { 53588, true }, - { 53602, true }, - { 53616, true }, - { 53627, true }, - { 53636, true }, + { 53203, true }, + { 53220, true }, + { 53243, true }, + { 53263, true }, + { 53280, true }, + { 53307, true }, + { 53330, true }, + { 53353, true }, + { 53371, true }, + { 53385, true }, + { 53402, true }, + { 53418, true }, + { 53432, true }, + { 53446, true }, + { 53459, true }, + { 53496, false }, + { 53507, true }, + { 53525, true }, + { 53545, true }, + { 53568, true }, + { 53593, false }, + { 53624, true }, { 53647, true }, - { 53659, true }, + { 53661, true }, { 53675, true }, - { 53687, true }, - { 53696, true }, - { 53708, true }, - { 53725, true }, - { 53737, true }, - { 53756, true }, - { 53777, true }, - { 53787, true }, - { 53801, true }, - { 53813, true }, - { 53831, false }, - { 53839, true }, - { 53850, true }, - { 53864, true }, - { 53883, true }, - { 53895, true }, - { 53912, false }, - { 53930, true }, - { 53943, true }, - { 53955, true }, - { 53968, true }, - { 53979, true }, - { 53996, true }, - { 54010, true }, - { 54026, true }, - { 54037, true }, - { 54051, true }, + { 53686, true }, + { 53695, true }, + { 53706, true }, + { 53718, true }, + { 53734, true }, + { 53746, true }, + { 53755, true }, + { 53767, true }, + { 53784, true }, + { 53796, true }, + { 53815, true }, + { 53836, true }, + { 53846, true }, + { 53860, true }, + { 53872, true }, + { 53890, false }, + { 53898, true }, + { 53909, true }, + { 53923, true }, + { 53942, true }, + { 53954, true }, + { 53971, false }, + { 53989, true }, + { 54002, true }, + { 54014, true }, + { 54027, true }, + { 54038, true }, + { 54055, true }, { 54069, true }, - { 54082, true }, - { 54100, true }, - { 54117, true }, - { 54135, true }, - { 54147, true }, - { 54155, true }, - { 54175, true }, - { 54189, true }, - { 54203, true }, - { 54215, true }, - { 54227, true }, - { 54238, true }, - { 54253, true }, - { 54265, true }, + { 54085, true }, + { 54096, true }, + { 54110, true }, + { 54128, true }, + { 54141, true }, + { 54159, true }, + { 54176, true }, + { 54194, true }, + { 54206, true }, + { 54214, true }, + { 54234, true }, + { 54248, true }, + { 54262, true }, { 54274, true }, - { 54284, true }, - { 54295, true }, - { 54309, true }, - { 54320, true }, - { 54334, true }, - { 54357, true }, - { 54365, true }, - { 54383, true }, - { 54398, true }, - { 54417, true }, - { 54436, true }, - { 54455, true }, - { 54468, true }, - { 54480, true }, - { 54496, true }, - { 54506, true }, - { 54525, true }, + { 54286, true }, + { 54297, true }, + { 54312, true }, + { 54324, true }, + { 54333, true }, + { 54343, true }, + { 54354, true }, + { 54368, true }, + { 54379, true }, + { 54393, true }, + { 54416, true }, + { 54424, true }, + { 54442, true }, + { 54457, true }, + { 54476, true }, + { 54495, true }, + { 54514, true }, + { 54527, true }, { 54539, true }, - { 54556, true }, - { 54570, true }, - { 54590, true }, - { 54603, true }, - { 54617, true }, - { 54631, true }, - { 54646, true }, - { 54654, true }, - { 54667, true }, - { 54673, true }, - { 54687, true }, - { 54700, true }, - { 54709, true }, - { 54723, true }, - { 54737, true }, - { 54750, false }, - { 54770, true }, - { 54787, true }, - { 54803, true }, - { 54814, true }, - { 54826, true }, - { 54842, true }, - { 54855, true }, - { 54875, true }, - { 54891, true }, - { 54905, true }, - { 54925, true }, - { 54939, true }, - { 54951, true }, - { 54966, true }, - { 54980, true }, - { 55001, true }, - { 55014, true }, - { 55023, true }, - { 55041, true }, - { 55051, true }, - { 55064, true }, - { 55083, true }, - { 55104, true }, - { 55120, true }, - { 55142, true }, - { 55174, true }, + { 54555, true }, + { 54565, true }, + { 54584, true }, + { 54598, true }, + { 54612, true }, + { 54629, true }, + { 54643, true }, + { 54663, true }, + { 54676, true }, + { 54690, true }, + { 54704, true }, + { 54719, true }, + { 54727, true }, + { 54740, true }, + { 54746, true }, + { 54760, true }, + { 54773, true }, + { 54782, true }, + { 54796, true }, + { 54810, true }, + { 54823, false }, + { 54843, true }, + { 54860, true }, + { 54876, true }, + { 54887, true }, + { 54899, true }, + { 54915, true }, + { 54928, true }, + { 54948, true }, + { 54964, true }, + { 54978, true }, + { 54998, true }, + { 55012, true }, + { 55024, true }, + { 55039, true }, + { 55053, true }, + { 55074, true }, + { 55087, true }, + { 55096, true }, + { 55114, true }, + { 55124, true }, + { 55137, true }, + { 55156, true }, + { 55177, true }, { 55193, true }, - { 55201, true }, - { 55219, true }, - { 55235, true }, - { 55256, true }, - { 55276, true }, - { 55289, true }, - { 55303, true }, - { 55318, true }, - { 55333, false }, - { 55353, true }, - { 55367, true }, - { 55386, true }, - { 55405, true }, - { 55420, true }, - { 55433, true }, - { 55448, true }, - { 55460, true }, - { 55473, true }, - { 55488, true }, - { 55511, true }, - { 55527, true }, - { 55542, true }, - { 55565, true }, - { 55584, true }, - { 55596, false }, - { 55615, false }, + { 55215, true }, + { 55247, true }, + { 55266, true }, + { 55274, true }, + { 55292, true }, + { 55308, true }, + { 55329, true }, + { 55349, true }, + { 55362, true }, + { 55376, true }, + { 55391, true }, + { 55406, false }, + { 55426, true }, + { 55440, true }, + { 55459, true }, + { 55478, true }, + { 55493, true }, + { 55506, true }, + { 55518, true }, + { 55531, true }, + { 55546, true }, + { 55569, true }, + { 55585, true }, + { 55600, true }, { 55623, true }, - { 55632, true }, - { 55645, true }, - { 55659, true }, - { 55668, true }, + { 55642, true }, + { 55654, false }, + { 55673, false }, { 55681, true }, - { 55693, true }, - { 55709, true }, + { 55690, true }, + { 55703, true }, + { 55717, true }, { 55726, true }, - { 55743, false }, - { 55753, true }, - { 55764, false }, - { 55776, true }, - { 55800, true }, - { 55822, true }, - { 55838, true }, - { 55851, true }, - { 55870, true }, - { 55889, true }, - { 55906, true }, - { 55923, false }, - { 55933, true }, - { 55951, true }, - { 55967, true }, - { 55986, true }, - { 56000, true }, - { 56017, true }, - { 56039, true }, - { 56051, true }, - { 56064, true }, - { 56085, true }, - { 56107, true }, - { 56124, true }, - { 56146, true }, - { 56162, true }, - { 56176, true }, - { 56191, true }, - { 56205, true }, - { 56231, true }, - { 56247, true }, - { 56272, true }, - { 56285, true }, - { 56297, true }, - { 56312, true }, - { 56327, true }, - { 56336, true }, - { 56353, true }, - { 56368, true }, - { 56377, true }, - { 56390, true }, - { 56404, true }, - { 56415, true }, + { 55739, true }, + { 55751, true }, + { 55767, true }, + { 55784, true }, + { 55801, false }, + { 55811, true }, + { 55822, false }, + { 55834, true }, + { 55858, true }, + { 55880, true }, + { 55896, true }, + { 55909, true }, + { 55928, true }, + { 55947, true }, + { 55964, true }, + { 55981, false }, + { 55991, true }, + { 56009, true }, + { 56025, true }, + { 56044, true }, + { 56058, true }, + { 56075, true }, + { 56097, true }, + { 56109, true }, + { 56122, true }, + { 56143, true }, + { 56165, true }, + { 56182, true }, + { 56204, true }, + { 56220, true }, + { 56234, true }, + { 56249, true }, + { 56263, true }, + { 56289, true }, + { 56305, true }, + { 56330, true }, + { 56343, true }, + { 56355, true }, + { 56370, true }, + { 56385, true }, + { 56394, true }, + { 56411, true }, { 56426, true }, - { 56446, true }, - { 56462, true }, - { 56477, true }, - { 56492, true }, - { 56504, true }, - { 56517, true }, - { 56532, true }, - { 56542, true }, - { 56552, true }, - { 56565, true }, - { 56574, true }, - { 56586, true }, - { 56598, true }, - { 56614, true }, - { 56625, true }, - { 56637, true }, + { 56436, true }, + { 56445, true }, + { 56458, true }, + { 56472, true }, + { 56483, true }, + { 56494, true }, + { 56514, true }, + { 56530, true }, + { 56545, true }, + { 56560, true }, + { 56572, true }, + { 56585, true }, + { 56600, true }, + { 56610, true }, + { 56620, true }, + { 56633, true }, + { 56642, true }, { 56654, true }, - { 56667, true }, - { 56687, true }, + { 56666, true }, + { 56682, true }, + { 56693, true }, { 56705, true }, - { 56717, true }, - { 56730, true }, - { 56741, true }, - { 56750, true }, - { 56758, true }, - { 56772, true }, - { 56782, true }, - { 56793, true }, - { 56812, true }, - { 56825, true }, - { 56839, false }, - { 56859, true }, - { 56868, true }, - { 56888, true }, - { 56908, true }, - { 56932, true }, - { 56956, true }, - { 56977, true }, - { 56985, true }, - { 57006, true }, - { 57016, true }, - { 57027, true }, - { 57049, true }, - { 57063, true }, - { 57083, true }, - { 57096, true }, - { 57104, true }, - { 57116, false }, - { 57126, true }, - { 57156, true }, - { 57183, false }, - { 57197, true }, - { 57213, true }, - { 57226, true }, - { 57243, true }, - { 57256, true }, - { 57273, true }, - { 57287, false }, - { 57305, true }, - { 57313, true }, - { 57329, true }, - { 57339, true }, - { 57350, false }, - { 57365, true }, - { 57378, true }, - { 57394, true }, + { 56722, true }, + { 56735, true }, + { 56755, true }, + { 56773, true }, + { 56785, true }, + { 56798, true }, + { 56809, true }, + { 56818, true }, + { 56826, true }, + { 56842, true }, + { 56856, true }, + { 56866, true }, + { 56876, true }, + { 56887, true }, + { 56906, true }, + { 56919, true }, + { 56933, false }, + { 56953, true }, + { 56962, true }, + { 56982, true }, + { 57002, true }, + { 57026, true }, + { 57050, true }, + { 57071, true }, + { 57079, true }, + { 57100, true }, + { 57110, true }, + { 57121, true }, + { 57143, true }, + { 57157, true }, + { 57177, true }, + { 57190, true }, + { 57198, true }, + { 57210, false }, + { 57220, true }, + { 57250, true }, + { 57277, false }, + { 57291, true }, + { 57307, true }, + { 57320, true }, + { 57337, true }, + { 57350, true }, + { 57367, true }, + { 57381, false }, + { 57399, true }, { 57407, true }, - { 57422, false }, - { 57437, true }, - { 57451, true }, - { 57463, true }, - { 57473, true }, - { 57485, true }, - { 57497, true }, - { 57510, true }, - { 57525, true }, - { 57538, true }, - { 57551, true }, - { 57564, true }, - { 57579, false }, - { 57602, false }, - { 57626, true }, - { 57643, true }, - { 57657, true }, - { 57670, true }, - { 57686, true }, - { 57697, true }, - { 57715, true }, - { 57735, true }, - { 57747, true }, - { 57761, true }, - { 57779, true }, - { 57789, true }, - { 57800, true }, - { 57819, true }, - { 57836, true }, - { 57858, true }, - { 57871, true }, - { 57890, true }, - { 57900, true }, - { 57912, true }, - { 57926, true }, - { 57940, true }, - { 57973, true }, + { 57423, true }, + { 57433, true }, + { 57444, false }, + { 57459, true }, + { 57472, true }, + { 57488, true }, + { 57501, true }, + { 57516, false }, + { 57531, true }, + { 57545, true }, + { 57557, true }, + { 57567, true }, + { 57579, true }, + { 57591, true }, + { 57604, true }, + { 57619, true }, + { 57632, true }, + { 57645, true }, + { 57658, true }, + { 57673, false }, + { 57696, false }, + { 57720, true }, + { 57737, true }, + { 57751, true }, + { 57764, true }, + { 57780, true }, + { 57791, true }, + { 57809, true }, + { 57829, true }, + { 57841, true }, + { 57855, true }, + { 57873, true }, + { 57883, true }, + { 57894, true }, + { 57913, true }, + { 57930, true }, + { 57952, true }, + { 57965, true }, + { 57984, true }, { 57994, true }, { 58006, true }, - { 58021, true }, - { 58035, true }, - { 58046, true }, - { 58060, true }, - { 58073, true }, - { 58087, true }, - { 58103, true }, - { 58120, true }, - { 58133, true }, - { 58146, true }, - { 58166, true }, - { 58183, true }, - { 58194, true }, - { 58213, true }, - { 58221, true }, - { 58228, true }, - { 58244, true }, - { 58257, true }, - { 58269, false }, - { 58281, true }, - { 58292, true }, - { 58314, true }, - { 58327, true }, - { 58347, true }, - { 58359, true }, - { 58371, true }, - { 58384, true }, - { 58401, true }, - { 58419, true }, - { 58433, true }, - { 58448, false }, - { 58463, true }, - { 58484, true }, - { 58497, true }, - { 58513, true }, - { 58529, true }, - { 58543, true }, - { 58556, true }, - { 58572, true }, - { 58589, true }, - { 58602, true }, - { 58626, true }, - { 58648, true }, - { 58668, true }, - { 58687, true }, - { 58702, true }, - { 58716, true }, - { 58728, true }, - { 58739, true }, - { 58755, true }, - { 58771, true }, - { 58792, true }, - { 58811, true }, - { 58829, true }, - { 58856, true }, - { 58875, true }, - { 58895, true }, - { 58909, true }, - { 58923, true }, - { 58940, true }, - { 58952, true }, + { 58020, true }, + { 58034, true }, + { 58067, true }, + { 58088, true }, + { 58100, true }, + { 58115, true }, + { 58129, true }, + { 58140, true }, + { 58154, true }, + { 58167, true }, + { 58181, true }, + { 58197, true }, + { 58214, true }, + { 58227, true }, + { 58240, true }, + { 58260, true }, + { 58277, true }, + { 58288, true }, + { 58307, true }, + { 58315, true }, + { 58322, true }, + { 58338, true }, + { 58351, true }, + { 58363, false }, + { 58375, true }, + { 58386, true }, + { 58408, true }, + { 58428, true }, + { 58440, true }, + { 58452, true }, + { 58465, true }, + { 58482, true }, + { 58496, true }, + { 58511, false }, + { 58526, true }, + { 58547, true }, + { 58560, true }, + { 58576, true }, + { 58592, true }, + { 58606, true }, + { 58619, true }, + { 58635, true }, + { 58652, true }, + { 58665, true }, + { 58689, true }, + { 58711, true }, + { 58731, true }, + { 58750, true }, + { 58765, true }, + { 58779, true }, + { 58791, true }, + { 58802, true }, + { 58818, true }, + { 58834, true }, + { 58855, true }, + { 58874, true }, + { 58892, true }, + { 58919, true }, + { 58938, true }, + { 58958, true }, { 58972, true }, - { 58985, true }, - { 58999, true }, - { 59020, true }, - { 59041, true }, + { 58986, true }, + { 59003, true }, + { 59015, true }, + { 59035, true }, { 59048, true }, - { 59060, true }, - { 59082, true }, - { 59098, true }, - { 59109, true }, - { 59125, true }, - { 59140, true }, - { 59153, true }, - { 59171, true }, - { 59191, true }, - { 59205, true }, - { 59219, true }, - { 59235, true }, - { 59250, true }, - { 59260, true }, - { 59276, true }, - { 59287, true }, - { 59297, true }, - { 59309, true }, - { 59321, true }, - { 59333, true }, - { 59342, true }, - { 59364, true }, - { 59383, true }, - { 59391, true }, - { 59406, true }, - { 59427, false }, - { 59448, true }, - { 59468, true }, - { 59478, true }, - { 59496, true }, - { 59510, true }, - { 59530, true }, - { 59550, true }, - { 59582, true }, - { 59609, true }, - { 59623, true }, - { 59633, true }, - { 59646, true }, - { 59665, true }, - { 59682, false }, - { 59706, false }, + { 59062, true }, + { 59083, true }, + { 59104, true }, + { 59111, true }, + { 59123, true }, + { 59145, true }, + { 59161, true }, + { 59172, true }, + { 59188, true }, + { 59203, true }, + { 59216, true }, + { 59234, true }, + { 59254, true }, + { 59268, true }, + { 59282, true }, + { 59298, true }, + { 59313, true }, + { 59323, true }, + { 59339, true }, + { 59350, true }, + { 59360, true }, + { 59372, true }, + { 59384, true }, + { 59396, true }, + { 59405, true }, + { 59427, true }, + { 59446, true }, + { 59454, true }, + { 59469, true }, + { 59490, false }, + { 59511, true }, + { 59531, true }, + { 59541, true }, + { 59559, true }, + { 59573, true }, + { 59593, true }, + { 59613, true }, + { 59645, true }, + { 59672, true }, + { 59686, true }, + { 59696, true }, + { 59709, true }, { 59728, true }, - { 59752, true }, - { 59768, true }, - { 59792, true }, - { 59818, true }, - { 59835, true }, - { 59847, true }, - { 59862, true }, - { 59889, true }, - { 59917, true }, - { 59943, true }, - { 59972, true }, - { 59989, true }, - { 60003, true }, - { 60025, true }, - { 60050, true }, - { 60061, true }, - { 60074, true }, - { 60089, true }, - { 60111, true }, - { 60136, true }, + { 59745, false }, + { 59769, false }, + { 59791, true }, + { 59815, true }, + { 59831, true }, + { 59855, true }, + { 59881, true }, + { 59898, true }, + { 59910, true }, + { 59925, true }, + { 59952, true }, + { 59980, true }, + { 60006, true }, + { 60035, true }, + { 60052, true }, + { 60066, true }, + { 60088, true }, + { 60113, true }, + { 60124, true }, + { 60137, true }, { 60152, true }, - { 60176, true }, - { 60200, true }, - { 60214, true }, - { 60229, true }, - { 60244, true }, - { 60258, true }, + { 60174, true }, + { 60199, true }, + { 60215, true }, + { 60239, true }, + { 60263, true }, { 60277, true }, - { 60293, true }, - { 60312, true }, - { 60329, true }, - { 60352, true }, - { 60370, true }, - { 60394, false }, - { 60416, true }, - { 60429, true }, - { 60440, true }, - { 60452, true }, - { 60474, true }, - { 60484, true }, - { 60498, true }, - { 60507, true }, - { 60520, true }, - { 60539, true }, - { 60554, true }, - { 60577, true }, - { 60590, true }, - { 60601, true }, - { 60614, true }, - { 60625, true }, - { 60644, true }, - { 60662, true }, - { 60684, true }, - { 60709, true }, - { 60732, true }, - { 60761, true }, - { 60781, true }, - { 60800, true }, - { 60818, true }, - { 60830, true }, - { 60844, true }, - { 60857, true }, - { 60870, true }, - { 60888, true }, - { 60905, true }, - { 60915, true }, - { 60928, true }, - { 60955, true }, - { 60973, true }, - { 60994, true }, - { 61009, true }, - { 61029, true }, - { 61047, true }, - { 61072, true }, - { 61092, true }, - { 61107, false }, - { 61130, true }, - { 61147, true }, - { 61169, false }, - { 61178, true }, - { 61199, true }, - { 61214, true }, - { 61231, true }, - { 61242, true }, - { 61255, false }, - { 61294, true }, - { 61304, true }, - { 61317, true }, - { 61329, true }, - { 61345, true }, - { 61359, true }, - { 61377, false }, - { 61392, true }, - { 61412, false }, - { 61428, true }, - { 61437, true }, - { 61456, true }, - { 61467, true }, - { 61479, true }, - { 61495, true }, - { 61507, true }, - { 61517, true }, - { 61540, true }, - { 61552, true }, - { 61561, true }, - { 61575, true }, - { 61590, true }, - { 61610, true }, - { 61624, true }, - { 61641, true }, - { 61657, true }, - { 61673, true }, - { 61690, true }, - { 61702, true }, - { 61716, true }, - { 61728, true }, - { 61751, true }, - { 61776, true }, - { 61796, true }, - { 61813, true }, - { 61823, true }, - { 61832, true }, - { 61849, true }, - { 61861, true }, - { 61872, true }, - { 61887, true }, - { 61897, true }, - { 61916, true }, - { 61929, true }, - { 61947, true }, - { 61959, true }, - { 61978, true }, - { 61990, true }, - { 62002, true }, - { 62026, true }, - { 62051, true }, - { 62081, true }, - { 62095, true }, - { 62108, true }, - { 62132, true }, - { 62155, true }, - { 62169, true }, - { 62182, true }, - { 62194, true }, - { 62216, true }, - { 62236, true }, - { 62261, true }, - { 62273, true }, - { 62287, true }, - { 62310, true }, + { 60292, true }, + { 60307, true }, + { 60321, true }, + { 60340, true }, + { 60356, true }, + { 60375, true }, + { 60392, true }, + { 60415, true }, + { 60433, true }, + { 60457, false }, + { 60479, true }, + { 60492, true }, + { 60503, true }, + { 60515, true }, + { 60537, true }, + { 60547, true }, + { 60561, true }, + { 60570, true }, + { 60583, true }, + { 60602, true }, + { 60617, true }, + { 60640, true }, + { 60653, true }, + { 60664, true }, + { 60677, true }, + { 60688, true }, + { 60707, true }, + { 60725, true }, + { 60754, true }, + { 60774, true }, + { 60793, true }, + { 60811, true }, + { 60823, true }, + { 60837, true }, + { 60850, true }, + { 60863, true }, + { 60881, true }, + { 60898, true }, + { 60908, true }, + { 60921, true }, + { 60948, true }, + { 60966, true }, + { 60987, true }, + { 61002, true }, + { 61022, true }, + { 61040, true }, + { 61065, true }, + { 61085, true }, + { 61100, false }, + { 61123, true }, + { 61140, true }, + { 61162, false }, + { 61171, true }, + { 61192, true }, + { 61207, true }, + { 61224, true }, + { 61235, true }, + { 61248, false }, + { 61287, true }, + { 61297, true }, + { 61310, true }, + { 61322, true }, + { 61338, true }, + { 61352, true }, + { 61370, false }, + { 61385, true }, + { 61405, false }, + { 61421, true }, + { 61430, true }, + { 61449, true }, + { 61460, true }, + { 61472, true }, + { 61488, true }, + { 61500, true }, + { 61510, true }, + { 61533, true }, + { 61545, true }, + { 61554, true }, + { 61568, true }, + { 61583, true }, + { 61603, true }, + { 61617, true }, + { 61634, true }, + { 61650, true }, + { 61666, true }, + { 61683, true }, + { 61695, true }, + { 61709, true }, + { 61721, true }, + { 61744, true }, + { 61769, true }, + { 61789, true }, + { 61806, true }, + { 61816, true }, + { 61825, true }, + { 61842, true }, + { 61854, true }, + { 61865, true }, + { 61880, true }, + { 61890, true }, + { 61909, true }, + { 61922, true }, + { 61940, true }, + { 61952, true }, + { 61971, true }, + { 61983, true }, + { 61995, true }, + { 62019, true }, + { 62044, true }, + { 62074, true }, + { 62088, true }, + { 62101, true }, + { 62125, true }, + { 62148, true }, + { 62162, true }, + { 62175, true }, + { 62187, true }, + { 62209, true }, + { 62229, true }, + { 62254, true }, + { 62266, true }, + { 62280, true }, + { 62303, true }, { 62322, true }, - { 62341, true }, - { 62352, true }, - { 62364, true }, - { 62378, true }, - { 62390, true }, - { 62401, true }, - { 62417, true }, - { 62435, true }, - { 62451, true }, - { 62469, true }, - { 62490, true }, - { 62508, true }, - { 62526, true }, - { 62542, true }, - { 62559, true }, - { 62588, true }, - { 62601, true }, - { 62614, true }, - { 62625, true }, - { 62645, true }, - { 62663, true }, - { 62681, true }, + { 62333, true }, + { 62345, true }, + { 62359, true }, + { 62371, true }, + { 62382, true }, + { 62398, true }, + { 62416, true }, + { 62432, true }, + { 62450, true }, + { 62471, true }, + { 62489, true }, + { 62507, true }, + { 62523, true }, + { 62540, true }, + { 62569, true }, + { 62582, true }, + { 62595, true }, + { 62606, true }, + { 62626, true }, + { 62644, true }, + { 62662, true }, + { 62685, true }, { 62704, true }, - { 62723, true }, - { 62740, false }, - { 62755, true }, - { 62765, true }, - { 62777, true }, - { 62789, true }, - { 62802, true }, - { 62811, true }, - { 62826, true }, - { 62834, true }, + { 62721, false }, + { 62736, true }, + { 62746, true }, + { 62758, true }, + { 62770, true }, + { 62783, true }, + { 62792, true }, + { 62807, true }, + { 62815, true }, + { 62828, true }, { 62847, true }, - { 62866, true }, - { 62881, true }, - { 62892, true }, - { 62917, true }, - { 62928, true }, - { 62941, true }, - { 62951, true }, - { 62965, true }, + { 62862, true }, + { 62873, true }, + { 62898, true }, + { 62909, true }, + { 62922, true }, + { 62932, true }, + { 62946, true }, + { 62960, true }, + { 62972, true }, { 62979, true }, { 62991, true }, - { 62998, true }, - { 63010, true }, - { 63024, false }, - { 63041, true }, - { 63052, true }, - { 63068, true }, - { 63081, true }, - { 63094, true }, + { 63005, false }, + { 63022, true }, + { 63033, true }, + { 63049, true }, + { 63062, true }, + { 63075, true }, + { 63092, true }, { 63111, true }, - { 63130, true }, - { 63147, false }, - { 63160, true }, - { 63178, true }, - { 63195, true }, - { 63221, true }, - { 63235, true }, + { 63128, false }, + { 63141, true }, + { 63159, true }, + { 63176, true }, + { 63202, true }, + { 63216, true }, + { 63233, true }, { 63252, true }, - { 63271, true }, - { 63286, true }, - { 63300, true }, - { 63311, true }, - { 63325, true }, - { 63342, true }, - { 63355, true }, - { 63368, true }, - { 63380, true }, + { 63267, true }, + { 63281, true }, + { 63292, true }, + { 63306, true }, + { 63323, true }, + { 63336, true }, + { 63349, true }, + { 63361, true }, + { 63379, true }, { 63398, true }, - { 63417, true }, + { 63414, true }, { 63433, true }, { 63452, true }, - { 63471, true }, - { 63491, true }, - { 63507, true }, - { 63523, true }, - { 63537, true }, - { 63554, true }, - { 63564, true }, - { 63579, true }, - { 63592, true }, - { 63606, true }, - { 63614, true }, - { 63629, true }, - { 63650, true }, - { 63670, true }, - { 63687, true }, - { 63708, true }, - { 63725, true }, + { 63472, true }, + { 63488, true }, + { 63504, true }, + { 63518, true }, + { 63535, true }, + { 63545, true }, + { 63560, true }, + { 63573, true }, + { 63587, true }, + { 63595, true }, + { 63610, true }, + { 63631, true }, + { 63651, true }, + { 63668, true }, + { 63689, true }, + { 63706, true }, + { 63724, true }, { 63743, true }, { 63762, true }, - { 63781, true }, - { 63801, true }, - { 63832, true }, + { 63782, true }, + { 63813, true }, + { 63828, true }, { 63847, true }, { 63866, true }, - { 63885, true }, - { 63901, true }, - { 63921, true }, - { 63933, true }, - { 63944, true }, - { 63958, true }, + { 63882, true }, + { 63902, true }, + { 63914, true }, + { 63925, true }, + { 63939, true }, + { 63949, true }, { 63968, true }, - { 63987, true }, - { 63999, true }, - { 64015, true }, - { 64036, false }, - { 64055, true }, - { 64069, true }, - { 64078, true }, - { 64093, true }, + { 63980, true }, + { 63996, true }, + { 64017, false }, + { 64036, true }, + { 64050, true }, + { 64059, true }, + { 64074, true }, + { 64091, true }, { 64110, true }, - { 64129, true }, - { 64143, true }, - { 64151, true }, - { 64160, true }, - { 64169, true }, - { 64184, true }, - { 64199, true }, - { 64216, true }, - { 64230, true }, + { 64124, true }, + { 64132, true }, + { 64141, true }, + { 64150, true }, + { 64165, true }, + { 64180, true }, + { 64197, true }, + { 64211, true }, + { 64223, true }, + { 64231, false }, { 64242, true }, - { 64250, false }, - { 64261, true }, - { 64282, true }, - { 64303, true }, - { 64314, true }, - { 64344, true }, - { 64353, true }, + { 64263, true }, + { 64284, true }, + { 64295, true }, + { 64325, true }, + { 64334, true }, + { 64348, true }, { 64367, true }, - { 64386, true }, - { 64404, true }, - { 64417, false }, - { 64432, true }, - { 64448, true }, - { 64470, true }, - { 64480, true }, - { 64494, false }, - { 64508, true }, - { 64524, true }, - { 64537, true }, - { 64562, true }, - { 64577, true }, - { 64591, true }, - { 64603, true }, - { 64618, true }, - { 64630, true }, - { 64653, true }, - { 64676, true }, + { 64385, true }, + { 64398, false }, + { 64413, true }, + { 64429, true }, + { 64451, true }, + { 64461, true }, + { 64475, false }, + { 64489, true }, + { 64505, true }, + { 64518, true }, + { 64543, true }, + { 64558, true }, + { 64572, true }, + { 64584, true }, + { 64599, true }, + { 64611, true }, + { 64634, true }, + { 64657, true }, + { 64670, true }, { 64689, true }, - { 64708, true }, - { 64716, true }, - { 64732, true }, - { 64747, true }, - { 64772, true }, - { 64782, true }, - { 64792, true }, - { 64799, true }, - { 64816, true }, - { 64830, true }, - { 64851, true }, - { 64860, true }, + { 64697, true }, + { 64713, true }, + { 64728, true }, + { 64753, true }, + { 64763, true }, + { 64773, true }, + { 64780, true }, + { 64797, true }, + { 64811, true }, + { 64832, true }, + { 64841, true }, + { 64859, true }, + { 64867, true }, { 64878, true }, - { 64886, true }, - { 64897, true }, - { 64914, true }, - { 64928, true }, - { 64941, false }, - { 64952, true }, - { 64968, false }, - { 64978, false }, - { 64994, true }, - { 65007, true }, - { 65021, true }, - { 65036, true }, - { 65052, true }, - { 65074, true }, - { 65092, true }, - { 65104, true }, - { 65118, true }, - { 65133, true }, - { 65148, true }, - { 65173, true }, - { 65193, true }, - { 65206, true }, - { 65220, true }, - { 65233, true }, + { 64895, true }, + { 64909, true }, + { 64922, false }, + { 64933, true }, + { 64949, false }, + { 64959, false }, + { 64975, true }, + { 64988, true }, + { 65002, true }, + { 65017, true }, + { 65033, true }, + { 65055, true }, + { 65073, true }, + { 65085, true }, + { 65099, true }, + { 65114, true }, + { 65129, true }, + { 65154, true }, + { 65174, true }, + { 65187, true }, + { 65201, true }, + { 65214, true }, + { 65244, true }, { 65263, true }, - { 65282, true }, - { 65294, true }, - { 65323, true }, - { 65338, true }, - { 65348, true }, - { 65364, true }, - { 65372, true }, - { 65382, true }, + { 65275, true }, + { 65304, true }, + { 65319, true }, + { 65329, true }, + { 65345, true }, + { 65353, true }, + { 65363, true }, + { 65374, true }, + { 65383, true }, { 65393, true }, - { 65402, true }, - { 65412, true }, - { 65423, true }, - { 65438, true }, - { 65455, true }, - { 65471, true }, - { 65484, true }, - { 65500, true }, - { 65513, true }, - { 65520, true }, - { 65537, true }, - { 65545, true }, + { 65404, true }, + { 65419, true }, + { 65436, true }, + { 65452, true }, + { 65465, true }, + { 65481, true }, + { 65494, true }, + { 65501, true }, + { 65518, true }, + { 65526, true }, + { 65540, true }, + { 65548, false }, { 65559, true }, - { 65567, false }, { 65578, true }, - { 65597, true }, - { 65606, true }, - { 65618, true }, - { 65631, true }, - { 65639, true }, + { 65587, true }, + { 65599, true }, + { 65612, true }, + { 65620, true }, + { 65638, true }, + { 65647, true }, { 65657, true }, { 65666, true }, - { 65676, true }, - { 65685, true }, - { 65693, true }, - { 65708, true }, - { 65716, true }, - { 65736, true }, - { 65759, true }, - { 65772, true }, + { 65674, true }, + { 65689, true }, + { 65697, true }, + { 65717, true }, + { 65740, true }, + { 65753, true }, + { 65767, true }, { 65786, true }, { 65805, true }, - { 65824, true }, - { 65836, true }, - { 65845, true }, - { 65856, false }, - { 65865, false }, - { 65888, true }, - { 65898, true }, - { 65916, true }, - { 65933, true }, - { 65953, true }, - { 65966, true }, - { 65980, true }, - { 65996, true }, - { 66006, true }, - { 66016, true }, - { 66033, true }, - { 66049, true }, - { 66056, true }, + { 65817, true }, + { 65826, true }, + { 65837, false }, + { 65846, false }, + { 65869, true }, + { 65879, true }, + { 65897, true }, + { 65914, true }, + { 65934, true }, + { 65947, true }, + { 65961, true }, + { 65977, true }, + { 65987, true }, + { 65997, true }, + { 66014, true }, + { 66030, true }, + { 66037, true }, + { 66046, true }, { 66065, true }, - { 66084, true }, - { 66097, true }, - { 66109, true }, - { 66120, true }, - { 66127, true }, - { 66138, true }, - { 66149, true }, - { 66157, false }, - { 66173, true }, - { 66183, true }, - { 66197, true }, - { 66215, true }, - { 66235, true }, - { 66251, true }, - { 66267, true }, + { 66078, true }, + { 66090, true }, + { 66101, true }, + { 66108, true }, + { 66119, true }, + { 66130, true }, + { 66138, false }, + { 66154, true }, + { 66164, true }, + { 66178, true }, + { 66196, true }, + { 66216, true }, + { 66232, true }, + { 66248, true }, + { 66269, true }, { 66288, true }, - { 66307, true }, - { 66329, true }, - { 66341, true }, - { 66352, false }, + { 66310, true }, + { 66322, true }, + { 66333, false }, + { 66355, true }, { 66374, true }, - { 66393, true }, - { 66409, true }, - { 66427, true }, - { 66442, true }, - { 66459, true }, - { 66475, true }, - { 66492, true }, + { 66390, true }, + { 66408, true }, + { 66423, true }, + { 66440, true }, + { 66456, true }, + { 66473, true }, + { 66490, true }, { 66509, true }, - { 66528, true }, - { 66540, true }, - { 66555, true }, - { 66575, true }, + { 66521, true }, + { 66536, true }, + { 66556, true }, + { 66573, true }, { 66592, true }, - { 66611, true }, + { 66604, true }, + { 66613, true }, { 66623, true }, - { 66632, true }, - { 66642, true }, + { 66643, true }, { 66652, true }, - { 66661, true }, - { 66670, true }, - { 66690, true }, - { 66699, true }, - { 66709, true }, - { 66727, true }, - { 66743, true }, - { 66751, true }, - { 66762, true }, - { 66769, true }, - { 66782, true }, - { 66799, true }, - { 66813, true }, + { 66662, true }, + { 66680, true }, + { 66696, true }, + { 66704, true }, + { 66715, true }, + { 66722, true }, + { 66735, true }, + { 66752, true }, + { 66766, true }, + { 66773, true }, + { 66783, true }, + { 66794, true }, + { 66808, true }, { 66820, true }, - { 66830, true }, - { 66841, true }, - { 66855, true }, - { 66867, true }, - { 66884, true }, + { 66837, true }, + { 66848, true }, + { 66866, true }, + { 66878, true }, { 66895, true }, - { 66913, true }, - { 66925, true }, - { 66942, true }, - { 66955, true }, - { 66975, true }, - { 66994, false }, - { 67008, true }, - { 67026, true }, - { 67039, true }, - { 67056, true }, - { 67070, true }, - { 67084, true }, - { 67098, true }, - { 67115, true }, - { 67141, true }, - { 67156, true }, - { 67170, true }, - { 67185, true }, + { 66908, true }, + { 66928, true }, + { 66947, false }, + { 66961, true }, + { 66979, true }, + { 66992, true }, + { 67009, true }, + { 67023, true }, + { 67037, true }, + { 67051, true }, + { 67068, true }, + { 67094, true }, + { 67109, true }, + { 67123, true }, + { 67138, true }, + { 67153, true }, + { 67164, true }, + { 67177, true }, + { 67190, true }, { 67200, true }, { 67211, true }, - { 67224, true }, - { 67237, true }, - { 67247, true }, - { 67258, true }, - { 67277, true }, - { 67292, true }, - { 67307, true }, - { 67334, true }, - { 67344, true }, - { 67356, true }, - { 67366, true }, - { 67374, true }, - { 67385, true }, - { 67394, true }, + { 67230, true }, + { 67245, true }, + { 67260, true }, + { 67287, true }, + { 67297, true }, + { 67309, true }, + { 67321, true }, + { 67331, true }, + { 67339, true }, + { 67350, true }, + { 67359, true }, + { 67375, true }, + { 67383, true }, + { 67391, true }, + { 67402, true }, { 67410, true }, - { 67418, true }, - { 67426, true }, - { 67437, true }, - { 67445, true }, - { 67460, true }, - { 67474, true }, - { 67501, true }, - { 67511, true }, + { 67425, true }, + { 67439, true }, + { 67466, true }, + { 67476, true }, + { 67487, true }, + { 67498, true }, + { 67508, true }, { 67522, true }, - { 67533, true }, - { 67543, true }, - { 67557, true }, - { 67571, true }, + { 67536, true }, + { 67547, true }, + { 67554, false }, + { 67562, true }, + { 67570, true }, { 67582, true }, - { 67589, false }, - { 67597, true }, - { 67605, true }, - { 67617, true }, - { 67633, true }, - { 67647, true }, - { 67663, true }, - { 67677, true }, - { 67691, true }, + { 67598, true }, + { 67612, true }, + { 67628, true }, + { 67642, true }, + { 67656, true }, + { 67664, true }, + { 67671, true }, + { 67680, true }, + { 67687, true }, { 67699, true }, { 67706, true }, - { 67715, true }, - { 67722, true }, + { 67720, true }, + { 67727, true }, { 67734, true }, - { 67741, true }, - { 67755, true }, - { 67762, true }, - { 67769, true }, - { 67775, true }, - { 67791, true }, - { 67803, true }, - { 67814, true }, - { 67828, true }, - { 67855, true }, - { 67887, true }, - { 67901, true }, - { 67923, true }, - { 67934, true }, - { 67945, true }, - { 67956, true }, + { 67740, true }, + { 67756, true }, + { 67768, true }, + { 67779, true }, + { 67793, true }, + { 67820, true }, + { 67852, true }, + { 67866, true }, + { 67888, true }, + { 67899, true }, + { 67910, true }, + { 67921, true }, + { 67932, true }, + { 67951, true }, { 67967, true }, - { 67986, true }, - { 68002, true }, - { 68015, true }, - { 68032, true }, - { 68046, true }, - { 68063, true }, - { 68089, true }, - { 68110, true }, - { 68125, true }, - { 68141, false }, - { 68151, true }, - { 68164, true }, - { 68174, true }, - { 68187, true }, - { 68198, true }, - { 68213, true }, - { 68231, true }, - { 68243, true }, - { 68257, true }, - { 68269, true }, - { 68285, true }, - { 68299, true }, - { 68316, true }, - { 68333, true }, - { 68345, true }, - { 68363, true }, - { 68373, true }, - { 68386, true }, - { 68405, true }, - { 68415, true }, - { 68426, true }, + { 67980, true }, + { 67997, true }, + { 68011, true }, + { 68028, true }, + { 68054, true }, + { 68075, true }, + { 68090, true }, + { 68106, false }, + { 68116, true }, + { 68129, true }, + { 68139, true }, + { 68152, true }, + { 68163, true }, + { 68178, true }, + { 68196, true }, + { 68208, true }, + { 68222, true }, + { 68234, true }, + { 68250, true }, + { 68264, true }, + { 68281, true }, + { 68298, true }, + { 68310, true }, + { 68328, true }, + { 68338, true }, + { 68351, true }, + { 68370, true }, + { 68380, true }, + { 68391, true }, + { 68404, true }, + { 68421, true }, { 68439, true }, - { 68456, true }, - { 68474, true }, - { 68486, true }, - { 68517, true }, - { 68530, true }, + { 68451, true }, + { 68482, true }, + { 68491, true }, + { 68509, true }, + { 68523, true }, { 68539, true }, - { 68557, true }, - { 68571, true }, - { 68587, true }, - { 68607, true }, - { 68621, true }, - { 68640, true }, - { 68658, true }, - { 68674, true }, - { 68694, true }, - { 68715, true }, - { 68736, true }, - { 68752, true }, - { 68768, true }, - { 68787, true }, - { 68802, true }, - { 68823, true }, - { 68843, true }, - { 68863, true }, - { 68879, true }, - { 68894, true }, - { 68914, true }, - { 68930, true }, - { 68949, true }, - { 68967, true }, - { 68983, true }, + { 68559, true }, + { 68573, true }, + { 68592, true }, + { 68610, true }, + { 68626, true }, + { 68646, true }, + { 68667, true }, + { 68688, true }, + { 68704, true }, + { 68720, true }, + { 68739, true }, + { 68754, true }, + { 68775, true }, + { 68795, true }, + { 68815, true }, + { 68831, true }, + { 68846, true }, + { 68866, true }, + { 68882, true }, + { 68901, true }, + { 68919, true }, + { 68935, true }, + { 68946, true }, + { 68960, false }, + { 68970, true }, + { 68985, true }, { 68994, true }, - { 69008, false }, - { 69018, true }, - { 69033, true }, - { 69042, true }, - { 69054, true }, - { 69068, true }, - { 69086, true }, - { 69095, true }, - { 69109, true }, - { 69127, true }, - { 69137, false }, - { 69149, true }, - { 69162, true }, - { 69177, true }, - { 69192, true }, - { 69207, true }, - { 69215, true }, - { 69249, true }, - { 69266, true }, - { 69279, false }, - { 69293, true }, - { 69311, true }, - { 69322, true }, - { 69338, true }, - { 69356, true }, - { 69367, true }, - { 69382, true }, - { 69393, true }, - { 69407, true }, - { 69422, true }, - { 69437, true }, - { 69453, true }, - { 69473, true }, - { 69490, true }, - { 69502, true }, - { 69531, true }, - { 69564, true }, - { 69576, true }, - { 69588, true }, + { 69006, true }, + { 69020, true }, + { 69038, true }, + { 69047, true }, + { 69061, true }, + { 69079, true }, + { 69089, false }, + { 69101, true }, + { 69114, true }, + { 69129, true }, + { 69144, true }, + { 69159, true }, + { 69167, true }, + { 69201, true }, + { 69218, true }, + { 69231, false }, + { 69245, true }, + { 69263, true }, + { 69274, true }, + { 69290, true }, + { 69308, true }, + { 69319, true }, + { 69334, true }, + { 69345, true }, + { 69359, true }, + { 69374, true }, + { 69389, true }, + { 69405, true }, + { 69425, true }, + { 69442, true }, + { 69454, true }, + { 69483, true }, + { 69516, true }, + { 69528, true }, + { 69540, true }, + { 69557, true }, + { 69569, true }, + { 69584, true }, + { 69593, true }, { 69605, true }, { 69617, true }, - { 69632, true }, - { 69641, true }, - { 69653, true }, - { 69665, true }, - { 69682, true }, - { 69697, true }, - { 69711, true }, - { 69726, true }, - { 69738, false }, + { 69634, true }, + { 69649, true }, + { 69663, true }, + { 69678, true }, + { 69690, false }, + { 69704, true }, + { 69714, true }, + { 69734, true }, { 69752, true }, - { 69762, true }, - { 69782, true }, - { 69800, true }, - { 69813, true }, + { 69765, true }, + { 69776, true }, + { 69789, true }, + { 69798, true }, + { 69808, false }, { 69824, true }, - { 69837, true }, - { 69846, true }, - { 69856, false }, - { 69872, true }, - { 69884, true }, - { 69899, true }, - { 69913, true }, + { 69836, true }, + { 69851, true }, + { 69865, true }, + { 69879, true }, + { 69893, true }, + { 69907, true }, { 69927, true }, - { 69941, true }, - { 69955, true }, - { 69975, true }, - { 69996, true }, - { 70014, true }, - { 70025, true }, - { 70045, true }, - { 70058, true }, - { 70074, true }, - { 70087, true }, - { 70100, true }, - { 70127, true }, - { 70138, true }, - { 70155, true }, - { 70181, true }, - { 70201, true }, - { 70215, true }, - { 70232, false }, - { 70246, true }, - { 70260, false }, - { 70277, true }, - { 70302, true }, - { 70318, true }, - { 70331, true }, - { 70344, true }, - { 70360, true }, - { 70387, true }, - { 70406, true }, - { 70425, false }, - { 70437, true }, - { 70448, true }, - { 70463, true }, - { 70478, true }, + { 69948, true }, + { 69966, true }, + { 69977, true }, + { 69997, true }, + { 70010, true }, + { 70026, true }, + { 70039, true }, + { 70052, true }, + { 70079, true }, + { 70090, true }, + { 70107, true }, + { 70133, true }, + { 70153, true }, + { 70167, true }, + { 70184, false }, + { 70198, true }, + { 70212, false }, + { 70229, true }, + { 70254, true }, + { 70270, true }, + { 70283, true }, + { 70296, true }, + { 70312, true }, + { 70339, true }, + { 70358, true }, + { 70377, false }, + { 70389, true }, + { 70400, true }, + { 70415, true }, + { 70430, true }, + { 70442, true }, + { 70458, true }, + { 70473, true }, { 70490, true }, - { 70506, true }, - { 70521, true }, - { 70538, true }, - { 70553, true }, - { 70568, true }, - { 70583, true }, - { 70605, true }, - { 70623, true }, - { 70639, true }, - { 70656, true }, + { 70505, true }, + { 70520, true }, + { 70535, true }, + { 70557, true }, + { 70575, true }, + { 70591, true }, + { 70608, true }, + { 70628, true }, + { 70642, true }, + { 70658, true }, { 70676, true }, - { 70690, true }, + { 70689, true }, { 70706, true }, - { 70724, true }, - { 70737, true }, - { 70754, true }, - { 70767, true }, - { 70781, true }, - { 70796, true }, - { 70810, true }, - { 70825, true }, - { 70841, true }, - { 70860, true }, - { 70881, true }, - { 70898, true }, - { 70914, true }, - { 70930, true }, - { 70949, true }, - { 70969, true }, - { 70981, true }, - { 70994, true }, - { 71004, true }, - { 71014, true }, - { 71030, true }, - { 71046, true }, - { 71057, true }, - { 71070, true }, - { 71096, true }, - { 71109, true }, - { 71129, false }, - { 71140, true }, - { 71158, true }, + { 70719, true }, + { 70733, true }, + { 70748, true }, + { 70762, true }, + { 70777, true }, + { 70793, true }, + { 70812, true }, + { 70833, true }, + { 70850, true }, + { 70866, true }, + { 70882, true }, + { 70901, true }, + { 70921, true }, + { 70933, true }, + { 70946, true }, + { 70956, true }, + { 70966, true }, + { 70982, true }, + { 70998, true }, + { 71009, true }, + { 71022, true }, + { 71048, true }, + { 71061, true }, + { 71081, false }, + { 71092, true }, + { 71110, true }, + { 71124, true }, + { 71136, true }, + { 71147, true }, + { 71155, true }, + { 71164, true }, { 71172, true }, - { 71184, true }, - { 71195, true }, - { 71203, true }, - { 71212, true }, + { 71189, true }, + { 71200, true }, + { 71208, true }, { 71220, true }, - { 71237, true }, + { 71228, true }, + { 71238, true }, { 71248, true }, - { 71256, true }, - { 71268, true }, - { 71276, true }, - { 71286, true }, - { 71296, true }, - { 71307, true }, - { 71320, true }, - { 71341, true }, - { 71353, true }, - { 71365, true }, - { 71376, true }, - { 71384, true }, - { 71396, true }, - { 71404, true }, - { 71415, true }, - { 71426, true }, - { 71436, false }, - { 71444, false }, - { 71460, true }, - { 71473, true }, - { 71488, true }, - { 71505, true }, - { 71527, true }, - { 71548, true }, - { 71556, true }, - { 71569, true }, - { 71579, true }, - { 71593, true }, - { 71604, false }, - { 71624, true }, - { 71639, true }, - { 71651, true }, - { 71664, true }, - { 71677, true }, - { 71689, true }, - { 71701, true }, - { 71722, true }, - { 71736, true }, - { 71750, true }, - { 71767, true }, - { 71782, true }, - { 71796, true }, - { 71810, true }, - { 71824, true }, - { 71838, true }, - { 71852, true }, - { 71867, true }, - { 71879, true }, - { 71893, true }, - { 71911, true }, - { 71926, true }, - { 71942, true }, - { 71957, true }, - { 71969, true }, - { 71981, true }, - { 71993, true }, - { 72003, true }, - { 72021, true }, - { 72034, true }, - { 72047, true }, - { 72075, true }, - { 72096, true }, - { 72116, true }, - { 72131, true }, - { 72148, true }, - { 72169, true }, - { 72182, true }, - { 72194, true }, - { 72207, true }, - { 72222, true }, - { 72247, true }, - { 72264, true }, - { 72281, true }, - { 72304, true }, - { 72316, true }, - { 72324, true }, - { 72336, true }, - { 72345, true }, - { 72365, true }, - { 72376, true }, - { 72391, true }, - { 72407, true }, - { 72414, true }, - { 72421, true }, - { 72444, true }, + { 71259, true }, + { 71272, true }, + { 71293, true }, + { 71305, true }, + { 71317, true }, + { 71328, true }, + { 71336, true }, + { 71348, true }, + { 71356, true }, + { 71367, true }, + { 71378, true }, + { 71388, false }, + { 71396, false }, + { 71412, true }, + { 71425, true }, + { 71440, true }, + { 71457, true }, + { 71479, true }, + { 71500, true }, + { 71508, true }, + { 71521, true }, + { 71531, true }, + { 71545, true }, + { 71556, false }, + { 71576, true }, + { 71591, true }, + { 71603, true }, + { 71616, true }, + { 71629, true }, + { 71641, true }, + { 71653, true }, + { 71674, true }, + { 71688, true }, + { 71702, true }, + { 71719, true }, + { 71734, true }, + { 71748, true }, + { 71762, true }, + { 71776, true }, + { 71790, true }, + { 71804, true }, + { 71819, true }, + { 71831, true }, + { 71845, true }, + { 71863, true }, + { 71878, true }, + { 71894, true }, + { 71909, true }, + { 71921, true }, + { 71933, true }, + { 71945, true }, + { 71955, true }, + { 71973, true }, + { 71986, true }, + { 71999, true }, + { 72027, true }, + { 72048, true }, + { 72068, true }, + { 72083, true }, + { 72100, true }, + { 72121, true }, + { 72134, true }, + { 72146, true }, + { 72159, true }, + { 72174, true }, + { 72199, true }, + { 72216, true }, + { 72233, true }, + { 72256, true }, + { 72268, true }, + { 72276, true }, + { 72288, true }, + { 72297, true }, + { 72317, true }, + { 72328, true }, + { 72343, true }, + { 72359, true }, + { 72366, true }, + { 72373, true }, + { 72396, true }, + { 72410, true }, + { 72425, true }, + { 72440, true }, { 72458, true }, - { 72473, true }, + { 72469, true }, + { 72479, true }, { 72488, true }, - { 72506, true }, - { 72517, true }, - { 72527, true }, - { 72536, true }, - { 72548, true }, - { 72559, true }, - { 72570, true }, - { 72583, true }, - { 72604, true }, - { 72614, true }, + { 72500, true }, + { 72511, true }, + { 72522, true }, + { 72535, true }, + { 72556, true }, + { 72566, true }, + { 72582, true }, + { 72597, true }, + { 72613, true }, { 72630, true }, - { 72645, true }, - { 72661, true }, - { 72678, true }, - { 72694, true }, - { 72711, true }, - { 72725, true }, - { 72740, true }, - { 72756, true }, - { 72771, true }, - { 72782, true }, - { 72792, true }, + { 72646, true }, + { 72663, true }, + { 72677, true }, + { 72692, true }, + { 72708, true }, + { 72723, true }, + { 72734, true }, + { 72744, true }, + { 72755, true }, + { 72768, true }, + { 72778, true }, + { 72791, true }, { 72803, true }, - { 72816, true }, - { 72826, true }, - { 72839, true }, - { 72851, true }, - { 72875, true }, - { 72903, true }, - { 72915, true }, - { 72929, true }, + { 72827, true }, + { 72855, true }, + { 72867, true }, + { 72881, true }, + { 72891, true }, + { 72905, true }, + { 72921, true }, { 72939, true }, - { 72953, true }, - { 72969, true }, - { 72987, true }, - { 72998, true }, - { 73010, true }, - { 73026, true }, - { 73037, true }, - { 73050, true }, - { 73070, true }, - { 73081, true }, - { 73102, true }, - { 73124, true }, - { 73144, true }, - { 73165, true }, - { 73180, true }, - { 73194, true }, - { 73209, true }, - { 73226, true }, - { 73238, true }, - { 73249, true }, - { 73268, true }, - { 73280, true }, - { 73296, true }, - { 73304, true }, - { 73317, true }, - { 73341, true }, - { 73355, true }, - { 73367, true }, - { 73380, true }, - { 73397, true }, - { 73410, true }, - { 73422, true }, - { 73435, true }, - { 73447, true }, - { 73460, true }, - { 73473, true }, + { 72950, true }, + { 72962, true }, + { 72978, true }, + { 72989, true }, + { 73002, true }, + { 73022, true }, + { 73033, true }, + { 73054, true }, + { 73076, true }, + { 73096, true }, + { 73117, true }, + { 73132, true }, + { 73146, true }, + { 73161, true }, + { 73178, true }, + { 73190, true }, + { 73201, true }, + { 73220, true }, + { 73232, true }, + { 73248, true }, + { 73256, true }, + { 73269, true }, + { 73293, true }, + { 73307, true }, + { 73319, true }, + { 73332, true }, + { 73349, true }, + { 73362, true }, + { 73374, true }, + { 73387, true }, + { 73399, true }, + { 73412, true }, + { 73425, true }, + { 73436, true }, + { 73454, true }, + { 73472, true }, { 73484, true }, - { 73502, true }, - { 73520, true }, - { 73532, true }, - { 73547, true }, - { 73564, false }, - { 73579, true }, - { 73593, true }, - { 73609, true }, - { 73623, true }, + { 73499, true }, + { 73516, false }, + { 73531, true }, + { 73545, true }, + { 73561, true }, + { 73575, true }, + { 73583, true }, + { 73612, true }, { 73631, true }, - { 73660, true }, - { 73679, true }, - { 73692, true }, - { 73717, true }, - { 73741, true }, + { 73644, true }, + { 73669, true }, + { 73693, true }, + { 73710, true }, + { 73725, true }, + { 73746, true }, { 73758, true }, - { 73773, true }, - { 73794, true }, - { 73806, true }, - { 73819, true }, - { 73836, true }, - { 73856, true }, - { 73868, true }, - { 73892, true }, - { 73925, true }, - { 73948, true }, - { 73960, true }, - { 73982, true }, - { 73999, true }, - { 74014, true }, - { 74028, true }, - { 74054, true }, - { 74064, true }, - { 74083, true }, - { 74093, true }, - { 74106, true }, - { 74116, true }, + { 73771, true }, + { 73788, true }, + { 73808, true }, + { 73820, true }, + { 73844, true }, + { 73877, true }, + { 73900, true }, + { 73912, true }, + { 73934, true }, + { 73951, true }, + { 73966, true }, + { 73980, true }, + { 74006, true }, + { 74016, true }, + { 74035, true }, + { 74045, true }, + { 74058, true }, + { 74068, true }, + { 74078, true }, + { 74099, true }, + { 74108, true }, { 74126, true }, - { 74147, true }, - { 74156, true }, - { 74174, true }, - { 74192, true }, - { 74205, true }, - { 74223, true }, - { 74235, true }, - { 74252, true }, - { 74274, true }, - { 74291, true }, - { 74303, true }, - { 74317, true }, - { 74335, true }, - { 74362, true }, - { 74380, true }, - { 74405, true }, - { 74425, true }, - { 74440, true }, - { 74455, true }, - { 74468, true }, - { 74489, true }, - { 74498, true }, - { 74523, true }, - { 74539, false }, - { 74550, true }, - { 74563, true }, - { 74576, true }, - { 74607, true }, - { 74636, true }, - { 74647, true }, - { 74657, true }, - { 74674, true }, - { 74685, true }, - { 74701, false }, - { 74715, true }, - { 74729, true }, - { 74748, true }, - { 74767, true }, - { 74789, true }, - { 74803, true }, - { 74818, true }, - { 74835, true }, - { 74844, true }, - { 74882, true }, - { 74897, true }, - { 74908, true }, - { 74920, true }, - { 74938, true }, - { 74966, true }, - { 74977, true }, - { 74985, true }, - { 74994, true }, - { 75007, true }, - { 75017, true }, - { 75031, true }, - { 75040, true }, - { 75056, false }, - { 75081, false }, - { 75105, true }, - { 75119, true }, - { 75138, true }, - { 75165, true }, - { 75177, true }, - { 75189, true }, - { 75197, true }, - { 75206, true }, - { 75220, true }, - { 75237, true }, - { 75253, true }, - { 75268, false }, - { 75280, true }, - { 75292, true }, - { 75307, true }, - { 75324, true }, - { 75334, true }, - { 75346, true }, - { 75358, true }, - { 75368, true }, - { 75382, true }, - { 75399, true }, - { 75417, false }, - { 75437, true }, - { 75449, true }, - { 75461, true }, - { 75473, true }, - { 75482, true }, - { 75493, true }, - { 75505, true }, - { 75518, true }, - { 75528, true }, - { 75541, true }, - { 75557, true }, - { 75579, true }, - { 75589, true }, - { 75603, true }, - { 75612, true }, - { 75624, true }, - { 75631, true }, - { 75644, false }, + { 74144, true }, + { 74157, true }, + { 74175, true }, + { 74187, true }, + { 74204, true }, + { 74226, true }, + { 74243, true }, + { 74255, true }, + { 74269, true }, + { 74287, true }, + { 74314, true }, + { 74332, true }, + { 74357, true }, + { 74377, true }, + { 74392, true }, + { 74407, true }, + { 74420, true }, + { 74441, true }, + { 74450, true }, + { 74475, true }, + { 74491, false }, + { 74502, true }, + { 74515, true }, + { 74528, true }, + { 74559, true }, + { 74588, true }, + { 74599, true }, + { 74609, true }, + { 74626, true }, + { 74637, true }, + { 74653, false }, + { 74667, true }, + { 74681, true }, + { 74700, true }, + { 74719, true }, + { 74741, true }, + { 74755, true }, + { 74770, true }, + { 74787, true }, + { 74796, true }, + { 74834, true }, + { 74849, true }, + { 74860, true }, + { 74872, true }, + { 74890, true }, + { 74918, true }, + { 74929, true }, + { 74937, true }, + { 74946, true }, + { 74959, true }, + { 74969, true }, + { 74983, true }, + { 74992, true }, + { 75008, false }, + { 75033, true }, + { 75051, false }, + { 75075, true }, + { 75089, true }, + { 75108, true }, + { 75135, true }, + { 75147, true }, + { 75159, true }, + { 75167, true }, + { 75176, true }, + { 75190, true }, + { 75207, true }, + { 75223, true }, + { 75238, false }, + { 75250, true }, + { 75262, true }, + { 75277, true }, + { 75294, true }, + { 75304, true }, + { 75316, true }, + { 75328, true }, + { 75338, true }, + { 75352, true }, + { 75369, true }, + { 75387, false }, + { 75407, true }, + { 75419, true }, + { 75431, true }, + { 75443, true }, + { 75452, true }, + { 75463, true }, + { 75475, true }, + { 75488, true }, + { 75498, true }, + { 75511, true }, + { 75527, true }, + { 75549, true }, + { 75559, true }, + { 75573, true }, + { 75582, true }, + { 75594, true }, + { 75601, true }, + { 75614, false }, + { 75623, true }, + { 75635, true }, + { 75644, true }, { 75653, true }, - { 75665, true }, - { 75674, true }, - { 75683, true }, - { 75693, true }, - { 75707, true }, - { 75714, true }, - { 75731, true }, - { 75742, true }, - { 75755, true }, + { 75663, true }, + { 75677, true }, + { 75684, true }, + { 75701, true }, + { 75712, true }, + { 75725, true }, + { 75739, true }, + { 75748, true }, + { 75760, true }, { 75769, true }, { 75778, true }, - { 75790, true }, - { 75799, true }, - { 75808, true }, - { 75828, true }, - { 75842, true }, - { 75857, true }, - { 75869, true }, - { 75885, true }, - { 75901, true }, - { 75918, true }, - { 75935, true }, - { 75944, true }, - { 75954, true }, - { 75976, true }, - { 75985, true }, - { 75997, true }, - { 76020, true }, - { 76034, true }, - { 76048, true }, - { 76062, true }, - { 76077, true }, - { 76103, true }, - { 76128, true }, - { 76161, true }, - { 76189, true }, - { 76218, true }, - { 76227, true }, - { 76243, true }, - { 76255, true }, - { 76266, true }, - { 76277, true }, - { 76293, true }, - { 76318, true }, - { 76333, true }, - { 76355, true }, - { 76380, true }, - { 76396, true }, - { 76427, true }, - { 76438, true }, + { 75798, true }, + { 75812, true }, + { 75827, true }, + { 75839, true }, + { 75855, true }, + { 75871, true }, + { 75888, true }, + { 75905, true }, + { 75914, true }, + { 75924, true }, + { 75946, true }, + { 75955, true }, + { 75967, true }, + { 75990, true }, + { 76004, true }, + { 76018, true }, + { 76032, true }, + { 76047, true }, + { 76073, true }, + { 76098, true }, + { 76131, true }, + { 76159, true }, + { 76188, true }, + { 76197, true }, + { 76213, true }, + { 76225, true }, + { 76236, true }, + { 76247, true }, + { 76263, true }, + { 76288, true }, + { 76303, true }, + { 76325, true }, + { 76350, true }, + { 76366, true }, + { 76397, true }, + { 76408, true }, + { 76420, true }, + { 76436, true }, { 76450, true }, - { 76466, true }, - { 76480, true }, - { 76495, true }, - { 76513, true }, - { 76522, true }, - { 76536, true }, - { 76554, true }, - { 76568, true }, - { 76591, true }, - { 76609, true }, - { 76619, true }, - { 76632, true }, - { 76642, true }, - { 76654, true }, - { 76669, true }, - { 76683, true }, - { 76696, true }, - { 76710, true }, - { 76722, true }, - { 76736, true }, - { 76747, true }, - { 76758, true }, - { 76770, true }, - { 76782, true }, - { 76795, true }, - { 76806, true }, - { 76818, true }, - { 76834, false }, - { 76847, true }, - { 76858, true }, - { 76870, false }, - { 76887, true }, - { 76907, true }, - { 76924, true }, - { 76948, true }, - { 76966, true }, - { 76983, true }, - { 76999, true }, + { 76465, true }, + { 76483, true }, + { 76492, true }, + { 76506, true }, + { 76524, true }, + { 76538, true }, + { 76561, true }, + { 76579, true }, + { 76589, true }, + { 76602, true }, + { 76612, true }, + { 76624, true }, + { 76639, true }, + { 76653, true }, + { 76666, true }, + { 76680, true }, + { 76692, true }, + { 76706, true }, + { 76717, true }, + { 76728, true }, + { 76740, true }, + { 76752, true }, + { 76765, true }, + { 76776, true }, + { 76788, true }, + { 76804, false }, + { 76817, true }, + { 76828, true }, + { 76840, false }, + { 76857, true }, + { 76877, true }, + { 76894, true }, + { 76918, true }, + { 76936, true }, + { 76953, true }, + { 76969, true }, + { 76985, true }, + { 77000, true }, { 77015, true }, - { 77030, true }, - { 77045, true }, - { 77068, true }, - { 77094, true }, - { 77114, true }, - { 77129, true }, - { 77149, true }, - { 77171, false }, - { 77189, true }, - { 77208, true }, - { 77225, true }, - { 77244, true }, + { 77038, true }, + { 77064, true }, + { 77084, true }, + { 77099, true }, + { 77119, true }, + { 77141, false }, + { 77159, true }, + { 77178, true }, + { 77195, true }, + { 77214, true }, + { 77230, true }, + { 77243, true }, { 77260, true }, - { 77273, true }, - { 77290, true }, - { 77300, false }, - { 77317, true }, - { 77336, true }, - { 77344, true }, - { 77356, true }, - { 77375, true }, - { 77392, true }, - { 77406, true }, - { 77423, true }, - { 77431, true }, - { 77440, true }, + { 77270, false }, + { 77287, true }, + { 77306, true }, + { 77314, true }, + { 77326, true }, + { 77345, true }, + { 77362, true }, + { 77376, true }, + { 77393, true }, + { 77401, true }, + { 77410, true }, + { 77421, true }, + { 77439, true }, { 77451, true }, - { 77469, true }, - { 77481, true }, - { 77492, true }, - { 77502, true }, - { 77513, true }, - { 77523, true }, - { 77531, true }, - { 77541, true }, - { 77554, true }, - { 77568, true }, - { 77579, true }, - { 77592, true }, - { 77604, true }, - { 77623, false }, - { 77631, true }, - { 77642, true }, - { 77653, true }, - { 77666, true }, - { 77679, true }, - { 77698, true }, - { 77714, true }, - { 77738, true }, + { 77462, true }, + { 77472, true }, + { 77483, true }, + { 77493, true }, + { 77501, true }, + { 77511, true }, + { 77524, true }, + { 77538, true }, + { 77549, true }, + { 77562, true }, + { 77574, true }, + { 77593, false }, + { 77601, true }, + { 77612, true }, + { 77623, true }, + { 77636, true }, + { 77649, true }, + { 77668, true }, + { 77684, true }, + { 77708, true }, + { 77720, true }, + { 77734, true }, { 77750, true }, { 77764, true }, - { 77780, true }, - { 77794, true }, - { 77805, true }, - { 77816, true }, - { 77830, true }, - { 77842, true }, - { 77857, true }, - { 77873, true }, - { 77886, true }, - { 77898, true }, - { 77912, true }, - { 77933, true }, - { 77948, true }, - { 77966, true }, - { 77981, true }, - { 77995, true }, - { 78016, false }, - { 78038, true }, - { 78060, true }, - { 78076, true }, - { 78097, true }, + { 77775, true }, + { 77786, true }, + { 77800, true }, + { 77812, true }, + { 77827, true }, + { 77843, true }, + { 77856, true }, + { 77868, true }, + { 77882, true }, + { 77903, true }, + { 77918, true }, + { 77936, true }, + { 77951, true }, + { 77965, true }, + { 77986, false }, + { 78008, true }, + { 78030, true }, + { 78046, true }, + { 78067, true }, + { 78084, true }, + { 78100, true }, { 78114, true }, - { 78130, true }, - { 78144, true }, - { 78165, true }, - { 78181, true }, - { 78198, true }, - { 78213, false }, + { 78135, true }, + { 78151, true }, + { 78168, true }, + { 78183, false }, + { 78203, true }, { 78233, true }, - { 78263, true }, - { 78289, true }, + { 78259, true }, + { 78281, true }, + { 78290, true }, + { 78303, true }, { 78311, true }, - { 78320, true }, - { 78333, true }, - { 78341, true }, - { 78361, true }, - { 78373, true }, - { 78387, true }, - { 78410, true }, - { 78433, true }, - { 78452, true }, - { 78474, true }, - { 78492, true }, - { 78511, true }, - { 78529, true }, - { 78540, true }, - { 78551, true }, - { 78561, true }, - { 78578, true }, - { 78590, true }, - { 78609, true }, - { 78619, true }, - { 78629, true }, - { 78648, true }, - { 78666, true }, - { 78685, true }, - { 78692, true }, - { 78703, true }, - { 78713, true }, - { 78731, true }, - { 78755, true }, - { 78764, false }, - { 78784, true }, - { 78792, true }, - { 78802, false }, - { 78817, true }, - { 78831, true }, - { 78844, true }, - { 78852, true }, - { 78859, true }, - { 78869, true }, - { 78878, true }, - { 78891, true }, - { 78901, true }, - { 78910, false }, - { 78925, true }, - { 78934, false }, - { 78943, true }, - { 78957, true }, - { 78974, true }, - { 78983, true }, - { 78990, true }, - { 79002, true }, - { 79012, true }, - { 79029, true }, - { 79037, false }, - { 79045, true }, - { 79053, true }, - { 79060, true }, - { 79071, true }, - { 79084, true }, - { 79091, true }, - { 79102, true }, - { 79112, true }, - { 79127, true }, - { 79144, true }, - { 79159, true }, - { 79172, true }, - { 79184, true }, - { 79199, true }, - { 79210, true }, - { 79220, true }, - { 79238, true }, - { 79244, true }, - { 79252, true }, - { 79261, true }, - { 79273, true }, - { 79285, true }, - { 79300, true }, - { 79307, true }, - { 79317, true }, - { 79327, true }, - { 79344, true }, - { 79362, true }, - { 79379, true }, - { 79391, true }, - { 79401, true }, - { 79411, true }, - { 79425, true }, - { 79438, false }, - { 79454, true }, - { 79470, true }, + { 78331, true }, + { 78343, true }, + { 78357, true }, + { 78380, true }, + { 78403, true }, + { 78422, true }, + { 78444, true }, + { 78462, true }, + { 78481, true }, + { 78499, true }, + { 78510, true }, + { 78521, true }, + { 78531, true }, + { 78548, true }, + { 78560, true }, + { 78579, true }, + { 78589, true }, + { 78599, true }, + { 78618, true }, + { 78636, true }, + { 78655, true }, + { 78662, true }, + { 78673, true }, + { 78683, true }, + { 78701, true }, + { 78725, true }, + { 78734, false }, + { 78754, true }, + { 78762, true }, + { 78772, false }, + { 78787, true }, + { 78801, true }, + { 78814, true }, + { 78822, true }, + { 78829, true }, + { 78839, true }, + { 78848, true }, + { 78861, true }, + { 78871, true }, + { 78880, false }, + { 78895, true }, + { 78904, false }, + { 78913, true }, + { 78927, true }, + { 78944, true }, + { 78953, true }, + { 78960, true }, + { 78972, true }, + { 78982, true }, + { 78999, true }, + { 79007, false }, + { 79015, true }, + { 79023, true }, + { 79030, true }, + { 79041, true }, + { 79054, true }, + { 79061, true }, + { 79072, true }, + { 79082, true }, + { 79097, true }, + { 79114, true }, + { 79129, true }, + { 79142, true }, + { 79154, true }, + { 79169, true }, + { 79180, true }, + { 79190, true }, + { 79208, true }, + { 79214, true }, + { 79222, true }, + { 79231, true }, + { 79243, true }, + { 79255, true }, + { 79270, true }, + { 79277, true }, + { 79287, true }, + { 79297, true }, + { 79314, true }, + { 79332, true }, + { 79349, true }, + { 79361, true }, + { 79371, true }, + { 79381, true }, + { 79395, true }, + { 79408, false }, + { 79424, true }, + { 79440, true }, + { 79459, true }, + { 79473, true }, { 79489, true }, - { 79503, true }, - { 79519, true }, - { 79532, true }, - { 79547, true }, + { 79502, true }, + { 79517, true }, + { 79528, true }, + { 79540, true }, { 79558, true }, - { 79570, true }, - { 79588, true }, - { 79597, true }, - { 79610, false }, - { 79619, true }, - { 79639, true }, - { 79648, true }, - { 79670, true }, - { 79680, true }, - { 79693, true }, - { 79705, true }, - { 79720, true }, - { 79734, true }, - { 79746, true }, + { 79567, true }, + { 79580, false }, + { 79589, true }, + { 79609, true }, + { 79618, true }, + { 79640, true }, + { 79650, true }, + { 79663, true }, + { 79675, true }, + { 79690, true }, + { 79704, true }, + { 79716, true }, + { 79738, true }, + { 79749, true }, + { 79757, true }, { 79768, true }, - { 79779, true }, - { 79787, true }, - { 79798, true }, - { 79812, true }, - { 79825, true }, - { 79845, true }, - { 79859, true }, - { 79882, true }, - { 79898, true }, - { 79906, true }, - { 79920, true }, - { 79941, true }, - { 79956, true }, - { 79975, false }, - { 79992, true }, - { 80006, true }, - { 80025, true }, - { 80041, true }, - { 80056, true }, - { 80067, true }, - { 80090, true }, - { 80117, true }, - { 80128, true }, - { 80140, true }, - { 80161, true }, - { 80178, true }, - { 80199, true }, - { 80214, true }, + { 79782, true }, + { 79795, true }, + { 79815, true }, + { 79829, true }, + { 79852, true }, + { 79868, true }, + { 79876, true }, + { 79890, true }, + { 79911, true }, + { 79926, true }, + { 79945, false }, + { 79962, true }, + { 79976, true }, + { 79995, true }, + { 80011, true }, + { 80026, true }, + { 80037, true }, + { 80060, true }, + { 80087, true }, + { 80098, true }, + { 80110, true }, + { 80131, true }, + { 80148, true }, + { 80169, true }, + { 80184, true }, + { 80201, true }, + { 80213, true }, { 80231, true }, - { 80243, true }, - { 80261, true }, - { 80277, true }, - { 80290, true }, - { 80305, true }, - { 80319, true }, - { 80347, true }, - { 80366, false }, - { 80378, true }, - { 80392, true }, - { 80405, true }, + { 80247, true }, + { 80260, true }, + { 80275, true }, + { 80289, true }, + { 80317, true }, + { 80336, false }, + { 80348, true }, + { 80362, true }, + { 80375, true }, + { 80394, true }, + { 80410, true }, { 80424, true }, - { 80440, true }, - { 80454, true }, - { 80469, true }, - { 80492, true }, - { 80501, true }, - { 80514, true }, - { 80529, true }, - { 80550, true }, - { 80565, true }, - { 80578, true }, - { 80591, true }, - { 80603, true }, - { 80628, false }, - { 80638, true }, + { 80439, true }, + { 80462, true }, + { 80471, true }, + { 80484, true }, + { 80499, true }, + { 80520, true }, + { 80535, true }, + { 80548, true }, + { 80561, true }, + { 80573, true }, + { 80598, false }, + { 80608, true }, + { 80622, true }, + { 80633, true }, { 80652, true }, - { 80663, true }, + { 80665, true }, { 80682, true }, - { 80695, true }, + { 80699, true }, { 80712, true }, - { 80729, true }, - { 80742, true }, - { 80753, true }, - { 80767, true }, - { 80781, true }, - { 80803, true }, - { 80816, true }, - { 80825, true }, - { 80834, true }, - { 80843, true }, - { 80862, true }, - { 80882, true }, - { 80889, true }, - { 80904, true }, - { 80915, true }, - { 80929, true }, - { 80953, true }, - { 80973, true }, - { 80984, true }, - { 80994, true }, - { 81007, true }, - { 81019, true }, - { 81030, true }, - { 81041, true }, - { 81053, true }, - { 81074, true }, - { 81088, true }, - { 81107, true }, - { 81123, true }, - { 81138, true }, - { 81150, true }, - { 81167, true }, - { 81182, true }, - { 81194, true }, - { 81204, true }, - { 81220, true }, - { 81241, true }, - { 81258, true }, - { 81287, true }, - { 81301, true }, - { 81312, true }, - { 81321, false }, - { 81344, false }, + { 80723, true }, + { 80737, true }, + { 80751, true }, + { 80773, true }, + { 80786, true }, + { 80795, true }, + { 80804, true }, + { 80813, true }, + { 80832, true }, + { 80852, true }, + { 80859, true }, + { 80874, true }, + { 80885, true }, + { 80899, true }, + { 80923, true }, + { 80943, true }, + { 80954, true }, + { 80964, true }, + { 80977, true }, + { 80989, true }, + { 81000, true }, + { 81011, true }, + { 81023, true }, + { 81044, true }, + { 81058, true }, + { 81077, true }, + { 81093, true }, + { 81108, true }, + { 81120, true }, + { 81137, true }, + { 81152, true }, + { 81164, true }, + { 81174, true }, + { 81190, true }, + { 81211, true }, + { 81228, true }, + { 81257, true }, + { 81271, true }, + { 81282, true }, + { 81291, false }, + { 81314, false }, + { 81328, true }, + { 81338, true }, + { 81347, true }, { 81358, true }, - { 81368, true }, - { 81377, true }, - { 81388, true }, - { 81400, true }, - { 81410, true }, - { 81423, true }, - { 81435, true }, - { 81449, true }, - { 81467, true }, - { 81482, true }, - { 81502, true }, - { 81522, true }, - { 81538, true }, - { 81552, false }, - { 81564, true }, - { 81581, true }, - { 81598, true }, - { 81612, true }, - { 81623, true }, - { 81641, true }, + { 81370, true }, + { 81380, true }, + { 81393, true }, + { 81405, true }, + { 81419, true }, + { 81437, true }, + { 81452, true }, + { 81472, true }, + { 81492, true }, + { 81508, true }, + { 81522, false }, + { 81534, true }, + { 81551, true }, + { 81568, true }, + { 81582, true }, + { 81593, true }, + { 81611, true }, + { 81625, true }, + { 81644, true }, { 81655, true }, { 81674, true }, - { 81685, true }, - { 81704, true }, - { 81718, true }, - { 81729, true }, - { 81739, true }, + { 81688, true }, + { 81699, true }, + { 81709, true }, + { 81722, true }, + { 81738, true }, { 81752, true }, - { 81768, true }, - { 81782, true }, - { 81802, true }, - { 81811, true }, - { 81828, true }, - { 81848, true }, - { 81867, true }, - { 81886, false }, + { 81772, true }, + { 81781, true }, + { 81798, true }, + { 81818, true }, + { 81837, true }, + { 81856, false }, + { 81874, true }, + { 81890, true }, { 81904, true }, { 81920, true }, - { 81934, true }, - { 81950, true }, - { 81965, true }, - { 81979, true }, - { 81988, true }, - { 82003, true }, - { 82021, true }, - { 82029, true }, - { 82042, true }, - { 82057, true }, - { 82070, true }, - { 82082, true }, - { 82095, true }, - { 82117, true }, - { 82132, true }, - { 82148, false }, - { 82158, false }, - { 82175, true }, - { 82191, true }, - { 82204, true }, - { 82222, true }, - { 82236, true }, - { 82258, true }, - { 82280, true }, + { 81935, true }, + { 81949, true }, + { 81958, true }, + { 81973, true }, + { 81991, true }, + { 81999, true }, + { 82012, true }, + { 82027, true }, + { 82040, true }, + { 82052, true }, + { 82065, true }, + { 82087, true }, + { 82102, true }, + { 82118, false }, + { 82128, false }, + { 82145, true }, + { 82161, true }, + { 82174, true }, + { 82192, true }, + { 82206, true }, + { 82228, true }, + { 82250, true }, + { 82268, true }, + { 82279, true }, { 82298, true }, - { 82309, true }, + { 82307, true }, { 82328, true }, - { 82337, true }, - { 82358, true }, - { 82368, true }, - { 82380, true }, - { 82388, false }, - { 82401, true }, - { 82422, true }, - { 82434, true }, + { 82338, true }, + { 82350, true }, + { 82358, false }, + { 82371, true }, + { 82392, true }, + { 82404, true }, + { 82417, true }, + { 82430, false }, { 82447, true }, - { 82460, false }, - { 82477, true }, - { 82489, true }, - { 82506, true }, - { 82515, true }, + { 82459, true }, + { 82476, true }, + { 82485, true }, + { 82500, true }, { 82530, true }, - { 82560, true }, - { 82598, true }, - { 82629, true }, - { 82661, true }, - { 82689, true }, - { 82718, true }, - { 82752, true }, + { 82568, true }, + { 82599, true }, + { 82631, true }, + { 82659, true }, + { 82688, true }, + { 82722, true }, + { 82760, true }, { 82790, true }, { 82820, true }, - { 82850, true }, - { 82879, true }, - { 82915, true }, + { 82849, true }, + { 82885, true }, + { 82897, true }, + { 82911, true }, { 82927, true }, - { 82941, true }, - { 82957, true }, - { 82978, true }, - { 82994, true }, - { 83004, true }, - { 83014, true }, - { 83029, true }, - { 83051, true }, - { 83060, true }, + { 82948, true }, + { 82964, true }, + { 82974, true }, + { 82984, true }, + { 82999, true }, + { 83021, true }, + { 83030, true }, + { 83044, true }, + { 83054, true }, { 83074, true }, - { 83084, true }, - { 83104, true }, - { 83119, true }, - { 83136, true }, - { 83147, true }, - { 83163, true }, - { 83179, true }, - { 83201, true }, - { 83220, true }, - { 83238, true }, - { 83246, true }, - { 83260, true }, - { 83275, true }, - { 83289, true }, - { 83298, true }, - { 83306, true }, - { 83315, true }, - { 83339, true }, - { 83352, true }, - { 83364, true }, - { 83387, true }, - { 83396, true }, - { 83412, true }, - { 83423, true }, - { 83438, true }, + { 83089, true }, + { 83106, true }, + { 83117, true }, + { 83133, true }, + { 83149, true }, + { 83171, true }, + { 83190, true }, + { 83208, true }, + { 83216, true }, + { 83230, true }, + { 83245, true }, + { 83259, true }, + { 83268, true }, + { 83276, true }, + { 83285, true }, + { 83309, true }, + { 83322, true }, + { 83334, true }, + { 83357, true }, + { 83366, true }, + { 83382, true }, + { 83393, true }, + { 83408, true }, + { 83421, true }, + { 83439, true }, { 83451, true }, - { 83469, true }, - { 83481, true }, - { 83497, true }, - { 83512, true }, - { 83522, true }, - { 83535, true }, - { 83551, true }, - { 83562, true }, - { 83577, true }, - { 83594, true }, - { 83605, true }, - { 83623, true }, - { 83632, true }, - { 83641, true }, - { 83651, true }, - { 83667, true }, - { 83684, true }, - { 83694, false }, - { 83713, true }, - { 83727, true }, - { 83741, true }, - { 83759, true }, - { 83767, true }, - { 83776, true }, - { 83791, true }, - { 83810, true }, - { 83818, true }, - { 83828, true }, - { 83843, true }, - { 83856, true }, + { 83467, true }, + { 83482, true }, + { 83492, true }, + { 83505, true }, + { 83521, true }, + { 83532, true }, + { 83547, true }, + { 83564, true }, + { 83575, true }, + { 83593, true }, + { 83602, true }, + { 83611, true }, + { 83621, true }, + { 83637, true }, + { 83654, true }, + { 83664, false }, + { 83683, true }, + { 83697, true }, + { 83711, true }, + { 83729, true }, + { 83737, true }, + { 83746, true }, + { 83761, true }, + { 83780, true }, + { 83788, true }, + { 83798, true }, + { 83813, true }, + { 83826, true }, + { 83836, true }, + { 83857, true }, { 83866, true }, - { 83887, true }, - { 83896, true }, - { 83905, true }, - { 83916, true }, - { 83932, true }, - { 83942, true }, - { 83961, true }, - { 83974, true }, - { 83992, true }, - { 84012, true }, - { 84032, true }, - { 84045, true }, - { 84056, true }, - { 84074, true }, - { 84084, true }, - { 84093, true }, - { 84103, true }, - { 84112, true }, - { 84121, true }, - { 84132, true }, - { 84140, true }, - { 84154, false }, - { 84161, true }, - { 84171, true }, - { 84185, true }, - { 84198, true }, - { 84210, true }, - { 84224, true }, - { 84238, true }, - { 84252, true }, - { 84267, true }, - { 84274, true }, - { 84287, false }, - { 84302, true }, - { 84322, true }, - { 84342, true }, - { 84359, true }, - { 84371, true }, + { 83875, true }, + { 83886, true }, + { 83902, true }, + { 83912, true }, + { 83925, true }, + { 83943, true }, + { 83963, true }, + { 83983, true }, + { 83996, true }, + { 84007, true }, + { 84025, true }, + { 84035, true }, + { 84044, true }, + { 84054, true }, + { 84063, true }, + { 84072, true }, + { 84080, true }, + { 84094, false }, + { 84101, true }, + { 84111, true }, + { 84125, true }, + { 84138, true }, + { 84150, true }, + { 84164, true }, + { 84178, true }, + { 84192, true }, + { 84207, true }, + { 84214, true }, + { 84227, false }, + { 84242, true }, + { 84262, true }, + { 84282, true }, + { 84299, true }, + { 84311, true }, + { 84319, true }, + { 84333, true }, + { 84348, true }, + { 84365, true }, { 84379, true }, - { 84393, true }, - { 84408, true }, - { 84425, true }, - { 84439, true }, - { 84446, true }, - { 84456, true }, - { 84471, true }, - { 84481, true }, - { 84491, true }, - { 84501, true }, - { 84511, true }, - { 84527, true }, - { 84538, true }, - { 84552, true }, - { 84569, true }, - { 84590, true }, - { 84599, true }, - { 84614, true }, - { 84628, true }, - { 84644, true }, - { 84664, true }, - { 84677, true }, - { 84687, true }, - { 84699, true }, - { 84713, true }, - { 84722, true }, - { 84731, true }, - { 84746, true }, - { 84756, true }, - { 84767, true }, - { 84781, true }, - { 84792, true }, - { 84800, true }, - { 84807, true }, - { 84821, true }, - { 84840, true }, - { 84854, true }, - { 84879, true }, - { 84897, true }, - { 84915, true }, - { 84929, true }, + { 84386, true }, + { 84396, true }, + { 84411, true }, + { 84421, true }, + { 84431, true }, + { 84441, true }, + { 84451, true }, + { 84467, true }, + { 84478, true }, + { 84492, true }, + { 84509, true }, + { 84530, true }, + { 84539, true }, + { 84554, true }, + { 84568, true }, + { 84584, true }, + { 84604, true }, + { 84617, true }, + { 84627, true }, + { 84639, true }, + { 84653, true }, + { 84662, true }, + { 84671, true }, + { 84686, true }, + { 84696, true }, + { 84707, true }, + { 84721, true }, + { 84732, true }, + { 84740, true }, + { 84747, true }, + { 84761, true }, + { 84780, true }, + { 84794, true }, + { 84819, true }, + { 84837, true }, + { 84855, true }, + { 84869, true }, + { 84878, true }, + { 84891, true }, + { 84908, true }, + { 84920, true }, { 84938, true }, { 84951, true }, { 84968, true }, - { 84980, true }, - { 84998, true }, - { 85011, true }, - { 85028, true }, - { 85045, true }, - { 85060, true }, + { 84985, true }, + { 85000, true }, + { 85012, true }, + { 85041, true }, + { 85059, false }, { 85072, true }, - { 85101, true }, - { 85119, false }, - { 85132, true }, - { 85148, true }, - { 85164, true }, - { 85176, true }, - { 85189, true }, - { 85202, true }, - { 85215, true }, - { 85227, true }, - { 85244, true }, - { 85254, false }, - { 85272, true }, - { 85285, true }, - { 85302, true }, - { 85315, true }, - { 85331, true }, - { 85350, true }, - { 85364, true }, - { 85379, true }, - { 85386, true }, - { 85415, true }, - { 85437, true }, - { 85458, true }, - { 85485, true }, - { 85505, true }, - { 85513, true }, - { 85524, true }, - { 85536, true }, - { 85556, true }, - { 85575, false }, + { 85088, true }, + { 85104, true }, + { 85116, true }, + { 85129, true }, + { 85142, true }, + { 85155, true }, + { 85167, true }, + { 85184, true }, + { 85194, false }, + { 85212, true }, + { 85225, true }, + { 85242, true }, + { 85255, true }, + { 85271, true }, + { 85290, true }, + { 85304, true }, + { 85319, true }, + { 85326, true }, + { 85355, true }, + { 85377, true }, + { 85398, true }, + { 85425, true }, + { 85445, true }, + { 85453, true }, + { 85464, true }, + { 85476, true }, + { 85496, true }, + { 85515, false }, + { 85532, true }, + { 85548, true }, + { 85562, true }, + { 85581, true }, { 85592, true }, - { 85608, true }, + { 85604, true }, { 85622, true }, - { 85641, true }, - { 85652, true }, - { 85664, true }, - { 85682, true }, - { 85698, false }, + { 85638, false }, + { 85653, true }, + { 85674, true }, + { 85689, true }, + { 85701, true }, { 85713, true }, - { 85734, true }, - { 85749, true }, - { 85761, true }, - { 85773, true }, - { 85790, true }, - { 85805, true }, - { 85819, true }, + { 85730, true }, + { 85745, true }, + { 85759, true }, + { 85777, true }, + { 85791, true }, + { 85800, true }, + { 85810, true }, + { 85821, true }, { 85837, true }, - { 85851, true }, - { 85860, true }, + { 85853, true }, { 85870, true }, - { 85881, true }, - { 85897, true }, - { 85913, true }, - { 85930, true }, - { 85948, true }, - { 85962, true }, - { 85976, true }, - { 85987, true }, - { 86005, true }, - { 86018, true }, - { 86032, true }, - { 86046, true }, - { 86059, true }, - { 86070, true }, - { 86084, true }, - { 86093, true }, - { 86104, true }, - { 86123, true }, - { 86147, true }, - { 86168, true }, - { 86180, true }, - { 86191, false }, - { 86204, true }, - { 86210, true }, - { 86220, true }, - { 86229, true }, - { 86243, true }, - { 86255, true }, - { 86265, true }, - { 86285, true }, - { 86297, true }, - { 86313, true }, - { 86324, true }, - { 86336, true }, - { 86351, true }, - { 86368, true }, - { 86379, true }, - { 86395, true }, - { 86417, false }, - { 86432, true }, - { 86442, true }, - { 86461, true }, - { 86477, true }, - { 86489, true }, - { 86511, true }, - { 86522, true }, - { 86539, true }, - { 86558, true }, - { 86572, true }, - { 86594, true }, - { 86617, true }, - { 86634, true }, - { 86650, true }, - { 86663, true }, - { 86674, true }, - { 86687, true }, - { 86696, false }, - { 86705, true }, - { 86717, true }, - { 86728, true }, - { 86745, true }, - { 86761, true }, - { 86775, true }, - { 86784, true }, - { 86798, true }, - { 86816, true }, - { 86833, false }, - { 86841, true }, - { 86850, true }, - { 86863, true }, - { 86880, true }, - { 86890, true }, - { 86902, true }, - { 86912, true }, - { 86960, true }, - { 87004, true }, - { 87042, true }, - { 87081, true }, - { 87116, true }, - { 87156, true }, - { 87200, true }, - { 87236, true }, - { 87277, true }, - { 87314, true }, - { 87358, true }, - { 87385, true }, + { 85888, true }, + { 85902, true }, + { 85916, true }, + { 85927, true }, + { 85945, true }, + { 85958, true }, + { 85972, true }, + { 85986, true }, + { 85999, true }, + { 86010, true }, + { 86024, true }, + { 86033, true }, + { 86044, true }, + { 86063, true }, + { 86087, true }, + { 86108, true }, + { 86120, true }, + { 86131, false }, + { 86144, true }, + { 86150, true }, + { 86160, true }, + { 86169, true }, + { 86183, true }, + { 86195, true }, + { 86205, true }, + { 86225, true }, + { 86237, true }, + { 86253, true }, + { 86264, true }, + { 86276, true }, + { 86291, true }, + { 86308, true }, + { 86319, true }, + { 86335, true }, + { 86357, false }, + { 86372, true }, + { 86382, true }, + { 86401, true }, + { 86417, true }, + { 86429, true }, + { 86451, true }, + { 86462, true }, + { 86479, true }, + { 86498, true }, + { 86512, true }, + { 86534, true }, + { 86557, true }, + { 86574, true }, + { 86590, true }, + { 86603, true }, + { 86614, true }, + { 86627, true }, + { 86636, true }, + { 86648, true }, + { 86659, true }, + { 86676, true }, + { 86692, true }, + { 86706, true }, + { 86715, true }, + { 86729, true }, + { 86747, true }, + { 86764, false }, + { 86772, true }, + { 86781, true }, + { 86794, true }, + { 86811, true }, + { 86821, true }, + { 86833, true }, + { 86843, true }, + { 86891, true }, + { 86935, true }, + { 86973, true }, + { 87012, true }, + { 87047, true }, + { 87087, true }, + { 87131, true }, + { 87167, true }, + { 87208, true }, + { 87245, true }, + { 87289, true }, + { 87316, true }, + { 87328, true }, + { 87335, true }, + { 87357, true }, + { 87365, true }, + { 87375, true }, + { 87382, true }, { 87397, true }, - { 87404, true }, - { 87426, true }, - { 87434, true }, - { 87444, true }, - { 87451, true }, - { 87466, true }, - { 87472, true }, - { 87480, true }, - { 87492, true }, - { 87515, true }, + { 87403, true }, + { 87411, true }, + { 87423, true }, + { 87446, true }, + { 87464, true }, + { 87473, true }, + { 87489, true }, + { 87502, true }, + { 87511, true }, { 87533, true }, - { 87542, true }, - { 87558, true }, - { 87571, true }, - { 87580, true }, - { 87602, true }, - { 87609, true }, - { 87621, true }, - { 87634, true }, - { 87643, true }, + { 87540, true }, + { 87552, true }, + { 87565, true }, + { 87574, true }, + { 87589, true }, + { 87603, true }, + { 87613, true }, + { 87622, true }, + { 87633, false }, + { 87645, true }, { 87658, true }, - { 87672, true }, - { 87682, true }, - { 87691, true }, - { 87702, false }, - { 87714, true }, - { 87727, true }, - { 87743, true }, - { 87752, true }, - { 87761, true }, - { 87782, true }, - { 87793, true }, - { 87810, true }, - { 87827, true }, + { 87674, true }, + { 87683, true }, + { 87692, true }, + { 87713, true }, + { 87724, true }, + { 87741, true }, + { 87758, true }, + { 87770, true }, + { 87780, true }, + { 87803, true }, + { 87817, true }, { 87839, true }, - { 87849, true }, - { 87872, true }, - { 87886, true }, - { 87908, true }, - { 87924, true }, - { 87939, true }, - { 87954, true }, - { 87964, true }, - { 87990, true }, - { 88001, true }, - { 88012, true }, - { 88028, true }, - { 88037, true }, - { 88048, true }, - { 88063, true }, - { 88092, true }, - { 88105, true }, - { 88121, true }, - { 88135, true }, - { 88163, true }, - { 88183, true }, - { 88199, true }, + { 87855, true }, + { 87870, true }, + { 87885, true }, + { 87895, true }, + { 87921, true }, + { 87932, true }, + { 87943, true }, + { 87959, true }, + { 87968, true }, + { 87979, true }, + { 87994, true }, + { 88023, true }, + { 88036, true }, + { 88052, true }, + { 88066, true }, + { 88094, true }, + { 88114, true }, + { 88130, true }, + { 88151, true }, + { 88163, false }, + { 88181, true }, + { 88191, false }, + { 88199, false }, + { 88210, true }, { 88220, true }, - { 88232, false }, - { 88250, true }, - { 88260, false }, - { 88268, false }, - { 88279, true }, - { 88289, true }, - { 88310, true }, - { 88328, true }, - { 88338, true }, - { 88359, true }, - { 88368, true }, - { 88383, true }, - { 88397, true }, - { 88414, true }, - { 88427, true }, - { 88442, true }, - { 88457, true }, - { 88468, true }, - { 88480, true }, - { 88492, true }, - { 88501, true }, - { 88510, false }, - { 88522, true }, - { 88538, true }, - { 88549, true }, - { 88565, true }, - { 88585, true }, - { 88604, true }, - { 88626, true }, - { 88647, true }, - { 88678, true }, - { 88702, true }, - { 88721, true }, - { 88741, true }, - { 88761, true }, - { 88777, true }, - { 88795, true }, - { 88812, true }, - { 88831, true }, - { 88855, true }, - { 88874, true }, - { 88892, true }, - { 88909, true }, - { 88931, true }, - { 88947, true }, - { 88967, true }, - { 88987, true }, - { 89004, true }, - { 89026, true }, - { 89043, true }, + { 88241, true }, + { 88259, true }, + { 88269, true }, + { 88290, true }, + { 88299, true }, + { 88309, true }, + { 88319, true }, + { 88334, true }, + { 88348, true }, + { 88365, true }, + { 88378, true }, + { 88393, true }, + { 88408, true }, + { 88419, true }, + { 88431, true }, + { 88443, true }, + { 88452, true }, + { 88461, false }, + { 88473, true }, + { 88489, true }, + { 88500, true }, + { 88516, true }, + { 88536, true }, + { 88555, true }, + { 88577, true }, + { 88598, true }, + { 88629, true }, + { 88653, true }, + { 88672, true }, + { 88692, true }, + { 88712, true }, + { 88728, true }, + { 88746, true }, + { 88763, true }, + { 88782, true }, + { 88806, true }, + { 88825, true }, + { 88843, true }, + { 88860, true }, + { 88882, true }, + { 88898, true }, + { 88918, true }, + { 88938, true }, + { 88955, true }, + { 88977, true }, + { 88994, true }, + { 89010, true }, + { 89027, true }, + { 89042, true }, { 89059, true }, - { 89076, true }, - { 89091, true }, - { 89108, true }, - { 89124, false }, - { 89139, true }, - { 89158, true }, - { 89180, true }, - { 89202, true }, - { 89224, true }, - { 89239, true }, - { 89256, true }, - { 89271, true }, - { 89290, true }, - { 89304, true }, - { 89317, true }, - { 89330, true }, - { 89346, true }, + { 89075, false }, + { 89090, true }, + { 89109, true }, + { 89131, true }, + { 89153, true }, + { 89175, true }, + { 89190, true }, + { 89207, true }, + { 89222, true }, + { 89241, true }, + { 89255, true }, + { 89268, true }, + { 89281, true }, + { 89297, true }, + { 89312, true }, + { 89327, true }, + { 89338, true }, + { 89348, true }, { 89361, true }, - { 89376, true }, - { 89387, true }, - { 89397, true }, - { 89410, true }, - { 89426, true }, - { 89438, true }, - { 89451, false }, - { 89461, false }, - { 89470, true }, - { 89492, true }, - { 89512, true }, - { 89533, true }, + { 89377, true }, + { 89389, true }, + { 89402, false }, + { 89412, false }, + { 89421, true }, + { 89443, true }, + { 89463, true }, + { 89484, true }, + { 89498, true }, + { 89509, true }, + { 89526, true }, { 89547, true }, - { 89558, true }, - { 89575, true }, - { 89596, true }, - { 89612, true }, - { 89634, true }, - { 89658, false }, - { 89675, true }, - { 89684, true }, - { 89697, true }, - { 89711, true }, - { 89725, true }, - { 89741, true }, - { 89754, true }, - { 89767, true }, - { 89780, true }, + { 89563, true }, + { 89585, true }, + { 89609, false }, + { 89626, true }, + { 89635, true }, + { 89648, true }, + { 89662, true }, + { 89676, true }, + { 89692, true }, + { 89705, true }, + { 89718, true }, + { 89731, true }, + { 89750, true }, + { 89761, true }, + { 89770, true }, + { 89779, true }, + { 89789, true }, { 89799, true }, - { 89810, true }, - { 89819, true }, - { 89828, true }, - { 89838, true }, - { 89848, true }, - { 89857, true }, - { 89873, true }, - { 89889, true }, - { 89900, true }, - { 89927, true }, - { 89951, true }, - { 89962, true }, - { 89979, true }, - { 89999, true }, - { 90012, true }, - { 90026, true }, - { 90043, true }, - { 90058, true }, - { 90081, true }, - { 90091, true }, - { 90101, true }, - { 90116, true }, + { 89808, true }, + { 89824, true }, + { 89840, true }, + { 89851, true }, + { 89878, true }, + { 89902, true }, + { 89913, true }, + { 89930, true }, + { 89950, true }, + { 89963, true }, + { 89977, true }, + { 89994, true }, + { 90009, true }, + { 90032, true }, + { 90042, true }, + { 90052, true }, + { 90067, true }, + { 90088, true }, + { 90098, true }, + { 90117, true }, { 90137, true }, - { 90147, true }, - { 90166, true }, - { 90186, true }, + { 90151, true }, + { 90176, true }, { 90200, true }, - { 90225, true }, - { 90249, true }, - { 90258, true }, - { 90275, true }, - { 90296, true }, - { 90303, true }, - { 90323, true }, - { 90335, true }, - { 90348, true }, - { 90362, true }, - { 90379, false }, - { 90392, true }, - { 90410, true }, - { 90427, true }, - { 90436, true }, - { 90454, true }, - { 90470, true }, - { 90483, true }, - { 90498, true }, - { 90514, true }, - { 90525, true }, - { 90545, true }, - { 90566, true }, - { 90579, true }, - { 90597, true }, - { 90613, true }, - { 90627, true }, + { 90209, true }, + { 90226, true }, + { 90247, true }, + { 90254, true }, + { 90274, true }, + { 90286, true }, + { 90299, true }, + { 90313, true }, + { 90330, false }, + { 90343, true }, + { 90361, true }, + { 90378, true }, + { 90387, true }, + { 90405, true }, + { 90421, true }, + { 90434, true }, + { 90449, true }, + { 90465, true }, + { 90476, true }, + { 90496, true }, + { 90517, true }, + { 90530, true }, + { 90548, true }, + { 90564, true }, + { 90578, true }, + { 90589, true }, + { 90603, true }, + { 90620, true }, + { 90629, true }, { 90638, true }, - { 90652, true }, - { 90669, true }, - { 90678, true }, - { 90687, true }, - { 90701, false }, - { 90729, true }, - { 90738, true }, - { 90747, true }, - { 90756, true }, - { 90766, true }, - { 90782, true }, - { 90792, true }, - { 90804, true }, - { 90818, false }, - { 90832, false }, - { 90847, true }, - { 90871, true }, - { 90892, true }, - { 90914, true }, - { 90924, true }, - { 90936, true }, - { 90962, true }, - { 90976, true }, - { 90993, true }, - { 91006, true }, - { 91034, true }, - { 91046, true }, - { 91059, true }, + { 90652, false }, + { 90680, true }, + { 90689, true }, + { 90698, true }, + { 90707, true }, + { 90717, true }, + { 90733, true }, + { 90743, true }, + { 90755, true }, + { 90769, false }, + { 90783, false }, + { 90798, true }, + { 90822, true }, + { 90843, true }, + { 90865, true }, + { 90875, true }, + { 90887, true }, + { 90913, true }, + { 90927, true }, + { 90944, true }, + { 90957, true }, + { 90985, true }, + { 90997, true }, + { 91010, true }, + { 91022, true }, + { 91034, false }, + { 91058, true }, { 91071, true }, - { 91083, false }, - { 91107, true }, - { 91120, true }, - { 91139, true }, - { 91163, true }, - { 91179, true }, - { 91189, true }, - { 91205, true }, - { 91221, true }, - { 91240, true }, + { 91090, true }, + { 91114, true }, + { 91130, true }, + { 91140, true }, + { 91156, true }, + { 91172, true }, + { 91191, true }, + { 91210, true }, + { 91227, true }, + { 91241, true }, { 91259, true }, - { 91276, true }, - { 91290, true }, + { 91282, true }, + { 91300, true }, { 91308, true }, - { 91331, true }, - { 91349, true }, - { 91357, true }, - { 91374, true }, - { 91391, true }, - { 91399, false }, - { 91425, true }, - { 91442, true }, - { 91456, true }, - { 91467, true }, - { 91479, true }, - { 91499, true }, - { 91518, true }, - { 91534, true }, - { 91552, true }, - { 91570, true }, - { 91580, true }, - { 91595, true }, - { 91607, true }, - { 91622, true }, - { 91640, true }, - { 91658, true }, - { 91677, true }, - { 91687, true }, - { 91701, true }, + { 91325, true }, + { 91342, true }, + { 91350, true }, + { 91367, true }, + { 91381, true }, + { 91392, true }, + { 91404, true }, + { 91424, true }, + { 91443, true }, + { 91459, true }, + { 91477, true }, + { 91495, true }, + { 91505, true }, + { 91520, true }, + { 91532, true }, + { 91547, true }, + { 91565, true }, + { 91583, true }, + { 91602, true }, + { 91612, true }, + { 91626, true }, + { 91636, true }, + { 91647, true }, + { 91666, true }, + { 91676, true }, + { 91692, true }, { 91711, true }, - { 91722, true }, - { 91741, true }, - { 91751, true }, - { 91767, true }, - { 91786, true }, - { 91796, true }, - { 91808, true }, - { 91819, true }, - { 91829, true }, - { 91844, true }, + { 91721, true }, + { 91733, true }, + { 91744, true }, + { 91754, true }, + { 91769, true }, + { 91785, true }, + { 91798, true }, + { 91821, true }, + { 91845, true }, { 91860, true }, - { 91873, true }, - { 91896, true }, - { 91920, true }, + { 91873, false }, + { 91885, true }, + { 91898, true }, + { 91912, true }, + { 91922, true }, { 91935, true }, - { 91948, false }, - { 91960, true }, - { 91973, true }, - { 91987, true }, - { 91997, true }, - { 92010, true }, - { 92025, true }, - { 92045, true }, - { 92055, true }, - { 92078, true }, - { 92096, true }, - { 92106, false }, - { 92123, true }, - { 92131, true }, - { 92147, true }, + { 91950, true }, + { 91970, true }, + { 91980, true }, + { 92003, true }, + { 92021, true }, + { 92031, false }, + { 92048, true }, + { 92056, true }, + { 92072, true }, + { 92087, true }, + { 92103, true }, + { 92119, true }, + { 92133, true }, + { 92149, true }, { 92162, true }, - { 92178, true }, - { 92194, true }, + { 92176, true }, + { 92188, true }, { 92208, true }, { 92224, true }, - { 92237, true }, + { 92241, true }, { 92251, true }, - { 92263, true }, - { 92283, true }, - { 92299, true }, - { 92316, true }, - { 92326, true }, - { 92341, true }, - { 92354, true }, - { 92373, true }, - { 92384, true }, - { 92397, true }, - { 92411, true }, - { 92424, true }, - { 92434, true }, - { 92449, true }, - { 92463, false }, - { 92477, false }, - { 92503, true }, - { 92515, true }, - { 92533, true }, - { 92549, true }, - { 92560, true }, - { 92566, true }, - { 92574, true }, - { 92595, true }, + { 92266, true }, + { 92279, true }, + { 92298, true }, + { 92309, true }, + { 92322, true }, + { 92336, true }, + { 92349, true }, + { 92359, true }, + { 92374, true }, + { 92388, false }, + { 92402, false }, + { 92428, true }, + { 92440, true }, + { 92458, true }, + { 92474, true }, + { 92485, true }, + { 92491, true }, + { 92499, true }, + { 92520, true }, + { 92544, true }, + { 92569, true }, + { 92581, true }, + { 92594, true }, + { 92607, true }, { 92619, true }, - { 92644, true }, - { 92656, true }, - { 92669, true }, - { 92682, true }, - { 92694, true }, - { 92713, true }, + { 92638, true }, + { 92653, true }, + { 92666, true }, + { 92686, true }, + { 92701, true }, + { 92717, true }, { 92728, true }, - { 92741, true }, - { 92761, true }, - { 92776, true }, - { 92792, true }, - { 92803, true }, - { 92821, true }, - { 92830, true }, - { 92841, true }, - { 92852, true }, - { 92863, true }, - { 92873, true }, - { 92887, true }, - { 92899, true }, - { 92914, true }, - { 92930, true }, - { 92940, true }, - { 92949, true }, - { 92959, true }, - { 92973, true }, - { 93007, true }, - { 93017, true }, - { 93030, true }, - { 93042, true }, - { 93051, true }, - { 93062, false }, - { 93075, true }, - { 93089, true }, - { 93101, true }, - { 93113, true }, - { 93135, true }, - { 93148, true }, - { 93160, true }, - { 93172, true }, - { 93184, true }, - { 93196, true }, - { 93208, true }, - { 93220, true }, - { 93232, true }, - { 93244, true }, - { 93260, true }, - { 93275, true }, - { 93294, true }, - { 93311, true }, - { 93333, true }, - { 93346, false }, - { 93366, true }, - { 93384, true }, - { 93394, true }, - { 93407, true }, - { 93421, true }, - { 93432, true }, - { 93445, true }, - { 93460, true }, - { 93479, true }, - { 93493, true }, - { 93504, true }, - { 93528, true }, - { 93545, false }, - { 93566, true }, - { 93578, true }, - { 93588, true }, - { 93601, true }, - { 93615, true }, - { 93624, true }, - { 93639, true }, - { 93647, true }, - { 93660, true }, - { 93671, true }, - { 93682, true }, - { 93694, true }, - { 93707, true }, - { 93716, true }, - { 93725, true }, - { 93734, true }, - { 93748, true }, - { 93762, true }, - { 93780, true }, - { 93802, true }, - { 93822, false }, - { 93847, true }, - { 93860, true }, - { 93869, true }, - { 93890, true }, - { 93900, true }, - { 93915, true }, - { 93930, true }, - { 93942, true }, - { 93954, true }, - { 93974, true }, - { 93999, true }, - { 94015, false }, - { 94043, true }, - { 94054, true }, - { 94067, true }, - { 94082, true }, - { 94097, true }, - { 94111, true }, - { 94120, true }, - { 94154, true }, - { 94164, true }, - { 94175, true }, - { 94201, false }, + { 92746, true }, + { 92755, true }, + { 92766, true }, + { 92777, true }, + { 92788, true }, + { 92798, true }, + { 92812, true }, + { 92824, true }, + { 92839, true }, + { 92855, true }, + { 92865, true }, + { 92874, true }, + { 92884, true }, + { 92898, true }, + { 92932, true }, + { 92942, true }, + { 92955, true }, + { 92967, true }, + { 92976, true }, + { 92987, false }, + { 93000, true }, + { 93014, true }, + { 93026, true }, + { 93038, true }, + { 93060, true }, + { 93073, true }, + { 93085, true }, + { 93097, true }, + { 93109, true }, + { 93121, true }, + { 93133, true }, + { 93145, true }, + { 93157, true }, + { 93169, true }, + { 93185, true }, + { 93200, true }, + { 93219, true }, + { 93236, true }, + { 93258, true }, + { 93271, false }, + { 93291, true }, + { 93309, true }, + { 93319, true }, + { 93332, true }, + { 93346, true }, + { 93357, true }, + { 93370, true }, + { 93385, true }, + { 93404, true }, + { 93418, true }, + { 93429, true }, + { 93453, true }, + { 93470, false }, + { 93491, true }, + { 93503, true }, + { 93513, true }, + { 93526, true }, + { 93540, true }, + { 93549, true }, + { 93564, true }, + { 93572, true }, + { 93585, true }, + { 93596, true }, + { 93607, true }, + { 93619, true }, + { 93632, true }, + { 93641, true }, + { 93650, true }, + { 93659, true }, + { 93673, true }, + { 93692, true }, + { 93706, true }, + { 93724, true }, + { 93746, true }, + { 93766, false }, + { 93791, true }, + { 93804, true }, + { 93813, true }, + { 93834, true }, + { 93844, true }, + { 93859, true }, + { 93874, true }, + { 93886, true }, + { 93898, true }, + { 93918, true }, + { 93943, true }, + { 93959, false }, + { 93987, true }, + { 93998, true }, + { 94011, true }, + { 94026, true }, + { 94041, true }, + { 94055, true }, + { 94064, true }, + { 94098, true }, + { 94108, true }, + { 94119, true }, + { 94145, false }, + { 94160, true }, + { 94169, true }, + { 94181, true }, + { 94191, true }, + { 94205, false }, { 94216, true }, - { 94225, true }, - { 94237, true }, - { 94247, true }, - { 94256, true }, - { 94270, false }, - { 94281, true }, - { 94298, true }, - { 94306, true }, - { 94314, true }, - { 94325, true }, - { 94334, true }, - { 94349, true }, - { 94361, true }, - { 94375, true }, - { 94389, true }, - { 94409, true }, - { 94421, true }, - { 94433, true }, - { 94451, true }, - { 94467, true }, - { 94484, true }, - { 94497, true }, - { 94507, true }, - { 94521, true }, - { 94533, true }, - { 94547, true }, - { 94554, true }, - { 94563, true }, - { 94571, true }, - { 94584, true }, - { 94594, true }, - { 94613, true }, - { 94627, true }, - { 94642, true }, + { 94233, true }, + { 94241, true }, + { 94249, true }, + { 94260, true }, + { 94269, true }, + { 94284, true }, + { 94296, true }, + { 94310, true }, + { 94324, true }, + { 94344, true }, + { 94356, true }, + { 94368, true }, + { 94386, true }, + { 94402, true }, + { 94419, true }, + { 94432, true }, + { 94442, true }, + { 94456, true }, + { 94468, true }, + { 94482, true }, + { 94489, true }, + { 94498, true }, + { 94506, true }, + { 94519, true }, + { 94529, true }, + { 94548, true }, + { 94562, true }, + { 94577, true }, + { 94590, true }, + { 94604, true }, + { 94621, true }, + { 94638, true }, { 94655, true }, - { 94669, true }, - { 94686, true }, - { 94703, true }, + { 94668, true }, + { 94681, true }, + { 94694, true }, + { 94707, true }, { 94720, true }, { 94733, true }, { 94746, true }, @@ -28741,15982 +28728,15965 @@ static const nsSTSPreload kSTSPreloadList[] = { { 94798, true }, { 94811, true }, { 94824, true }, - { 94837, true }, - { 94850, true }, - { 94863, true }, - { 94876, true }, - { 94889, true }, - { 94903, true }, - { 94914, true }, - { 94923, true }, - { 94931, true }, - { 94944, true }, - { 94960, true }, - { 94983, true }, - { 95001, true }, - { 95015, true }, - { 95029, true }, - { 95043, true }, - { 95058, true }, - { 95072, true }, - { 95086, true }, - { 95100, true }, - { 95115, true }, - { 95129, true }, + { 94838, true }, + { 94849, true }, + { 94858, true }, + { 94866, true }, + { 94879, true }, + { 94895, true }, + { 94918, true }, + { 94936, true }, + { 94950, true }, + { 94964, true }, + { 94978, true }, + { 94993, true }, + { 95007, true }, + { 95021, true }, + { 95035, true }, + { 95050, true }, + { 95064, true }, + { 95078, true }, + { 95092, true }, + { 95106, true }, + { 95123, true }, { 95143, true }, - { 95157, true }, - { 95171, true }, - { 95188, true }, - { 95208, true }, - { 95229, true }, - { 95261, true }, - { 95286, true }, - { 95298, true }, - { 95308, true }, - { 95320, true }, - { 95335, true }, - { 95357, true }, - { 95376, true }, - { 95388, true }, - { 95402, true }, - { 95420, true }, - { 95434, true }, - { 95445, true }, - { 95463, true }, - { 95470, true }, - { 95480, true }, - { 95495, true }, - { 95512, true }, - { 95530, true }, - { 95543, true }, - { 95562, true }, - { 95572, true }, + { 95164, true }, + { 95196, true }, + { 95221, true }, + { 95233, true }, + { 95243, true }, + { 95255, true }, + { 95270, true }, + { 95292, true }, + { 95311, true }, + { 95323, true }, + { 95337, true }, + { 95355, true }, + { 95369, true }, + { 95380, true }, + { 95398, true }, + { 95405, true }, + { 95415, true }, + { 95427, true }, + { 95442, true }, + { 95459, true }, + { 95477, true }, + { 95490, true }, + { 95509, true }, + { 95519, true }, + { 95539, true }, + { 95557, true }, + { 95570, true }, + { 95580, true }, { 95592, true }, - { 95610, true }, + { 95606, true }, { 95623, true }, - { 95633, true }, - { 95645, true }, - { 95659, true }, - { 95676, true }, + { 95636, true }, + { 95649, true }, + { 95662, true }, + { 95679, true }, { 95689, true }, - { 95702, true }, - { 95715, true }, - { 95732, true }, - { 95742, true }, - { 95758, true }, - { 95784, true }, + { 95705, true }, + { 95731, true }, + { 95743, true }, + { 95755, true }, + { 95768, false }, + { 95783, true }, { 95796, true }, - { 95808, true }, - { 95821, false }, - { 95836, true }, - { 95849, true }, - { 95865, true }, - { 95882, true }, - { 95896, true }, - { 95913, true }, - { 95925, true }, - { 95939, true }, - { 95958, true }, + { 95812, true }, + { 95829, true }, + { 95843, true }, + { 95860, true }, + { 95874, true }, + { 95893, true }, + { 95904, true }, + { 95911, true }, + { 95923, true }, + { 95932, true }, + { 95943, true }, + { 95957, true }, { 95969, true }, - { 95976, true }, - { 95988, true }, - { 95997, true }, - { 96008, true }, - { 96022, true }, - { 96034, true }, - { 96047, true }, - { 96072, true }, - { 96095, true }, - { 96106, true }, - { 96116, true }, + { 95982, true }, + { 96007, true }, + { 96030, true }, + { 96041, true }, + { 96051, true }, + { 96062, true }, + { 96073, true }, + { 96086, true }, + { 96101, true }, + { 96115, true }, { 96127, true }, { 96138, true }, - { 96151, true }, - { 96166, true }, - { 96180, true }, - { 96192, true }, - { 96203, true }, - { 96214, true }, - { 96223, true }, - { 96233, true }, - { 96242, true }, - { 96255, true }, - { 96263, true }, - { 96283, true }, - { 96303, false }, + { 96149, true }, + { 96158, true }, + { 96168, true }, + { 96177, true }, + { 96190, true }, + { 96198, true }, + { 96218, true }, + { 96238, false }, + { 96256, true }, + { 96274, true }, + { 96292, true }, + { 96309, true }, { 96321, true }, - { 96339, true }, - { 96357, true }, - { 96374, true }, - { 96386, true }, - { 96400, true }, - { 96423, true }, - { 96433, true }, - { 96448, true }, - { 96462, true }, - { 96478, true }, - { 96491, true }, - { 96514, true }, - { 96522, true }, - { 96534, true }, - { 96548, true }, - { 96569, true }, - { 96576, true }, - { 96589, true }, - { 96602, true }, - { 96622, true }, - { 96640, true }, - { 96658, true }, - { 96680, true }, - { 96693, true }, - { 96713, true }, - { 96728, true }, - { 96739, true }, - { 96753, true }, - { 96764, true }, - { 96777, true }, - { 96790, true }, - { 96809, true }, - { 96824, true }, - { 96839, true }, - { 96859, true }, - { 96876, true }, - { 96892, true }, - { 96911, true }, - { 96930, true }, - { 96947, true }, - { 96962, true }, - { 96974, true }, - { 96981, true }, - { 96997, true }, - { 97024, true }, - { 97052, true }, - { 97076, true }, - { 97095, true }, - { 97112, true }, - { 97130, true }, - { 97148, false }, - { 97166, true }, - { 97175, true }, - { 97198, true }, - { 97212, true }, - { 97224, true }, - { 97239, true }, - { 97251, true }, - { 97264, true }, - { 97278, true }, - { 97288, true }, - { 97299, false }, - { 97309, true }, - { 97329, true }, - { 97339, true }, - { 97352, true }, - { 97367, true }, - { 97376, true }, - { 97388, true }, - { 97404, true }, - { 97414, true }, - { 97421, true }, - { 97438, true }, - { 97455, true }, - { 97468, true }, - { 97476, true }, - { 97483, true }, - { 97496, true }, - { 97505, true }, - { 97518, true }, - { 97531, true }, - { 97549, true }, - { 97564, true }, - { 97580, true }, - { 97596, true }, - { 97607, true }, - { 97621, true }, - { 97639, true }, - { 97650, true }, - { 97667, true }, - { 97684, true }, - { 97694, true }, - { 97721, true }, - { 97756, true }, - { 97773, true }, - { 97789, true }, - { 97815, true }, - { 97827, false }, - { 97840, true }, - { 97861, true }, - { 97874, true }, - { 97886, true }, + { 96335, true }, + { 96358, true }, + { 96368, true }, + { 96383, true }, + { 96397, true }, + { 96413, true }, + { 96426, true }, + { 96449, true }, + { 96457, true }, + { 96469, true }, + { 96483, true }, + { 96504, true }, + { 96511, true }, + { 96524, true }, + { 96537, true }, + { 96557, true }, + { 96575, true }, + { 96593, true }, + { 96615, true }, + { 96628, true }, + { 96648, true }, + { 96663, true }, + { 96674, true }, + { 96688, true }, + { 96699, true }, + { 96712, true }, + { 96725, true }, + { 96744, true }, + { 96759, true }, + { 96774, true }, + { 96794, true }, + { 96811, true }, + { 96827, true }, + { 96846, true }, + { 96865, true }, + { 96882, true }, + { 96897, true }, + { 96909, true }, + { 96916, true }, + { 96932, true }, + { 96959, true }, + { 96987, true }, + { 97011, true }, + { 97030, true }, + { 97047, true }, + { 97065, true }, + { 97083, true }, + { 97092, true }, + { 97115, true }, + { 97129, true }, + { 97141, true }, + { 97156, true }, + { 97168, true }, + { 97181, true }, + { 97195, true }, + { 97205, true }, + { 97216, false }, + { 97226, true }, + { 97246, true }, + { 97256, true }, + { 97269, true }, + { 97284, true }, + { 97293, true }, + { 97305, true }, + { 97321, true }, + { 97331, true }, + { 97338, true }, + { 97355, true }, + { 97372, true }, + { 97385, true }, + { 97393, true }, + { 97400, true }, + { 97413, true }, + { 97422, true }, + { 97435, true }, + { 97448, true }, + { 97466, true }, + { 97481, true }, + { 97497, true }, + { 97513, true }, + { 97524, true }, + { 97538, true }, + { 97556, true }, + { 97567, true }, + { 97584, true }, + { 97601, true }, + { 97611, true }, + { 97638, true }, + { 97673, true }, + { 97690, true }, + { 97706, true }, + { 97732, true }, + { 97744, false }, + { 97757, true }, + { 97778, true }, + { 97791, true }, + { 97803, true }, + { 97822, true }, + { 97847, true }, + { 97869, true }, + { 97890, true }, { 97905, true }, - { 97930, true }, - { 97952, true }, - { 97973, true }, + { 97925, false }, + { 97935, true }, + { 97954, true }, + { 97971, true }, { 97988, true }, - { 98008, false }, - { 98018, true }, - { 98037, true }, - { 98054, true }, - { 98071, true }, - { 98081, true }, - { 98091, true }, - { 98104, true }, - { 98116, true }, + { 97998, true }, + { 98008, true }, + { 98021, true }, + { 98033, true }, + { 98044, true }, + { 98059, true }, + { 98072, true }, + { 98087, true }, + { 98100, true }, + { 98113, true }, { 98127, true }, - { 98142, true }, - { 98155, true }, - { 98170, true }, - { 98183, true }, - { 98196, true }, - { 98210, true }, - { 98233, true }, - { 98258, true }, - { 98273, true }, - { 98285, true }, - { 98298, true }, - { 98312, true }, - { 98331, true }, - { 98343, true }, - { 98354, true }, - { 98378, true }, - { 98400, true }, - { 98421, true }, - { 98446, true }, - { 98469, true }, - { 98489, true }, - { 98500, true }, - { 98512, true }, - { 98524, true }, - { 98540, true }, - { 98557, true }, - { 98577, true }, - { 98594, true }, - { 98611, true }, - { 98632, true }, - { 98655, true }, - { 98671, true }, - { 98691, true }, - { 98704, true }, - { 98718, true }, + { 98150, true }, + { 98175, true }, + { 98190, true }, + { 98202, true }, + { 98215, true }, + { 98229, true }, + { 98248, true }, + { 98260, true }, + { 98271, true }, + { 98295, true }, + { 98317, true }, + { 98338, true }, + { 98363, true }, + { 98386, true }, + { 98406, true }, + { 98417, true }, + { 98429, true }, + { 98441, true }, + { 98457, true }, + { 98474, true }, + { 98494, true }, + { 98511, true }, + { 98528, true }, + { 98549, true }, + { 98572, true }, + { 98588, true }, + { 98608, true }, + { 98621, true }, + { 98635, true }, + { 98651, true }, + { 98666, true }, + { 98676, true }, + { 98687, true }, + { 98706, true }, + { 98722, true }, { 98734, true }, - { 98749, true }, - { 98759, true }, - { 98770, true }, - { 98789, true }, - { 98805, true }, - { 98817, true }, - { 98827, true }, - { 98837, true }, - { 98845, true }, - { 98880, true }, - { 98914, true }, - { 98951, true }, - { 98971, true }, - { 98985, true }, - { 98998, true }, - { 99011, true }, - { 99020, true }, - { 99027, true }, - { 99034, false }, - { 99050, true }, - { 99059, true }, - { 99076, true }, - { 99091, true }, - { 99105, true }, - { 99117, true }, - { 99129, true }, - { 99152, true }, - { 99166, true }, - { 99181, true }, - { 99192, true }, - { 99203, true }, - { 99213, true }, - { 99223, true }, - { 99239, true }, + { 98744, true }, + { 98754, true }, + { 98762, true }, + { 98797, true }, + { 98831, true }, + { 98868, true }, + { 98888, true }, + { 98902, true }, + { 98915, true }, + { 98928, true }, + { 98937, true }, + { 98944, true }, + { 98951, false }, + { 98967, true }, + { 98976, true }, + { 98993, true }, + { 99008, true }, + { 99022, true }, + { 99034, true }, + { 99046, true }, + { 99069, true }, + { 99083, true }, + { 99098, true }, + { 99109, true }, + { 99120, true }, + { 99130, true }, + { 99140, true }, + { 99156, true }, + { 99168, true }, + { 99183, true }, + { 99199, true }, + { 99216, true }, + { 99233, true }, { 99251, true }, - { 99266, true }, - { 99282, true }, - { 99299, true }, - { 99316, true }, - { 99334, true }, - { 99355, true }, - { 99372, true }, - { 99389, true }, - { 99406, true }, - { 99423, true }, - { 99440, true }, + { 99272, true }, + { 99289, true }, + { 99306, true }, + { 99323, true }, + { 99340, true }, + { 99357, true }, + { 99374, true }, + { 99391, true }, + { 99408, true }, + { 99427, true }, + { 99443, true }, { 99457, true }, - { 99474, true }, - { 99491, true }, - { 99510, true }, - { 99526, true }, + { 99482, true }, + { 99493, true }, + { 99508, true }, + { 99524, true }, { 99540, true }, - { 99565, true }, - { 99576, true }, - { 99591, true }, - { 99607, true }, - { 99623, true }, - { 99639, true }, - { 99661, false }, - { 99674, true }, - { 99691, false }, - { 99711, true }, - { 99724, true }, - { 99733, false }, - { 99749, false }, - { 99763, true }, - { 99776, true }, + { 99562, false }, + { 99575, true }, + { 99592, false }, + { 99612, true }, + { 99625, true }, + { 99634, false }, + { 99650, false }, + { 99664, true }, + { 99677, true }, + { 99688, true }, + { 99702, true }, + { 99718, true }, + { 99729, true }, + { 99736, true }, + { 99748, true }, + { 99762, true }, + { 99777, true }, { 99787, true }, - { 99801, true }, - { 99817, true }, - { 99828, true }, - { 99835, true }, - { 99847, true }, - { 99861, true }, - { 99876, true }, - { 99886, true }, - { 99895, true }, - { 99905, true }, - { 99916, false }, - { 99926, true }, - { 99935, true }, - { 99948, true }, - { 99967, true }, - { 99977, true }, - { 99999, true }, - { 100008, true }, - { 100018, true }, - { 100041, true }, - { 100057, false }, - { 100077, true }, + { 99796, true }, + { 99806, true }, + { 99817, false }, + { 99827, true }, + { 99836, true }, + { 99849, true }, + { 99868, true }, + { 99878, true }, + { 99900, true }, + { 99909, true }, + { 99919, true }, + { 99942, true }, + { 99958, false }, + { 99978, true }, + { 100001, true }, + { 100015, true }, + { 100027, true }, + { 100035, true }, + { 100052, true }, + { 100071, true }, + { 100088, true }, { 100100, true }, - { 100114, true }, - { 100126, true }, - { 100134, true }, - { 100151, true }, - { 100170, true }, - { 100187, true }, - { 100199, true }, - { 100210, true }, - { 100223, false }, - { 100235, true }, - { 100246, true }, - { 100260, true }, - { 100277, true }, - { 100292, true }, - { 100310, true }, - { 100320, true }, - { 100341, true }, - { 100349, true }, - { 100360, true }, - { 100374, true }, - { 100388, true }, - { 100401, false }, + { 100111, true }, + { 100124, false }, + { 100136, true }, + { 100147, true }, + { 100161, true }, + { 100178, true }, + { 100193, true }, + { 100211, true }, + { 100221, true }, + { 100242, true }, + { 100250, true }, + { 100261, true }, + { 100275, true }, + { 100289, true }, + { 100302, false }, + { 100315, true }, + { 100327, true }, + { 100342, true }, + { 100371, true }, + { 100385, true }, + { 100399, true }, { 100414, true }, - { 100426, true }, - { 100441, true }, - { 100470, true }, - { 100484, true }, - { 100498, true }, - { 100513, true }, - { 100527, true }, - { 100539, true }, - { 100553, true }, - { 100567, true }, - { 100579, true }, - { 100593, true }, - { 100605, true }, - { 100619, true }, - { 100637, true }, - { 100645, true }, - { 100661, true }, - { 100677, true }, - { 100689, true }, - { 100709, true }, - { 100723, true }, - { 100742, false }, - { 100771, true }, - { 100785, false }, - { 100799, true }, - { 100817, false }, - { 100838, true }, - { 100853, false }, - { 100866, true }, - { 100879, true }, - { 100890, true }, - { 100904, true }, - { 100922, true }, - { 100942, true }, - { 100954, true }, - { 100969, true }, - { 100992, true }, - { 101016, true }, - { 101040, true }, - { 101064, true }, - { 101074, true }, - { 101088, true }, - { 101110, true }, + { 100428, true }, + { 100440, true }, + { 100454, true }, + { 100468, true }, + { 100480, true }, + { 100494, true }, + { 100506, true }, + { 100520, true }, + { 100538, true }, + { 100546, true }, + { 100562, true }, + { 100578, true }, + { 100590, true }, + { 100610, true }, + { 100624, true }, + { 100643, false }, + { 100672, true }, + { 100686, false }, + { 100700, true }, + { 100718, false }, + { 100739, true }, + { 100754, false }, + { 100767, true }, + { 100780, true }, + { 100791, true }, + { 100805, true }, + { 100823, true }, + { 100843, true }, + { 100855, true }, + { 100870, true }, + { 100893, true }, + { 100917, true }, + { 100941, true }, + { 100965, true }, + { 100975, true }, + { 100989, true }, + { 101011, true }, + { 101029, true }, + { 101061, true }, + { 101076, true }, + { 101087, true }, + { 101095, true }, + { 101109, true }, + { 101118, true }, { 101128, true }, - { 101160, true }, - { 101175, true }, - { 101186, true }, - { 101194, true }, - { 101208, true }, - { 101217, true }, - { 101227, true }, - { 101238, true }, - { 101250, true }, - { 101262, true }, - { 101281, true }, - { 101296, true }, - { 101310, false }, - { 101330, true }, - { 101343, true }, - { 101358, true }, - { 101372, true }, - { 101383, true }, - { 101392, true }, - { 101399, true }, - { 101410, true }, - { 101419, true }, - { 101432, true }, - { 101449, true }, - { 101463, true }, - { 101483, true }, - { 101501, true }, - { 101524, true }, - { 101539, false }, - { 101550, false }, - { 101562, false }, - { 101573, true }, - { 101592, true }, + { 101139, true }, + { 101151, true }, + { 101163, true }, + { 101182, true }, + { 101197, true }, + { 101211, false }, + { 101231, true }, + { 101244, true }, + { 101259, true }, + { 101273, true }, + { 101284, true }, + { 101293, true }, + { 101300, true }, + { 101311, true }, + { 101320, true }, + { 101333, true }, + { 101350, true }, + { 101364, true }, + { 101384, true }, + { 101402, true }, + { 101425, true }, + { 101440, false }, + { 101451, false }, + { 101463, false }, + { 101474, true }, + { 101493, true }, + { 101506, true }, + { 101519, true }, + { 101529, true }, + { 101539, true }, + { 101565, false }, + { 101581, true }, + { 101591, true }, + { 101599, true }, { 101608, true }, - { 101621, true }, + { 101622, true }, { 101634, true }, - { 101644, true }, - { 101654, true }, - { 101680, false }, - { 101696, true }, - { 101706, true }, - { 101714, true }, + { 101646, false }, + { 101658, true }, + { 101668, true }, + { 101682, true }, + { 101694, true }, + { 101711, true }, { 101723, true }, - { 101737, true }, - { 101749, true }, - { 101761, false }, - { 101773, true }, - { 101783, true }, - { 101797, true }, - { 101809, true }, - { 101826, true }, - { 101838, true }, - { 101858, true }, - { 101869, true }, - { 101890, true }, - { 101906, true }, + { 101743, true }, + { 101754, true }, + { 101775, true }, + { 101791, true }, + { 101800, true }, + { 101818, true }, + { 101830, true }, + { 101847, true }, + { 101867, true }, + { 101894, true }, { 101915, true }, - { 101933, true }, - { 101945, true }, - { 101962, true }, - { 101982, true }, - { 102009, true }, - { 102030, true }, - { 102039, true }, + { 101924, true }, + { 101940, true }, + { 101953, true }, + { 101966, true }, + { 101985, true }, + { 102011, true }, + { 102024, true }, + { 102042, true }, { 102055, true }, - { 102068, true }, - { 102081, true }, - { 102100, true }, - { 102126, true }, - { 102139, true }, - { 102157, true }, - { 102170, true }, - { 102194, true }, - { 102208, true }, - { 102225, true }, - { 102243, true }, - { 102258, true }, - { 102269, true }, + { 102079, true }, + { 102093, true }, + { 102110, true }, + { 102128, true }, + { 102143, true }, + { 102154, true }, + { 102166, true }, + { 102178, true }, + { 102193, true }, + { 102210, true }, + { 102218, true }, + { 102230, true }, + { 102245, true }, + { 102264, true }, { 102281, true }, - { 102293, true }, - { 102308, true }, - { 102325, true }, + { 102300, true }, + { 102316, true }, { 102333, true }, - { 102345, true }, - { 102360, true }, - { 102379, true }, - { 102396, true }, - { 102415, true }, - { 102431, true }, - { 102448, true }, - { 102463, true }, - { 102488, true }, - { 102503, true }, - { 102520, true }, - { 102533, true }, - { 102545, true }, - { 102565, true }, - { 102577, true }, - { 102590, true }, - { 102602, true }, - { 102616, true }, - { 102634, true }, - { 102646, true }, - { 102670, true }, - { 102683, true }, - { 102702, true }, - { 102714, true }, - { 102726, true }, - { 102741, true }, - { 102765, true }, - { 102775, true }, - { 102796, true }, - { 102810, true }, - { 102824, true }, - { 102837, false }, - { 102853, true }, - { 102877, true }, - { 102889, true }, - { 102902, true }, - { 102916, true }, - { 102931, true }, - { 102964, true }, - { 102996, true }, - { 103011, true }, - { 103026, true }, - { 103035, true }, - { 103045, true }, - { 103060, true }, - { 103069, true }, + { 102348, true }, + { 102373, true }, + { 102388, true }, + { 102405, true }, + { 102418, true }, + { 102430, true }, + { 102450, true }, + { 102462, true }, + { 102475, true }, + { 102487, true }, + { 102501, true }, + { 102519, true }, + { 102531, true }, + { 102555, true }, + { 102568, true }, + { 102587, true }, + { 102599, true }, + { 102611, true }, + { 102626, true }, + { 102650, true }, + { 102660, true }, + { 102681, true }, + { 102695, true }, + { 102709, true }, + { 102722, false }, + { 102738, true }, + { 102762, true }, + { 102774, true }, + { 102787, true }, + { 102801, true }, + { 102816, true }, + { 102849, true }, + { 102881, true }, + { 102896, true }, + { 102911, true }, + { 102920, true }, + { 102930, true }, + { 102945, true }, + { 102954, true }, + { 102965, true }, + { 102977, true }, + { 102988, true }, + { 103000, true }, + { 103009, true }, + { 103029, true }, + { 103038, true }, + { 103059, true }, { 103080, true }, - { 103092, true }, - { 103103, true }, - { 103115, true }, - { 103124, true }, - { 103144, true }, - { 103153, true }, - { 103174, true }, + { 103090, true }, + { 103104, true }, + { 103116, true }, + { 103132, true }, + { 103154, true }, + { 103176, true }, { 103195, true }, - { 103205, true }, - { 103219, true }, - { 103231, true }, - { 103247, true }, - { 103269, true }, - { 103291, true }, - { 103310, true }, + { 103214, true }, + { 103228, false }, + { 103238, false }, + { 103252, true }, + { 103261, true }, + { 103274, true }, + { 103295, true }, + { 103307, true }, + { 103320, true }, { 103329, true }, - { 103343, false }, - { 103353, false }, - { 103367, true }, - { 103376, true }, - { 103389, true }, + { 103342, true }, + { 103355, true }, + { 103363, false }, + { 103380, true }, + { 103394, true }, { 103410, true }, - { 103422, true }, - { 103435, true }, - { 103444, true }, - { 103457, true }, - { 103470, true }, - { 103478, false }, - { 103495, true }, - { 103509, true }, - { 103525, true }, - { 103544, true }, - { 103563, true }, - { 103573, true }, - { 103594, true }, - { 103608, true }, - { 103621, true }, - { 103629, true }, + { 103429, true }, + { 103448, true }, + { 103458, true }, + { 103479, true }, + { 103493, true }, + { 103506, true }, + { 103514, true }, + { 103534, true }, + { 103554, true }, + { 103568, true }, + { 103577, true }, + { 103596, false }, + { 103614, true }, + { 103623, true }, + { 103636, true }, { 103649, true }, - { 103669, true }, - { 103683, true }, - { 103692, true }, - { 103711, false }, - { 103729, true }, - { 103738, true }, - { 103751, true }, - { 103764, true }, - { 103779, true }, - { 103792, true }, - { 103812, false }, + { 103664, true }, + { 103677, true }, + { 103697, false }, + { 103710, true }, + { 103727, true }, + { 103740, true }, + { 103753, true }, + { 103774, true }, + { 103798, true }, { 103825, true }, - { 103842, true }, - { 103855, true }, - { 103868, true }, - { 103889, true }, - { 103913, true }, - { 103940, true }, - { 103950, true }, - { 103963, false }, - { 103977, true }, - { 103989, true }, - { 104002, true }, - { 104016, true }, - { 104032, true }, - { 104044, true }, - { 104059, true }, - { 104077, true }, - { 104090, true }, - { 104103, true }, - { 104112, true }, - { 104135, true }, - { 104158, false }, - { 104169, true }, - { 104180, true }, - { 104196, true }, - { 104214, true }, - { 104234, true }, - { 104256, true }, - { 104272, true }, - { 104290, true }, - { 104307, true }, - { 104324, true }, - { 104341, true }, - { 104356, true }, - { 104374, true }, - { 104388, true }, - { 104401, true }, - { 104418, true }, - { 104432, true }, - { 104451, true }, - { 104467, true }, - { 104476, true }, - { 104491, true }, - { 104499, true }, - { 104508, true }, - { 104519, true }, - { 104534, true }, - { 104552, true }, - { 104567, true }, - { 104575, false }, - { 104586, true }, - { 104602, true }, - { 104616, true }, - { 104628, true }, - { 104642, true }, - { 104650, true }, - { 104670, true }, + { 103835, true }, + { 103848, false }, + { 103862, true }, + { 103874, true }, + { 103887, true }, + { 103901, true }, + { 103917, true }, + { 103929, true }, + { 103944, true }, + { 103962, true }, + { 103975, true }, + { 103988, true }, + { 103997, true }, + { 104020, true }, + { 104043, false }, + { 104054, true }, + { 104065, true }, + { 104081, true }, + { 104099, true }, + { 104119, true }, + { 104141, true }, + { 104157, true }, + { 104175, true }, + { 104192, true }, + { 104209, true }, + { 104226, true }, + { 104241, true }, + { 104259, true }, + { 104273, true }, + { 104286, true }, + { 104303, true }, + { 104317, true }, + { 104336, true }, + { 104352, true }, + { 104361, true }, + { 104376, true }, + { 104384, true }, + { 104393, true }, + { 104404, true }, + { 104419, true }, + { 104437, true }, + { 104452, true }, + { 104460, false }, + { 104471, true }, + { 104487, true }, + { 104501, true }, + { 104513, true }, + { 104527, true }, + { 104535, true }, + { 104555, true }, + { 104570, true }, + { 104591, true }, + { 104604, true }, + { 104614, true }, + { 104623, true }, + { 104639, true }, + { 104649, true }, + { 104655, true }, + { 104673, true }, { 104685, true }, - { 104706, true }, + { 104693, true }, + { 104707, true }, { 104719, true }, - { 104729, true }, - { 104738, true }, - { 104754, true }, - { 104760, true }, + { 104741, true }, + { 104755, true }, + { 104763, true }, { 104778, true }, - { 104790, true }, - { 104798, true }, - { 104812, true }, - { 104824, true }, - { 104846, true }, - { 104860, true }, - { 104868, true }, - { 104883, true }, - { 104894, true }, - { 104906, true }, - { 104921, true }, - { 104934, true }, - { 104950, true }, - { 104968, false }, - { 104981, true }, - { 105002, true }, - { 105016, true }, - { 105025, true }, - { 105034, true }, - { 105043, true }, - { 105054, true }, - { 105061, true }, - { 105081, true }, - { 105093, true }, - { 105105, true }, - { 105124, true }, - { 105143, true }, - { 105151, true }, - { 105168, true }, - { 105187, true }, - { 105196, true }, - { 105205, true }, - { 105224, true }, - { 105235, true }, - { 105251, true }, - { 105258, true }, - { 105270, true }, - { 105291, true }, - { 105307, true }, - { 105324, true }, - { 105334, true }, - { 105345, true }, + { 104789, true }, + { 104801, true }, + { 104816, true }, + { 104829, true }, + { 104845, true }, + { 104863, false }, + { 104876, true }, + { 104897, true }, + { 104911, true }, + { 104920, true }, + { 104929, true }, + { 104938, true }, + { 104949, true }, + { 104956, true }, + { 104976, true }, + { 104988, true }, + { 105000, true }, + { 105019, true }, + { 105038, true }, + { 105046, true }, + { 105063, true }, + { 105082, true }, + { 105091, true }, + { 105100, true }, + { 105119, true }, + { 105130, true }, + { 105146, true }, + { 105153, true }, + { 105165, true }, + { 105186, true }, + { 105202, true }, + { 105219, true }, + { 105229, true }, + { 105240, true }, + { 105265, true }, + { 105280, true }, + { 105299, true }, + { 105318, false }, + { 105332, true }, + { 105343, true }, + { 105358, true }, { 105370, true }, - { 105385, true }, - { 105404, true }, - { 105423, false }, - { 105437, true }, - { 105448, true }, - { 105463, true }, - { 105475, true }, - { 105486, true }, - { 105501, true }, - { 105510, true }, - { 105524, true }, - { 105535, true }, - { 105547, true }, - { 105561, true }, - { 105579, true }, - { 105596, true }, - { 105607, true }, - { 105623, true }, - { 105638, true }, - { 105658, true }, - { 105667, true }, - { 105680, false }, - { 105694, true }, - { 105711, true }, - { 105734, true }, - { 105751, true }, - { 105771, false }, - { 105795, true }, - { 105810, true }, - { 105832, true }, - { 105843, false }, - { 105851, true }, - { 105869, true }, + { 105381, true }, + { 105396, true }, + { 105405, true }, + { 105419, true }, + { 105430, true }, + { 105442, true }, + { 105456, true }, + { 105474, true }, + { 105491, true }, + { 105502, true }, + { 105518, true }, + { 105533, true }, + { 105553, true }, + { 105562, true }, + { 105575, false }, + { 105589, true }, + { 105606, true }, + { 105629, true }, + { 105646, true }, + { 105666, false }, + { 105690, true }, + { 105705, true }, + { 105727, true }, + { 105738, false }, + { 105746, true }, + { 105764, true }, + { 105788, true }, + { 105806, true }, + { 105824, true }, + { 105846, true }, + { 105868, true }, { 105893, true }, - { 105911, true }, + { 105910, true }, { 105929, true }, - { 105951, true }, - { 105973, true }, - { 105998, true }, - { 106015, true }, - { 106034, true }, - { 106050, true }, - { 106062, true }, - { 106074, true }, - { 106086, true }, - { 106107, true }, - { 106121, true }, + { 105945, true }, + { 105957, true }, + { 105969, true }, + { 105981, true }, + { 106002, true }, + { 106016, true }, + { 106029, true }, + { 106042, false }, + { 106059, true }, + { 106082, true }, + { 106091, true }, + { 106111, true }, { 106134, true }, - { 106147, false }, - { 106164, true }, + { 106145, true }, + { 106167, true }, { 106187, true }, - { 106196, true }, - { 106216, true }, - { 106239, true }, - { 106250, true }, - { 106272, true }, - { 106292, true }, - { 106319, true }, - { 106334, true }, - { 106353, true }, - { 106365, true }, - { 106385, true }, - { 106402, true }, - { 106418, true }, - { 106426, true }, - { 106435, true }, - { 106452, true }, - { 106467, true }, - { 106482, true }, - { 106511, true }, - { 106527, true }, - { 106542, true }, - { 106563, true }, + { 106214, true }, + { 106229, true }, + { 106248, true }, + { 106260, true }, + { 106280, true }, + { 106297, true }, + { 106313, true }, + { 106321, true }, + { 106330, true }, + { 106347, true }, + { 106362, true }, + { 106377, true }, + { 106406, true }, + { 106422, true }, + { 106437, true }, + { 106458, true }, + { 106481, true }, + { 106503, true }, + { 106525, true }, + { 106543, true }, + { 106557, true }, + { 106571, true }, { 106586, true }, - { 106608, true }, - { 106630, true }, - { 106648, true }, - { 106662, true }, - { 106676, true }, - { 106691, true }, - { 106704, true }, - { 106733, true }, - { 106746, true }, - { 106756, true }, - { 106769, true }, + { 106615, true }, + { 106628, true }, + { 106638, true }, + { 106651, true }, + { 106667, true }, + { 106685, true }, + { 106698, true }, + { 106716, true }, + { 106724, true }, + { 106737, true }, + { 106744, false }, + { 106764, true }, + { 106776, true }, { 106785, true }, - { 106803, true }, + { 106800, true }, { 106816, true }, { 106834, true }, - { 106842, true }, - { 106855, true }, - { 106862, false }, - { 106882, true }, - { 106894, true }, - { 106903, true }, - { 106918, true }, - { 106934, true }, - { 106952, true }, - { 106964, true }, + { 106846, true }, + { 106860, true }, + { 106869, true }, + { 106883, true }, + { 106891, true }, + { 106912, true }, + { 106928, true }, + { 106947, true }, + { 106961, true }, { 106978, true }, - { 106987, true }, - { 107001, true }, - { 107009, true }, + { 106991, true }, + { 107010, true }, { 107030, true }, - { 107046, true }, + { 107041, true }, + { 107055, true }, { 107065, true }, - { 107079, true }, - { 107096, true }, - { 107109, true }, - { 107128, true }, - { 107148, true }, - { 107159, true }, - { 107173, true }, - { 107183, true }, - { 107200, true }, - { 107222, true }, - { 107243, true }, - { 107258, true }, - { 107275, true }, - { 107285, true }, - { 107300, true }, - { 107315, true }, - { 107331, true }, - { 107343, true }, - { 107369, true }, - { 107391, true }, - { 107411, true }, - { 107424, true }, - { 107439, true }, - { 107459, true }, - { 107475, true }, - { 107489, true }, - { 107499, true }, - { 107511, true }, - { 107519, true }, - { 107537, true }, - { 107556, false }, - { 107575, true }, - { 107588, true }, - { 107599, true }, - { 107616, true }, - { 107632, true }, - { 107646, true }, + { 107082, true }, + { 107104, true }, + { 107125, true }, + { 107140, true }, + { 107157, true }, + { 107167, true }, + { 107182, true }, + { 107197, true }, + { 107213, true }, + { 107225, true }, + { 107251, true }, + { 107273, true }, + { 107293, true }, + { 107306, true }, + { 107321, true }, + { 107341, true }, + { 107357, true }, + { 107371, true }, + { 107381, true }, + { 107393, true }, + { 107401, true }, + { 107419, true }, + { 107438, false }, + { 107457, true }, + { 107470, true }, + { 107481, true }, + { 107498, true }, + { 107514, true }, + { 107528, true }, + { 107548, true }, + { 107562, true }, + { 107574, true }, + { 107587, true }, + { 107598, true }, + { 107612, true }, + { 107637, true }, + { 107652, true }, { 107666, true }, - { 107678, true }, - { 107691, true }, - { 107702, true }, - { 107716, true }, - { 107741, true }, - { 107756, true }, - { 107770, true }, - { 107786, true }, - { 107805, true }, + { 107682, true }, + { 107701, true }, + { 107723, true }, + { 107739, true }, + { 107749, true }, + { 107768, true }, + { 107781, true }, + { 107799, true }, + { 107812, true }, { 107827, true }, - { 107843, true }, - { 107853, true }, - { 107872, true }, - { 107885, true }, - { 107903, true }, - { 107916, true }, - { 107931, true }, - { 107948, true }, - { 107963, true }, - { 107973, true }, - { 107986, true }, - { 108011, true }, - { 108026, true }, - { 108044, true }, - { 108062, true }, - { 108079, true }, - { 108095, true }, - { 108108, true }, - { 108120, true }, - { 108131, true }, - { 108145, true }, - { 108158, true }, + { 107844, true }, + { 107859, true }, + { 107869, true }, + { 107882, true }, + { 107907, true }, + { 107922, true }, + { 107940, true }, + { 107958, true }, + { 107975, true }, + { 107991, true }, + { 108004, true }, + { 108016, true }, + { 108027, true }, + { 108041, true }, + { 108054, true }, + { 108067, true }, + { 108085, true }, + { 108109, true }, + { 108130, true }, + { 108149, true }, { 108171, true }, - { 108189, true }, - { 108213, true }, - { 108234, true }, - { 108253, true }, - { 108275, true }, - { 108289, true }, + { 108185, true }, + { 108204, true }, + { 108220, true }, + { 108239, true }, + { 108251, true }, + { 108264, true }, + { 108280, true }, + { 108292, true }, { 108308, true }, - { 108324, true }, - { 108343, true }, - { 108355, true }, - { 108368, true }, - { 108384, true }, - { 108396, true }, - { 108412, true }, - { 108426, true }, - { 108439, true }, - { 108455, true }, - { 108466, true }, - { 108481, true }, - { 108496, true }, - { 108510, true }, - { 108528, true }, - { 108550, true }, - { 108574, true }, - { 108594, true }, - { 108613, true }, - { 108626, true }, - { 108636, true }, - { 108645, true }, + { 108322, true }, + { 108335, true }, + { 108351, true }, + { 108362, true }, + { 108377, true }, + { 108392, true }, + { 108406, true }, + { 108424, true }, + { 108446, true }, + { 108470, true }, + { 108490, true }, + { 108509, true }, + { 108522, true }, + { 108532, true }, + { 108541, true }, + { 108554, true }, + { 108566, true }, + { 108579, true }, + { 108589, true }, + { 108601, true }, + { 108617, true }, + { 108627, true }, + { 108635, true }, + { 108643, true }, { 108658, true }, - { 108670, true }, - { 108683, true }, - { 108693, true }, - { 108705, true }, - { 108721, true }, - { 108731, true }, - { 108739, true }, - { 108747, true }, - { 108762, true }, - { 108775, true }, - { 108786, true }, - { 108799, false }, - { 108810, true }, - { 108826, true }, - { 108837, true }, - { 108849, true }, - { 108859, true }, - { 108876, true }, - { 108894, true }, - { 108908, false }, - { 108921, true }, - { 108936, true }, - { 108951, true }, - { 108968, true }, - { 108986, true }, - { 109000, false }, - { 109018, true }, - { 109034, true }, - { 109050, true }, - { 109059, true }, - { 109068, true }, - { 109083, true }, + { 108671, true }, + { 108682, true }, + { 108695, false }, + { 108706, true }, + { 108722, true }, + { 108733, true }, + { 108745, true }, + { 108755, true }, + { 108772, true }, + { 108790, true }, + { 108804, false }, + { 108817, true }, + { 108832, true }, + { 108847, true }, + { 108864, true }, + { 108882, true }, + { 108896, false }, + { 108914, true }, + { 108930, true }, + { 108946, true }, + { 108955, true }, + { 108964, true }, + { 108979, true }, + { 108994, true }, + { 109013, true }, + { 109023, true }, + { 109038, true }, + { 109051, true }, + { 109061, true }, + { 109075, true }, + { 109087, true }, { 109098, true }, - { 109117, true }, - { 109127, true }, - { 109142, true }, + { 109115, true }, + { 109129, true }, + { 109139, true }, + { 109147, true }, { 109155, true }, - { 109165, true }, - { 109179, true }, - { 109191, true }, - { 109202, true }, - { 109219, true }, - { 109233, true }, - { 109243, true }, + { 109164, true }, + { 109176, true }, + { 109187, true }, + { 109195, true }, + { 109204, false }, + { 109212, true }, + { 109238, true }, { 109251, true }, - { 109259, true }, - { 109268, true }, - { 109280, true }, - { 109291, true }, - { 109299, true }, - { 109308, false }, - { 109316, true }, - { 109342, true }, - { 109355, true }, - { 109368, true }, - { 109376, true }, - { 109390, true }, - { 109401, true }, - { 109411, true }, - { 109428, true }, - { 109438, true }, - { 109450, true }, - { 109463, true }, - { 109478, true }, - { 109487, true }, + { 109264, true }, + { 109272, true }, + { 109286, true }, + { 109297, true }, + { 109307, true }, + { 109324, true }, + { 109334, true }, + { 109346, true }, + { 109359, true }, + { 109374, true }, + { 109383, true }, + { 109394, true }, + { 109403, true }, + { 109416, true }, + { 109426, true }, + { 109437, true }, + { 109448, true }, + { 109469, true }, + { 109483, true }, { 109498, true }, - { 109507, true }, - { 109520, true }, - { 109530, true }, - { 109541, true }, - { 109552, true }, - { 109573, true }, - { 109587, true }, + { 109512, true }, + { 109524, true }, + { 109537, true }, + { 109556, true }, + { 109567, false }, + { 109581, true }, { 109602, true }, - { 109616, true }, - { 109628, true }, - { 109641, true }, - { 109660, true }, - { 109671, false }, - { 109685, true }, - { 109706, true }, + { 109613, true }, + { 109626, true }, + { 109640, true }, + { 109658, true }, + { 109669, true }, + { 109687, true }, + { 109698, true }, { 109717, true }, - { 109730, true }, - { 109744, true }, - { 109762, true }, - { 109773, true }, - { 109791, true }, - { 109802, true }, - { 109821, true }, - { 109841, true }, - { 109855, true }, - { 109868, true }, - { 109881, false }, - { 109897, true }, - { 109917, true }, - { 109928, true }, - { 109947, true }, - { 109958, true }, - { 109968, true }, - { 109978, true }, - { 109988, true }, - { 109998, true }, - { 110008, true }, - { 110018, true }, + { 109737, true }, + { 109751, true }, + { 109764, true }, + { 109777, false }, + { 109793, true }, + { 109813, true }, + { 109824, true }, + { 109843, true }, + { 109854, true }, + { 109864, true }, + { 109874, true }, + { 109884, true }, + { 109894, true }, + { 109904, true }, + { 109914, true }, + { 109927, true }, + { 109952, true }, + { 109975, true }, + { 109984, true }, + { 110000, true }, + { 110011, true }, + { 110022, true }, { 110031, true }, - { 110056, true }, - { 110079, true }, - { 110088, true }, - { 110104, true }, - { 110115, true }, - { 110126, true }, - { 110135, true }, + { 110049, true }, + { 110063, true }, + { 110080, true }, + { 110098, true }, + { 110117, true }, + { 110130, true }, + { 110140, true }, { 110153, true }, - { 110167, true }, - { 110184, true }, - { 110202, true }, - { 110221, true }, + { 110164, true }, + { 110173, true }, + { 110190, true }, + { 110210, true }, + { 110224, true }, { 110234, true }, { 110244, true }, - { 110257, true }, - { 110268, true }, - { 110277, true }, - { 110294, true }, - { 110314, true }, - { 110328, true }, - { 110338, true }, - { 110348, true }, - { 110356, true }, - { 110363, true }, - { 110376, true }, - { 110387, true }, - { 110401, true }, - { 110415, true }, - { 110429, true }, - { 110439, true }, - { 110449, true }, - { 110462, true }, - { 110474, true }, - { 110481, true }, + { 110252, true }, + { 110259, true }, + { 110272, true }, + { 110283, true }, + { 110297, true }, + { 110311, true }, + { 110325, true }, + { 110335, true }, + { 110345, true }, + { 110358, true }, + { 110370, true }, + { 110377, true }, + { 110400, true }, + { 110409, true }, + { 110424, true }, + { 110431, true }, + { 110447, true }, + { 110453, true }, + { 110461, true }, + { 110471, true }, + { 110483, true }, + { 110493, true }, { 110504, true }, - { 110513, true }, - { 110528, true }, + { 110514, true }, + { 110521, true }, { 110535, true }, - { 110551, true }, - { 110557, true }, - { 110565, true }, - { 110575, true }, - { 110587, true }, - { 110597, true }, - { 110608, true }, - { 110618, true }, - { 110625, true }, - { 110639, true }, - { 110652, true }, - { 110664, true }, - { 110673, true }, - { 110682, true }, - { 110700, true }, - { 110716, true }, - { 110738, true }, - { 110753, true }, - { 110776, true }, + { 110548, true }, + { 110560, true }, + { 110569, true }, + { 110578, true }, + { 110596, true }, + { 110612, true }, + { 110634, true }, + { 110649, true }, + { 110672, true }, + { 110685, true }, + { 110694, true }, + { 110707, true }, + { 110719, true }, + { 110745, true }, + { 110755, true }, + { 110768, true }, + { 110777, true }, { 110789, true }, - { 110798, true }, { 110811, true }, - { 110823, true }, - { 110849, true }, - { 110859, true }, - { 110872, true }, - { 110881, true }, + { 110826, true }, + { 110841, true }, + { 110860, true }, + { 110878, true }, { 110893, true }, - { 110915, true }, - { 110930, true }, - { 110945, true }, - { 110964, true }, + { 110912, true }, + { 110931, true }, + { 110949, true }, + { 110966, true }, { 110982, true }, - { 110997, true }, - { 111016, true }, - { 111035, true }, + { 111002, true }, + { 111012, true }, + { 111023, true }, + { 111041, true }, { 111053, true }, - { 111070, true }, - { 111086, true }, - { 111106, true }, - { 111116, true }, - { 111127, true }, - { 111145, true }, - { 111157, true }, - { 111168, true }, - { 111184, true }, - { 111201, true }, - { 111216, true }, - { 111232, true }, - { 111248, true }, - { 111257, true }, - { 111274, true }, - { 111286, true }, - { 111303, true }, + { 111064, true }, + { 111080, true }, + { 111097, true }, + { 111112, true }, + { 111128, true }, + { 111144, true }, + { 111153, true }, + { 111170, true }, + { 111182, true }, + { 111199, true }, + { 111223, true }, + { 111241, true }, + { 111253, true }, + { 111267, true }, + { 111281, true }, + { 111296, true }, + { 111310, true }, { 111327, true }, - { 111345, true }, + { 111342, true }, { 111357, true }, - { 111371, true }, - { 111385, true }, - { 111400, true }, - { 111414, true }, - { 111431, true }, - { 111446, true }, - { 111461, true }, - { 111474, true }, - { 111492, true }, - { 111505, true }, - { 111517, true }, - { 111531, true }, - { 111548, true }, - { 111569, true }, - { 111593, true }, - { 111615, true }, - { 111627, true }, - { 111640, true }, - { 111655, true }, - { 111676, true }, - { 111693, true }, - { 111709, true }, - { 111723, true }, - { 111736, true }, - { 111755, true }, - { 111775, true }, - { 111793, true }, - { 111814, true }, - { 111829, false }, - { 111850, true }, - { 111868, true }, - { 111891, true }, - { 111906, true }, - { 111922, true }, - { 111941, true }, - { 111956, true }, - { 111973, true }, - { 111994, true }, - { 112007, true }, - { 112018, true }, - { 112043, true }, - { 112059, true }, - { 112075, true }, - { 112092, true }, - { 112112, true }, - { 112129, true }, - { 112141, false }, - { 112158, true }, - { 112175, true }, - { 112193, true }, - { 112207, true }, - { 112220, true }, - { 112238, true }, - { 112249, true }, - { 112264, false }, - { 112282, true }, - { 112294, false }, - { 112305, true }, - { 112321, true }, - { 112337, true }, - { 112349, true }, - { 112365, true }, + { 111370, true }, + { 111388, true }, + { 111401, true }, + { 111413, true }, + { 111427, true }, + { 111444, true }, + { 111465, true }, + { 111489, true }, + { 111511, true }, + { 111523, true }, + { 111536, true }, + { 111551, true }, + { 111572, true }, + { 111589, true }, + { 111605, true }, + { 111619, true }, + { 111632, true }, + { 111651, true }, + { 111671, true }, + { 111689, true }, + { 111710, true }, + { 111725, false }, + { 111746, true }, + { 111764, true }, + { 111787, true }, + { 111802, true }, + { 111818, true }, + { 111837, true }, + { 111852, true }, + { 111869, true }, + { 111883, true }, + { 111904, true }, + { 111917, true }, + { 111928, true }, + { 111953, true }, + { 111969, true }, + { 111985, true }, + { 112002, true }, + { 112022, true }, + { 112039, true }, + { 112051, false }, + { 112068, true }, + { 112085, true }, + { 112103, true }, + { 112117, true }, + { 112130, true }, + { 112148, true }, + { 112159, true }, + { 112174, false }, + { 112192, true }, + { 112204, false }, + { 112215, true }, + { 112231, true }, + { 112247, true }, + { 112259, true }, + { 112275, true }, + { 112289, true }, + { 112302, true }, + { 112312, true }, + { 112329, true }, + { 112348, true }, + { 112363, true }, + { 112372, true }, { 112379, true }, - { 112392, true }, - { 112402, true }, - { 112419, true }, - { 112438, true }, - { 112453, true }, - { 112462, true }, - { 112469, true }, - { 112480, true }, - { 112488, true }, - { 112497, true }, - { 112514, true }, - { 112526, true }, - { 112535, true }, - { 112548, true }, - { 112557, true }, - { 112569, true }, - { 112576, true }, - { 112591, true }, - { 112606, true }, - { 112613, false }, - { 112620, false }, - { 112629, true }, - { 112665, true }, - { 112676, true }, - { 112688, true }, - { 112700, true }, - { 112721, true }, - { 112741, true }, - { 112767, true }, - { 112777, true }, - { 112786, true }, - { 112795, true }, - { 112802, true }, - { 112814, false }, - { 112826, false }, - { 112834, true }, - { 112846, true }, - { 112859, true }, - { 112873, false }, - { 112888, true }, - { 112902, true }, - { 112915, true }, - { 112927, true }, - { 112939, true }, - { 112952, true }, - { 112963, true }, - { 112973, true }, - { 112987, true }, - { 113007, true }, - { 113018, true }, - { 113030, true }, - { 113043, true }, - { 113055, true }, - { 113066, true }, - { 113078, true }, - { 113095, true }, - { 113105, true }, - { 113122, true }, - { 113132, false }, - { 113150, true }, - { 113168, false }, - { 113186, true }, - { 113198, true }, - { 113220, true }, - { 113242, true }, - { 113253, true }, - { 113266, true }, - { 113278, true }, - { 113293, true }, - { 113309, true }, - { 113320, true }, - { 113336, true }, + { 112390, true }, + { 112398, true }, + { 112407, true }, + { 112424, true }, + { 112436, true }, + { 112445, true }, + { 112458, true }, + { 112467, true }, + { 112479, true }, + { 112486, true }, + { 112501, true }, + { 112516, true }, + { 112523, false }, + { 112530, false }, + { 112539, true }, + { 112575, true }, + { 112586, true }, + { 112598, true }, + { 112610, true }, + { 112631, true }, + { 112651, true }, + { 112677, true }, + { 112687, true }, + { 112696, true }, + { 112705, true }, + { 112712, true }, + { 112724, false }, + { 112736, false }, + { 112744, true }, + { 112756, true }, + { 112769, true }, + { 112783, false }, + { 112798, true }, + { 112812, true }, + { 112825, true }, + { 112837, true }, + { 112849, true }, + { 112862, true }, + { 112873, true }, + { 112883, true }, + { 112897, true }, + { 112917, true }, + { 112928, true }, + { 112940, true }, + { 112953, true }, + { 112965, true }, + { 112976, true }, + { 112988, true }, + { 113005, true }, + { 113015, true }, + { 113032, true }, + { 113042, false }, + { 113060, true }, + { 113078, false }, + { 113096, true }, + { 113108, true }, + { 113130, true }, + { 113152, true }, + { 113163, true }, + { 113176, true }, + { 113188, true }, + { 113203, true }, + { 113219, true }, + { 113230, true }, + { 113246, true }, + { 113270, true }, + { 113295, true }, + { 113318, true }, + { 113341, true }, { 113360, true }, - { 113385, true }, - { 113408, true }, - { 113431, true }, - { 113450, true }, - { 113468, true }, - { 113479, true }, - { 113500, true }, - { 113518, true }, - { 113545, true }, + { 113378, true }, + { 113389, true }, + { 113410, true }, + { 113428, true }, + { 113455, true }, + { 113470, true }, + { 113483, true }, + { 113510, true }, + { 113530, true }, + { 113541, true }, { 113560, true }, - { 113573, true }, - { 113600, true }, + { 113572, true }, + { 113590, true }, + { 113604, true }, { 113620, true }, - { 113631, true }, - { 113650, true }, - { 113662, true }, - { 113680, true }, - { 113694, true }, - { 113710, true }, - { 113726, true }, - { 113740, true }, - { 113754, true }, + { 113636, true }, + { 113649, true }, + { 113663, true }, + { 113677, true }, + { 113690, true }, + { 113705, true }, + { 113729, true }, + { 113757, false }, { 113768, true }, { 113781, true }, - { 113796, true }, - { 113820, true }, - { 113848, false }, - { 113859, true }, - { 113872, true }, - { 113883, true }, - { 113901, true }, - { 113919, true }, - { 113937, true }, - { 113960, true }, - { 113984, true }, + { 113792, true }, + { 113810, true }, + { 113828, true }, + { 113846, true }, + { 113869, true }, + { 113893, true }, + { 113914, true }, + { 113935, true }, + { 113956, true }, + { 113970, true }, + { 113983, true }, { 114005, true }, - { 114026, true }, - { 114047, true }, - { 114061, true }, - { 114074, true }, - { 114096, true }, - { 114107, true }, - { 114126, true }, - { 114141, true }, - { 114159, true }, - { 114169, true }, - { 114179, true }, - { 114197, true }, - { 114216, true }, - { 114234, true }, - { 114255, true }, - { 114276, true }, - { 114292, true }, - { 114312, true }, - { 114322, true }, - { 114336, true }, - { 114358, true }, - { 114374, true }, - { 114390, true }, - { 114401, true }, - { 114412, true }, - { 114422, true }, - { 114431, true }, - { 114441, true }, - { 114458, false }, - { 114471, true }, - { 114483, true }, - { 114494, true }, - { 114511, true }, - { 114521, true }, - { 114535, true }, - { 114554, true }, - { 114572, true }, - { 114588, true }, - { 114608, true }, - { 114619, true }, - { 114632, true }, - { 114648, true }, - { 114661, true }, - { 114671, true }, - { 114686, true }, - { 114697, true }, - { 114711, true }, - { 114725, true }, - { 114737, true }, + { 114016, true }, + { 114035, true }, + { 114050, true }, + { 114068, true }, + { 114078, true }, + { 114088, true }, + { 114106, true }, + { 114125, true }, + { 114143, true }, + { 114164, true }, + { 114185, true }, + { 114201, true }, + { 114221, true }, + { 114231, true }, + { 114245, true }, + { 114267, true }, + { 114283, true }, + { 114299, true }, + { 114310, true }, + { 114321, true }, + { 114331, true }, + { 114340, true }, + { 114350, true }, + { 114367, false }, + { 114380, true }, + { 114392, true }, + { 114403, true }, + { 114420, true }, + { 114430, true }, + { 114444, true }, + { 114463, true }, + { 114481, true }, + { 114497, true }, + { 114517, true }, + { 114528, true }, + { 114541, true }, + { 114557, true }, + { 114570, true }, + { 114580, true }, + { 114595, true }, + { 114606, true }, + { 114620, true }, + { 114634, true }, + { 114646, true }, + { 114664, true }, + { 114679, true }, + { 114692, true }, + { 114709, true }, + { 114726, true }, + { 114740, true }, { 114755, true }, { 114770, true }, { 114783, true }, - { 114800, true }, - { 114817, true }, - { 114831, true }, - { 114846, true }, - { 114861, true }, - { 114874, true }, - { 114888, true }, - { 114900, true }, - { 114909, true }, + { 114797, true }, + { 114809, true }, + { 114818, true }, + { 114837, true }, + { 114848, true }, + { 114857, false }, + { 114868, true }, + { 114894, true }, + { 114904, true }, + { 114915, true }, { 114928, true }, - { 114942, true }, + { 114939, true }, { 114953, true }, - { 114962, false }, - { 114973, true }, - { 114999, true }, - { 115009, true }, - { 115020, true }, - { 115033, true }, + { 114963, true }, + { 114980, true }, + { 114989, true }, + { 114996, true }, + { 115010, true }, + { 115018, true }, + { 115025, true }, + { 115037, true }, { 115044, true }, - { 115058, true }, - { 115068, true }, - { 115085, true }, - { 115094, true }, - { 115101, true }, + { 115053, true }, + { 115072, true }, + { 115087, true }, + { 115102, true }, { 115115, true }, - { 115123, true }, - { 115130, true }, - { 115142, true }, - { 115149, true }, - { 115158, true }, - { 115177, true }, + { 115136, true }, + { 115156, true }, + { 115175, true }, { 115192, true }, - { 115207, true }, - { 115220, true }, - { 115241, true }, - { 115261, true }, - { 115280, true }, - { 115297, true }, - { 115313, true }, - { 115333, true }, - { 115343, true }, - { 115372, true }, - { 115391, true }, - { 115407, true }, - { 115428, true }, - { 115447, true }, - { 115460, true }, - { 115480, true }, - { 115494, true }, - { 115504, true }, - { 115514, true }, - { 115529, true }, - { 115541, false }, - { 115555, false }, - { 115568, false }, - { 115575, true }, - { 115583, true }, - { 115597, true }, - { 115607, true }, - { 115621, true }, - { 115636, true }, - { 115649, true }, - { 115664, true }, - { 115686, true }, - { 115696, true }, - { 115720, true }, - { 115732, true }, - { 115744, true }, + { 115208, true }, + { 115228, true }, + { 115238, true }, + { 115267, true }, + { 115286, true }, + { 115302, true }, + { 115323, true }, + { 115342, true }, + { 115355, true }, + { 115375, true }, + { 115389, true }, + { 115399, true }, + { 115409, true }, + { 115424, true }, + { 115436, false }, + { 115450, false }, + { 115463, false }, + { 115470, true }, + { 115478, true }, + { 115492, true }, + { 115502, true }, + { 115516, true }, + { 115531, true }, + { 115544, true }, + { 115559, true }, + { 115581, true }, + { 115591, true }, + { 115615, true }, + { 115627, true }, + { 115639, true }, + { 115650, true }, + { 115665, true }, + { 115681, true }, + { 115698, true }, + { 115716, true }, + { 115734, true }, + { 115747, true }, { 115755, true }, - { 115770, true }, + { 115766, true }, { 115786, true }, - { 115803, true }, - { 115821, true }, - { 115839, true }, - { 115852, true }, - { 115860, true }, - { 115871, true }, - { 115891, true }, - { 115905, true }, - { 115915, true }, - { 115925, true }, - { 115938, true }, - { 115945, true }, - { 115956, true }, - { 115967, false }, - { 115980, true }, - { 115992, true }, - { 116001, true }, - { 116013, false }, - { 116033, true }, - { 116044, true }, - { 116057, false }, - { 116073, true }, - { 116084, true }, - { 116099, true }, - { 116112, true }, - { 116125, true }, - { 116137, true }, - { 116147, true }, - { 116160, true }, - { 116177, true }, - { 116190, true }, - { 116201, true }, - { 116216, true }, - { 116231, true }, - { 116246, true }, - { 116262, true }, - { 116291, true }, - { 116310, true }, - { 116324, true }, - { 116341, true }, - { 116356, true }, - { 116369, true }, - { 116397, true }, - { 116412, true }, - { 116427, true }, - { 116442, true }, - { 116456, true }, - { 116475, true }, - { 116485, true }, - { 116502, false }, - { 116516, true }, - { 116538, true }, - { 116554, true }, - { 116575, true }, - { 116592, true }, - { 116608, true }, - { 116627, true }, - { 116661, true }, - { 116685, true }, - { 116714, true }, - { 116730, true }, - { 116754, true }, - { 116779, true }, - { 116795, true }, - { 116807, true }, - { 116827, true }, - { 116852, true }, - { 116864, true }, - { 116891, true }, + { 115800, true }, + { 115810, true }, + { 115820, true }, + { 115833, true }, + { 115840, true }, + { 115851, true }, + { 115862, false }, + { 115875, true }, + { 115887, true }, + { 115896, true }, + { 115908, false }, + { 115928, true }, + { 115939, true }, + { 115952, false }, + { 115968, true }, + { 115979, true }, + { 115994, true }, + { 116007, true }, + { 116020, true }, + { 116032, true }, + { 116042, true }, + { 116055, true }, + { 116072, true }, + { 116085, true }, + { 116096, true }, + { 116111, true }, + { 116126, true }, + { 116141, true }, + { 116157, true }, + { 116186, true }, + { 116205, true }, + { 116219, true }, + { 116236, true }, + { 116251, true }, + { 116264, true }, + { 116292, true }, + { 116307, true }, + { 116322, true }, + { 116337, true }, + { 116351, true }, + { 116370, true }, + { 116380, true }, + { 116397, false }, + { 116411, true }, + { 116433, true }, + { 116449, true }, + { 116470, true }, + { 116487, true }, + { 116503, true }, + { 116522, true }, + { 116556, true }, + { 116580, true }, + { 116609, true }, + { 116625, true }, + { 116649, true }, + { 116674, true }, + { 116690, true }, + { 116702, true }, + { 116722, true }, + { 116747, true }, + { 116759, true }, + { 116786, true }, + { 116800, true }, + { 116820, true }, + { 116838, true }, + { 116847, true }, + { 116856, true }, + { 116868, false }, + { 116878, true }, + { 116890, true }, { 116905, true }, - { 116925, true }, - { 116943, true }, + { 116913, true }, + { 116922, true }, + { 116930, true }, + { 116944, true }, { 116952, true }, - { 116961, true }, - { 116973, false }, - { 116983, true }, - { 116995, true }, - { 117010, true }, - { 117018, true }, - { 117027, true }, - { 117035, true }, - { 117049, true }, - { 117057, true }, - { 117073, true }, - { 117095, true }, - { 117104, true }, - { 117116, true }, - { 117128, true }, - { 117139, true }, - { 117147, true }, - { 117157, true }, - { 117167, false }, - { 117179, true }, - { 117195, true }, - { 117211, true }, + { 116968, true }, + { 116990, true }, + { 116999, true }, + { 117011, true }, + { 117023, true }, + { 117034, true }, + { 117042, true }, + { 117052, true }, + { 117062, false }, + { 117074, true }, + { 117090, true }, + { 117106, true }, + { 117122, true }, + { 117135, true }, + { 117150, true }, + { 117173, true }, + { 117187, true }, + { 117201, true }, + { 117212, true }, { 117227, true }, - { 117240, true }, - { 117255, true }, - { 117278, true }, - { 117292, true }, - { 117306, true }, - { 117317, true }, - { 117332, true }, - { 117346, true }, - { 117371, true }, - { 117389, true }, - { 117404, true }, - { 117415, false }, - { 117427, true }, - { 117446, true }, - { 117460, true }, - { 117471, true }, - { 117482, true }, - { 117493, true }, - { 117503, true }, - { 117524, true }, - { 117541, true }, - { 117559, true }, - { 117569, true }, - { 117599, true }, - { 117622, true }, - { 117636, true }, - { 117652, true }, - { 117671, true }, - { 117688, true }, - { 117706, false }, - { 117719, true }, - { 117740, true }, - { 117754, true }, - { 117767, true }, + { 117241, true }, + { 117266, true }, + { 117284, true }, + { 117299, true }, + { 117310, false }, + { 117322, true }, + { 117341, true }, + { 117355, true }, + { 117366, true }, + { 117377, true }, + { 117388, true }, + { 117398, true }, + { 117419, true }, + { 117436, true }, + { 117454, true }, + { 117464, true }, + { 117494, true }, + { 117517, true }, + { 117531, true }, + { 117547, true }, + { 117566, true }, + { 117583, true }, + { 117601, false }, + { 117614, true }, + { 117635, true }, + { 117649, true }, + { 117662, true }, + { 117675, true }, + { 117687, true }, + { 117697, true }, + { 117713, true }, + { 117727, true }, + { 117738, true }, + { 117745, true }, + { 117759, true }, + { 117773, true }, { 117780, true }, - { 117792, true }, - { 117802, true }, - { 117818, true }, - { 117832, true }, + { 117801, true }, + { 117811, true }, + { 117828, false }, { 117843, true }, - { 117850, true }, - { 117864, true }, - { 117878, true }, - { 117885, true }, - { 117906, true }, - { 117916, true }, - { 117933, false }, - { 117948, true }, - { 117963, true }, - { 117980, true }, - { 117991, true }, - { 118001, true }, + { 117858, true }, + { 117875, true }, + { 117886, true }, + { 117896, true }, + { 117915, true }, + { 117925, true }, + { 117937, true }, + { 117956, true }, + { 117974, true }, + { 117984, true }, + { 117994, true }, + { 118007, true }, { 118020, true }, - { 118030, true }, - { 118042, true }, - { 118061, true }, - { 118079, true }, - { 118089, true }, - { 118099, true }, - { 118112, true }, - { 118125, true }, - { 118137, true }, - { 118145, false }, - { 118156, true }, - { 118171, true }, - { 118182, true }, - { 118198, true }, - { 118211, true }, - { 118221, true }, - { 118240, true }, - { 118256, true }, - { 118278, true }, - { 118290, true }, - { 118303, false }, - { 118317, true }, - { 118331, true }, - { 118346, true }, - { 118362, true }, - { 118374, true }, - { 118385, true }, - { 118397, true }, - { 118410, true }, - { 118420, true }, - { 118437, true }, - { 118454, true }, - { 118469, true }, - { 118489, true }, - { 118498, true }, + { 118032, true }, + { 118040, false }, + { 118051, true }, + { 118066, true }, + { 118077, true }, + { 118093, true }, + { 118106, true }, + { 118116, true }, + { 118135, true }, + { 118151, true }, + { 118173, true }, + { 118185, true }, + { 118198, false }, + { 118212, true }, + { 118226, true }, + { 118241, true }, + { 118257, true }, + { 118269, true }, + { 118280, true }, + { 118292, true }, + { 118305, true }, + { 118315, true }, + { 118332, true }, + { 118349, true }, + { 118364, true }, + { 118384, true }, + { 118393, true }, + { 118412, true }, + { 118428, true }, + { 118440, false }, + { 118450, true }, + { 118466, true }, + { 118477, true }, + { 118497, false }, + { 118505, true }, { 118517, true }, - { 118533, true }, - { 118545, false }, - { 118555, true }, - { 118571, true }, - { 118582, true }, - { 118602, false }, - { 118610, true }, - { 118622, true }, - { 118633, true }, - { 118645, true }, - { 118664, true }, - { 118673, false }, - { 118693, true }, - { 118702, true }, - { 118713, true }, - { 118744, true }, - { 118758, true }, - { 118774, true }, - { 118788, true }, - { 118808, true }, - { 118827, true }, - { 118841, true }, - { 118865, true }, - { 118881, true }, - { 118896, true }, - { 118910, true }, - { 118924, true }, - { 118938, true }, - { 118954, true }, - { 118966, true }, - { 118974, true }, - { 118987, true }, - { 118998, true }, - { 119010, true }, - { 119022, true }, - { 119038, true }, - { 119049, true }, - { 119064, true }, - { 119089, true }, - { 119105, true }, - { 119121, true }, - { 119137, true }, + { 118528, true }, + { 118540, true }, + { 118559, true }, + { 118568, false }, + { 118588, true }, + { 118597, true }, + { 118608, true }, + { 118639, true }, + { 118653, true }, + { 118669, true }, + { 118683, true }, + { 118703, true }, + { 118722, true }, + { 118736, true }, + { 118760, true }, + { 118776, true }, + { 118791, true }, + { 118805, true }, + { 118819, true }, + { 118833, true }, + { 118849, true }, + { 118861, true }, + { 118869, true }, + { 118882, true }, + { 118893, true }, + { 118905, true }, + { 118917, true }, + { 118933, true }, + { 118944, true }, + { 118959, true }, + { 118984, true }, + { 119000, true }, + { 119016, true }, + { 119032, true }, + { 119054, true }, + { 119068, true }, + { 119084, true }, + { 119103, true }, + { 119127, true }, + { 119143, true }, { 119159, true }, - { 119173, true }, - { 119189, true }, - { 119208, true }, - { 119232, true }, + { 119169, true }, + { 119181, true }, + { 119201, true }, + { 119218, true }, + { 119236, true }, { 119248, true }, - { 119264, true }, - { 119274, true }, - { 119286, true }, - { 119306, true }, - { 119323, true }, - { 119341, true }, + { 119262, true }, + { 119277, true }, + { 119297, true }, + { 119312, true }, + { 119332, true }, { 119353, true }, - { 119367, true }, - { 119382, true }, + { 119371, true }, + { 119386, true }, { 119402, true }, { 119417, true }, - { 119437, true }, - { 119458, true }, - { 119476, true }, - { 119491, true }, - { 119507, true }, - { 119522, true }, - { 119534, true }, - { 119553, false }, - { 119561, true }, - { 119575, true }, - { 119592, true }, - { 119606, true }, - { 119618, true }, - { 119633, true }, - { 119647, true }, - { 119660, true }, - { 119678, true }, - { 119692, true }, - { 119708, true }, - { 119728, true }, - { 119759, true }, - { 119790, true }, - { 119805, true }, - { 119821, true }, - { 119835, true }, - { 119854, true }, - { 119876, true }, - { 119894, true }, - { 119908, true }, - { 119930, true }, - { 119945, true }, - { 119964, true }, - { 119977, true }, - { 119987, true }, - { 120002, true }, - { 120017, true }, - { 120032, true }, - { 120047, true }, - { 120067, true }, - { 120084, true }, + { 119429, true }, + { 119448, false }, + { 119456, true }, + { 119470, true }, + { 119487, true }, + { 119501, true }, + { 119513, true }, + { 119528, true }, + { 119542, true }, + { 119555, true }, + { 119573, true }, + { 119587, true }, + { 119603, true }, + { 119623, true }, + { 119654, true }, + { 119685, true }, + { 119700, true }, + { 119716, true }, + { 119730, true }, + { 119749, true }, + { 119771, true }, + { 119789, true }, + { 119803, true }, + { 119825, true }, + { 119840, true }, + { 119859, true }, + { 119872, true }, + { 119882, true }, + { 119897, true }, + { 119912, true }, + { 119927, true }, + { 119942, true }, + { 119962, true }, + { 119979, true }, + { 119992, true }, + { 120007, true }, + { 120020, true }, + { 120033, true }, + { 120043, true }, + { 120058, true }, + { 120074, true }, + { 120085, true }, { 120097, true }, - { 120112, true }, + { 120108, true }, { 120125, true }, - { 120138, true }, - { 120148, true }, - { 120163, true }, - { 120179, true }, - { 120190, true }, - { 120202, true }, - { 120213, true }, - { 120230, true }, - { 120247, true }, + { 120142, true }, + { 120157, true }, + { 120164, true }, + { 120177, true }, + { 120187, true }, + { 120204, true }, + { 120214, true }, + { 120224, true }, + { 120233, true }, + { 120243, true }, { 120262, true }, - { 120269, true }, - { 120282, true }, - { 120292, true }, - { 120309, true }, - { 120319, true }, - { 120329, true }, - { 120338, true }, - { 120348, true }, - { 120367, true }, - { 120385, true }, - { 120406, true }, - { 120426, true }, - { 120439, true }, - { 120456, true }, - { 120473, true }, - { 120486, true }, - { 120508, true }, - { 120520, true }, - { 120530, true }, - { 120543, true }, + { 120280, true }, + { 120301, true }, + { 120321, true }, + { 120334, true }, + { 120351, true }, + { 120368, true }, + { 120381, true }, + { 120403, true }, + { 120415, true }, + { 120425, true }, + { 120438, true }, + { 120460, true }, + { 120474, true }, + { 120496, true }, + { 120517, true }, + { 120525, true }, + { 120537, true }, + { 120550, true }, { 120565, true }, - { 120579, true }, - { 120601, true }, - { 120622, true }, - { 120630, true }, - { 120642, true }, - { 120655, true }, - { 120670, true }, - { 120689, true }, - { 120699, true }, - { 120710, true }, - { 120729, true }, - { 120741, true }, - { 120762, true }, - { 120773, true }, - { 120782, true }, - { 120792, true }, - { 120812, true }, - { 120829, true }, - { 120848, true }, - { 120870, true }, - { 120882, true }, - { 120900, true }, - { 120913, true }, - { 120926, true }, - { 120939, true }, - { 120948, true }, - { 120963, true }, + { 120584, true }, + { 120594, true }, + { 120605, true }, + { 120624, true }, + { 120636, true }, + { 120657, true }, + { 120668, true }, + { 120677, true }, + { 120687, true }, + { 120707, true }, + { 120724, true }, + { 120743, true }, + { 120765, true }, + { 120777, true }, + { 120795, true }, + { 120808, true }, + { 120821, true }, + { 120834, true }, + { 120843, true }, + { 120858, true }, + { 120871, true }, + { 120894, true }, + { 120908, true }, + { 120922, true }, + { 120932, true }, + { 120946, true }, + { 120961, true }, { 120976, true }, - { 120999, true }, - { 121013, true }, - { 121027, true }, - { 121037, true }, - { 121051, true }, - { 121066, true }, - { 121081, true }, - { 121093, true }, - { 121103, true }, - { 121111, true }, - { 121127, true }, - { 121145, true }, - { 121159, true }, - { 121175, true }, - { 121183, true }, - { 121191, true }, - { 121201, true }, - { 121215, true }, - { 121229, true }, - { 121241, true }, - { 121253, true }, - { 121266, true }, + { 120988, true }, + { 120998, true }, + { 121014, true }, + { 121032, true }, + { 121046, true }, + { 121062, true }, + { 121070, true }, + { 121078, true }, + { 121088, true }, + { 121102, true }, + { 121116, true }, + { 121128, true }, + { 121140, true }, + { 121153, true }, + { 121169, true }, + { 121179, false }, + { 121195, true }, + { 121208, true }, + { 121219, true }, + { 121234, true }, + { 121245, true }, + { 121261, true }, { 121282, true }, - { 121292, false }, - { 121308, true }, - { 121321, true }, - { 121332, true }, - { 121347, true }, - { 121358, true }, + { 121305, true }, + { 121317, true }, + { 121326, true }, + { 121335, true }, + { 121348, false }, + { 121366, true }, { 121374, true }, - { 121395, true }, - { 121418, true }, - { 121430, true }, - { 121439, true }, - { 121448, true }, - { 121461, false }, - { 121479, true }, - { 121487, true }, - { 121499, true }, - { 121515, true }, - { 121538, true }, - { 121548, false }, - { 121566, true }, - { 121584, true }, - { 121614, true }, + { 121386, true }, + { 121402, true }, + { 121425, true }, + { 121435, false }, + { 121453, true }, + { 121471, true }, + { 121501, true }, + { 121520, true }, + { 121537, true }, + { 121558, true }, + { 121577, true }, + { 121591, true }, + { 121622, true }, { 121633, true }, - { 121650, true }, - { 121671, true }, - { 121690, true }, - { 121704, true }, - { 121735, true }, - { 121746, true }, - { 121760, true }, - { 121780, false }, + { 121647, true }, + { 121667, false }, + { 121687, true }, + { 121700, true }, + { 121722, true }, + { 121750, true }, + { 121767, true }, + { 121786, true }, { 121800, true }, - { 121813, true }, + { 121815, false }, + { 121825, true }, { 121835, true }, - { 121863, true }, - { 121880, true }, - { 121899, true }, - { 121913, true }, - { 121928, false }, - { 121938, true }, - { 121948, true }, - { 121958, true }, - { 121973, true }, - { 121988, true }, - { 121997, true }, - { 122005, true }, - { 122018, true }, - { 122045, true }, - { 122053, true }, + { 121845, true }, + { 121860, true }, + { 121875, true }, + { 121884, true }, + { 121892, true }, + { 121905, true }, + { 121932, true }, + { 121940, true }, + { 121957, true }, + { 121969, true }, + { 121986, true }, + { 122002, true }, + { 122023, true }, + { 122038, true }, + { 122052, true }, + { 122062, true }, { 122070, true }, - { 122082, true }, - { 122099, true }, + { 122084, true }, + { 122097, true }, + { 122106, true }, { 122115, true }, - { 122136, true }, - { 122151, true }, - { 122165, true }, - { 122175, true }, - { 122183, true }, - { 122197, true }, - { 122210, true }, - { 122219, true }, - { 122228, true }, - { 122245, true }, - { 122257, true }, - { 122265, true }, - { 122276, true }, - { 122294, true }, - { 122315, true }, - { 122325, false }, - { 122336, true }, - { 122355, true }, - { 122369, true }, - { 122381, true }, - { 122399, true }, - { 122411, true }, - { 122422, true }, - { 122429, true }, - { 122441, true }, - { 122453, true }, - { 122465, true }, - { 122474, true }, - { 122490, true }, - { 122498, true }, + { 122132, true }, + { 122144, true }, + { 122152, true }, + { 122163, true }, + { 122181, true }, + { 122202, true }, + { 122212, false }, + { 122223, true }, + { 122242, true }, + { 122256, true }, + { 122268, true }, + { 122286, true }, + { 122298, true }, + { 122309, true }, + { 122316, true }, + { 122328, true }, + { 122340, true }, + { 122352, true }, + { 122361, true }, + { 122377, true }, + { 122385, true }, + { 122392, true }, + { 122400, true }, + { 122407, true }, + { 122421, true }, + { 122428, true }, + { 122435, false }, + { 122446, true }, + { 122457, true }, + { 122472, true }, + { 122482, true }, + { 122494, true }, { 122505, true }, - { 122513, true }, - { 122520, true }, - { 122534, true }, - { 122541, true }, - { 122548, false }, - { 122559, true }, - { 122570, true }, - { 122585, true }, - { 122595, true }, - { 122607, true }, - { 122618, true }, - { 122628, true }, - { 122636, true }, - { 122651, true }, + { 122515, true }, + { 122523, true }, + { 122538, true }, + { 122553, true }, + { 122568, true }, + { 122582, true }, + { 122602, true }, + { 122617, true }, + { 122630, true }, + { 122641, true }, + { 122654, true }, { 122666, true }, { 122681, true }, - { 122695, true }, - { 122715, true }, - { 122730, true }, - { 122743, true }, - { 122754, true }, - { 122767, true }, - { 122779, true }, + { 122694, true }, + { 122721, true }, + { 122735, true }, + { 122749, true }, + { 122766, true }, + { 122781, true }, { 122794, true }, - { 122807, true }, - { 122834, true }, - { 122848, true }, - { 122862, true }, - { 122879, true }, - { 122894, true }, - { 122907, true }, - { 122921, true }, - { 122931, true }, - { 122946, true }, - { 122959, true }, - { 122976, true }, - { 122989, true }, - { 123009, true }, - { 123019, true }, - { 123046, true }, - { 123056, true }, - { 123068, true }, - { 123086, true }, - { 123095, true }, - { 123111, true }, - { 123123, true }, - { 123134, true }, - { 123145, true }, - { 123159, true }, - { 123170, true }, - { 123180, true }, - { 123201, true }, - { 123209, true }, - { 123220, true }, + { 122808, true }, + { 122818, true }, + { 122833, true }, + { 122846, true }, + { 122863, true }, + { 122876, true }, + { 122896, true }, + { 122906, true }, + { 122933, true }, + { 122943, true }, + { 122955, true }, + { 122973, true }, + { 122986, true }, + { 122995, true }, + { 123011, true }, + { 123023, true }, + { 123034, true }, + { 123045, true }, + { 123059, true }, + { 123069, true }, + { 123090, true }, + { 123098, true }, + { 123109, true }, + { 123119, true }, + { 123131, true }, + { 123154, true }, + { 123168, true }, + { 123187, true }, + { 123204, true }, + { 123222, true }, { 123230, true }, - { 123242, true }, - { 123265, true }, + { 123258, true }, + { 123269, true }, { 123279, true }, - { 123298, true }, - { 123315, true }, - { 123333, true }, - { 123341, true }, - { 123369, true }, - { 123380, true }, - { 123390, true }, - { 123401, true }, - { 123419, true }, - { 123429, true }, - { 123438, true }, - { 123454, true }, - { 123470, true }, - { 123485, true }, - { 123494, true }, - { 123510, true }, - { 123520, true }, - { 123538, true }, - { 123555, true }, - { 123587, true }, + { 123290, true }, + { 123308, true }, + { 123318, true }, + { 123327, true }, + { 123343, true }, + { 123359, true }, + { 123374, true }, + { 123383, true }, + { 123399, true }, + { 123409, true }, + { 123427, true }, + { 123444, true }, + { 123476, true }, + { 123502, true }, + { 123530, true }, + { 123551, true }, + { 123572, true }, + { 123592, true }, { 123613, true }, - { 123641, true }, - { 123662, true }, - { 123683, true }, - { 123703, true }, - { 123724, true }, - { 123740, false }, - { 123757, true }, - { 123784, true }, - { 123798, true }, - { 123809, true }, + { 123629, false }, + { 123646, true }, + { 123673, true }, + { 123687, true }, + { 123698, true }, + { 123710, true }, + { 123730, true }, + { 123745, true }, + { 123762, true }, + { 123774, true }, + { 123795, true }, + { 123807, true }, { 123821, true }, - { 123841, true }, - { 123856, true }, - { 123873, true }, - { 123885, true }, - { 123906, true }, - { 123918, true }, - { 123932, true }, - { 123951, true }, - { 123969, true }, - { 123980, true }, - { 123988, true }, - { 123997, true }, - { 124009, true }, - { 124023, true }, - { 124035, true }, - { 124048, true }, - { 124058, true }, - { 124070, true }, - { 124081, true }, + { 123840, true }, + { 123858, true }, + { 123869, true }, + { 123877, true }, + { 123886, true }, + { 123898, true }, + { 123912, true }, + { 123924, true }, + { 123937, true }, + { 123947, true }, + { 123959, true }, + { 123970, true }, + { 123982, true }, + { 123996, true }, + { 124019, true }, + { 124032, false }, + { 124047, true }, + { 124059, true }, + { 124074, true }, { 124093, true }, - { 124107, true }, - { 124130, true }, - { 124143, false }, + { 124111, true }, + { 124125, true }, + { 124139, true }, { 124158, true }, - { 124170, true }, - { 124185, true }, - { 124204, true }, - { 124222, true }, - { 124236, true }, - { 124250, true }, - { 124269, true }, + { 124168, true }, + { 124181, true }, + { 124194, false }, + { 124209, true }, + { 124221, true }, + { 124235, true }, + { 124251, true }, + { 124264, true }, { 124279, true }, - { 124292, true }, - { 124305, false }, - { 124320, true }, - { 124332, true }, - { 124346, true }, - { 124362, true }, - { 124375, true }, - { 124390, true }, - { 124404, true }, - { 124413, true }, - { 124429, true }, - { 124445, true }, - { 124463, true }, - { 124490, true }, - { 124505, true }, - { 124518, true }, - { 124534, true }, - { 124551, false }, + { 124293, true }, + { 124302, true }, + { 124318, true }, + { 124334, true }, + { 124352, true }, + { 124379, true }, + { 124394, true }, + { 124407, true }, + { 124423, true }, + { 124440, false }, + { 124457, true }, + { 124479, true }, + { 124501, true }, + { 124520, true }, + { 124542, true }, + { 124556, true }, { 124568, true }, - { 124590, true }, - { 124612, true }, - { 124631, true }, - { 124653, true }, - { 124667, true }, + { 124582, true }, + { 124593, true }, + { 124608, true }, + { 124621, true }, + { 124637, true }, + { 124646, true }, + { 124662, true }, { 124679, true }, - { 124693, true }, - { 124704, true }, - { 124719, true }, - { 124732, true }, - { 124748, true }, - { 124757, true }, - { 124773, true }, + { 124690, true }, + { 124702, true }, + { 124711, true }, + { 124725, true }, + { 124738, true }, + { 124752, true }, + { 124766, true }, + { 124778, true }, { 124790, true }, - { 124801, true }, - { 124813, true }, - { 124822, true }, - { 124836, true }, - { 124849, true }, - { 124863, true }, - { 124877, true }, - { 124889, true }, - { 124901, true }, - { 124913, true }, - { 124926, true }, - { 124939, true }, - { 124949, true }, - { 124963, true }, - { 124976, true }, - { 124998, true }, - { 125020, true }, - { 125031, true }, - { 125046, true }, - { 125057, false }, - { 125077, true }, - { 125103, true }, - { 125123, true }, - { 125140, true }, - { 125159, true }, - { 125179, true }, - { 125197, true }, - { 125216, true }, - { 125228, true }, - { 125249, true }, - { 125264, true }, - { 125278, true }, - { 125289, true }, + { 124802, true }, + { 124815, true }, + { 124828, true }, + { 124838, true }, + { 124852, true }, + { 124865, true }, + { 124887, true }, + { 124909, true }, + { 124920, true }, + { 124935, true }, + { 124946, false }, + { 124966, true }, + { 124992, true }, + { 125012, true }, + { 125029, true }, + { 125048, true }, + { 125068, true }, + { 125086, true }, + { 125105, true }, + { 125117, true }, + { 125138, true }, + { 125153, true }, + { 125167, true }, + { 125178, true }, + { 125190, true }, + { 125205, true }, + { 125225, true }, + { 125238, false }, + { 125246, true }, + { 125255, true }, + { 125267, true }, + { 125283, true }, { 125301, true }, - { 125316, true }, - { 125336, true }, - { 125349, false }, - { 125357, true }, - { 125366, true }, - { 125378, true }, - { 125394, true }, - { 125412, true }, - { 125429, true }, - { 125437, true }, - { 125451, true }, - { 125461, true }, - { 125474, true }, - { 125482, true }, - { 125500, true }, - { 125507, true }, - { 125521, true }, - { 125533, true }, - { 125550, true }, - { 125557, true }, - { 125564, true }, - { 125576, true }, - { 125587, true }, - { 125597, true }, - { 125610, true }, + { 125318, true }, + { 125326, true }, + { 125340, true }, + { 125350, true }, + { 125363, true }, + { 125371, true }, + { 125389, true }, + { 125396, true }, + { 125410, true }, + { 125422, true }, + { 125439, true }, + { 125446, true }, + { 125453, true }, + { 125465, true }, + { 125476, true }, + { 125486, true }, + { 125499, true }, + { 125506, true }, + { 125520, true }, + { 125536, true }, + { 125547, true }, + { 125561, true }, + { 125568, true }, + { 125581, true }, + { 125594, true }, + { 125603, true }, { 125617, true }, { 125631, true }, { 125647, true }, - { 125658, true }, - { 125672, true }, - { 125679, true }, - { 125692, true }, - { 125705, true }, - { 125714, true }, - { 125728, true }, + { 125663, false }, + { 125678, true }, + { 125706, true }, + { 125721, true }, { 125742, true }, - { 125758, true }, - { 125774, false }, - { 125789, true }, + { 125756, true }, + { 125784, true }, + { 125803, true }, { 125817, true }, - { 125832, true }, - { 125853, true }, - { 125867, true }, - { 125895, true }, - { 125914, true }, - { 125928, true }, - { 125949, true }, - { 125965, true }, - { 125980, true }, - { 125992, true }, - { 126002, true }, - { 126013, true }, - { 126023, true }, - { 126033, true }, - { 126049, true }, - { 126069, true }, - { 126088, true }, - { 126107, true }, - { 126127, true }, - { 126145, true }, - { 126162, true }, - { 126174, true }, - { 126186, true }, - { 126211, true }, - { 126222, true }, - { 126235, true }, - { 126250, true }, - { 126268, true }, - { 126280, true }, - { 126295, true }, - { 126308, true }, - { 126334, true }, - { 126349, true }, - { 126362, true }, - { 126375, true }, + { 125838, true }, + { 125854, true }, + { 125869, true }, + { 125881, true }, + { 125891, true }, + { 125902, true }, + { 125912, true }, + { 125922, true }, + { 125938, true }, + { 125958, true }, + { 125977, true }, + { 125996, true }, + { 126016, true }, + { 126034, true }, + { 126051, true }, + { 126063, true }, + { 126075, true }, + { 126100, true }, + { 126111, true }, + { 126124, true }, + { 126139, true }, + { 126157, true }, + { 126169, true }, + { 126184, true }, + { 126197, true }, + { 126223, true }, + { 126238, true }, + { 126251, true }, + { 126264, true }, + { 126275, true }, + { 126286, true }, + { 126297, true }, + { 126309, true }, + { 126320, true }, + { 126330, true }, + { 126350, true }, + { 126364, true }, + { 126377, true }, { 126386, true }, - { 126397, true }, + { 126395, true }, { 126408, true }, - { 126420, true }, - { 126431, true }, - { 126441, true }, + { 126415, false }, + { 126423, true }, + { 126436, true }, + { 126444, true }, { 126461, true }, - { 126475, true }, - { 126488, true }, - { 126497, true }, - { 126506, true }, - { 126519, true }, - { 126526, false }, - { 126534, true }, - { 126547, true }, - { 126555, true }, - { 126572, true }, - { 126583, true }, - { 126595, true }, - { 126609, false }, - { 126621, true }, - { 126635, true }, - { 126659, true }, - { 126674, true }, - { 126687, true }, - { 126701, true }, - { 126719, true }, - { 126734, true }, - { 126742, true }, - { 126767, true }, - { 126787, true }, - { 126811, true }, - { 126823, true }, - { 126834, false }, - { 126847, true }, - { 126863, true }, - { 126877, true }, - { 126886, true }, - { 126902, true }, + { 126472, true }, + { 126484, true }, + { 126498, false }, + { 126510, true }, + { 126524, true }, + { 126548, true }, + { 126563, true }, + { 126576, true }, + { 126590, true }, + { 126608, true }, + { 126623, true }, + { 126631, true }, + { 126656, true }, + { 126676, true }, + { 126700, true }, + { 126712, true }, + { 126723, false }, + { 126736, true }, + { 126752, true }, + { 126766, true }, + { 126775, true }, + { 126791, true }, + { 126809, true }, + { 126824, true }, + { 126844, true }, + { 126857, true }, + { 126873, true }, + { 126890, true }, + { 126904, true }, { 126920, true }, - { 126935, true }, - { 126955, true }, - { 126968, true }, - { 126984, true }, - { 127001, true }, - { 127015, true }, - { 127031, true }, - { 127048, true }, - { 127068, true }, - { 127086, true }, - { 127105, true }, - { 127122, true }, - { 127133, true }, - { 127151, true }, - { 127167, true }, - { 127177, true }, - { 127206, true }, - { 127221, true }, - { 127241, false }, - { 127258, true }, - { 127275, true }, - { 127300, true }, - { 127316, true }, - { 127325, true }, - { 127337, true }, - { 127346, false }, - { 127360, true }, - { 127374, true }, - { 127391, true }, - { 127408, true }, - { 127441, true }, - { 127461, true }, - { 127473, true }, - { 127487, true }, - { 127500, true }, - { 127510, true }, - { 127525, true }, - { 127542, true }, + { 126937, true }, + { 126957, true }, + { 126975, true }, + { 126994, true }, + { 127011, true }, + { 127022, true }, + { 127040, true }, + { 127056, true }, + { 127066, true }, + { 127095, true }, + { 127110, true }, + { 127130, false }, + { 127147, true }, + { 127164, true }, + { 127189, true }, + { 127205, true }, + { 127214, true }, + { 127227, true }, + { 127239, true }, + { 127248, false }, + { 127262, true }, + { 127276, true }, + { 127293, true }, + { 127310, true }, + { 127343, true }, + { 127363, true }, + { 127375, true }, + { 127389, true }, + { 127402, true }, + { 127412, true }, + { 127427, true }, + { 127444, true }, + { 127456, true }, + { 127468, true }, + { 127480, true }, + { 127489, true }, + { 127501, true }, + { 127509, true }, + { 127526, true }, + { 127540, true }, { 127554, true }, - { 127566, true }, - { 127578, true }, - { 127587, true }, - { 127599, true }, - { 127607, true }, - { 127624, true }, - { 127638, true }, - { 127652, true }, - { 127670, true }, - { 127686, true }, - { 127701, true }, - { 127715, true }, - { 127726, true }, - { 127740, true }, - { 127758, true }, - { 127779, true }, + { 127572, true }, + { 127588, true }, + { 127603, true }, + { 127617, true }, + { 127628, true }, + { 127642, true }, + { 127660, true }, + { 127681, true }, + { 127695, true }, + { 127709, true }, + { 127725, true }, + { 127736, true }, + { 127759, true }, + { 127770, true }, + { 127786, true }, { 127793, true }, - { 127807, true }, - { 127823, true }, - { 127834, true }, - { 127857, true }, - { 127868, true }, - { 127884, true }, - { 127891, true }, - { 127903, true }, - { 127914, true }, + { 127805, true }, + { 127816, true }, + { 127830, true }, + { 127839, true }, + { 127848, true }, + { 127863, true }, + { 127872, true }, + { 127885, true }, + { 127893, true }, + { 127906, true }, + { 127917, false }, { 127928, true }, - { 127937, true }, - { 127946, true }, - { 127961, true }, - { 127970, true }, - { 127983, true }, - { 127991, true }, - { 128004, true }, - { 128015, false }, + { 127942, true }, + { 127956, true }, + { 127966, true }, + { 127977, true }, + { 127987, true }, + { 127997, true }, + { 128005, true }, + { 128014, true }, { 128026, true }, - { 128040, true }, - { 128054, true }, - { 128064, true }, - { 128075, true }, - { 128085, true }, - { 128095, true }, - { 128103, true }, - { 128112, true }, - { 128124, true }, - { 128133, true }, - { 128147, true }, - { 128159, true }, - { 128182, true }, - { 128197, true }, - { 128213, true }, - { 128230, true }, - { 128252, true }, - { 128280, true }, - { 128298, true }, - { 128313, true }, - { 128321, true }, - { 128332, true }, - { 128350, true }, - { 128360, true }, - { 128378, true }, - { 128392, true }, - { 128404, true }, - { 128416, true }, - { 128431, true }, - { 128444, true }, - { 128454, false }, - { 128463, false }, - { 128472, false }, - { 128481, true }, - { 128498, true }, - { 128513, true }, - { 128536, true }, + { 128035, true }, + { 128049, true }, + { 128061, true }, + { 128084, true }, + { 128099, true }, + { 128115, true }, + { 128137, true }, + { 128165, true }, + { 128183, true }, + { 128198, true }, + { 128206, true }, + { 128217, true }, + { 128235, true }, + { 128245, true }, + { 128263, true }, + { 128277, true }, + { 128289, true }, + { 128301, true }, + { 128316, true }, + { 128329, true }, + { 128339, false }, + { 128348, false }, + { 128357, false }, + { 128366, true }, + { 128383, true }, + { 128398, true }, + { 128421, true }, + { 128436, true }, + { 128455, true }, + { 128465, true }, + { 128476, true }, + { 128487, true }, + { 128502, true }, + { 128518, true }, + { 128537, true }, { 128551, true }, - { 128570, true }, - { 128580, true }, - { 128591, true }, - { 128602, true }, - { 128617, true }, - { 128633, true }, - { 128652, true }, - { 128666, true }, - { 128681, true }, - { 128700, true }, - { 128713, true }, - { 128729, true }, - { 128742, true }, - { 128755, true }, - { 128771, true }, - { 128789, true }, - { 128803, true }, - { 128820, true }, - { 128836, true }, - { 128851, true }, + { 128566, true }, + { 128585, true }, + { 128598, true }, + { 128614, true }, + { 128627, true }, + { 128640, true }, + { 128656, true }, + { 128674, true }, + { 128688, true }, + { 128705, true }, + { 128721, true }, + { 128736, true }, + { 128746, true }, + { 128762, true }, + { 128779, true }, + { 128797, true }, + { 128816, true }, + { 128831, true }, + { 128850, true }, { 128861, true }, - { 128877, true }, - { 128894, true }, - { 128912, true }, - { 128931, true }, - { 128946, true }, - { 128965, true }, - { 128976, true }, - { 128994, true }, - { 129008, true }, - { 129025, true }, - { 129039, true }, - { 129049, true }, - { 129063, true }, - { 129079, true }, - { 129097, true }, - { 129111, false }, + { 128879, true }, + { 128893, true }, + { 128910, true }, + { 128924, true }, + { 128934, true }, + { 128948, true }, + { 128964, true }, + { 128982, true }, + { 128996, false }, + { 129016, true }, + { 129029, true }, + { 129038, true }, + { 129053, true }, + { 129065, true }, + { 129080, true }, + { 129098, true }, + { 129109, true }, + { 129121, true }, { 129131, true }, - { 129144, true }, - { 129153, true }, - { 129168, true }, - { 129180, true }, - { 129195, true }, - { 129213, true }, - { 129224, true }, - { 129236, true }, - { 129246, true }, - { 129256, true }, - { 129270, true }, - { 129279, true }, - { 129292, true }, - { 129308, true }, - { 129323, true }, - { 129338, true }, - { 129363, true }, - { 129383, true }, - { 129409, true }, - { 129424, true }, - { 129436, true }, + { 129141, true }, + { 129155, true }, + { 129164, true }, + { 129177, true }, + { 129193, true }, + { 129208, true }, + { 129223, true }, + { 129248, true }, + { 129268, true }, + { 129294, true }, + { 129309, true }, + { 129321, true }, + { 129342, true }, + { 129367, true }, + { 129390, true }, + { 129405, true }, + { 129426, true }, + { 129433, true }, { 129457, true }, - { 129482, true }, - { 129505, true }, - { 129520, true }, - { 129541, true }, + { 129479, true }, + { 129494, true }, + { 129510, true }, + { 129521, true }, + { 129532, true }, + { 129540, true }, { 129548, true }, - { 129572, true }, - { 129594, true }, - { 129609, true }, - { 129625, true }, - { 129636, true }, - { 129647, true }, - { 129655, true }, - { 129663, true }, - { 129674, true }, - { 129690, true }, - { 129707, true }, + { 129559, true }, + { 129575, true }, + { 129592, true }, + { 129618, true }, + { 129634, true }, + { 129648, true }, + { 129662, true }, + { 129676, true }, + { 129692, true }, + { 129719, true }, { 129733, true }, - { 129749, true }, - { 129763, true }, - { 129777, true }, - { 129791, true }, - { 129807, true }, - { 129834, true }, - { 129848, true }, - { 129857, true }, - { 129870, true }, - { 129882, true }, - { 129898, true }, - { 129921, true }, - { 129941, true }, - { 129955, true }, - { 129975, true }, - { 129994, true }, - { 130016, true }, - { 130038, false }, - { 130049, true }, - { 130066, true }, - { 130080, true }, - { 130105, true }, + { 129742, true }, + { 129755, true }, + { 129767, true }, + { 129783, true }, + { 129806, true }, + { 129826, true }, + { 129840, true }, + { 129860, true }, + { 129879, true }, + { 129901, true }, + { 129923, false }, + { 129934, true }, + { 129951, true }, + { 129965, true }, + { 129990, true }, + { 130010, true }, + { 130035, true }, + { 130060, true }, + { 130076, true }, + { 130088, true }, + { 130110, true }, { 130125, true }, - { 130150, true }, - { 130175, true }, - { 130191, true }, - { 130203, true }, - { 130225, true }, - { 130240, true }, - { 130256, true }, - { 130272, true }, - { 130287, true }, + { 130141, true }, + { 130157, true }, + { 130172, true }, + { 130189, true }, + { 130204, true }, + { 130219, true }, + { 130234, true }, + { 130246, true }, + { 130261, true }, + { 130280, true }, + { 130294, false }, { 130304, true }, - { 130319, true }, - { 130334, true }, - { 130349, true }, - { 130361, true }, - { 130376, true }, - { 130395, true }, - { 130409, false }, - { 130419, true }, - { 130436, true }, - { 130447, false }, - { 130462, true }, - { 130479, true }, - { 130493, true }, - { 130506, true }, - { 130522, true }, - { 130536, true }, - { 130549, true }, + { 130321, true }, + { 130332, false }, + { 130347, true }, + { 130364, true }, + { 130378, true }, + { 130391, true }, + { 130407, true }, + { 130421, true }, + { 130434, true }, + { 130446, true }, + { 130458, true }, + { 130468, true }, + { 130480, true }, + { 130495, true }, + { 130507, true }, + { 130518, true }, + { 130538, true }, + { 130550, true }, { 130561, true }, - { 130573, true }, - { 130583, true }, - { 130595, true }, - { 130610, true }, - { 130622, true }, - { 130633, true }, - { 130653, true }, - { 130665, true }, - { 130676, true }, - { 130691, true }, + { 130576, true }, + { 130592, true }, + { 130603, true }, + { 130628, true }, + { 130637, true }, + { 130648, true }, + { 130663, true }, + { 130671, true }, + { 130684, true }, { 130707, true }, - { 130718, true }, - { 130743, true }, - { 130752, true }, - { 130763, true }, - { 130778, true }, - { 130786, true }, + { 130724, true }, + { 130735, true }, + { 130753, true }, + { 130771, true }, + { 130787, false }, { 130799, true }, - { 130822, true }, - { 130839, true }, - { 130850, true }, - { 130868, true }, - { 130886, true }, - { 130902, false }, - { 130914, true }, - { 130922, true }, - { 130932, true }, - { 130947, true }, - { 130961, true }, - { 130971, false }, - { 130989, true }, - { 131013, true }, - { 131028, true }, - { 131044, true }, - { 131056, true }, - { 131070, true }, - { 131098, true }, - { 131114, true }, - { 131127, true }, - { 131144, true }, - { 131161, true }, - { 131183, true }, - { 131193, true }, - { 131203, true }, + { 130807, true }, + { 130817, true }, + { 130832, true }, + { 130846, true }, + { 130856, false }, + { 130874, true }, + { 130898, true }, + { 130913, true }, + { 130929, true }, + { 130941, true }, + { 130955, true }, + { 130983, true }, + { 130999, true }, + { 131012, true }, + { 131029, true }, + { 131046, true }, + { 131068, true }, + { 131078, true }, + { 131088, true }, + { 131106, true }, + { 131124, true }, + { 131133, true }, + { 131146, true }, + { 131160, true }, + { 131171, true }, + { 131184, true }, + { 131202, true }, { 131221, true }, - { 131239, true }, - { 131248, true }, - { 131261, true }, - { 131275, true }, - { 131286, true }, - { 131304, true }, - { 131323, true }, - { 131348, true }, - { 131364, true }, - { 131383, true }, - { 131404, true }, - { 131421, true }, + { 131246, true }, + { 131262, true }, + { 131281, true }, + { 131302, true }, + { 131319, true }, + { 131333, true }, + { 131346, true }, + { 131375, true }, + { 131405, true }, + { 131413, true }, + { 131422, true }, { 131435, true }, - { 131448, true }, - { 131477, true }, - { 131507, true }, - { 131515, true }, - { 131524, true }, - { 131537, true }, - { 131548, true }, - { 131570, true }, - { 131582, true }, - { 131593, true }, - { 131622, true }, + { 131446, true }, + { 131468, true }, + { 131480, true }, + { 131491, true }, + { 131520, true }, + { 131538, true }, + { 131558, true }, + { 131576, true }, + { 131586, true }, + { 131615, true }, + { 131628, true }, { 131640, true }, - { 131660, true }, - { 131678, true }, - { 131688, true }, - { 131717, true }, - { 131730, true }, - { 131742, true }, - { 131758, true }, - { 131775, true }, - { 131798, true }, - { 131814, true }, - { 131837, true }, - { 131863, true }, - { 131877, true }, + { 131656, true }, + { 131673, true }, + { 131696, true }, + { 131712, true }, + { 131738, true }, + { 131752, true }, + { 131766, true }, + { 131785, true }, + { 131804, true }, + { 131818, true }, + { 131833, false }, + { 131843, true }, + { 131855, true }, + { 131871, true }, + { 131879, true }, { 131891, true }, - { 131910, true }, - { 131929, true }, - { 131943, true }, - { 131958, false }, - { 131968, true }, - { 131980, true }, - { 131996, true }, - { 132004, true }, - { 132016, true }, - { 132027, true }, - { 132038, true }, - { 132057, true }, - { 132069, true }, - { 132080, true }, - { 132090, true }, - { 132101, false }, - { 132112, true }, - { 132120, true }, - { 132135, true }, - { 132151, true }, - { 132165, true }, - { 132177, true }, - { 132190, false }, - { 132199, true }, - { 132213, true }, + { 131902, true }, + { 131913, true }, + { 131932, true }, + { 131944, true }, + { 131955, true }, + { 131965, true }, + { 131976, false }, + { 131987, true }, + { 131995, true }, + { 132010, true }, + { 132026, true }, + { 132040, true }, + { 132052, true }, + { 132065, false }, + { 132074, true }, + { 132088, true }, + { 132107, true }, + { 132114, true }, + { 132123, true }, + { 132134, true }, + { 132146, true }, + { 132164, true }, + { 132184, true }, + { 132197, true }, + { 132207, true }, + { 132220, true }, { 132232, true }, - { 132239, true }, { 132248, true }, - { 132259, true }, - { 132271, true }, - { 132289, true }, - { 132309, true }, - { 132322, true }, - { 132332, true }, - { 132345, true }, - { 132357, true }, - { 132373, true }, - { 132381, false }, - { 132389, true }, - { 132411, true }, - { 132419, true }, - { 132440, true }, - { 132464, true }, - { 132480, true }, - { 132496, true }, - { 132506, true }, + { 132256, false }, + { 132264, true }, + { 132286, true }, + { 132294, true }, + { 132315, true }, + { 132339, true }, + { 132355, true }, + { 132371, true }, + { 132381, true }, + { 132395, true }, + { 132412, true }, + { 132422, true }, + { 132432, true }, + { 132447, true }, + { 132459, true }, + { 132469, true }, + { 132479, true }, + { 132489, true }, + { 132498, true }, + { 132508, true }, { 132520, true }, - { 132537, true }, - { 132547, true }, - { 132557, true }, + { 132536, true }, + { 132559, true }, { 132572, true }, - { 132584, true }, - { 132594, true }, - { 132604, true }, + { 132585, true }, + { 132599, true }, { 132614, true }, - { 132623, true }, - { 132633, true }, - { 132645, true }, - { 132661, true }, - { 132684, true }, - { 132697, true }, - { 132710, true }, - { 132724, true }, - { 132739, true }, - { 132752, true }, - { 132764, true }, - { 132773, true }, - { 132789, true }, - { 132807, true }, - { 132823, true }, - { 132836, true }, - { 132850, true }, - { 132865, true }, + { 132627, true }, + { 132639, true }, + { 132648, true }, + { 132664, true }, + { 132682, true }, + { 132698, true }, + { 132711, true }, + { 132725, true }, + { 132740, true }, + { 132755, true }, + { 132765, true }, + { 132785, true }, + { 132799, true }, + { 132811, true }, + { 132834, true }, + { 132846, true }, + { 132861, true }, + { 132869, true }, { 132880, true }, - { 132890, true }, - { 132910, true }, - { 132924, true }, + { 132902, true }, + { 132913, false }, + { 132926, true }, { 132936, true }, - { 132959, true }, - { 132971, true }, - { 132986, true }, - { 132994, true }, - { 133005, true }, - { 133027, true }, - { 133038, false }, - { 133051, true }, - { 133061, true }, - { 133077, true }, - { 133091, true }, + { 132952, true }, + { 132966, true }, + { 132982, true }, + { 132998, true }, + { 133008, true }, + { 133021, true }, + { 133034, true }, + { 133055, true }, + { 133068, true }, + { 133081, true }, + { 133098, true }, { 133107, true }, - { 133123, true }, - { 133133, true }, - { 133146, true }, - { 133159, true }, - { 133180, true }, - { 133193, true }, - { 133206, true }, - { 133223, true }, - { 133232, true }, - { 133245, true }, - { 133253, true }, - { 133261, true }, - { 133276, true }, - { 133288, true }, + { 133120, true }, + { 133128, true }, + { 133136, true }, + { 133151, true }, + { 133163, true }, + { 133173, true }, + { 133183, true }, + { 133210, true }, + { 133235, true }, + { 133250, true }, + { 133258, true }, + { 133266, true }, + { 133275, true }, + { 133286, true }, { 133298, true }, - { 133308, true }, - { 133335, true }, - { 133360, true }, - { 133375, true }, - { 133383, true }, - { 133391, true }, - { 133400, true }, - { 133411, true }, - { 133423, true }, - { 133435, true }, - { 133445, true }, - { 133455, true }, - { 133467, true }, - { 133481, true }, - { 133496, true }, - { 133513, true }, - { 133527, true }, - { 133539, true }, - { 133550, true }, + { 133310, true }, + { 133320, true }, + { 133330, true }, + { 133342, true }, + { 133356, true }, + { 133371, true }, + { 133388, true }, + { 133402, true }, + { 133414, true }, + { 133425, true }, + { 133432, true }, + { 133446, true }, + { 133457, true }, + { 133468, true }, + { 133479, true }, + { 133491, true }, + { 133499, true }, + { 133514, true }, + { 133528, true }, + { 133542, true }, { 133557, true }, - { 133571, true }, - { 133582, true }, - { 133593, true }, - { 133604, true }, - { 133616, true }, - { 133624, true }, - { 133639, true }, - { 133653, true }, - { 133667, true }, + { 133572, true }, + { 133585, true }, + { 133597, true }, + { 133612, true }, + { 133630, true }, + { 133643, true }, + { 133650, true }, + { 133662, true }, { 133682, true }, - { 133697, true }, - { 133710, true }, - { 133722, true }, - { 133737, true }, - { 133755, true }, - { 133768, true }, - { 133775, true }, - { 133787, true }, - { 133807, true }, - { 133816, true }, - { 133829, true }, - { 133844, true }, - { 133861, true }, - { 133873, true }, - { 133887, true }, - { 133902, true }, + { 133691, true }, + { 133704, true }, + { 133719, true }, + { 133736, true }, + { 133748, true }, + { 133762, true }, + { 133777, true }, + { 133793, true }, + { 133809, true }, + { 133822, true }, + { 133838, true }, + { 133858, true }, + { 133875, true }, + { 133895, true }, { 133918, true }, - { 133934, true }, - { 133947, true }, - { 133963, true }, - { 133983, true }, - { 134000, true }, - { 134020, true }, - { 134043, true }, - { 134055, true }, - { 134064, true }, - { 134080, true }, - { 134092, true }, + { 133930, true }, + { 133939, true }, + { 133955, true }, + { 133967, true }, + { 133977, true }, + { 133986, true }, + { 133994, true }, + { 134004, false }, + { 134011, true }, + { 134022, true }, + { 134038, true }, + { 134051, true }, + { 134060, true }, + { 134075, true }, + { 134090, true }, { 134102, true }, - { 134111, false }, - { 134119, true }, - { 134129, false }, - { 134136, true }, + { 134123, true }, + { 134140, true }, { 134147, true }, - { 134163, true }, - { 134176, true }, - { 134185, true }, - { 134200, true }, + { 134167, true }, + { 134177, true }, + { 134188, false }, + { 134201, true }, { 134215, true }, - { 134227, true }, - { 134248, true }, - { 134265, true }, - { 134272, true }, - { 134292, true }, - { 134302, false }, - { 134315, true }, - { 134329, true }, - { 134344, true }, - { 134354, true }, - { 134365, true }, - { 134377, true }, - { 134390, true }, - { 134410, true }, - { 134418, true }, - { 134427, false }, - { 134436, true }, - { 134455, true }, - { 134463, true }, - { 134476, true }, - { 134488, true }, - { 134499, true }, - { 134515, true }, - { 134527, true }, - { 134539, true }, - { 134552, true }, - { 134571, true }, - { 134584, true }, - { 134601, true }, - { 134614, false }, - { 134623, true }, - { 134634, true }, - { 134647, true }, - { 134664, true }, - { 134676, true }, - { 134687, true }, - { 134702, true }, - { 134718, false }, - { 134733, true }, - { 134747, true }, - { 134760, true }, - { 134779, true }, - { 134791, true }, - { 134804, true }, - { 134821, true }, - { 134832, true }, - { 134843, true }, - { 134860, false }, - { 134881, false }, - { 134897, false }, - { 134917, true }, - { 134929, true }, - { 134936, true }, - { 134959, true }, - { 134971, true }, + { 134230, true }, + { 134240, true }, + { 134251, true }, + { 134263, true }, + { 134276, true }, + { 134296, true }, + { 134304, true }, + { 134313, false }, + { 134322, true }, + { 134341, true }, + { 134349, true }, + { 134362, true }, + { 134374, true }, + { 134385, true }, + { 134401, true }, + { 134413, true }, + { 134425, true }, + { 134438, true }, + { 134457, true }, + { 134470, true }, + { 134487, true }, + { 134500, false }, + { 134509, true }, + { 134520, true }, + { 134533, true }, + { 134550, true }, + { 134562, true }, + { 134573, true }, + { 134588, true }, + { 134604, false }, + { 134619, true }, + { 134633, true }, + { 134646, true }, + { 134665, true }, + { 134677, true }, + { 134690, true }, + { 134707, true }, + { 134718, true }, + { 134729, true }, + { 134746, false }, + { 134767, false }, + { 134783, false }, + { 134803, true }, + { 134815, true }, + { 134822, true }, + { 134845, true }, + { 134857, true }, + { 134870, true }, + { 134882, true }, + { 134897, true }, + { 134912, true }, + { 134926, true }, + { 134943, true }, + { 134958, false }, + { 134969, true }, { 134984, true }, - { 134996, true }, - { 135011, true }, - { 135026, true }, + { 134993, true }, + { 135004, true }, + { 135019, true }, { 135040, true }, - { 135057, true }, - { 135072, false }, - { 135083, true }, - { 135098, true }, - { 135107, true }, - { 135118, true }, - { 135133, true }, - { 135154, true }, - { 135172, true }, - { 135199, true }, - { 135209, true }, - { 135223, true }, - { 135231, true }, - { 135245, true }, - { 135262, true }, - { 135277, true }, - { 135287, true }, - { 135298, true }, - { 135312, true }, - { 135321, true }, - { 135340, true }, - { 135353, true }, - { 135365, true }, - { 135375, true }, - { 135383, true }, - { 135396, true }, - { 135404, true }, - { 135428, true }, - { 135437, true }, - { 135449, false }, - { 135459, true }, - { 135468, true }, - { 135480, true }, - { 135491, true }, - { 135502, true }, - { 135525, true }, - { 135548, true }, - { 135571, true }, - { 135580, true }, - { 135590, false }, - { 135607, true }, - { 135616, true }, + { 135058, true }, + { 135085, true }, + { 135095, true }, + { 135109, true }, + { 135117, true }, + { 135127, true }, + { 135141, true }, + { 135158, true }, + { 135173, true }, + { 135183, true }, + { 135194, true }, + { 135208, true }, + { 135217, true }, + { 135236, true }, + { 135249, true }, + { 135261, true }, + { 135271, true }, + { 135279, true }, + { 135292, true }, + { 135300, true }, + { 135324, true }, + { 135333, true }, + { 135345, false }, + { 135355, true }, + { 135364, true }, + { 135376, true }, + { 135387, true }, + { 135398, true }, + { 135421, true }, + { 135444, true }, + { 135467, true }, + { 135476, true }, + { 135486, false }, + { 135503, true }, + { 135512, true }, + { 135522, true }, + { 135535, true }, + { 135543, true }, + { 135553, true }, + { 135564, true }, + { 135574, true }, + { 135587, true }, + { 135599, true }, + { 135614, true }, { 135626, true }, - { 135639, true }, - { 135647, true }, - { 135657, true }, - { 135668, true }, - { 135678, true }, - { 135691, true }, - { 135703, true }, - { 135718, true }, - { 135730, true }, - { 135746, true }, - { 135760, true }, - { 135774, true }, - { 135781, true }, - { 135791, true }, - { 135803, true }, - { 135812, true }, - { 135826, true }, - { 135840, true }, - { 135856, false }, - { 135870, true }, - { 135881, true }, - { 135893, true }, - { 135905, true }, - { 135914, true }, - { 135928, true }, - { 135940, true }, - { 135950, true }, - { 135962, true }, - { 135972, true }, - { 135982, true }, - { 135992, true }, - { 136002, true }, - { 136020, true }, - { 136035, true }, - { 136046, true }, - { 136059, true }, - { 136070, true }, - { 136077, true }, - { 136094, true }, - { 136104, false }, - { 136115, true }, - { 136125, true }, - { 136135, true }, - { 136146, true }, - { 136155, true }, - { 136177, true }, - { 136202, true }, - { 136221, true }, - { 136228, true }, - { 136244, true }, - { 136258, true }, - { 136275, true }, + { 135642, true }, + { 135656, true }, + { 135670, true }, + { 135677, true }, + { 135687, true }, + { 135699, true }, + { 135708, true }, + { 135722, true }, + { 135736, true }, + { 135752, false }, + { 135766, true }, + { 135777, true }, + { 135789, true }, + { 135801, true }, + { 135810, true }, + { 135824, true }, + { 135836, true }, + { 135846, true }, + { 135858, true }, + { 135868, true }, + { 135878, true }, + { 135888, true }, + { 135898, true }, + { 135916, true }, + { 135931, true }, + { 135942, true }, + { 135955, true }, + { 135966, true }, + { 135973, true }, + { 135990, true }, + { 136000, false }, + { 136011, true }, + { 136021, true }, + { 136031, true }, + { 136042, true }, + { 136051, true }, + { 136076, true }, + { 136095, true }, + { 136102, true }, + { 136118, true }, + { 136132, true }, + { 136149, true }, + { 136158, true }, + { 136171, true }, + { 136186, true }, + { 136196, true }, + { 136212, true }, + { 136225, true }, + { 136247, true }, + { 136257, true }, + { 136271, true }, { 136284, true }, - { 136297, true }, - { 136312, true }, - { 136322, true }, - { 136338, true }, + { 136298, true }, + { 136317, true }, + { 136340, true }, { 136351, true }, - { 136373, true }, - { 136383, true }, - { 136397, true }, - { 136410, true }, - { 136424, true }, - { 136443, true }, - { 136466, true }, + { 136360, true }, + { 136371, true }, + { 136385, true }, + { 136394, true }, + { 136405, true }, + { 136416, true }, + { 136430, true }, + { 136447, true }, + { 136458, true }, + { 136467, true }, { 136477, true }, - { 136486, true }, - { 136497, true }, - { 136511, true }, - { 136520, true }, - { 136531, true }, - { 136542, true }, - { 136556, true }, - { 136573, true }, - { 136584, true }, - { 136593, true }, - { 136603, true }, - { 136615, true }, - { 136630, true }, + { 136489, true }, + { 136504, true }, + { 136516, true }, + { 136535, true }, + { 136548, true }, + { 136561, true }, + { 136581, true }, + { 136605, true }, + { 136614, true }, + { 136629, true }, { 136642, true }, - { 136661, true }, - { 136674, true }, + { 136654, true }, + { 136667, true }, + { 136679, true }, { 136687, true }, - { 136707, true }, - { 136731, true }, - { 136740, true }, - { 136755, true }, - { 136768, true }, - { 136780, true }, - { 136793, true }, - { 136805, true }, - { 136813, true }, - { 136825, true }, - { 136834, true }, - { 136849, true }, - { 136858, true }, - { 136880, true }, - { 136892, true }, - { 136900, true }, - { 136910, true }, - { 136925, true }, - { 136933, true }, - { 136946, true }, - { 136961, true }, - { 136972, true }, - { 136983, true }, - { 136992, true }, - { 137007, true }, - { 137029, true }, - { 137043, true }, - { 137057, true }, - { 137071, true }, - { 137091, true }, - { 137114, true }, - { 137139, true }, - { 137150, true }, - { 137179, true }, - { 137200, true }, - { 137219, true }, - { 137236, true }, - { 137256, true }, - { 137269, true }, - { 137284, true }, - { 137294, true }, - { 137307, true }, - { 137324, true }, - { 137342, true }, - { 137355, true }, - { 137370, true }, - { 137380, true }, - { 137396, true }, - { 137412, true }, + { 136699, true }, + { 136708, true }, + { 136723, true }, + { 136732, true }, + { 136754, true }, + { 136766, true }, + { 136774, true }, + { 136784, true }, + { 136799, true }, + { 136807, true }, + { 136820, true }, + { 136835, true }, + { 136846, true }, + { 136857, true }, + { 136866, true }, + { 136881, true }, + { 136903, true }, + { 136917, true }, + { 136931, true }, + { 136945, true }, + { 136965, true }, + { 136988, true }, + { 137013, true }, + { 137024, true }, + { 137053, true }, + { 137074, true }, + { 137093, true }, + { 137110, true }, + { 137130, true }, + { 137143, true }, + { 137158, true }, + { 137168, true }, + { 137181, true }, + { 137198, true }, + { 137216, true }, + { 137229, true }, + { 137244, true }, + { 137254, true }, + { 137270, true }, + { 137286, true }, + { 137297, true }, + { 137308, true }, + { 137318, true }, + { 137331, true }, + { 137343, true }, + { 137364, true }, + { 137378, false }, + { 137398, false }, + { 137410, false }, { 137423, true }, - { 137434, true }, + { 137433, true }, { 137444, true }, { 137457, true }, - { 137469, true }, - { 137490, true }, - { 137504, false }, - { 137524, false }, - { 137536, false }, - { 137549, true }, - { 137559, true }, - { 137570, true }, - { 137583, true }, - { 137596, true }, - { 137612, true }, - { 137629, true }, - { 137641, true }, - { 137667, true }, - { 137700, true }, - { 137734, true }, - { 137746, true }, - { 137760, true }, - { 137780, true }, - { 137794, true }, - { 137810, true }, - { 137822, true }, - { 137835, true }, + { 137470, true }, + { 137486, true }, + { 137503, true }, + { 137515, true }, + { 137541, true }, + { 137574, true }, + { 137608, true }, + { 137620, true }, + { 137634, true }, + { 137654, true }, + { 137668, true }, + { 137684, true }, + { 137696, true }, + { 137709, true }, + { 137735, true }, + { 137756, true }, + { 137772, true }, + { 137786, true }, + { 137806, true }, + { 137824, true }, + { 137840, true }, { 137861, true }, - { 137882, true }, - { 137898, true }, - { 137912, true }, - { 137932, true }, - { 137950, true }, - { 137966, true }, - { 137987, true }, - { 138001, true }, - { 138014, true }, - { 138032, true }, - { 138049, true }, - { 138061, true }, - { 138074, true }, - { 138094, true }, - { 138106, true }, - { 138128, true }, - { 138150, true }, - { 138169, true }, - { 138179, true }, - { 138196, true }, - { 138216, true }, - { 138238, true }, - { 138250, true }, - { 138267, true }, - { 138278, true }, - { 138291, true }, - { 138311, true }, + { 137875, true }, + { 137888, true }, + { 137906, true }, + { 137923, true }, + { 137935, true }, + { 137948, true }, + { 137968, true }, + { 137980, true }, + { 138002, true }, + { 138024, true }, + { 138043, true }, + { 138053, true }, + { 138070, true }, + { 138090, true }, + { 138112, true }, + { 138124, true }, + { 138141, true }, + { 138152, true }, + { 138165, true }, + { 138185, true }, + { 138195, true }, + { 138203, true }, + { 138214, true }, + { 138239, true }, + { 138251, true }, + { 138266, true }, + { 138293, true }, { 138321, true }, - { 138329, true }, - { 138340, true }, - { 138365, true }, - { 138377, true }, - { 138392, true }, - { 138419, true }, - { 138447, true }, + { 138338, true }, + { 138357, true }, + { 138376, true }, + { 138400, true }, + { 138411, false }, + { 138424, true }, + { 138435, true }, + { 138448, true }, { 138464, true }, - { 138483, true }, - { 138502, true }, - { 138526, true }, - { 138537, false }, - { 138550, true }, - { 138561, true }, - { 138574, true }, - { 138590, true }, - { 138605, true }, - { 138625, true }, - { 138636, true }, - { 138650, true }, - { 138662, true }, - { 138685, true }, - { 138710, true }, - { 138733, true }, - { 138749, true }, - { 138766, true }, - { 138777, true }, - { 138794, true }, - { 138808, true }, - { 138820, true }, - { 138836, false }, - { 138849, true }, - { 138861, true }, - { 138876, true }, - { 138889, true }, - { 138901, true }, - { 138912, true }, - { 138932, true }, - { 138949, true }, - { 138962, true }, - { 138974, true }, - { 138984, false }, - { 138993, true }, - { 139007, true }, - { 139017, true }, - { 139030, true }, - { 139041, true }, - { 139064, true }, - { 139077, true }, - { 139095, true }, - { 139106, true }, - { 139120, true }, - { 139136, true }, - { 139147, true }, - { 139155, true }, - { 139166, true }, - { 139181, true }, - { 139200, true }, - { 139213, true }, - { 139236, true }, - { 139250, true }, - { 139265, true }, - { 139286, true }, - { 139296, true }, - { 139306, true }, + { 138479, true }, + { 138499, true }, + { 138510, true }, + { 138524, true }, + { 138536, true }, + { 138559, true }, + { 138584, true }, + { 138607, true }, + { 138623, true }, + { 138640, true }, + { 138651, true }, + { 138668, true }, + { 138682, true }, + { 138694, true }, + { 138710, false }, + { 138723, true }, + { 138735, true }, + { 138750, true }, + { 138763, true }, + { 138775, true }, + { 138786, true }, + { 138806, true }, + { 138823, true }, + { 138836, true }, + { 138848, true }, + { 138858, false }, + { 138867, true }, + { 138881, true }, + { 138891, true }, + { 138904, true }, + { 138915, true }, + { 138938, true }, + { 138951, true }, + { 138969, true }, + { 138980, true }, + { 138994, true }, + { 139010, true }, + { 139021, true }, + { 139029, true }, + { 139040, true }, + { 139055, true }, + { 139074, true }, + { 139087, true }, + { 139110, true }, + { 139124, true }, + { 139139, true }, + { 139160, true }, + { 139170, true }, + { 139180, true }, + { 139194, true }, + { 139207, true }, + { 139220, true }, + { 139235, true }, + { 139253, true }, + { 139276, true }, + { 139288, true }, + { 139304, true }, { 139320, true }, - { 139333, true }, - { 139346, true }, - { 139361, true }, - { 139379, true }, + { 139337, true }, + { 139350, true }, + { 139362, true }, + { 139375, true }, + { 139387, true }, { 139402, true }, { 139414, true }, - { 139430, true }, - { 139446, true }, - { 139463, true }, - { 139476, true }, - { 139488, true }, - { 139501, true }, - { 139513, true }, - { 139528, true }, - { 139540, true }, - { 139557, true }, - { 139567, true }, - { 139594, true }, - { 139615, true }, - { 139633, true }, - { 139650, true }, - { 139661, true }, - { 139679, true }, - { 139694, true }, - { 139706, true }, - { 139718, true }, - { 139730, true }, - { 139745, true }, - { 139780, true }, - { 139803, true }, - { 139825, true }, - { 139842, true }, - { 139852, true }, - { 139865, true }, - { 139877, true }, - { 139894, true }, - { 139911, true }, - { 139926, false }, - { 139945, true }, - { 139963, true }, - { 139977, true }, - { 140008, true }, - { 140025, true }, - { 140040, true }, + { 139431, true }, + { 139441, true }, + { 139468, true }, + { 139489, true }, + { 139507, true }, + { 139524, true }, + { 139535, true }, + { 139553, true }, + { 139568, true }, + { 139580, true }, + { 139592, true }, + { 139604, true }, + { 139619, true }, + { 139654, true }, + { 139677, true }, + { 139699, true }, + { 139716, true }, + { 139726, true }, + { 139739, true }, + { 139751, true }, + { 139768, true }, + { 139785, true }, + { 139800, false }, + { 139819, true }, + { 139837, true }, + { 139851, true }, + { 139882, true }, + { 139899, true }, + { 139914, true }, + { 139926, true }, + { 139938, true }, + { 139957, true }, + { 139979, true }, + { 140006, true }, + { 140018, true }, + { 140035, true }, { 140052, true }, - { 140064, true }, - { 140083, true }, - { 140105, true }, - { 140132, true }, - { 140144, true }, - { 140161, true }, - { 140178, true }, - { 140200, true }, - { 140216, true }, - { 140229, true }, - { 140241, true }, - { 140262, true }, - { 140277, true }, - { 140296, true }, - { 140308, true }, - { 140335, true }, - { 140352, true }, - { 140369, true }, - { 140385, true }, - { 140400, true }, - { 140439, true }, - { 140468, true }, - { 140484, true }, - { 140500, true }, - { 140524, true }, - { 140546, true }, - { 140571, true }, - { 140593, true }, - { 140608, true }, + { 140074, true }, + { 140090, true }, + { 140103, true }, + { 140115, true }, + { 140136, true }, + { 140151, true }, + { 140170, true }, + { 140182, true }, + { 140209, true }, + { 140226, true }, + { 140243, true }, + { 140259, true }, + { 140274, true }, + { 140313, true }, + { 140342, true }, + { 140358, true }, + { 140382, true }, + { 140404, true }, + { 140429, true }, + { 140451, true }, + { 140466, true }, + { 140493, true }, + { 140518, true }, + { 140536, true }, + { 140553, true }, + { 140576, true }, + { 140602, true }, + { 140617, true }, { 140635, true }, - { 140660, true }, + { 140656, true }, { 140678, true }, - { 140695, true }, - { 140718, true }, - { 140744, true }, - { 140759, true }, - { 140777, true }, - { 140798, true }, - { 140820, true }, - { 140841, true }, - { 140869, true }, - { 140888, true }, - { 140907, true }, - { 140922, true }, - { 140946, true }, - { 140959, true }, - { 140972, true }, - { 140989, true }, - { 141004, true }, - { 141018, true }, - { 141039, false }, - { 141053, true }, - { 141063, false }, - { 141079, true }, - { 141092, true }, - { 141111, true }, - { 141127, true }, - { 141151, true }, - { 141168, false }, - { 141177, true }, - { 141192, true }, - { 141202, true }, - { 141214, true }, - { 141235, true }, - { 141248, true }, - { 141265, true }, - { 141287, true }, - { 141307, true }, - { 141320, true }, - { 141338, true }, - { 141351, true }, - { 141364, true }, - { 141383, true }, - { 141393, true }, - { 141409, true }, - { 141425, true }, - { 141441, true }, - { 141454, true }, - { 141473, true }, - { 141491, true }, - { 141505, true }, - { 141515, false }, - { 141527, true }, + { 140699, true }, + { 140727, true }, + { 140746, true }, + { 140765, true }, + { 140780, true }, + { 140804, true }, + { 140817, true }, + { 140830, true }, + { 140847, true }, + { 140862, true }, + { 140876, true }, + { 140897, false }, + { 140911, true }, + { 140921, false }, + { 140937, true }, + { 140950, true }, + { 140969, true }, + { 140985, true }, + { 141009, true }, + { 141026, false }, + { 141035, true }, + { 141050, true }, + { 141060, true }, + { 141072, true }, + { 141093, true }, + { 141106, true }, + { 141123, true }, + { 141145, true }, + { 141165, true }, + { 141178, true }, + { 141196, true }, + { 141209, true }, + { 141222, true }, + { 141241, true }, + { 141251, true }, + { 141267, true }, + { 141283, true }, + { 141299, true }, + { 141312, true }, + { 141331, true }, + { 141349, true }, + { 141363, true }, + { 141373, false }, + { 141385, true }, + { 141396, true }, + { 141404, true }, + { 141414, true }, + { 141423, true }, + { 141435, true }, + { 141449, true }, + { 141457, true }, + { 141468, true }, + { 141479, true }, + { 141495, true }, + { 141507, true }, + { 141517, true }, + { 141529, true }, { 141538, true }, - { 141546, true }, - { 141556, true }, - { 141565, true }, - { 141577, true }, - { 141591, true }, + { 141554, false }, + { 141561, true }, + { 141569, true }, + { 141579, true }, + { 141587, true }, { 141599, true }, - { 141610, true }, - { 141621, true }, - { 141637, true }, - { 141649, true }, + { 141613, true }, + { 141622, true }, + { 141638, true }, + { 141651, true }, { 141659, true }, - { 141671, true }, - { 141680, true }, - { 141696, false }, - { 141703, true }, - { 141711, true }, - { 141721, true }, - { 141729, true }, - { 141741, true }, - { 141755, true }, - { 141764, true }, - { 141780, true }, - { 141793, true }, - { 141801, true }, - { 141810, true }, - { 141826, true }, - { 141837, true }, - { 141847, false }, - { 141865, false }, - { 141875, true }, + { 141668, true }, + { 141684, true }, + { 141695, true }, + { 141705, false }, + { 141723, false }, + { 141733, true }, + { 141744, true }, + { 141756, true }, + { 141768, false }, + { 141779, true }, + { 141788, true }, + { 141797, true }, + { 141817, true }, + { 141829, true }, + { 141845, true }, + { 141853, true }, + { 141862, true }, + { 141870, true }, { 141886, true }, - { 141898, true }, - { 141910, false }, - { 141921, true }, - { 141930, true }, - { 141939, true }, - { 141959, true }, - { 141971, true }, - { 141987, true }, - { 141995, true }, - { 142004, true }, - { 142012, true }, - { 142028, true }, + { 141903, true }, + { 141911, true }, + { 141922, true }, + { 141934, true }, + { 141944, true }, + { 141955, true }, + { 141965, true }, + { 141984, true }, + { 142000, true }, + { 142011, true }, + { 142021, true }, + { 142030, true }, { 142045, true }, { 142053, true }, - { 142064, true }, - { 142076, true }, - { 142086, true }, - { 142097, true }, - { 142107, true }, - { 142126, true }, - { 142142, true }, - { 142153, true }, + { 142062, true }, + { 142080, true }, + { 142096, true }, + { 142108, true }, + { 142121, true }, + { 142135, true }, { 142163, true }, - { 142172, true }, - { 142187, true }, - { 142195, true }, - { 142204, true }, - { 142222, true }, - { 142238, true }, - { 142250, true }, - { 142263, true }, - { 142277, true }, - { 142305, true }, - { 142317, true }, - { 142330, true }, + { 142175, true }, + { 142188, true }, + { 142202, true }, + { 142219, true }, + { 142228, true }, + { 142247, true }, + { 142257, true }, + { 142272, true }, + { 142289, true }, + { 142312, true }, + { 142331, true }, { 142344, true }, - { 142361, true }, - { 142370, true }, - { 142389, true }, - { 142399, true }, - { 142414, true }, - { 142431, true }, - { 142454, true }, - { 142473, true }, - { 142486, true }, - { 142495, true }, - { 142508, true }, - { 142522, true }, - { 142545, true }, - { 142566, true }, - { 142583, true }, - { 142604, true }, - { 142614, true }, - { 142630, true }, - { 142646, true }, - { 142657, true }, - { 142667, true }, - { 142679, true }, - { 142691, true }, - { 142704, true }, - { 142721, true }, - { 142738, true }, - { 142755, true }, - { 142771, true }, - { 142779, true }, - { 142797, true }, - { 142811, true }, - { 142829, true }, - { 142843, true }, - { 142861, true }, - { 142880, true }, - { 142896, true }, - { 142918, true }, - { 142929, true }, - { 142940, true }, - { 142949, true }, - { 142967, true }, - { 142986, true }, - { 142997, true }, - { 143010, true }, + { 142353, true }, + { 142366, true }, + { 142380, true }, + { 142403, true }, + { 142424, true }, + { 142441, true }, + { 142462, true }, + { 142472, true }, + { 142488, true }, + { 142504, true }, + { 142515, true }, + { 142525, true }, + { 142537, true }, + { 142549, true }, + { 142562, true }, + { 142579, true }, + { 142596, true }, + { 142613, true }, + { 142629, true }, + { 142640, true }, + { 142648, true }, + { 142666, true }, + { 142680, true }, + { 142698, true }, + { 142712, true }, + { 142730, true }, + { 142749, true }, + { 142765, true }, + { 142787, true }, + { 142798, true }, + { 142809, true }, + { 142818, true }, + { 142836, true }, + { 142855, true }, + { 142866, true }, + { 142879, true }, + { 142891, true }, + { 142901, true }, + { 142924, true }, + { 142931, true }, + { 142942, true }, + { 142952, true }, + { 142965, true }, + { 142981, true }, + { 142992, true }, + { 143002, true }, + { 143012, true }, { 143022, true }, { 143032, true }, - { 143055, true }, - { 143062, true }, - { 143073, true }, - { 143083, true }, - { 143096, true }, - { 143112, true }, - { 143123, true }, - { 143133, true }, - { 143143, true }, - { 143153, true }, - { 143163, true }, + { 143043, true }, + { 143053, true }, + { 143064, true }, + { 143082, true }, + { 143094, true }, + { 143106, true }, + { 143116, true }, + { 143125, true }, + { 143142, true }, + { 143161, true }, { 143174, true }, - { 143184, true }, - { 143195, true }, - { 143213, true }, - { 143225, true }, - { 143237, true }, - { 143247, true }, - { 143256, true }, - { 143273, true }, - { 143292, true }, - { 143305, true }, - { 143318, true }, + { 143187, true }, + { 143199, true }, + { 143218, true }, + { 143231, true }, + { 143248, true }, + { 143280, true }, + { 143294, true }, + { 143306, true }, { 143330, true }, - { 143349, true }, - { 143362, true }, - { 143379, true }, - { 143411, true }, - { 143425, true }, - { 143437, true }, - { 143461, true }, - { 143484, true }, - { 143516, true }, - { 143538, true }, - { 143563, true }, - { 143575, true }, - { 143588, true }, - { 143614, true }, - { 143624, true }, - { 143645, true }, - { 143656, true }, + { 143353, true }, + { 143385, true }, + { 143407, true }, + { 143432, true }, + { 143444, true }, + { 143457, true }, + { 143483, true }, + { 143493, true }, + { 143514, true }, + { 143525, true }, + { 143544, true }, + { 143558, true }, + { 143570, true }, + { 143584, true }, + { 143597, true }, + { 143612, true }, + { 143627, true }, + { 143641, true }, + { 143655, false }, { 143675, true }, - { 143689, true }, - { 143701, true }, - { 143715, true }, - { 143728, true }, - { 143743, true }, - { 143758, true }, - { 143772, true }, - { 143786, false }, - { 143806, true }, - { 143818, true }, - { 143831, true }, - { 143845, true }, - { 143862, true }, - { 143877, true }, - { 143893, true }, - { 143910, true }, + { 143687, true }, + { 143700, true }, + { 143714, true }, + { 143731, true }, + { 143746, true }, + { 143762, true }, + { 143779, true }, + { 143793, true }, + { 143808, true }, + { 143821, true }, + { 143830, true }, + { 143839, true }, + { 143855, true }, + { 143875, true }, + { 143894, true }, + { 143906, true }, + { 143915, true }, { 143924, true }, - { 143939, true }, - { 143952, true }, - { 143961, true }, - { 143970, true }, - { 143986, true }, - { 144006, true }, - { 144025, true }, - { 144037, true }, - { 144046, true }, - { 144055, true }, - { 144064, true }, - { 144073, true }, + { 143933, true }, + { 143942, true }, + { 143954, true }, + { 143963, true }, + { 143971, true }, + { 143980, true }, + { 143991, true }, + { 144004, true }, + { 144013, true }, + { 144026, true }, + { 144036, true }, + { 144047, true }, + { 144060, true }, + { 144074, true }, { 144085, true }, { 144096, true }, - { 144105, true }, - { 144113, true }, - { 144122, true }, - { 144133, true }, - { 144146, true }, - { 144155, true }, - { 144168, true }, - { 144178, true }, - { 144191, true }, - { 144202, true }, - { 144215, true }, + { 144107, true }, + { 144116, true }, + { 144125, true }, + { 144140, true }, + { 144157, true }, + { 144174, true }, + { 144183, true }, + { 144198, true }, + { 144217, false }, { 144229, true }, - { 144240, true }, - { 144251, true }, - { 144262, true }, - { 144271, true }, - { 144280, true }, - { 144295, true }, - { 144312, true }, - { 144329, true }, - { 144338, true }, - { 144353, true }, - { 144372, false }, - { 144384, true }, - { 144397, true }, - { 144414, true }, - { 144427, true }, - { 144440, true }, - { 144465, true }, - { 144474, true }, - { 144488, true }, - { 144511, true }, - { 144523, true }, - { 144536, true }, - { 144556, true }, - { 144567, true }, - { 144584, true }, - { 144598, true }, - { 144609, true }, - { 144623, true }, - { 144640, true }, - { 144661, true }, - { 144672, true }, - { 144683, true }, + { 144242, true }, + { 144259, true }, + { 144272, true }, + { 144285, true }, + { 144310, true }, + { 144319, true }, + { 144333, true }, + { 144356, true }, + { 144368, true }, + { 144381, true }, + { 144401, true }, + { 144412, true }, + { 144429, true }, + { 144443, true }, + { 144454, true }, + { 144468, true }, + { 144485, true }, + { 144506, true }, + { 144517, true }, + { 144528, true }, + { 144535, true }, + { 144546, true }, + { 144553, true }, + { 144563, true }, + { 144575, true }, + { 144589, true }, + { 144599, true }, + { 144608, true }, + { 144616, true }, + { 144629, true }, + { 144641, true }, + { 144655, true }, + { 144669, true }, + { 144676, true }, + { 144683, false }, { 144690, true }, - { 144701, true }, - { 144708, true }, - { 144718, true }, - { 144730, true }, - { 144744, true }, - { 144754, true }, - { 144763, true }, - { 144771, true }, - { 144784, true }, - { 144796, true }, - { 144813, true }, - { 144827, true }, - { 144841, true }, - { 144848, true }, - { 144855, false }, - { 144862, true }, - { 144871, true }, - { 144879, true }, + { 144699, true }, + { 144707, true }, + { 144717, true }, + { 144735, true }, + { 144749, true }, + { 144761, true }, + { 144772, true }, + { 144783, true }, + { 144794, true }, + { 144807, true }, + { 144818, true }, + { 144829, true }, + { 144838, true }, + { 144855, true }, + { 144866, true }, + { 144882, true }, { 144889, true }, - { 144907, true }, + { 144896, true }, + { 144903, true }, + { 144910, true }, { 144921, true }, - { 144933, true }, - { 144944, true }, - { 144955, true }, - { 144966, true }, - { 144979, true }, - { 144990, true }, - { 145001, true }, - { 145010, true }, + { 144927, true }, + { 144948, true }, + { 144960, true }, + { 144968, true }, + { 144981, true }, + { 144994, true }, + { 145004, true }, + { 145014, true }, { 145027, true }, - { 145038, true }, + { 145041, true }, { 145054, true }, - { 145061, true }, - { 145068, true }, - { 145075, true }, + { 145069, true }, { 145082, true }, - { 145093, true }, - { 145099, true }, - { 145120, true }, - { 145132, true }, - { 145140, true }, - { 145153, true }, - { 145166, true }, - { 145176, true }, - { 145186, true }, - { 145199, true }, - { 145213, true }, - { 145226, true }, - { 145241, true }, - { 145254, true }, - { 145267, true }, - { 145276, true }, - { 145295, true }, - { 145320, false }, - { 145332, true }, - { 145340, true }, - { 145356, true }, - { 145370, true }, - { 145387, true }, - { 145400, true }, - { 145415, true }, - { 145434, true }, - { 145447, true }, - { 145462, true }, - { 145475, true }, - { 145491, true }, - { 145502, true }, - { 145515, true }, - { 145532, true }, - { 145546, false }, + { 145095, true }, + { 145104, true }, + { 145123, true }, + { 145148, false }, + { 145160, true }, + { 145168, true }, + { 145184, true }, + { 145198, true }, + { 145215, true }, + { 145228, true }, + { 145243, true }, + { 145262, true }, + { 145275, true }, + { 145290, true }, + { 145303, true }, + { 145319, true }, + { 145330, true }, + { 145343, true }, + { 145360, true }, + { 145374, false }, + { 145393, true }, + { 145408, true }, + { 145420, true }, + { 145428, true }, + { 145440, true }, + { 145454, true }, + { 145468, true }, + { 145482, true }, + { 145498, true }, + { 145514, true }, + { 145530, true }, + { 145545, true }, { 145565, true }, - { 145580, true }, + { 145583, true }, { 145592, true }, - { 145600, true }, - { 145612, true }, - { 145626, true }, - { 145640, true }, - { 145654, true }, - { 145670, true }, - { 145686, true }, - { 145702, true }, - { 145717, true }, - { 145737, true }, - { 145755, true }, - { 145764, true }, - { 145780, true }, - { 145795, true }, - { 145809, true }, - { 145822, true }, - { 145837, true }, - { 145857, true }, - { 145874, true }, - { 145893, true }, + { 145608, true }, + { 145623, true }, + { 145636, true }, + { 145651, true }, + { 145671, true }, + { 145688, true }, + { 145707, true }, + { 145727, true }, + { 145744, true }, + { 145758, true }, + { 145778, true }, + { 145791, true }, + { 145805, false }, + { 145818, true }, + { 145828, false }, + { 145840, true }, + { 145858, true }, + { 145875, true }, + { 145890, true }, { 145913, true }, - { 145930, true }, - { 145944, true }, - { 145964, true }, + { 145926, true }, + { 145943, true }, + { 145957, true }, + { 145969, true }, { 145977, true }, - { 145991, false }, - { 146004, true }, - { 146014, false }, - { 146026, true }, - { 146044, true }, + { 145992, true }, + { 146009, true }, + { 146023, true }, + { 146038, true }, + { 146052, true }, { 146061, true }, { 146076, true }, - { 146099, true }, - { 146112, true }, - { 146129, true }, - { 146143, true }, - { 146155, true }, - { 146163, true }, - { 146178, true }, - { 146195, true }, + { 146091, true }, + { 146109, true }, + { 146123, true }, + { 146137, true }, + { 146152, true }, + { 146166, true }, + { 146177, true }, + { 146188, true }, + { 146199, true }, { 146209, true }, - { 146224, true }, - { 146238, true }, - { 146247, true }, - { 146262, true }, - { 146277, true }, - { 146295, true }, + { 146221, true }, + { 146236, true }, + { 146244, true }, + { 146258, true }, + { 146271, true }, + { 146282, true }, + { 146299, true }, { 146309, true }, - { 146323, true }, - { 146338, true }, - { 146352, true }, - { 146363, true }, - { 146374, true }, - { 146385, true }, - { 146395, true }, - { 146407, true }, - { 146422, true }, - { 146430, true }, - { 146444, true }, - { 146457, true }, - { 146468, true }, - { 146485, true }, - { 146495, true }, - { 146507, true }, - { 146521, false }, - { 146533, true }, - { 146553, true }, - { 146578, true }, - { 146597, false }, - { 146612, false }, - { 146628, true }, - { 146647, true }, - { 146663, true }, - { 146674, true }, - { 146686, true }, - { 146704, true }, - { 146716, true }, - { 146727, true }, - { 146738, true }, - { 146755, true }, - { 146774, true }, - { 146791, true }, - { 146809, true }, - { 146826, true }, - { 146844, true }, - { 146866, true }, - { 146879, true }, + { 146321, true }, + { 146335, false }, + { 146347, true }, + { 146367, true }, + { 146392, true }, + { 146411, false }, + { 146426, false }, + { 146442, true }, + { 146461, true }, + { 146477, true }, + { 146488, true }, + { 146500, true }, + { 146518, true }, + { 146530, true }, + { 146541, true }, + { 146552, true }, + { 146569, true }, + { 146588, true }, + { 146605, true }, + { 146623, true }, + { 146640, true }, + { 146658, true }, + { 146680, true }, + { 146693, true }, + { 146709, true }, + { 146722, true }, + { 146731, true }, + { 146748, true }, + { 146759, true }, + { 146771, true }, + { 146786, true }, + { 146794, true }, + { 146811, true }, + { 146825, true }, + { 146836, true }, + { 146846, true }, + { 146864, true }, + { 146882, true }, { 146895, true }, - { 146908, true }, - { 146917, true }, - { 146934, true }, - { 146945, true }, - { 146957, true }, - { 146972, true }, - { 146980, true }, - { 146997, true }, - { 147011, true }, - { 147022, true }, - { 147032, true }, - { 147050, true }, - { 147068, true }, - { 147081, true }, - { 147100, true }, - { 147116, true }, - { 147126, true }, - { 147140, true }, - { 147148, true }, - { 147159, true }, - { 147179, true }, - { 147192, true }, - { 147205, true }, + { 146914, true }, + { 146930, true }, + { 146940, true }, + { 146954, true }, + { 146962, true }, + { 146973, true }, + { 146993, true }, + { 147006, true }, + { 147019, true }, + { 147031, true }, + { 147051, true }, + { 147062, true }, + { 147077, true }, + { 147087, true }, + { 147098, true }, + { 147106, true }, + { 147121, true }, + { 147128, true }, + { 147144, true }, + { 147153, true }, + { 147161, true }, + { 147172, true }, + { 147182, true }, + { 147194, true }, + { 147204, true }, { 147217, true }, - { 147237, true }, - { 147248, true }, - { 147263, true }, - { 147273, true }, - { 147284, true }, - { 147292, true }, - { 147307, true }, - { 147314, true }, - { 147330, true }, - { 147339, true }, - { 147347, true }, - { 147358, true }, - { 147368, true }, - { 147380, true }, - { 147390, true }, - { 147403, true }, - { 147421, true }, - { 147439, true }, - { 147453, true }, - { 147472, true }, - { 147486, true }, - { 147499, true }, - { 147507, true }, - { 147523, false }, - { 147540, true }, - { 147561, true }, - { 147580, true }, - { 147599, true }, - { 147618, true }, - { 147628, true }, - { 147644, true }, - { 147659, true }, - { 147671, true }, - { 147688, true }, - { 147699, true }, - { 147709, true }, - { 147719, true }, - { 147728, true }, - { 147750, true }, - { 147763, true }, - { 147773, true }, + { 147235, true }, + { 147253, true }, + { 147267, true }, + { 147286, true }, + { 147300, true }, + { 147313, true }, + { 147321, true }, + { 147337, false }, + { 147354, true }, + { 147375, true }, + { 147394, true }, + { 147413, true }, + { 147432, true }, + { 147442, true }, + { 147458, true }, + { 147473, true }, + { 147485, true }, + { 147502, true }, + { 147513, true }, + { 147523, true }, + { 147533, true }, + { 147542, true }, + { 147564, true }, + { 147577, true }, + { 147587, true }, + { 147598, true }, + { 147609, false }, + { 147627, true }, + { 147649, true }, + { 147666, true }, + { 147682, true }, + { 147700, true }, + { 147713, true }, + { 147721, true }, + { 147732, true }, + { 147748, true }, + { 147766, true }, { 147784, true }, - { 147795, false }, - { 147813, true }, - { 147835, true }, - { 147852, true }, - { 147868, true }, - { 147886, true }, + { 147800, true }, + { 147816, true }, + { 147831, false }, + { 147845, true }, + { 147862, true }, + { 147880, true }, { 147899, true }, - { 147907, true }, - { 147918, true }, - { 147934, true }, - { 147952, true }, - { 147970, true }, - { 147986, true }, - { 148002, true }, - { 148017, false }, - { 148031, true }, - { 148048, true }, - { 148066, true }, - { 148085, true }, - { 148097, true }, - { 148108, true }, - { 148124, true }, - { 148141, true }, - { 148158, true }, - { 148174, true }, - { 148192, true }, - { 148207, true }, - { 148218, true }, - { 148235, true }, - { 148257, true }, - { 148273, true }, + { 147911, true }, + { 147922, true }, + { 147938, true }, + { 147955, true }, + { 147972, true }, + { 147988, true }, + { 148006, true }, + { 148021, true }, + { 148032, true }, + { 148049, true }, + { 148071, true }, + { 148087, true }, + { 148101, true }, + { 148113, true }, + { 148135, true }, + { 148143, true }, + { 148154, false }, + { 148169, true }, + { 148176, true }, + { 148188, true }, + { 148196, true }, + { 148204, true }, + { 148212, true }, + { 148220, true }, + { 148233, true }, + { 148248, true }, + { 148272, true }, { 148287, true }, - { 148299, true }, - { 148321, true }, - { 148329, true }, - { 148340, false }, + { 148312, true }, + { 148322, false }, + { 148335, false }, + { 148346, true }, { 148355, true }, - { 148362, true }, - { 148374, true }, - { 148382, true }, - { 148390, true }, - { 148398, true }, - { 148406, true }, - { 148419, true }, - { 148434, true }, - { 148458, true }, - { 148473, true }, - { 148498, true }, - { 148508, false }, - { 148521, false }, - { 148532, true }, - { 148541, true }, - { 148551, true }, - { 148574, true }, - { 148589, true }, - { 148603, true }, - { 148619, true }, - { 148633, true }, - { 148644, false }, - { 148657, true }, - { 148671, true }, - { 148679, true }, - { 148688, true }, - { 148702, true }, - { 148715, true }, - { 148725, true }, - { 148734, true }, - { 148744, true }, - { 148757, true }, - { 148777, true }, - { 148793, true }, - { 148804, true }, - { 148815, true }, - { 148824, true }, - { 148841, true }, - { 148848, true }, - { 148864, true }, - { 148877, true }, - { 148890, true }, - { 148903, true }, - { 148918, true }, - { 148937, true }, - { 148948, true }, - { 148955, true }, - { 148975, true }, - { 148987, true }, - { 149007, true }, - { 149017, true }, - { 149032, true }, - { 149039, true }, - { 149048, true }, - { 149057, true }, - { 149066, true }, - { 149075, true }, - { 149087, true }, - { 149101, true }, - { 149114, true }, - { 149125, true }, - { 149139, true }, - { 149152, true }, - { 149160, true }, - { 149179, true }, - { 149191, true }, - { 149205, true }, - { 149216, true }, - { 149232, true }, + { 148365, true }, + { 148388, true }, + { 148403, true }, + { 148417, true }, + { 148433, true }, + { 148447, true }, + { 148458, false }, + { 148471, true }, + { 148485, true }, + { 148493, true }, + { 148502, true }, + { 148516, true }, + { 148529, true }, + { 148539, true }, + { 148548, true }, + { 148558, true }, + { 148571, true }, + { 148591, true }, + { 148607, true }, + { 148618, true }, + { 148629, true }, + { 148638, true }, + { 148655, true }, + { 148662, true }, + { 148678, true }, + { 148691, true }, + { 148704, true }, + { 148717, true }, + { 148732, true }, + { 148751, true }, + { 148762, true }, + { 148769, true }, + { 148789, true }, + { 148801, true }, + { 148808, true }, + { 148828, true }, + { 148838, true }, + { 148853, true }, + { 148860, true }, + { 148869, true }, + { 148878, true }, + { 148887, true }, + { 148896, true }, + { 148908, true }, + { 148922, true }, + { 148935, true }, + { 148946, true }, + { 148960, true }, + { 148973, true }, + { 148981, true }, + { 149000, true }, + { 149012, true }, + { 149026, true }, + { 149037, true }, + { 149053, true }, + { 149067, true }, + { 149077, true }, + { 149092, true }, + { 149105, true }, + { 149120, true }, + { 149134, true }, + { 149144, false }, + { 149158, true }, + { 149176, true }, + { 149186, true }, + { 149201, true }, + { 149215, false }, + { 149230, false }, { 149246, true }, - { 149256, true }, - { 149271, true }, - { 149284, true }, - { 149299, true }, - { 149313, true }, - { 149323, false }, - { 149337, true }, - { 149355, true }, - { 149365, true }, - { 149380, true }, - { 149394, false }, - { 149409, false }, - { 149425, true }, - { 149447, true }, - { 149465, true }, - { 149484, true }, - { 149502, true }, - { 149514, true }, - { 149527, true }, - { 149546, true }, - { 149562, false }, - { 149575, true }, - { 149591, true }, + { 149268, true }, + { 149286, true }, + { 149305, true }, + { 149323, true }, + { 149335, true }, + { 149348, true }, + { 149367, true }, + { 149383, false }, + { 149396, true }, + { 149412, true }, + { 149426, true }, + { 149442, true }, + { 149461, true }, + { 149478, true }, + { 149495, true }, + { 149505, true }, + { 149520, true }, + { 149534, true }, + { 149547, true }, + { 149562, true }, + { 149578, true }, + { 149590, true }, { 149605, true }, { 149621, true }, - { 149640, true }, - { 149657, true }, - { 149674, true }, - { 149684, true }, - { 149699, true }, - { 149713, true }, - { 149726, true }, - { 149741, true }, - { 149757, true }, - { 149769, true }, - { 149784, true }, - { 149800, true }, - { 149814, true }, - { 149829, true }, - { 149843, true }, - { 149851, true }, - { 149861, true }, - { 149884, true }, - { 149899, true }, - { 149918, true }, - { 149933, false }, - { 149957, false }, - { 149973, true }, - { 149988, true }, - { 150006, true }, - { 150025, false }, - { 150044, true }, - { 150064, true }, - { 150083, true }, - { 150096, false }, - { 150119, true }, - { 150135, true }, - { 150146, true }, - { 150159, true }, - { 150171, true }, - { 150186, true }, - { 150201, true }, - { 150216, true }, + { 149635, true }, + { 149650, true }, + { 149664, true }, + { 149672, true }, + { 149682, true }, + { 149705, true }, + { 149720, true }, + { 149739, true }, + { 149754, false }, + { 149778, false }, + { 149794, true }, + { 149809, true }, + { 149827, true }, + { 149846, false }, + { 149865, true }, + { 149885, true }, + { 149904, true }, + { 149917, false }, + { 149940, true }, + { 149956, true }, + { 149967, true }, + { 149980, true }, + { 149992, true }, + { 150007, true }, + { 150022, true }, + { 150037, true }, + { 150053, true }, + { 150070, true }, + { 150082, true }, + { 150096, true }, + { 150106, true }, + { 150124, true }, + { 150143, true }, + { 150153, true }, + { 150164, true }, + { 150174, true }, + { 150193, true }, + { 150207, true }, { 150231, true }, - { 150247, true }, - { 150264, true }, - { 150276, true }, - { 150290, true }, - { 150300, true }, - { 150318, true }, - { 150337, true }, - { 150347, true }, - { 150358, true }, - { 150368, true }, - { 150387, true }, - { 150401, true }, - { 150425, true }, - { 150449, true }, - { 150461, true }, - { 150474, true }, - { 150502, true }, - { 150514, true }, - { 150527, true }, - { 150540, true }, - { 150555, true }, - { 150569, true }, - { 150586, true }, - { 150598, true }, - { 150612, true }, - { 150629, true }, - { 150646, true }, - { 150662, true }, - { 150676, true }, - { 150691, true }, - { 150707, true }, - { 150725, true }, - { 150742, true }, - { 150760, true }, - { 150777, true }, + { 150255, true }, + { 150267, true }, + { 150280, true }, + { 150308, true }, + { 150320, true }, + { 150333, true }, + { 150346, true }, + { 150361, true }, + { 150375, true }, + { 150392, true }, + { 150404, true }, + { 150418, true }, + { 150435, true }, + { 150452, true }, + { 150468, true }, + { 150482, true }, + { 150497, true }, + { 150513, true }, + { 150531, true }, + { 150548, true }, + { 150566, true }, + { 150583, true }, + { 150600, true }, + { 150608, true }, + { 150629, false }, + { 150640, true }, + { 150651, true }, + { 150665, true }, + { 150677, true }, + { 150693, true }, + { 150706, true }, + { 150732, true }, + { 150758, true }, + { 150768, true }, + { 150781, true }, { 150794, true }, { 150802, true }, - { 150823, false }, - { 150834, true }, + { 150817, true }, + { 150831, true }, { 150845, true }, - { 150859, true }, - { 150871, true }, - { 150887, true }, - { 150900, true }, - { 150926, true }, - { 150952, true }, - { 150962, true }, - { 150975, true }, - { 150985, true }, - { 150998, true }, - { 151006, true }, + { 150856, true }, + { 150876, true }, + { 150894, true }, + { 150911, true }, + { 150921, true }, + { 150936, true }, + { 150954, true }, + { 150970, true }, + { 150978, true }, + { 150991, true }, + { 151007, true }, { 151021, true }, - { 151035, true }, + { 151038, false }, { 151049, true }, - { 151060, true }, - { 151080, true }, - { 151098, true }, + { 151062, true }, + { 151078, true }, + { 151091, true }, + { 151101, false }, { 151115, true }, - { 151125, true }, + { 151126, true }, { 151140, true }, - { 151158, true }, - { 151174, true }, - { 151182, true }, - { 151195, true }, - { 151211, true }, - { 151225, true }, - { 151242, false }, - { 151253, true }, - { 151266, true }, - { 151282, true }, - { 151295, true }, - { 151305, false }, - { 151319, true }, - { 151330, true }, - { 151344, true }, + { 151157, true }, + { 151173, true }, + { 151181, true }, + { 151191, true }, + { 151206, true }, + { 151224, true }, + { 151240, true }, + { 151259, true }, + { 151272, true }, + { 151283, true }, + { 151297, true }, + { 151311, true }, + { 151326, true }, + { 151343, true }, { 151361, true }, - { 151377, true }, - { 151385, true }, - { 151395, true }, - { 151410, true }, - { 151428, true }, - { 151444, true }, - { 151463, true }, - { 151476, true }, - { 151487, true }, - { 151501, true }, - { 151515, true }, - { 151530, true }, - { 151547, true }, - { 151565, true }, - { 151585, true }, - { 151600, true }, - { 151618, true }, - { 151637, true }, - { 151653, true }, - { 151666, true }, - { 151696, true }, - { 151713, true }, - { 151728, true }, - { 151739, true }, - { 151757, true }, - { 151776, true }, - { 151795, true }, - { 151806, true }, - { 151817, true }, - { 151830, false }, - { 151838, true }, - { 151847, true }, - { 151858, true }, - { 151872, true }, - { 151882, true }, - { 151905, true }, - { 151920, true }, + { 151381, true }, + { 151396, true }, + { 151414, true }, + { 151433, true }, + { 151449, true }, + { 151462, true }, + { 151492, true }, + { 151509, true }, + { 151524, true }, + { 151535, true }, + { 151553, true }, + { 151572, true }, + { 151591, true }, + { 151602, true }, + { 151613, true }, + { 151626, false }, + { 151634, true }, + { 151643, true }, + { 151654, true }, + { 151668, true }, + { 151678, true }, + { 151701, true }, + { 151716, true }, + { 151729, true }, + { 151737, true }, + { 151749, true }, + { 151763, true }, + { 151791, true }, + { 151807, true }, + { 151816, true }, + { 151831, true }, + { 151850, true }, + { 151862, true }, + { 151877, true }, + { 151891, true }, + { 151911, true }, { 151933, true }, - { 151941, true }, - { 151953, true }, - { 151967, true }, - { 151995, true }, - { 152011, true }, - { 152020, true }, - { 152035, true }, - { 152054, true }, - { 152066, true }, - { 152081, true }, + { 151954, true }, + { 151972, true }, + { 151985, true }, + { 152000, true }, + { 152013, true }, + { 152027, true }, + { 152039, true }, + { 152050, true }, + { 152071, true }, + { 152084, true }, { 152095, true }, - { 152115, true }, - { 152137, true }, - { 152158, true }, - { 152176, true }, - { 152189, true }, - { 152204, true }, - { 152217, true }, - { 152231, true }, - { 152243, true }, - { 152254, true }, - { 152275, true }, - { 152288, true }, - { 152299, true }, - { 152311, true }, - { 152328, true }, - { 152338, true }, - { 152348, true }, - { 152355, true }, - { 152368, true }, - { 152379, true }, - { 152394, true }, - { 152402, true }, - { 152422, true }, - { 152433, true }, - { 152443, true }, - { 152453, true }, + { 152107, true }, + { 152124, true }, + { 152134, true }, + { 152144, true }, + { 152151, true }, + { 152164, true }, + { 152175, true }, + { 152190, true }, + { 152198, true }, + { 152218, true }, + { 152229, true }, + { 152239, true }, + { 152249, true }, + { 152265, true }, + { 152274, true }, + { 152285, true }, + { 152298, true }, + { 152310, true }, + { 152320, true }, + { 152330, true }, + { 152342, true }, + { 152357, true }, + { 152366, true }, + { 152380, true }, + { 152393, true }, + { 152403, true }, + { 152416, true }, + { 152431, true }, + { 152444, true }, + { 152458, true }, { 152469, true }, - { 152478, true }, - { 152489, true }, - { 152502, true }, - { 152514, true }, - { 152524, true }, - { 152534, true }, - { 152546, true }, - { 152561, true }, - { 152570, true }, - { 152584, true }, - { 152597, true }, - { 152607, true }, - { 152620, true }, - { 152635, true }, + { 152484, true }, + { 152494, false }, + { 152504, true }, + { 152516, true }, + { 152544, true }, + { 152557, true }, + { 152576, true }, + { 152589, true }, + { 152598, true }, + { 152609, true }, + { 152623, true }, + { 152634, true }, { 152648, true }, - { 152662, true }, - { 152673, true }, - { 152688, true }, - { 152698, false }, - { 152708, true }, - { 152720, true }, - { 152748, true }, - { 152761, true }, + { 152668, true }, + { 152684, true }, + { 152695, true }, + { 152706, true }, + { 152722, true }, + { 152739, true }, + { 152754, true }, + { 152767, true }, { 152780, true }, - { 152793, true }, - { 152802, true }, - { 152813, true }, - { 152827, true }, - { 152838, true }, - { 152852, true }, - { 152872, true }, - { 152888, true }, - { 152899, true }, + { 152801, true }, + { 152814, true }, + { 152831, true }, + { 152841, true }, + { 152851, true }, + { 152859, true }, + { 152874, true }, + { 152885, true }, + { 152895, true }, { 152910, true }, - { 152926, true }, - { 152943, true }, - { 152958, true }, + { 152924, true }, + { 152936, true }, + { 152946, true }, + { 152954, true }, { 152971, true }, { 152984, true }, - { 153005, true }, - { 153018, true }, - { 153035, true }, - { 153045, true }, - { 153055, true }, - { 153063, true }, - { 153078, true }, - { 153089, true }, - { 153099, true }, - { 153114, true }, - { 153128, true }, - { 153140, true }, - { 153150, true }, - { 153158, true }, - { 153175, true }, - { 153188, true }, + { 153003, true }, + { 153028, true }, + { 153048, true }, + { 153062, true }, + { 153076, true }, + { 153118, true }, + { 153132, true }, + { 153147, true }, + { 153163, true }, + { 153172, true }, + { 153186, true }, + { 153195, true }, { 153207, true }, + { 153219, true }, { 153232, true }, - { 153252, true }, - { 153266, true }, - { 153280, true }, - { 153322, true }, - { 153336, true }, - { 153351, true }, - { 153367, true }, - { 153376, true }, - { 153390, true }, - { 153399, true }, - { 153411, true }, - { 153423, true }, - { 153436, true }, - { 153449, true }, - { 153467, true }, - { 153475, true }, - { 153488, true }, - { 153502, true }, - { 153512, true }, - { 153522, true }, - { 153534, true }, - { 153549, true }, - { 153564, true }, - { 153576, false }, - { 153593, true }, - { 153608, true }, - { 153620, true }, - { 153633, true }, - { 153651, true }, - { 153664, true }, - { 153676, true }, - { 153691, true }, - { 153704, true }, - { 153719, true }, - { 153731, true }, + { 153245, true }, + { 153263, true }, + { 153271, true }, + { 153284, true }, + { 153298, true }, + { 153308, true }, + { 153318, true }, + { 153330, true }, + { 153345, true }, + { 153360, true }, + { 153372, false }, + { 153389, true }, + { 153404, true }, + { 153416, true }, + { 153429, true }, + { 153447, true }, + { 153460, true }, + { 153472, true }, + { 153487, true }, + { 153500, true }, + { 153515, true }, + { 153527, true }, + { 153537, true }, + { 153546, true }, + { 153561, true }, + { 153576, true }, + { 153597, true }, + { 153614, true }, + { 153627, true }, + { 153645, true }, + { 153660, true }, + { 153674, true }, + { 153692, true }, + { 153710, true }, + { 153722, true }, + { 153733, true }, { 153741, true }, - { 153750, true }, - { 153765, true }, - { 153780, true }, - { 153797, true }, - { 153810, true }, - { 153828, true }, + { 153754, true }, + { 153772, true }, + { 153783, true }, + { 153803, true }, + { 153821, true }, + { 153834, true }, { 153843, true }, - { 153857, true }, - { 153875, true }, - { 153893, true }, - { 153905, true }, - { 153916, true }, - { 153924, true }, - { 153937, true }, - { 153955, true }, + { 153855, true }, + { 153869, true }, + { 153889, true }, + { 153898, true }, + { 153907, true }, + { 153925, true }, + { 153940, true }, + { 153947, true }, { 153966, true }, - { 153986, true }, - { 154004, true }, - { 154017, true }, - { 154026, true }, - { 154038, true }, - { 154052, true }, - { 154072, true }, - { 154081, true }, - { 154090, true }, - { 154108, true }, - { 154123, true }, - { 154130, true }, - { 154149, true }, - { 154160, true }, + { 153977, true }, + { 153992, true }, + { 154010, true }, + { 154025, true }, + { 154039, true }, + { 154053, true }, + { 154065, true }, + { 154084, true }, + { 154098, true }, + { 154122, true }, + { 154133, true }, + { 154147, true }, + { 154162, true }, { 154175, true }, - { 154193, true }, - { 154208, true }, - { 154222, true }, - { 154236, true }, - { 154248, true }, - { 154267, true }, - { 154281, true }, - { 154305, true }, - { 154316, true }, - { 154330, true }, - { 154345, true }, - { 154358, true }, - { 154371, true }, - { 154384, true }, - { 154395, true }, - { 154408, true }, - { 154420, true }, - { 154443, true }, - { 154452, true }, - { 154469, true }, + { 154188, true }, + { 154201, true }, + { 154212, true }, + { 154225, true }, + { 154237, true }, + { 154260, true }, + { 154269, true }, + { 154286, true }, + { 154296, true }, + { 154309, true }, + { 154319, true }, + { 154337, true }, + { 154349, true }, + { 154360, true }, + { 154369, true }, + { 154380, true }, + { 154394, true }, + { 154409, true }, + { 154423, true }, + { 154433, true }, + { 154441, true }, + { 154455, true }, + { 154465, true }, { 154479, true }, - { 154492, true }, - { 154502, true }, - { 154520, true }, - { 154532, true }, - { 154543, true }, - { 154552, true }, - { 154563, true }, - { 154577, true }, - { 154592, true }, - { 154606, true }, - { 154616, true }, - { 154624, true }, - { 154638, true }, - { 154648, true }, - { 154662, true }, - { 154671, true }, - { 154679, true }, - { 154692, true }, + { 154488, true }, + { 154496, true }, + { 154509, true }, + { 154527, true }, + { 154538, true }, + { 154550, true }, + { 154561, true }, + { 154585, true }, + { 154593, true }, + { 154603, true }, + { 154613, true }, + { 154630, true }, + { 154641, true }, + { 154660, true }, + { 154678, true }, + { 154696, true }, { 154710, true }, - { 154721, true }, - { 154733, true }, + { 154720, true }, { 154744, true }, - { 154768, true }, - { 154776, true }, - { 154786, true }, - { 154796, true }, - { 154813, true }, - { 154824, true }, - { 154843, true }, - { 154861, true }, - { 154879, true }, - { 154893, true }, - { 154903, true }, - { 154927, true }, - { 154941, false }, - { 154956, true }, - { 154975, true }, - { 154987, true }, - { 155006, true }, - { 155023, true }, - { 155038, true }, + { 154758, false }, + { 154773, true }, + { 154792, true }, + { 154804, true }, + { 154823, true }, + { 154840, true }, + { 154855, true }, + { 154865, true }, + { 154880, true }, + { 154900, true }, + { 154912, true }, + { 154924, true }, + { 154937, true }, + { 154946, true }, + { 154955, true }, + { 154964, true }, + { 154972, true }, + { 154991, true }, + { 155008, true }, + { 155020, true }, + { 155035, true }, { 155048, true }, - { 155063, true }, - { 155083, true }, - { 155095, true }, - { 155107, true }, - { 155120, true }, - { 155129, true }, - { 155138, true }, - { 155147, true }, - { 155155, true }, + { 155061, true }, + { 155068, true }, + { 155096, true }, + { 155123, true }, + { 155149, true }, { 155174, true }, - { 155191, true }, - { 155203, true }, - { 155218, true }, - { 155231, true }, - { 155244, true }, - { 155251, true }, - { 155279, true }, - { 155306, true }, - { 155332, true }, - { 155357, true }, - { 155367, true }, - { 155376, true }, - { 155391, true }, - { 155406, false }, - { 155424, true }, - { 155435, true }, - { 155447, true }, - { 155463, true }, - { 155477, true }, - { 155492, true }, - { 155508, true }, - { 155534, true }, - { 155545, true }, - { 155556, true }, - { 155571, true }, - { 155586, true }, - { 155601, true }, - { 155619, true }, - { 155629, true }, - { 155644, true }, - { 155659, true }, - { 155672, true }, - { 155688, true }, - { 155704, false }, - { 155712, true }, - { 155735, true }, - { 155749, true }, - { 155759, true }, - { 155772, true }, - { 155785, true }, - { 155798, true }, - { 155813, true }, - { 155832, true }, - { 155844, true }, - { 155862, true }, - { 155878, true }, - { 155892, true }, - { 155904, false }, - { 155923, true }, - { 155936, true }, - { 155948, true }, - { 155964, true }, - { 155979, true }, - { 155997, true }, - { 156010, true }, - { 156021, true }, - { 156032, true }, - { 156045, true }, - { 156070, true }, - { 156081, true }, - { 156092, true }, - { 156109, true }, - { 156132, true }, - { 156147, true }, - { 156162, true }, - { 156177, true }, - { 156188, true }, - { 156200, true }, - { 156217, true }, - { 156228, true }, + { 155184, true }, + { 155193, true }, + { 155208, true }, + { 155223, false }, + { 155241, true }, + { 155252, true }, + { 155264, true }, + { 155280, true }, + { 155294, true }, + { 155309, true }, + { 155325, true }, + { 155351, true }, + { 155362, true }, + { 155373, true }, + { 155388, true }, + { 155403, true }, + { 155418, true }, + { 155436, true }, + { 155446, true }, + { 155461, true }, + { 155476, true }, + { 155489, true }, + { 155505, true }, + { 155521, false }, + { 155529, true }, + { 155552, true }, + { 155566, true }, + { 155576, true }, + { 155589, true }, + { 155602, true }, + { 155615, true }, + { 155630, true }, + { 155649, true }, + { 155661, true }, + { 155679, true }, + { 155695, true }, + { 155709, true }, + { 155721, false }, + { 155740, true }, + { 155753, true }, + { 155765, true }, + { 155781, true }, + { 155796, true }, + { 155814, true }, + { 155827, true }, + { 155838, true }, + { 155850, true }, + { 155861, true }, + { 155874, true }, + { 155899, true }, + { 155910, true }, + { 155921, true }, + { 155938, true }, + { 155961, true }, + { 155976, true }, + { 155991, true }, + { 156006, true }, + { 156017, true }, + { 156029, true }, + { 156046, true }, + { 156057, true }, + { 156065, true }, + { 156078, true }, + { 156094, true }, + { 156107, true }, + { 156117, true }, + { 156128, true }, + { 156136, true }, + { 156153, true }, + { 156168, true }, + { 156178, true }, + { 156197, true }, + { 156208, true }, + { 156220, true }, { 156236, true }, - { 156249, true }, - { 156265, true }, - { 156278, true }, - { 156288, true }, - { 156299, true }, - { 156307, true }, - { 156324, true }, - { 156339, true }, - { 156349, true }, - { 156368, true }, - { 156379, true }, - { 156391, true }, - { 156407, true }, - { 156418, true }, - { 156438, true }, - { 156458, true }, - { 156473, true }, - { 156490, true }, - { 156504, true }, - { 156517, true }, - { 156527, true }, - { 156543, true }, - { 156566, true }, - { 156579, true }, - { 156598, true }, - { 156612, true }, - { 156622, true }, - { 156633, true }, - { 156652, true }, - { 156663, true }, - { 156674, true }, - { 156687, true }, - { 156709, true }, - { 156721, true }, - { 156741, true }, - { 156755, true }, - { 156766, true }, - { 156776, true }, - { 156786, true }, - { 156799, true }, - { 156809, true }, + { 156247, true }, + { 156267, true }, + { 156287, true }, + { 156302, true }, + { 156319, true }, + { 156333, true }, + { 156346, true }, + { 156356, true }, + { 156372, true }, + { 156395, true }, + { 156408, true }, + { 156427, true }, + { 156441, true }, + { 156451, true }, + { 156462, true }, + { 156481, true }, + { 156492, true }, + { 156503, true }, + { 156516, true }, + { 156538, true }, + { 156550, true }, + { 156570, true }, + { 156584, true }, + { 156595, true }, + { 156605, true }, + { 156615, true }, + { 156628, true }, + { 156638, true }, + { 156656, true }, + { 156681, true }, + { 156698, true }, + { 156712, true }, + { 156724, true }, + { 156740, true }, + { 156751, true }, + { 156761, false }, + { 156773, true }, + { 156790, true }, + { 156807, true }, { 156827, true }, - { 156852, true }, - { 156869, true }, - { 156883, true }, + { 156854, true }, + { 156879, true }, { 156895, true }, - { 156911, true }, - { 156922, true }, - { 156932, false }, - { 156944, true }, - { 156961, true }, - { 156978, true }, - { 156998, true }, + { 156910, true }, + { 156930, true }, + { 156943, true }, + { 156955, true }, + { 156971, true }, + { 156983, true }, + { 156996, true }, + { 157011, true }, { 157025, true }, - { 157050, true }, - { 157066, true }, - { 157081, true }, + { 157037, true }, + { 157054, true }, + { 157071, true }, + { 157091, true }, { 157101, true }, - { 157114, true }, - { 157126, true }, - { 157142, true }, - { 157154, true }, - { 157167, true }, - { 157182, true }, - { 157196, true }, - { 157208, true }, - { 157225, true }, - { 157242, true }, - { 157262, true }, - { 157272, true }, - { 157289, true }, - { 157303, true }, + { 157118, true }, + { 157132, true }, + { 157149, true }, + { 157162, true }, + { 157174, true }, + { 157186, true }, + { 157199, false }, + { 157213, true }, + { 157236, true }, + { 157251, true }, + { 157263, true }, + { 157274, true }, + { 157292, true }, + { 157305, true }, { 157320, true }, - { 157333, true }, + { 157331, true }, { 157345, true }, - { 157357, true }, - { 157370, false }, - { 157384, true }, - { 157407, true }, - { 157422, true }, - { 157434, true }, + { 157363, true }, + { 157377, true }, + { 157389, true }, + { 157412, true }, { 157445, true }, - { 157463, true }, - { 157476, true }, - { 157491, true }, - { 157502, true }, - { 157516, true }, + { 157454, true }, + { 157473, true }, + { 157485, true }, + { 157499, true }, + { 157520, true }, { 157534, true }, { 157548, true }, - { 157560, true }, - { 157583, true }, - { 157616, true }, - { 157625, true }, - { 157644, true }, - { 157656, true }, - { 157670, true }, - { 157691, true }, - { 157705, true }, - { 157719, true }, - { 157737, true }, + { 157566, true }, + { 157584, true }, + { 157601, true }, + { 157614, true }, + { 157626, true }, + { 157638, false }, + { 157650, true }, + { 157658, true }, + { 157672, true }, + { 157686, true }, + { 157707, true }, + { 157724, false }, + { 157740, true }, { 157755, true }, - { 157772, true }, - { 157785, true }, - { 157797, true }, - { 157809, false }, - { 157821, true }, + { 157769, true }, + { 157787, true }, + { 157798, true }, + { 157807, true }, + { 157817, true }, { 157829, true }, - { 157843, true }, - { 157857, true }, - { 157878, true }, - { 157895, false }, - { 157911, true }, - { 157926, true }, - { 157940, true }, - { 157958, true }, - { 157969, true }, - { 157978, true }, - { 157988, true }, - { 158000, true }, - { 158015, true }, + { 157844, true }, + { 157856, true }, + { 157872, true }, + { 157883, false }, + { 157906, true }, + { 157918, false }, + { 157931, true }, + { 157939, true }, + { 157950, true }, + { 157959, true }, + { 157967, true }, + { 157980, true }, + { 158003, true }, + { 158015, false }, { 158027, true }, { 158043, true }, - { 158054, false }, - { 158077, true }, - { 158089, false }, - { 158102, true }, - { 158110, true }, + { 158055, true }, + { 158078, true }, + { 158089, true }, + { 158105, true }, { 158121, true }, - { 158130, true }, - { 158138, true }, - { 158151, true }, - { 158174, true }, - { 158186, false }, - { 158198, true }, - { 158214, true }, - { 158226, true }, - { 158249, true }, - { 158260, true }, - { 158276, true }, - { 158292, true }, + { 158136, true }, + { 158149, true }, + { 158159, true }, + { 158168, true }, + { 158175, true }, + { 158192, true }, + { 158204, true }, + { 158217, true }, + { 158234, true }, + { 158257, false }, + { 158272, true }, + { 158289, true }, { 158307, true }, - { 158320, true }, - { 158330, true }, - { 158339, true }, - { 158346, true }, - { 158363, true }, - { 158375, true }, - { 158388, true }, - { 158405, true }, - { 158428, false }, - { 158443, true }, - { 158460, true }, + { 158336, true }, + { 158349, true }, + { 158366, true }, + { 158380, true }, + { 158396, true }, + { 158410, true }, + { 158424, true }, + { 158436, true }, + { 158445, true }, + { 158461, true }, { 158478, true }, - { 158507, true }, - { 158520, true }, - { 158537, true }, - { 158551, true }, - { 158567, true }, - { 158581, true }, - { 158595, true }, - { 158607, true }, - { 158616, true }, - { 158632, true }, - { 158649, true }, - { 158665, false }, - { 158680, true }, - { 158693, true }, - { 158719, true }, - { 158732, true }, - { 158743, true }, - { 158758, true }, - { 158776, true }, - { 158785, true }, - { 158799, true }, - { 158817, true }, - { 158835, true }, - { 158843, true }, - { 158853, true }, - { 158870, true }, - { 158878, true }, - { 158888, true }, - { 158899, true }, - { 158917, true }, - { 158927, true }, - { 158941, true }, - { 158949, true }, - { 158961, true }, - { 158975, true }, - { 158993, true }, - { 159002, true }, - { 159013, true }, - { 159026, true }, - { 159039, true }, - { 159054, true }, - { 159072, true }, - { 159080, true }, - { 159095, true }, - { 159113, true }, - { 159135, true }, - { 159147, true }, - { 159157, true }, - { 159167, true }, - { 159178, true }, - { 159189, true }, - { 159201, true }, - { 159216, true }, - { 159230, true }, - { 159242, true }, - { 159256, true }, - { 159267, true }, - { 159281, true }, - { 159305, false }, - { 159326, true }, - { 159343, true }, - { 159361, true }, - { 159378, true }, - { 159395, true }, - { 159410, true }, - { 159424, true }, - { 159436, true }, - { 159451, true }, - { 159459, true }, - { 159472, true }, - { 159484, true }, - { 159511, true }, - { 159528, true }, - { 159543, true }, - { 159556, true }, - { 159569, true }, - { 159583, true }, - { 159605, false }, - { 159619, true }, - { 159631, true }, - { 159642, true }, - { 159653, true }, + { 158494, false }, + { 158509, true }, + { 158522, true }, + { 158548, true }, + { 158561, true }, + { 158572, true }, + { 158587, true }, + { 158605, true }, + { 158614, true }, + { 158628, true }, + { 158646, true }, + { 158664, true }, + { 158672, true }, + { 158682, true }, + { 158699, true }, + { 158707, true }, + { 158717, true }, + { 158728, true }, + { 158746, true }, + { 158756, true }, + { 158770, true }, + { 158778, true }, + { 158790, true }, + { 158804, true }, + { 158822, true }, + { 158831, true }, + { 158842, true }, + { 158855, true }, + { 158868, true }, + { 158883, true }, + { 158901, true }, + { 158909, true }, + { 158924, true }, + { 158942, true }, + { 158964, true }, + { 158976, true }, + { 158986, true }, + { 158996, true }, + { 159007, true }, + { 159018, true }, + { 159030, true }, + { 159045, true }, + { 159059, true }, + { 159071, true }, + { 159085, true }, + { 159096, true }, + { 159110, true }, + { 159134, false }, + { 159155, true }, + { 159172, true }, + { 159190, true }, + { 159207, true }, + { 159224, true }, + { 159239, true }, + { 159253, true }, + { 159265, true }, + { 159280, true }, + { 159288, true }, + { 159301, true }, + { 159313, true }, + { 159340, true }, + { 159357, true }, + { 159372, true }, + { 159385, true }, + { 159398, true }, + { 159412, true }, + { 159434, false }, + { 159448, true }, + { 159460, true }, + { 159471, true }, + { 159482, true }, + { 159492, true }, + { 159503, false }, + { 159524, false }, + { 159535, true }, + { 159549, true }, + { 159561, true }, + { 159579, true }, + { 159593, true }, + { 159604, true }, + { 159621, true }, + { 159632, true }, + { 159652, true }, { 159663, true }, - { 159674, false }, - { 159695, false }, - { 159706, true }, - { 159720, true }, - { 159732, true }, - { 159750, true }, - { 159764, true }, - { 159775, true }, + { 159677, true }, + { 159691, true }, + { 159702, true }, + { 159715, true }, + { 159726, true }, + { 159745, true }, + { 159761, true }, + { 159774, true }, { 159792, true }, - { 159803, true }, - { 159823, true }, - { 159834, true }, - { 159848, true }, - { 159862, true }, - { 159873, true }, - { 159886, true }, - { 159897, true }, - { 159916, true }, - { 159932, true }, - { 159945, true }, - { 159963, true }, - { 159977, true }, - { 159992, true }, + { 159806, true }, + { 159821, true }, + { 159835, true }, + { 159843, true }, + { 159857, true }, + { 159869, false }, + { 159882, true }, + { 159895, true }, + { 159907, true }, + { 159919, true }, + { 159934, true }, + { 159949, true }, + { 159959, true }, + { 159969, true }, + { 159983, true }, + { 159996, true }, { 160006, true }, - { 160014, true }, - { 160028, true }, - { 160040, false }, - { 160053, true }, - { 160066, true }, - { 160078, true }, - { 160090, true }, - { 160105, true }, - { 160120, true }, - { 160130, true }, - { 160140, true }, - { 160154, true }, - { 160167, true }, - { 160177, true }, - { 160196, false }, - { 160207, true }, - { 160229, true }, - { 160243, true }, - { 160256, true }, - { 160268, true }, - { 160278, true }, - { 160289, true }, - { 160299, true }, - { 160310, true }, - { 160322, true }, - { 160337, true }, - { 160347, true }, - { 160358, true }, - { 160369, true }, - { 160382, true }, - { 160397, true }, + { 160025, false }, + { 160036, true }, + { 160058, true }, + { 160072, true }, + { 160085, true }, + { 160097, true }, + { 160107, true }, + { 160118, true }, + { 160128, true }, + { 160139, true }, + { 160151, true }, + { 160166, true }, + { 160176, true }, + { 160187, true }, + { 160198, true }, + { 160213, true }, + { 160225, true }, + { 160240, true }, + { 160252, true }, + { 160262, true }, + { 160270, true }, + { 160292, true }, + { 160304, true }, + { 160315, true }, + { 160324, true }, + { 160340, true }, + { 160349, true }, + { 160365, true }, + { 160377, true }, + { 160389, true }, + { 160399, true }, { 160409, true }, - { 160424, true }, - { 160436, true }, - { 160446, true }, - { 160454, true }, - { 160476, true }, - { 160488, true }, - { 160499, true }, - { 160508, true }, - { 160524, true }, - { 160533, true }, - { 160549, true }, - { 160561, true }, - { 160573, true }, - { 160583, true }, - { 160593, true }, - { 160607, true }, - { 160629, true }, - { 160639, true }, - { 160652, false }, - { 160663, true }, - { 160676, true }, - { 160688, true }, - { 160697, true }, - { 160706, true }, + { 160423, true }, + { 160433, true }, + { 160446, false }, + { 160457, true }, + { 160470, true }, + { 160482, true }, + { 160491, true }, + { 160500, true }, + { 160517, true }, + { 160535, true }, + { 160554, true }, + { 160567, true }, + { 160581, true }, + { 160591, true }, + { 160614, true }, + { 160633, true }, + { 160642, true }, + { 160654, true }, + { 160678, true }, + { 160691, true }, + { 160705, true }, { 160723, true }, { 160741, true }, - { 160760, true }, + { 160755, true }, { 160773, true }, - { 160787, true }, - { 160797, true }, - { 160820, true }, - { 160839, true }, - { 160848, true }, - { 160860, true }, + { 160789, true }, + { 160808, true }, + { 160818, false }, + { 160831, true }, + { 160842, true }, + { 160852, true }, + { 160865, true }, + { 160875, true }, { 160884, true }, - { 160897, true }, - { 160911, true }, - { 160929, true }, - { 160947, true }, - { 160965, true }, - { 160981, true }, - { 161000, true }, - { 161010, false }, + { 160896, true }, + { 160908, true }, + { 160926, true }, + { 160936, false }, + { 160949, true }, + { 160959, true }, + { 160967, true }, + { 160979, true }, + { 160991, true }, + { 161003, true }, + { 161011, true }, { 161023, true }, - { 161034, true }, - { 161044, true }, - { 161057, true }, - { 161067, true }, - { 161076, true }, - { 161088, true }, - { 161100, true }, - { 161118, true }, - { 161128, false }, - { 161141, true }, - { 161151, true }, - { 161159, true }, - { 161171, true }, - { 161183, true }, - { 161195, true }, - { 161203, true }, - { 161215, true }, - { 161230, true }, + { 161038, true }, + { 161051, true }, + { 161060, true }, + { 161075, true }, + { 161084, true }, + { 161090, true }, + { 161102, true }, + { 161112, true }, + { 161121, true }, + { 161131, true }, + { 161138, false }, + { 161153, true }, + { 161164, true }, + { 161175, true }, + { 161193, true }, + { 161208, true }, + { 161227, true }, { 161243, true }, - { 161252, true }, - { 161267, true }, - { 161276, true }, - { 161282, true }, - { 161294, true }, - { 161304, true }, - { 161313, true }, - { 161323, true }, - { 161330, false }, - { 161345, true }, - { 161356, true }, - { 161367, true }, - { 161385, true }, - { 161400, true }, - { 161419, true }, - { 161435, true }, - { 161448, true }, + { 161256, true }, + { 161275, true }, + { 161288, true }, + { 161302, true }, + { 161314, true }, + { 161328, true }, + { 161341, true }, + { 161355, true }, + { 161378, true }, + { 161389, true }, + { 161398, true }, + { 161413, true }, + { 161432, true }, + { 161442, true }, + { 161454, true }, { 161467, true }, { 161480, true }, - { 161494, true }, - { 161506, true }, - { 161520, true }, - { 161533, true }, - { 161547, true }, - { 161570, true }, - { 161581, true }, - { 161590, true }, - { 161605, true }, - { 161624, true }, - { 161634, true }, - { 161646, true }, - { 161659, true }, - { 161672, true }, - { 161684, true }, + { 161492, true }, + { 161505, true }, + { 161525, true }, + { 161544, true }, + { 161560, true }, + { 161577, true }, + { 161589, true }, + { 161609, true }, + { 161623, true }, + { 161638, true }, + { 161653, true }, + { 161666, true }, + { 161685, true }, { 161697, true }, - { 161717, true }, - { 161736, true }, - { 161752, true }, - { 161769, true }, - { 161781, true }, - { 161801, true }, - { 161815, true }, - { 161830, true }, - { 161845, true }, - { 161858, true }, - { 161877, true }, - { 161889, true }, + { 161709, true }, + { 161724, true }, + { 161734, true }, + { 161747, true }, + { 161766, true }, + { 161777, true }, + { 161796, true }, + { 161810, true }, + { 161825, true }, + { 161835, true }, + { 161849, true }, + { 161868, true }, + { 161883, true }, + { 161894, true }, { 161901, true }, - { 161916, true }, - { 161926, true }, - { 161939, true }, - { 161958, true }, + { 161912, true }, + { 161931, true }, + { 161940, false }, + { 161951, true }, + { 161961, true }, { 161969, true }, - { 161988, true }, - { 162002, true }, + { 161977, true }, + { 161986, true }, + { 161994, true }, + { 162005, true }, { 162017, true }, - { 162027, true }, - { 162041, true }, + { 162032, true }, + { 162046, true }, { 162060, true }, - { 162075, true }, - { 162086, true }, - { 162093, true }, - { 162104, true }, - { 162123, true }, - { 162132, false }, - { 162143, true }, - { 162153, true }, - { 162161, true }, - { 162169, true }, - { 162178, true }, - { 162186, true }, - { 162197, true }, - { 162209, true }, - { 162224, true }, - { 162238, true }, - { 162252, true }, - { 162263, true }, - { 162272, true }, - { 162288, true }, - { 162310, true }, - { 162327, true }, - { 162339, true }, - { 162357, true }, - { 162376, true }, - { 162394, true }, - { 162407, true }, - { 162414, true }, - { 162426, true }, - { 162436, true }, - { 162452, true }, - { 162461, true }, - { 162468, true }, - { 162478, true }, - { 162490, true }, - { 162504, true }, - { 162524, true }, - { 162537, true }, - { 162558, true }, + { 162071, true }, + { 162080, true }, + { 162096, true }, + { 162118, true }, + { 162135, true }, + { 162147, true }, + { 162165, true }, + { 162184, true }, + { 162202, true }, + { 162215, true }, + { 162222, true }, + { 162234, true }, + { 162244, true }, + { 162260, true }, + { 162269, true }, + { 162276, true }, + { 162286, true }, + { 162298, true }, + { 162312, true }, + { 162332, true }, + { 162345, true }, + { 162366, true }, + { 162385, true }, + { 162395, true }, + { 162418, true }, + { 162453, true }, + { 162487, true }, + { 162510, true }, + { 162565, true }, { 162577, true }, - { 162587, true }, - { 162610, true }, - { 162645, true }, - { 162679, true }, - { 162702, true }, - { 162757, true }, - { 162769, true }, - { 162794, true }, - { 162804, true }, - { 162822, true }, - { 162837, false }, - { 162851, true }, - { 162866, true }, + { 162602, true }, + { 162612, true }, + { 162630, true }, + { 162645, false }, + { 162659, true }, + { 162674, true }, + { 162686, true }, + { 162698, true }, + { 162712, true }, + { 162724, true }, + { 162746, false }, + { 162762, true }, + { 162787, true }, + { 162797, true }, + { 162810, true }, + { 162821, true }, + { 162833, true }, + { 162855, true }, { 162878, true }, - { 162890, true }, - { 162904, true }, - { 162916, true }, - { 162938, false }, - { 162954, true }, - { 162979, true }, - { 162989, true }, - { 163002, true }, + { 162888, true }, + { 162911, true }, + { 162924, false }, + { 162938, true }, + { 162956, true }, + { 162967, true }, + { 162978, true }, + { 162997, true }, { 163013, true }, - { 163025, true }, - { 163047, true }, - { 163070, true }, - { 163080, true }, - { 163090, true }, - { 163113, true }, - { 163126, false }, - { 163140, true }, - { 163158, true }, - { 163169, true }, - { 163180, true }, - { 163199, true }, - { 163215, true }, - { 163228, true }, - { 163253, true }, + { 163026, true }, + { 163051, true }, + { 163065, true }, + { 163078, true }, + { 163107, true }, + { 163120, true }, + { 163130, true }, + { 163143, true }, + { 163154, true }, + { 163166, true }, + { 163179, true }, + { 163189, true }, + { 163203, true }, + { 163221, true }, + { 163238, true }, + { 163255, true }, { 163267, true }, - { 163280, true }, - { 163309, true }, - { 163322, true }, - { 163332, true }, - { 163345, true }, - { 163356, true }, - { 163368, true }, - { 163381, true }, - { 163391, true }, - { 163405, true }, - { 163423, true }, - { 163440, true }, - { 163457, true }, - { 163469, true }, - { 163483, true }, - { 163497, true }, - { 163507, true }, - { 163526, true }, + { 163281, true }, + { 163295, true }, + { 163305, true }, + { 163324, true }, + { 163336, true }, + { 163347, true }, + { 163363, true }, + { 163378, true }, + { 163390, true }, + { 163402, true }, + { 163417, false }, + { 163426, true }, + { 163446, true }, + { 163466, true }, + { 163482, true }, + { 163496, true }, + { 163509, true }, + { 163521, true }, { 163538, true }, - { 163549, true }, - { 163565, true }, - { 163580, true }, + { 163548, true }, + { 163569, true }, + { 163583, true }, { 163592, true }, - { 163604, true }, - { 163619, false }, - { 163628, true }, - { 163648, true }, - { 163668, true }, - { 163684, true }, - { 163698, true }, - { 163711, true }, - { 163723, true }, - { 163740, true }, - { 163750, true }, - { 163771, true }, - { 163785, true }, - { 163794, true }, - { 163812, true }, - { 163827, true }, - { 163839, true }, - { 163857, true }, - { 163868, true }, - { 163881, true }, - { 163903, true }, - { 163915, true }, - { 163929, true }, - { 163941, true }, - { 163960, true }, - { 163972, true }, - { 163984, true }, - { 164003, true }, - { 164015, true }, - { 164027, true }, - { 164048, true }, - { 164064, true }, - { 164076, true }, - { 164089, true }, - { 164106, true }, - { 164121, true }, + { 163610, true }, + { 163625, true }, + { 163637, true }, + { 163655, true }, + { 163666, true }, + { 163679, true }, + { 163701, true }, + { 163713, true }, + { 163727, true }, + { 163739, true }, + { 163758, true }, + { 163770, true }, + { 163782, true }, + { 163801, true }, + { 163813, true }, + { 163825, true }, + { 163846, true }, + { 163862, true }, + { 163874, true }, + { 163887, true }, + { 163904, true }, + { 163919, true }, + { 163933, true }, + { 163946, true }, + { 163959, true }, + { 163977, true }, + { 163991, true }, + { 164006, false }, + { 164018, true }, + { 164032, true }, + { 164047, true }, + { 164070, true }, + { 164078, true }, + { 164088, true }, + { 164101, true }, + { 164123, true }, { 164135, true }, - { 164148, true }, - { 164161, true }, - { 164179, true }, - { 164193, true }, - { 164208, false }, - { 164220, true }, - { 164234, true }, - { 164249, true }, - { 164272, true }, - { 164280, true }, - { 164290, true }, - { 164303, true }, - { 164325, true }, - { 164337, true }, + { 164154, true }, + { 164177, false }, + { 164190, true }, + { 164209, true }, + { 164227, true }, + { 164235, true }, + { 164257, false }, + { 164275, true }, + { 164295, true }, + { 164313, true }, + { 164326, true }, + { 164341, true }, { 164356, true }, - { 164379, false }, - { 164392, true }, - { 164411, true }, - { 164429, true }, - { 164437, true }, - { 164459, false }, - { 164477, true }, - { 164497, true }, - { 164515, true }, - { 164528, true }, - { 164543, true }, - { 164558, true }, - { 164573, true }, - { 164588, true }, - { 164602, true }, - { 164617, true }, - { 164642, true }, - { 164664, true }, - { 164675, true }, - { 164691, true }, - { 164705, true }, - { 164718, true }, - { 164732, true }, - { 164743, true }, - { 164771, true }, - { 164798, true }, - { 164823, true }, - { 164851, true }, - { 164865, true }, - { 164884, true }, - { 164916, true }, - { 164930, true }, - { 164946, true }, - { 164959, true }, - { 164970, true }, - { 164990, true }, - { 165001, true }, - { 165019, true }, - { 165030, true }, - { 165042, true }, - { 165052, true }, - { 165080, true }, - { 165090, true }, - { 165107, true }, - { 165124, true }, - { 165138, true }, - { 165151, true }, - { 165162, true }, - { 165185, true }, - { 165208, true }, - { 165218, true }, - { 165227, true }, - { 165249, true }, - { 165261, true }, - { 165272, true }, - { 165284, true }, - { 165296, true }, - { 165308, true }, - { 165319, true }, - { 165337, true }, - { 165352, true }, - { 165362, true }, - { 165371, true }, - { 165389, false }, - { 165400, true }, - { 165411, true }, - { 165422, true }, - { 165446, true }, - { 165465, false }, - { 165475, true }, - { 165483, true }, - { 165497, true }, - { 165513, true }, - { 165537, true }, - { 165545, true }, - { 165557, true }, - { 165569, true }, - { 165580, true }, - { 165598, true }, - { 165616, true }, - { 165627, true }, - { 165647, true }, - { 165662, true }, - { 165679, true }, - { 165695, true }, - { 165708, true }, - { 165719, true }, - { 165734, true }, - { 165755, true }, - { 165766, true }, - { 165784, true }, - { 165799, true }, - { 165815, true }, - { 165828, true }, - { 165842, true }, - { 165855, true }, - { 165865, true }, - { 165875, true }, - { 165900, true }, - { 165916, true }, - { 165925, true }, - { 165945, true }, - { 165960, true }, - { 165976, true }, - { 165987, true }, - { 165998, true }, - { 166011, true }, - { 166034, true }, - { 166050, true }, - { 166064, true }, - { 166081, true }, - { 166093, true }, - { 166110, true }, - { 166136, true }, - { 166160, true }, - { 166186, true }, - { 166210, true }, - { 166234, true }, - { 166258, true }, - { 166269, true }, - { 166282, true }, - { 166294, true }, - { 166306, true }, - { 166320, true }, - { 166330, true }, - { 166346, true }, - { 166360, true }, - { 166376, true }, - { 166394, true }, - { 166410, true }, - { 166423, true }, - { 166439, true }, - { 166448, true }, - { 166463, true }, + { 164371, true }, + { 164386, true }, + { 164400, true }, + { 164415, true }, + { 164440, true }, + { 164462, true }, + { 164473, true }, + { 164489, true }, + { 164503, true }, + { 164516, true }, + { 164530, true }, + { 164541, true }, + { 164569, true }, + { 164596, true }, + { 164621, true }, + { 164649, true }, + { 164663, true }, + { 164682, true }, + { 164714, true }, + { 164728, true }, + { 164744, true }, + { 164757, true }, + { 164768, true }, + { 164788, true }, + { 164799, true }, + { 164817, true }, + { 164828, true }, + { 164840, true }, + { 164850, true }, + { 164878, true }, + { 164888, true }, + { 164905, true }, + { 164922, true }, + { 164936, true }, + { 164949, true }, + { 164960, true }, + { 164983, true }, + { 165006, true }, + { 165016, true }, + { 165025, true }, + { 165047, true }, + { 165059, true }, + { 165070, true }, + { 165082, true }, + { 165094, true }, + { 165106, true }, + { 165117, true }, + { 165135, true }, + { 165150, true }, + { 165160, true }, + { 165169, true }, + { 165187, false }, + { 165198, true }, + { 165209, true }, + { 165220, true }, + { 165244, true }, + { 165263, false }, + { 165273, true }, + { 165281, true }, + { 165295, true }, + { 165311, true }, + { 165335, true }, + { 165343, true }, + { 165355, true }, + { 165367, true }, + { 165378, true }, + { 165396, true }, + { 165414, true }, + { 165425, true }, + { 165445, true }, + { 165460, true }, + { 165477, true }, + { 165493, true }, + { 165506, true }, + { 165517, true }, + { 165532, true }, + { 165553, true }, + { 165564, true }, + { 165582, true }, + { 165597, true }, + { 165613, true }, + { 165626, true }, + { 165640, true }, + { 165653, true }, + { 165663, true }, + { 165673, true }, + { 165698, true }, + { 165714, true }, + { 165723, true }, + { 165743, true }, + { 165758, true }, + { 165774, true }, + { 165785, true }, + { 165796, true }, + { 165809, true }, + { 165832, true }, + { 165848, true }, + { 165862, true }, + { 165879, true }, + { 165891, true }, + { 165908, true }, + { 165934, true }, + { 165958, true }, + { 165984, true }, + { 166008, true }, + { 166032, true }, + { 166056, true }, + { 166067, true }, + { 166080, true }, + { 166092, true }, + { 166104, true }, + { 166118, true }, + { 166128, true }, + { 166144, true }, + { 166158, true }, + { 166174, true }, + { 166192, true }, + { 166208, true }, + { 166221, true }, + { 166237, true }, + { 166246, true }, + { 166261, true }, + { 166279, true }, + { 166298, true }, + { 166313, true }, + { 166325, true }, + { 166342, false }, + { 166362, false }, + { 166378, true }, + { 166389, true }, + { 166402, true }, + { 166428, true }, + { 166437, true }, + { 166450, true }, + { 166461, true }, { 166481, true }, - { 166500, true }, + { 166494, true }, { 166515, true }, - { 166527, true }, - { 166544, false }, - { 166564, false }, - { 166580, true }, - { 166591, true }, - { 166604, true }, + { 166528, false }, + { 166549, false }, + { 166566, true }, + { 166577, true }, + { 166596, true }, + { 166615, true }, { 166630, true }, - { 166639, true }, - { 166652, true }, - { 166663, true }, - { 166683, true }, - { 166696, true }, - { 166717, true }, - { 166730, false }, - { 166751, false }, - { 166768, true }, - { 166779, true }, - { 166798, true }, - { 166817, true }, - { 166832, true }, - { 166843, true }, - { 166857, true }, - { 166874, true }, - { 166882, true }, - { 166895, true }, - { 166922, true }, - { 166933, true }, - { 166942, true }, - { 166957, true }, - { 166974, true }, - { 166984, true }, + { 166641, true }, + { 166655, true }, + { 166672, true }, + { 166680, true }, + { 166693, true }, + { 166720, true }, + { 166731, true }, + { 166740, true }, + { 166755, true }, + { 166772, true }, + { 166782, true }, + { 166797, true }, + { 166809, true }, + { 166830, true }, + { 166839, true }, + { 166852, true }, + { 166865, true }, + { 166878, true }, + { 166896, true }, + { 166914, true }, + { 166923, true }, + { 166932, true }, + { 166941, true }, + { 166953, false }, + { 166970, false }, + { 166981, true }, { 166999, true }, - { 167011, true }, - { 167032, true }, + { 167010, true }, + { 167025, true }, { 167041, true }, - { 167054, true }, - { 167067, true }, - { 167080, true }, - { 167098, true }, - { 167116, true }, - { 167125, true }, - { 167134, true }, + { 167063, true }, + { 167078, true }, + { 167093, true }, + { 167101, true }, + { 167118, true }, + { 167131, true }, { 167143, true }, - { 167155, false }, - { 167172, false }, - { 167183, true }, - { 167201, true }, + { 167154, true }, + { 167171, true }, + { 167185, true }, + { 167195, true }, { 167212, true }, - { 167227, true }, - { 167243, true }, - { 167265, true }, - { 167280, true }, - { 167295, true }, - { 167303, true }, - { 167320, true }, - { 167333, true }, - { 167345, true }, - { 167356, true }, - { 167373, true }, - { 167387, true }, - { 167397, true }, - { 167414, true }, - { 167432, true }, - { 167449, true }, - { 167466, true }, - { 167474, true }, - { 167492, true }, + { 167230, true }, + { 167247, true }, + { 167264, true }, + { 167272, true }, + { 167290, true }, + { 167309, true }, + { 167328, true }, + { 167343, true }, + { 167367, true }, + { 167391, true }, + { 167409, true }, + { 167423, true }, + { 167434, true }, + { 167447, true }, + { 167462, true }, + { 167497, true }, { 167511, true }, - { 167530, true }, + { 167534, true }, { 167545, true }, - { 167569, true }, - { 167593, true }, - { 167611, true }, - { 167625, true }, + { 167561, true }, + { 167571, true }, + { 167582, true }, + { 167604, true }, + { 167616, true }, { 167636, true }, - { 167649, true }, - { 167664, true }, - { 167699, true }, - { 167713, true }, - { 167736, true }, - { 167747, true }, - { 167763, true }, - { 167773, true }, - { 167784, true }, - { 167806, true }, - { 167818, true }, - { 167838, true }, - { 167849, true }, + { 167647, true }, + { 167655, true }, + { 167682, true }, + { 167694, true }, + { 167717, true }, + { 167729, true }, + { 167744, true }, + { 167767, true }, + { 167788, true }, + { 167807, true }, + { 167820, false }, + { 167827, true }, + { 167847, true }, { 167857, true }, - { 167884, true }, - { 167896, true }, - { 167919, true }, - { 167931, true }, + { 167873, true }, + { 167889, true }, + { 167903, true }, + { 167917, true }, + { 167930, true }, + { 167937, true }, { 167946, true }, - { 167969, true }, - { 167990, true }, - { 168009, true }, - { 168022, false }, - { 168029, true }, - { 168049, true }, - { 168059, true }, - { 168075, true }, + { 167965, true }, + { 167978, true }, + { 167996, true }, + { 168006, true }, + { 168026, true }, + { 168036, true }, + { 168051, true }, + { 168064, true }, + { 168073, true }, + { 168083, true }, { 168091, true }, - { 168105, true }, - { 168119, true }, - { 168132, true }, - { 168143, true }, - { 168150, true }, - { 168159, true }, - { 168178, true }, - { 168191, true }, - { 168209, true }, - { 168219, true }, - { 168239, true }, - { 168249, true }, + { 168115, true }, + { 168123, true }, + { 168140, true }, + { 168152, false }, + { 168167, true }, + { 168180, true }, + { 168195, true }, + { 168205, true }, + { 168223, true }, + { 168234, true }, + { 168246, true }, { 168264, true }, - { 168277, true }, - { 168286, true }, - { 168296, true }, - { 168304, true }, + { 168285, false }, + { 168311, true }, { 168328, true }, - { 168336, true }, - { 168353, true }, - { 168365, false }, - { 168380, true }, - { 168393, true }, - { 168408, true }, - { 168418, true }, - { 168436, true }, - { 168447, true }, - { 168459, true }, - { 168477, true }, - { 168498, false }, - { 168524, true }, - { 168541, true }, - { 168555, true }, - { 168569, true }, - { 168582, true }, - { 168595, true }, - { 168626, true }, - { 168655, true }, - { 168669, false }, - { 168682, true }, - { 168693, true }, + { 168342, true }, + { 168356, true }, + { 168369, true }, + { 168382, true }, + { 168413, true }, + { 168442, true }, + { 168456, false }, + { 168469, true }, + { 168480, true }, + { 168494, true }, + { 168506, true }, + { 168519, true }, + { 168531, true }, + { 168544, true }, + { 168561, true }, + { 168576, true }, + { 168592, true }, + { 168604, false }, + { 168618, true }, + { 168638, true }, + { 168651, true }, + { 168664, true }, + { 168677, true }, + { 168687, true }, + { 168696, true }, { 168707, true }, - { 168719, true }, - { 168732, true }, + { 168718, true }, + { 168729, true }, { 168744, true }, - { 168757, true }, - { 168774, true }, + { 168753, true }, + { 168764, true }, + { 168776, true }, { 168789, true }, - { 168805, true }, - { 168817, false }, - { 168831, true }, - { 168851, true }, - { 168864, true }, - { 168877, true }, - { 168890, true }, - { 168900, true }, - { 168909, true }, - { 168920, true }, - { 168931, true }, - { 168942, true }, - { 168957, true }, - { 168966, true }, - { 168977, true }, - { 168989, true }, - { 169002, true }, - { 169026, true }, - { 169038, true }, - { 169052, true }, - { 169063, true }, - { 169076, true }, + { 168813, true }, + { 168825, true }, + { 168839, true }, + { 168850, true }, + { 168863, true }, + { 168871, true }, + { 168883, true }, + { 168897, true }, + { 168912, true }, + { 168935, true }, + { 168946, true }, + { 168960, true }, + { 168973, false }, + { 168988, true }, + { 169000, true }, + { 169012, true }, + { 169032, true }, + { 169042, true }, + { 169058, true }, + { 169070, false }, { 169084, true }, - { 169096, true }, + { 169098, true }, { 169110, true }, - { 169125, true }, - { 169148, true }, - { 169159, true }, - { 169173, true }, - { 169186, false }, - { 169201, true }, - { 169213, true }, - { 169225, true }, - { 169245, true }, - { 169255, true }, - { 169271, true }, - { 169283, false }, - { 169297, true }, - { 169311, true }, - { 169323, true }, - { 169337, true }, - { 169352, true }, - { 169366, true }, - { 169383, true }, - { 169396, true }, - { 169422, true }, - { 169432, true }, - { 169460, true }, - { 169488, false }, - { 169498, true }, - { 169525, false }, + { 169124, true }, + { 169139, true }, + { 169153, true }, + { 169170, true }, + { 169183, true }, + { 169209, true }, + { 169219, true }, + { 169247, true }, + { 169275, false }, + { 169285, true }, + { 169312, false }, + { 169324, true }, + { 169334, true }, + { 169348, true }, + { 169358, true }, + { 169371, true }, + { 169380, true }, + { 169390, true }, + { 169404, true }, + { 169413, true }, + { 169429, true }, + { 169442, true }, + { 169456, true }, + { 169472, false }, + { 169487, true }, + { 169505, true }, + { 169524, true }, { 169537, true }, - { 169547, true }, - { 169561, true }, - { 169571, true }, - { 169584, true }, - { 169593, true }, - { 169603, true }, - { 169617, true }, - { 169626, true }, - { 169642, true }, - { 169655, true }, + { 169552, true }, + { 169566, true }, + { 169582, true }, + { 169596, true }, + { 169614, true }, + { 169627, true }, + { 169637, false }, + { 169648, true }, + { 169659, true }, { 169669, true }, - { 169685, false }, - { 169700, true }, - { 169718, true }, - { 169737, true }, - { 169750, true }, + { 169681, true }, + { 169691, true }, + { 169702, true }, + { 169720, true }, + { 169740, true }, + { 169754, true }, { 169765, true }, - { 169779, true }, - { 169795, true }, - { 169809, true }, - { 169827, true }, - { 169840, true }, - { 169850, false }, + { 169774, true }, + { 169783, true }, + { 169794, false }, + { 169808, true }, + { 169831, true }, + { 169847, true }, { 169861, true }, - { 169872, true }, { 169882, true }, - { 169894, true }, - { 169904, true }, - { 169915, true }, - { 169933, true }, - { 169953, true }, + { 169898, true }, + { 169918, true }, + { 169940, true }, + { 169950, true }, + { 169958, true }, { 169967, true }, { 169978, true }, - { 169987, true }, - { 169996, true }, - { 170007, false }, - { 170021, true }, - { 170044, true }, - { 170060, true }, - { 170074, true }, - { 170095, true }, - { 170111, true }, - { 170131, true }, - { 170153, true }, - { 170163, true }, - { 170171, true }, - { 170180, true }, - { 170191, true }, - { 170206, true }, - { 170220, true }, + { 169993, true }, + { 170007, true }, + { 170016, true }, + { 170026, true }, + { 170043, true }, + { 170057, true }, + { 170067, true }, + { 170087, true }, + { 170102, true }, + { 170119, true }, + { 170137, true }, + { 170152, true }, + { 170178, true }, + { 170190, true }, + { 170204, true }, + { 170217, true }, { 170229, true }, - { 170239, true }, - { 170256, true }, - { 170271, true }, - { 170285, true }, - { 170295, true }, - { 170315, true }, - { 170330, true }, - { 170347, true }, - { 170365, true }, - { 170380, true }, - { 170406, true }, - { 170418, true }, - { 170432, true }, - { 170445, true }, - { 170457, true }, - { 170476, true }, - { 170489, true }, - { 170513, false }, - { 170532, true }, - { 170560, true }, - { 170574, true }, - { 170592, true }, - { 170605, true }, - { 170618, true }, - { 170632, true }, - { 170644, true }, - { 170655, true }, - { 170669, true }, + { 170248, true }, + { 170261, true }, + { 170285, false }, + { 170304, true }, + { 170332, true }, + { 170346, true }, + { 170364, true }, + { 170377, true }, + { 170390, true }, + { 170404, true }, + { 170416, true }, + { 170427, true }, + { 170441, true }, + { 170463, true }, + { 170482, true }, + { 170500, true }, + { 170518, true }, + { 170526, true }, + { 170542, true }, + { 170557, true }, + { 170565, true }, + { 170576, true }, + { 170591, true }, + { 170604, true }, + { 170616, true }, + { 170627, true }, + { 170643, true }, + { 170657, true }, + { 170673, true }, { 170691, true }, - { 170710, true }, - { 170728, true }, - { 170746, true }, - { 170754, true }, - { 170770, true }, - { 170785, true }, - { 170793, true }, - { 170804, true }, - { 170819, true }, - { 170832, true }, - { 170844, true }, - { 170855, true }, - { 170871, true }, + { 170707, true }, + { 170721, true }, + { 170736, true }, + { 170751, true }, + { 170763, true }, + { 170775, true }, + { 170801, true }, + { 170820, true }, + { 170836, true }, + { 170849, true }, + { 170868, true }, { 170885, true }, - { 170901, true }, - { 170919, true }, - { 170935, true }, - { 170949, true }, - { 170964, true }, - { 170979, true }, - { 170991, true }, - { 171003, true }, - { 171029, true }, - { 171048, true }, - { 171064, true }, - { 171077, true }, - { 171096, true }, + { 170895, true }, + { 170906, true }, + { 170918, false }, + { 170933, true }, + { 170944, true }, + { 170957, true }, + { 170975, true }, + { 170984, true }, + { 170994, true }, + { 171001, true }, + { 171009, true }, + { 171020, true }, + { 171034, true }, + { 171050, true }, + { 171063, false }, + { 171076, true }, + { 171089, true }, + { 171100, true }, { 171113, true }, { 171123, true }, - { 171134, true }, - { 171146, false }, - { 171161, true }, - { 171172, true }, - { 171185, true }, - { 171203, true }, - { 171212, true }, - { 171222, true }, - { 171229, true }, - { 171237, true }, + { 171133, true }, + { 171145, true }, + { 171153, true }, + { 171159, true }, + { 171168, true }, + { 171175, true }, + { 171186, true }, + { 171197, true }, + { 171215, true }, + { 171234, true }, { 171248, true }, { 171262, true }, - { 171278, true }, - { 171291, false }, - { 171304, true }, + { 171273, true }, + { 171296, true }, + { 171306, true }, { 171317, true }, - { 171328, true }, - { 171341, true }, - { 171351, true }, - { 171361, true }, - { 171373, true }, - { 171381, true }, - { 171387, true }, - { 171399, true }, - { 171408, true }, - { 171415, true }, - { 171426, true }, - { 171437, true }, - { 171455, true }, - { 171474, true }, - { 171488, true }, - { 171502, true }, - { 171513, true }, - { 171536, true }, - { 171546, true }, - { 171557, true }, - { 171572, true }, - { 171590, true }, - { 171607, true }, - { 171622, true }, - { 171638, true }, + { 171332, true }, + { 171350, true }, + { 171367, true }, + { 171382, true }, + { 171398, true }, + { 171411, true }, + { 171427, true }, + { 171441, true }, + { 171453, true }, + { 171465, true }, + { 171477, true }, + { 171490, true }, + { 171507, true }, + { 171520, false }, + { 171531, true }, + { 171545, true }, + { 171556, true }, + { 171571, true }, + { 171578, true }, + { 171587, true }, + { 171606, true }, + { 171625, true }, { 171651, true }, - { 171667, true }, - { 171681, true }, - { 171693, true }, - { 171705, true }, - { 171717, true }, - { 171730, true }, - { 171747, true }, - { 171760, false }, - { 171771, true }, - { 171785, true }, + { 171675, false }, + { 171690, true }, + { 171701, true }, + { 171712, true }, + { 171722, false }, + { 171733, false }, + { 171744, false }, + { 171756, true }, + { 171770, true }, + { 171783, true }, { 171796, true }, - { 171811, true }, - { 171818, true }, - { 171827, true }, - { 171846, true }, - { 171865, true }, - { 171891, true }, - { 171915, false }, - { 171930, true }, - { 171941, true }, - { 171952, true }, - { 171962, false }, - { 171973, false }, - { 171984, false }, - { 171996, true }, - { 172010, true }, - { 172023, true }, - { 172036, true }, - { 172049, true }, - { 172071, false }, + { 171809, true }, + { 171831, false }, + { 171841, true }, + { 171861, true }, + { 171875, true }, + { 171892, false }, + { 171907, false }, + { 171923, true }, + { 171940, true }, + { 171951, true }, + { 171973, true }, + { 171987, true }, + { 171998, true }, + { 172018, true }, + { 172035, true }, + { 172045, true }, + { 172053, true }, + { 172064, true }, + { 172072, true }, { 172081, true }, - { 172101, true }, - { 172115, true }, - { 172132, false }, - { 172147, false }, - { 172163, true }, - { 172180, true }, - { 172191, true }, - { 172213, true }, - { 172227, true }, - { 172238, true }, - { 172258, true }, - { 172275, true }, - { 172285, true }, + { 172092, true }, + { 172103, true }, + { 172116, true }, + { 172126, true }, + { 172141, true }, + { 172154, true }, + { 172168, true }, + { 172176, true }, + { 172186, true }, + { 172203, true }, + { 172217, true }, + { 172240, true }, + { 172270, true }, { 172293, true }, - { 172304, true }, - { 172312, true }, - { 172321, true }, - { 172332, true }, - { 172343, true }, - { 172356, true }, - { 172366, true }, - { 172379, true }, - { 172393, true }, - { 172401, true }, - { 172411, true }, - { 172428, true }, - { 172442, true }, - { 172465, true }, - { 172495, true }, - { 172518, true }, - { 172533, true }, - { 172550, true }, - { 172572, true }, - { 172587, true }, - { 172602, true }, - { 172613, true }, - { 172629, true }, - { 172643, true }, - { 172656, true }, - { 172669, true }, - { 172682, true }, - { 172695, true }, + { 172308, true }, + { 172325, true }, + { 172347, true }, + { 172362, true }, + { 172377, true }, + { 172388, true }, + { 172404, true }, + { 172418, true }, + { 172431, true }, + { 172444, true }, + { 172457, true }, + { 172470, true }, + { 172483, true }, + { 172496, true }, + { 172507, true }, + { 172520, true }, + { 172534, true }, + { 172547, true }, + { 172558, true }, + { 172568, true }, + { 172591, true }, + { 172611, true }, + { 172622, true }, + { 172630, true }, + { 172640, true }, + { 172655, true }, + { 172670, true }, + { 172686, true }, + { 172696, true }, { 172708, true }, - { 172721, true }, - { 172732, true }, - { 172745, true }, - { 172759, true }, - { 172772, true }, - { 172783, true }, - { 172793, true }, + { 172725, true }, + { 172733, true }, + { 172740, true }, + { 172763, true }, + { 172779, true }, + { 172794, true }, { 172816, true }, { 172836, true }, - { 172847, true }, - { 172855, true }, - { 172865, true }, - { 172880, true }, - { 172895, true }, - { 172911, true }, - { 172921, true }, - { 172933, true }, + { 172846, true }, + { 172860, true }, + { 172879, true }, + { 172904, true }, + { 172922, true }, + { 172936, true }, { 172950, true }, - { 172958, true }, - { 172965, true }, - { 172988, true }, - { 173004, true }, - { 173019, true }, - { 173041, true }, - { 173061, true }, - { 173071, true }, - { 173085, true }, - { 173104, true }, - { 173129, true }, - { 173147, true }, - { 173161, true }, - { 173175, true }, + { 172964, true }, + { 172978, true }, + { 172992, true }, + { 173007, true }, + { 173021, true }, + { 173035, true }, + { 173049, true }, + { 173069, true }, + { 173087, true }, + { 173099, true }, + { 173116, true }, + { 173134, true }, + { 173149, true }, + { 173160, true }, + { 173173, true }, { 173189, true }, - { 173203, true }, - { 173217, true }, - { 173232, true }, - { 173246, true }, - { 173260, true }, - { 173274, true }, - { 173294, true }, - { 173312, true }, - { 173324, true }, - { 173341, true }, - { 173359, true }, - { 173374, true }, - { 173385, true }, - { 173398, true }, - { 173414, true }, - { 173432, true }, - { 173447, true }, - { 173463, true }, + { 173207, true }, + { 173222, true }, + { 173238, true }, + { 173250, true }, + { 173264, true }, + { 173283, true }, + { 173300, true }, + { 173313, true }, + { 173328, true }, + { 173338, true }, + { 173360, true }, + { 173373, false }, + { 173388, true }, + { 173399, true }, + { 173412, true }, + { 173427, true }, + { 173439, true }, + { 173456, true }, + { 173466, true }, { 173475, true }, - { 173489, true }, - { 173508, true }, - { 173525, true }, + { 173484, true }, + { 173496, true }, + { 173505, true }, + { 173522, true }, { 173538, true }, - { 173553, true }, - { 173563, true }, - { 173585, true }, - { 173598, false }, - { 173613, true }, - { 173624, true }, - { 173637, true }, - { 173652, true }, - { 173664, true }, - { 173681, true }, - { 173691, true }, - { 173700, true }, + { 173549, true }, + { 173573, true }, + { 173592, false }, + { 173602, true }, + { 173617, true }, + { 173636, true }, + { 173651, true }, + { 173663, true }, + { 173679, true }, + { 173699, true }, { 173709, true }, - { 173721, true }, - { 173730, true }, - { 173747, true }, - { 173763, true }, - { 173774, true }, - { 173798, true }, - { 173817, false }, - { 173827, true }, - { 173842, true }, - { 173861, true }, - { 173876, true }, - { 173888, true }, - { 173904, true }, - { 173924, true }, - { 173934, true }, + { 173725, true }, + { 173745, true }, + { 173759, true }, + { 173773, true }, + { 173792, true }, + { 173813, true }, + { 173826, true }, + { 173846, true }, + { 173858, true }, + { 173874, true }, + { 173884, true }, + { 173894, true }, + { 173908, true }, + { 173931, true }, + { 173941, true }, { 173950, true }, - { 173970, true }, - { 173984, true }, - { 173998, true }, - { 174017, true }, - { 174038, true }, - { 174051, true }, - { 174071, true }, - { 174083, true }, - { 174099, true }, - { 174109, true }, - { 174119, true }, - { 174133, true }, - { 174156, true }, - { 174166, true }, + { 173969, true }, + { 173986, true }, + { 173995, true }, + { 174008, true }, + { 174023, true }, + { 174037, true }, + { 174056, true }, + { 174074, true }, + { 174089, true }, + { 174103, true }, + { 174118, true }, + { 174134, true }, + { 174150, true }, + { 174158, true }, { 174175, true }, + { 174186, true }, { 174194, true }, - { 174211, true }, - { 174220, true }, - { 174233, true }, - { 174248, true }, - { 174262, true }, - { 174281, true }, - { 174299, true }, - { 174314, true }, - { 174328, true }, + { 174206, true }, + { 174217, true }, + { 174229, true }, + { 174241, true }, + { 174251, true }, + { 174266, true }, + { 174280, true }, + { 174293, true }, + { 174307, false }, + { 174318, true }, + { 174327, true }, + { 174335, true }, { 174343, true }, - { 174359, true }, + { 174351, true }, + { 174361, true }, { 174375, true }, - { 174383, true }, - { 174400, true }, - { 174411, true }, - { 174419, true }, - { 174431, true }, - { 174442, true }, - { 174454, true }, - { 174466, true }, - { 174476, true }, - { 174491, true }, - { 174505, true }, - { 174518, true }, - { 174532, false }, - { 174543, true }, - { 174552, true }, - { 174560, true }, - { 174568, true }, - { 174576, true }, - { 174586, true }, - { 174600, true }, - { 174609, true }, - { 174621, true }, - { 174643, true }, - { 174662, true }, - { 174672, true }, - { 174683, true }, - { 174694, true }, - { 174711, true }, - { 174724, true }, - { 174734, true }, - { 174748, true }, - { 174760, true }, - { 174771, true }, - { 174799, true }, - { 174817, true }, - { 174835, true }, - { 174849, true }, - { 174859, true }, - { 174873, true }, - { 174880, true }, + { 174384, true }, + { 174396, true }, + { 174418, true }, + { 174437, true }, + { 174447, true }, + { 174458, true }, + { 174469, true }, + { 174486, true }, + { 174499, true }, + { 174509, true }, + { 174523, true }, + { 174535, true }, + { 174546, true }, + { 174574, true }, + { 174592, true }, + { 174610, true }, + { 174624, true }, + { 174634, true }, + { 174648, true }, + { 174655, true }, + { 174665, true }, + { 174680, true }, + { 174702, true }, + { 174710, true }, + { 174720, true }, + { 174739, true }, + { 174757, true }, + { 174769, true }, + { 174781, true }, + { 174791, true }, + { 174801, true }, + { 174811, true }, + { 174823, true }, + { 174834, true }, + { 174847, true }, + { 174855, true }, + { 174869, true }, + { 174879, true }, { 174890, true }, - { 174905, true }, - { 174927, true }, - { 174935, true }, - { 174945, true }, - { 174964, true }, - { 174982, true }, - { 174994, true }, - { 175006, true }, - { 175016, true }, - { 175026, true }, - { 175036, true }, - { 175048, true }, - { 175059, true }, - { 175072, true }, - { 175080, true }, - { 175094, true }, - { 175104, true }, + { 174897, true }, + { 174908, true }, + { 174915, true }, + { 174926, true }, + { 174934, true }, + { 174943, true }, + { 174961, true }, + { 174977, true }, + { 174987, true }, + { 175001, true }, + { 175012, true }, + { 175028, false }, + { 175043, true }, + { 175053, true }, + { 175067, true }, + { 175075, true }, + { 175086, true }, + { 175095, true }, + { 175105, true }, { 175115, true }, - { 175122, true }, - { 175133, true }, - { 175140, true }, - { 175151, true }, - { 175159, true }, + { 175124, true }, + { 175148, true }, { 175168, true }, - { 175186, true }, + { 175188, true }, { 175202, true }, - { 175212, true }, - { 175226, true }, - { 175237, true }, - { 175253, false }, - { 175268, true }, - { 175278, true }, - { 175292, true }, - { 175300, true }, - { 175311, true }, - { 175320, true }, + { 175211, true }, + { 175227, false }, + { 175238, true }, + { 175249, false }, + { 175270, true }, + { 175289, true }, + { 175302, true }, + { 175318, true }, { 175330, true }, - { 175340, true }, - { 175349, true }, - { 175373, true }, - { 175393, true }, - { 175413, true }, - { 175427, true }, - { 175436, true }, - { 175452, false }, - { 175463, true }, - { 175474, false }, - { 175495, true }, - { 175514, true }, - { 175527, true }, - { 175543, true }, - { 175555, true }, - { 175568, true }, - { 175581, false }, - { 175592, true }, - { 175609, true }, - { 175621, true }, - { 175636, true }, - { 175646, true }, - { 175658, true }, - { 175670, true }, - { 175681, true }, - { 175692, true }, - { 175704, true }, - { 175722, true }, - { 175745, true }, - { 175755, true }, - { 175765, true }, - { 175784, true }, - { 175800, true }, - { 175815, true }, - { 175832, true }, + { 175343, true }, + { 175356, false }, + { 175367, true }, + { 175384, true }, + { 175396, true }, + { 175411, true }, + { 175421, true }, + { 175433, true }, + { 175445, true }, + { 175456, true }, + { 175467, true }, + { 175479, true }, + { 175497, true }, + { 175520, true }, + { 175530, true }, + { 175540, true }, + { 175559, true }, + { 175575, true }, + { 175590, true }, + { 175607, true }, + { 175620, true }, + { 175641, true }, + { 175662, true }, + { 175688, true }, + { 175697, true }, + { 175717, true }, + { 175726, true }, + { 175736, true }, + { 175751, true }, + { 175761, true }, + { 175774, true }, + { 175787, true }, + { 175802, true }, + { 175812, true }, + { 175829, true }, { 175845, true }, - { 175866, true }, - { 175887, true }, - { 175913, true }, - { 175922, true }, + { 175859, true }, + { 175870, false }, + { 175880, true }, + { 175894, true }, + { 175908, true }, + { 175919, true }, { 175942, true }, - { 175951, true }, - { 175961, true }, - { 175976, true }, - { 175986, true }, - { 175999, true }, - { 176012, true }, - { 176027, true }, - { 176037, true }, - { 176054, true }, - { 176070, true }, - { 176084, true }, - { 176095, false }, - { 176105, true }, - { 176119, true }, - { 176133, true }, - { 176144, true }, - { 176167, true }, - { 176190, true }, - { 176206, true }, - { 176216, true }, - { 176230, true }, - { 176241, true }, - { 176254, true }, - { 176267, true }, - { 176284, true }, - { 176297, true }, - { 176323, true }, - { 176338, true }, - { 176355, true }, - { 176373, true }, - { 176399, true }, - { 176410, true }, - { 176428, false }, - { 176443, true }, - { 176456, true }, - { 176469, true }, - { 176490, true }, - { 176502, true }, - { 176513, true }, - { 176537, true }, - { 176560, true }, + { 175965, true }, + { 175981, true }, + { 175991, true }, + { 176005, true }, + { 176016, true }, + { 176029, true }, + { 176042, true }, + { 176059, true }, + { 176072, true }, + { 176098, true }, + { 176113, true }, + { 176130, true }, + { 176148, true }, + { 176174, true }, + { 176185, true }, + { 176203, false }, + { 176218, true }, + { 176231, true }, + { 176244, true }, + { 176265, true }, + { 176277, true }, + { 176288, true }, + { 176312, true }, + { 176335, true }, + { 176350, true }, + { 176375, true }, + { 176383, true }, + { 176399, false }, + { 176414, true }, + { 176426, true }, + { 176438, true }, + { 176452, true }, + { 176466, true }, + { 176480, true }, + { 176494, true }, + { 176511, true }, + { 176538, true }, + { 176555, true }, { 176575, true }, - { 176600, true }, - { 176608, true }, - { 176624, false }, - { 176639, true }, - { 176651, true }, - { 176663, true }, - { 176677, true }, - { 176691, true }, - { 176705, true }, - { 176719, true }, - { 176736, true }, - { 176763, true }, - { 176780, true }, - { 176800, true }, - { 176812, true }, - { 176822, true }, - { 176836, true }, - { 176851, true }, - { 176873, true }, - { 176887, true }, - { 176905, true }, - { 176926, true }, - { 176943, true }, - { 176964, true }, - { 176978, true }, - { 176989, true }, - { 177003, true }, - { 177014, true }, - { 177030, true }, - { 177042, true }, - { 177055, true }, - { 177069, true }, - { 177085, true }, - { 177102, true }, - { 177113, true }, - { 177127, true }, - { 177139, false }, - { 177164, true }, - { 177188, true }, - { 177198, false }, - { 177224, true }, - { 177241, true }, + { 176587, true }, + { 176597, true }, + { 176611, true }, + { 176626, true }, + { 176648, true }, + { 176662, true }, + { 176680, true }, + { 176701, true }, + { 176718, true }, + { 176739, true }, + { 176753, true }, + { 176764, true }, + { 176778, true }, + { 176789, true }, + { 176805, true }, + { 176817, true }, + { 176830, true }, + { 176844, true }, + { 176860, true }, + { 176877, true }, + { 176888, true }, + { 176902, true }, + { 176914, false }, + { 176939, true }, + { 176963, true }, + { 176973, false }, + { 176999, true }, + { 177016, true }, + { 177033, true }, + { 177054, true }, + { 177068, true }, + { 177098, false }, + { 177112, true }, + { 177129, true }, + { 177143, true }, + { 177166, true }, + { 177174, true }, + { 177182, true }, + { 177190, true }, + { 177198, true }, + { 177206, true }, + { 177218, true }, + { 177228, true }, + { 177244, true }, { 177258, true }, - { 177279, true }, - { 177293, true }, - { 177323, false }, - { 177337, true }, - { 177354, true }, - { 177368, true }, - { 177391, true }, - { 177399, true }, - { 177407, true }, - { 177415, true }, - { 177423, true }, - { 177431, true }, - { 177443, true }, - { 177453, true }, - { 177469, true }, - { 177483, true }, - { 177502, true }, - { 177511, true }, - { 177524, true }, - { 177535, true }, - { 177547, true }, - { 177558, true }, - { 177583, true }, - { 177595, true }, - { 177608, true }, - { 177617, true }, - { 177628, true }, + { 177277, true }, + { 177286, true }, + { 177299, true }, + { 177310, true }, + { 177322, true }, + { 177333, true }, + { 177358, true }, + { 177370, true }, + { 177383, true }, + { 177392, true }, + { 177403, true }, + { 177412, true }, + { 177422, true }, + { 177437, true }, + { 177451, true }, + { 177464, true }, + { 177481, true }, + { 177497, true }, + { 177520, true }, + { 177542, true }, + { 177560, true }, + { 177579, false }, + { 177598, true }, + { 177611, true }, + { 177624, true }, { 177637, true }, - { 177647, true }, - { 177662, true }, - { 177676, true }, - { 177689, true }, - { 177706, true }, + { 177661, true }, + { 177675, true }, + { 177686, true }, + { 177705, true }, { 177722, true }, - { 177745, true }, - { 177767, true }, - { 177785, true }, - { 177804, false }, - { 177823, true }, - { 177836, true }, - { 177849, true }, - { 177862, true }, - { 177886, true }, - { 177900, true }, + { 177735, true }, + { 177763, true }, + { 177776, true }, + { 177791, true }, + { 177811, true }, + { 177822, true }, + { 177835, true }, + { 177857, true }, + { 177877, true }, + { 177896, true }, { 177911, true }, - { 177930, true }, - { 177947, true }, - { 177960, true }, - { 177988, true }, - { 178001, true }, - { 178016, true }, - { 178036, true }, - { 178047, true }, - { 178060, true }, - { 178082, true }, - { 178102, true }, - { 178121, true }, - { 178136, true }, - { 178156, true }, - { 178176, true }, - { 178191, true }, + { 177931, true }, + { 177951, true }, + { 177966, true }, + { 177980, true }, + { 177993, true }, + { 178014, true }, + { 178028, false }, + { 178039, true }, + { 178058, true }, + { 178077, true }, + { 178088, true }, + { 178106, true }, + { 178120, true }, + { 178132, true }, + { 178148, true }, + { 178166, true }, + { 178183, true }, + { 178194, true }, { 178205, true }, - { 178218, true }, - { 178239, true }, - { 178253, false }, - { 178264, true }, - { 178283, true }, - { 178302, true }, - { 178313, true }, - { 178331, true }, - { 178345, true }, - { 178357, true }, - { 178373, true }, - { 178391, true }, - { 178408, true }, - { 178419, true }, - { 178430, true }, - { 178440, true }, - { 178452, true }, - { 178482, true }, - { 178493, true }, - { 178507, true }, - { 178521, true }, - { 178533, true }, - { 178548, true }, - { 178567, true }, - { 178581, true }, - { 178601, true }, - { 178624, true }, - { 178639, true }, - { 178650, true }, - { 178674, true }, - { 178695, true }, - { 178713, true }, + { 178215, true }, + { 178227, true }, + { 178257, true }, + { 178268, true }, + { 178282, true }, + { 178296, true }, + { 178308, true }, + { 178323, true }, + { 178342, true }, + { 178356, true }, + { 178376, true }, + { 178399, true }, + { 178414, true }, + { 178425, true }, + { 178449, true }, + { 178470, true }, + { 178488, true }, + { 178501, true }, + { 178513, true }, + { 178530, true }, + { 178553, true }, + { 178571, true }, + { 178587, true }, + { 178605, true }, + { 178619, true }, + { 178642, true }, + { 178664, true }, + { 178679, true }, + { 178696, true }, + { 178710, true }, { 178726, true }, - { 178738, true }, - { 178755, true }, - { 178778, true }, - { 178796, true }, - { 178812, true }, - { 178830, true }, - { 178844, true }, - { 178867, true }, - { 178889, true }, - { 178904, true }, - { 178921, true }, - { 178935, true }, - { 178951, true }, - { 178967, true }, + { 178742, true }, + { 178762, true }, + { 178773, true }, + { 178787, true }, + { 178806, true }, + { 178822, true }, + { 178832, true }, + { 178847, true }, + { 178864, true }, + { 178874, true }, + { 178897, true }, + { 178913, true }, + { 178932, true }, + { 178947, true }, + { 178962, true }, + { 178973, true }, { 178987, true }, - { 178998, true }, - { 179012, true }, - { 179031, true }, - { 179047, true }, - { 179057, true }, - { 179072, true }, - { 179089, true }, - { 179099, true }, + { 179004, true }, + { 179028, true }, + { 179044, true }, + { 179061, true }, + { 179080, true }, + { 179095, true }, + { 179106, true }, { 179122, true }, { 179138, true }, - { 179157, true }, - { 179172, true }, - { 179187, true }, - { 179198, true }, + { 179155, true }, + { 179168, true }, + { 179188, true }, + { 179203, true }, { 179212, true }, - { 179229, true }, - { 179253, true }, - { 179269, true }, - { 179286, true }, - { 179305, true }, - { 179320, true }, - { 179331, true }, - { 179347, true }, - { 179363, true }, + { 179231, true }, + { 179247, true }, + { 179260, true }, + { 179279, true }, + { 179304, true }, + { 179324, true }, + { 179336, true }, + { 179353, true }, + { 179368, true }, { 179380, true }, - { 179393, true }, - { 179413, true }, - { 179428, true }, - { 179437, true }, - { 179456, true }, - { 179472, true }, - { 179485, true }, - { 179504, true }, - { 179529, true }, - { 179549, true }, + { 179398, true }, + { 179411, true }, + { 179421, true }, + { 179431, true }, + { 179443, false }, + { 179453, true }, + { 179470, true }, + { 179484, false }, + { 179507, true }, + { 179524, true }, + { 179542, true }, { 179561, true }, - { 179578, true }, - { 179593, true }, - { 179605, true }, - { 179623, true }, - { 179636, true }, - { 179646, true }, - { 179656, true }, - { 179668, false }, - { 179678, true }, - { 179695, true }, - { 179709, false }, - { 179732, true }, - { 179749, true }, - { 179767, true }, + { 179586, true }, + { 179619, true }, + { 179647, true }, + { 179655, true }, + { 179665, true }, + { 179682, true }, + { 179696, true }, + { 179715, true }, + { 179729, true }, + { 179742, true }, + { 179755, true }, + { 179776, true }, { 179786, true }, - { 179811, true }, - { 179844, true }, - { 179872, true }, - { 179880, true }, + { 179805, true }, + { 179835, true }, + { 179849, true }, + { 179863, true }, + { 179875, true }, { 179890, true }, - { 179907, true }, - { 179921, true }, - { 179940, true }, - { 179954, true }, - { 179967, true }, - { 179980, true }, - { 180001, true }, - { 180011, true }, - { 180030, true }, - { 180060, true }, + { 179910, true }, + { 179924, true }, + { 179936, true }, + { 179956, true }, + { 179974, true }, + { 179985, true }, + { 180002, true }, + { 180015, true }, + { 180028, true }, + { 180041, true }, + { 180056, true }, { 180074, true }, - { 180088, true }, - { 180100, true }, - { 180115, true }, - { 180135, true }, - { 180149, true }, - { 180161, true }, - { 180181, true }, - { 180199, true }, - { 180210, true }, - { 180227, true }, - { 180240, true }, - { 180253, true }, - { 180266, true }, - { 180281, true }, - { 180299, true }, + { 180085, true }, + { 180112, true }, + { 180128, true }, + { 180142, true }, + { 180154, true }, + { 180171, true }, + { 180184, true }, + { 180198, true }, + { 180206, true }, + { 180225, true }, + { 180239, true }, + { 180250, true }, + { 180262, true }, + { 180284, true }, + { 180301, true }, { 180310, true }, - { 180337, true }, - { 180353, true }, - { 180367, true }, - { 180379, true }, - { 180396, true }, - { 180409, true }, - { 180423, true }, - { 180431, true }, - { 180450, true }, - { 180464, true }, - { 180475, true }, - { 180487, true }, - { 180509, true }, - { 180526, true }, - { 180535, true }, - { 180548, true }, - { 180558, true }, - { 180572, false }, - { 180584, true }, - { 180595, true }, - { 180605, true }, - { 180628, true }, - { 180638, true }, - { 180647, true }, - { 180657, true }, - { 180671, true }, - { 180686, true }, + { 180323, true }, + { 180333, true }, + { 180347, false }, + { 180359, true }, + { 180370, true }, + { 180380, true }, + { 180403, true }, + { 180413, true }, + { 180422, true }, + { 180432, true }, + { 180446, true }, + { 180461, true }, + { 180485, true }, + { 180504, true }, + { 180518, true }, + { 180533, true }, + { 180547, true }, + { 180568, true }, + { 180577, true }, + { 180589, true }, + { 180601, false }, + { 180615, true }, + { 180630, true }, + { 180646, true }, + { 180667, true }, + { 180683, true }, + { 180696, true }, { 180710, true }, - { 180729, true }, - { 180743, true }, - { 180758, true }, - { 180772, true }, - { 180793, true }, - { 180802, true }, - { 180814, true }, - { 180826, false }, - { 180840, true }, - { 180855, true }, - { 180871, true }, - { 180892, true }, + { 180722, true }, + { 180738, true }, + { 180750, true }, + { 180765, true }, + { 180778, true }, + { 180788, true }, + { 180804, true }, + { 180816, true }, + { 180832, true }, + { 180860, true }, + { 180876, true }, + { 180889, true }, { 180908, true }, - { 180921, true }, - { 180935, true }, - { 180947, true }, - { 180963, true }, - { 180975, true }, + { 180925, true }, + { 180938, true }, + { 180955, true }, + { 180971, true }, { 180990, true }, { 181003, true }, - { 181013, true }, - { 181029, true }, - { 181041, true }, - { 181057, true }, - { 181085, true }, - { 181101, true }, - { 181114, true }, - { 181133, true }, - { 181150, true }, - { 181163, true }, - { 181180, true }, - { 181196, true }, - { 181215, true }, - { 181228, true }, + { 181017, true }, + { 181030, true }, + { 181043, true }, + { 181054, true }, + { 181069, true }, + { 181077, true }, + { 181093, false }, + { 181106, true }, + { 181119, true }, + { 181139, true }, + { 181156, true }, + { 181170, true }, + { 181190, true }, + { 181206, false }, + { 181223, true }, { 181242, true }, - { 181255, true }, - { 181268, true }, - { 181279, true }, - { 181294, true }, - { 181302, true }, - { 181318, false }, - { 181331, true }, - { 181344, true }, - { 181364, true }, - { 181381, true }, - { 181395, true }, + { 181259, true }, + { 181270, true }, + { 181284, true }, + { 181305, true }, + { 181324, true }, + { 181342, true }, + { 181360, true }, + { 181373, true }, + { 181383, true }, + { 181401, true }, { 181415, true }, - { 181431, false }, - { 181448, true }, - { 181467, true }, - { 181484, true }, - { 181495, true }, - { 181509, true }, - { 181530, true }, - { 181549, true }, - { 181567, true }, - { 181585, true }, - { 181598, true }, - { 181608, true }, - { 181626, true }, - { 181640, true }, - { 181660, true }, - { 181669, true }, - { 181679, true }, - { 181700, false }, - { 181717, false }, - { 181740, true }, - { 181761, true }, - { 181770, true }, - { 181786, true }, - { 181804, true }, - { 181816, true }, - { 181829, true }, - { 181842, true }, - { 181858, true }, - { 181866, true }, - { 181881, true }, - { 181897, false }, - { 181909, true }, - { 181922, true }, - { 181932, true }, - { 181945, true }, - { 181959, true }, - { 181973, true }, - { 181988, true }, - { 181998, true }, - { 182017, true }, - { 182030, true }, - { 182045, true }, - { 182060, true }, - { 182079, true }, - { 182101, true }, - { 182119, true }, - { 182138, true }, - { 182152, true }, - { 182163, true }, - { 182177, true }, - { 182191, true }, - { 182204, true }, + { 181435, true }, + { 181444, true }, + { 181454, true }, + { 181475, false }, + { 181492, false }, + { 181515, true }, + { 181536, true }, + { 181545, true }, + { 181561, true }, + { 181579, true }, + { 181591, true }, + { 181604, true }, + { 181617, true }, + { 181633, true }, + { 181641, true }, + { 181656, true }, + { 181672, false }, + { 181684, true }, + { 181697, true }, + { 181707, true }, + { 181720, true }, + { 181734, true }, + { 181748, true }, + { 181763, true }, + { 181773, true }, + { 181792, true }, + { 181805, true }, + { 181820, true }, + { 181835, true }, + { 181854, true }, + { 181876, true }, + { 181894, true }, + { 181913, true }, + { 181927, true }, + { 181938, true }, + { 181952, true }, + { 181966, true }, + { 181979, true }, + { 181998, false }, + { 182020, true }, + { 182037, true }, + { 182046, true }, + { 182064, true }, + { 182083, true }, + { 182100, true }, + { 182113, true }, + { 182121, true }, + { 182132, true }, + { 182146, true }, + { 182158, false }, + { 182178, true }, + { 182195, true }, + { 182203, true }, + { 182214, false }, { 182223, false }, - { 182245, true }, - { 182262, true }, - { 182271, true }, - { 182289, true }, - { 182308, true }, - { 182325, true }, - { 182338, true }, - { 182346, true }, - { 182357, true }, - { 182371, true }, - { 182383, false }, - { 182403, true }, - { 182420, true }, - { 182428, true }, - { 182439, false }, - { 182448, false }, - { 182464, true }, - { 182479, false }, - { 182497, true }, - { 182508, true }, - { 182521, true }, - { 182537, true }, - { 182547, true }, - { 182558, true }, - { 182570, false }, - { 182585, true }, - { 182594, true }, - { 182606, true }, - { 182619, true }, - { 182632, true }, - { 182648, true }, + { 182239, true }, + { 182254, false }, + { 182272, true }, + { 182283, true }, + { 182296, true }, + { 182312, true }, + { 182322, true }, + { 182333, true }, + { 182345, false }, + { 182360, true }, + { 182369, true }, + { 182381, true }, + { 182394, true }, + { 182407, true }, + { 182423, true }, + { 182437, true }, + { 182469, true }, + { 182482, true }, + { 182499, false }, + { 182516, true }, + { 182523, true }, + { 182531, true }, + { 182540, true }, + { 182552, true }, + { 182575, true }, + { 182589, true }, + { 182620, true }, + { 182634, true }, + { 182651, true }, { 182662, true }, - { 182694, true }, - { 182707, true }, - { 182724, false }, - { 182741, true }, - { 182748, true }, - { 182756, true }, + { 182676, true }, + { 182688, true }, + { 182704, true }, + { 182718, true }, + { 182725, true }, + { 182735, true }, { 182765, true }, - { 182777, true }, - { 182800, true }, + { 182776, true }, + { 182787, true }, + { 182802, true }, { 182814, true }, - { 182845, true }, - { 182859, true }, - { 182876, true }, - { 182887, true }, - { 182901, true }, - { 182913, true }, + { 182822, true }, + { 182835, true }, + { 182847, true }, + { 182868, true }, + { 182883, false }, + { 182893, true }, + { 182905, true }, + { 182917, true }, { 182929, true }, - { 182943, true }, - { 182950, true }, - { 182960, true }, - { 182990, true }, - { 183001, true }, - { 183012, true }, - { 183027, true }, - { 183039, true }, - { 183047, true }, - { 183060, true }, - { 183072, true }, + { 182944, true }, + { 182973, true }, + { 182987, true }, + { 182995, true }, + { 183007, true }, + { 183015, true }, + { 183024, true }, + { 183037, true }, + { 183045, true }, + { 183055, true }, + { 183066, true }, + { 183077, true }, + { 183084, true }, { 183093, true }, - { 183108, false }, + { 183103, true }, { 183118, true }, - { 183130, true }, - { 183142, true }, - { 183154, true }, - { 183169, true }, + { 183138, true }, + { 183150, true }, + { 183162, true }, + { 183172, true }, + { 183181, true }, { 183198, true }, - { 183212, true }, - { 183220, true }, - { 183232, true }, + { 183221, true }, { 183240, true }, - { 183249, true }, - { 183262, true }, - { 183270, true }, - { 183280, true }, - { 183291, true }, - { 183302, true }, - { 183309, true }, - { 183318, true }, - { 183328, true }, - { 183348, true }, - { 183360, true }, - { 183372, true }, - { 183382, true }, - { 183391, true }, - { 183408, true }, - { 183431, true }, - { 183450, true }, - { 183462, true }, - { 183477, false }, - { 183486, true }, - { 183502, true }, - { 183525, true }, - { 183545, false }, - { 183566, true }, - { 183578, true }, - { 183591, true }, - { 183600, true }, - { 183614, true }, - { 183631, true }, - { 183647, true }, - { 183665, true }, - { 183683, true }, - { 183697, true }, - { 183714, true }, - { 183726, true }, - { 183739, true }, - { 183753, true }, - { 183771, true }, - { 183785, true }, - { 183797, true }, - { 183813, true }, - { 183829, false }, - { 183847, true }, - { 183864, true }, - { 183886, true }, - { 183897, true }, - { 183908, true }, - { 183922, true }, - { 183934, true }, - { 183950, true }, - { 183961, true }, - { 183972, true }, - { 183984, true }, - { 183998, true }, - { 184009, true }, - { 184019, true }, - { 184031, true }, - { 184060, true }, + { 183252, true }, + { 183267, false }, + { 183276, true }, + { 183292, true }, + { 183315, true }, + { 183335, false }, + { 183356, true }, + { 183368, true }, + { 183381, true }, + { 183390, true }, + { 183404, true }, + { 183421, true }, + { 183437, true }, + { 183455, true }, + { 183473, true }, + { 183487, true }, + { 183504, true }, + { 183516, true }, + { 183529, true }, + { 183543, true }, + { 183561, true }, + { 183575, true }, + { 183587, true }, + { 183603, true }, + { 183619, false }, + { 183637, true }, + { 183654, true }, + { 183676, true }, + { 183687, true }, + { 183698, true }, + { 183712, true }, + { 183724, true }, + { 183740, true }, + { 183751, true }, + { 183762, true }, + { 183774, true }, + { 183788, true }, + { 183799, true }, + { 183809, true }, + { 183821, true }, + { 183850, true }, + { 183859, true }, + { 183874, true }, + { 183890, true }, + { 183916, true }, + { 183933, true }, + { 183952, true }, + { 183968, true }, + { 183979, true }, + { 183987, true }, + { 183999, true }, + { 184016, true }, + { 184029, true }, + { 184044, true }, + { 184056, true }, { 184069, true }, - { 184084, true }, - { 184100, true }, - { 184126, true }, - { 184143, true }, - { 184162, true }, + { 184083, true }, + { 184095, true }, + { 184107, true }, + { 184121, true }, + { 184138, true }, + { 184151, true }, + { 184166, true }, { 184179, true }, - { 184195, true }, - { 184206, true }, - { 184214, true }, - { 184226, true }, - { 184243, true }, - { 184256, true }, - { 184271, true }, - { 184283, true }, - { 184296, true }, - { 184310, true }, + { 184192, true }, + { 184204, true }, + { 184215, true }, + { 184233, true }, + { 184260, true }, + { 184279, true }, + { 184305, true }, { 184322, true }, - { 184334, true }, - { 184348, true }, - { 184365, true }, - { 184378, true }, + { 184350, true }, + { 184372, true }, { 184393, true }, - { 184406, true }, - { 184419, true }, - { 184431, true }, - { 184442, true }, - { 184460, true }, - { 184487, true }, - { 184506, true }, - { 184532, true }, - { 184549, true }, - { 184577, true }, - { 184599, true }, - { 184620, true }, - { 184631, true }, - { 184641, true }, - { 184654, true }, - { 184668, true }, - { 184685, true }, - { 184702, true }, - { 184713, true }, - { 184734, true }, - { 184756, true }, - { 184768, true }, - { 184793, true }, - { 184801, true }, - { 184822, true }, + { 184404, true }, + { 184414, true }, + { 184427, true }, + { 184441, true }, + { 184458, true }, + { 184475, true }, + { 184486, true }, + { 184507, true }, + { 184529, true }, + { 184541, true }, + { 184566, true }, + { 184574, true }, + { 184595, true }, + { 184616, true }, + { 184637, true }, + { 184655, true }, + { 184671, true }, + { 184683, true }, + { 184698, true }, + { 184710, true }, + { 184728, true }, + { 184741, true }, + { 184751, true }, + { 184763, true }, + { 184777, true }, + { 184803, false }, + { 184832, true }, { 184843, true }, - { 184864, true }, - { 184882, true }, - { 184898, true }, - { 184910, true }, - { 184925, true }, - { 184937, true }, - { 184955, true }, - { 184968, true }, - { 184978, true }, - { 184990, true }, - { 185004, true }, - { 185030, false }, - { 185059, true }, - { 185070, true }, - { 185094, true }, - { 185102, true }, - { 185117, true }, - { 185132, true }, - { 185161, true }, - { 185174, true }, - { 185192, true }, - { 185211, true }, - { 185222, true }, - { 185233, true }, - { 185242, true }, - { 185256, true }, - { 185272, true }, + { 184867, true }, + { 184875, true }, + { 184890, true }, + { 184905, true }, + { 184934, true }, + { 184947, true }, + { 184965, true }, + { 184984, true }, + { 184995, true }, + { 185006, true }, + { 185015, true }, + { 185029, true }, + { 185045, true }, + { 185068, true }, + { 185095, true }, + { 185113, true }, + { 185140, true }, + { 185166, true }, + { 185183, false }, + { 185194, true }, + { 185204, true }, + { 185219, true }, + { 185230, true }, + { 185253, true }, + { 185271, true }, + { 185284, true }, { 185295, true }, - { 185322, true }, - { 185340, true }, - { 185367, true }, - { 185393, true }, - { 185410, false }, - { 185421, true }, - { 185431, true }, - { 185446, true }, - { 185457, true }, - { 185480, true }, - { 185498, true }, - { 185511, true }, - { 185522, true }, - { 185537, true }, - { 185556, true }, + { 185310, true }, + { 185329, true }, + { 185351, true }, + { 185370, true }, + { 185384, true }, + { 185396, true }, + { 185411, true }, + { 185430, false }, + { 185450, true }, + { 185460, true }, + { 185474, true }, + { 185492, true }, + { 185506, true }, + { 185520, true }, + { 185529, false }, + { 185539, true }, + { 185552, true }, + { 185564, false }, { 185578, true }, - { 185597, true }, - { 185611, true }, - { 185623, true }, - { 185638, true }, - { 185657, false }, - { 185677, true }, - { 185687, true }, - { 185701, true }, - { 185719, true }, - { 185733, true }, - { 185747, true }, - { 185756, false }, - { 185766, true }, - { 185779, true }, - { 185791, false }, - { 185805, true }, - { 185817, true }, - { 185830, true }, + { 185590, true }, + { 185603, true }, + { 185613, true }, + { 185625, true }, + { 185633, true }, + { 185647, true }, + { 185660, true }, + { 185674, true }, + { 185695, true }, + { 185707, true }, + { 185722, true }, + { 185740, true }, + { 185756, true }, + { 185768, true }, + { 185780, true }, + { 185792, true }, + { 185804, true }, + { 185816, true }, + { 185828, true }, { 185840, true }, { 185852, true }, - { 185860, true }, - { 185874, true }, - { 185887, true }, + { 185868, true }, + { 185881, true }, + { 185890, true }, { 185904, true }, - { 185918, true }, - { 185939, true }, - { 185951, true }, - { 185966, true }, - { 185984, true }, - { 186000, true }, - { 186012, true }, - { 186024, true }, - { 186036, true }, - { 186048, true }, - { 186060, true }, + { 185926, true }, + { 185940, true }, + { 185954, true }, + { 185970, true }, + { 185983, true }, + { 185995, true }, + { 186008, true }, + { 186031, true }, + { 186042, true }, + { 186055, true }, + { 186064, true }, { 186072, true }, - { 186084, true }, - { 186096, true }, - { 186112, true }, - { 186125, true }, - { 186134, true }, - { 186148, true }, - { 186170, true }, - { 186184, true }, - { 186198, true }, - { 186214, true }, - { 186227, true }, - { 186239, true }, - { 186252, true }, - { 186275, true }, - { 186286, true }, - { 186299, true }, - { 186308, true }, - { 186316, true }, - { 186331, true }, - { 186341, true }, - { 186359, true }, - { 186373, true }, - { 186387, true }, - { 186397, true }, - { 186408, true }, - { 186417, true }, - { 186430, false }, - { 186446, true }, - { 186457, true }, - { 186472, true }, - { 186481, true }, - { 186493, true }, - { 186509, true }, - { 186521, true }, - { 186532, true }, - { 186556, true }, - { 186571, true }, + { 186087, true }, + { 186097, true }, + { 186115, true }, + { 186129, true }, + { 186143, true }, + { 186153, true }, + { 186164, true }, + { 186173, true }, + { 186186, false }, + { 186202, true }, + { 186213, true }, + { 186228, true }, + { 186237, true }, + { 186249, true }, + { 186265, true }, + { 186277, true }, + { 186288, true }, + { 186312, true }, + { 186327, true }, + { 186336, true }, + { 186343, true }, + { 186358, true }, + { 186374, true }, + { 186385, true }, + { 186400, true }, + { 186415, true }, + { 186427, true }, + { 186445, true }, + { 186467, true }, + { 186486, true }, + { 186505, true }, + { 186522, true }, + { 186544, true }, + { 186563, true }, { 186580, true }, - { 186587, true }, - { 186602, true }, - { 186618, true }, - { 186629, true }, - { 186644, true }, - { 186659, true }, - { 186671, true }, - { 186689, true }, - { 186711, true }, - { 186730, true }, - { 186749, true }, - { 186766, true }, + { 186598, true }, + { 186615, true }, + { 186633, true }, + { 186655, true }, + { 186672, true }, + { 186690, true }, + { 186707, true }, + { 186721, true }, + { 186738, true }, + { 186754, true }, + { 186771, true }, { 186788, true }, - { 186807, true }, + { 186809, true }, { 186824, true }, - { 186842, true }, - { 186859, true }, - { 186877, true }, + { 186849, true }, + { 186873, true }, + { 186882, true }, { 186899, true }, - { 186916, true }, - { 186934, true }, - { 186951, true }, - { 186965, true }, - { 186982, true }, - { 186998, true }, - { 187015, true }, - { 187032, true }, - { 187053, true }, - { 187068, true }, - { 187093, true }, - { 187117, true }, - { 187126, true }, + { 186912, true }, + { 186923, true }, + { 186936, true }, + { 186949, true }, + { 186987, true }, + { 186999, true }, + { 187009, true }, + { 187024, true }, + { 187035, true }, + { 187055, true }, + { 187077, true }, + { 187097, true }, + { 187125, true }, + { 187134, true }, { 187143, true }, - { 187156, true }, - { 187167, true }, + { 187168, true }, { 187180, true }, - { 187193, true }, - { 187231, true }, - { 187243, true }, - { 187253, true }, - { 187268, true }, - { 187279, true }, - { 187299, true }, - { 187321, true }, - { 187341, true }, + { 187198, true }, + { 187216, true }, + { 187235, true }, + { 187251, true }, + { 187262, true }, + { 187278, true }, + { 187298, true }, + { 187319, true }, + { 187332, true }, + { 187350, true }, { 187369, true }, - { 187378, true }, - { 187387, true }, - { 187412, true }, - { 187424, true }, - { 187442, true }, - { 187460, true }, - { 187479, true }, - { 187495, true }, - { 187506, true }, - { 187522, true }, - { 187542, true }, - { 187563, true }, - { 187576, true }, + { 187378, false }, + { 187392, true }, + { 187403, true }, + { 187416, true }, + { 187430, true }, + { 187445, true }, + { 187456, true }, + { 187472, true }, + { 187485, true }, + { 187494, true }, + { 187508, true }, + { 187523, true }, + { 187536, true }, + { 187550, true }, + { 187558, true }, + { 187569, true }, + { 187582, true }, { 187594, true }, - { 187613, true }, - { 187622, false }, - { 187636, true }, - { 187647, true }, - { 187660, true }, - { 187674, true }, - { 187689, true }, - { 187700, true }, - { 187716, true }, - { 187729, true }, - { 187738, true }, - { 187752, true }, - { 187767, true }, - { 187780, true }, - { 187794, true }, - { 187802, true }, - { 187813, true }, - { 187826, true }, - { 187838, true }, - { 187851, true }, - { 187861, true }, - { 187884, true }, - { 187898, true }, - { 187912, true }, - { 187926, true }, - { 187938, true }, - { 187947, true }, + { 187607, true }, + { 187619, true }, + { 187629, true }, + { 187652, true }, + { 187666, true }, + { 187680, true }, + { 187694, true }, + { 187706, true }, + { 187715, true }, + { 187730, true }, + { 187741, true }, + { 187754, true }, + { 187765, true }, + { 187778, true }, + { 187796, true }, + { 187810, true }, + { 187829, true }, + { 187845, true }, + { 187863, true }, + { 187876, true }, + { 187888, true }, + { 187903, true }, + { 187921, true }, + { 187937, true }, + { 187949, true }, { 187962, true }, - { 187973, true }, - { 187986, true }, - { 187997, true }, - { 188010, true }, - { 188028, true }, - { 188042, true }, - { 188061, true }, - { 188077, true }, - { 188095, true }, - { 188108, true }, - { 188120, true }, - { 188135, true }, - { 188153, true }, - { 188169, true }, - { 188181, true }, - { 188194, true }, - { 188206, true }, - { 188221, true }, - { 188231, true }, - { 188241, true }, - { 188255, true }, - { 188270, true }, - { 188287, true }, - { 188298, true }, - { 188312, true }, - { 188323, true }, - { 188337, true }, - { 188349, true }, - { 188360, true }, - { 188374, true }, - { 188388, true }, - { 188400, true }, - { 188427, true }, + { 187974, true }, + { 187989, true }, + { 187999, true }, + { 188009, true }, + { 188023, true }, + { 188038, true }, + { 188055, true }, + { 188066, true }, + { 188080, true }, + { 188091, true }, + { 188105, true }, + { 188117, true }, + { 188128, true }, + { 188142, true }, + { 188156, true }, + { 188168, true }, + { 188195, true }, + { 188209, true }, + { 188217, true }, + { 188239, true }, + { 188253, true }, + { 188267, true }, + { 188281, true }, + { 188292, true }, + { 188306, true }, + { 188325, true }, + { 188344, true }, + { 188363, true }, + { 188382, true }, + { 188401, true }, + { 188421, true }, { 188441, true }, - { 188449, true }, - { 188471, true }, - { 188485, true }, + { 188461, true }, + { 188481, true }, { 188499, true }, - { 188513, true }, - { 188524, true }, - { 188538, true }, - { 188557, true }, - { 188576, true }, - { 188595, true }, - { 188614, true }, - { 188633, true }, - { 188653, true }, - { 188673, true }, - { 188693, true }, - { 188713, true }, - { 188731, true }, - { 188749, true }, - { 188768, true }, - { 188787, true }, - { 188806, true }, + { 188517, true }, + { 188536, true }, + { 188555, true }, + { 188574, true }, + { 188593, true }, + { 188607, true }, + { 188620, true }, + { 188632, true }, + { 188644, true }, + { 188655, true }, + { 188668, false }, + { 188690, true }, + { 188705, true }, + { 188717, true }, + { 188728, true }, + { 188742, true }, + { 188767, true }, + { 188776, true }, + { 188799, true }, + { 188811, true }, { 188825, true }, - { 188839, true }, - { 188852, true }, - { 188864, true }, - { 188876, true }, - { 188887, true }, - { 188900, false }, - { 188922, true }, - { 188937, true }, - { 188949, true }, - { 188960, true }, - { 188974, true }, - { 188999, true }, - { 189008, true }, - { 189031, true }, - { 189043, true }, - { 189057, true }, - { 189069, true }, - { 189086, true }, - { 189099, true }, - { 189114, true }, - { 189130, true }, - { 189148, true }, - { 189161, true }, - { 189174, true }, - { 189198, true }, - { 189221, true }, - { 189247, true }, - { 189259, true }, - { 189273, true }, - { 189288, true }, - { 189304, true }, - { 189317, true }, + { 188837, true }, + { 188854, true }, + { 188867, true }, + { 188882, true }, + { 188898, true }, + { 188916, true }, + { 188929, true }, + { 188942, true }, + { 188965, true }, + { 188991, true }, + { 189003, true }, + { 189017, true }, + { 189032, true }, + { 189048, true }, + { 189061, true }, + { 189074, true }, + { 189085, true }, + { 189095, true }, + { 189109, true }, + { 189124, true }, + { 189133, true }, + { 189152, true }, + { 189165, true }, + { 189181, true }, + { 189200, true }, + { 189214, true }, + { 189229, true }, + { 189240, true }, + { 189252, true }, + { 189262, true }, + { 189274, true }, + { 189289, true }, + { 189306, true }, { 189330, true }, - { 189341, true }, - { 189351, true }, - { 189365, true }, - { 189380, true }, - { 189389, true }, - { 189408, true }, - { 189421, true }, - { 189437, true }, - { 189456, true }, - { 189470, true }, - { 189485, true }, - { 189496, true }, - { 189508, true }, - { 189518, true }, - { 189530, true }, - { 189545, true }, - { 189562, true }, - { 189586, true }, - { 189617, true }, - { 189632, true }, - { 189650, true }, - { 189671, true }, - { 189685, true }, - { 189702, true }, - { 189720, true }, - { 189740, true }, + { 189361, true }, + { 189376, true }, + { 189394, true }, + { 189415, true }, + { 189429, true }, + { 189446, true }, + { 189464, true }, + { 189484, true }, + { 189494, true }, + { 189506, true }, + { 189516, true }, + { 189527, true }, + { 189544, true }, + { 189567, true }, + { 189580, true }, + { 189596, true }, + { 189611, true }, + { 189624, true }, + { 189637, true }, + { 189649, true }, + { 189657, true }, + { 189675, true }, + { 189706, true }, + { 189724, true }, + { 189735, true }, { 189750, true }, - { 189762, true }, - { 189772, true }, - { 189783, true }, - { 189800, true }, - { 189823, true }, - { 189836, true }, - { 189852, true }, - { 189867, true }, - { 189880, true }, - { 189893, true }, - { 189905, true }, - { 189913, true }, - { 189931, true }, - { 189962, true }, - { 189980, true }, - { 189991, true }, - { 190006, true }, - { 190023, true }, - { 190038, true }, - { 190051, true }, - { 190063, true }, - { 190078, true }, - { 190094, true }, - { 190114, true }, - { 190129, true }, - { 190145, true }, - { 190158, true }, + { 189767, true }, + { 189782, true }, + { 189795, true }, + { 189807, true }, + { 189822, true }, + { 189838, true }, + { 189858, true }, + { 189873, true }, + { 189889, true }, + { 189902, true }, + { 189916, true }, + { 189928, true }, + { 189936, true }, + { 189952, true }, + { 189965, true }, + { 189986, true }, + { 190005, true }, + { 190015, true }, + { 190029, true }, + { 190039, true }, + { 190059, true }, + { 190068, true }, + { 190077, true }, + { 190091, true }, + { 190099, true }, + { 190112, true }, + { 190122, true }, + { 190132, true }, + { 190143, true }, + { 190152, true }, + { 190160, true }, { 190172, true }, - { 190184, true }, - { 190192, true }, - { 190208, true }, - { 190221, true }, - { 190242, true }, - { 190261, true }, - { 190271, true }, - { 190285, true }, - { 190295, true }, - { 190315, true }, - { 190324, true }, - { 190333, true }, - { 190347, true }, - { 190355, true }, - { 190368, true }, - { 190378, true }, - { 190388, true }, - { 190399, true }, - { 190408, true }, - { 190416, true }, - { 190428, true }, - { 190441, true }, - { 190460, true }, - { 190470, true }, - { 190479, true }, - { 190495, true }, - { 190506, true }, - { 190519, true }, - { 190526, true }, - { 190546, true }, - { 190562, true }, - { 190573, true }, - { 190585, true }, - { 190597, true }, - { 190620, true }, - { 190629, true }, - { 190649, true }, - { 190657, true }, - { 190667, true }, + { 190185, true }, + { 190204, true }, + { 190214, true }, + { 190223, true }, + { 190239, true }, + { 190250, true }, + { 190263, true }, + { 190270, true }, + { 190290, true }, + { 190306, true }, + { 190317, true }, + { 190329, true }, + { 190341, true }, + { 190364, true }, + { 190373, true }, + { 190393, true }, + { 190401, true }, + { 190411, true }, + { 190432, true }, + { 190444, true }, + { 190453, true }, + { 190461, true }, + { 190471, true }, + { 190482, true }, + { 190493, true }, + { 190500, true }, + { 190510, true }, + { 190521, true }, + { 190528, true }, + { 190538, true }, + { 190547, true }, + { 190558, true }, + { 190570, true }, + { 190578, true }, + { 190584, true }, + { 190592, true }, + { 190600, true }, + { 190610, true }, + { 190626, true }, + { 190638, true }, + { 190668, true }, { 190688, true }, - { 190700, true }, - { 190709, true }, - { 190717, true }, - { 190727, true }, + { 190702, false }, + { 190720, false }, { 190736, true }, - { 190747, true }, - { 190758, true }, - { 190765, true }, - { 190775, true }, - { 190786, true }, - { 190793, true }, + { 190752, true }, + { 190767, true }, + { 190787, true }, { 190803, true }, - { 190812, true }, - { 190823, true }, - { 190835, true }, - { 190843, true }, - { 190849, true }, - { 190857, true }, - { 190865, true }, - { 190875, true }, - { 190891, true }, - { 190903, true }, - { 190933, true }, - { 190953, true }, - { 190967, false }, - { 190985, false }, - { 191001, true }, - { 191017, true }, - { 191032, true }, - { 191052, true }, - { 191068, true }, - { 191083, true }, - { 191104, true }, - { 191118, true }, - { 191137, true }, + { 190818, true }, + { 190839, true }, + { 190853, true }, + { 190872, true }, + { 190883, true }, + { 190893, true }, + { 190911, true }, + { 190922, true }, + { 190936, true }, + { 190948, true }, + { 190962, true }, + { 190976, true }, + { 190991, true }, + { 191002, true }, + { 191015, true }, + { 191035, true }, + { 191051, true }, + { 191064, true }, + { 191084, false }, + { 191100, true }, + { 191114, true }, + { 191133, true }, { 191148, true }, - { 191158, true }, - { 191176, true }, - { 191187, true }, - { 191201, true }, - { 191213, true }, - { 191227, true }, - { 191241, true }, - { 191256, true }, - { 191267, true }, - { 191280, true }, - { 191300, true }, - { 191316, true }, - { 191329, true }, - { 191349, false }, + { 191163, true }, + { 191178, true }, + { 191194, true }, + { 191209, true }, + { 191235, true }, + { 191258, true }, + { 191275, true }, + { 191288, true }, + { 191304, true }, + { 191312, true }, + { 191320, true }, + { 191331, true }, + { 191338, true }, + { 191350, true }, { 191365, true }, - { 191379, true }, + { 191375, true }, + { 191387, true }, { 191398, true }, - { 191413, true }, - { 191428, true }, - { 191443, true }, - { 191459, true }, + { 191415, true }, + { 191426, true }, + { 191446, true }, + { 191466, true }, { 191474, true }, - { 191500, true }, - { 191523, true }, - { 191540, true }, - { 191553, true }, - { 191569, true }, - { 191577, true }, - { 191585, true }, - { 191596, true }, - { 191603, true }, - { 191615, true }, - { 191630, true }, - { 191640, true }, - { 191652, true }, - { 191663, true }, - { 191680, true }, - { 191691, true }, - { 191711, true }, - { 191731, true }, - { 191739, true }, + { 191482, true }, + { 191497, true }, + { 191513, true }, + { 191529, false }, + { 191547, true }, + { 191560, true }, + { 191571, true }, + { 191581, true }, + { 191595, true }, + { 191607, true }, + { 191618, true }, + { 191627, true }, + { 191640, false }, + { 191650, true }, + { 191670, true }, + { 191687, true }, + { 191698, true }, + { 191714, true }, + { 191725, true }, + { 191737, true }, { 191747, true }, - { 191762, true }, - { 191778, true }, - { 191794, false }, - { 191812, true }, - { 191825, true }, - { 191836, true }, - { 191846, true }, - { 191860, true }, - { 191872, true }, - { 191883, true }, - { 191892, true }, - { 191905, false }, - { 191915, true }, + { 191762, false }, + { 191777, true }, + { 191792, true }, + { 191801, true }, + { 191816, true }, + { 191829, true }, + { 191845, true }, + { 191857, true }, + { 191877, true }, + { 191888, true }, + { 191902, true }, + { 191913, true }, { 191935, true }, - { 191952, true }, - { 191963, true }, - { 191979, true }, - { 191990, true }, - { 192002, true }, - { 192012, true }, - { 192027, false }, - { 192042, true }, - { 192057, true }, - { 192066, true }, - { 192081, true }, - { 192094, true }, - { 192110, true }, - { 192122, true }, - { 192142, true }, - { 192153, true }, - { 192167, true }, - { 192178, true }, - { 192200, true }, - { 192221, true }, - { 192234, true }, - { 192253, true }, - { 192265, true }, - { 192278, true }, - { 192287, true }, + { 191956, true }, + { 191969, true }, + { 191988, true }, + { 192000, true }, + { 192013, true }, + { 192022, true }, + { 192037, true }, + { 192051, true }, + { 192064, true }, + { 192076, true }, + { 192093, true }, + { 192117, true }, + { 192138, true }, + { 192151, true }, + { 192169, true }, + { 192190, true }, + { 192207, true }, + { 192224, true }, + { 192245, true }, + { 192257, true }, + { 192271, true }, + { 192289, true }, { 192302, true }, - { 192316, true }, - { 192329, true }, - { 192341, true }, - { 192358, true }, - { 192382, true }, - { 192403, true }, - { 192416, true }, + { 192319, true }, + { 192338, true }, + { 192345, true }, + { 192357, true }, + { 192367, true }, + { 192381, true }, + { 192395, true }, + { 192408, true }, + { 192421, true }, { 192434, true }, - { 192455, true }, - { 192472, true }, - { 192489, true }, - { 192510, true }, - { 192522, true }, - { 192536, true }, - { 192554, true }, - { 192567, true }, - { 192584, true }, - { 192603, true }, - { 192610, true }, - { 192622, true }, - { 192632, true }, - { 192646, true }, - { 192660, true }, + { 192451, true }, + { 192466, true }, + { 192480, true }, + { 192492, true }, + { 192505, true }, + { 192525, true }, + { 192545, true }, + { 192560, true }, + { 192575, true }, + { 192590, true }, + { 192609, true }, + { 192628, true }, + { 192647, true }, + { 192662, true }, { 192673, true }, - { 192686, true }, + { 192686, false }, { 192699, true }, - { 192716, true }, - { 192731, true }, - { 192745, true }, - { 192757, true }, - { 192770, true }, - { 192790, true }, - { 192810, true }, - { 192825, true }, - { 192840, true }, - { 192855, true }, - { 192874, true }, - { 192893, true }, - { 192912, true }, - { 192927, true }, - { 192938, true }, - { 192951, false }, - { 192964, true }, - { 192978, true }, - { 192990, true }, - { 193005, false }, - { 193015, true }, - { 193027, true }, - { 193041, true }, - { 193052, true }, - { 193067, true }, - { 193083, true }, - { 193096, true }, - { 193109, true }, - { 193129, true }, - { 193138, true }, - { 193148, true }, - { 193164, true }, - { 193179, true }, - { 193188, true }, + { 192713, true }, + { 192725, true }, + { 192740, false }, + { 192750, true }, + { 192762, true }, + { 192776, true }, + { 192787, true }, + { 192802, true }, + { 192818, true }, + { 192831, true }, + { 192844, true }, + { 192864, true }, + { 192873, true }, + { 192883, true }, + { 192899, true }, + { 192914, true }, + { 192923, true }, + { 192937, true }, + { 192947, true }, + { 192957, true }, + { 192970, true }, + { 192979, true }, + { 192992, true }, + { 193010, true }, + { 193018, false }, + { 193031, true }, + { 193044, true }, + { 193058, true }, + { 193087, true }, + { 193105, true }, + { 193123, true }, + { 193141, true }, + { 193172, true }, { 193202, true }, - { 193212, true }, - { 193222, true }, - { 193235, true }, - { 193244, true }, - { 193257, true }, - { 193275, true }, - { 193283, false }, - { 193296, true }, - { 193309, true }, - { 193323, true }, - { 193352, true }, - { 193370, true }, - { 193388, true }, + { 193224, true }, + { 193240, true }, + { 193251, false }, + { 193264, true }, + { 193276, true }, + { 193292, true }, + { 193307, true }, + { 193324, true }, + { 193339, false }, + { 193358, true }, + { 193377, true }, + { 193395, true }, { 193406, true }, - { 193437, true }, - { 193467, true }, - { 193489, true }, - { 193505, true }, - { 193516, false }, + { 193414, true }, + { 193424, true }, + { 193434, true }, + { 193444, true }, + { 193455, true }, + { 193470, true }, + { 193480, true }, + { 193490, true }, + { 193502, true }, + { 193518, true }, { 193529, true }, - { 193541, true }, - { 193557, true }, - { 193572, true }, - { 193589, true }, - { 193604, false }, + { 193546, true }, + { 193554, true }, + { 193567, true }, + { 193575, true }, + { 193588, true }, + { 193602, true }, + { 193612, true }, { 193623, true }, - { 193642, true }, - { 193660, true }, - { 193671, true }, - { 193679, true }, - { 193689, true }, - { 193699, true }, - { 193709, true }, - { 193720, true }, - { 193735, true }, - { 193745, true }, - { 193755, true }, - { 193767, true }, - { 193783, true }, - { 193794, true }, - { 193811, true }, - { 193819, true }, - { 193832, true }, - { 193840, true }, - { 193853, true }, - { 193867, true }, - { 193877, true }, - { 193888, true }, - { 193898, false }, - { 193913, true }, - { 193928, true }, - { 193945, true }, - { 193962, true }, - { 193970, true }, - { 193986, true }, - { 194001, true }, - { 194011, true }, - { 194024, true }, - { 194040, true }, - { 194053, true }, - { 194063, true }, - { 194080, true }, - { 194092, true }, - { 194106, true }, - { 194120, true }, - { 194131, true }, - { 194139, true }, - { 194147, true }, - { 194164, true }, - { 194177, true }, - { 194186, true }, - { 194198, true }, - { 194209, true }, + { 193633, false }, + { 193648, true }, + { 193663, true }, + { 193680, true }, + { 193697, true }, + { 193705, true }, + { 193721, true }, + { 193736, true }, + { 193746, true }, + { 193759, true }, + { 193775, true }, + { 193788, true }, + { 193798, true }, + { 193815, true }, + { 193827, true }, + { 193841, true }, + { 193855, true }, + { 193866, true }, + { 193874, true }, + { 193882, true }, + { 193899, true }, + { 193912, true }, + { 193921, true }, + { 193933, true }, + { 193944, true }, + { 193954, true }, + { 193978, true }, + { 193992, true }, + { 194003, true }, + { 194021, true }, + { 194030, true }, + { 194044, true }, + { 194055, true }, + { 194066, true }, + { 194075, true }, + { 194084, true }, + { 194093, true }, + { 194103, true }, + { 194117, true }, + { 194127, true }, + { 194137, true }, + { 194153, true }, + { 194161, true }, + { 194172, true }, + { 194184, true }, + { 194194, true }, + { 194203, true }, + { 194211, true }, { 194219, true }, - { 194243, true }, - { 194257, true }, - { 194268, true }, - { 194286, true }, - { 194295, true }, - { 194309, true }, - { 194320, true }, - { 194331, true }, - { 194340, true }, - { 194349, true }, - { 194358, true }, - { 194368, true }, - { 194382, true }, - { 194392, true }, - { 194402, true }, - { 194418, true }, - { 194426, true }, - { 194437, true }, - { 194449, true }, + { 194227, true }, + { 194235, true }, + { 194248, true }, + { 194259, false }, + { 194267, true }, + { 194285, true }, + { 194292, true }, + { 194303, false }, + { 194323, true }, + { 194330, true }, + { 194345, true }, + { 194360, true }, + { 194371, false }, + { 194387, true }, + { 194403, true }, + { 194419, true }, + { 194434, true }, + { 194447, true }, { 194459, true }, - { 194468, true }, - { 194476, true }, - { 194484, true }, - { 194492, true }, - { 194500, true }, - { 194513, true }, - { 194524, false }, + { 194479, true }, + { 194490, true }, + { 194504, true }, + { 194516, true }, { 194532, true }, - { 194550, true }, - { 194557, true }, - { 194568, false }, - { 194588, true }, - { 194595, true }, - { 194610, true }, - { 194621, false }, - { 194637, true }, + { 194551, true }, + { 194566, true }, + { 194581, true }, + { 194591, true }, + { 194604, true }, + { 194622, true }, + { 194636, true }, { 194653, true }, - { 194669, true }, - { 194684, true }, - { 194697, true }, - { 194709, true }, - { 194729, true }, - { 194740, true }, + { 194672, true }, + { 194688, true }, + { 194700, true }, + { 194719, true }, + { 194742, true }, { 194754, true }, { 194766, true }, - { 194782, true }, + { 194779, true }, { 194801, true }, - { 194816, true }, - { 194831, true }, - { 194841, true }, - { 194854, true }, - { 194872, true }, - { 194886, true }, - { 194903, true }, - { 194922, true }, - { 194938, true }, - { 194950, true }, - { 194969, true }, - { 194992, true }, - { 195004, true }, - { 195016, true }, - { 195029, true }, - { 195051, true }, - { 195065, true }, - { 195076, true }, - { 195086, true }, - { 195098, true }, - { 195109, true }, - { 195126, true }, - { 195141, true }, - { 195150, true }, - { 195159, true }, - { 195174, true }, - { 195190, true }, + { 194815, true }, + { 194826, true }, + { 194836, true }, + { 194848, true }, + { 194859, true }, + { 194876, true }, + { 194891, true }, + { 194900, true }, + { 194909, true }, + { 194924, true }, + { 194940, true }, + { 194948, true }, + { 194965, true }, + { 194984, true }, + { 194998, true }, + { 195017, true }, + { 195033, true }, + { 195047, true }, + { 195055, true }, + { 195072, true }, + { 195089, true }, + { 195103, true }, + { 195122, true }, + { 195138, true }, + { 195162, true }, + { 195184, false }, { 195198, true }, - { 195215, true }, - { 195234, true }, - { 195248, true }, - { 195267, true }, - { 195283, true }, - { 195297, true }, - { 195305, true }, - { 195322, true }, - { 195339, true }, - { 195353, true }, - { 195372, true }, - { 195388, true }, - { 195412, true }, - { 195434, false }, - { 195448, true }, - { 195461, false }, - { 195478, true }, - { 195493, true }, - { 195512, true }, - { 195523, true }, - { 195534, true }, - { 195548, true }, - { 195562, true }, - { 195577, true }, - { 195598, true }, - { 195614, true }, - { 195632, true }, - { 195650, true }, - { 195663, true }, - { 195691, true }, - { 195703, true }, - { 195719, true }, - { 195737, true }, - { 195745, true }, - { 195758, true }, - { 195769, true }, - { 195777, true }, - { 195791, true }, - { 195823, true }, - { 195837, true }, - { 195846, true }, - { 195853, true }, - { 195863, false }, - { 195883, true }, - { 195893, true }, - { 195904, true }, - { 195911, true }, - { 195921, true }, - { 195932, true }, - { 195943, true }, - { 195956, true }, - { 195966, false }, - { 195985, true }, - { 195999, false }, - { 196011, false }, - { 196024, true }, - { 196035, false }, - { 196047, false }, - { 196068, true }, - { 196090, true }, - { 196103, true }, - { 196119, true }, - { 196137, true }, - { 196146, true }, - { 196158, true }, - { 196174, true }, - { 196185, false }, - { 196194, true }, - { 196218, true }, - { 196229, false }, - { 196245, true }, - { 196263, true }, - { 196278, true }, - { 196290, true }, - { 196306, true }, - { 196314, true }, - { 196343, true }, - { 196356, true }, - { 196372, true }, - { 196387, true }, - { 196400, true }, - { 196412, true }, - { 196429, true }, - { 196444, true }, - { 196463, true }, - { 196481, true }, - { 196500, true }, - { 196515, true }, - { 196539, true }, - { 196555, true }, - { 196569, true }, - { 196583, true }, + { 195211, false }, + { 195228, true }, + { 195243, true }, + { 195262, true }, + { 195273, true }, + { 195284, true }, + { 195298, true }, + { 195312, true }, + { 195327, true }, + { 195348, true }, + { 195364, true }, + { 195382, true }, + { 195400, true }, + { 195413, true }, + { 195441, true }, + { 195453, true }, + { 195469, true }, + { 195487, true }, + { 195495, true }, + { 195508, true }, + { 195519, true }, + { 195527, true }, + { 195541, true }, + { 195573, true }, + { 195587, true }, + { 195596, true }, + { 195603, true }, + { 195617, true }, + { 195627, false }, + { 195647, true }, + { 195657, true }, + { 195668, true }, + { 195675, true }, + { 195685, true }, + { 195696, true }, + { 195707, true }, + { 195720, true }, + { 195733, true }, + { 195743, false }, + { 195762, true }, + { 195776, false }, + { 195788, false }, + { 195801, true }, + { 195812, false }, + { 195824, false }, + { 195845, true }, + { 195867, true }, + { 195880, true }, + { 195896, true }, + { 195914, true }, + { 195923, true }, + { 195935, true }, + { 195951, true }, + { 195962, false }, + { 195971, true }, + { 195995, true }, + { 196006, false }, + { 196022, true }, + { 196040, true }, + { 196055, true }, + { 196067, true }, + { 196083, true }, + { 196091, true }, + { 196120, true }, + { 196133, true }, + { 196149, true }, + { 196164, true }, + { 196177, true }, + { 196189, true }, + { 196206, true }, + { 196221, true }, + { 196240, true }, + { 196258, true }, + { 196277, true }, + { 196292, true }, + { 196316, true }, + { 196332, true }, + { 196346, true }, + { 196360, true }, + { 196378, true }, + { 196388, false }, + { 196417, true }, + { 196431, true }, + { 196455, true }, + { 196469, true }, + { 196488, true }, + { 196501, true }, + { 196514, true }, + { 196528, true }, + { 196543, true }, + { 196557, true }, + { 196570, true }, + { 196581, true }, { 196601, true }, - { 196611, false }, - { 196640, true }, - { 196654, true }, - { 196678, true }, - { 196692, true }, - { 196711, true }, - { 196724, true }, - { 196737, true }, - { 196751, true }, - { 196766, true }, - { 196780, true }, - { 196793, true }, - { 196804, true }, - { 196824, true }, - { 196839, true }, + { 196616, true }, + { 196627, true }, + { 196645, true }, + { 196655, true }, + { 196663, true }, + { 196676, true }, + { 196695, true }, + { 196715, false }, + { 196729, true }, + { 196738, true }, + { 196747, true }, + { 196758, true }, + { 196774, true }, + { 196791, true }, + { 196799, true }, + { 196808, true }, + { 196816, true }, + { 196838, true }, { 196850, true }, - { 196868, true }, - { 196878, true }, - { 196886, true }, - { 196899, true }, - { 196918, true }, - { 196938, false }, + { 196862, true }, + { 196874, true }, + { 196894, true }, + { 196909, true }, + { 196929, true }, { 196952, true }, - { 196961, true }, - { 196970, true }, - { 196981, true }, - { 196997, true }, - { 197014, true }, - { 197022, true }, - { 197031, true }, - { 197039, true }, - { 197061, true }, - { 197073, true }, + { 196971, true }, + { 196990, true }, + { 197009, true }, + { 197028, true }, + { 197047, true }, + { 197066, true }, { 197085, true }, - { 197097, true }, - { 197117, true }, - { 197132, true }, - { 197152, true }, - { 197175, true }, - { 197194, true }, + { 197104, true }, + { 197121, true }, + { 197139, true }, + { 197156, true }, + { 197180, true }, + { 197195, true }, { 197213, true }, - { 197232, true }, - { 197251, true }, - { 197270, true }, - { 197289, true }, - { 197308, true }, - { 197327, true }, - { 197344, true }, - { 197362, true }, - { 197379, true }, + { 197228, true }, + { 197241, false }, + { 197255, true }, + { 197279, true }, + { 197296, true }, + { 197314, true }, + { 197323, true }, + { 197339, true }, + { 197357, true }, + { 197374, true }, + { 197390, true }, { 197403, true }, - { 197418, true }, - { 197436, true }, - { 197451, true }, - { 197464, false }, - { 197478, true }, + { 197416, true }, + { 197433, true }, + { 197446, true }, + { 197463, true }, + { 197484, true }, { 197502, true }, - { 197519, true }, - { 197537, true }, - { 197546, true }, - { 197562, true }, - { 197580, true }, - { 197597, true }, - { 197613, true }, - { 197626, true }, - { 197639, true }, + { 197517, true }, + { 197534, true }, + { 197553, true }, + { 197570, true }, + { 197582, true }, + { 197593, true }, + { 197616, true }, + { 197624, true }, + { 197637, true }, { 197656, true }, - { 197669, true }, - { 197686, true }, - { 197707, true }, - { 197725, true }, - { 197740, true }, - { 197757, true }, - { 197776, true }, - { 197793, true }, - { 197805, true }, - { 197816, true }, - { 197839, true }, - { 197847, true }, - { 197860, true }, - { 197879, true }, + { 197672, true }, + { 197688, true }, + { 197702, true }, + { 197715, true }, + { 197728, true }, + { 197741, true }, + { 197751, true }, + { 197764, true }, + { 197775, true }, + { 197795, true }, + { 197811, true }, + { 197831, true }, + { 197846, true }, + { 197856, true }, + { 197867, true }, + { 197880, false }, { 197895, true }, - { 197911, true }, - { 197925, true }, - { 197938, true }, - { 197951, true }, - { 197964, true }, - { 197974, true }, - { 197987, true }, - { 197998, true }, - { 198018, true }, - { 198034, true }, - { 198054, true }, - { 198069, true }, - { 198079, true }, - { 198090, true }, - { 198103, false }, - { 198118, true }, - { 198133, false }, - { 198143, false }, - { 198153, false }, - { 198163, true }, - { 198179, true }, - { 198191, true }, - { 198199, false }, - { 198208, false }, - { 198219, true }, - { 198233, true }, - { 198245, true }, - { 198253, true }, - { 198262, true }, - { 198270, true }, - { 198283, true }, - { 198303, true }, - { 198324, true }, - { 198340, true }, - { 198357, true }, - { 198376, true }, - { 198387, true }, - { 198404, true }, - { 198425, true }, - { 198439, true }, + { 197910, false }, + { 197920, false }, + { 197930, false }, + { 197940, true }, + { 197956, true }, + { 197968, true }, + { 197976, false }, + { 197985, false }, + { 197996, true }, + { 198010, true }, + { 198022, true }, + { 198030, true }, + { 198039, true }, + { 198047, true }, + { 198060, true }, + { 198080, true }, + { 198101, true }, + { 198117, true }, + { 198134, true }, + { 198153, true }, + { 198164, true }, + { 198181, true }, + { 198202, true }, + { 198216, true }, + { 198226, true }, + { 198237, true }, + { 198246, true }, + { 198255, true }, + { 198278, true }, + { 198291, true }, + { 198302, true }, + { 198312, true }, + { 198319, true }, + { 198341, true }, + { 198351, true }, + { 198364, true }, + { 198383, true }, + { 198400, true }, + { 198423, true }, + { 198431, true }, { 198449, true }, - { 198460, true }, - { 198469, true }, + { 198467, true }, { 198478, true }, - { 198501, true }, - { 198514, true }, - { 198525, true }, - { 198535, true }, - { 198542, true }, - { 198564, true }, - { 198574, true }, - { 198587, true }, - { 198606, true }, - { 198623, true }, - { 198646, true }, - { 198654, true }, - { 198672, true }, - { 198690, true }, - { 198701, true }, - { 198716, true }, - { 198727, false }, - { 198738, true }, - { 198751, true }, - { 198762, true }, - { 198775, true }, - { 198788, true }, - { 198801, true }, - { 198812, true }, - { 198822, true }, - { 198831, true }, - { 198841, true }, - { 198852, true }, - { 198862, true }, - { 198875, true }, - { 198896, true }, - { 198909, true }, - { 198930, true }, - { 198943, true }, - { 198954, true }, - { 198964, true }, - { 198983, true }, - { 199007, true }, - { 199018, true }, - { 199033, true }, - { 199047, true }, - { 199058, true }, - { 199070, true }, + { 198493, true }, + { 198504, false }, + { 198515, true }, + { 198528, true }, + { 198539, true }, + { 198552, true }, + { 198565, true }, + { 198578, true }, + { 198589, true }, + { 198599, true }, + { 198608, true }, + { 198618, true }, + { 198629, true }, + { 198639, true }, + { 198652, true }, + { 198673, true }, + { 198686, true }, + { 198707, true }, + { 198720, true }, + { 198731, true }, + { 198741, true }, + { 198760, true }, + { 198784, true }, + { 198795, true }, + { 198810, true }, + { 198824, true }, + { 198835, true }, + { 198847, true }, + { 198859, true }, + { 198871, true }, + { 198881, true }, + { 198889, true }, + { 198903, true }, + { 198918, true }, + { 198931, true }, + { 198946, false }, + { 198960, true }, + { 198983, false }, + { 198995, true }, + { 199011, true }, + { 199030, true }, + { 199044, true }, + { 199053, true }, + { 199067, true }, { 199082, true }, - { 199094, true }, { 199104, true }, - { 199112, true }, - { 199126, true }, - { 199141, true }, - { 199154, true }, - { 199169, false }, - { 199183, true }, - { 199206, false }, - { 199218, true }, - { 199234, true }, - { 199253, true }, - { 199267, true }, + { 199123, true }, + { 199138, true }, + { 199153, true }, + { 199167, true }, + { 199179, true }, + { 199190, true }, + { 199203, true }, + { 199220, true }, + { 199245, true }, + { 199255, true }, { 199276, true }, - { 199290, true }, - { 199305, true }, - { 199327, true }, - { 199346, true }, - { 199361, true }, - { 199376, true }, - { 199390, true }, - { 199402, true }, - { 199413, true }, - { 199426, true }, - { 199443, true }, - { 199468, true }, - { 199478, true }, - { 199499, true }, + { 199294, true }, + { 199315, true }, + { 199341, true }, + { 199357, true }, + { 199380, true }, + { 199399, true }, + { 199414, true }, + { 199438, true }, + { 199462, true }, + { 199490, true }, { 199517, true }, - { 199538, true }, - { 199564, true }, - { 199580, true }, - { 199603, true }, + { 199531, true }, + { 199540, true }, + { 199551, true }, + { 199565, true }, + { 199576, true }, + { 199587, false }, + { 199611, true }, { 199622, true }, - { 199637, true }, - { 199661, true }, - { 199685, true }, - { 199713, true }, - { 199740, true }, - { 199754, true }, - { 199763, true }, - { 199774, true }, - { 199788, true }, - { 199799, true }, - { 199810, false }, - { 199834, true }, - { 199845, true }, - { 199857, true }, - { 199871, true }, - { 199882, true }, - { 199892, true }, - { 199906, true }, + { 199634, true }, + { 199648, true }, + { 199659, true }, + { 199669, true }, + { 199683, true }, + { 199691, true }, + { 199698, true }, + { 199709, true }, + { 199719, true }, + { 199730, true }, + { 199741, true }, + { 199751, true }, + { 199759, true }, + { 199770, true }, + { 199779, true }, + { 199794, true }, + { 199809, true }, + { 199822, false }, + { 199833, true }, + { 199842, true }, + { 199853, true }, + { 199864, true }, + { 199875, true }, + { 199889, true }, + { 199898, true }, { 199914, true }, - { 199921, true }, - { 199932, true }, - { 199942, true }, - { 199953, true }, - { 199964, true }, - { 199974, true }, - { 199982, true }, - { 199993, true }, - { 200002, true }, - { 200017, true }, - { 200032, true }, - { 200045, false }, - { 200056, true }, - { 200065, true }, - { 200076, true }, - { 200087, true }, - { 200098, true }, - { 200112, true }, - { 200121, true }, - { 200137, true }, - { 200145, true }, - { 200157, true }, - { 200169, true }, - { 200185, true }, - { 200193, true }, - { 200203, true }, - { 200222, true }, - { 200230, true }, - { 200243, true }, - { 200256, true }, - { 200273, true }, - { 200284, true }, - { 200296, true }, - { 200305, true }, - { 200318, true }, + { 199922, true }, + { 199934, true }, + { 199946, true }, + { 199962, true }, + { 199970, true }, + { 199980, true }, + { 199999, true }, + { 200007, true }, + { 200020, true }, + { 200033, true }, + { 200050, true }, + { 200061, true }, + { 200073, true }, + { 200082, true }, + { 200095, true }, + { 200104, true }, + { 200123, true }, + { 200142, true }, + { 200172, true }, + { 200202, true }, + { 200218, true }, + { 200233, true }, + { 200246, true }, + { 200259, true }, + { 200276, true }, + { 200288, true }, + { 200304, true }, + { 200316, true }, { 200327, true }, - { 200346, true }, - { 200365, true }, + { 200335, true }, + { 200344, true }, + { 200355, true }, + { 200363, true }, + { 200381, true }, { 200395, true }, - { 200425, true }, - { 200441, true }, - { 200456, true }, - { 200469, true }, - { 200482, true }, - { 200499, true }, + { 200414, false }, + { 200423, true }, + { 200433, true }, + { 200455, true }, + { 200470, true }, + { 200483, true }, + { 200497, true }, { 200511, true }, - { 200527, true }, - { 200539, true }, - { 200550, true }, - { 200558, true }, - { 200567, true }, - { 200578, true }, - { 200586, true }, - { 200604, true }, - { 200618, true }, - { 200637, false }, - { 200646, true }, - { 200656, true }, - { 200678, true }, - { 200693, true }, - { 200706, true }, - { 200720, true }, - { 200734, true }, - { 200742, true }, - { 200754, true }, - { 200765, true }, - { 200776, true }, - { 200788, true }, - { 200806, true }, - { 200819, true }, - { 200832, true }, - { 200844, true }, - { 200854, true }, - { 200864, true }, - { 200874, true }, - { 200884, true }, - { 200893, true }, - { 200904, true }, - { 200915, false }, - { 200925, false }, - { 200941, true }, - { 200952, true }, - { 200966, true }, - { 200978, true }, - { 200991, true }, - { 201004, true }, - { 201014, true }, - { 201028, true }, - { 201051, true }, - { 201063, true }, - { 201072, true }, - { 201108, true }, + { 200519, true }, + { 200531, true }, + { 200542, true }, + { 200553, true }, + { 200565, true }, + { 200583, true }, + { 200596, true }, + { 200609, true }, + { 200621, true }, + { 200631, true }, + { 200641, true }, + { 200651, true }, + { 200661, true }, + { 200670, true }, + { 200681, true }, + { 200692, false }, + { 200702, false }, + { 200718, true }, + { 200729, true }, + { 200743, true }, + { 200755, true }, + { 200768, true }, + { 200781, true }, + { 200791, true }, + { 200805, true }, + { 200828, true }, + { 200840, true }, + { 200849, true }, + { 200885, true }, + { 200898, true }, + { 200908, true }, + { 200921, true }, + { 200933, true }, + { 200944, true }, + { 200967, false }, + { 200981, true }, + { 200993, true }, + { 201006, true }, + { 201015, true }, + { 201028, false }, + { 201038, true }, + { 201050, true }, + { 201062, true }, + { 201073, true }, + { 201083, true }, + { 201097, true }, + { 201111, true }, { 201121, true }, - { 201131, true }, - { 201144, true }, - { 201156, true }, - { 201167, true }, - { 201190, false }, - { 201204, true }, - { 201216, true }, - { 201229, true }, + { 201130, true }, + { 201140, true }, + { 201152, true }, + { 201163, true }, + { 201173, true }, + { 201188, true }, + { 201200, true }, + { 201212, true }, + { 201224, true }, { 201238, true }, - { 201251, false }, - { 201261, true }, - { 201273, true }, - { 201285, true }, + { 201255, true }, + { 201265, true }, + { 201275, true }, + { 201287, false }, { 201296, true }, - { 201306, true }, - { 201320, true }, - { 201334, true }, - { 201344, true }, - { 201353, true }, - { 201363, true }, + { 201315, true }, + { 201330, true }, + { 201346, true }, + { 201361, true }, { 201375, true }, - { 201386, true }, - { 201396, true }, - { 201411, true }, - { 201423, true }, - { 201435, true }, - { 201447, true }, - { 201461, true }, - { 201478, true }, + { 201387, false }, + { 201399, true }, + { 201412, true }, + { 201430, true }, + { 201445, true }, + { 201460, false }, + { 201476, true }, { 201488, true }, - { 201498, true }, - { 201510, false }, - { 201519, true }, - { 201538, true }, - { 201553, true }, - { 201569, true }, - { 201584, true }, - { 201598, true }, - { 201610, false }, - { 201622, true }, - { 201635, true }, - { 201653, true }, - { 201668, true }, - { 201683, false }, - { 201699, true }, - { 201711, true }, - { 201724, true }, - { 201736, true }, - { 201747, true }, - { 201760, false }, - { 201775, true }, - { 201795, true }, - { 201810, true }, - { 201820, true }, - { 201830, true }, - { 201847, true }, - { 201861, true }, - { 201875, true }, - { 201898, true }, - { 201910, true }, - { 201921, true }, - { 201937, true }, - { 201948, true }, - { 201959, false }, - { 201977, true }, - { 201995, true }, - { 202008, true }, - { 202029, true }, - { 202049, false }, + { 201501, true }, + { 201513, true }, + { 201524, true }, + { 201537, false }, + { 201552, true }, + { 201572, true }, + { 201587, true }, + { 201597, true }, + { 201607, true }, + { 201624, true }, + { 201638, true }, + { 201652, true }, + { 201675, true }, + { 201687, true }, + { 201698, true }, + { 201714, true }, + { 201725, true }, + { 201736, false }, + { 201754, true }, + { 201772, true }, + { 201785, true }, + { 201806, true }, + { 201826, false }, + { 201845, true }, + { 201865, true }, + { 201887, true }, + { 201911, true }, + { 201923, true }, + { 201938, true }, + { 201956, true }, + { 201972, true }, + { 201988, true }, + { 202004, true }, + { 202021, true }, + { 202035, true }, + { 202051, true }, { 202068, true }, - { 202088, true }, - { 202110, true }, - { 202134, true }, - { 202146, true }, - { 202161, true }, - { 202179, true }, - { 202195, true }, - { 202211, true }, - { 202227, true }, - { 202244, true }, - { 202258, true }, - { 202274, true }, + { 202090, true }, + { 202112, true }, + { 202133, false }, + { 202147, true }, + { 202158, true }, + { 202174, true }, + { 202184, true }, + { 202203, true }, + { 202214, true }, + { 202234, true }, + { 202249, true }, + { 202260, true }, + { 202275, true }, { 202291, true }, - { 202313, true }, + { 202306, true }, + { 202321, true }, { 202335, true }, - { 202356, false }, - { 202370, true }, - { 202381, true }, - { 202397, true }, - { 202407, true }, - { 202426, true }, - { 202437, true }, - { 202457, true }, - { 202472, true }, - { 202483, true }, - { 202498, true }, - { 202514, true }, - { 202529, true }, - { 202544, true }, - { 202558, true }, - { 202581, true }, - { 202595, true }, - { 202610, true }, - { 202627, true }, - { 202644, true }, - { 202656, true }, - { 202681, true }, - { 202696, true }, - { 202708, true }, - { 202719, true }, - { 202734, true }, - { 202750, true }, - { 202765, true }, - { 202794, true }, - { 202808, true }, - { 202828, true }, - { 202847, true }, - { 202869, true }, - { 202887, true }, + { 202358, true }, + { 202372, true }, + { 202387, true }, + { 202404, true }, + { 202421, true }, + { 202433, true }, + { 202458, true }, + { 202473, true }, + { 202485, true }, + { 202496, true }, + { 202511, true }, + { 202527, true }, + { 202542, true }, + { 202571, true }, + { 202585, true }, + { 202605, true }, + { 202624, true }, + { 202646, true }, + { 202664, true }, + { 202678, true }, + { 202691, true }, + { 202706, true }, + { 202721, true }, + { 202728, true }, + { 202744, true }, + { 202755, false }, + { 202767, true }, + { 202780, true }, + { 202791, true }, + { 202801, true }, + { 202812, true }, + { 202823, true }, + { 202837, true }, + { 202851, true }, + { 202863, true }, + { 202875, true }, + { 202886, true }, { 202901, true }, - { 202914, true }, - { 202929, true }, + { 202919, true }, + { 202933, true }, { 202944, true }, - { 202951, true }, - { 202967, true }, - { 202978, false }, - { 202990, true }, - { 203003, true }, - { 203014, true }, + { 202957, true }, + { 202975, true }, + { 203004, true }, { 203024, true }, - { 203035, true }, - { 203046, true }, - { 203060, true }, - { 203074, true }, - { 203086, true }, - { 203098, true }, - { 203109, true }, - { 203124, true }, - { 203142, true }, - { 203156, true }, - { 203167, true }, - { 203180, true }, - { 203198, true }, - { 203227, true }, - { 203247, true }, - { 203263, true }, - { 203282, true }, - { 203291, true }, - { 203306, true }, - { 203316, true }, - { 203326, true }, - { 203335, true }, - { 203343, true }, - { 203359, true }, - { 203374, true }, - { 203383, true }, - { 203395, true }, - { 203404, true }, - { 203412, true }, - { 203423, true }, - { 203436, true }, - { 203445, true }, - { 203457, false }, - { 203468, true }, - { 203484, true }, - { 203503, true }, - { 203515, false }, - { 203532, true }, - { 203545, true }, - { 203563, true }, - { 203583, true }, - { 203598, true }, - { 203608, true }, - { 203624, true }, - { 203637, true }, - { 203655, true }, - { 203670, true }, - { 203679, true }, - { 203694, true }, - { 203708, true }, + { 203040, true }, + { 203059, true }, + { 203068, true }, + { 203083, true }, + { 203093, true }, + { 203103, true }, + { 203112, true }, + { 203120, true }, + { 203136, true }, + { 203151, true }, + { 203160, true }, + { 203172, true }, + { 203181, true }, + { 203189, true }, + { 203200, true }, + { 203213, true }, + { 203222, true }, + { 203234, false }, + { 203245, true }, + { 203261, true }, + { 203280, true }, + { 203292, false }, + { 203309, true }, + { 203322, true }, + { 203340, true }, + { 203360, true }, + { 203375, true }, + { 203385, true }, + { 203401, true }, + { 203414, true }, + { 203432, true }, + { 203447, true }, + { 203456, true }, + { 203471, true }, + { 203485, true }, + { 203501, true }, + { 203516, true }, + { 203538, true }, + { 203559, true }, + { 203578, true }, + { 203597, true }, + { 203613, true }, + { 203632, true }, + { 203643, true }, + { 203652, true }, + { 203664, true }, + { 203674, true }, + { 203689, true }, + { 203703, true }, + { 203716, true }, { 203724, true }, - { 203739, true }, - { 203761, true }, - { 203782, true }, - { 203801, true }, - { 203820, true }, - { 203836, true }, - { 203855, true }, - { 203866, true }, - { 203875, true }, - { 203887, true }, - { 203897, true }, - { 203912, true }, - { 203926, true }, - { 203939, true }, + { 203732, true }, + { 203741, true }, + { 203753, true }, + { 203765, true }, + { 203777, true }, + { 203785, true }, + { 203797, true }, + { 203823, true }, + { 203846, false }, + { 203862, true }, + { 203876, true }, + { 203896, true }, + { 203907, true }, + { 203928, true }, { 203947, true }, - { 203955, true }, - { 203964, true }, + { 203961, true }, { 203976, true }, - { 203988, true }, - { 204000, true }, - { 204008, true }, - { 204020, true }, - { 204046, true }, - { 204069, false }, - { 204085, true }, - { 204099, true }, + { 203990, true }, + { 204007, true }, + { 204021, true }, + { 204041, false }, + { 204056, true }, + { 204064, true }, + { 204079, true }, + { 204094, true }, + { 204108, true }, { 204119, true }, - { 204130, true }, - { 204151, true }, - { 204170, true }, + { 204129, true }, + { 204146, true }, + { 204164, true }, { 204184, true }, - { 204199, true }, - { 204213, true }, - { 204230, true }, - { 204244, true }, - { 204264, false }, - { 204279, true }, - { 204287, true }, - { 204302, true }, - { 204317, true }, - { 204331, true }, - { 204342, true }, - { 204352, true }, - { 204369, true }, - { 204387, true }, - { 204407, true }, - { 204431, true }, + { 204208, true }, + { 204215, true }, + { 204226, true }, + { 204237, true }, + { 204250, true }, + { 204266, true }, + { 204278, false }, + { 204293, true }, + { 204309, true }, + { 204322, true }, + { 204330, true }, + { 204340, true }, + { 204353, true }, + { 204368, false }, + { 204377, true }, + { 204391, true }, + { 204406, true }, + { 204416, true }, + { 204428, true }, { 204438, true }, - { 204449, true }, - { 204460, true }, - { 204473, true }, - { 204489, true }, - { 204501, false }, - { 204516, true }, - { 204532, true }, - { 204545, true }, - { 204553, true }, + { 204464, true }, + { 204477, true }, + { 204492, true }, + { 204505, true }, + { 204517, true }, + { 204538, true }, + { 204546, true }, { 204563, true }, - { 204576, true }, - { 204591, false }, - { 204600, true }, - { 204614, true }, - { 204629, true }, - { 204639, true }, - { 204651, true }, - { 204661, true }, + { 204571, true }, + { 204581, true }, + { 204591, true }, + { 204605, true }, + { 204626, true }, + { 204636, true }, + { 204649, true }, + { 204659, false }, + { 204679, true }, { 204687, true }, - { 204700, true }, - { 204715, true }, + { 204698, true }, + { 204706, true }, + { 204713, true }, + { 204720, true }, { 204728, true }, - { 204740, true }, - { 204761, true }, - { 204769, true }, - { 204786, true }, - { 204794, true }, - { 204804, true }, - { 204814, true }, - { 204828, true }, - { 204849, true }, - { 204859, true }, - { 204872, true }, - { 204882, false }, - { 204902, true }, - { 204910, true }, - { 204921, true }, - { 204929, true }, - { 204936, true }, + { 204738, true }, + { 204744, true }, + { 204752, true }, + { 204764, false }, + { 204784, true }, + { 204799, true }, + { 204826, true }, + { 204835, true }, + { 204844, true }, + { 204852, true }, + { 204866, true }, + { 204881, true }, + { 204891, true }, + { 204903, true }, + { 204916, true }, + { 204925, true }, { 204943, true }, - { 204951, true }, - { 204961, true }, - { 204967, true }, - { 204975, true }, - { 204987, false }, - { 205007, true }, - { 205022, true }, - { 205049, true }, - { 205058, true }, - { 205067, true }, - { 205075, true }, - { 205089, true }, - { 205104, true }, - { 205114, true }, - { 205126, true }, - { 205139, true }, - { 205148, true }, - { 205166, true }, - { 205178, true }, - { 205189, true }, - { 205200, true }, - { 205208, true }, - { 205218, true }, - { 205226, true }, - { 205238, true }, - { 205247, true }, - { 205257, false }, - { 205292, true }, - { 205311, true }, - { 205324, true }, - { 205334, true }, - { 205346, true }, - { 205361, true }, - { 205372, true }, - { 205391, true }, - { 205403, true }, + { 204955, true }, + { 204966, true }, + { 204977, true }, + { 204985, true }, + { 204995, true }, + { 205003, true }, + { 205015, true }, + { 205024, true }, + { 205034, false }, + { 205069, true }, + { 205088, true }, + { 205101, true }, + { 205111, true }, + { 205123, true }, + { 205138, true }, + { 205149, true }, + { 205168, true }, + { 205180, true }, + { 205194, true }, + { 205210, true }, + { 205228, true }, + { 205241, true }, + { 205257, true }, + { 205270, true }, + { 205287, true }, + { 205300, true }, + { 205314, true }, + { 205329, true }, + { 205348, true }, + { 205363, true }, + { 205371, true }, + { 205383, true }, + { 205397, true }, { 205417, true }, - { 205433, true }, - { 205451, true }, - { 205464, true }, - { 205480, true }, - { 205493, true }, - { 205510, true }, - { 205523, true }, - { 205537, true }, - { 205552, true }, - { 205571, true }, - { 205586, true }, - { 205594, true }, - { 205606, true }, - { 205620, true }, - { 205640, true }, - { 205652, true }, - { 205671, true }, - { 205697, true }, - { 205719, true }, - { 205737, true }, - { 205754, true }, - { 205771, true }, - { 205780, true }, - { 205791, true }, - { 205803, true }, - { 205821, true }, - { 205845, true }, - { 205861, true }, - { 205873, true }, - { 205886, true }, - { 205902, true }, - { 205915, true }, - { 205935, true }, - { 205966, true }, - { 205980, true }, - { 205997, true }, - { 206015, true }, - { 206034, true }, - { 206050, true }, + { 205429, true }, + { 205448, true }, + { 205474, true }, + { 205496, true }, + { 205514, true }, + { 205531, true }, + { 205548, true }, + { 205557, true }, + { 205568, true }, + { 205580, true }, + { 205598, true }, + { 205622, true }, + { 205638, true }, + { 205650, true }, + { 205663, true }, + { 205679, true }, + { 205692, true }, + { 205712, true }, + { 205743, true }, + { 205757, true }, + { 205774, true }, + { 205792, true }, + { 205811, true }, + { 205827, true }, + { 205850, true }, + { 205869, true }, + { 205883, true }, + { 205899, true }, + { 205927, true }, + { 205940, true }, + { 205952, true }, + { 205969, true }, + { 206000, true }, + { 206030, false }, + { 206046, true }, + { 206062, true }, { 206073, true }, - { 206092, true }, - { 206106, true }, - { 206122, true }, - { 206150, true }, - { 206163, true }, + { 206084, true }, + { 206093, true }, + { 206105, true }, + { 206118, true }, + { 206138, true }, + { 206157, true }, { 206175, true }, - { 206192, true }, - { 206223, true }, - { 206253, false }, - { 206269, true }, - { 206285, true }, - { 206296, true }, - { 206307, true }, - { 206316, true }, - { 206328, true }, - { 206341, true }, - { 206361, true }, - { 206380, true }, - { 206398, true }, + { 206197, true }, + { 206210, true }, + { 206227, true }, + { 206241, true }, + { 206266, true }, + { 206283, true }, + { 206302, true }, + { 206313, true }, + { 206333, true }, + { 206348, true }, + { 206359, true }, + { 206374, true }, + { 206392, true }, + { 206408, true }, { 206420, true }, - { 206433, true }, - { 206450, true }, - { 206464, true }, - { 206489, true }, - { 206506, true }, - { 206525, true }, - { 206536, true }, - { 206556, true }, - { 206571, true }, - { 206582, true }, - { 206597, true }, - { 206615, true }, - { 206631, true }, - { 206643, true }, - { 206653, true }, - { 206670, true }, - { 206688, true }, - { 206700, false }, - { 206714, false }, - { 206721, false }, - { 206753, true }, - { 206766, true }, - { 206785, true }, - { 206799, true }, - { 206813, true }, - { 206826, true }, - { 206843, true }, - { 206855, true }, - { 206869, true }, - { 206885, true }, - { 206897, true }, - { 206912, true }, - { 206923, true }, - { 206937, true }, - { 206948, true }, - { 206959, true }, - { 206973, true }, - { 206985, true }, - { 206994, true }, - { 207001, true }, - { 207012, true }, - { 207020, true }, - { 207027, true }, - { 207034, true }, - { 207042, true }, - { 207052, true }, - { 207060, true }, - { 207068, true }, - { 207081, true }, - { 207096, true }, - { 207106, true }, - { 207116, true }, - { 207123, true }, - { 207130, true }, - { 207137, true }, - { 207149, true }, - { 207163, true }, - { 207172, true }, - { 207191, true }, - { 207200, true }, - { 207216, true }, - { 207228, true }, + { 206430, true }, + { 206447, true }, + { 206465, true }, + { 206477, false }, + { 206491, false }, + { 206498, false }, + { 206530, true }, + { 206543, true }, + { 206562, true }, + { 206576, true }, + { 206590, true }, + { 206603, true }, + { 206620, true }, + { 206632, true }, + { 206646, true }, + { 206662, true }, + { 206674, true }, + { 206689, true }, + { 206700, true }, + { 206714, true }, + { 206725, true }, + { 206736, true }, + { 206750, true }, + { 206762, true }, + { 206771, true }, + { 206778, true }, + { 206789, true }, + { 206797, true }, + { 206804, true }, + { 206811, true }, + { 206819, true }, + { 206829, true }, + { 206837, true }, + { 206845, true }, + { 206858, true }, + { 206873, true }, + { 206883, true }, + { 206893, true }, + { 206900, true }, + { 206907, true }, + { 206914, true }, + { 206926, true }, + { 206940, true }, + { 206949, true }, + { 206968, true }, + { 206977, true }, + { 206993, true }, + { 207005, true }, + { 207017, true }, + { 207029, true }, + { 207040, true }, + { 207054, true }, + { 207066, true }, + { 207077, true }, + { 207087, true }, + { 207098, true }, + { 207113, true }, + { 207121, true }, + { 207140, true }, + { 207155, true }, + { 207173, true }, + { 207192, true }, + { 207204, true }, + { 207229, true }, { 207240, true }, - { 207252, true }, - { 207263, true }, - { 207277, true }, - { 207289, true }, - { 207300, true }, - { 207310, true }, - { 207321, true }, - { 207336, true }, - { 207344, true }, - { 207363, true }, - { 207378, true }, - { 207396, true }, - { 207415, true }, - { 207427, true }, - { 207452, true }, - { 207463, true }, - { 207474, true }, - { 207485, true }, - { 207499, true }, - { 207515, true }, - { 207526, true }, - { 207538, true }, - { 207552, true }, - { 207565, true }, - { 207579, true }, - { 207589, true }, - { 207604, true }, - { 207625, true }, + { 207251, true }, + { 207262, true }, + { 207276, true }, + { 207292, true }, + { 207303, true }, + { 207315, true }, + { 207329, true }, + { 207342, true }, + { 207356, true }, + { 207366, true }, + { 207381, true }, + { 207402, true }, + { 207417, true }, + { 207438, true }, + { 207449, true }, + { 207469, true }, + { 207480, true }, + { 207488, true }, + { 207505, true }, + { 207519, true }, + { 207528, true }, + { 207535, true }, + { 207547, true }, + { 207564, true }, + { 207576, true }, + { 207590, true }, + { 207601, true }, + { 207611, true }, + { 207627, true }, { 207640, true }, - { 207661, true }, { 207672, true }, - { 207692, true }, - { 207703, true }, - { 207711, true }, + { 207685, true }, + { 207699, true }, + { 207715, false }, { 207728, true }, { 207742, true }, - { 207751, true }, - { 207758, true }, - { 207770, true }, - { 207787, true }, + { 207755, true }, + { 207769, true }, + { 207780, true }, + { 207789, true }, { 207799, true }, - { 207813, true }, + { 207806, true }, + { 207815, true }, { 207824, true }, - { 207834, true }, - { 207850, true }, - { 207863, true }, - { 207895, true }, - { 207908, true }, - { 207922, true }, - { 207938, false }, - { 207951, true }, - { 207965, true }, - { 207978, true }, - { 207992, true }, - { 208003, true }, - { 208012, true }, - { 208022, true }, - { 208029, true }, - { 208038, true }, - { 208047, true }, - { 208055, true }, - { 208070, true }, + { 207832, true }, + { 207847, true }, + { 207855, true }, + { 207867, true }, + { 207884, true }, + { 207894, true }, + { 207905, true }, + { 207914, true }, + { 207923, true }, + { 207941, true }, + { 207959, true }, + { 207969, true }, + { 207980, true }, + { 207991, false }, + { 208002, true }, + { 208010, true }, + { 208018, true }, + { 208026, true }, + { 208040, true }, + { 208056, true }, + { 208072, true }, { 208078, true }, - { 208090, true }, - { 208107, true }, - { 208117, true }, - { 208128, true }, - { 208137, true }, - { 208146, true }, - { 208164, true }, - { 208182, true }, - { 208192, true }, - { 208203, true }, - { 208214, false }, - { 208225, true }, - { 208233, true }, - { 208241, true }, - { 208249, true }, - { 208263, true }, - { 208279, true }, - { 208295, true }, - { 208301, true }, - { 208314, true }, - { 208325, true }, - { 208337, true }, - { 208356, true }, - { 208380, true }, - { 208392, true }, - { 208418, true }, - { 208432, true }, - { 208443, true }, - { 208461, true }, - { 208478, true }, - { 208492, true }, - { 208507, true }, - { 208520, true }, - { 208538, true }, - { 208555, true }, - { 208568, true }, - { 208580, true }, - { 208590, false }, - { 208608, true }, - { 208623, true }, - { 208639, true }, - { 208654, true }, - { 208665, true }, - { 208683, true }, - { 208700, true }, - { 208712, true }, - { 208723, true }, - { 208742, true }, - { 208758, true }, - { 208770, true }, - { 208782, true }, + { 208091, true }, + { 208102, true }, + { 208114, true }, + { 208133, true }, + { 208157, true }, + { 208169, true }, + { 208195, true }, + { 208209, true }, + { 208220, true }, + { 208238, true }, + { 208255, true }, + { 208269, true }, + { 208284, true }, + { 208297, true }, + { 208315, true }, + { 208332, true }, + { 208345, true }, + { 208357, true }, + { 208367, false }, + { 208385, true }, + { 208400, true }, + { 208416, true }, + { 208431, true }, + { 208442, true }, + { 208460, true }, + { 208477, true }, + { 208489, true }, + { 208500, true }, + { 208519, true }, + { 208535, true }, + { 208547, true }, + { 208559, true }, + { 208572, true }, + { 208584, true }, + { 208601, true }, + { 208613, true }, + { 208620, true }, + { 208633, true }, + { 208650, true }, + { 208658, true }, + { 208680, true }, + { 208690, true }, + { 208701, true }, + { 208711, true }, + { 208721, true }, + { 208734, true }, + { 208746, false }, + { 208757, true }, + { 208766, true }, + { 208777, true }, { 208795, true }, - { 208807, true }, - { 208824, true }, - { 208836, true }, + { 208814, true }, + { 208830, true }, { 208843, true }, { 208856, true }, - { 208873, true }, - { 208881, true }, - { 208903, true }, - { 208913, true }, - { 208924, true }, - { 208934, true }, - { 208944, true }, - { 208957, true }, - { 208969, false }, - { 208980, true }, - { 208989, true }, - { 209000, true }, - { 209018, true }, - { 209037, true }, - { 209053, true }, - { 209066, true }, - { 209079, true }, - { 209095, true }, - { 209122, true }, - { 209134, true }, + { 208872, true }, + { 208899, true }, + { 208911, true }, + { 208921, true }, + { 208931, true }, + { 208946, true }, + { 208954, true }, + { 208983, true }, + { 209003, true }, + { 209017, true }, + { 209027, true }, + { 209063, true }, + { 209096, true }, + { 209119, true }, + { 209132, true }, { 209144, true }, - { 209154, true }, - { 209169, true }, - { 209177, true }, - { 209206, true }, - { 209226, true }, - { 209240, true }, - { 209250, true }, - { 209286, true }, - { 209319, true }, - { 209342, true }, - { 209355, true }, - { 209367, true }, - { 209379, true }, - { 209399, true }, - { 209409, true }, - { 209418, true }, - { 209435, true }, - { 209448, false }, - { 209471, true }, - { 209487, true }, - { 209501, true }, + { 209156, true }, + { 209176, true }, + { 209186, true }, + { 209195, true }, + { 209212, true }, + { 209225, false }, + { 209248, true }, + { 209264, true }, + { 209278, true }, + { 209295, true }, + { 209320, true }, + { 209347, true }, + { 209371, true }, + { 209386, true }, + { 209398, true }, + { 209407, true }, + { 209416, true }, + { 209423, true }, + { 209432, true }, + { 209444, true }, + { 209453, true }, + { 209461, true }, + { 209469, true }, + { 209482, true }, + { 209493, true }, { 209518, true }, - { 209543, true }, - { 209570, true }, - { 209594, true }, - { 209609, true }, - { 209621, true }, - { 209630, true }, - { 209639, true }, - { 209646, true }, - { 209655, true }, - { 209667, true }, - { 209676, true }, - { 209684, true }, - { 209692, true }, - { 209705, true }, - { 209716, true }, - { 209741, true }, - { 209752, true }, - { 209765, true }, - { 209778, true }, - { 209791, true }, - { 209805, true }, - { 209818, true }, - { 209829, true }, - { 209837, true }, - { 209845, true }, - { 209860, true }, - { 209868, true }, + { 209529, true }, + { 209542, true }, + { 209555, true }, + { 209568, true }, + { 209582, true }, + { 209595, true }, + { 209606, true }, + { 209614, true }, + { 209622, true }, + { 209637, true }, + { 209645, true }, + { 209653, true }, + { 209665, true }, + { 209673, true }, + { 209687, true }, + { 209700, false }, + { 209711, true }, + { 209726, true }, + { 209756, true }, + { 209776, false }, + { 209784, true }, + { 209802, true }, + { 209812, true }, + { 209832, true }, + { 209852, false }, + { 209865, true }, { 209876, true }, - { 209888, true }, - { 209896, true }, - { 209910, true }, - { 209923, false }, - { 209934, true }, - { 209949, true }, - { 209979, true }, - { 209999, false }, - { 210007, true }, - { 210025, true }, - { 210035, true }, - { 210055, true }, - { 210075, false }, - { 210088, true }, + { 209899, true }, + { 209925, true }, + { 209938, true }, + { 209948, true }, + { 209957, true }, + { 209970, true }, + { 209982, true }, + { 209998, true }, + { 210013, false }, + { 210031, true }, + { 210062, true }, + { 210082, true }, { 210099, true }, - { 210122, true }, - { 210148, true }, - { 210161, true }, + { 210116, true }, + { 210134, true }, + { 210143, true }, + { 210156, true }, { 210171, true }, - { 210180, true }, + { 210183, true }, { 210193, true }, - { 210205, true }, - { 210221, true }, - { 210236, false }, - { 210254, true }, + { 210200, true }, + { 210213, true }, + { 210230, true }, + { 210251, true }, + { 210263, true }, { 210285, true }, - { 210305, true }, - { 210322, true }, - { 210339, true }, - { 210357, true }, - { 210366, true }, - { 210379, true }, - { 210394, true }, - { 210406, true }, + { 210294, true }, + { 210306, true }, + { 210318, true }, + { 210332, true }, + { 210346, true }, + { 210358, true }, + { 210370, true }, + { 210385, true }, + { 210403, true }, { 210416, true }, - { 210423, true }, - { 210436, true }, + { 210429, true }, + { 210442, true }, { 210453, true }, - { 210474, true }, - { 210486, true }, - { 210508, true }, - { 210517, true }, - { 210529, true }, - { 210541, true }, - { 210555, true }, - { 210569, true }, - { 210581, true }, - { 210593, true }, - { 210608, true }, - { 210626, true }, - { 210639, true }, - { 210652, true }, - { 210665, true }, - { 210676, true }, - { 210687, true }, - { 210700, true }, - { 210717, true }, + { 210464, true }, + { 210477, true }, + { 210494, true }, + { 210505, true }, + { 210520, true }, + { 210531, true }, + { 210543, true }, + { 210555, false }, + { 210567, true }, + { 210586, true }, + { 210596, true }, + { 210615, true }, + { 210632, true }, + { 210645, false }, + { 210663, true }, + { 210673, false }, + { 210684, true }, + { 210695, true }, + { 210712, true }, { 210728, true }, - { 210743, true }, - { 210754, true }, - { 210766, true }, - { 210778, false }, - { 210790, true }, - { 210809, true }, - { 210819, true }, - { 210838, true }, - { 210855, true }, - { 210868, false }, - { 210886, true }, - { 210896, false }, - { 210907, true }, - { 210918, true }, + { 210745, true }, + { 210762, true }, + { 210781, true }, + { 210792, true }, + { 210814, true }, + { 210824, true }, + { 210839, true }, + { 210849, true }, + { 210864, true }, + { 210881, true }, + { 210892, true }, + { 210910, true }, + { 210921, true }, { 210935, true }, - { 210951, true }, - { 210968, true }, - { 210985, true }, - { 211004, true }, - { 211015, true }, - { 211037, true }, - { 211047, true }, - { 211062, true }, - { 211072, true }, - { 211087, true }, - { 211104, true }, - { 211115, true }, - { 211133, true }, - { 211144, true }, - { 211158, true }, - { 211173, true }, - { 211198, true }, - { 211224, true }, - { 211249, true }, - { 211262, true }, - { 211279, true }, - { 211291, true }, - { 211311, true }, - { 211336, true }, - { 211357, true }, - { 211371, true }, - { 211388, true }, - { 211413, true }, - { 211434, true }, + { 210950, true }, + { 210975, true }, + { 211001, true }, + { 211026, true }, + { 211039, true }, + { 211056, true }, + { 211068, true }, + { 211088, true }, + { 211113, true }, + { 211134, true }, + { 211148, true }, + { 211165, true }, + { 211190, true }, + { 211211, true }, + { 211233, true }, + { 211263, true }, + { 211284, true }, + { 211306, true }, + { 211330, true }, + { 211345, true }, + { 211355, true }, + { 211378, true }, + { 211390, true }, + { 211397, true }, + { 211416, true }, + { 211425, true }, + { 211432, true }, + { 211445, true }, { 211456, true }, - { 211486, true }, + { 211471, true }, + { 211490, true }, { 211507, true }, + { 211520, true }, { 211529, true }, - { 211553, true }, - { 211568, true }, - { 211578, true }, - { 211601, true }, - { 211613, true }, - { 211620, true }, - { 211639, true }, - { 211648, true }, + { 211539, true }, + { 211550, true }, + { 211560, true }, + { 211570, true }, + { 211579, true }, + { 211590, true }, + { 211606, true }, + { 211617, true }, + { 211629, true }, + { 211645, true }, { 211655, true }, - { 211668, true }, - { 211679, true }, - { 211694, true }, - { 211713, true }, - { 211730, true }, - { 211743, true }, - { 211752, true }, - { 211762, true }, - { 211773, true }, - { 211783, true }, - { 211793, true }, - { 211802, true }, - { 211813, true }, - { 211829, true }, - { 211840, true }, + { 211663, true }, + { 211673, true }, + { 211683, true }, + { 211695, true }, + { 211707, true }, + { 211718, true }, + { 211732, true }, + { 211747, true }, + { 211771, true }, + { 211787, true }, + { 211801, true }, + { 211826, true }, + { 211834, true }, { 211852, true }, - { 211868, true }, - { 211878, true }, - { 211886, true }, - { 211896, true }, - { 211906, true }, - { 211918, true }, - { 211930, true }, - { 211941, true }, - { 211955, true }, - { 211969, true }, - { 211984, true }, - { 212008, true }, + { 211865, true }, + { 211876, true }, + { 211891, true }, + { 211910, true }, + { 211931, true }, + { 211945, true }, + { 211956, true }, + { 211971, true }, + { 211986, true }, + { 211998, true }, + { 212009, true }, { 212024, true }, { 212038, true }, - { 212063, true }, - { 212071, true }, - { 212089, true }, + { 212054, true }, + { 212070, true }, + { 212086, true }, { 212102, true }, - { 212113, true }, - { 212128, true }, - { 212147, true }, - { 212168, true }, - { 212182, true }, - { 212193, true }, - { 212208, true }, - { 212223, true }, - { 212235, true }, - { 212246, true }, - { 212261, true }, - { 212275, true }, - { 212291, true }, - { 212307, true }, + { 212120, true }, + { 212132, true }, + { 212150, true }, + { 212164, true }, + { 212176, true }, + { 212188, true }, + { 212205, true }, + { 212219, true }, + { 212234, true }, + { 212248, true }, + { 212262, true }, + { 212273, true }, + { 212290, true }, + { 212300, true }, + { 212311, true }, { 212323, true }, - { 212339, true }, - { 212357, true }, - { 212369, true }, - { 212387, true }, - { 212401, true }, - { 212413, true }, - { 212425, true }, - { 212442, true }, - { 212456, true }, - { 212471, true }, - { 212485, true }, - { 212499, true }, - { 212510, true }, - { 212527, true }, - { 212537, true }, - { 212548, true }, - { 212560, true }, - { 212569, true }, - { 212577, true }, - { 212591, true }, + { 212332, true }, + { 212340, true }, + { 212354, true }, + { 212366, true }, + { 212375, true }, + { 212393, true }, + { 212400, true }, + { 212411, true }, + { 212423, true }, + { 212437, true }, + { 212458, true }, + { 212465, true }, + { 212476, true }, + { 212493, false }, + { 212519, false }, + { 212531, true }, + { 212544, true }, + { 212563, true }, + { 212580, true }, + { 212592, true }, { 212603, true }, - { 212612, true }, - { 212630, true }, - { 212637, true }, - { 212648, true }, - { 212660, true }, - { 212674, true }, - { 212695, true }, - { 212702, true }, - { 212713, true }, - { 212730, false }, - { 212756, false }, - { 212768, true }, - { 212781, true }, - { 212800, true }, - { 212817, true }, - { 212829, true }, - { 212840, true }, - { 212857, true }, - { 212869, true }, - { 212879, true }, - { 212892, true }, - { 212907, true }, + { 212620, true }, + { 212632, true }, + { 212642, true }, + { 212655, true }, + { 212670, true }, + { 212686, true }, + { 212707, true }, + { 212722, true }, + { 212738, true }, + { 212762, true }, + { 212776, true }, + { 212787, true }, + { 212801, true }, + { 212818, true }, + { 212835, true }, + { 212845, true }, + { 212860, true }, + { 212872, true }, + { 212887, true }, + { 212897, true }, + { 212910, true }, { 212923, true }, - { 212944, true }, - { 212959, true }, - { 212975, true }, - { 212999, true }, - { 213013, true }, - { 213024, true }, - { 213038, true }, - { 213055, true }, - { 213072, true }, - { 213082, true }, - { 213097, true }, - { 213109, true }, - { 213124, true }, - { 213134, true }, - { 213147, true }, - { 213160, true }, - { 213173, true }, - { 213186, true }, - { 213200, true }, + { 212936, true }, + { 212949, true }, + { 212963, true }, + { 212983, true }, + { 213005, true }, + { 213019, true }, + { 213051, true }, + { 213062, true }, + { 213076, true }, + { 213091, false }, + { 213104, true }, + { 213119, true }, + { 213130, true }, + { 213150, true }, + { 213166, true }, + { 213185, true }, + { 213199, true }, { 213220, true }, - { 213242, true }, - { 213256, true }, - { 213288, true }, - { 213299, true }, - { 213313, true }, - { 213328, false }, - { 213341, true }, - { 213356, true }, - { 213367, true }, - { 213387, true }, + { 213231, true }, + { 213247, true }, + { 213266, true }, + { 213274, true }, + { 213282, true }, + { 213293, true }, + { 213307, true }, + { 213324, true }, + { 213337, true }, + { 213346, true }, + { 213362, true }, + { 213371, true }, + { 213382, true }, + { 213392, true }, { 213403, true }, - { 213422, true }, + { 213414, true }, + { 213426, true }, { 213436, true }, - { 213457, true }, - { 213468, true }, - { 213484, true }, - { 213503, true }, - { 213511, true }, - { 213519, true }, - { 213530, true }, - { 213544, true }, - { 213561, true }, - { 213574, true }, - { 213583, true }, - { 213599, true }, - { 213608, true }, - { 213619, true }, - { 213629, true }, - { 213640, true }, - { 213651, true }, - { 213663, true }, - { 213673, true }, - { 213683, true }, - { 213697, true }, - { 213708, true }, - { 213719, true }, + { 213446, true }, + { 213460, true }, + { 213471, true }, + { 213482, true }, + { 213492, true }, + { 213506, true }, + { 213516, true }, + { 213527, true }, + { 213539, true }, + { 213546, true }, + { 213558, true }, + { 213569, true }, + { 213591, true }, + { 213605, true }, + { 213613, true }, + { 213632, true }, + { 213653, true }, + { 213668, true }, + { 213690, true }, + { 213699, true }, + { 213711, true }, { 213729, true }, { 213743, true }, - { 213753, true }, - { 213764, true }, - { 213776, true }, - { 213783, true }, - { 213795, true }, + { 213755, true }, + { 213766, true }, + { 213777, true }, + { 213796, true }, { 213806, true }, - { 213828, true }, - { 213842, true }, + { 213815, true }, + { 213827, true }, + { 213843, true }, { 213850, true }, - { 213869, true }, - { 213890, true }, + { 213858, true }, + { 213870, true }, + { 213885, true }, { 213905, true }, - { 213927, true }, - { 213936, true }, - { 213948, true }, - { 213966, true }, - { 213980, true }, - { 213992, true }, - { 214003, true }, + { 213913, true }, + { 213926, true }, + { 213939, true }, + { 213956, true }, + { 213965, true }, + { 213983, true }, + { 213995, true }, { 214014, true }, - { 214033, true }, + { 214028, true }, { 214043, true }, - { 214052, true }, - { 214064, true }, - { 214080, true }, - { 214087, true }, - { 214095, true }, - { 214107, true }, - { 214122, true }, - { 214142, true }, - { 214150, true }, - { 214163, true }, - { 214176, true }, - { 214193, true }, - { 214202, true }, - { 214220, true }, - { 214232, true }, - { 214251, true }, - { 214265, true }, - { 214280, true }, - { 214300, true }, - { 214323, true }, - { 214336, true }, - { 214346, true }, - { 214358, true }, - { 214382, true }, - { 214398, true }, - { 214421, true }, - { 214435, true }, - { 214452, true }, - { 214468, true }, - { 214485, true }, - { 214500, true }, - { 214515, true }, - { 214534, true }, + { 214063, true }, + { 214086, true }, + { 214099, true }, + { 214109, true }, + { 214121, true }, + { 214145, true }, + { 214161, true }, + { 214184, true }, + { 214198, true }, + { 214215, true }, + { 214231, true }, + { 214248, true }, + { 214263, true }, + { 214278, true }, + { 214297, true }, + { 214313, true }, + { 214321, true }, + { 214339, true }, + { 214348, true }, + { 214356, false }, + { 214365, true }, + { 214377, true }, + { 214391, true }, + { 214402, true }, + { 214416, true }, + { 214426, true }, + { 214437, true }, + { 214450, true }, + { 214460, true }, + { 214483, true }, + { 214497, true }, + { 214510, true }, + { 214523, true }, + { 214537, true }, { 214550, true }, - { 214558, true }, - { 214576, true }, - { 214585, true }, - { 214593, false }, - { 214602, true }, - { 214614, true }, - { 214628, true }, - { 214639, true }, - { 214653, true }, - { 214663, true }, - { 214674, true }, - { 214687, true }, - { 214697, true }, - { 214720, true }, - { 214734, true }, - { 214747, true }, - { 214760, true }, - { 214774, true }, - { 214787, true }, - { 214800, true }, - { 214808, true }, - { 214820, true }, - { 214828, true }, - { 214844, true }, - { 214854, false }, - { 214863, true }, - { 214870, true }, - { 214879, true }, - { 214887, true }, - { 214896, true }, - { 214923, false }, - { 214937, true }, - { 214951, true }, - { 214961, true }, + { 214563, true }, + { 214571, true }, + { 214583, true }, + { 214591, true }, + { 214607, true }, + { 214617, false }, + { 214626, true }, + { 214633, true }, + { 214642, true }, + { 214650, true }, + { 214659, true }, + { 214686, false }, + { 214700, true }, + { 214714, true }, + { 214724, true }, + { 214737, true }, + { 214753, true }, + { 214763, true }, + { 214799, true }, + { 214809, true }, + { 214821, true }, + { 214835, true }, + { 214848, true }, + { 214860, true }, + { 214872, true }, + { 214886, true }, + { 214904, false }, + { 214917, true }, + { 214932, true }, + { 214946, true }, + { 214964, true }, { 214974, true }, - { 214990, true }, - { 215000, true }, - { 215036, true }, - { 215046, true }, - { 215058, true }, - { 215072, true }, - { 215085, true }, - { 215097, true }, + { 214985, true }, + { 215003, true }, + { 215015, true }, + { 215028, true }, + { 215042, true }, + { 215056, true }, + { 215066, true }, + { 215079, true }, + { 215089, true }, + { 215100, true }, { 215109, true }, - { 215123, true }, - { 215141, false }, - { 215154, true }, - { 215169, true }, - { 215183, true }, - { 215201, true }, - { 215211, true }, - { 215222, true }, - { 215240, true }, - { 215252, true }, - { 215265, true }, - { 215279, true }, - { 215293, true }, - { 215303, true }, - { 215316, true }, - { 215326, true }, - { 215337, true }, - { 215346, true }, - { 215363, true }, - { 215374, true }, - { 215383, true }, + { 215126, true }, + { 215137, true }, + { 215146, true }, + { 215159, true }, + { 215170, true }, + { 215188, true }, + { 215198, true }, + { 215214, true }, + { 215229, true }, + { 215238, true }, + { 215250, true }, + { 215263, true }, + { 215275, true }, + { 215284, true }, + { 215297, true }, + { 215308, true }, + { 215324, true }, + { 215341, true }, + { 215354, true }, + { 215373, true }, + { 215387, true }, { 215396, true }, - { 215407, true }, - { 215425, true }, - { 215435, true }, - { 215451, true }, - { 215466, true }, - { 215475, true }, - { 215487, true }, - { 215500, true }, - { 215512, true }, - { 215521, true }, - { 215534, true }, - { 215545, true }, - { 215561, true }, - { 215578, true }, - { 215591, true }, - { 215610, true }, - { 215624, true }, - { 215633, true }, - { 215646, true }, - { 215663, false }, - { 215674, true }, - { 215690, true }, - { 215706, true }, - { 215722, false }, - { 215737, false }, - { 215748, true }, - { 215760, false }, - { 215767, true }, - { 215783, true }, - { 215802, true }, + { 215409, true }, + { 215426, false }, + { 215437, true }, + { 215453, true }, + { 215469, true }, + { 215485, false }, + { 215500, false }, + { 215511, true }, + { 215523, false }, + { 215530, true }, + { 215546, true }, + { 215565, true }, + { 215583, true }, + { 215602, true }, + { 215617, true }, + { 215635, true }, + { 215652, true }, + { 215666, true }, + { 215682, true }, + { 215696, true }, + { 215712, true }, + { 215729, true }, + { 215751, true }, + { 215776, true }, + { 215799, true }, { 215820, true }, { 215839, true }, { 215854, true }, - { 215872, true }, - { 215889, true }, - { 215903, true }, - { 215919, true }, - { 215933, true }, - { 215949, true }, + { 215866, false }, + { 215880, true }, + { 215894, true }, + { 215908, true }, + { 215921, true }, + { 215942, true }, + { 215954, true }, { 215966, true }, - { 215988, true }, + { 215990, true }, + { 216003, true }, { 216013, true }, - { 216036, true }, - { 216057, true }, - { 216076, true }, - { 216091, true }, - { 216103, false }, - { 216117, true }, - { 216131, true }, - { 216145, true }, - { 216158, true }, - { 216179, true }, - { 216191, true }, - { 216203, true }, - { 216227, true }, - { 216240, true }, - { 216250, true }, - { 216270, true }, - { 216291, true }, - { 216304, true }, - { 216327, true }, - { 216349, true }, - { 216371, true }, - { 216393, true }, + { 216033, true }, + { 216054, true }, + { 216067, true }, + { 216090, true }, + { 216112, true }, + { 216134, true }, + { 216156, true }, + { 216170, true }, + { 216189, true }, + { 216207, true }, + { 216221, false }, + { 216233, true }, + { 216247, true }, + { 216257, true }, + { 216271, true }, + { 216281, true }, + { 216297, true }, + { 216313, true }, + { 216339, true }, + { 216367, true }, + { 216380, true }, + { 216391, true }, { 216407, true }, - { 216426, true }, - { 216444, true }, - { 216458, false }, - { 216470, true }, - { 216484, true }, - { 216494, true }, - { 216508, true }, - { 216518, true }, - { 216534, true }, - { 216550, true }, - { 216576, true }, - { 216604, true }, - { 216617, true }, - { 216628, true }, - { 216644, true }, - { 216668, true }, - { 216684, true }, - { 216699, true }, - { 216715, true }, - { 216727, true }, - { 216739, true }, - { 216757, true }, - { 216770, true }, + { 216431, true }, + { 216447, true }, + { 216462, true }, + { 216478, true }, + { 216490, true }, + { 216502, true }, + { 216520, true }, + { 216533, true }, + { 216552, true }, + { 216570, true }, + { 216585, true }, + { 216608, true }, + { 216625, true }, + { 216641, true }, + { 216660, true }, + { 216680, true }, + { 216703, true }, + { 216722, true }, + { 216741, true }, + { 216760, true }, + { 216778, true }, { 216789, true }, - { 216807, true }, - { 216822, true }, + { 216799, true }, + { 216810, true }, + { 216825, true }, { 216845, true }, - { 216862, true }, - { 216878, true }, - { 216897, true }, - { 216917, true }, - { 216940, true }, - { 216959, true }, - { 216978, true }, - { 216997, true }, - { 217015, true }, - { 217026, true }, - { 217036, true }, - { 217047, true }, - { 217062, true }, - { 217082, true }, - { 217103, true }, - { 217123, true }, - { 217142, true }, - { 217156, true }, - { 217180, true }, - { 217195, true }, - { 217209, true }, - { 217221, true }, - { 217231, true }, - { 217251, true }, - { 217281, true }, - { 217304, true }, + { 216866, true }, + { 216886, true }, + { 216905, true }, + { 216919, true }, + { 216943, true }, + { 216958, true }, + { 216972, true }, + { 216984, true }, + { 216994, true }, + { 217014, true }, + { 217044, true }, + { 217067, true }, + { 217090, true }, + { 217119, true }, + { 217137, true }, + { 217153, true }, + { 217172, true }, + { 217184, true }, + { 217194, true }, + { 217214, false }, + { 217226, true }, + { 217239, true }, + { 217257, true }, + { 217274, true }, + { 217292, true }, + { 217312, true }, { 217327, true }, - { 217356, true }, - { 217374, true }, - { 217390, true }, - { 217409, true }, - { 217421, true }, - { 217431, true }, - { 217451, false }, - { 217463, true }, + { 217336, true }, + { 217351, true }, + { 217368, true }, + { 217380, true }, + { 217391, true }, + { 217403, true }, + { 217415, true }, + { 217428, true }, + { 217446, true }, + { 217461, true }, { 217476, true }, - { 217494, true }, - { 217511, true }, - { 217529, true }, - { 217549, true }, - { 217564, true }, + { 217492, true }, + { 217504, true }, + { 217518, true }, + { 217530, true }, + { 217550, true }, + { 217561, true }, { 217573, true }, - { 217588, true }, - { 217605, true }, + { 217583, true }, + { 217603, true }, { 217617, true }, - { 217628, true }, - { 217640, true }, - { 217652, true }, - { 217665, true }, + { 217635, true }, + { 217655, true }, + { 217668, true }, { 217683, true }, - { 217698, true }, - { 217713, true }, + { 217699, true }, + { 217714, true }, { 217729, true }, { 217741, true }, - { 217755, true }, - { 217767, true }, - { 217787, true }, - { 217798, true }, + { 217757, true }, + { 217769, true }, + { 217784, true }, + { 217800, true }, { 217810, true }, - { 217820, true }, - { 217840, true }, + { 217817, true }, + { 217826, true }, + { 217841, true }, { 217854, true }, - { 217872, true }, - { 217892, true }, - { 217905, true }, - { 217920, true }, - { 217936, true }, - { 217951, true }, - { 217966, true }, - { 217978, true }, - { 217994, true }, - { 218006, true }, - { 218021, true }, - { 218037, true }, - { 218047, true }, - { 218054, true }, - { 218063, true }, - { 218078, true }, - { 218091, true }, - { 218111, true }, - { 218123, true }, - { 218134, true }, + { 217874, true }, + { 217886, true }, + { 217897, true }, + { 217910, true }, + { 217919, true }, + { 217939, true }, + { 217959, true }, + { 217979, true }, + { 217993, true }, + { 218005, true }, + { 218016, true }, + { 218026, true }, + { 218037, false }, + { 218048, true }, + { 218059, true }, + { 218070, false }, + { 218080, false }, + { 218097, true }, + { 218109, true }, + { 218125, true }, + { 218138, true }, { 218147, true }, - { 218156, true }, - { 218176, true }, - { 218196, true }, - { 218216, true }, - { 218230, true }, - { 218242, true }, - { 218253, true }, - { 218263, true }, - { 218274, false }, - { 218285, true }, - { 218296, true }, - { 218307, false }, - { 218317, false }, - { 218334, true }, - { 218346, true }, - { 218362, true }, - { 218375, true }, - { 218384, true }, - { 218398, true }, - { 218409, true }, - { 218421, true }, - { 218430, true }, + { 218161, true }, + { 218172, true }, + { 218184, true }, + { 218193, true }, + { 218203, true }, + { 218221, true }, + { 218235, true }, + { 218246, true }, + { 218257, true }, + { 218270, true }, + { 218278, true }, + { 218291, true }, + { 218300, true }, + { 218315, true }, + { 218326, true }, + { 218344, true }, + { 218364, true }, + { 218376, true }, + { 218386, true }, + { 218397, true }, + { 218407, true }, { 218440, true }, - { 218458, true }, - { 218472, true }, - { 218483, true }, - { 218494, true }, - { 218507, true }, - { 218515, true }, - { 218528, true }, - { 218537, true }, - { 218552, true }, - { 218563, true }, - { 218581, true }, - { 218601, true }, - { 218613, true }, - { 218623, true }, - { 218634, true }, - { 218644, true }, - { 218677, true }, - { 218689, true }, - { 218703, true }, - { 218717, true }, - { 218732, true }, - { 218745, true }, - { 218759, true }, - { 218773, false }, - { 218793, true }, - { 218810, true }, - { 218823, true }, - { 218837, true }, - { 218852, true }, - { 218868, true }, - { 218887, true }, - { 218905, true }, - { 218921, false }, - { 218938, true }, - { 218950, true }, - { 218958, true }, - { 218971, true }, - { 218984, true }, - { 218998, true }, - { 219011, true }, - { 219024, true }, + { 218452, true }, + { 218466, true }, + { 218480, true }, + { 218495, true }, + { 218508, true }, + { 218522, true }, + { 218536, false }, + { 218556, true }, + { 218573, true }, + { 218586, true }, + { 218600, true }, + { 218615, true }, + { 218631, true }, + { 218650, true }, + { 218668, true }, + { 218684, false }, + { 218701, true }, + { 218713, true }, + { 218721, true }, + { 218734, true }, + { 218747, true }, + { 218761, true }, + { 218774, true }, + { 218787, true }, + { 218803, true }, + { 218817, true }, + { 218830, true }, + { 218843, true }, + { 218856, true }, + { 218869, true }, + { 218882, true }, + { 218897, true }, + { 218910, true }, + { 218924, true }, + { 218937, true }, + { 218951, true }, + { 218964, true }, + { 218977, true }, + { 218990, true }, + { 219003, true }, + { 219015, true }, + { 219028, true }, { 219040, true }, - { 219054, true }, - { 219067, true }, - { 219080, true }, - { 219093, true }, - { 219106, true }, - { 219119, true }, - { 219134, true }, - { 219147, true }, - { 219161, true }, - { 219174, true }, - { 219188, true }, - { 219201, true }, - { 219214, true }, - { 219227, true }, - { 219240, true }, - { 219252, true }, + { 219047, true }, + { 219064, true }, + { 219077, false }, + { 219086, true }, + { 219096, true }, + { 219107, true }, + { 219116, true }, + { 219129, true }, + { 219146, true }, + { 219162, true }, + { 219177, true }, + { 219190, true }, + { 219203, true }, + { 219219, true }, + { 219232, true }, + { 219245, true }, + { 219256, true }, { 219265, true }, - { 219277, true }, - { 219284, true }, - { 219301, true }, - { 219314, false }, - { 219323, true }, + { 219280, true }, + { 219292, true }, + { 219308, true }, { 219333, true }, - { 219344, true }, - { 219353, true }, - { 219366, true }, - { 219383, true }, - { 219399, true }, - { 219414, true }, - { 219427, true }, - { 219440, true }, - { 219456, true }, - { 219469, true }, - { 219482, true }, - { 219493, true }, - { 219502, true }, - { 219517, true }, - { 219529, true }, - { 219545, true }, - { 219570, true }, - { 219594, true }, - { 219615, true }, - { 219632, false }, - { 219645, true }, - { 219658, true }, - { 219669, true }, - { 219686, true }, - { 219697, true }, - { 219716, true }, - { 219734, true }, - { 219747, true }, - { 219757, true }, - { 219778, true }, - { 219791, true }, - { 219805, true }, - { 219818, true }, - { 219827, true }, - { 219835, false }, - { 219845, true }, - { 219859, true }, - { 219871, true }, - { 219889, true }, - { 219903, true }, - { 219921, true }, - { 219942, true }, - { 219962, true }, - { 219985, true }, - { 220002, true }, - { 220016, true }, - { 220032, true }, - { 220045, true }, - { 220065, true }, - { 220079, true }, - { 220089, true }, - { 220101, true }, - { 220121, true }, - { 220134, true }, - { 220143, true }, - { 220163, true }, - { 220197, true }, - { 220214, true }, - { 220244, true }, - { 220255, true }, - { 220266, true }, - { 220278, true }, - { 220289, true }, - { 220308, true }, - { 220321, true }, - { 220333, true }, - { 220345, true }, - { 220360, true }, + { 219357, true }, + { 219378, true }, + { 219395, false }, + { 219408, true }, + { 219421, true }, + { 219432, true }, + { 219449, true }, + { 219460, true }, + { 219479, true }, + { 219497, true }, + { 219510, true }, + { 219520, true }, + { 219541, true }, + { 219554, true }, + { 219568, true }, + { 219581, true }, + { 219590, true }, + { 219598, false }, + { 219608, true }, + { 219622, true }, + { 219634, true }, + { 219652, true }, + { 219666, true }, + { 219684, true }, + { 219705, true }, + { 219725, true }, + { 219748, true }, + { 219765, true }, + { 219779, true }, + { 219795, true }, + { 219808, true }, + { 219828, true }, + { 219842, true }, + { 219852, true }, + { 219864, true }, + { 219884, true }, + { 219897, true }, + { 219906, true }, + { 219926, true }, + { 219960, true }, + { 219977, true }, + { 220007, true }, + { 220018, true }, + { 220029, true }, + { 220041, true }, + { 220052, true }, + { 220071, true }, + { 220084, true }, + { 220096, true }, + { 220108, true }, + { 220123, true }, + { 220136, true }, + { 220152, true }, + { 220171, true }, + { 220186, true }, + { 220200, true }, + { 220215, true }, + { 220232, false }, + { 220247, true }, + { 220267, true }, + { 220287, false }, + { 220296, true }, + { 220305, true }, + { 220316, true }, + { 220328, true }, + { 220342, true }, + { 220355, true }, { 220373, true }, - { 220389, true }, - { 220408, true }, - { 220423, true }, - { 220437, true }, - { 220452, true }, - { 220469, false }, - { 220484, true }, - { 220504, true }, - { 220524, false }, - { 220533, true }, - { 220542, true }, - { 220553, true }, - { 220565, true }, - { 220579, true }, - { 220592, true }, - { 220610, true }, - { 220624, true }, - { 220636, true }, - { 220651, true }, - { 220661, true }, - { 220673, true }, - { 220684, true }, - { 220695, true }, - { 220705, true }, - { 220726, true }, - { 220754, false }, - { 220765, true }, - { 220791, true }, - { 220811, true }, - { 220834, true }, - { 220841, true }, - { 220852, true }, - { 220862, true }, - { 220872, true }, - { 220886, true }, - { 220900, true }, - { 220911, false }, - { 220922, true }, - { 220930, true }, - { 220941, false }, - { 220961, true }, - { 220974, true }, - { 220990, true }, - { 221005, true }, - { 221021, true }, - { 221035, true }, - { 221050, true }, - { 221069, true }, - { 221082, true }, - { 221098, true }, - { 221114, true }, - { 221127, true }, - { 221141, true }, - { 221150, true }, - { 221170, true }, - { 221183, true }, - { 221202, true }, - { 221220, true }, - { 221230, true }, - { 221244, true }, - { 221262, true }, - { 221270, true }, - { 221290, true }, - { 221314, true }, - { 221346, true }, - { 221360, true }, - { 221375, true }, - { 221394, false }, - { 221413, true }, + { 220387, true }, + { 220399, true }, + { 220414, true }, + { 220424, true }, + { 220436, true }, + { 220447, true }, + { 220458, true }, + { 220468, true }, + { 220489, true }, + { 220517, false }, + { 220528, true }, + { 220554, true }, + { 220574, true }, + { 220597, true }, + { 220604, true }, + { 220615, true }, + { 220625, true }, + { 220635, true }, + { 220649, true }, + { 220663, true }, + { 220674, false }, + { 220685, true }, + { 220693, true }, + { 220704, false }, + { 220724, true }, + { 220737, true }, + { 220753, true }, + { 220768, true }, + { 220784, true }, + { 220798, true }, + { 220813, true }, + { 220832, true }, + { 220845, true }, + { 220861, true }, + { 220877, true }, + { 220890, true }, + { 220904, true }, + { 220913, true }, + { 220933, true }, + { 220946, true }, + { 220965, true }, + { 220983, true }, + { 220993, true }, + { 221007, true }, + { 221025, true }, + { 221033, true }, + { 221053, true }, + { 221077, true }, + { 221109, true }, + { 221123, true }, + { 221138, true }, + { 221157, false }, + { 221176, true }, + { 221190, true }, + { 221207, true }, + { 221224, true }, + { 221241, true }, + { 221261, true }, + { 221274, true }, + { 221287, true }, + { 221308, true }, + { 221329, true }, + { 221350, true }, + { 221364, true }, + { 221380, true }, + { 221390, true }, + { 221415, true }, { 221427, true }, - { 221444, true }, - { 221461, true }, - { 221478, true }, - { 221498, true }, - { 221511, true }, - { 221524, true }, - { 221545, true }, - { 221566, true }, - { 221587, true }, - { 221601, true }, - { 221617, true }, - { 221627, true }, - { 221652, true }, - { 221664, true }, - { 221675, true }, - { 221692, true }, - { 221716, true }, - { 221725, true }, - { 221739, true }, + { 221438, true }, + { 221455, true }, + { 221479, true }, + { 221488, true }, + { 221502, true }, + { 221515, true }, + { 221528, true }, + { 221540, true }, + { 221553, true }, + { 221571, true }, + { 221588, true }, + { 221610, true }, + { 221635, true }, + { 221657, true }, + { 221667, true }, + { 221680, true }, + { 221695, true }, + { 221707, true }, + { 221721, true }, + { 221735, true }, { 221752, true }, - { 221765, true }, - { 221777, true }, - { 221790, true }, - { 221808, true }, - { 221825, true }, - { 221847, true }, - { 221872, true }, - { 221894, true }, - { 221904, true }, - { 221917, true }, - { 221932, true }, - { 221944, true }, - { 221958, true }, - { 221972, true }, - { 221989, true }, - { 222009, true }, - { 222025, true }, - { 222043, true }, - { 222058, true }, - { 222069, true }, - { 222086, true }, - { 222101, true }, - { 222114, true }, - { 222129, true }, - { 222137, false }, - { 222150, true }, + { 221772, true }, + { 221788, true }, + { 221806, true }, + { 221821, true }, + { 221832, true }, + { 221849, true }, + { 221864, true }, + { 221877, true }, + { 221892, true }, + { 221900, false }, + { 221913, true }, + { 221925, true }, + { 221940, true }, + { 221954, true }, + { 221968, true }, + { 221977, true }, + { 221986, true }, + { 222002, true }, + { 222018, true }, + { 222035, true }, + { 222049, true }, + { 222059, true }, + { 222073, true }, + { 222091, true }, + { 222108, true }, + { 222127, true }, + { 222144, true }, { 222162, true }, - { 222177, true }, - { 222191, true }, - { 222205, true }, - { 222214, true }, - { 222223, true }, - { 222239, true }, - { 222255, true }, - { 222272, true }, - { 222286, true }, - { 222296, true }, - { 222310, true }, - { 222328, true }, - { 222345, true }, + { 222180, true }, + { 222193, true }, + { 222201, true }, + { 222208, true }, + { 222220, true }, + { 222231, true }, + { 222241, true }, + { 222254, true }, + { 222266, true }, + { 222279, true }, + { 222293, true }, + { 222309, true }, + { 222322, true }, + { 222336, true }, + { 222353, true }, { 222364, true }, - { 222381, true }, - { 222399, true }, - { 222417, true }, - { 222430, true }, - { 222438, true }, - { 222445, true }, - { 222457, true }, - { 222468, true }, - { 222478, true }, + { 222374, true }, + { 222387, true }, + { 222407, true }, + { 222425, true }, + { 222437, true }, + { 222449, true }, + { 222462, true }, + { 222476, true }, { 222491, true }, { 222503, true }, - { 222516, true }, - { 222530, true }, + { 222512, true }, + { 222526, true }, + { 222534, true }, { 222546, true }, - { 222559, true }, - { 222573, true }, - { 222590, true }, - { 222601, true }, + { 222557, true }, + { 222571, true }, + { 222592, true }, { 222611, true }, { 222624, true }, - { 222644, true }, - { 222662, true }, - { 222674, true }, - { 222686, true }, - { 222699, true }, - { 222713, true }, - { 222728, true }, + { 222642, true }, + { 222661, true }, + { 222679, true }, + { 222688, true }, + { 222700, true }, + { 222722, true }, { 222740, true }, - { 222749, true }, - { 222763, true }, - { 222771, true }, - { 222783, true }, - { 222794, true }, - { 222808, true }, - { 222829, true }, - { 222848, true }, - { 222861, true }, - { 222879, true }, - { 222898, true }, - { 222916, true }, - { 222925, true }, - { 222937, true }, - { 222959, true }, - { 222977, true }, - { 222990, true }, + { 222753, true }, + { 222767, true }, + { 222786, true }, + { 222800, true }, + { 222812, true }, + { 222824, true }, + { 222835, false }, + { 222849, true }, + { 222863, false }, + { 222878, true }, + { 222905, true }, + { 222932, true }, + { 222952, true }, + { 222963, true }, + { 222976, true }, + { 222993, true }, { 223004, true }, - { 223023, true }, - { 223037, true }, - { 223049, true }, - { 223061, true }, - { 223072, false }, - { 223086, true }, - { 223100, false }, - { 223115, true }, - { 223142, true }, + { 223015, true }, + { 223029, true }, + { 223050, true }, + { 223066, true }, + { 223077, true }, + { 223096, true }, + { 223112, true }, + { 223130, true }, + { 223146, true }, { 223169, true }, - { 223189, true }, - { 223200, true }, - { 223213, true }, - { 223230, true }, - { 223241, true }, - { 223252, true }, - { 223266, true }, - { 223287, true }, - { 223303, true }, - { 223314, true }, - { 223333, true }, - { 223349, true }, - { 223367, true }, - { 223383, true }, - { 223406, true }, - { 223422, true }, + { 223185, true }, + { 223199, true }, + { 223211, true }, + { 223220, true }, + { 223232, true }, + { 223245, true }, + { 223263, true }, + { 223279, true }, + { 223294, true }, + { 223310, true }, + { 223325, true }, + { 223340, true }, + { 223356, true }, + { 223371, true }, + { 223386, true }, + { 223403, true }, + { 223413, true }, + { 223423, true }, { 223436, true }, - { 223448, true }, - { 223457, true }, - { 223469, true }, - { 223482, true }, - { 223500, true }, - { 223516, true }, - { 223531, true }, - { 223547, true }, - { 223562, true }, - { 223577, true }, - { 223593, true }, - { 223608, true }, - { 223623, true }, - { 223640, true }, - { 223650, true }, - { 223660, true }, - { 223673, true }, - { 223686, true }, - { 223696, true }, - { 223717, true }, - { 223729, false }, - { 223740, true }, - { 223752, true }, - { 223764, true }, - { 223773, false }, - { 223792, true }, - { 223809, true }, - { 223822, true }, - { 223837, true }, - { 223853, true }, - { 223867, false }, - { 223880, false }, - { 223890, true }, - { 223903, true }, - { 223913, true }, - { 223932, true }, - { 223949, true }, - { 223959, true }, - { 223968, true }, - { 223978, true }, - { 223987, false }, - { 223996, false }, + { 223449, true }, + { 223459, true }, + { 223480, true }, + { 223492, false }, + { 223503, true }, + { 223515, true }, + { 223527, true }, + { 223536, false }, + { 223555, true }, + { 223572, true }, + { 223585, true }, + { 223600, true }, + { 223616, true }, + { 223630, false }, + { 223643, false }, + { 223653, true }, + { 223666, true }, + { 223676, true }, + { 223695, true }, + { 223712, true }, + { 223722, true }, + { 223731, true }, + { 223741, true }, + { 223750, false }, + { 223759, false }, + { 223767, true }, + { 223775, true }, + { 223787, true }, + { 223799, false }, + { 223819, true }, + { 223832, true }, + { 223850, true }, + { 223862, false }, + { 223874, true }, + { 223888, true }, + { 223905, true }, + { 223919, true }, + { 223938, true }, + { 223955, true }, + { 223971, true }, + { 223987, true }, { 224004, true }, - { 224012, true }, - { 224024, true }, - { 224036, false }, - { 224056, true }, - { 224069, true }, - { 224087, true }, - { 224099, false }, - { 224111, true }, - { 224125, true }, - { 224142, true }, - { 224156, true }, - { 224175, true }, - { 224192, true }, - { 224208, true }, - { 224224, true }, - { 224241, true }, - { 224260, true }, - { 224276, true }, - { 224295, true }, - { 224313, true }, - { 224330, true }, - { 224354, true }, - { 224374, true }, - { 224397, true }, - { 224423, true }, - { 224436, true }, - { 224450, true }, - { 224464, true }, - { 224477, true }, - { 224498, true }, - { 224512, true }, - { 224522, true }, - { 224538, true }, - { 224551, true }, - { 224573, true }, - { 224588, true }, - { 224617, true }, - { 224628, true }, - { 224640, true }, - { 224656, true }, - { 224670, true }, - { 224689, true }, - { 224703, false }, - { 224725, true }, - { 224743, true }, - { 224752, true }, - { 224767, true }, - { 224788, true }, - { 224805, true }, - { 224813, true }, - { 224825, true }, - { 224841, true }, - { 224854, true }, - { 224863, true }, - { 224876, false }, - { 224887, true }, - { 224898, true }, - { 224909, true }, - { 224918, true }, - { 224932, false }, - { 224946, true }, - { 224964, true }, - { 224982, true }, - { 224999, true }, - { 225010, false }, - { 225026, false }, - { 225050, true }, + { 224023, true }, + { 224039, true }, + { 224058, true }, + { 224076, true }, + { 224093, true }, + { 224117, true }, + { 224137, true }, + { 224160, true }, + { 224186, true }, + { 224199, true }, + { 224213, true }, + { 224227, true }, + { 224240, true }, + { 224261, true }, + { 224275, true }, + { 224285, true }, + { 224301, true }, + { 224314, true }, + { 224336, true }, + { 224351, true }, + { 224380, true }, + { 224391, true }, + { 224403, true }, + { 224418, true }, + { 224434, true }, + { 224448, true }, + { 224467, true }, + { 224481, false }, + { 224503, true }, + { 224521, true }, + { 224530, true }, + { 224545, true }, + { 224566, true }, + { 224583, true }, + { 224591, true }, + { 224603, true }, + { 224619, true }, + { 224632, true }, + { 224641, true }, + { 224654, false }, + { 224665, true }, + { 224676, true }, + { 224687, true }, + { 224696, true }, + { 224710, false }, + { 224724, true }, + { 224742, true }, + { 224760, true }, + { 224777, true }, + { 224788, false }, + { 224804, false }, + { 224828, true }, + { 224843, true }, + { 224870, true }, + { 224882, true }, + { 224892, true }, + { 224907, true }, + { 224932, true }, + { 224951, true }, + { 224961, true }, + { 225006, true }, + { 225051, true }, { 225065, true }, - { 225092, true }, - { 225104, true }, + { 225073, true }, + { 225082, true }, + { 225090, true }, + { 225102, true }, { 225114, true }, - { 225129, true }, - { 225154, true }, - { 225173, true }, - { 225183, true }, - { 225228, true }, - { 225273, true }, - { 225287, true }, - { 225295, true }, - { 225304, true }, - { 225312, true }, - { 225324, true }, - { 225336, true }, - { 225350, true }, - { 225375, true }, - { 225392, true }, - { 225409, true }, - { 225424, true }, - { 225436, true }, - { 225448, true }, - { 225461, true }, - { 225469, true }, - { 225487, true }, - { 225496, false }, - { 225504, true }, - { 225516, true }, - { 225541, true }, - { 225562, true }, - { 225581, true }, - { 225594, true }, - { 225608, true }, - { 225621, true }, - { 225634, true }, - { 225656, true }, - { 225669, true }, - { 225681, true }, - { 225693, true }, - { 225705, true }, - { 225718, true }, - { 225731, false }, - { 225744, true }, - { 225760, true }, - { 225774, true }, - { 225795, true }, - { 225814, true }, + { 225128, true }, + { 225153, true }, + { 225170, true }, + { 225187, true }, + { 225202, true }, + { 225214, true }, + { 225226, true }, + { 225239, true }, + { 225247, true }, + { 225265, true }, + { 225274, false }, + { 225282, true }, + { 225294, true }, + { 225319, true }, + { 225340, true }, + { 225359, true }, + { 225372, true }, + { 225386, true }, + { 225399, true }, + { 225412, true }, + { 225434, true }, + { 225447, true }, + { 225459, true }, + { 225471, true }, + { 225483, true }, + { 225496, true }, + { 225509, false }, + { 225522, true }, + { 225538, true }, + { 225552, true }, + { 225573, true }, + { 225592, true }, + { 225617, true }, + { 225626, true }, + { 225639, true }, + { 225652, true }, + { 225666, true }, + { 225678, true }, + { 225686, true }, + { 225698, true }, + { 225710, true }, + { 225729, true }, + { 225745, false }, + { 225763, true }, + { 225775, true }, + { 225792, true }, + { 225809, true }, + { 225821, false }, + { 225830, true }, { 225839, true }, - { 225848, true }, - { 225861, true }, - { 225874, true }, - { 225888, true }, - { 225900, true }, - { 225908, true }, - { 225920, true }, - { 225932, true }, - { 225951, true }, - { 225967, false }, - { 225985, true }, - { 225997, true }, - { 226014, true }, + { 225854, true }, + { 225876, true }, + { 225895, true }, + { 225910, true }, + { 225925, true }, + { 225939, true }, + { 225952, true }, + { 225964, true }, + { 225986, true }, + { 226001, true }, + { 226016, true }, { 226031, true }, - { 226043, false }, - { 226052, true }, - { 226061, true }, - { 226076, true }, - { 226098, true }, - { 226117, true }, - { 226132, true }, - { 226147, true }, - { 226161, true }, - { 226174, true }, - { 226186, true }, - { 226208, true }, - { 226223, true }, - { 226238, true }, - { 226253, true }, - { 226274, false }, - { 226285, true }, - { 226294, true }, - { 226309, true }, + { 226052, false }, + { 226063, true }, + { 226072, true }, + { 226087, true }, + { 226108, true }, + { 226120, true }, + { 226138, true }, + { 226155, true }, + { 226171, false }, + { 226187, true }, + { 226200, true }, + { 226212, false }, + { 226227, true }, + { 226240, false }, + { 226264, true }, + { 226272, true }, + { 226290, true }, + { 226319, true }, { 226330, true }, - { 226342, true }, - { 226360, true }, - { 226377, true }, - { 226389, true }, - { 226405, false }, - { 226421, true }, - { 226434, true }, - { 226446, false }, - { 226461, true }, - { 226474, false }, - { 226498, true }, + { 226341, true }, + { 226352, true }, + { 226363, true }, + { 226374, true }, + { 226386, true }, + { 226402, true }, + { 226424, true }, + { 226435, true }, + { 226443, false }, + { 226456, true }, + { 226468, true }, + { 226480, true }, + { 226494, true }, { 226506, true }, - { 226524, true }, - { 226553, true }, - { 226564, true }, - { 226575, true }, - { 226586, true }, - { 226597, true }, - { 226608, true }, - { 226620, true }, - { 226636, true }, - { 226658, true }, - { 226669, true }, - { 226677, false }, + { 226519, true }, + { 226531, true }, + { 226547, true }, + { 226558, true }, + { 226573, true }, + { 226592, true }, + { 226610, true }, + { 226627, true }, + { 226638, false }, + { 226662, true }, + { 226676, true }, { 226690, true }, - { 226702, true }, - { 226714, true }, - { 226728, true }, - { 226740, true }, - { 226753, true }, - { 226765, true }, - { 226781, true }, - { 226792, true }, - { 226807, true }, - { 226826, true }, - { 226844, true }, - { 226861, true }, - { 226872, false }, - { 226896, true }, - { 226910, true }, - { 226924, true }, - { 226939, true }, - { 226959, true }, - { 226975, true }, - { 226994, true }, - { 227010, true }, - { 227030, true }, - { 227042, true }, - { 227054, true }, - { 227077, true }, - { 227094, true }, - { 227108, true }, - { 227124, true }, + { 226705, true }, + { 226725, true }, + { 226741, true }, + { 226760, true }, + { 226776, true }, + { 226796, true }, + { 226808, true }, + { 226820, true }, + { 226843, true }, + { 226860, true }, + { 226874, true }, + { 226890, true }, + { 226920, true }, + { 226932, true }, + { 226951, true }, + { 226970, true }, + { 226981, true }, + { 226991, true }, + { 227002, true }, + { 227014, true }, + { 227028, true }, + { 227041, true }, + { 227061, true }, + { 227079, true }, + { 227097, true }, + { 227115, false }, + { 227125, true }, + { 227139, true }, { 227154, true }, - { 227166, true }, - { 227185, true }, - { 227204, true }, - { 227215, true }, - { 227225, true }, - { 227236, true }, - { 227248, true }, - { 227262, true }, - { 227275, true }, - { 227295, true }, - { 227313, true }, - { 227331, true }, - { 227349, false }, - { 227359, true }, - { 227373, true }, - { 227388, true }, + { 227172, true }, + { 227181, true }, + { 227194, true }, + { 227206, true }, + { 227223, true }, + { 227234, true }, + { 227244, true }, + { 227253, true }, + { 227274, true }, + { 227294, true }, + { 227316, true }, + { 227332, true }, + { 227341, true }, + { 227352, true }, + { 227367, true }, + { 227387, true }, { 227406, true }, - { 227415, true }, - { 227428, true }, - { 227440, true }, - { 227457, true }, - { 227468, true }, - { 227478, true }, + { 227421, true }, + { 227436, true }, + { 227453, true }, + { 227476, true }, { 227487, true }, - { 227508, true }, - { 227528, true }, - { 227550, true }, - { 227566, true }, - { 227575, true }, - { 227586, true }, - { 227601, true }, - { 227621, true }, - { 227640, true }, - { 227655, true }, - { 227670, true }, - { 227687, true }, - { 227710, true }, - { 227721, true }, - { 227743, true }, - { 227761, true }, - { 227771, true }, - { 227793, true }, - { 227810, true }, - { 227829, true }, - { 227851, false }, - { 227868, true }, - { 227882, true }, - { 227895, true }, - { 227920, true }, - { 227937, true }, - { 227953, true }, - { 227963, true }, - { 227974, true }, - { 227985, true }, - { 227994, true }, - { 228001, true }, - { 228011, true }, - { 228031, true }, - { 228045, true }, - { 228054, true }, - { 228078, true }, - { 228099, true }, - { 228119, true }, - { 228137, true }, - { 228158, true }, - { 228176, true }, - { 228188, true }, - { 228196, true }, - { 228218, true }, + { 227509, true }, + { 227527, true }, + { 227537, true }, + { 227559, true }, + { 227576, true }, + { 227595, true }, + { 227617, false }, + { 227634, true }, + { 227648, true }, + { 227661, true }, + { 227686, true }, + { 227703, true }, + { 227719, true }, + { 227729, true }, + { 227740, true }, + { 227751, true }, + { 227760, true }, + { 227767, true }, + { 227777, true }, + { 227797, true }, + { 227811, true }, + { 227820, true }, + { 227844, true }, + { 227865, true }, + { 227885, true }, + { 227903, true }, + { 227924, true }, + { 227942, true }, + { 227954, true }, + { 227962, true }, + { 227984, true }, + { 228000, true }, + { 228013, true }, + { 228038, true }, + { 228049, true }, + { 228063, true }, + { 228084, true }, + { 228094, true }, + { 228115, true }, + { 228130, true }, + { 228142, true }, + { 228159, true }, + { 228185, true }, + { 228198, true }, + { 228217, true }, { 228234, true }, - { 228247, true }, - { 228272, true }, - { 228283, true }, - { 228297, true }, - { 228318, true }, - { 228328, true }, - { 228349, true }, - { 228364, true }, - { 228376, true }, - { 228393, true }, - { 228419, true }, - { 228432, true }, - { 228451, true }, - { 228468, true }, - { 228497, false }, - { 228515, true }, - { 228543, true }, - { 228554, true }, - { 228570, true }, - { 228586, true }, + { 228263, false }, + { 228281, true }, + { 228309, true }, + { 228320, true }, + { 228336, true }, + { 228352, true }, + { 228375, true }, + { 228394, true }, + { 228418, false }, + { 228437, true }, + { 228449, true }, + { 228469, false }, + { 228491, true }, + { 228504, true }, + { 228517, true }, + { 228532, true }, + { 228547, true }, + { 228561, true }, + { 228584, true }, { 228609, true }, { 228628, true }, - { 228652, false }, - { 228671, true }, - { 228683, true }, - { 228703, false }, - { 228725, true }, - { 228738, true }, - { 228751, true }, - { 228766, true }, - { 228781, true }, - { 228795, true }, - { 228818, true }, - { 228843, true }, - { 228862, true }, - { 228872, true }, - { 228882, true }, - { 228901, true }, - { 228914, true }, - { 228936, true }, - { 228956, true }, - { 228975, true }, - { 228984, true }, - { 228996, true }, - { 229009, true }, - { 229022, true }, - { 229036, true }, - { 229053, true }, - { 229074, true }, - { 229100, true }, - { 229121, true }, - { 229142, true }, - { 229163, true }, - { 229183, true }, - { 229195, true }, - { 229215, true }, - { 229233, true }, - { 229251, true }, - { 229261, true }, + { 228638, true }, + { 228648, true }, + { 228667, true }, + { 228680, true }, + { 228702, true }, + { 228722, true }, + { 228741, true }, + { 228750, true }, + { 228762, true }, + { 228775, true }, + { 228788, true }, + { 228802, true }, + { 228819, true }, + { 228840, true }, + { 228866, true }, + { 228887, true }, + { 228908, true }, + { 228929, true }, + { 228949, true }, + { 228961, true }, + { 228981, true }, + { 228999, true }, + { 229017, true }, + { 229027, true }, + { 229040, true }, + { 229052, true }, + { 229087, true }, + { 229111, true }, + { 229119, true }, + { 229128, true }, + { 229151, true }, + { 229167, true }, + { 229179, true }, + { 229197, true }, + { 229222, true }, + { 229237, true }, + { 229258, true }, { 229274, true }, - { 229286, true }, - { 229321, true }, - { 229345, true }, - { 229353, true }, - { 229362, true }, + { 229291, true }, + { 229307, true }, + { 229329, true }, + { 229350, false }, + { 229367, false }, { 229385, true }, - { 229401, true }, - { 229413, true }, - { 229431, true }, - { 229456, true }, - { 229471, true }, - { 229492, true }, - { 229508, true }, - { 229525, true }, - { 229541, true }, + { 229399, true }, + { 229409, true }, + { 229423, true }, + { 229433, true }, + { 229445, true }, + { 229457, true }, + { 229469, true }, + { 229479, true }, + { 229490, true }, + { 229501, true }, + { 229515, true }, + { 229527, true }, + { 229551, true }, { 229563, true }, - { 229584, false }, - { 229601, false }, + { 229576, true }, + { 229590, true }, { 229619, true }, - { 229633, true }, - { 229643, true }, - { 229657, true }, - { 229667, true }, + { 229634, true }, + { 229648, true }, + { 229664, true }, { 229679, true }, - { 229691, true }, - { 229703, true }, - { 229713, true }, - { 229724, true }, - { 229735, true }, - { 229749, true }, - { 229761, true }, - { 229785, true }, - { 229797, true }, - { 229810, true }, - { 229824, true }, - { 229853, true }, - { 229868, true }, - { 229882, true }, - { 229898, true }, - { 229913, true }, - { 229940, true }, - { 229954, true }, - { 229966, true }, - { 229977, true }, - { 229997, true }, - { 230010, true }, - { 230024, true }, - { 230036, true }, - { 230048, true }, + { 229706, true }, + { 229720, true }, + { 229732, true }, + { 229743, true }, + { 229763, true }, + { 229776, true }, + { 229790, true }, + { 229802, true }, + { 229814, true }, + { 229823, true }, + { 229841, true }, + { 229860, true }, + { 229872, true }, + { 229891, true }, + { 229908, true }, + { 229929, true }, + { 229953, true }, + { 229965, true }, + { 229983, true }, + { 229999, true }, + { 230019, false }, + { 230037, true }, { 230057, true }, - { 230075, true }, - { 230094, true }, - { 230106, true }, - { 230125, true }, - { 230142, true }, - { 230163, true }, - { 230187, true }, - { 230199, true }, - { 230217, true }, - { 230233, true }, - { 230253, false }, - { 230271, true }, - { 230291, true }, - { 230305, true }, - { 230320, true }, - { 230346, true }, - { 230372, true }, - { 230385, true }, + { 230071, true }, + { 230086, true }, + { 230112, true }, + { 230138, true }, + { 230151, true }, + { 230170, true }, + { 230183, true }, + { 230203, true }, + { 230211, true }, + { 230222, true }, + { 230232, true }, + { 230259, true }, + { 230278, true }, + { 230297, true }, + { 230311, true }, + { 230329, true }, + { 230344, true }, + { 230360, false }, + { 230379, true }, + { 230390, true }, { 230404, true }, - { 230417, true }, - { 230437, true }, - { 230445, true }, - { 230456, true }, - { 230466, true }, - { 230493, true }, - { 230512, true }, - { 230531, true }, + { 230413, true }, + { 230430, true }, + { 230451, true }, + { 230467, true }, + { 230484, true }, + { 230499, true }, + { 230517, true }, + { 230536, true }, { 230545, true }, - { 230563, true }, - { 230578, true }, - { 230594, false }, - { 230613, true }, - { 230624, true }, - { 230638, true }, - { 230647, true }, - { 230664, true }, - { 230685, true }, - { 230701, true }, - { 230718, true }, - { 230733, true }, - { 230751, true }, - { 230770, true }, - { 230779, true }, - { 230796, true }, - { 230809, true }, - { 230819, true }, - { 230834, true }, - { 230854, true }, - { 230862, true }, - { 230880, true }, - { 230908, true }, - { 230930, true }, - { 230945, true }, - { 230960, true }, - { 230978, true }, - { 230995, true }, - { 231011, true }, - { 231025, true }, - { 231040, false }, - { 231053, false }, - { 231063, false }, - { 231076, false }, - { 231091, true }, - { 231109, true }, - { 231126, true }, - { 231138, true }, - { 231150, true }, - { 231162, true }, - { 231178, true }, - { 231190, true }, - { 231203, true }, - { 231215, true }, - { 231228, true }, - { 231241, true }, - { 231253, true }, - { 231272, true }, - { 231285, true }, - { 231295, true }, - { 231307, true }, - { 231317, true }, + { 230562, true }, + { 230575, true }, + { 230585, true }, + { 230600, true }, + { 230620, true }, + { 230628, true }, + { 230646, true }, + { 230674, true }, + { 230696, true }, + { 230711, true }, + { 230726, true }, + { 230744, true }, + { 230761, true }, + { 230777, true }, + { 230791, true }, + { 230806, false }, + { 230819, false }, + { 230829, false }, + { 230842, false }, + { 230857, true }, + { 230875, true }, + { 230892, true }, + { 230904, true }, + { 230916, true }, + { 230928, true }, + { 230944, true }, + { 230956, true }, + { 230969, true }, + { 230981, true }, + { 230994, true }, + { 231007, true }, + { 231019, true }, + { 231038, true }, + { 231051, true }, + { 231061, true }, + { 231073, true }, + { 231083, true }, + { 231098, true }, + { 231110, true }, + { 231121, true }, + { 231139, true }, + { 231149, true }, + { 231157, true }, + { 231165, true }, + { 231175, true }, + { 231187, true }, + { 231201, true }, + { 231214, true }, + { 231223, true }, + { 231237, true }, + { 231258, true }, + { 231275, true }, + { 231305, true }, { 231332, true }, - { 231344, true }, - { 231355, true }, - { 231373, true }, - { 231383, true }, - { 231391, true }, - { 231399, true }, - { 231409, true }, - { 231421, true }, - { 231435, true }, + { 231350, true }, + { 231361, true }, + { 231376, true }, + { 231392, true }, + { 231407, true }, + { 231422, true }, + { 231437, true }, { 231448, true }, { 231457, true }, - { 231471, true }, - { 231492, true }, - { 231509, true }, - { 231539, true }, - { 231566, true }, - { 231584, true }, - { 231595, true }, - { 231610, true }, - { 231626, true }, - { 231641, true }, + { 231465, true }, + { 231476, true }, + { 231489, true }, + { 231497, true }, + { 231513, true }, + { 231530, true }, + { 231555, true }, + { 231577, true }, + { 231594, true }, + { 231607, true }, + { 231628, true }, + { 231636, true }, + { 231646, true }, { 231656, true }, - { 231671, true }, - { 231682, true }, - { 231691, true }, - { 231699, true }, - { 231710, true }, + { 231667, true }, + { 231680, true }, + { 231692, true }, + { 231700, true }, + { 231716, false }, { 231723, true }, - { 231731, true }, - { 231747, true }, - { 231764, true }, - { 231789, true }, - { 231811, true }, - { 231828, true }, - { 231841, true }, - { 231862, true }, - { 231870, true }, - { 231880, true }, - { 231890, true }, - { 231901, true }, - { 231914, true }, - { 231926, true }, - { 231934, true }, - { 231951, true }, - { 231967, false }, + { 231734, true }, + { 231744, true }, + { 231752, true }, + { 231766, true }, + { 231778, false }, + { 231802, true }, + { 231834, true }, + { 231861, true }, + { 231881, true }, + { 231905, true }, + { 231922, false }, + { 231935, true }, + { 231948, true }, + { 231963, true }, { 231974, true }, { 231985, true }, { 231995, true }, - { 232003, true }, - { 232017, true }, - { 232029, false }, - { 232053, true }, - { 232085, true }, - { 232112, true }, - { 232132, true }, - { 232156, true }, - { 232173, false }, - { 232186, true }, - { 232199, true }, - { 232214, true }, - { 232225, true }, - { 232236, true }, - { 232246, true }, - { 232257, true }, - { 232270, true }, - { 232278, true }, - { 232290, true }, - { 232302, true }, - { 232323, false }, - { 232335, false }, - { 232343, true }, - { 232368, true }, - { 232387, true }, - { 232400, true }, - { 232415, true }, - { 232429, true }, - { 232442, true }, - { 232454, true }, - { 232475, true }, - { 232492, true }, - { 232506, true }, + { 232006, true }, + { 232019, true }, + { 232027, true }, + { 232039, true }, + { 232051, true }, + { 232072, false }, + { 232084, false }, + { 232092, true }, + { 232117, true }, + { 232136, true }, + { 232149, true }, + { 232164, true }, + { 232178, true }, + { 232191, true }, + { 232203, true }, + { 232224, true }, + { 232241, true }, + { 232255, true }, + { 232272, true }, + { 232284, true }, + { 232298, true }, + { 232313, true }, + { 232331, true }, + { 232346, true }, + { 232354, true }, + { 232361, true }, + { 232371, true }, + { 232391, true }, + { 232402, true }, + { 232426, true }, + { 232440, true }, + { 232448, true }, + { 232456, true }, + { 232471, false }, + { 232486, true }, + { 232498, true }, + { 232512, false }, { 232523, true }, { 232535, true }, - { 232549, true }, - { 232564, true }, - { 232582, true }, - { 232597, true }, - { 232605, true }, - { 232612, true }, + { 232546, true }, + { 232559, true }, + { 232569, true }, + { 232579, true }, + { 232589, true }, + { 232596, true }, + { 232609, true }, { 232622, true }, - { 232642, true }, - { 232653, true }, - { 232677, true }, - { 232691, true }, - { 232699, true }, - { 232707, true }, - { 232722, false }, - { 232737, true }, - { 232749, true }, + { 232636, true }, + { 232644, true }, + { 232661, true }, + { 232669, true }, + { 232678, true }, + { 232694, true }, + { 232713, true }, + { 232724, true }, + { 232736, true }, + { 232746, true }, { 232763, false }, { 232774, true }, - { 232786, true }, - { 232797, true }, - { 232810, true }, - { 232820, true }, - { 232830, true }, - { 232837, true }, - { 232850, true }, - { 232863, true }, - { 232877, true }, - { 232885, true }, - { 232902, true }, - { 232910, true }, - { 232919, true }, - { 232935, true }, - { 232954, true }, - { 232965, true }, - { 232977, true }, - { 232987, true }, + { 232788, true }, + { 232796, true }, + { 232806, true }, + { 232815, true }, + { 232831, true }, + { 232852, true }, + { 232877, false }, + { 232893, true }, + { 232905, true }, + { 232917, true }, + { 232930, true }, + { 232938, true }, + { 232946, false }, + { 232966, false }, + { 232985, false }, { 233004, false }, - { 233015, true }, - { 233029, true }, - { 233037, true }, - { 233047, true }, - { 233056, true }, - { 233072, true }, - { 233093, true }, - { 233118, false }, - { 233134, true }, - { 233146, true }, - { 233158, true }, - { 233171, true }, - { 233179, true }, - { 233187, false }, - { 233207, false }, - { 233226, false }, - { 233245, false }, - { 233265, true }, - { 233275, true }, - { 233295, false }, - { 233315, false }, - { 233334, false }, - { 233353, true }, - { 233372, true }, - { 233383, true }, - { 233393, true }, - { 233405, true }, - { 233414, true }, - { 233427, true }, - { 233442, true }, - { 233452, true }, - { 233465, true }, - { 233476, true }, - { 233487, true }, + { 233024, true }, + { 233034, true }, + { 233054, false }, + { 233074, false }, + { 233093, false }, + { 233112, true }, + { 233131, true }, + { 233142, true }, + { 233152, true }, + { 233164, true }, + { 233173, true }, + { 233186, true }, + { 233201, true }, + { 233211, true }, + { 233224, true }, + { 233235, true }, + { 233246, true }, + { 233255, true }, + { 233263, true }, + { 233276, true }, + { 233284, true }, + { 233293, true }, + { 233303, true }, + { 233312, true }, + { 233327, true }, + { 233350, true }, + { 233369, false }, + { 233380, true }, + { 233402, true }, + { 233416, true }, + { 233425, true }, + { 233433, true }, + { 233445, true }, + { 233455, true }, + { 233472, true }, + { 233481, true }, + { 233488, true }, { 233496, true }, - { 233504, true }, - { 233517, true }, - { 233525, true }, - { 233534, true }, - { 233544, true }, - { 233553, true }, - { 233568, true }, - { 233591, true }, - { 233610, false }, - { 233621, true }, - { 233643, true }, - { 233657, true }, + { 233507, true }, + { 233521, true }, + { 233533, true }, + { 233545, true }, + { 233554, true }, + { 233563, true }, + { 233589, true }, + { 233601, false }, + { 233612, true }, + { 233625, true }, + { 233640, true }, { 233666, true }, - { 233674, true }, - { 233686, true }, - { 233696, true }, - { 233713, true }, - { 233722, true }, - { 233729, true }, - { 233737, true }, - { 233748, true }, - { 233762, true }, - { 233774, true }, - { 233786, true }, - { 233795, true }, - { 233804, true }, - { 233830, true }, - { 233842, false }, - { 233853, true }, - { 233866, true }, - { 233881, true }, - { 233907, true }, - { 233930, false }, - { 233950, true }, + { 233689, false }, + { 233709, true }, + { 233726, true }, + { 233752, true }, + { 233766, true }, + { 233785, true }, + { 233807, true }, + { 233826, true }, + { 233841, true }, + { 233857, true }, + { 233870, true }, + { 233883, true }, + { 233894, true }, + { 233909, true }, + { 233929, true }, + { 233947, true }, { 233967, true }, - { 233993, true }, - { 234007, true }, + { 233982, true }, + { 233999, true }, + { 234008, true }, { 234026, true }, - { 234048, true }, - { 234067, true }, + { 234041, true }, + { 234062, true }, { 234082, true }, - { 234098, true }, - { 234111, true }, - { 234124, true }, - { 234135, true }, - { 234150, true }, - { 234170, true }, - { 234188, true }, - { 234208, true }, - { 234223, true }, - { 234240, true }, - { 234249, true }, - { 234267, true }, - { 234282, true }, - { 234303, true }, - { 234323, true }, - { 234338, true }, - { 234353, true }, - { 234368, true }, - { 234383, true }, - { 234397, true }, - { 234410, true }, - { 234424, true }, - { 234433, true }, + { 234097, true }, + { 234112, true }, + { 234127, true }, + { 234142, true }, + { 234156, true }, + { 234169, true }, + { 234183, true }, + { 234192, true }, + { 234207, true }, + { 234216, true }, + { 234234, true }, + { 234245, true }, + { 234255, true }, + { 234264, true }, + { 234275, true }, + { 234285, true }, + { 234294, true }, + { 234304, true }, + { 234317, true }, + { 234324, true }, + { 234335, true }, + { 234345, true }, + { 234354, true }, + { 234370, true }, + { 234387, true }, + { 234394, true }, + { 234405, true }, + { 234416, true }, + { 234427, true }, + { 234441, true }, { 234448, true }, - { 234457, true }, - { 234475, true }, - { 234486, true }, - { 234496, true }, + { 234459, true }, + { 234467, true }, + { 234485, true }, + { 234497, true }, { 234505, true }, - { 234516, true }, - { 234526, true }, - { 234535, true }, - { 234545, true }, - { 234558, true }, - { 234565, true }, - { 234576, true }, - { 234586, true }, - { 234595, true }, - { 234611, true }, - { 234628, true }, - { 234635, true }, - { 234646, true }, - { 234657, true }, - { 234668, true }, - { 234682, true }, - { 234689, true }, - { 234700, true }, - { 234708, true }, - { 234726, true }, - { 234738, true }, - { 234746, true }, - { 234766, false }, - { 234782, true }, - { 234801, true }, - { 234824, true }, - { 234843, true }, - { 234857, true }, - { 234874, true }, + { 234525, false }, + { 234541, true }, + { 234560, true }, + { 234583, true }, + { 234602, true }, + { 234616, true }, + { 234633, true }, + { 234649, true }, + { 234660, true }, + { 234673, true }, + { 234695, true }, + { 234718, true }, + { 234731, true }, + { 234740, true }, + { 234753, true }, + { 234768, true }, + { 234783, true }, + { 234806, true }, + { 234840, true }, + { 234850, true }, + { 234866, true }, + { 234876, true }, { 234890, true }, - { 234901, true }, - { 234914, true }, - { 234936, true }, - { 234959, true }, - { 234972, true }, - { 234981, true }, - { 234994, true }, - { 235009, true }, - { 235024, true }, + { 234910, true }, + { 234926, true }, + { 234948, true }, + { 234961, true }, + { 234977, true }, + { 235004, true }, + { 235014, true }, + { 235037, true }, { 235047, true }, - { 235081, true }, - { 235091, true }, - { 235107, true }, - { 235117, true }, - { 235131, true }, - { 235151, true }, - { 235167, true }, - { 235189, true }, - { 235202, true }, - { 235218, true }, - { 235245, true }, - { 235255, true }, - { 235278, true }, + { 235065, true }, + { 235074, true }, + { 235084, true }, + { 235103, true }, + { 235116, true }, + { 235139, true }, + { 235161, true }, + { 235172, true }, + { 235187, true }, + { 235198, true }, + { 235221, true }, + { 235236, true }, + { 235256, true }, + { 235279, true }, { 235288, true }, - { 235306, true }, - { 235315, true }, - { 235325, true }, - { 235344, true }, + { 235301, true }, + { 235312, true }, + { 235330, true }, + { 235347, true }, { 235357, true }, - { 235380, true }, - { 235402, true }, - { 235413, true }, - { 235428, true }, - { 235439, true }, - { 235462, true }, - { 235477, true }, - { 235497, true }, - { 235520, true }, - { 235529, true }, - { 235542, true }, + { 235382, true }, + { 235400, true }, + { 235415, true }, + { 235429, true }, + { 235443, true }, + { 235460, true }, + { 235478, true }, + { 235491, true }, + { 235504, true }, + { 235514, true }, + { 235525, true }, + { 235537, true }, { 235553, true }, - { 235571, true }, - { 235588, true }, - { 235598, true }, - { 235623, true }, - { 235641, true }, - { 235656, true }, - { 235670, true }, - { 235684, true }, - { 235701, true }, - { 235719, true }, - { 235732, true }, - { 235745, true }, - { 235755, true }, - { 235766, true }, - { 235778, true }, - { 235794, true }, - { 235807, false }, + { 235566, false }, + { 235578, true }, + { 235595, true }, + { 235605, true }, + { 235628, true }, + { 235649, true }, + { 235671, true }, + { 235691, true }, + { 235710, true }, + { 235728, true }, + { 235746, true }, + { 235757, true }, + { 235773, true }, + { 235783, true }, + { 235796, true }, + { 235807, true }, { 235819, true }, - { 235836, true }, + { 235833, true }, { 235846, true }, - { 235869, true }, - { 235890, true }, - { 235912, true }, - { 235932, true }, - { 235951, true }, - { 235969, true }, - { 235987, true }, - { 235998, true }, - { 236014, true }, + { 235857, true }, + { 235875, true }, + { 235885, true }, + { 235899, true }, + { 235914, true }, + { 235928, true }, + { 235943, true }, + { 235953, true }, + { 235964, true }, + { 235977, true }, + { 235990, true }, + { 235999, true }, + { 236008, true }, { 236024, true }, - { 236037, true }, - { 236048, true }, - { 236060, true }, - { 236074, true }, - { 236087, true }, - { 236098, true }, - { 236116, true }, - { 236126, true }, - { 236140, true }, - { 236155, true }, - { 236169, true }, - { 236184, true }, - { 236194, true }, - { 236205, true }, - { 236218, true }, - { 236231, true }, - { 236240, true }, - { 236249, true }, - { 236265, true }, - { 236281, true }, - { 236294, true }, - { 236308, false }, - { 236325, true }, + { 236040, true }, + { 236053, true }, + { 236067, false }, + { 236084, true }, + { 236095, true }, + { 236110, true }, + { 236122, true }, + { 236136, true }, + { 236149, true }, + { 236159, true }, + { 236177, true }, + { 236186, true }, + { 236197, true }, + { 236207, true }, + { 236219, true }, + { 236232, true }, + { 236244, true }, + { 236259, true }, + { 236268, true }, + { 236279, true }, + { 236296, true }, + { 236312, true }, + { 236324, true }, { 236336, true }, - { 236351, true }, - { 236363, true }, - { 236377, true }, - { 236390, true }, - { 236400, true }, - { 236418, true }, - { 236427, true }, - { 236438, true }, - { 236448, true }, - { 236460, true }, - { 236473, true }, - { 236485, true }, - { 236500, true }, - { 236509, true }, - { 236520, true }, - { 236537, true }, - { 236553, true }, - { 236565, true }, - { 236577, true }, + { 236352, true }, + { 236369, true }, + { 236381, true }, + { 236394, true }, + { 236411, true }, + { 236425, true }, + { 236440, true }, + { 236452, true }, + { 236463, true }, + { 236470, true }, + { 236477, true }, + { 236488, true }, + { 236504, true }, + { 236512, true }, + { 236519, true }, + { 236528, false }, + { 236535, true }, + { 236550, true }, + { 236563, true }, + { 236580, true }, { 236593, true }, - { 236610, true }, - { 236622, true }, - { 236635, true }, - { 236652, true }, - { 236666, true }, - { 236681, true }, + { 236608, true }, + { 236621, true }, + { 236640, true }, + { 236651, true }, + { 236670, true }, { 236693, true }, - { 236704, true }, - { 236711, true }, - { 236718, true }, - { 236729, true }, - { 236745, true }, - { 236753, true }, - { 236760, true }, - { 236769, false }, - { 236776, true }, - { 236791, true }, - { 236804, true }, - { 236821, true }, - { 236834, true }, - { 236849, true }, - { 236862, true }, - { 236881, true }, - { 236892, true }, - { 236911, true }, - { 236934, true }, - { 236946, false }, - { 236960, true }, - { 236973, true }, - { 236989, true }, - { 237007, true }, - { 237019, true }, + { 236705, false }, + { 236719, true }, + { 236732, true }, + { 236748, true }, + { 236766, true }, + { 236778, true }, + { 236795, true }, + { 236806, true }, + { 236822, false }, + { 236841, true }, + { 236860, true }, + { 236873, true }, + { 236888, true }, + { 236907, true }, + { 236918, true }, + { 236940, true }, + { 236956, true }, + { 236977, true }, + { 236993, true }, + { 237009, true }, + { 237021, true }, { 237036, true }, - { 237047, true }, - { 237063, false }, - { 237082, true }, - { 237101, true }, - { 237114, true }, - { 237129, true }, - { 237148, true }, - { 237159, true }, - { 237181, true }, - { 237197, true }, - { 237218, true }, - { 237234, true }, - { 237250, true }, - { 237262, true }, - { 237277, true }, - { 237291, true }, - { 237305, true }, - { 237318, true }, - { 237333, true }, - { 237343, true }, + { 237050, true }, + { 237064, true }, + { 237077, true }, + { 237092, true }, + { 237102, true }, + { 237121, true }, + { 237132, true }, + { 237149, true }, + { 237164, true }, + { 237184, true }, + { 237211, true }, + { 237242, true }, + { 237268, true }, + { 237280, true }, + { 237295, true }, + { 237314, false }, + { 237331, true }, + { 237346, true }, { 237362, true }, - { 237373, true }, - { 237390, true }, - { 237405, true }, - { 237425, true }, + { 237392, true }, + { 237420, true }, + { 237440, true }, { 237452, true }, - { 237483, true }, + { 237475, true }, + { 237490, true }, + { 237501, true }, { 237509, true }, - { 237521, true }, - { 237536, true }, - { 237555, false }, - { 237572, true }, - { 237587, true }, - { 237603, true }, - { 237633, true }, - { 237661, true }, - { 237681, true }, + { 237532, true }, + { 237544, true }, + { 237557, true }, + { 237565, true }, + { 237591, true }, + { 237606, true }, + { 237624, true }, + { 237637, true }, + { 237654, true }, + { 237666, true }, { 237693, true }, - { 237716, true }, - { 237731, true }, - { 237742, true }, - { 237750, true }, - { 237773, true }, - { 237785, true }, - { 237798, true }, - { 237806, true }, - { 237832, true }, - { 237847, true }, - { 237865, true }, - { 237878, true }, - { 237895, true }, - { 237907, true }, - { 237934, true }, + { 237724, true }, + { 237734, true }, + { 237749, true }, + { 237760, true }, + { 237770, true }, + { 237790, true }, + { 237802, true }, + { 237813, true }, + { 237829, true }, + { 237841, true }, + { 237850, true }, + { 237863, true }, + { 237891, true }, + { 237912, true }, + { 237926, true }, + { 237948, true }, { 237965, true }, - { 237976, true }, - { 237986, true }, - { 238001, true }, - { 238012, true }, - { 238022, true }, - { 238042, true }, - { 238054, true }, - { 238065, true }, - { 238081, true }, - { 238093, true }, - { 238102, true }, - { 238115, true }, - { 238143, true }, - { 238164, true }, - { 238178, true }, - { 238200, true }, - { 238217, true }, - { 238229, true }, - { 238245, true }, + { 237977, true }, + { 237993, true }, + { 238007, true }, + { 238017, true }, + { 238027, true }, + { 238039, true }, + { 238050, true }, + { 238061, true }, + { 238072, true }, + { 238086, true }, + { 238101, true }, + { 238119, true }, + { 238140, true }, + { 238160, true }, + { 238171, true }, + { 238182, true }, + { 238192, true }, + { 238211, true }, + { 238238, true }, { 238259, true }, - { 238269, true }, { 238279, true }, - { 238291, true }, - { 238302, true }, - { 238313, true }, - { 238324, true }, - { 238338, true }, - { 238353, true }, - { 238371, true }, - { 238392, true }, - { 238412, true }, - { 238423, true }, - { 238434, true }, - { 238444, true }, - { 238463, true }, - { 238490, true }, + { 238297, true }, + { 238312, false }, + { 238323, true }, + { 238339, true }, + { 238356, true }, + { 238373, true }, + { 238413, true }, + { 238435, true }, + { 238449, true }, + { 238465, false }, + { 238482, true }, + { 238498, true }, { 238511, true }, - { 238531, true }, - { 238549, true }, - { 238564, false }, - { 238575, true }, - { 238591, true }, - { 238608, true }, - { 238625, true }, - { 238665, true }, - { 238687, true }, - { 238701, true }, - { 238717, false }, - { 238734, true }, + { 238521, true }, + { 238532, true }, + { 238550, true }, + { 238564, true }, + { 238585, true }, + { 238603, true }, + { 238610, true }, + { 238631, true }, + { 238649, true }, + { 238667, false }, + { 238685, true }, + { 238695, true }, + { 238706, true }, + { 238728, true }, { 238750, true }, - { 238763, true }, - { 238773, true }, - { 238784, true }, + { 238767, true }, + { 238782, true }, { 238802, true }, - { 238816, true }, - { 238837, true }, - { 238855, true }, - { 238862, true }, - { 238883, true }, - { 238901, true }, - { 238919, false }, + { 238819, true }, + { 238838, true }, + { 238849, true }, + { 238868, true }, + { 238882, true }, + { 238897, true }, + { 238916, true }, + { 238928, true }, { 238937, true }, - { 238947, true }, - { 238958, true }, - { 238980, true }, - { 239002, true }, - { 239019, true }, - { 239034, true }, + { 238950, true }, + { 238971, true }, + { 238983, true }, + { 239006, true }, + { 239024, true }, + { 239044, true }, { 239054, true }, - { 239071, true }, - { 239090, true }, - { 239101, true }, - { 239120, true }, - { 239134, true }, - { 239149, true }, - { 239168, true }, - { 239180, true }, - { 239189, true }, - { 239202, true }, - { 239223, true }, - { 239235, true }, - { 239258, true }, - { 239276, true }, - { 239296, true }, - { 239306, true }, - { 239317, true }, + { 239065, true }, + { 239076, true }, + { 239086, true }, + { 239102, true }, + { 239113, true }, + { 239125, false }, + { 239145, true }, + { 239164, true }, + { 239177, true }, + { 239187, true }, + { 239201, true }, + { 239218, true }, + { 239238, true }, + { 239253, true }, + { 239267, true }, + { 239281, true }, + { 239299, true }, + { 239313, false }, { 239328, true }, - { 239338, true }, - { 239354, true }, - { 239365, true }, - { 239377, true }, - { 239389, false }, - { 239409, true }, - { 239428, true }, - { 239441, true }, - { 239451, true }, + { 239349, true }, + { 239367, true }, + { 239381, true }, + { 239394, false }, + { 239408, true }, + { 239416, true }, + { 239432, true }, + { 239449, true }, { 239465, true }, - { 239482, true }, - { 239502, true }, - { 239517, true }, - { 239531, true }, - { 239545, true }, - { 239563, true }, - { 239577, false }, - { 239592, true }, - { 239613, true }, - { 239631, true }, - { 239645, true }, - { 239658, false }, - { 239672, true }, - { 239680, true }, - { 239696, true }, - { 239713, true }, - { 239729, true }, - { 239740, true }, - { 239763, false }, - { 239771, true }, - { 239781, true }, - { 239793, true }, - { 239805, false }, - { 239827, true }, - { 239841, true }, - { 239854, true }, - { 239869, true }, - { 239883, true }, - { 239898, true }, - { 239912, true }, - { 239926, true }, - { 239939, true }, - { 239953, true }, - { 239966, true }, - { 239994, true }, - { 240021, true }, - { 240049, true }, - { 240076, true }, - { 240088, true }, - { 240103, true }, - { 240128, true }, - { 240152, true }, - { 240166, true }, - { 240187, true }, - { 240201, true }, + { 239476, true }, + { 239499, false }, + { 239508, false }, + { 239516, true }, + { 239526, true }, + { 239538, true }, + { 239550, false }, + { 239572, true }, + { 239586, true }, + { 239599, true }, + { 239614, true }, + { 239628, true }, + { 239643, true }, + { 239657, true }, + { 239671, true }, + { 239684, true }, + { 239698, true }, + { 239711, true }, + { 239739, true }, + { 239766, true }, + { 239794, true }, + { 239821, true }, + { 239833, true }, + { 239848, true }, + { 239873, true }, + { 239897, true }, + { 239911, true }, + { 239932, true }, + { 239946, true }, + { 239957, true }, + { 239975, true }, + { 239983, true }, + { 240001, true }, + { 240013, true }, + { 240030, true }, + { 240052, true }, + { 240077, true }, + { 240087, true }, + { 240108, true }, + { 240126, true }, + { 240151, true }, + { 240171, true }, + { 240192, true }, { 240212, true }, - { 240230, true }, - { 240238, true }, - { 240256, true }, - { 240268, true }, - { 240285, true }, - { 240307, true }, - { 240332, true }, - { 240342, true }, - { 240363, true }, - { 240381, true }, - { 240406, true }, - { 240426, true }, + { 240222, true }, + { 240235, false }, + { 240260, true }, + { 240269, true }, + { 240290, true }, + { 240316, true }, + { 240344, true }, + { 240364, true }, + { 240384, true }, + { 240409, true }, + { 240423, true }, + { 240436, true }, { 240447, true }, - { 240467, true }, - { 240477, true }, - { 240490, false }, - { 240515, true }, - { 240524, true }, - { 240545, true }, - { 240571, true }, + { 240455, true }, + { 240463, true }, + { 240472, true }, + { 240480, true }, + { 240494, true }, + { 240508, true }, + { 240517, true }, + { 240531, true }, + { 240544, true }, + { 240560, true }, + { 240573, true }, + { 240589, true }, { 240599, true }, - { 240619, true }, + { 240610, true }, + { 240621, true }, { 240639, true }, - { 240664, true }, - { 240678, true }, - { 240691, true }, - { 240702, true }, - { 240710, true }, - { 240718, true }, - { 240727, true }, - { 240735, true }, - { 240749, true }, - { 240763, true }, - { 240772, true }, - { 240786, true }, - { 240799, true }, - { 240815, true }, - { 240828, true }, - { 240844, true }, - { 240854, true }, - { 240865, true }, - { 240876, true }, - { 240894, true }, + { 240655, true }, + { 240665, false }, + { 240677, true }, + { 240693, true }, + { 240711, true }, + { 240723, true }, + { 240738, true }, + { 240759, true }, + { 240783, true }, + { 240795, true }, + { 240805, true }, + { 240821, true }, + { 240845, true }, + { 240857, true }, + { 240870, true }, + { 240877, true }, + { 240893, true }, { 240910, true }, - { 240920, false }, - { 240932, true }, + { 240924, true }, + { 240936, true }, { 240948, true }, - { 240966, true }, - { 240978, true }, - { 240993, true }, - { 241014, true }, - { 241038, true }, - { 241050, true }, - { 241060, true }, - { 241076, true }, - { 241100, true }, - { 241112, true }, - { 241125, true }, - { 241132, true }, - { 241148, true }, - { 241165, true }, - { 241179, true }, - { 241191, true }, + { 240961, true }, + { 240973, true }, + { 240979, true }, + { 240989, true }, + { 241003, true }, + { 241012, true }, + { 241027, true }, + { 241048, true }, + { 241061, true }, + { 241078, true }, + { 241095, true }, + { 241110, true }, + { 241127, true }, + { 241152, true }, + { 241178, true }, + { 241193, true }, { 241203, true }, - { 241216, true }, - { 241228, true }, - { 241234, true }, - { 241244, true }, - { 241258, true }, + { 241214, true }, + { 241223, true }, + { 241237, true }, + { 241246, true }, + { 241257, true }, { 241267, true }, - { 241282, true }, - { 241303, true }, - { 241316, true }, - { 241333, true }, - { 241350, true }, - { 241365, true }, - { 241382, true }, - { 241407, true }, - { 241433, true }, - { 241448, true }, - { 241458, true }, - { 241469, true }, - { 241478, true }, - { 241492, true }, - { 241501, true }, - { 241512, true }, - { 241522, true }, - { 241532, true }, - { 241548, true }, - { 241561, true }, - { 241573, true }, - { 241590, true }, - { 241608, true }, - { 241629, true }, - { 241646, true }, - { 241666, true }, - { 241687, true }, - { 241704, true }, - { 241720, true }, - { 241739, true }, - { 241751, true }, - { 241765, true }, - { 241780, true }, - { 241796, true }, - { 241810, true }, - { 241822, true }, - { 241836, true }, - { 241847, true }, - { 241859, true }, - { 241878, true }, - { 241894, true }, - { 241910, true }, - { 241926, true }, - { 241944, true }, - { 241963, true }, - { 241980, true }, - { 241998, true }, - { 242014, true }, - { 242024, true }, - { 242038, true }, - { 242056, true }, - { 242073, true }, - { 242086, true }, - { 242097, true }, - { 242116, true }, - { 242136, true }, - { 242153, true }, - { 242169, true }, - { 242187, true }, - { 242204, false }, - { 242221, true }, - { 242235, false }, - { 242256, true }, - { 242266, true }, - { 242283, true }, - { 242304, true }, - { 242314, true }, - { 242333, true }, + { 241277, true }, + { 241293, true }, + { 241306, true }, + { 241318, true }, + { 241335, true }, + { 241353, true }, + { 241374, true }, + { 241391, true }, + { 241411, true }, + { 241432, true }, + { 241449, true }, + { 241465, true }, + { 241484, true }, + { 241496, true }, + { 241510, true }, + { 241525, true }, + { 241541, true }, + { 241555, true }, + { 241567, true }, + { 241581, true }, + { 241592, true }, + { 241604, true }, + { 241623, true }, + { 241639, true }, + { 241655, true }, + { 241671, true }, + { 241689, true }, + { 241708, true }, + { 241725, true }, + { 241743, true }, + { 241759, true }, + { 241769, true }, + { 241783, true }, + { 241801, true }, + { 241818, true }, + { 241831, true }, + { 241842, true }, + { 241861, true }, + { 241881, true }, + { 241898, true }, + { 241914, true }, + { 241932, true }, + { 241949, false }, + { 241966, true }, + { 241980, false }, + { 242001, true }, + { 242011, true }, + { 242028, true }, + { 242049, true }, + { 242059, true }, + { 242078, true }, + { 242092, true }, + { 242107, true }, + { 242120, true }, + { 242128, true }, + { 242139, true }, + { 242154, true }, + { 242167, true }, + { 242178, true }, + { 242192, true }, + { 242210, true }, + { 242222, true }, + { 242235, true }, + { 242259, true }, + { 242268, true }, + { 242281, true }, + { 242296, true }, + { 242320, true }, { 242347, true }, - { 242362, true }, - { 242375, true }, - { 242383, true }, - { 242394, true }, - { 242409, true }, - { 242422, true }, - { 242433, true }, - { 242447, true }, - { 242465, true }, - { 242477, true }, - { 242490, true }, - { 242514, true }, - { 242523, true }, - { 242536, true }, - { 242551, true }, - { 242575, true }, - { 242602, true }, - { 242620, true }, - { 242632, true }, - { 242641, true }, - { 242652, true }, - { 242669, true }, - { 242692, true }, - { 242710, true }, - { 242723, true }, - { 242731, true }, - { 242739, true }, - { 242747, true }, - { 242757, true }, - { 242767, true }, - { 242776, true }, - { 242783, true }, - { 242802, true }, - { 242809, true }, - { 242824, true }, - { 242833, true }, - { 242845, true }, - { 242853, false }, - { 242873, true }, + { 242365, true }, + { 242377, true }, + { 242386, true }, + { 242397, true }, + { 242414, true }, + { 242437, true }, + { 242455, true }, + { 242468, true }, + { 242476, true }, + { 242484, true }, + { 242492, true }, + { 242502, true }, + { 242512, true }, + { 242521, true }, + { 242528, true }, + { 242547, true }, + { 242554, true }, + { 242569, true }, + { 242578, true }, + { 242590, true }, + { 242598, false }, + { 242618, true }, + { 242628, true }, + { 242645, true }, + { 242661, true }, + { 242679, true }, + { 242698, true }, + { 242709, true }, + { 242727, true }, + { 242744, true }, + { 242760, true }, + { 242782, true }, + { 242803, true }, + { 242816, true }, + { 242841, true }, + { 242860, true }, + { 242872, true }, { 242883, true }, - { 242900, true }, - { 242916, true }, - { 242934, true }, - { 242953, true }, - { 242964, true }, - { 242982, true }, - { 242999, true }, - { 243015, true }, - { 243037, true }, - { 243058, true }, - { 243071, true }, - { 243096, true }, - { 243115, true }, - { 243127, true }, - { 243138, true }, - { 243151, true }, - { 243170, true }, - { 243185, true }, - { 243200, true }, - { 243216, true }, - { 243239, true }, - { 243259, true }, - { 243272, true }, - { 243287, true }, - { 243300, true }, - { 243314, true }, - { 243328, true }, - { 243339, true }, - { 243347, true }, - { 243358, true }, - { 243368, true }, - { 243388, true }, - { 243407, true }, - { 243420, true }, - { 243432, true }, - { 243444, true }, - { 243462, true }, - { 243474, true }, - { 243491, true }, - { 243506, true }, - { 243518, true }, - { 243537, true }, - { 243548, true }, - { 243562, true }, - { 243586, true }, - { 243608, true }, - { 243618, true }, - { 243630, true }, - { 243640, true }, - { 243657, true }, - { 243667, true }, - { 243681, true }, - { 243697, true }, - { 243713, true }, - { 243744, true }, - { 243753, true }, - { 243767, true }, - { 243779, true }, - { 243791, true }, - { 243804, true }, - { 243821, true }, - { 243834, true }, - { 243851, true }, - { 243870, true }, - { 243882, true }, - { 243901, true }, - { 243917, true }, - { 243934, true }, - { 243947, true }, - { 243960, true }, - { 243970, true }, - { 243984, true }, - { 243998, true }, - { 244007, true }, - { 244017, true }, + { 242896, true }, + { 242915, true }, + { 242930, true }, + { 242945, true }, + { 242961, true }, + { 242984, true }, + { 243004, true }, + { 243017, true }, + { 243032, true }, + { 243045, true }, + { 243059, true }, + { 243073, true }, + { 243084, true }, + { 243092, true }, + { 243103, true }, + { 243113, true }, + { 243133, true }, + { 243152, true }, + { 243165, true }, + { 243177, true }, + { 243189, true }, + { 243207, true }, + { 243219, true }, + { 243236, true }, + { 243251, true }, + { 243263, true }, + { 243282, true }, + { 243293, true }, + { 243307, true }, + { 243331, true }, + { 243353, true }, + { 243363, true }, + { 243375, true }, + { 243385, true }, + { 243402, true }, + { 243412, true }, + { 243426, true }, + { 243442, true }, + { 243458, true }, + { 243489, true }, + { 243498, true }, + { 243512, true }, + { 243524, true }, + { 243536, true }, + { 243549, true }, + { 243566, true }, + { 243579, true }, + { 243596, true }, + { 243615, true }, + { 243627, true }, + { 243646, true }, + { 243662, true }, + { 243679, true }, + { 243692, true }, + { 243705, true }, + { 243715, true }, + { 243729, true }, + { 243743, true }, + { 243752, true }, + { 243762, true }, + { 243777, true }, + { 243787, true }, + { 243807, true }, + { 243823, true }, + { 243840, true }, + { 243853, true }, + { 243871, true }, + { 243888, true }, + { 243904, true }, + { 243921, true }, + { 243943, true }, + { 243954, true }, + { 243966, true }, + { 243980, true }, + { 243993, true }, + { 244013, true }, + { 244025, true }, { 244032, true }, - { 244042, true }, - { 244062, true }, - { 244078, true }, - { 244095, true }, - { 244108, true }, - { 244126, true }, - { 244143, true }, - { 244159, true }, - { 244176, true }, + { 244049, true }, + { 244071, true }, + { 244089, true }, + { 244101, true }, + { 244112, true }, + { 244122, true }, + { 244134, true }, + { 244145, true }, + { 244160, true }, + { 244181, true }, { 244198, true }, - { 244209, true }, - { 244221, true }, - { 244235, true }, - { 244248, true }, - { 244268, true }, - { 244280, true }, - { 244287, true }, - { 244304, true }, - { 244326, true }, - { 244344, true }, - { 244356, true }, - { 244367, true }, - { 244377, true }, - { 244389, true }, - { 244400, true }, - { 244415, true }, - { 244436, true }, + { 244206, true }, + { 244218, true }, + { 244229, true }, + { 244242, true }, + { 244254, true }, + { 244273, true }, + { 244299, true }, + { 244308, true }, + { 244323, true }, + { 244337, true }, + { 244353, true }, + { 244364, true }, + { 244379, true }, + { 244401, true }, + { 244414, true }, + { 244428, true }, { 244453, true }, - { 244461, true }, { 244473, true }, - { 244484, true }, - { 244497, true }, - { 244509, true }, - { 244528, true }, - { 244554, true }, - { 244563, true }, - { 244578, true }, + { 244489, true }, + { 244504, true }, + { 244526, true }, + { 244544, true }, + { 244558, true }, + { 244571, true }, + { 244581, true }, { 244592, true }, - { 244608, true }, - { 244619, true }, - { 244634, true }, - { 244656, true }, - { 244669, true }, - { 244683, true }, - { 244708, true }, - { 244728, true }, - { 244744, true }, - { 244759, true }, - { 244781, true }, - { 244799, true }, - { 244813, true }, - { 244826, true }, - { 244836, true }, - { 244847, true }, - { 244862, true }, - { 244872, true }, - { 244884, true }, - { 244897, true }, - { 244910, true }, - { 244922, true }, - { 244941, true }, - { 244959, true }, - { 244975, true }, - { 244990, true }, - { 245007, true }, - { 245022, true }, - { 245032, false }, - { 245055, true }, - { 245071, true }, - { 245084, true }, - { 245095, true }, - { 245105, true }, - { 245121, true }, + { 244607, true }, + { 244617, true }, + { 244629, true }, + { 244642, true }, + { 244655, true }, + { 244667, true }, + { 244686, true }, + { 244704, true }, + { 244720, true }, + { 244735, true }, + { 244752, true }, + { 244767, true }, + { 244777, false }, + { 244800, true }, + { 244816, true }, + { 244829, true }, + { 244840, true }, + { 244850, true }, + { 244866, true }, + { 244883, true }, + { 244903, true }, + { 244934, true }, + { 244955, true }, + { 244976, true }, + { 244992, true }, + { 245017, true }, + { 245036, true }, + { 245057, true }, + { 245069, true }, + { 245080, true }, + { 245097, true }, + { 245115, true }, + { 245126, true }, { 245138, true }, - { 245158, true }, - { 245189, true }, - { 245210, true }, - { 245231, true }, - { 245247, true }, + { 245153, true }, + { 245165, true }, + { 245178, true }, + { 245186, true }, + { 245197, true }, + { 245206, true }, + { 245215, true }, + { 245222, true }, + { 245230, true }, + { 245242, true }, + { 245258, true }, { 245272, true }, - { 245291, true }, - { 245312, true }, - { 245324, true }, - { 245335, true }, - { 245352, true }, - { 245370, true }, + { 245283, true }, + { 245295, true }, + { 245307, false }, + { 245314, true }, + { 245326, true }, + { 245333, true }, + { 245341, true }, + { 245358, true }, { 245381, true }, - { 245393, true }, - { 245408, true }, - { 245420, true }, - { 245433, true }, + { 245399, true }, + { 245412, false }, + { 245421, true }, + { 245430, true }, { 245441, true }, - { 245452, true }, - { 245461, true }, - { 245470, true }, - { 245477, true }, - { 245485, true }, - { 245497, true }, - { 245513, true }, - { 245527, true }, - { 245538, true }, - { 245550, true }, - { 245562, false }, - { 245569, true }, - { 245581, true }, + { 245448, true }, + { 245458, true }, + { 245471, true }, + { 245488, true }, + { 245508, true }, + { 245517, true }, + { 245525, true }, + { 245535, true }, + { 245549, true }, + { 245568, false }, { 245588, true }, - { 245596, true }, - { 245613, true }, - { 245636, true }, - { 245654, true }, - { 245667, false }, - { 245676, true }, - { 245685, true }, - { 245696, true }, + { 245598, true }, + { 245619, true }, + { 245628, true }, + { 245639, true }, + { 245655, true }, + { 245669, true }, + { 245686, true }, { 245703, true }, - { 245713, true }, + { 245714, true }, { 245726, true }, - { 245743, true }, - { 245763, true }, - { 245772, true }, + { 245755, false }, + { 245767, true }, { 245780, true }, - { 245790, true }, - { 245804, true }, - { 245823, false }, + { 245801, true }, + { 245818, true }, + { 245829, true }, { 245843, true }, - { 245853, true }, - { 245874, true }, - { 245883, true }, + { 245855, true }, + { 245869, true }, + { 245877, true }, { 245894, true }, - { 245910, true }, - { 245924, true }, - { 245941, true }, - { 245958, true }, - { 245969, true }, - { 245981, true }, - { 246010, false }, - { 246022, true }, + { 245906, true }, + { 245921, true }, + { 245935, true }, + { 245943, true }, + { 245951, true }, + { 245959, true }, + { 245966, true }, + { 245978, true }, + { 245986, true }, + { 245994, true }, + { 246007, true }, + { 246019, true }, { 246035, true }, - { 246056, true }, - { 246073, true }, - { 246084, true }, - { 246098, true }, - { 246110, true }, - { 246124, true }, - { 246132, true }, - { 246149, true }, - { 246161, true }, + { 246047, true }, + { 246061, true }, + { 246078, true }, + { 246096, true }, + { 246109, true }, + { 246119, true }, + { 246128, false }, + { 246138, false }, + { 246150, true }, + { 246163, true }, { 246176, true }, - { 246190, true }, - { 246198, true }, - { 246206, true }, - { 246214, true }, - { 246221, true }, - { 246233, true }, - { 246241, true }, - { 246249, true }, + { 246197, true }, + { 246208, true }, + { 246217, true }, + { 246240, true }, + { 246254, true }, { 246262, true }, - { 246274, true }, - { 246290, true }, - { 246302, true }, - { 246316, true }, - { 246333, true }, + { 246275, true }, + { 246291, true }, + { 246308, true }, + { 246321, true }, + { 246339, true }, { 246351, true }, - { 246364, true }, + { 246363, true }, { 246374, true }, - { 246383, false }, - { 246393, false }, - { 246405, true }, - { 246418, true }, - { 246431, true }, - { 246452, true }, - { 246463, true }, - { 246472, true }, - { 246495, true }, - { 246509, true }, - { 246517, true }, - { 246530, true }, - { 246546, true }, - { 246563, true }, - { 246576, true }, - { 246594, true }, - { 246606, true }, - { 246618, true }, - { 246629, true }, - { 246648, true }, - { 246659, true }, - { 246681, true }, - { 246703, true }, + { 246393, true }, + { 246404, true }, + { 246426, true }, + { 246448, true }, + { 246468, true }, + { 246486, false }, + { 246502, true }, + { 246525, false }, + { 246534, true }, + { 246542, true }, + { 246557, true }, + { 246568, true }, + { 246587, true }, + { 246603, true }, + { 246617, true }, + { 246633, true }, + { 246653, false }, + { 246678, true }, + { 246695, true }, + { 246713, true }, { 246723, true }, - { 246741, false }, - { 246757, true }, - { 246780, false }, - { 246789, true }, - { 246797, true }, - { 246812, true }, - { 246823, true }, - { 246842, true }, - { 246858, true }, - { 246872, true }, - { 246888, true }, - { 246908, false }, - { 246933, true }, - { 246950, true }, - { 246968, true }, - { 246978, true }, - { 246986, true }, - { 246999, true }, - { 247006, true }, - { 247018, true }, - { 247031, true }, - { 247041, true }, - { 247049, true }, - { 247065, true }, + { 246731, true }, + { 246744, true }, + { 246751, true }, + { 246763, true }, + { 246776, true }, + { 246786, true }, + { 246794, true }, + { 246810, true }, + { 246818, true }, + { 246826, true }, + { 246834, true }, + { 246843, true }, + { 246854, true }, + { 246861, true }, + { 246868, true }, + { 246879, false }, + { 246902, true }, + { 246921, true }, + { 246946, true }, + { 246963, true }, + { 246975, true }, + { 246987, true }, + { 247001, true }, + { 247011, true }, + { 247022, true }, + { 247037, true }, + { 247051, true }, + { 247064, true }, { 247073, true }, - { 247081, true }, - { 247089, true }, - { 247098, true }, - { 247109, true }, - { 247116, true }, - { 247123, true }, - { 247134, false }, - { 247157, true }, - { 247176, true }, - { 247201, true }, + { 247087, true }, + { 247096, true }, + { 247125, true }, + { 247147, true }, + { 247162, true }, + { 247173, true }, + { 247186, true }, + { 247208, true }, { 247218, true }, - { 247230, true }, - { 247242, true }, + { 247239, true }, { 247256, true }, - { 247266, true }, { 247277, true }, - { 247292, true }, - { 247306, true }, - { 247319, true }, - { 247328, true }, + { 247291, true }, + { 247307, true }, + { 247320, true }, + { 247332, true }, { 247342, true }, - { 247351, true }, - { 247380, true }, - { 247402, true }, - { 247417, true }, + { 247355, true }, + { 247379, true }, + { 247398, true }, + { 247410, true }, { 247428, true }, - { 247441, true }, - { 247463, true }, - { 247473, true }, - { 247494, true }, - { 247511, true }, - { 247532, true }, - { 247546, true }, - { 247562, true }, - { 247575, true }, - { 247587, true }, - { 247597, true }, - { 247610, true }, - { 247634, true }, - { 247653, true }, - { 247665, true }, - { 247683, true }, - { 247692, false }, - { 247709, true }, - { 247727, true }, - { 247736, true }, - { 247753, true }, - { 247771, true }, - { 247785, true }, - { 247798, true }, - { 247820, false }, - { 247841, true }, - { 247857, true }, - { 247881, true }, + { 247437, false }, + { 247454, true }, + { 247472, true }, + { 247481, true }, + { 247498, true }, + { 247516, true }, + { 247530, true }, + { 247543, true }, + { 247565, false }, + { 247586, true }, + { 247602, true }, + { 247626, true }, + { 247636, true }, + { 247655, true }, + { 247670, true }, + { 247683, false }, + { 247694, true }, + { 247713, true }, + { 247726, true }, + { 247738, true }, + { 247758, true }, + { 247783, true }, + { 247793, true }, + { 247804, true }, + { 247816, true }, + { 247831, true }, + { 247844, true }, + { 247860, true }, + { 247876, true }, { 247891, true }, - { 247910, true }, - { 247925, true }, - { 247938, false }, - { 247949, true }, - { 247968, true }, - { 247981, true }, - { 247993, true }, - { 248013, true }, - { 248038, true }, - { 248048, true }, - { 248059, true }, - { 248071, true }, - { 248086, true }, - { 248099, true }, - { 248115, true }, + { 247906, true }, + { 247923, true }, + { 247943, true }, + { 247956, true }, + { 247984, true }, + { 248001, false }, + { 248010, true }, + { 248029, true }, + { 248046, false }, + { 248061, true }, + { 248075, true }, + { 248085, true }, + { 248098, true }, + { 248114, true }, { 248131, true }, - { 248146, true }, - { 248161, true }, - { 248178, true }, - { 248198, true }, - { 248211, true }, - { 248239, true }, - { 248256, false }, - { 248265, true }, - { 248284, true }, - { 248301, false }, - { 248316, true }, - { 248330, true }, - { 248340, true }, - { 248353, true }, - { 248369, true }, - { 248386, true }, - { 248402, true }, - { 248418, true }, - { 248436, true }, - { 248457, true }, - { 248467, true }, + { 248147, true }, + { 248163, true }, + { 248181, true }, + { 248202, true }, + { 248212, true }, + { 248225, true }, + { 248237, true }, + { 248250, true }, + { 248263, true }, + { 248272, true }, + { 248296, true }, + { 248320, true }, + { 248334, true }, + { 248345, true }, + { 248361, true }, + { 248373, true }, + { 248389, true }, + { 248406, true }, + { 248423, true }, + { 248431, true }, + { 248448, true }, + { 248465, true }, { 248480, true }, - { 248492, true }, - { 248505, true }, - { 248518, true }, - { 248527, true }, - { 248551, true }, - { 248575, true }, - { 248589, true }, - { 248600, true }, - { 248616, true }, - { 248628, true }, - { 248644, true }, - { 248661, true }, - { 248678, true }, - { 248686, true }, - { 248703, true }, + { 248499, false }, + { 248508, true }, + { 248519, true }, + { 248541, true }, + { 248554, true }, + { 248567, false }, + { 248582, true }, + { 248604, true }, + { 248619, true }, + { 248634, true }, + { 248646, true }, + { 248665, false }, + { 248688, true }, + { 248704, true }, { 248720, true }, - { 248735, true }, - { 248754, false }, - { 248763, true }, - { 248774, true }, - { 248796, true }, - { 248809, true }, - { 248822, false }, - { 248837, true }, - { 248859, true }, - { 248874, true }, - { 248889, true }, - { 248901, true }, - { 248920, false }, - { 248943, true }, - { 248959, true }, - { 248975, true }, - { 248993, true }, - { 249011, false }, - { 249031, true }, - { 249043, true }, - { 249056, true }, - { 249072, true }, - { 249083, true }, - { 249099, true }, - { 249108, true }, - { 249127, true }, - { 249138, true }, - { 249148, true }, - { 249157, true }, - { 249174, true }, - { 249188, true }, - { 249206, true }, - { 249218, true }, - { 249237, true }, - { 249249, true }, - { 249261, true }, - { 249280, true }, - { 249297, true }, - { 249309, true }, + { 248738, true }, + { 248756, false }, + { 248776, true }, + { 248788, true }, + { 248801, true }, + { 248817, true }, + { 248828, true }, + { 248844, true }, + { 248853, true }, + { 248872, true }, + { 248883, true }, + { 248893, true }, + { 248902, true }, + { 248919, true }, + { 248937, true }, + { 248949, true }, + { 248968, true }, + { 248980, true }, + { 248992, true }, + { 249009, true }, + { 249021, true }, + { 249042, true }, + { 249054, true }, + { 249065, true }, + { 249078, true }, + { 249097, true }, + { 249118, true }, + { 249128, true }, + { 249137, true }, + { 249155, true }, + { 249169, true }, + { 249182, true }, + { 249190, true }, + { 249204, true }, + { 249220, true }, + { 249244, false }, + { 249262, true }, + { 249280, false }, + { 249300, true }, + { 249318, true }, { 249330, true }, - { 249342, true }, - { 249353, true }, - { 249366, true }, - { 249385, true }, - { 249406, true }, - { 249416, true }, - { 249425, true }, - { 249443, true }, - { 249457, true }, - { 249470, true }, - { 249478, true }, - { 249492, true }, - { 249508, true }, - { 249532, false }, - { 249550, true }, - { 249568, false }, - { 249588, true }, - { 249606, true }, - { 249618, true }, + { 249347, true }, + { 249370, true }, + { 249389, true }, + { 249409, true }, + { 249422, true }, + { 249434, true }, + { 249444, true }, + { 249460, true }, + { 249475, true }, + { 249483, true }, + { 249505, true }, + { 249525, true }, + { 249533, true }, + { 249547, true }, + { 249563, true }, + { 249573, true }, + { 249587, true }, + { 249596, true }, + { 249608, true }, + { 249617, true }, + { 249626, false }, { 249635, true }, + { 249647, true }, { 249658, true }, - { 249677, true }, - { 249697, true }, - { 249710, true }, - { 249722, true }, - { 249732, true }, - { 249748, true }, + { 249668, true }, + { 249689, true }, + { 249707, true }, + { 249720, true }, + { 249746, true }, { 249763, true }, - { 249771, true }, - { 249793, true }, - { 249813, true }, - { 249821, true }, - { 249835, true }, - { 249851, true }, - { 249861, true }, - { 249875, true }, - { 249884, true }, - { 249896, true }, - { 249905, true }, - { 249914, false }, - { 249923, true }, - { 249935, true }, - { 249946, true }, - { 249956, true }, - { 249977, true }, - { 249995, true }, - { 250008, true }, - { 250034, true }, - { 250051, true }, - { 250072, true }, - { 250090, true }, - { 250108, true }, - { 250124, true }, - { 250137, true }, - { 250147, true }, - { 250157, true }, + { 249784, true }, + { 249802, true }, + { 249820, true }, + { 249836, true }, + { 249849, true }, + { 249859, true }, + { 249869, true }, + { 249886, true }, + { 249903, true }, + { 249912, true }, + { 249926, true }, + { 249944, true }, + { 249958, true }, + { 249970, true }, + { 249989, true }, + { 249999, true }, + { 250016, true }, + { 250038, true }, + { 250060, true }, + { 250074, true }, + { 250088, true }, + { 250106, true }, + { 250120, true }, + { 250138, true }, + { 250153, true }, + { 250167, true }, { 250174, true }, - { 250191, true }, - { 250200, true }, - { 250214, true }, - { 250232, true }, - { 250246, true }, - { 250258, true }, - { 250277, true }, - { 250287, true }, - { 250304, true }, - { 250326, true }, - { 250348, true }, - { 250362, true }, - { 250376, true }, - { 250394, true }, - { 250408, true }, - { 250426, true }, - { 250441, true }, - { 250455, true }, - { 250462, true }, - { 250474, true }, - { 250480, true }, - { 250486, true }, - { 250494, true }, - { 250506, true }, - { 250527, true }, - { 250539, true }, - { 250548, true }, - { 250558, true }, - { 250573, true }, - { 250588, true }, - { 250599, true }, - { 250611, true }, - { 250628, true }, - { 250646, true }, - { 250659, true }, - { 250678, true }, - { 250694, true }, + { 250186, true }, + { 250192, true }, + { 250198, true }, + { 250206, true }, + { 250218, true }, + { 250239, true }, + { 250251, true }, + { 250260, true }, + { 250270, true }, + { 250285, true }, + { 250300, true }, + { 250311, true }, + { 250323, true }, + { 250340, true }, + { 250358, true }, + { 250371, true }, + { 250390, true }, + { 250406, true }, + { 250417, true }, + { 250430, true }, + { 250448, true }, + { 250463, true }, + { 250485, true }, + { 250499, true }, + { 250521, true }, + { 250535, true }, + { 250554, true }, + { 250570, true }, + { 250587, true }, + { 250597, true }, + { 250605, true }, + { 250622, true }, + { 250639, true }, + { 250653, true }, + { 250665, true }, + { 250677, true }, { 250705, true }, - { 250718, true }, - { 250736, true }, - { 250751, true }, - { 250773, true }, - { 250787, true }, - { 250809, true }, - { 250823, true }, - { 250842, true }, - { 250858, true }, - { 250875, true }, - { 250885, true }, - { 250893, true }, - { 250910, true }, - { 250927, true }, - { 250941, true }, - { 250953, true }, - { 250965, true }, - { 250993, true }, - { 251005, true }, - { 251019, true }, - { 251035, true }, - { 251049, false }, - { 251062, true }, - { 251076, true }, - { 251094, true }, - { 251106, true }, - { 251118, true }, - { 251137, true }, + { 250717, true }, + { 250731, true }, + { 250747, true }, + { 250761, false }, + { 250774, true }, + { 250788, true }, + { 250806, true }, + { 250818, true }, + { 250830, true }, + { 250849, true }, + { 250868, true }, + { 250881, true }, + { 250898, true }, + { 250914, true }, + { 250926, true }, + { 250937, true }, + { 250950, true }, + { 250964, true }, + { 250977, true }, + { 250989, true }, + { 251002, true }, + { 251018, true }, + { 251031, true }, + { 251051, true }, + { 251064, true }, + { 251079, true }, + { 251107, true }, + { 251117, true }, + { 251128, true }, + { 251141, true }, { 251156, true }, { 251169, true }, - { 251186, true }, - { 251202, true }, - { 251214, true }, - { 251225, true }, - { 251238, true }, - { 251252, true }, - { 251265, true }, - { 251277, true }, + { 251179, true }, + { 251191, true }, + { 251205, true }, + { 251219, true }, + { 251234, true }, + { 251248, true }, + { 251262, true }, + { 251276, true }, { 251290, true }, { 251306, true }, - { 251319, true }, - { 251339, true }, - { 251352, true }, - { 251367, true }, - { 251395, true }, - { 251405, true }, + { 251329, true }, + { 251353, true }, + { 251369, true }, + { 251384, true }, { 251416, true }, - { 251429, true }, - { 251444, true }, - { 251457, true }, + { 251440, true }, + { 251455, true }, { 251467, true }, { 251479, true }, - { 251493, true }, - { 251507, true }, - { 251522, true }, - { 251536, true }, - { 251550, true }, - { 251564, true }, - { 251578, true }, - { 251594, true }, - { 251617, true }, - { 251641, true }, - { 251657, true }, - { 251672, true }, - { 251704, true }, - { 251728, true }, - { 251743, true }, - { 251755, true }, - { 251767, true }, - { 251789, true }, - { 251808, true }, - { 251826, true }, - { 251839, true }, - { 251856, true }, - { 251867, true }, - { 251877, true }, - { 251889, true }, - { 251909, true }, - { 251921, true }, - { 251933, true }, - { 251950, true }, - { 251968, true }, - { 251985, true }, - { 252000, true }, - { 252019, true }, - { 252032, true }, - { 252048, true }, - { 252069, true }, - { 252087, true }, - { 252099, true }, - { 252115, true }, + { 251501, true }, + { 251520, true }, + { 251538, true }, + { 251551, true }, + { 251568, true }, + { 251579, true }, + { 251589, true }, + { 251601, true }, + { 251621, true }, + { 251633, true }, + { 251645, true }, + { 251662, true }, + { 251680, true }, + { 251697, true }, + { 251712, true }, + { 251731, true }, + { 251744, true }, + { 251760, true }, + { 251781, true }, + { 251799, true }, + { 251811, true }, + { 251827, true }, + { 251840, true }, + { 251860, true }, + { 251882, true }, + { 251899, true }, + { 251914, true }, + { 251930, true }, + { 251951, true }, + { 251971, true }, + { 251984, true }, + { 251997, true }, + { 252018, true }, + { 252033, true }, + { 252045, true }, + { 252059, true }, + { 252077, true }, + { 252092, true }, + { 252109, true }, { 252128, true }, - { 252148, true }, - { 252170, true }, + { 252141, true }, + { 252160, true }, + { 252175, true }, { 252187, true }, - { 252202, true }, - { 252218, true }, - { 252239, true }, - { 252259, true }, - { 252272, true }, - { 252285, true }, - { 252306, true }, - { 252321, true }, - { 252333, true }, - { 252347, true }, - { 252365, true }, - { 252380, true }, - { 252397, true }, - { 252416, true }, + { 252204, true }, + { 252219, true }, + { 252236, true }, + { 252254, true }, + { 252265, true }, + { 252277, true }, + { 252299, true }, + { 252308, true }, + { 252320, true }, + { 252334, true }, + { 252346, true }, + { 252361, true }, + { 252379, true }, + { 252394, true }, + { 252410, true }, { 252429, true }, - { 252448, true }, - { 252463, true }, + { 252445, true }, + { 252462, true }, { 252475, true }, - { 252492, true }, - { 252507, true }, - { 252524, true }, - { 252542, true }, + { 252494, true }, + { 252512, true }, + { 252535, true }, { 252553, true }, - { 252565, true }, - { 252587, true }, - { 252596, true }, - { 252608, true }, - { 252622, true }, - { 252634, true }, - { 252649, true }, - { 252667, true }, - { 252682, true }, - { 252698, true }, + { 252560, true }, + { 252577, true }, + { 252591, true }, + { 252597, true }, + { 252605, true }, + { 252623, true }, + { 252646, true }, + { 252655, true }, + { 252663, true }, + { 252671, true }, + { 252680, false }, + { 252700, true }, { 252717, true }, - { 252733, true }, - { 252750, true }, - { 252763, true }, - { 252782, true }, - { 252800, true }, - { 252823, true }, - { 252841, true }, - { 252848, true }, - { 252865, true }, - { 252879, true }, - { 252885, true }, - { 252893, true }, - { 252911, true }, - { 252934, true }, - { 252943, true }, - { 252951, true }, - { 252959, true }, - { 252968, false }, - { 252988, true }, - { 253005, true }, - { 253022, true }, - { 253043, true }, - { 253055, true }, - { 253074, true }, - { 253083, false }, - { 253100, true }, - { 253119, true }, - { 253130, true }, - { 253149, true }, - { 253166, true }, - { 253189, true }, - { 253215, true }, - { 253226, true }, + { 252734, true }, + { 252755, true }, + { 252767, true }, + { 252786, true }, + { 252795, false }, + { 252812, true }, + { 252831, true }, + { 252842, true }, + { 252861, true }, + { 252878, true }, + { 252901, true }, + { 252927, true }, + { 252938, true }, + { 252956, true }, + { 252976, true }, + { 252993, true }, + { 253012, true }, + { 253030, true }, + { 253048, true }, + { 253070, true }, + { 253079, true }, + { 253092, true }, + { 253099, true }, + { 253106, true }, + { 253117, true }, + { 253129, true }, + { 253140, false }, + { 253160, true }, + { 253168, true }, + { 253179, true }, + { 253190, true }, + { 253201, true }, + { 253212, true }, + { 253225, true }, { 253244, true }, - { 253264, true }, - { 253281, true }, - { 253300, true }, - { 253318, true }, - { 253336, true }, - { 253358, true }, - { 253367, true }, - { 253380, true }, - { 253387, true }, - { 253394, true }, - { 253405, true }, + { 253257, true }, + { 253284, true }, + { 253301, true }, + { 253319, true }, + { 253334, true }, + { 253357, true }, + { 253374, true }, + { 253385, true }, + { 253402, true }, { 253417, true }, - { 253428, false }, - { 253448, true }, - { 253456, true }, - { 253467, true }, - { 253478, true }, - { 253489, true }, - { 253500, true }, - { 253513, true }, - { 253532, true }, - { 253545, true }, - { 253572, true }, - { 253589, true }, - { 253607, true }, - { 253622, true }, - { 253645, true }, - { 253662, true }, - { 253673, true }, - { 253690, true }, - { 253705, true }, - { 253716, true }, - { 253731, true }, - { 253746, true }, - { 253759, true }, - { 253770, true }, - { 253798, true }, - { 253826, true }, - { 253844, true }, - { 253870, true }, - { 253899, true }, - { 253911, true }, - { 253924, false }, - { 253944, true }, - { 253962, true }, - { 253977, true }, - { 253998, false }, - { 254014, true }, - { 254030, true }, - { 254048, true }, - { 254064, true }, - { 254079, true }, - { 254097, true }, - { 254113, true }, - { 254125, true }, - { 254137, false }, - { 254159, true }, - { 254181, true }, - { 254196, true }, - { 254216, true }, - { 254230, true }, - { 254251, true }, - { 254269, true }, - { 254285, true }, - { 254304, true }, - { 254324, true }, - { 254345, true }, - { 254364, true }, - { 254384, true }, - { 254403, true }, - { 254418, true }, - { 254435, true }, - { 254453, false }, - { 254471, true }, - { 254491, true }, - { 254510, true }, - { 254529, true }, - { 254545, true }, - { 254565, true }, - { 254586, true }, - { 254613, true }, - { 254625, true }, - { 254636, true }, + { 253428, true }, + { 253443, true }, + { 253458, true }, + { 253471, true }, + { 253482, true }, + { 253510, true }, + { 253538, true }, + { 253556, true }, + { 253582, true }, + { 253611, true }, + { 253623, true }, + { 253636, false }, + { 253656, true }, + { 253674, true }, + { 253689, true }, + { 253710, false }, + { 253726, true }, + { 253742, true }, + { 253760, true }, + { 253776, true }, + { 253791, true }, + { 253809, true }, + { 253825, true }, + { 253837, true }, + { 253849, false }, + { 253871, true }, + { 253893, true }, + { 253908, true }, + { 253928, true }, + { 253942, true }, + { 253963, true }, + { 253981, true }, + { 253997, true }, + { 254016, true }, + { 254036, true }, + { 254057, true }, + { 254076, true }, + { 254096, true }, + { 254115, true }, + { 254130, true }, + { 254147, true }, + { 254165, false }, + { 254183, true }, + { 254203, true }, + { 254222, true }, + { 254241, true }, + { 254257, true }, + { 254277, true }, + { 254298, true }, + { 254325, true }, + { 254337, true }, + { 254348, true }, + { 254359, true }, + { 254373, true }, + { 254388, true }, + { 254400, true }, + { 254411, true }, + { 254422, true }, + { 254436, true }, + { 254447, true }, + { 254459, true }, + { 254470, true }, + { 254479, true }, + { 254494, true }, + { 254504, true }, + { 254517, true }, + { 254536, true }, + { 254554, true }, + { 254574, true }, + { 254590, true }, + { 254599, true }, + { 254609, true }, + { 254630, false }, { 254647, true }, - { 254661, true }, - { 254676, true }, - { 254688, true }, - { 254699, true }, - { 254710, true }, - { 254724, true }, - { 254735, true }, - { 254747, true }, - { 254758, true }, - { 254767, true }, - { 254782, true }, - { 254792, true }, - { 254805, true }, - { 254824, true }, - { 254842, true }, - { 254862, true }, - { 254878, true }, - { 254887, true }, - { 254897, true }, - { 254918, false }, - { 254935, true }, - { 254955, true }, - { 254969, true }, - { 254978, true }, - { 254991, true }, - { 255005, true }, - { 255024, true }, - { 255041, true }, - { 255053, true }, - { 255076, true }, - { 255090, true }, - { 255104, true }, - { 255128, true }, - { 255140, true }, - { 255157, true }, - { 255172, true }, - { 255182, true }, - { 255199, true }, - { 255215, true }, - { 255232, true }, - { 255244, true }, - { 255255, true }, - { 255271, true }, - { 255284, true }, - { 255298, false }, - { 255314, true }, - { 255328, true }, - { 255339, true }, - { 255353, true }, - { 255369, true }, - { 255384, true }, - { 255400, true }, - { 255412, true }, - { 255425, true }, - { 255434, true }, - { 255447, true }, - { 255464, true }, - { 255476, true }, - { 255488, true }, - { 255500, true }, - { 255519, true }, - { 255528, true }, - { 255540, true }, - { 255555, true }, - { 255567, true }, - { 255584, true }, - { 255596, true }, - { 255612, true }, - { 255628, true }, + { 254667, true }, + { 254681, true }, + { 254690, true }, + { 254703, true }, + { 254717, true }, + { 254736, true }, + { 254753, true }, + { 254765, true }, + { 254788, true }, + { 254802, true }, + { 254816, true }, + { 254840, true }, + { 254852, true }, + { 254869, true }, + { 254884, true }, + { 254894, true }, + { 254911, true }, + { 254927, true }, + { 254944, true }, + { 254956, true }, + { 254967, true }, + { 254983, true }, + { 254996, true }, + { 255010, false }, + { 255026, true }, + { 255040, true }, + { 255051, true }, + { 255065, true }, + { 255081, true }, + { 255096, true }, + { 255112, true }, + { 255124, true }, + { 255137, true }, + { 255146, true }, + { 255159, true }, + { 255176, true }, + { 255188, true }, + { 255200, true }, + { 255212, true }, + { 255231, true }, + { 255240, true }, + { 255252, true }, + { 255267, true }, + { 255279, true }, + { 255296, true }, + { 255308, true }, + { 255324, true }, + { 255340, true }, + { 255361, true }, + { 255377, true }, + { 255395, true }, + { 255411, true }, + { 255427, true }, + { 255442, true }, + { 255454, true }, + { 255469, true }, + { 255479, true }, + { 255494, true }, + { 255506, true }, + { 255518, true }, + { 255535, true }, + { 255550, true }, + { 255561, true }, + { 255578, true }, + { 255589, true }, + { 255600, true }, + { 255611, true }, + { 255624, true }, + { 255638, true }, { 255649, true }, - { 255665, true }, - { 255683, true }, - { 255699, true }, - { 255715, true }, - { 255735, true }, - { 255750, true }, - { 255762, true }, - { 255777, true }, - { 255787, true }, - { 255802, true }, - { 255814, true }, - { 255826, true }, - { 255843, true }, - { 255858, true }, - { 255869, true }, - { 255886, true }, - { 255897, true }, - { 255908, true }, - { 255919, true }, - { 255932, true }, - { 255946, true }, - { 255957, true }, - { 255970, true }, - { 255988, true }, - { 255998, true }, - { 256011, true }, - { 256028, true }, - { 256042, true }, - { 256051, true }, - { 256066, true }, - { 256080, true }, - { 256093, true }, - { 256107, true }, - { 256120, true }, - { 256128, true }, + { 255662, true }, + { 255680, true }, + { 255690, true }, + { 255703, true }, + { 255720, true }, + { 255734, true }, + { 255743, true }, + { 255758, true }, + { 255772, true }, + { 255785, true }, + { 255799, true }, + { 255812, true }, + { 255820, true }, + { 255839, true }, + { 255857, true }, + { 255874, true }, + { 255891, true }, + { 255911, true }, + { 255928, true }, + { 255943, true }, + { 255958, true }, + { 255972, true }, + { 255990, true }, + { 256006, true }, + { 256022, true }, + { 256036, true }, + { 256052, true }, + { 256074, true }, + { 256088, true }, + { 256098, true }, + { 256115, true }, + { 256134, true }, { 256147, true }, - { 256165, true }, - { 256182, true }, - { 256199, true }, - { 256219, true }, - { 256236, true }, - { 256251, true }, - { 256266, true }, - { 256280, true }, - { 256298, true }, + { 256161, false }, + { 256179, true }, + { 256194, true }, + { 256211, true }, + { 256226, true }, + { 256243, false }, + { 256269, true }, + { 256281, true }, + { 256296, true }, { 256314, true }, - { 256330, true }, - { 256344, true }, + { 256327, true }, + { 256336, true }, + { 256349, true }, { 256360, true }, - { 256382, true }, - { 256396, true }, + { 256372, true }, + { 256391, true }, { 256406, true }, - { 256423, true }, - { 256442, true }, - { 256455, true }, - { 256469, false }, - { 256487, true }, - { 256502, true }, - { 256519, true }, - { 256534, true }, - { 256551, false }, - { 256577, true }, - { 256589, true }, - { 256604, true }, - { 256622, true }, - { 256635, true }, - { 256644, true }, - { 256657, true }, - { 256668, true }, - { 256680, true }, - { 256699, true }, - { 256714, true }, - { 256724, true }, - { 256740, true }, - { 256752, true }, - { 256774, true }, - { 256787, false }, - { 256798, true }, - { 256826, true }, - { 256843, true }, - { 256874, true }, - { 256884, true }, - { 256895, true }, - { 256913, true }, - { 256924, true }, - { 256937, true }, - { 256949, true }, + { 256416, true }, + { 256432, true }, + { 256444, true }, + { 256466, true }, + { 256479, false }, + { 256490, true }, + { 256518, true }, + { 256535, true }, + { 256566, true }, + { 256576, true }, + { 256587, true }, + { 256605, true }, + { 256616, true }, + { 256629, true }, + { 256641, true }, + { 256661, true }, + { 256672, true }, + { 256684, true }, + { 256698, true }, + { 256710, true }, + { 256718, true }, + { 256726, true }, + { 256738, true }, + { 256756, true }, + { 256767, false }, + { 256787, true }, + { 256805, true }, + { 256825, true }, + { 256840, true }, + { 256855, true }, + { 256872, false }, + { 256886, true }, + { 256906, true }, + { 256926, true }, + { 256946, true }, + { 256957, true }, { 256969, true }, - { 256980, true }, - { 256992, true }, - { 257006, true }, - { 257018, true }, - { 257026, true }, - { 257034, true }, - { 257046, true }, - { 257064, true }, - { 257075, false }, - { 257095, true }, - { 257113, true }, - { 257133, true }, - { 257148, true }, - { 257163, true }, - { 257180, false }, - { 257194, true }, - { 257214, true }, - { 257234, true }, - { 257254, true }, - { 257265, true }, - { 257282, true }, - { 257299, true }, - { 257316, true }, - { 257341, true }, - { 257362, true }, - { 257380, true }, - { 257400, true }, - { 257415, true }, - { 257432, true }, - { 257448, true }, + { 256986, true }, + { 257003, true }, + { 257020, true }, + { 257045, true }, + { 257066, true }, + { 257084, true }, + { 257104, true }, + { 257119, true }, + { 257136, true }, + { 257152, true }, + { 257169, true }, + { 257184, true }, + { 257200, true }, + { 257219, true }, + { 257236, true }, + { 257253, true }, + { 257272, true }, + { 257287, true }, + { 257312, true }, + { 257325, true }, + { 257336, true }, + { 257347, true }, + { 257357, true }, + { 257371, false }, + { 257386, true }, + { 257399, false }, + { 257427, true }, + { 257439, true }, + { 257452, true }, { 257465, true }, - { 257480, true }, - { 257496, true }, - { 257515, true }, - { 257532, true }, - { 257549, true }, - { 257568, true }, - { 257583, true }, - { 257608, true }, - { 257621, true }, - { 257632, true }, - { 257643, true }, - { 257653, true }, - { 257667, false }, - { 257682, true }, - { 257695, false }, - { 257723, true }, + { 257475, false }, + { 257483, true }, + { 257493, true }, + { 257508, true }, + { 257526, true }, + { 257538, true }, + { 257557, true }, + { 257569, true }, + { 257582, true }, + { 257595, true }, + { 257610, true }, + { 257623, true }, + { 257641, true }, + { 257655, true }, + { 257668, true }, + { 257680, true }, + { 257693, true }, + { 257708, true }, + { 257722, true }, { 257735, true }, - { 257748, true }, - { 257761, true }, - { 257771, false }, - { 257779, true }, - { 257789, true }, - { 257804, true }, - { 257822, true }, - { 257834, true }, - { 257853, true }, - { 257865, true }, - { 257878, true }, - { 257891, true }, - { 257906, true }, - { 257919, true }, - { 257937, true }, - { 257951, true }, - { 257964, true }, - { 257976, true }, - { 257989, true }, - { 258004, true }, - { 258018, true }, + { 257755, false }, + { 257772, true }, + { 257793, true }, + { 257811, true }, + { 257824, true }, + { 257838, true }, + { 257847, true }, + { 257858, true }, + { 257869, true }, + { 257882, true }, + { 257892, true }, + { 257909, true }, + { 257917, true }, + { 257931, false }, + { 257946, true }, + { 257959, true }, + { 257973, true }, + { 257988, true }, + { 257999, true }, { 258031, true }, - { 258051, false }, - { 258068, true }, - { 258089, true }, - { 258107, true }, - { 258120, true }, - { 258134, true }, - { 258143, true }, - { 258154, true }, - { 258165, true }, - { 258178, true }, - { 258188, true }, - { 258205, true }, - { 258213, true }, - { 258227, false }, - { 258242, true }, - { 258255, true }, - { 258269, true }, - { 258284, true }, - { 258295, true }, - { 258327, true }, + { 258056, true }, + { 258092, true }, + { 258104, true }, + { 258117, true }, + { 258132, true }, + { 258145, true }, + { 258162, true }, + { 258184, true }, + { 258206, true }, + { 258224, true }, + { 258237, true }, + { 258248, true }, + { 258260, true }, + { 258271, true }, + { 258289, true }, + { 258297, true }, + { 258330, true }, + { 258345, true }, { 258352, true }, - { 258388, true }, + { 258369, true }, + { 258385, true }, { 258400, true }, - { 258413, true }, - { 258428, true }, - { 258441, true }, - { 258458, true }, - { 258480, true }, - { 258502, true }, - { 258520, true }, - { 258533, true }, - { 258544, true }, - { 258556, true }, - { 258567, true }, - { 258585, true }, - { 258593, true }, - { 258626, true }, - { 258641, true }, - { 258648, true }, - { 258665, true }, - { 258681, true }, - { 258696, true }, - { 258713, true }, - { 258723, true }, - { 258736, true }, - { 258747, true }, - { 258761, true }, - { 258771, false }, - { 258789, true }, - { 258807, true }, - { 258828, true }, - { 258842, true }, - { 258854, true }, - { 258866, true }, - { 258877, true }, - { 258890, true }, - { 258903, true }, - { 258919, true }, - { 258936, true }, - { 258950, true }, - { 258964, true }, - { 258984, true }, - { 258999, true }, - { 259013, true }, - { 259025, true }, - { 259038, true }, - { 259058, true }, - { 259077, true }, - { 259094, true }, - { 259107, true }, - { 259127, true }, - { 259138, true }, - { 259152, true }, - { 259176, true }, - { 259186, true }, - { 259199, true }, - { 259224, true }, - { 259233, true }, - { 259245, true }, - { 259267, true }, - { 259278, true }, - { 259289, true }, - { 259303, true }, - { 259322, true }, - { 259339, true }, - { 259354, true }, - { 259369, true }, - { 259386, true }, - { 259400, true }, - { 259414, true }, - { 259428, true }, - { 259451, true }, - { 259471, true }, - { 259485, true }, - { 259499, true }, - { 259513, true }, - { 259523, true }, - { 259535, true }, + { 258417, true }, + { 258427, true }, + { 258440, true }, + { 258451, true }, + { 258465, true }, + { 258475, false }, + { 258493, true }, + { 258511, true }, + { 258532, true }, + { 258546, true }, + { 258558, true }, + { 258570, true }, + { 258581, true }, + { 258594, true }, + { 258607, true }, + { 258623, true }, + { 258640, true }, + { 258654, true }, + { 258668, true }, + { 258682, true }, + { 258702, true }, + { 258717, true }, + { 258731, true }, + { 258743, true }, + { 258756, true }, + { 258776, true }, + { 258795, true }, + { 258812, true }, + { 258825, true }, + { 258845, true }, + { 258856, true }, + { 258870, true }, + { 258894, true }, + { 258904, true }, + { 258917, true }, + { 258942, true }, + { 258951, true }, + { 258963, true }, + { 258985, true }, + { 258996, true }, + { 259007, true }, + { 259021, true }, + { 259040, true }, + { 259057, true }, + { 259072, true }, + { 259087, true }, + { 259104, true }, + { 259118, true }, + { 259132, true }, + { 259146, true }, + { 259169, true }, + { 259189, true }, + { 259203, true }, + { 259217, true }, + { 259231, true }, + { 259241, true }, + { 259253, true }, + { 259265, true }, + { 259280, true }, + { 259296, true }, + { 259306, true }, + { 259320, true }, + { 259329, true }, + { 259344, true }, + { 259358, true }, + { 259367, true }, + { 259379, true }, + { 259390, true }, + { 259402, true }, + { 259413, true }, + { 259425, true }, + { 259434, true }, + { 259443, true }, + { 259454, true }, + { 259468, true }, + { 259480, true }, + { 259493, true }, + { 259509, true }, + { 259524, true }, + { 259534, true }, { 259547, true }, - { 259562, true }, - { 259578, true }, - { 259588, true }, - { 259602, true }, - { 259611, true }, - { 259626, true }, - { 259640, true }, - { 259649, true }, - { 259661, true }, - { 259672, true }, - { 259684, true }, - { 259695, true }, + { 259560, true }, + { 259576, true }, + { 259592, true }, + { 259613, true }, + { 259634, true }, + { 259653, true }, + { 259665, true }, + { 259676, true }, + { 259699, true }, { 259707, true }, - { 259716, true }, - { 259725, true }, + { 259722, true }, { 259736, true }, { 259750, true }, - { 259762, true }, - { 259775, true }, - { 259791, true }, - { 259806, true }, - { 259816, true }, - { 259829, true }, - { 259842, true }, - { 259858, true }, - { 259874, true }, - { 259895, true }, - { 259916, true }, - { 259935, true }, - { 259945, true }, - { 259957, true }, - { 259968, true }, - { 259991, true }, - { 259999, true }, - { 260014, true }, - { 260028, true }, - { 260042, true }, - { 260051, true }, + { 259759, true }, + { 259771, true }, + { 259794, true }, + { 259807, true }, + { 259817, true }, + { 259831, true }, + { 259839, true }, + { 259860, true }, + { 259872, true }, + { 259883, true }, + { 259903, true }, + { 259922, true }, + { 259933, true }, + { 259948, true }, + { 259973, false }, + { 260001, false }, + { 260013, true }, + { 260025, true }, + { 260036, true }, + { 260047, true }, { 260063, true }, - { 260086, true }, - { 260099, true }, - { 260109, true }, - { 260123, true }, + { 260079, true }, + { 260094, true }, + { 260105, true }, + { 260118, true }, { 260131, true }, - { 260152, true }, - { 260164, true }, - { 260175, true }, - { 260195, true }, - { 260214, true }, + { 260143, true }, + { 260162, true }, + { 260178, true }, + { 260193, true }, + { 260208, true }, { 260225, true }, - { 260240, true }, - { 260265, false }, - { 260293, false }, - { 260305, true }, - { 260316, true }, - { 260327, true }, - { 260343, true }, - { 260359, true }, - { 260374, true }, - { 260385, true }, - { 260398, true }, - { 260411, true }, - { 260423, true }, - { 260442, true }, - { 260458, true }, - { 260473, true }, - { 260488, true }, - { 260505, true }, - { 260528, true }, - { 260536, true }, - { 260555, true }, - { 260569, true }, - { 260590, true }, - { 260610, true }, - { 260628, true }, - { 260649, true }, - { 260670, true }, - { 260689, true }, - { 260711, true }, - { 260733, true }, - { 260755, true }, - { 260773, true }, - { 260791, true }, - { 260809, true }, - { 260827, true }, - { 260845, true }, - { 260863, true }, - { 260881, true }, - { 260899, true }, - { 260917, true }, - { 260935, true }, - { 260953, true }, - { 260971, true }, - { 260989, true }, - { 261007, true }, - { 261025, true }, - { 261043, true }, - { 261061, true }, - { 261079, true }, - { 261097, true }, - { 261115, true }, - { 261133, true }, - { 261151, true }, - { 261169, true }, - { 261187, true }, - { 261205, true }, - { 261223, true }, - { 261239, true }, - { 261254, true }, + { 260248, true }, + { 260256, true }, + { 260275, true }, + { 260289, true }, + { 260310, true }, + { 260330, true }, + { 260348, true }, + { 260369, true }, + { 260390, true }, + { 260409, true }, + { 260431, true }, + { 260453, true }, + { 260475, true }, + { 260493, true }, + { 260511, true }, + { 260529, true }, + { 260547, true }, + { 260565, true }, + { 260583, true }, + { 260601, true }, + { 260619, true }, + { 260637, true }, + { 260655, true }, + { 260673, true }, + { 260691, true }, + { 260709, true }, + { 260727, true }, + { 260745, true }, + { 260763, true }, + { 260781, true }, + { 260799, true }, + { 260817, true }, + { 260835, true }, + { 260853, true }, + { 260871, true }, + { 260889, true }, + { 260907, true }, + { 260925, true }, + { 260943, true }, + { 260959, true }, + { 260974, true }, + { 260991, true }, + { 261005, true }, + { 261020, true }, + { 261035, true }, + { 261044, true }, + { 261056, false }, + { 261070, false }, + { 261083, true }, + { 261093, true }, + { 261109, true }, + { 261120, true }, + { 261131, true }, + { 261142, true }, + { 261154, true }, + { 261172, true }, + { 261181, true }, + { 261203, true }, + { 261217, true }, + { 261234, true }, + { 261253, true }, { 261271, true }, - { 261285, true }, - { 261300, true }, - { 261315, true }, - { 261324, true }, - { 261336, false }, - { 261350, true }, - { 261363, true }, - { 261373, true }, - { 261389, true }, - { 261400, true }, - { 261411, true }, - { 261422, true }, - { 261434, true }, - { 261452, true }, - { 261461, true }, - { 261483, true }, - { 261497, true }, - { 261514, true }, - { 261533, true }, - { 261551, true }, - { 261572, true }, - { 261586, true }, - { 261602, true }, - { 261614, true }, - { 261629, true }, - { 261645, true }, - { 261663, true }, - { 261673, true }, - { 261685, false }, - { 261696, true }, - { 261715, false }, - { 261734, true }, - { 261750, true }, - { 261765, true }, - { 261778, false }, - { 261797, true }, - { 261808, true }, - { 261826, true }, - { 261843, true }, - { 261868, true }, - { 261883, true }, - { 261898, true }, - { 261916, true }, - { 261931, true }, - { 261946, true }, - { 261963, true }, - { 261974, true }, - { 261984, true }, - { 261996, true }, + { 261292, true }, + { 261306, true }, + { 261322, true }, + { 261334, true }, + { 261349, true }, + { 261365, true }, + { 261383, true }, + { 261393, true }, + { 261405, false }, + { 261416, true }, + { 261435, false }, + { 261454, true }, + { 261470, true }, + { 261485, true }, + { 261498, false }, + { 261517, true }, + { 261528, true }, + { 261546, true }, + { 261563, true }, + { 261588, true }, + { 261603, true }, + { 261618, true }, + { 261636, true }, + { 261651, true }, + { 261666, true }, + { 261683, true }, + { 261694, true }, + { 261704, true }, + { 261716, true }, + { 261730, true }, + { 261744, true }, + { 261756, true }, + { 261771, true }, + { 261789, true }, + { 261800, false }, + { 261813, true }, + { 261830, true }, + { 261848, true }, + { 261866, true }, + { 261876, true }, + { 261899, true }, + { 261914, false }, + { 261927, true }, + { 261939, true }, + { 261960, true }, + { 261973, true }, + { 261990, true }, { 262010, true }, - { 262024, true }, - { 262036, true }, - { 262051, true }, - { 262069, true }, - { 262080, false }, - { 262093, true }, - { 262110, true }, + { 262033, true }, + { 262052, true }, + { 262063, true }, + { 262077, true }, + { 262091, true }, + { 262101, false }, + { 262113, true }, { 262128, true }, - { 262146, true }, - { 262156, true }, + { 262142, true }, + { 262152, true }, + { 262166, true }, { 262179, true }, - { 262194, false }, - { 262207, true }, - { 262219, true }, - { 262240, true }, - { 262253, true }, - { 262270, true }, - { 262290, true }, - { 262313, true }, - { 262332, true }, - { 262343, true }, - { 262357, true }, - { 262371, true }, - { 262381, false }, + { 262199, true }, + { 262222, true }, + { 262249, true }, + { 262267, true }, + { 262275, true }, + { 262286, true }, + { 262293, true }, + { 262301, true }, + { 262318, true }, + { 262333, true }, + { 262346, true }, + { 262358, true }, + { 262373, true }, { 262393, true }, - { 262408, true }, - { 262422, true }, - { 262432, true }, - { 262446, true }, - { 262459, true }, - { 262479, true }, - { 262502, true }, - { 262529, true }, - { 262547, true }, - { 262555, true }, - { 262566, true }, - { 262573, true }, - { 262581, true }, - { 262598, true }, - { 262613, true }, - { 262626, true }, - { 262638, true }, - { 262653, true }, - { 262673, true }, - { 262690, true }, - { 262707, true }, - { 262724, true }, - { 262735, false }, - { 262744, true }, - { 262757, true }, - { 262776, false }, - { 262793, true }, - { 262806, true }, - { 262817, true }, - { 262825, false }, - { 262838, true }, - { 262855, true }, - { 262870, false }, - { 262894, true }, - { 262905, true }, - { 262915, true }, - { 262925, true }, - { 262936, true }, + { 262410, true }, + { 262427, true }, + { 262444, true }, + { 262455, false }, + { 262464, true }, + { 262477, true }, + { 262496, false }, + { 262513, true }, + { 262526, true }, + { 262537, true }, + { 262545, false }, + { 262558, true }, + { 262575, true }, + { 262590, false }, + { 262614, true }, + { 262625, true }, + { 262635, true }, + { 262645, true }, + { 262656, true }, + { 262666, true }, + { 262691, true }, + { 262700, true }, + { 262710, true }, + { 262722, true }, + { 262742, true }, + { 262759, true }, + { 262769, true }, + { 262778, true }, + { 262794, true }, + { 262813, true }, + { 262836, true }, + { 262854, true }, + { 262870, true }, + { 262890, true }, + { 262903, true }, + { 262916, true }, + { 262929, true }, { 262946, true }, - { 262971, true }, - { 262980, true }, - { 262990, true }, - { 263002, true }, - { 263022, true }, - { 263039, true }, - { 263049, true }, - { 263058, true }, + { 262955, true }, + { 262968, true }, + { 262982, true }, + { 262996, true }, + { 263019, true }, + { 263043, true }, + { 263059, true }, { 263074, true }, - { 263093, true }, - { 263116, true }, - { 263134, true }, - { 263150, true }, - { 263170, true }, - { 263183, true }, - { 263196, true }, - { 263209, true }, - { 263226, true }, - { 263235, true }, - { 263248, true }, - { 263262, true }, - { 263276, true }, - { 263299, true }, - { 263323, true }, - { 263339, true }, - { 263354, true }, - { 263365, true }, - { 263384, true }, - { 263406, true }, - { 263432, true }, - { 263447, true }, - { 263462, true }, - { 263472, true }, - { 263486, true }, - { 263502, true }, - { 263514, true }, - { 263537, true }, - { 263546, true }, - { 263554, true }, - { 263565, true }, - { 263575, true }, - { 263591, true }, - { 263605, true }, - { 263617, true }, - { 263630, true }, - { 263647, false }, - { 263665, true }, - { 263689, true }, - { 263702, true }, - { 263713, true }, - { 263730, true }, - { 263743, true }, - { 263756, true }, - { 263767, true }, - { 263777, true }, - { 263789, true }, + { 263085, true }, + { 263104, true }, + { 263126, true }, + { 263152, true }, + { 263167, true }, + { 263182, true }, + { 263192, true }, + { 263206, true }, + { 263222, true }, + { 263234, true }, + { 263257, true }, + { 263266, true }, + { 263274, true }, + { 263285, true }, + { 263295, true }, + { 263311, true }, + { 263325, true }, + { 263337, true }, + { 263350, true }, + { 263367, false }, + { 263385, true }, + { 263409, true }, + { 263422, true }, + { 263433, true }, + { 263450, true }, + { 263463, true }, + { 263476, true }, + { 263487, true }, + { 263497, true }, + { 263509, true }, + { 263519, true }, + { 263534, true }, + { 263547, true }, + { 263563, true }, + { 263573, false }, + { 263583, true }, + { 263596, true }, + { 263611, true }, + { 263621, true }, + { 263637, true }, + { 263649, true }, + { 263658, true }, + { 263672, true }, + { 263684, true }, + { 263695, true }, + { 263708, true }, + { 263726, true }, + { 263735, true }, + { 263751, true }, + { 263771, true }, + { 263783, true }, { 263799, true }, - { 263814, true }, - { 263827, true }, - { 263843, true }, - { 263853, false }, + { 263816, true }, + { 263829, true }, + { 263839, true }, + { 263849, true }, { 263863, true }, - { 263876, true }, - { 263891, true }, - { 263901, true }, - { 263917, true }, - { 263929, true }, - { 263938, true }, - { 263952, true }, - { 263964, true }, - { 263975, true }, + { 263875, true }, + { 263888, true }, + { 263905, true }, + { 263920, true }, + { 263932, true }, + { 263949, true }, + { 263963, true }, + { 263972, true }, { 263988, true }, - { 264006, true }, - { 264015, true }, - { 264031, true }, - { 264051, true }, - { 264063, true }, - { 264079, true }, - { 264096, true }, - { 264109, true }, - { 264119, true }, + { 264001, true }, + { 264016, false }, + { 264028, true }, + { 264039, true }, + { 264062, true }, + { 264072, true }, + { 264081, true }, + { 264095, true }, + { 264103, false }, + { 264121, true }, { 264129, true }, - { 264143, true }, - { 264155, true }, - { 264168, true }, - { 264185, true }, - { 264200, true }, + { 264140, true }, + { 264148, true }, + { 264156, true }, + { 264167, true }, + { 264173, true }, + { 264184, true }, + { 264197, true }, { 264212, true }, - { 264229, true }, - { 264243, true }, - { 264252, true }, + { 264231, true }, + { 264255, true }, { 264268, true }, - { 264281, true }, - { 264296, false }, - { 264308, true }, - { 264319, true }, - { 264342, true }, - { 264352, true }, - { 264361, true }, - { 264375, true }, - { 264383, false }, - { 264401, true }, - { 264409, true }, - { 264420, true }, - { 264428, true }, - { 264436, true }, + { 264283, true }, + { 264307, true }, + { 264317, true }, + { 264329, true }, + { 264346, true }, + { 264356, true }, + { 264372, true }, + { 264387, true }, + { 264410, true }, + { 264431, true }, { 264447, true }, - { 264453, true }, - { 264464, true }, - { 264477, true }, - { 264492, true }, - { 264511, true }, - { 264535, true }, - { 264548, true }, - { 264563, true }, - { 264587, true }, - { 264597, true }, - { 264609, true }, - { 264626, true }, - { 264636, true }, - { 264652, true }, - { 264667, true }, - { 264690, true }, - { 264711, true }, - { 264727, true }, - { 264740, true }, - { 264753, true }, - { 264767, true }, - { 264779, true }, - { 264792, true }, - { 264811, true }, - { 264824, true }, - { 264842, true }, - { 264866, false }, - { 264893, true }, - { 264919, true }, - { 264934, true }, - { 264951, true }, - { 264967, true }, - { 264984, true }, - { 265001, true }, - { 265016, true }, - { 265029, true }, - { 265040, true }, + { 264460, true }, + { 264473, true }, + { 264487, true }, + { 264499, true }, + { 264512, true }, + { 264531, true }, + { 264544, true }, + { 264562, true }, + { 264586, false }, + { 264613, true }, + { 264639, true }, + { 264654, true }, + { 264671, true }, + { 264687, true }, + { 264704, true }, + { 264721, true }, + { 264736, true }, + { 264749, true }, + { 264760, true }, + { 264771, true }, + { 264781, true }, + { 264794, true }, + { 264812, true }, + { 264825, true }, + { 264839, true }, + { 264848, true }, + { 264858, true }, + { 264869, true }, + { 264890, true }, + { 264904, false }, + { 264913, true }, + { 264920, true }, + { 264927, true }, + { 264935, true }, + { 264958, true }, + { 264971, true }, + { 264985, true }, + { 264998, true }, + { 265013, true }, + { 265027, true }, + { 265042, true }, { 265051, true }, - { 265061, true }, - { 265074, true }, - { 265092, true }, - { 265105, true }, - { 265119, true }, - { 265128, true }, - { 265138, true }, - { 265149, true }, - { 265170, true }, - { 265184, false }, - { 265193, true }, - { 265200, true }, - { 265207, true }, - { 265215, true }, - { 265238, true }, - { 265251, true }, + { 265059, true }, + { 265072, true }, + { 265080, true }, + { 265098, false }, + { 265110, true }, + { 265121, true }, + { 265130, true }, + { 265151, true }, + { 265167, true }, + { 265179, true }, + { 265188, true }, + { 265201, true }, + { 265212, true }, + { 265225, true }, + { 265237, true }, + { 265252, false }, { 265265, true }, - { 265278, true }, - { 265293, true }, - { 265307, true }, - { 265322, true }, - { 265331, true }, + { 265274, true }, + { 265286, true }, + { 265297, true }, + { 265314, true }, + { 265326, true }, { 265339, true }, { 265352, true }, - { 265360, true }, - { 265378, false }, - { 265390, true }, - { 265401, true }, - { 265410, true }, - { 265431, true }, - { 265447, true }, - { 265459, true }, - { 265468, true }, - { 265481, true }, - { 265492, true }, - { 265505, true }, - { 265517, true }, - { 265532, false }, - { 265545, true }, - { 265554, true }, - { 265566, true }, - { 265577, true }, - { 265594, true }, - { 265606, true }, - { 265619, true }, - { 265632, true }, - { 265647, true }, - { 265667, true }, - { 265679, true }, - { 265689, true }, - { 265699, true }, - { 265710, true }, - { 265723, false }, - { 265730, true }, + { 265367, true }, + { 265387, true }, + { 265399, true }, + { 265409, true }, + { 265419, true }, + { 265430, true }, + { 265443, false }, + { 265450, true }, + { 265460, true }, + { 265472, true }, + { 265488, true }, + { 265503, true }, + { 265512, true }, + { 265526, true }, + { 265540, true }, + { 265560, true }, + { 265572, true }, + { 265585, true }, + { 265599, true }, + { 265617, true }, + { 265624, true }, + { 265641, true }, + { 265657, true }, + { 265674, true }, + { 265683, true }, + { 265703, true }, + { 265722, true }, { 265740, true }, - { 265752, true }, - { 265768, true }, - { 265783, true }, - { 265792, true }, - { 265806, true }, - { 265820, true }, - { 265840, true }, - { 265852, true }, - { 265865, true }, - { 265879, true }, - { 265897, true }, - { 265904, true }, - { 265921, true }, - { 265937, true }, - { 265954, true }, - { 265963, true }, - { 265983, true }, - { 266002, true }, + { 265756, false }, + { 265774, true }, + { 265801, true }, + { 265814, false }, + { 265832, true }, + { 265849, true }, + { 265864, true }, + { 265880, true }, + { 265894, true }, + { 265909, false }, + { 265928, true }, + { 265946, true }, + { 265964, true }, + { 265982, true }, + { 265999, true }, { 266020, true }, - { 266036, false }, - { 266054, true }, - { 266081, true }, - { 266094, false }, - { 266112, true }, + { 266039, true }, + { 266056, true }, + { 266071, true }, + { 266085, false }, + { 266096, true }, + { 266111, true }, + { 266119, true }, { 266129, true }, { 266144, true }, - { 266160, true }, - { 266174, true }, - { 266189, false }, - { 266208, true }, - { 266226, true }, - { 266244, true }, - { 266262, true }, - { 266279, true }, - { 266300, true }, - { 266319, true }, - { 266336, true }, - { 266351, true }, - { 266365, false }, - { 266376, true }, - { 266391, true }, - { 266399, true }, - { 266409, true }, - { 266424, true }, - { 266441, true }, - { 266456, true }, - { 266467, true }, - { 266489, true }, - { 266502, true }, - { 266522, true }, - { 266536, true }, - { 266555, true }, - { 266581, true }, - { 266597, true }, - { 266615, true }, - { 266633, true }, - { 266648, true }, - { 266656, true }, - { 266669, true }, - { 266677, true }, - { 266688, true }, - { 266702, true }, - { 266716, true }, - { 266732, true }, - { 266749, true }, + { 266161, true }, + { 266176, true }, + { 266187, true }, + { 266209, true }, + { 266222, true }, + { 266242, true }, + { 266256, true }, + { 266275, true }, + { 266301, true }, + { 266317, true }, + { 266335, true }, + { 266353, true }, + { 266361, true }, + { 266374, true }, + { 266382, true }, + { 266393, true }, + { 266407, true }, + { 266421, true }, + { 266437, true }, + { 266454, true }, + { 266464, true }, + { 266474, true }, + { 266486, true }, + { 266507, true }, + { 266520, true }, + { 266538, true }, + { 266551, true }, + { 266577, true }, + { 266596, true }, + { 266611, true }, + { 266627, true }, + { 266644, true }, + { 266660, true }, + { 266683, true }, + { 266706, true }, + { 266731, true }, + { 266747, true }, { 266759, true }, - { 266769, true }, - { 266781, true }, - { 266802, true }, - { 266815, true }, - { 266833, true }, - { 266846, true }, - { 266872, true }, - { 266891, true }, - { 266906, true }, - { 266922, true }, - { 266939, true }, + { 266773, true }, + { 266786, true }, + { 266797, true }, + { 266812, true }, + { 266822, true }, + { 266837, true }, + { 266849, true }, + { 266867, true }, + { 266892, true }, + { 266904, true }, + { 266916, true }, + { 266932, true }, + { 266944, true }, { 266955, true }, - { 266978, true }, - { 267001, true }, - { 267026, true }, - { 267042, true }, - { 267054, true }, - { 267068, true }, - { 267081, true }, + { 266972, true }, + { 266984, true }, + { 267002, true }, + { 267020, true }, + { 267041, true }, + { 267065, true }, + { 267076, true }, { 267092, true }, - { 267107, true }, - { 267117, true }, - { 267132, true }, - { 267144, true }, - { 267162, true }, - { 267187, true }, - { 267199, true }, - { 267211, true }, - { 267227, true }, - { 267239, true }, - { 267250, true }, - { 267267, true }, - { 267279, true }, - { 267297, true }, - { 267315, true }, - { 267336, true }, - { 267360, true }, - { 267371, true }, - { 267387, true }, - { 267399, false }, - { 267413, true }, - { 267428, true }, - { 267441, true }, - { 267468, true }, - { 267484, false }, - { 267493, true }, - { 267511, true }, - { 267525, true }, - { 267539, true }, - { 267547, false }, - { 267559, true }, - { 267569, true }, - { 267586, true }, - { 267596, true }, - { 267607, true }, - { 267614, true }, - { 267625, true }, - { 267645, true }, - { 267662, true }, - { 267674, true }, - { 267691, true }, - { 267711, false }, - { 267726, true }, - { 267737, true }, - { 267746, false }, - { 267753, true }, - { 267764, true }, - { 267777, true }, - { 267793, true }, - { 267805, true }, + { 267104, false }, + { 267118, true }, + { 267133, true }, + { 267146, true }, + { 267173, true }, + { 267189, false }, + { 267198, true }, + { 267216, true }, + { 267230, true }, + { 267244, true }, + { 267252, false }, + { 267264, true }, + { 267274, true }, + { 267291, true }, + { 267301, true }, + { 267312, true }, + { 267319, true }, + { 267330, true }, + { 267350, true }, + { 267367, true }, + { 267379, true }, + { 267396, true }, + { 267416, false }, + { 267431, true }, + { 267442, true }, + { 267451, false }, + { 267458, true }, + { 267469, true }, + { 267482, true }, + { 267498, true }, + { 267510, true }, + { 267519, true }, + { 267534, true }, + { 267548, true }, + { 267558, true }, + { 267573, true }, + { 267582, true }, + { 267594, true }, + { 267612, false }, + { 267623, true }, + { 267639, false }, + { 267652, true }, + { 267668, true }, + { 267680, true }, + { 267694, true }, + { 267706, true }, + { 267718, true }, + { 267738, true }, + { 267752, true }, + { 267768, true }, + { 267785, true }, + { 267799, true }, { 267814, true }, - { 267829, true }, - { 267843, true }, - { 267853, true }, - { 267868, true }, - { 267877, true }, - { 267889, true }, - { 267907, false }, - { 267918, true }, - { 267934, false }, - { 267947, true }, - { 267963, true }, - { 267975, true }, - { 267989, true }, - { 268001, true }, - { 268013, true }, - { 268033, true }, - { 268047, true }, - { 268063, true }, - { 268080, true }, - { 268094, true }, - { 268109, true }, - { 268117, true }, - { 268132, true }, - { 268145, true }, - { 268161, true }, - { 268174, true }, - { 268187, true }, - { 268201, true }, - { 268223, true }, - { 268243, true }, - { 268264, true }, - { 268289, true }, + { 267822, true }, + { 267837, true }, + { 267850, true }, + { 267866, true }, + { 267879, true }, + { 267892, true }, + { 267906, true }, + { 267928, true }, + { 267948, true }, + { 267969, true }, + { 267994, true }, + { 268019, true }, + { 268038, true }, + { 268054, true }, + { 268082, true }, + { 268107, true }, + { 268128, true }, + { 268157, true }, + { 268176, true }, + { 268200, true }, + { 268220, true }, + { 268230, true }, + { 268239, true }, + { 268257, true }, + { 268270, true }, + { 268279, true }, + { 268285, true }, + { 268297, true }, { 268314, true }, - { 268333, true }, - { 268349, true }, - { 268377, true }, - { 268402, true }, - { 268423, true }, - { 268452, true }, - { 268471, true }, - { 268495, true }, - { 268515, true }, - { 268525, true }, - { 268534, true }, - { 268552, true }, - { 268565, true }, - { 268574, true }, - { 268580, true }, - { 268592, true }, - { 268609, true }, - { 268623, true }, - { 268642, true }, - { 268656, false }, - { 268669, true }, - { 268682, true }, - { 268695, true }, - { 268713, true }, - { 268734, true }, - { 268746, true }, + { 268328, true }, + { 268347, true }, + { 268361, false }, + { 268374, true }, + { 268387, true }, + { 268400, true }, + { 268418, true }, + { 268439, true }, + { 268451, true }, + { 268477, true }, + { 268486, true }, + { 268499, true }, + { 268522, true }, + { 268535, true }, + { 268554, true }, + { 268573, true }, + { 268585, true }, + { 268605, true }, + { 268624, true }, + { 268644, true }, + { 268653, true }, + { 268664, true }, + { 268673, true }, + { 268693, true }, + { 268708, true }, + { 268727, true }, + { 268756, false }, { 268772, true }, - { 268781, true }, - { 268794, true }, - { 268804, true }, - { 268827, true }, - { 268840, true }, - { 268859, true }, - { 268878, true }, - { 268890, true }, - { 268910, true }, - { 268929, true }, - { 268949, true }, - { 268958, true }, - { 268969, true }, - { 268978, true }, - { 268998, true }, - { 269013, true }, - { 269032, true }, - { 269061, false }, - { 269077, true }, - { 269093, false }, - { 269106, true }, - { 269127, true }, - { 269138, true }, - { 269155, true }, - { 269174, true }, + { 268788, false }, + { 268801, true }, + { 268822, true }, + { 268833, true }, + { 268850, true }, + { 268869, true }, + { 268882, true }, + { 268894, true }, + { 268907, true }, + { 268926, true }, + { 268936, true }, + { 268951, true }, + { 268965, true }, + { 268980, false }, + { 268989, true }, + { 269002, false }, + { 269014, true }, + { 269029, true }, + { 269045, true }, + { 269059, true }, + { 269073, true }, + { 269088, true }, + { 269101, true }, + { 269110, true }, + { 269119, true }, + { 269133, true }, + { 269157, true }, + { 269170, true }, { 269187, true }, - { 269199, true }, - { 269212, true }, - { 269231, true }, - { 269241, true }, - { 269256, true }, + { 269203, true }, + { 269221, true }, + { 269238, true }, + { 269255, true }, { 269270, true }, - { 269285, false }, - { 269294, true }, - { 269307, false }, - { 269319, true }, - { 269334, true }, - { 269350, true }, - { 269364, true }, - { 269378, true }, - { 269393, true }, - { 269406, true }, - { 269415, true }, - { 269424, true }, - { 269438, true }, - { 269462, true }, - { 269475, true }, - { 269492, true }, - { 269508, true }, - { 269526, true }, - { 269543, true }, - { 269560, true }, + { 269288, true }, + { 269304, true }, + { 269317, true }, + { 269326, true }, + { 269339, true }, + { 269359, true }, + { 269370, true }, + { 269384, true }, + { 269399, true }, + { 269414, true }, + { 269423, true }, + { 269432, true }, + { 269450, true }, + { 269466, true }, + { 269482, true }, + { 269496, true }, + { 269510, true }, + { 269523, true }, + { 269538, true }, + { 269558, true }, { 269575, true }, - { 269593, true }, - { 269609, true }, - { 269622, true }, - { 269631, true }, - { 269644, true }, - { 269664, true }, - { 269678, true }, - { 269693, true }, - { 269708, true }, - { 269717, true }, - { 269726, true }, - { 269744, true }, - { 269760, true }, - { 269776, true }, - { 269790, true }, - { 269804, true }, - { 269817, true }, - { 269832, true }, - { 269852, true }, - { 269869, true }, - { 269886, true }, - { 269898, true }, - { 269914, true }, - { 269928, true }, - { 269942, true }, - { 269963, true }, - { 269982, true }, - { 270007, false }, - { 270023, true }, - { 270034, true }, - { 270053, true }, - { 270068, true }, - { 270092, true }, - { 270104, true }, - { 270114, true }, - { 270125, true }, - { 270138, true }, - { 270152, true }, - { 270174, true }, - { 270187, true }, - { 270196, true }, - { 270225, true }, - { 270250, true }, + { 269592, true }, + { 269604, true }, + { 269620, true }, + { 269634, true }, + { 269648, true }, + { 269669, true }, + { 269688, true }, + { 269713, false }, + { 269729, true }, + { 269740, true }, + { 269759, true }, + { 269774, true }, + { 269798, true }, + { 269810, true }, + { 269820, true }, + { 269831, true }, + { 269844, true }, + { 269858, true }, + { 269880, true }, + { 269893, true }, + { 269902, true }, + { 269931, true }, + { 269956, true }, + { 269981, true }, + { 270010, true }, + { 270026, true }, + { 270035, true }, + { 270047, true }, + { 270063, true }, + { 270077, true }, + { 270091, true }, + { 270105, true }, + { 270122, true }, + { 270135, true }, + { 270154, true }, + { 270165, true }, + { 270178, true }, + { 270195, true }, + { 270204, true }, + { 270219, true }, + { 270237, false }, + { 270251, false }, + { 270262, true }, { 270275, true }, - { 270304, true }, - { 270320, true }, - { 270329, true }, - { 270341, true }, - { 270357, true }, - { 270371, true }, - { 270385, true }, - { 270399, true }, - { 270416, true }, - { 270429, true }, - { 270448, true }, - { 270459, true }, - { 270472, true }, - { 270489, true }, - { 270498, true }, - { 270513, true }, - { 270531, false }, - { 270545, false }, - { 270556, true }, - { 270569, true }, - { 270589, false }, - { 270602, true }, - { 270612, true }, - { 270631, true }, - { 270641, true }, - { 270654, true }, - { 270673, true }, - { 270685, true }, - { 270707, true }, - { 270718, true }, - { 270729, true }, - { 270740, true }, - { 270750, true }, - { 270760, true }, - { 270772, true }, - { 270779, true }, - { 270788, true }, - { 270800, true }, - { 270808, true }, - { 270814, true }, - { 270820, true }, - { 270826, true }, - { 270835, true }, - { 270844, false }, + { 270295, false }, + { 270308, true }, + { 270318, true }, + { 270337, true }, + { 270347, true }, + { 270360, true }, + { 270379, true }, + { 270391, true }, + { 270413, true }, + { 270424, true }, + { 270435, true }, + { 270446, true }, + { 270456, true }, + { 270466, true }, + { 270478, true }, + { 270485, true }, + { 270494, true }, + { 270506, true }, + { 270514, true }, + { 270520, true }, + { 270526, true }, + { 270532, true }, + { 270541, true }, + { 270550, false }, + { 270558, true }, + { 270567, true }, + { 270576, true }, + { 270584, true }, + { 270594, true }, + { 270610, true }, + { 270624, true }, + { 270632, true }, + { 270651, true }, + { 270658, true }, + { 270683, true }, + { 270690, true }, + { 270703, true }, + { 270717, true }, + { 270727, true }, + { 270737, true }, + { 270756, true }, + { 270768, true }, + { 270783, true }, + { 270794, true }, + { 270806, true }, + { 270818, true }, + { 270831, true }, + { 270839, true }, { 270852, true }, - { 270861, true }, - { 270870, true }, - { 270878, true }, - { 270888, true }, - { 270904, true }, - { 270918, true }, - { 270926, true }, - { 270945, true }, - { 270952, true }, - { 270977, true }, + { 270864, true }, + { 270874, true }, + { 270893, true }, + { 270920, true }, + { 270931, true }, + { 270946, true }, + { 270962, true }, { 270984, true }, - { 270997, true }, + { 270998, true }, { 271011, true }, - { 271021, true }, - { 271031, true }, - { 271050, true }, - { 271062, true }, - { 271077, true }, - { 271088, true }, - { 271100, true }, - { 271112, true }, - { 271125, true }, - { 271133, true }, - { 271146, true }, - { 271158, true }, - { 271168, true }, - { 271187, true }, + { 271024, true }, + { 271043, true }, + { 271072, true }, + { 271085, true }, + { 271106, false }, + { 271133, false }, + { 271149, true }, + { 271165, true }, + { 271180, true }, + { 271196, true }, { 271214, true }, - { 271225, true }, - { 271240, true }, - { 271256, true }, - { 271278, true }, - { 271292, true }, - { 271305, true }, - { 271318, true }, + { 271233, true }, + { 271242, true }, + { 271261, true }, + { 271274, true }, + { 271291, true }, + { 271306, true }, + { 271319, true }, { 271337, true }, - { 271366, true }, - { 271379, true }, - { 271400, false }, - { 271427, false }, - { 271443, true }, - { 271459, true }, - { 271474, true }, - { 271490, true }, + { 271358, true }, + { 271371, true }, + { 271390, true }, + { 271417, true }, + { 271436, true }, + { 271454, true }, + { 271471, true }, + { 271494, true }, { 271508, true }, - { 271527, true }, - { 271536, true }, - { 271555, true }, - { 271568, true }, + { 271526, true }, + { 271544, true }, + { 271560, true }, + { 271573, true }, { 271585, true }, - { 271600, true }, - { 271611, true }, - { 271624, true }, - { 271642, true }, - { 271663, true }, - { 271676, true }, - { 271695, true }, - { 271722, true }, - { 271741, true }, - { 271759, true }, - { 271776, true }, - { 271799, true }, - { 271813, true }, - { 271831, true }, - { 271849, true }, - { 271865, true }, - { 271878, true }, - { 271890, true }, - { 271906, true }, - { 271927, true }, - { 271943, true }, - { 271953, true }, - { 271973, true }, - { 271986, true }, - { 271995, true }, - { 272006, true }, - { 272016, true }, + { 271601, true }, + { 271622, true }, + { 271638, true }, + { 271648, true }, + { 271668, true }, + { 271681, true }, + { 271690, true }, + { 271701, true }, + { 271711, true }, + { 271724, true }, + { 271737, true }, + { 271753, true }, + { 271766, true }, + { 271780, true }, + { 271795, true }, + { 271807, true }, + { 271821, true }, + { 271836, true }, + { 271848, true }, + { 271864, true }, + { 271880, true }, + { 271893, true }, + { 271908, true }, + { 271918, true }, + { 271929, true }, + { 271938, true }, + { 271965, true }, + { 271977, true }, + { 271996, true }, { 272029, true }, - { 272042, true }, - { 272058, true }, - { 272071, true }, - { 272085, true }, - { 272100, true }, - { 272112, true }, - { 272126, true }, - { 272141, true }, - { 272153, true }, - { 272169, true }, - { 272185, true }, - { 272198, true }, - { 272213, true }, - { 272223, true }, - { 272234, true }, + { 272063, true }, + { 272097, true }, + { 272112, false }, + { 272129, true }, + { 272147, true }, + { 272159, true }, + { 272183, true }, + { 272202, true }, + { 272219, true }, { 272243, true }, + { 272256, true }, { 272270, true }, - { 272282, true }, - { 272301, true }, - { 272334, true }, - { 272368, true }, - { 272402, true }, - { 272417, false }, - { 272434, true }, - { 272452, true }, - { 272464, true }, - { 272488, true }, - { 272507, true }, - { 272524, true }, - { 272548, true }, - { 272561, true }, - { 272575, true }, - { 272583, true }, - { 272594, true }, - { 272608, true }, - { 272620, true }, - { 272629, true }, - { 272647, false }, - { 272657, true }, - { 272677, true }, - { 272691, true }, - { 272704, true }, - { 272724, true }, - { 272736, true }, - { 272754, true }, - { 272763, true }, - { 272775, true }, - { 272790, true }, - { 272806, true }, - { 272821, true }, - { 272836, true }, - { 272847, true }, - { 272872, true }, - { 272887, false }, - { 272904, true }, - { 272916, true }, - { 272941, false }, - { 272964, true }, - { 272989, true }, - { 273008, true }, - { 273025, true }, - { 273042, true }, - { 273050, true }, - { 273063, true }, - { 273074, true }, - { 273093, true }, - { 273108, true }, - { 273127, true }, - { 273149, true }, - { 273172, true }, - { 273185, true }, + { 272278, true }, + { 272289, true }, + { 272303, true }, + { 272315, true }, + { 272324, true }, + { 272342, false }, + { 272352, true }, + { 272372, true }, + { 272386, true }, + { 272399, true }, + { 272419, true }, + { 272431, true }, + { 272449, true }, + { 272458, true }, + { 272470, true }, + { 272485, true }, + { 272501, true }, + { 272516, true }, + { 272531, true }, + { 272542, true }, + { 272567, true }, + { 272582, false }, + { 272599, true }, + { 272611, true }, + { 272636, false }, + { 272659, true }, + { 272684, true }, + { 272703, true }, + { 272720, true }, + { 272737, true }, + { 272745, true }, + { 272758, true }, + { 272769, true }, + { 272788, true }, + { 272803, true }, + { 272822, true }, + { 272844, true }, + { 272867, true }, + { 272880, true }, + { 272898, true }, + { 272919, true }, + { 272942, true }, + { 272963, true }, + { 272985, true }, + { 273006, true }, + { 273027, true }, + { 273044, true }, + { 273054, false }, + { 273068, true }, + { 273085, true }, + { 273097, true }, + { 273117, true }, + { 273134, true }, + { 273144, true }, + { 273155, true }, + { 273177, true }, + { 273188, true }, { 273203, true }, - { 273224, true }, - { 273247, true }, - { 273268, true }, - { 273290, true }, - { 273311, true }, - { 273332, true }, - { 273349, true }, - { 273359, false }, - { 273373, true }, - { 273390, true }, - { 273402, true }, - { 273422, true }, - { 273439, true }, - { 273449, true }, - { 273460, true }, - { 273482, true }, - { 273493, true }, - { 273508, true }, - { 273527, true }, - { 273544, true }, - { 273557, true }, - { 273572, true }, - { 273593, true }, - { 273611, true }, - { 273622, true }, - { 273639, false }, - { 273653, true }, - { 273669, true }, - { 273681, true }, - { 273693, true }, - { 273730, true }, - { 273749, true }, + { 273222, true }, + { 273239, true }, + { 273252, true }, + { 273267, true }, + { 273288, true }, + { 273306, true }, + { 273317, true }, + { 273334, false }, + { 273348, true }, + { 273364, true }, + { 273376, true }, + { 273388, true }, + { 273425, true }, + { 273444, true }, + { 273458, true }, + { 273470, true }, + { 273483, true }, + { 273506, true }, + { 273521, true }, + { 273531, false }, + { 273543, true }, + { 273560, false }, + { 273575, true }, + { 273588, true }, + { 273596, true }, + { 273608, false }, + { 273620, true }, + { 273637, true }, + { 273650, true }, + { 273666, true }, + { 273696, true }, + { 273712, false }, + { 273720, true }, + { 273734, true }, + { 273747, true }, { 273763, true }, - { 273775, true }, - { 273788, true }, - { 273811, true }, - { 273826, true }, - { 273836, false }, - { 273848, true }, - { 273865, false }, - { 273880, true }, - { 273893, true }, + { 273776, true }, + { 273794, true }, + { 273804, true }, + { 273815, true }, + { 273831, true }, + { 273841, true }, + { 273867, true }, + { 273882, true }, { 273901, true }, - { 273913, false }, - { 273925, true }, - { 273942, true }, - { 273955, true }, - { 273971, true }, - { 274001, true }, - { 274017, false }, + { 273914, true }, + { 273924, true }, + { 273943, true }, + { 273968, true }, + { 273985, true }, + { 273999, true }, { 274025, true }, - { 274039, true }, - { 274052, true }, - { 274068, true }, - { 274081, true }, - { 274099, true }, - { 274109, true }, - { 274120, true }, - { 274136, true }, + { 274046, true }, + { 274061, false }, + { 274072, true }, + { 274089, true }, + { 274102, true }, + { 274115, true }, + { 274127, true }, { 274146, true }, - { 274172, true }, - { 274187, true }, - { 274206, true }, - { 274219, true }, - { 274229, true }, - { 274248, true }, - { 274273, true }, - { 274290, true }, - { 274304, true }, - { 274330, true }, - { 274351, true }, - { 274366, false }, - { 274377, true }, - { 274394, true }, - { 274407, true }, - { 274420, true }, - { 274432, true }, - { 274451, true }, - { 274464, true }, - { 274479, true }, - { 274490, true }, - { 274501, true }, - { 274521, true }, - { 274531, true }, - { 274541, true }, - { 274563, true }, - { 274583, true }, - { 274600, true }, - { 274618, true }, - { 274633, true }, - { 274646, true }, - { 274659, true }, - { 274674, true }, - { 274685, true }, - { 274700, true }, - { 274714, true }, - { 274738, true }, - { 274754, true }, - { 274776, true }, - { 274787, true }, - { 274803, true }, - { 274819, true }, - { 274832, true }, - { 274845, true }, - { 274869, true }, - { 274884, true }, + { 274159, true }, + { 274174, true }, + { 274185, true }, + { 274196, true }, + { 274216, true }, + { 274226, true }, + { 274236, true }, + { 274258, true }, + { 274278, true }, + { 274295, true }, + { 274313, true }, + { 274328, true }, + { 274341, true }, + { 274354, true }, + { 274369, true }, + { 274380, true }, + { 274395, true }, + { 274409, true }, + { 274433, true }, + { 274449, true }, + { 274471, true }, + { 274482, true }, + { 274498, true }, + { 274514, true }, + { 274527, true }, + { 274540, true }, + { 274564, true }, + { 274579, true }, + { 274592, true }, + { 274611, true }, + { 274621, true }, + { 274635, true }, + { 274653, true }, + { 274664, true }, + { 274681, true }, + { 274693, true }, + { 274707, true }, + { 274723, true }, + { 274736, false }, + { 274753, true }, + { 274770, true }, + { 274782, true }, + { 274793, true }, + { 274808, true }, + { 274817, true }, + { 274834, true }, + { 274843, true }, + { 274863, true }, + { 274883, false }, { 274897, true }, - { 274916, true }, - { 274926, true }, - { 274940, true }, - { 274958, true }, - { 274969, true }, - { 274986, true }, - { 274998, true }, - { 275012, true }, + { 274914, true }, + { 274929, true }, + { 274955, true }, + { 274973, true }, + { 274983, true }, + { 275000, true }, { 275028, true }, - { 275041, true }, - { 275058, true }, + { 275043, true }, + { 275059, true }, { 275075, true }, - { 275087, true }, - { 275098, true }, - { 275113, true }, - { 275122, true }, - { 275139, true }, - { 275148, true }, - { 275168, true }, - { 275188, false }, - { 275202, true }, - { 275219, true }, - { 275234, true }, - { 275260, true }, - { 275278, true }, - { 275288, true }, - { 275305, true }, - { 275333, true }, - { 275348, true }, - { 275364, true }, - { 275380, true }, - { 275399, true }, - { 275415, true }, - { 275432, true }, - { 275449, true }, - { 275472, true }, - { 275483, true }, - { 275494, true }, - { 275509, true }, - { 275532, true }, - { 275544, true }, - { 275559, true }, - { 275577, true }, - { 275590, true }, - { 275600, true }, - { 275609, true }, - { 275622, true }, - { 275632, true }, - { 275646, false }, - { 275655, true }, - { 275665, true }, - { 275678, false }, - { 275690, true }, - { 275701, true }, - { 275718, true }, + { 275094, true }, + { 275110, true }, + { 275127, true }, + { 275144, true }, + { 275167, true }, + { 275178, true }, + { 275189, true }, + { 275204, true }, + { 275227, true }, + { 275239, true }, + { 275254, true }, + { 275272, true }, + { 275285, true }, + { 275295, true }, + { 275304, true }, + { 275317, true }, + { 275327, true }, + { 275341, false }, + { 275350, true }, + { 275360, true }, + { 275373, false }, + { 275385, true }, + { 275396, true }, + { 275413, true }, + { 275423, true }, + { 275433, true }, + { 275443, true }, + { 275454, true }, + { 275463, true }, + { 275473, true }, + { 275484, false }, + { 275497, true }, + { 275513, true }, + { 275525, true }, + { 275536, true }, + { 275550, true }, + { 275562, false }, + { 275573, true }, + { 275596, true }, + { 275628, true }, + { 275650, true }, + { 275658, true }, + { 275668, true }, + { 275695, false }, + { 275707, true }, + { 275720, true }, { 275728, true }, - { 275738, true }, + { 275736, true }, { 275748, true }, - { 275759, true }, - { 275768, true }, - { 275778, true }, - { 275789, false }, + { 275763, true }, + { 275773, true }, + { 275789, true }, { 275802, true }, - { 275818, true }, - { 275830, true }, - { 275841, true }, - { 275855, true }, - { 275867, false }, - { 275878, true }, + { 275811, true }, + { 275828, true }, + { 275845, true }, + { 275859, true }, + { 275872, true }, + { 275886, true }, { 275901, true }, - { 275933, true }, - { 275955, true }, + { 275910, true }, + { 275921, true }, + { 275930, true }, + { 275941, false }, + { 275950, true }, { 275963, true }, - { 275973, true }, - { 276000, false }, - { 276012, true }, - { 276025, true }, - { 276033, true }, - { 276041, true }, - { 276053, true }, - { 276068, true }, - { 276078, true }, - { 276094, true }, - { 276107, true }, - { 276116, true }, - { 276133, true }, + { 275978, true }, + { 276000, true }, + { 276016, true }, + { 276026, true }, + { 276036, true }, + { 276052, true }, + { 276065, true }, + { 276085, true }, + { 276096, true }, + { 276106, true }, + { 276120, true }, + { 276137, true }, { 276150, true }, - { 276164, true }, - { 276177, true }, - { 276191, true }, - { 276206, true }, - { 276215, true }, - { 276226, true }, - { 276235, true }, - { 276246, false }, + { 276166, true }, + { 276184, true }, + { 276205, true }, + { 276224, true }, + { 276241, true }, { 276255, true }, - { 276268, true }, - { 276283, true }, - { 276305, true }, - { 276321, true }, - { 276331, true }, - { 276341, true }, - { 276357, true }, - { 276370, true }, - { 276390, true }, - { 276401, true }, - { 276411, true }, - { 276425, true }, - { 276442, true }, - { 276455, true }, - { 276471, true }, - { 276489, true }, - { 276510, true }, - { 276529, true }, - { 276546, true }, - { 276560, true }, - { 276576, true }, - { 276596, true }, - { 276609, true }, - { 276623, true }, - { 276634, true }, - { 276648, true }, - { 276668, true }, - { 276692, true }, - { 276715, true }, - { 276726, true }, - { 276748, true }, - { 276760, false }, - { 276773, true }, - { 276791, true }, - { 276805, true }, - { 276819, false }, - { 276840, true }, - { 276858, true }, - { 276878, true }, - { 276895, true }, - { 276906, true }, - { 276916, true }, - { 276926, true }, - { 276937, true }, - { 276949, true }, - { 276961, true }, - { 276980, true }, - { 277006, true }, - { 277019, true }, - { 277033, true }, - { 277050, true }, - { 277069, true }, - { 277086, true }, + { 276271, true }, + { 276291, true }, + { 276304, true }, + { 276318, true }, + { 276329, true }, + { 276343, true }, + { 276363, true }, + { 276387, true }, + { 276410, true }, + { 276421, true }, + { 276443, true }, + { 276455, false }, + { 276468, true }, + { 276486, true }, + { 276500, true }, + { 276514, false }, + { 276535, true }, + { 276553, true }, + { 276573, true }, + { 276590, true }, + { 276601, true }, + { 276611, true }, + { 276621, true }, + { 276632, true }, + { 276644, true }, + { 276656, true }, + { 276675, true }, + { 276701, true }, + { 276714, true }, + { 276728, true }, + { 276745, true }, + { 276764, true }, + { 276781, true }, + { 276799, true }, + { 276814, true }, + { 276835, true }, + { 276856, true }, + { 276868, true }, + { 276876, false }, + { 276894, true }, + { 276908, true }, + { 276922, true }, + { 276942, true }, + { 276964, true }, + { 276983, true }, + { 276995, true }, + { 277008, true }, + { 277020, true }, + { 277041, true }, + { 277065, true }, + { 277075, true }, + { 277090, true }, { 277104, true }, - { 277119, true }, - { 277140, true }, - { 277161, true }, - { 277173, true }, - { 277181, false }, - { 277199, true }, - { 277213, true }, - { 277227, true }, - { 277247, true }, - { 277269, true }, - { 277288, true }, - { 277300, true }, - { 277313, true }, - { 277325, true }, - { 277346, true }, - { 277370, true }, - { 277380, true }, - { 277395, true }, - { 277409, true }, - { 277417, true }, - { 277432, true }, - { 277449, true }, + { 277112, true }, + { 277127, true }, + { 277144, true }, + { 277166, true }, + { 277176, true }, + { 277194, true }, + { 277210, true }, + { 277229, true }, + { 277242, false }, + { 277256, true }, + { 277273, true }, + { 277282, true }, + { 277291, true }, + { 277301, true }, + { 277316, true }, + { 277332, true }, + { 277359, true }, + { 277373, true }, + { 277389, true }, + { 277407, true }, + { 277422, true }, + { 277435, true }, + { 277444, true }, + { 277455, true }, { 277471, true }, - { 277481, true }, + { 277486, true }, { 277499, true }, - { 277515, true }, - { 277534, true }, - { 277547, false }, - { 277561, true }, - { 277578, true }, - { 277587, true }, - { 277596, true }, + { 277512, false }, + { 277523, true }, + { 277539, true }, + { 277553, true }, + { 277574, true }, + { 277591, true }, { 277606, true }, - { 277621, true }, - { 277637, true }, - { 277664, true }, - { 277678, true }, - { 277694, true }, - { 277712, true }, - { 277727, true }, - { 277740, true }, - { 277749, true }, - { 277760, true }, - { 277776, true }, - { 277791, true }, - { 277804, true }, - { 277817, false }, - { 277828, true }, - { 277844, true }, + { 277617, true }, + { 277633, true }, + { 277645, true }, + { 277661, true }, + { 277672, true }, + { 277693, true }, + { 277716, true }, + { 277736, true }, + { 277757, true }, + { 277772, true }, + { 277790, true }, + { 277808, true }, + { 277823, true }, + { 277833, true }, + { 277847, true }, { 277856, true }, - { 277870, true }, - { 277891, true }, + { 277863, true }, + { 277877, true }, + { 277897, true }, { 277908, true }, - { 277923, true }, - { 277934, true }, - { 277950, true }, - { 277962, true }, - { 277978, true }, - { 277989, true }, - { 278010, true }, - { 278033, true }, - { 278053, true }, - { 278074, true }, - { 278089, true }, + { 277922, true }, + { 277935, true }, + { 277947, false }, + { 277961, true }, + { 277972, true }, + { 277982, true }, + { 277994, true }, + { 278012, true }, + { 278022, true }, + { 278039, true }, + { 278048, true }, + { 278061, true }, + { 278071, true }, + { 278082, true }, + { 278096, true }, { 278107, true }, - { 278125, true }, - { 278140, true }, - { 278150, true }, - { 278164, true }, - { 278173, true }, - { 278180, true }, - { 278194, true }, - { 278214, true }, - { 278225, true }, - { 278239, true }, - { 278252, true }, - { 278264, false }, - { 278278, true }, - { 278289, true }, + { 278118, true }, + { 278133, true }, + { 278149, false }, + { 278160, false }, + { 278175, true }, + { 278190, false }, + { 278209, true }, + { 278220, true }, + { 278230, true }, + { 278241, true }, + { 278261, true }, + { 278273, true }, + { 278286, true }, { 278299, true }, - { 278311, true }, - { 278329, true }, + { 278309, true }, + { 278318, false }, + { 278328, true }, { 278339, true }, - { 278356, true }, - { 278365, true }, - { 278378, true }, - { 278388, true }, - { 278399, true }, - { 278413, true }, - { 278424, true }, - { 278435, true }, - { 278450, true }, - { 278466, false }, - { 278481, true }, - { 278496, false }, + { 278351, true }, + { 278359, true }, + { 278369, true }, + { 278379, true }, + { 278391, true }, + { 278402, true }, + { 278417, true }, + { 278434, true }, + { 278451, true }, + { 278464, true }, + { 278473, true }, + { 278489, true }, + { 278496, true }, { 278515, true }, { 278526, true }, - { 278536, true }, - { 278547, true }, - { 278567, true }, - { 278579, true }, - { 278592, true }, - { 278605, true }, + { 278545, false }, + { 278556, true }, + { 278573, true }, + { 278590, true }, + { 278603, true }, { 278615, true }, - { 278624, false }, - { 278634, true }, - { 278645, true }, - { 278657, true }, - { 278665, true }, - { 278675, true }, - { 278685, true }, - { 278697, true }, - { 278708, true }, - { 278723, true }, - { 278740, true }, - { 278757, true }, - { 278770, true }, - { 278779, true }, - { 278795, true }, - { 278802, true }, - { 278821, true }, - { 278832, true }, - { 278851, false }, + { 278626, true }, + { 278637, false }, + { 278652, true }, + { 278661, true }, + { 278681, true }, + { 278704, false }, + { 278717, true }, + { 278728, false }, + { 278735, true }, + { 278745, true }, + { 278759, true }, + { 278768, true }, + { 278782, true }, + { 278802, false }, + { 278822, false }, + { 278834, false }, + { 278850, true }, { 278862, true }, - { 278879, true }, - { 278896, true }, - { 278909, true }, - { 278921, true }, - { 278932, true }, - { 278943, false }, - { 278958, true }, + { 278877, true }, + { 278889, true }, + { 278906, true }, + { 278925, true }, + { 278935, true }, + { 278959, true }, { 278967, true }, - { 278987, true }, - { 279010, false }, + { 278990, true }, + { 279006, true }, { 279023, true }, - { 279034, false }, - { 279041, true }, - { 279051, true }, - { 279065, true }, - { 279074, true }, - { 279088, true }, - { 279108, false }, - { 279128, false }, - { 279140, false }, - { 279156, true }, - { 279168, true }, - { 279183, true }, - { 279195, true }, - { 279212, true }, - { 279231, true }, - { 279241, true }, - { 279265, true }, - { 279273, true }, - { 279296, true }, - { 279312, true }, - { 279329, true }, - { 279345, true }, - { 279361, true }, - { 279374, true }, - { 279384, true }, - { 279400, true }, - { 279413, true }, - { 279428, true }, - { 279443, true }, - { 279457, true }, - { 279473, true }, - { 279494, false }, - { 279509, true }, - { 279526, true }, - { 279535, true }, - { 279555, true }, - { 279566, true }, - { 279574, true }, - { 279588, true }, - { 279601, true }, - { 279612, true }, - { 279622, true }, - { 279636, true }, - { 279648, true }, - { 279662, true }, - { 279672, false }, - { 279685, true }, - { 279701, true }, - { 279723, true }, - { 279735, true }, - { 279751, true }, - { 279767, true }, - { 279781, true }, - { 279794, true }, - { 279803, true }, - { 279812, true }, - { 279827, true }, - { 279841, true }, - { 279851, true }, - { 279880, true }, - { 279892, true }, - { 279904, true }, - { 279925, true }, - { 279939, true }, - { 279955, true }, - { 279972, true }, - { 279983, true }, - { 279998, true }, - { 280012, true }, - { 280032, true }, - { 280048, true }, - { 280060, true }, - { 280074, true }, - { 280089, true }, - { 280103, true }, - { 280116, true }, - { 280127, true }, - { 280138, true }, + { 279039, true }, + { 279055, true }, + { 279068, true }, + { 279078, true }, + { 279094, true }, + { 279107, true }, + { 279122, true }, + { 279137, true }, + { 279151, true }, + { 279167, true }, + { 279188, false }, + { 279203, true }, + { 279220, true }, + { 279229, true }, + { 279249, true }, + { 279260, true }, + { 279268, true }, + { 279282, true }, + { 279295, true }, + { 279306, true }, + { 279316, true }, + { 279330, true }, + { 279342, true }, + { 279356, true }, + { 279366, false }, + { 279379, true }, + { 279395, true }, + { 279417, true }, + { 279429, true }, + { 279445, true }, + { 279462, true }, + { 279478, true }, + { 279492, true }, + { 279505, true }, + { 279514, true }, + { 279523, true }, + { 279538, true }, + { 279552, true }, + { 279562, true }, + { 279591, true }, + { 279603, true }, + { 279624, true }, + { 279638, true }, + { 279654, true }, + { 279671, true }, + { 279682, true }, + { 279697, true }, + { 279711, true }, + { 279731, true }, + { 279747, true }, + { 279759, true }, + { 279773, true }, + { 279788, true }, + { 279802, true }, + { 279815, true }, + { 279826, true }, + { 279837, true }, + { 279853, true }, + { 279872, true }, + { 279889, true }, + { 279903, true }, + { 279913, true }, + { 279924, true }, + { 279940, true }, + { 279962, true }, + { 279971, true }, + { 279981, true }, + { 280005, false }, + { 280017, true }, + { 280033, true }, + { 280061, true }, + { 280093, true }, + { 280108, true }, + { 280120, true }, + { 280131, true }, + { 280140, true }, { 280154, true }, - { 280173, true }, - { 280190, true }, - { 280204, true }, - { 280214, true }, - { 280225, true }, - { 280241, true }, - { 280263, true }, - { 280272, true }, - { 280282, true }, - { 280306, false }, + { 280167, true }, + { 280179, true }, + { 280197, true }, + { 280209, true }, + { 280223, true }, + { 280237, true }, + { 280249, true }, + { 280270, true }, + { 280285, true }, + { 280301, true }, { 280318, true }, - { 280334, true }, - { 280362, true }, - { 280394, true }, - { 280409, true }, - { 280421, true }, - { 280432, true }, + { 280333, true }, + { 280346, false }, + { 280354, false }, + { 280366, true }, + { 280375, true }, + { 280385, true }, + { 280396, true }, + { 280408, true }, + { 280425, true }, { 280441, true }, - { 280455, true }, - { 280468, true }, - { 280480, true }, - { 280498, true }, - { 280510, true }, - { 280524, true }, - { 280538, true }, - { 280550, true }, - { 280571, true }, - { 280586, true }, - { 280602, true }, + { 280457, true }, + { 280467, true }, + { 280481, true }, + { 280492, true }, + { 280503, true }, + { 280514, true }, + { 280526, true }, + { 280545, true }, + { 280555, true }, + { 280563, true }, + { 280572, true }, + { 280591, true }, { 280619, true }, - { 280634, true }, - { 280647, false }, - { 280655, false }, - { 280667, true }, - { 280676, true }, - { 280686, true }, - { 280697, true }, - { 280709, true }, - { 280726, true }, + { 280633, true }, + { 280647, true }, + { 280666, true }, + { 280688, true }, + { 280710, true }, { 280732, true }, - { 280748, true }, - { 280764, true }, - { 280774, true }, - { 280788, true }, - { 280799, true }, - { 280810, true }, - { 280821, true }, - { 280833, true }, - { 280852, true }, - { 280862, true }, + { 280750, true }, + { 280767, true }, + { 280783, true }, + { 280794, true }, + { 280809, true }, + { 280825, true }, + { 280838, false }, + { 280854, true }, { 280870, true }, - { 280879, true }, - { 280898, true }, - { 280926, true }, - { 280940, true }, - { 280954, true }, + { 280883, true }, + { 280901, true }, + { 280916, true }, + { 280931, true }, + { 280945, true }, + { 280957, true }, { 280973, true }, - { 280995, true }, - { 281017, true }, - { 281039, true }, - { 281057, true }, - { 281074, true }, - { 281090, true }, - { 281101, true }, - { 281116, true }, - { 281132, true }, - { 281145, false }, - { 281161, true }, - { 281177, true }, - { 281190, true }, - { 281208, true }, - { 281223, true }, - { 281238, true }, - { 281252, true }, - { 281264, true }, + { 280988, true }, + { 281013, true }, + { 281033, true }, + { 281052, true }, + { 281071, true }, + { 281084, true }, + { 281100, true }, + { 281113, true }, + { 281126, true }, + { 281141, true }, + { 281157, true }, + { 281174, true }, + { 281193, true }, + { 281204, true }, + { 281220, true }, + { 281237, true }, + { 281250, true }, + { 281263, true }, { 281280, true }, { 281295, true }, - { 281320, true }, - { 281340, true }, - { 281359, true }, - { 281378, true }, - { 281391, true }, - { 281407, true }, - { 281420, true }, - { 281433, true }, - { 281448, true }, - { 281464, true }, - { 281481, true }, - { 281500, true }, - { 281511, true }, - { 281527, true }, - { 281544, true }, + { 281312, true }, + { 281331, true }, + { 281344, true }, + { 281360, true }, + { 281371, true }, + { 281384, true }, + { 281398, true }, + { 281412, false }, + { 281428, true }, + { 281447, true }, + { 281467, true }, + { 281487, true }, + { 281501, true }, + { 281513, true }, + { 281528, true }, + { 281539, true }, { 281557, true }, - { 281570, true }, - { 281587, true }, + { 281575, true }, + { 281590, true }, { 281602, true }, - { 281619, true }, - { 281638, true }, - { 281651, true }, - { 281667, true }, - { 281678, true }, - { 281691, true }, - { 281705, true }, - { 281719, false }, - { 281735, true }, - { 281754, true }, - { 281774, true }, - { 281794, true }, - { 281808, true }, - { 281820, true }, + { 281613, true }, + { 281629, true }, + { 281644, true }, + { 281666, true }, + { 281682, true }, + { 281708, true }, + { 281725, true }, + { 281742, true }, + { 281763, true }, + { 281780, true }, + { 281798, true }, + { 281816, false }, { 281835, true }, { 281846, true }, - { 281864, true }, - { 281882, true }, - { 281897, true }, - { 281909, true }, - { 281920, true }, - { 281936, true }, - { 281951, true }, - { 281973, true }, - { 281989, true }, - { 282015, true }, - { 282032, true }, - { 282049, true }, - { 282070, true }, - { 282087, true }, - { 282105, true }, - { 282123, false }, - { 282142, true }, - { 282153, true }, - { 282169, true }, - { 282183, true }, - { 282197, true }, - { 282210, true }, + { 281862, true }, + { 281876, true }, + { 281890, true }, + { 281903, true }, + { 281916, true }, + { 281929, true }, + { 281942, true }, + { 281955, true }, + { 281972, true }, + { 281983, true }, + { 281991, true }, + { 282000, true }, + { 282010, true }, + { 282021, true }, + { 282042, true }, + { 282056, true }, + { 282068, true }, + { 282082, true }, + { 282091, true }, + { 282108, true }, + { 282117, true }, + { 282130, true }, + { 282149, true }, + { 282170, true }, + { 282179, true }, + { 282187, true }, + { 282206, true }, { 282223, true }, - { 282236, true }, - { 282249, true }, - { 282262, true }, - { 282279, true }, - { 282290, true }, - { 282298, true }, - { 282307, true }, - { 282317, true }, - { 282328, true }, - { 282349, true }, - { 282363, true }, - { 282375, true }, - { 282389, true }, - { 282398, true }, - { 282415, true }, - { 282424, true }, - { 282437, true }, - { 282456, true }, - { 282477, true }, - { 282486, true }, - { 282494, true }, - { 282513, true }, - { 282530, true }, - { 282544, false }, - { 282559, true }, - { 282575, true }, - { 282585, true }, - { 282598, false }, - { 282614, false }, - { 282626, true }, - { 282638, false }, - { 282653, true }, - { 282666, true }, - { 282681, true }, - { 282701, true }, - { 282723, true }, - { 282745, false }, - { 282768, true }, - { 282786, true }, + { 282237, false }, + { 282252, true }, + { 282268, true }, + { 282278, true }, + { 282291, false }, + { 282303, true }, + { 282315, false }, + { 282330, true }, + { 282343, true }, + { 282358, true }, + { 282378, true }, + { 282400, true }, + { 282422, false }, + { 282445, true }, + { 282463, true }, + { 282479, true }, + { 282491, true }, + { 282509, true }, + { 282521, true }, + { 282532, true }, + { 282541, true }, + { 282555, true }, + { 282563, true }, + { 282572, true }, + { 282588, true }, + { 282603, true }, + { 282613, true }, + { 282633, true }, + { 282650, true }, + { 282664, true }, + { 282684, true }, + { 282695, true }, + { 282707, true }, + { 282722, true }, + { 282734, true }, + { 282744, true }, + { 282760, true }, + { 282773, true }, + { 282794, true }, { 282802, true }, - { 282814, true }, - { 282832, true }, - { 282844, true }, - { 282855, true }, - { 282864, true }, - { 282878, true }, - { 282886, true }, - { 282895, true }, - { 282911, true }, - { 282926, true }, - { 282936, true }, - { 282956, true }, - { 282973, true }, - { 282987, true }, - { 283007, true }, - { 283018, true }, - { 283030, true }, - { 283045, true }, - { 283057, true }, - { 283067, true }, - { 283083, true }, - { 283096, true }, - { 283117, true }, - { 283125, true }, - { 283135, true }, - { 283152, true }, - { 283175, true }, - { 283184, true }, - { 283194, true }, - { 283207, true }, - { 283217, true }, - { 283228, true }, - { 283243, true }, - { 283256, true }, - { 283275, true }, - { 283286, true }, - { 283307, true }, - { 283330, false }, - { 283340, true }, - { 283354, true }, - { 283374, true }, - { 283389, true }, - { 283402, true }, - { 283422, true }, - { 283437, true }, - { 283451, true }, - { 283467, false }, - { 283490, true }, - { 283503, true }, - { 283514, true }, - { 283533, true }, - { 283544, true }, - { 283555, true }, - { 283573, true }, - { 283583, true }, - { 283593, true }, - { 283607, true }, + { 282812, true }, + { 282829, true }, + { 282852, true }, + { 282861, true }, + { 282871, true }, + { 282884, true }, + { 282894, true }, + { 282905, true }, + { 282920, true }, + { 282933, true }, + { 282952, true }, + { 282963, true }, + { 282984, true }, + { 283007, false }, + { 283017, true }, + { 283031, true }, + { 283051, true }, + { 283066, true }, + { 283079, true }, + { 283099, true }, + { 283114, true }, + { 283128, true }, + { 283144, false }, + { 283167, true }, + { 283180, true }, + { 283191, true }, + { 283210, true }, + { 283221, true }, + { 283232, true }, + { 283250, true }, + { 283260, true }, + { 283270, true }, + { 283284, true }, + { 283298, true }, + { 283312, true }, + { 283325, true }, + { 283338, true }, + { 283352, false }, + { 283367, false }, + { 283380, true }, + { 283394, true }, + { 283419, true }, + { 283433, true }, + { 283445, true }, + { 283457, true }, + { 283469, true }, + { 283483, true }, + { 283499, true }, + { 283509, false }, + { 283529, true }, + { 283546, true }, + { 283556, true }, + { 283570, true }, + { 283585, true }, + { 283595, true }, + { 283608, true }, { 283621, true }, - { 283635, true }, - { 283648, true }, - { 283661, true }, - { 283675, false }, - { 283690, false }, - { 283703, true }, - { 283717, true }, + { 283636, true }, + { 283645, true }, + { 283655, true }, + { 283667, true }, + { 283681, true }, + { 283690, true }, + { 283699, true }, + { 283710, true }, + { 283721, true }, + { 283732, true }, { 283742, true }, - { 283756, true }, - { 283768, true }, - { 283780, true }, - { 283792, true }, + { 283750, true }, + { 283759, true }, + { 283767, true }, + { 283776, false }, + { 283796, true }, { 283806, true }, - { 283822, true }, - { 283832, false }, - { 283852, true }, - { 283869, true }, + { 283821, true }, + { 283833, true }, + { 283845, true }, + { 283860, true }, { 283879, true }, - { 283893, true }, - { 283908, true }, - { 283918, true }, - { 283931, true }, - { 283944, true }, - { 283959, true }, - { 283968, true }, - { 283978, true }, - { 283990, true }, + { 283899, true }, + { 283927, true }, + { 283952, true }, + { 283962, true }, + { 283975, true }, + { 283989, true }, { 284004, true }, - { 284013, true }, - { 284022, true }, - { 284033, true }, + { 284030, true }, { 284044, true }, - { 284055, true }, - { 284065, true }, - { 284073, true }, - { 284082, true }, - { 284090, true }, - { 284099, false }, - { 284119, true }, - { 284129, true }, - { 284144, true }, - { 284156, true }, - { 284168, true }, - { 284183, true }, - { 284202, true }, - { 284222, true }, - { 284250, true }, - { 284275, true }, - { 284285, true }, - { 284298, true }, - { 284312, true }, - { 284327, true }, - { 284353, true }, - { 284367, true }, - { 284384, true }, - { 284399, true }, - { 284412, true }, - { 284428, true }, - { 284436, true }, - { 284451, true }, - { 284468, false }, - { 284486, true }, - { 284498, true }, - { 284520, true }, - { 284536, true }, - { 284551, true }, - { 284562, true }, - { 284578, true }, - { 284599, true }, - { 284622, true }, + { 284061, true }, + { 284076, true }, + { 284089, true }, + { 284105, true }, + { 284113, true }, + { 284128, true }, + { 284145, false }, + { 284163, true }, + { 284175, true }, + { 284197, true }, + { 284213, true }, + { 284228, true }, + { 284239, true }, + { 284255, true }, + { 284276, true }, + { 284299, true }, + { 284321, true }, + { 284335, true }, + { 284356, true }, + { 284370, true }, + { 284394, true }, + { 284411, true }, + { 284422, true }, + { 284443, true }, + { 284462, true }, + { 284488, true }, + { 284501, true }, + { 284521, true }, + { 284537, true }, + { 284563, true }, + { 284583, true }, + { 284604, true }, + { 284627, true }, { 284644, true }, - { 284658, true }, - { 284679, true }, - { 284693, true }, - { 284717, true }, - { 284734, true }, - { 284745, true }, - { 284766, true }, - { 284785, true }, - { 284811, true }, - { 284824, true }, - { 284844, true }, - { 284860, true }, - { 284886, true }, - { 284906, true }, - { 284927, true }, - { 284950, true }, - { 284967, true }, - { 284991, true }, - { 285010, true }, - { 285032, false }, - { 285056, true }, - { 285075, true }, - { 285091, true }, - { 285116, false }, - { 285142, true }, - { 285161, true }, - { 285172, true }, - { 285196, true }, - { 285222, true }, - { 285235, true }, - { 285253, true }, - { 285264, true }, - { 285286, true }, - { 285302, true }, - { 285328, true }, - { 285345, true }, - { 285363, true }, - { 285382, true }, - { 285392, true }, - { 285406, true }, - { 285422, true }, - { 285440, true }, - { 285461, false }, - { 285478, true }, - { 285494, true }, - { 285516, true }, - { 285539, true }, - { 285551, true }, - { 285570, true }, - { 285588, true }, - { 285611, true }, - { 285624, true }, - { 285640, true }, - { 285656, true }, - { 285674, true }, - { 285692, true }, - { 285706, true }, - { 285724, true }, - { 285742, true }, - { 285757, true }, - { 285774, true }, - { 285808, true }, - { 285822, true }, - { 285849, true }, - { 285867, true }, - { 285883, true }, - { 285901, true }, - { 285917, true }, - { 285933, true }, + { 284668, true }, + { 284687, true }, + { 284709, false }, + { 284733, true }, + { 284752, true }, + { 284768, true }, + { 284793, false }, + { 284819, true }, + { 284838, true }, + { 284849, true }, + { 284873, true }, + { 284899, true }, + { 284912, true }, + { 284930, true }, + { 284941, true }, + { 284963, true }, + { 284979, true }, + { 285005, true }, + { 285022, true }, + { 285040, true }, + { 285059, true }, + { 285069, true }, + { 285083, true }, + { 285099, true }, + { 285117, true }, + { 285138, false }, + { 285155, true }, + { 285171, true }, + { 285193, true }, + { 285216, true }, + { 285228, true }, + { 285247, true }, + { 285265, true }, + { 285288, true }, + { 285301, true }, + { 285317, true }, + { 285333, true }, + { 285351, true }, + { 285369, true }, + { 285383, true }, + { 285401, true }, + { 285419, true }, + { 285434, true }, + { 285451, true }, + { 285485, true }, + { 285499, true }, + { 285526, true }, + { 285544, true }, + { 285560, true }, + { 285578, true }, + { 285594, true }, + { 285610, true }, + { 285623, true }, + { 285643, true }, + { 285659, true }, + { 285677, true }, + { 285694, true }, + { 285713, true }, + { 285726, true }, + { 285745, true }, + { 285781, true }, + { 285804, true }, + { 285824, true }, + { 285839, true }, + { 285857, true }, + { 285877, true }, + { 285894, true }, + { 285913, true }, + { 285924, true }, { 285946, true }, - { 285966, true }, - { 285982, true }, - { 286000, true }, - { 286017, true }, - { 286036, true }, - { 286049, true }, - { 286068, true }, - { 286104, true }, - { 286127, true }, - { 286147, true }, - { 286162, true }, - { 286180, true }, - { 286200, true }, - { 286217, true }, - { 286236, true }, - { 286247, true }, - { 286269, true }, - { 286287, true }, - { 286317, true }, - { 286337, true }, - { 286353, true }, - { 286368, true }, - { 286383, true }, - { 286394, true }, - { 286408, true }, - { 286430, true }, - { 286444, true }, - { 286459, true }, - { 286473, true }, - { 286488, true }, - { 286501, true }, + { 285964, true }, + { 285994, true }, + { 286014, true }, + { 286030, true }, + { 286045, true }, + { 286060, true }, + { 286071, true }, + { 286085, true }, + { 286107, true }, + { 286121, true }, + { 286136, true }, + { 286150, true }, + { 286165, true }, + { 286178, true }, + { 286195, true }, + { 286216, true }, + { 286235, true }, + { 286248, true }, + { 286263, true }, + { 286276, true }, + { 286299, true }, + { 286308, true }, + { 286329, true }, + { 286351, true }, + { 286361, true }, + { 286374, true }, + { 286395, true }, + { 286419, true }, + { 286445, true }, + { 286463, true }, + { 286486, true }, + { 286507, true }, { 286518, true }, - { 286539, true }, - { 286558, true }, - { 286571, true }, - { 286586, true }, - { 286599, true }, - { 286622, true }, - { 286631, true }, - { 286652, true }, - { 286674, true }, - { 286684, true }, - { 286697, true }, - { 286718, true }, - { 286742, true }, - { 286768, true }, - { 286786, true }, - { 286809, true }, - { 286830, true }, + { 286535, true }, + { 286553, true }, + { 286568, true }, + { 286584, true }, + { 286601, true }, + { 286614, true }, + { 286627, true }, + { 286643, true }, + { 286662, true }, + { 286692, true }, + { 286710, true }, + { 286734, true }, + { 286747, true }, + { 286764, true }, + { 286785, true }, + { 286800, true }, + { 286822, true }, { 286841, true }, - { 286858, true }, - { 286876, true }, - { 286891, true }, - { 286907, true }, - { 286924, true }, - { 286937, true }, - { 286950, true }, - { 286966, true }, - { 286985, true }, - { 287015, true }, - { 287033, true }, - { 287057, true }, - { 287070, true }, - { 287087, true }, - { 287108, true }, - { 287123, true }, - { 287145, true }, - { 287164, true }, - { 287184, true }, - { 287201, false }, - { 287216, true }, - { 287234, true }, - { 287256, true }, - { 287272, true }, - { 287291, true }, - { 287303, true }, - { 287329, true }, - { 287341, true }, - { 287353, true }, - { 287369, true }, + { 286861, true }, + { 286878, false }, + { 286893, true }, + { 286911, true }, + { 286933, true }, + { 286949, true }, + { 286968, true }, + { 286980, true }, + { 287006, true }, + { 287018, true }, + { 287030, true }, + { 287046, true }, + { 287063, true }, + { 287081, true }, + { 287100, true }, + { 287120, true }, + { 287140, true }, + { 287156, true }, + { 287175, true }, + { 287186, true }, + { 287216, false }, + { 287230, true }, + { 287247, true }, + { 287268, true }, + { 287288, true }, + { 287302, true }, + { 287320, true }, + { 287336, true }, + { 287346, true }, + { 287362, true }, { 287386, true }, - { 287404, true }, - { 287423, true }, - { 287443, true }, - { 287463, true }, - { 287479, true }, - { 287498, true }, - { 287509, true }, - { 287539, false }, - { 287553, true }, - { 287570, true }, - { 287591, true }, - { 287611, true }, - { 287625, true }, - { 287643, true }, - { 287659, true }, - { 287669, true }, - { 287685, true }, - { 287709, true }, - { 287720, true }, - { 287732, true }, - { 287751, true }, - { 287767, true }, - { 287787, true }, - { 287801, true }, - { 287814, true }, - { 287825, true }, - { 287846, true }, - { 287871, true }, - { 287899, true }, - { 287915, true }, - { 287928, true }, - { 287950, true }, - { 287967, true }, - { 287987, true }, - { 288004, false }, + { 287397, true }, + { 287409, true }, + { 287428, true }, + { 287444, true }, + { 287464, true }, + { 287478, true }, + { 287491, true }, + { 287502, true }, + { 287523, true }, + { 287548, true }, + { 287576, true }, + { 287592, true }, + { 287605, true }, + { 287627, true }, + { 287644, true }, + { 287664, true }, + { 287681, false }, + { 287696, true }, + { 287721, true }, + { 287742, true }, + { 287770, true }, + { 287779, true }, + { 287786, true }, + { 287796, true }, + { 287808, true }, + { 287823, true }, + { 287842, true }, + { 287861, true }, + { 287880, true }, + { 287897, true }, + { 287914, true }, + { 287931, true }, + { 287952, true }, + { 287968, true }, + { 287985, true }, + { 288001, false }, { 288019, true }, - { 288044, true }, - { 288065, true }, - { 288093, true }, - { 288102, true }, - { 288109, true }, - { 288119, true }, - { 288131, true }, - { 288146, true }, - { 288165, true }, - { 288184, true }, - { 288203, true }, - { 288220, true }, - { 288237, true }, - { 288254, true }, - { 288275, true }, - { 288291, true }, - { 288308, true }, - { 288324, false }, + { 288032, true }, + { 288056, true }, + { 288074, true }, + { 288087, true }, + { 288101, true }, + { 288122, true }, + { 288145, true }, + { 288160, true }, + { 288175, true }, + { 288187, true }, + { 288212, true }, + { 288225, true }, + { 288247, true }, + { 288258, true }, + { 288268, true }, + { 288285, true }, + { 288310, true }, + { 288329, true }, { 288342, true }, - { 288355, true }, - { 288379, true }, - { 288397, true }, - { 288410, true }, - { 288424, true }, - { 288445, true }, - { 288468, true }, + { 288357, true }, + { 288371, true }, + { 288381, true }, + { 288394, true }, + { 288418, true }, + { 288432, true }, + { 288454, true }, + { 288469, true }, { 288483, true }, - { 288498, true }, - { 288510, true }, - { 288535, true }, - { 288548, true }, - { 288570, true }, - { 288581, true }, - { 288591, true }, + { 288492, true }, + { 288501, true }, + { 288515, true }, + { 288525, true }, + { 288537, true }, + { 288553, true }, + { 288569, true }, + { 288585, false }, + { 288599, true }, { 288608, true }, + { 288619, true }, { 288633, true }, - { 288652, true }, + { 288651, true }, { 288665, true }, - { 288680, true }, - { 288694, true }, - { 288704, true }, - { 288717, true }, - { 288741, true }, + { 288675, true }, + { 288690, true }, + { 288703, true }, + { 288716, true }, + { 288732, true }, + { 288742, true }, { 288755, true }, - { 288777, true }, - { 288810, true }, - { 288825, true }, - { 288839, true }, - { 288848, true }, - { 288857, true }, - { 288871, true }, - { 288881, true }, - { 288893, true }, - { 288909, true }, - { 288925, true }, - { 288941, false }, - { 288955, true }, - { 288964, true }, - { 288975, true }, - { 288989, true }, - { 289007, true }, - { 289021, true }, - { 289031, true }, - { 289046, true }, - { 289059, true }, - { 289072, true }, - { 289088, true }, - { 289098, true }, - { 289113, true }, - { 289126, true }, - { 289145, true }, + { 288774, true }, + { 288794, true }, + { 288817, true }, + { 288824, true }, + { 288840, true }, + { 288858, true }, + { 288870, true }, + { 288894, true }, + { 288924, true }, + { 288937, true }, + { 288950, true }, + { 288960, true }, + { 288972, true }, + { 288986, true }, + { 289000, true }, + { 289010, true }, + { 289025, true }, + { 289043, true }, + { 289060, true }, + { 289071, true }, + { 289079, true }, + { 289093, true }, + { 289112, true }, + { 289127, true }, + { 289141, true }, + { 289153, true }, { 289165, true }, - { 289188, true }, - { 289195, true }, - { 289211, true }, + { 289176, true }, + { 289191, true }, + { 289202, true }, + { 289217, true }, { 289229, true }, - { 289241, true }, - { 289265, true }, - { 289295, true }, + { 289245, true }, + { 289260, true }, + { 289276, true }, + { 289285, true }, + { 289294, true }, { 289308, true }, - { 289321, true }, - { 289331, true }, - { 289343, true }, - { 289357, true }, - { 289371, true }, - { 289381, true }, - { 289396, true }, - { 289414, true }, - { 289431, true }, - { 289442, true }, - { 289450, true }, - { 289464, true }, - { 289483, true }, - { 289498, true }, - { 289512, true }, - { 289524, true }, - { 289536, true }, + { 289319, true }, + { 289335, false }, + { 289350, true }, + { 289364, true }, + { 289378, true }, + { 289387, true }, + { 289403, true }, + { 289416, true }, + { 289426, true }, + { 289439, true }, + { 289459, true }, + { 289473, true }, + { 289486, false }, + { 289506, true }, + { 289520, true }, + { 289533, true }, { 289547, true }, - { 289562, true }, - { 289573, true }, - { 289588, true }, - { 289600, true }, - { 289616, true }, - { 289631, true }, - { 289647, true }, - { 289656, true }, + { 289561, true }, + { 289572, true }, + { 289589, true }, + { 289603, true }, + { 289627, true }, + { 289639, true }, + { 289653, true }, { 289665, true }, - { 289679, true }, - { 289690, true }, - { 289706, true }, - { 289720, true }, - { 289734, true }, - { 289743, true }, - { 289759, true }, - { 289772, true }, - { 289782, true }, - { 289795, true }, - { 289815, true }, - { 289829, true }, - { 289842, false }, - { 289862, true }, - { 289876, true }, - { 289889, true }, - { 289903, true }, - { 289917, true }, - { 289928, true }, - { 289945, true }, - { 289959, true }, - { 289983, true }, - { 289995, true }, - { 290009, true }, - { 290021, true }, - { 290033, true }, - { 290045, true }, - { 290057, true }, - { 290067, true }, - { 290077, true }, - { 290092, true }, - { 290105, true }, - { 290122, true }, + { 289677, true }, + { 289689, true }, + { 289701, true }, + { 289711, true }, + { 289721, true }, + { 289736, true }, + { 289749, true }, + { 289766, true }, + { 289793, true }, + { 289806, true }, + { 289820, true }, + { 289845, true }, + { 289863, true }, + { 289875, true }, + { 289886, true }, + { 289896, true }, + { 289908, true }, + { 289921, true }, + { 289948, false }, + { 289962, true }, + { 289984, true }, + { 289998, true }, + { 290007, true }, + { 290022, true }, + { 290040, true }, + { 290047, true }, + { 290060, true }, + { 290070, false }, + { 290083, true }, + { 290091, true }, + { 290101, true }, + { 290121, true }, + { 290129, true }, + { 290140, true }, { 290149, true }, - { 290162, true }, - { 290176, true }, - { 290201, true }, - { 290219, true }, - { 290231, true }, - { 290242, true }, - { 290252, true }, - { 290264, true }, - { 290277, true }, - { 290304, false }, - { 290318, true }, - { 290340, true }, - { 290354, true }, - { 290363, true }, - { 290378, true }, - { 290396, true }, - { 290403, true }, - { 290416, true }, - { 290426, false }, - { 290439, true }, - { 290447, true }, - { 290457, true }, + { 290157, true }, + { 290170, true }, + { 290183, true }, + { 290192, true }, + { 290204, true }, + { 290216, true }, + { 290229, true }, + { 290237, true }, + { 290246, true }, + { 290256, true }, + { 290266, true }, + { 290276, true }, + { 290286, true }, + { 290296, true }, + { 290311, true }, + { 290320, true }, + { 290327, true }, + { 290339, true }, + { 290355, true }, + { 290372, true }, + { 290381, true }, + { 290388, true }, + { 290402, true }, + { 290419, true }, + { 290431, true }, + { 290451, true }, + { 290460, true }, { 290477, true }, { 290485, true }, - { 290496, true }, - { 290505, true }, - { 290513, true }, - { 290526, true }, - { 290539, true }, - { 290548, true }, - { 290560, true }, - { 290572, true }, + { 290492, true }, + { 290501, true }, + { 290510, true }, + { 290522, true }, + { 290536, true }, + { 290553, true }, + { 290569, true }, { 290585, true }, - { 290593, true }, - { 290602, true }, - { 290612, true }, - { 290622, true }, - { 290632, true }, - { 290642, true }, - { 290652, true }, - { 290667, true }, - { 290676, true }, - { 290683, true }, - { 290695, true }, - { 290711, true }, - { 290728, true }, + { 290604, true }, + { 290621, true }, + { 290639, true }, + { 290657, true }, + { 290674, true }, + { 290689, true }, + { 290704, true }, + { 290719, true }, { 290737, true }, - { 290744, true }, - { 290758, true }, - { 290775, true }, - { 290787, true }, - { 290807, true }, - { 290816, true }, - { 290833, true }, - { 290841, true }, - { 290848, true }, - { 290857, true }, - { 290866, true }, - { 290878, true }, - { 290892, true }, - { 290909, true }, - { 290925, true }, - { 290941, true }, - { 290960, true }, - { 290977, true }, - { 290995, true }, - { 291013, true }, - { 291030, true }, - { 291045, true }, - { 291060, true }, - { 291075, true }, - { 291093, true }, - { 291110, true }, - { 291124, true }, - { 291141, true }, - { 291151, true }, - { 291160, true }, - { 291170, true }, - { 291180, true }, - { 291190, true }, - { 291202, true }, + { 290754, true }, + { 290768, true }, + { 290785, true }, + { 290795, true }, + { 290804, true }, + { 290814, true }, + { 290824, true }, + { 290834, true }, + { 290846, true }, + { 290864, true }, + { 290881, true }, + { 290895, true }, + { 290910, true }, + { 290922, true }, + { 290931, true }, + { 290945, true }, + { 290959, true }, + { 290967, true }, + { 290981, true }, + { 290991, true }, + { 291004, true }, + { 291014, true }, + { 291024, true }, + { 291039, true }, + { 291051, true }, + { 291065, true }, + { 291083, true }, + { 291092, true }, + { 291101, true }, + { 291112, true }, + { 291125, false }, + { 291158, true }, + { 291173, true }, + { 291184, true }, + { 291207, true }, { 291220, true }, - { 291237, true }, - { 291251, true }, - { 291266, true }, + { 291231, true }, + { 291245, true }, + { 291265, true }, { 291278, true }, - { 291287, true }, - { 291301, true }, - { 291315, true }, - { 291323, true }, - { 291337, true }, - { 291347, true }, - { 291360, true }, - { 291370, true }, - { 291380, true }, - { 291395, true }, - { 291407, true }, - { 291421, true }, - { 291439, true }, - { 291448, true }, - { 291457, true }, - { 291468, true }, - { 291481, false }, - { 291514, true }, - { 291529, true }, - { 291540, true }, - { 291563, true }, + { 291292, true }, + { 291305, true }, + { 291321, true }, + { 291331, true }, + { 291345, true }, + { 291363, true }, + { 291377, true }, + { 291393, true }, + { 291408, true }, + { 291430, true }, + { 291440, true }, + { 291452, true }, + { 291466, true }, + { 291482, true }, + { 291494, true }, + { 291510, true }, + { 291520, true }, + { 291532, true }, + { 291545, true }, + { 291562, true }, { 291576, true }, - { 291587, true }, - { 291601, true }, - { 291621, true }, - { 291634, true }, - { 291648, true }, + { 291584, true }, + { 291596, true }, + { 291610, true }, + { 291622, true }, + { 291633, true }, + { 291641, true }, + { 291653, false }, { 291661, true }, - { 291677, true }, - { 291687, true }, - { 291701, true }, - { 291719, true }, - { 291733, true }, - { 291749, true }, - { 291764, true }, - { 291786, true }, - { 291796, true }, + { 291672, true }, + { 291688, true }, + { 291703, true }, + { 291714, true }, + { 291728, true }, + { 291741, true }, + { 291753, true }, + { 291770, false }, + { 291784, true }, + { 291797, true }, { 291808, true }, - { 291822, true }, - { 291838, true }, - { 291850, true }, - { 291866, true }, - { 291876, true }, - { 291888, true }, - { 291901, true }, - { 291918, true }, - { 291932, true }, - { 291940, true }, - { 291952, true }, - { 291966, true }, - { 291978, true }, - { 291989, true }, + { 291818, false }, + { 291829, true }, + { 291843, true }, + { 291862, true }, + { 291873, true }, + { 291887, true }, + { 291898, true }, + { 291909, true }, + { 291920, true }, + { 291931, true }, + { 291942, true }, + { 291956, true }, + { 291968, true }, + { 291983, true }, { 291997, true }, - { 292009, false }, - { 292017, true }, - { 292028, true }, - { 292044, true }, + { 292012, true }, + { 292025, true }, + { 292041, true }, + { 292050, true }, { 292059, true }, - { 292070, true }, - { 292084, true }, - { 292097, true }, - { 292109, true }, - { 292126, false }, - { 292140, true }, - { 292153, true }, - { 292164, true }, - { 292174, false }, - { 292185, true }, - { 292199, true }, - { 292218, true }, - { 292229, true }, - { 292243, true }, - { 292254, true }, - { 292265, true }, - { 292276, true }, - { 292287, true }, - { 292298, true }, - { 292312, true }, - { 292324, true }, - { 292339, true }, - { 292353, true }, + { 292073, true }, + { 292106, true }, + { 292117, true }, + { 292128, true }, + { 292144, false }, + { 292160, true }, + { 292171, true }, + { 292182, true }, + { 292192, true }, + { 292208, true }, + { 292215, true }, + { 292226, false }, + { 292240, true }, + { 292253, true }, + { 292262, true }, + { 292272, true }, + { 292285, true }, + { 292295, true }, + { 292313, true }, + { 292337, true }, + { 292345, true }, + { 292358, true }, { 292368, true }, - { 292381, true }, - { 292397, true }, - { 292406, true }, - { 292415, true }, - { 292429, true }, - { 292462, true }, - { 292473, true }, - { 292484, true }, - { 292500, false }, - { 292516, true }, - { 292527, true }, - { 292538, true }, - { 292548, true }, - { 292564, true }, + { 292381, false }, + { 292400, true }, + { 292414, true }, + { 292426, true }, + { 292440, true }, + { 292461, true }, + { 292476, true }, + { 292490, true }, + { 292502, false }, + { 292519, true }, + { 292537, true }, + { 292552, false }, { 292571, true }, - { 292582, false }, - { 292596, true }, - { 292609, true }, - { 292618, true }, - { 292628, true }, - { 292641, true }, + { 292581, true }, + { 292593, true }, + { 292603, true }, + { 292615, true }, + { 292632, true }, { 292651, true }, - { 292669, true }, - { 292693, true }, - { 292701, true }, - { 292714, true }, - { 292724, true }, - { 292737, false }, - { 292756, true }, - { 292770, true }, - { 292782, true }, - { 292796, true }, - { 292817, true }, - { 292832, true }, - { 292846, true }, - { 292858, false }, + { 292660, false }, + { 292675, true }, + { 292691, false }, + { 292703, true }, + { 292729, true }, + { 292740, true }, + { 292755, true }, + { 292773, true }, + { 292786, true }, + { 292807, true }, + { 292823, true }, + { 292838, true }, + { 292860, true }, { 292875, true }, - { 292893, true }, - { 292908, false }, - { 292927, true }, - { 292937, true }, - { 292949, true }, - { 292959, true }, - { 292971, true }, - { 292988, true }, + { 292885, true }, + { 292897, true }, + { 292910, true }, + { 292919, true }, + { 292929, true }, + { 292947, true }, + { 292967, true }, + { 292986, true }, { 293007, true }, - { 293016, false }, - { 293031, true }, - { 293047, false }, - { 293059, true }, - { 293085, true }, - { 293096, true }, - { 293111, true }, - { 293129, true }, + { 293035, true }, + { 293049, true }, + { 293069, true }, + { 293088, true }, + { 293109, true }, + { 293118, true }, { 293142, true }, - { 293163, true }, - { 293179, true }, - { 293194, true }, - { 293216, true }, - { 293231, true }, - { 293241, true }, + { 293156, true }, + { 293166, false }, + { 293185, true }, + { 293199, true }, + { 293214, true }, + { 293234, true }, + { 293243, true }, { 293253, true }, - { 293266, true }, - { 293275, true }, - { 293285, true }, - { 293303, true }, - { 293323, true }, - { 293342, true }, - { 293363, true }, - { 293391, true }, - { 293405, true }, - { 293425, true }, - { 293444, true }, - { 293465, true }, - { 293474, true }, - { 293498, true }, - { 293512, true }, - { 293522, false }, - { 293541, true }, - { 293555, true }, - { 293570, true }, - { 293590, true }, - { 293599, true }, - { 293609, true }, - { 293630, true }, - { 293648, true }, - { 293661, true }, - { 293674, true }, - { 293695, true }, - { 293716, true }, - { 293735, true }, - { 293754, true }, - { 293766, true }, - { 293777, true }, - { 293792, true }, - { 293807, true }, - { 293818, true }, - { 293839, true }, - { 293858, true }, - { 293869, true }, - { 293898, true }, + { 293274, true }, + { 293292, true }, + { 293305, true }, + { 293318, true }, + { 293339, true }, + { 293360, true }, + { 293379, true }, + { 293398, true }, + { 293410, true }, + { 293421, true }, + { 293436, true }, + { 293451, true }, + { 293462, true }, + { 293483, true }, + { 293502, true }, + { 293513, true }, + { 293542, true }, + { 293567, true }, + { 293588, true }, + { 293595, true }, + { 293607, true }, + { 293619, true }, + { 293634, true }, + { 293650, true }, + { 293667, true }, + { 293689, true }, + { 293699, true }, + { 293711, true }, + { 293723, true }, + { 293740, true }, + { 293749, true }, + { 293762, true }, + { 293771, false }, + { 293784, false }, + { 293804, true }, + { 293814, true }, + { 293833, true }, + { 293854, true }, + { 293866, true }, + { 293879, true }, + { 293896, true }, + { 293912, true }, { 293923, true }, - { 293944, true }, - { 293951, true }, - { 293963, true }, - { 293975, true }, - { 293990, true }, - { 294006, true }, - { 294023, true }, - { 294045, true }, - { 294055, true }, - { 294067, true }, - { 294079, true }, + { 293938, true }, + { 293956, true }, + { 293969, true }, + { 293986, true }, + { 294001, true }, + { 294014, true }, + { 294030, true }, + { 294048, true }, + { 294060, true }, + { 294079, false }, { 294096, true }, - { 294105, true }, - { 294118, true }, - { 294127, false }, - { 294140, false }, - { 294160, true }, - { 294170, true }, - { 294189, true }, - { 294210, true }, - { 294222, true }, - { 294235, true }, - { 294252, true }, - { 294268, true }, - { 294279, true }, - { 294294, true }, - { 294312, true }, - { 294325, true }, - { 294342, true }, - { 294357, true }, - { 294370, true }, - { 294386, true }, - { 294404, true }, - { 294416, true }, - { 294435, false }, - { 294452, true }, - { 294472, true }, - { 294483, true }, - { 294509, true }, - { 294528, false }, - { 294547, true }, - { 294557, true }, + { 294116, true }, + { 294127, true }, + { 294153, true }, + { 294172, false }, + { 294191, true }, + { 294201, true }, + { 294218, true }, + { 294233, true }, + { 294245, true }, + { 294265, true }, + { 294281, true }, + { 294298, true }, + { 294311, true }, + { 294324, true }, + { 294337, true }, + { 294350, true }, + { 294363, true }, + { 294387, true }, + { 294398, true }, + { 294410, true }, + { 294425, true }, + { 294433, true }, + { 294449, true }, + { 294464, true }, + { 294479, true }, + { 294494, true }, + { 294508, true }, + { 294522, true }, + { 294535, true }, + { 294551, true }, + { 294561, true }, { 294574, true }, - { 294589, true }, - { 294601, true }, - { 294621, true }, - { 294637, true }, + { 294592, true }, + { 294610, true }, + { 294629, true }, + { 294641, true }, { 294654, true }, - { 294667, true }, - { 294680, true }, - { 294693, true }, - { 294706, true }, - { 294719, true }, - { 294743, true }, - { 294754, true }, - { 294766, true }, - { 294781, true }, - { 294789, true }, + { 294672, true }, + { 294694, true }, + { 294707, true }, + { 294729, true }, + { 294749, true }, + { 294769, true }, + { 294787, true }, { 294805, true }, - { 294820, true }, - { 294835, true }, - { 294850, true }, - { 294864, true }, - { 294878, true }, - { 294891, true }, - { 294907, true }, - { 294917, true }, - { 294930, true }, - { 294948, true }, - { 294966, true }, - { 294985, true }, - { 294997, true }, - { 295010, true }, - { 295028, true }, - { 295050, true }, - { 295063, true }, - { 295085, true }, - { 295105, true }, - { 295125, true }, - { 295143, true }, - { 295161, true }, - { 295179, true }, + { 294823, true }, + { 294840, true }, + { 294860, true }, + { 294876, true }, + { 294904, true }, + { 294929, true }, + { 294961, true }, + { 294980, true }, + { 295000, true }, + { 295015, true }, + { 295035, true }, + { 295048, true }, + { 295073, true }, + { 295089, true }, + { 295106, true }, + { 295115, true }, + { 295132, true }, + { 295148, true }, + { 295160, true }, + { 295173, true }, { 295196, true }, - { 295216, true }, - { 295232, true }, - { 295260, true }, - { 295285, true }, - { 295317, true }, - { 295336, true }, + { 295214, true }, + { 295238, true }, + { 295263, true }, + { 295281, true }, + { 295299, true }, + { 295313, true }, + { 295334, true }, + { 295344, true }, { 295356, true }, { 295371, true }, - { 295391, true }, - { 295404, true }, - { 295429, true }, - { 295445, true }, - { 295462, true }, - { 295471, true }, - { 295488, true }, - { 295504, true }, - { 295516, true }, - { 295529, true }, - { 295552, true }, - { 295570, true }, - { 295594, true }, - { 295619, true }, - { 295637, true }, - { 295655, true }, - { 295669, true }, - { 295690, true }, - { 295700, true }, - { 295712, true }, - { 295727, true }, - { 295744, true }, + { 295388, true }, + { 295400, true }, + { 295412, true }, + { 295431, true }, + { 295448, true }, + { 295466, true }, + { 295481, true }, + { 295492, true }, + { 295506, true }, + { 295525, true }, + { 295542, true }, + { 295557, true }, + { 295572, true }, + { 295582, true }, + { 295602, true }, + { 295616, true }, + { 295634, true }, + { 295649, true }, + { 295663, true }, + { 295673, true }, + { 295689, true }, + { 295702, true }, + { 295721, true }, + { 295733, true }, + { 295747, true }, { 295756, true }, - { 295768, true }, - { 295787, true }, + { 295770, true }, + { 295790, true }, { 295804, true }, - { 295822, true }, + { 295814, true }, + { 295826, true }, { 295837, true }, - { 295848, true }, - { 295862, true }, - { 295881, true }, - { 295898, true }, - { 295913, true }, - { 295928, true }, + { 295855, true }, + { 295872, true }, + { 295886, true }, + { 295902, true }, + { 295914, false }, + { 295922, true }, { 295938, true }, - { 295958, true }, - { 295972, true }, - { 295990, true }, - { 296005, true }, - { 296019, true }, - { 296029, true }, - { 296045, true }, - { 296058, true }, - { 296077, true }, - { 296089, true }, - { 296103, true }, - { 296112, true }, - { 296126, true }, - { 296146, true }, - { 296160, true }, - { 296170, true }, - { 296182, true }, - { 296193, true }, - { 296211, true }, - { 296228, true }, - { 296242, true }, - { 296258, true }, - { 296270, false }, - { 296278, true }, - { 296294, true }, - { 296306, true }, - { 296317, true }, - { 296329, true }, - { 296340, true }, - { 296359, true }, - { 296371, true }, - { 296383, true }, + { 295950, true }, + { 295961, true }, + { 295973, true }, + { 295984, true }, + { 296003, true }, + { 296015, true }, + { 296027, true }, + { 296036, true }, + { 296046, true }, + { 296060, true }, + { 296074, true }, + { 296088, true }, + { 296102, true }, + { 296120, true }, + { 296131, true }, + { 296149, true }, + { 296165, true }, + { 296177, true }, + { 296192, true }, + { 296210, true }, + { 296230, true }, + { 296243, true }, + { 296251, true }, + { 296272, true }, + { 296283, true }, + { 296298, true }, + { 296313, false }, + { 296331, false }, + { 296352, true }, + { 296375, true }, { 296392, true }, - { 296402, true }, + { 296404, true }, { 296416, true }, - { 296430, true }, - { 296444, true }, - { 296458, true }, + { 296437, true }, + { 296463, true }, { 296476, true }, - { 296487, true }, - { 296505, true }, - { 296521, true }, - { 296533, true }, - { 296548, true }, - { 296566, true }, - { 296586, true }, - { 296599, true }, - { 296607, true }, - { 296628, true }, - { 296639, true }, - { 296654, true }, - { 296669, false }, - { 296687, false }, - { 296708, true }, - { 296731, true }, - { 296748, true }, - { 296760, true }, - { 296772, true }, - { 296793, true }, - { 296819, true }, - { 296832, true }, + { 296493, true }, + { 296510, true }, + { 296530, true }, + { 296543, true }, + { 296556, true }, + { 296570, true }, + { 296592, true }, + { 296609, true }, + { 296626, true }, + { 296645, true }, + { 296665, true }, + { 296690, true }, + { 296715, true }, + { 296726, true }, + { 296752, true }, + { 296768, true }, + { 296779, true }, + { 296797, true }, + { 296806, true }, + { 296816, false }, + { 296826, true }, + { 296837, true }, { 296849, true }, - { 296866, true }, - { 296886, true }, - { 296899, true }, - { 296912, true }, - { 296926, true }, - { 296948, true }, - { 296965, true }, + { 296865, true }, + { 296887, true }, + { 296906, true }, + { 296915, true }, + { 296928, true }, + { 296942, true }, + { 296951, true }, + { 296964, true }, { 296982, true }, - { 297001, true }, - { 297021, true }, - { 297046, true }, - { 297071, true }, - { 297082, true }, - { 297108, true }, - { 297124, true }, - { 297135, true }, - { 297153, true }, - { 297162, true }, - { 297172, false }, - { 297182, true }, - { 297193, true }, - { 297205, true }, - { 297221, true }, - { 297243, true }, - { 297262, true }, - { 297271, true }, - { 297284, true }, - { 297298, true }, - { 297307, true }, - { 297320, true }, - { 297338, true }, - { 297360, true }, - { 297372, true }, - { 297380, false }, - { 297394, true }, - { 297408, true }, - { 297416, true }, - { 297426, true }, - { 297436, true }, - { 297447, true }, - { 297454, true }, - { 297465, true }, - { 297477, true }, - { 297487, true }, - { 297494, true }, - { 297501, true }, - { 297513, true }, - { 297524, true }, + { 297004, true }, + { 297016, true }, + { 297024, false }, + { 297038, true }, + { 297052, true }, + { 297060, true }, + { 297070, true }, + { 297080, true }, + { 297091, true }, + { 297098, true }, + { 297109, true }, + { 297121, true }, + { 297131, true }, + { 297138, true }, + { 297145, true }, + { 297157, true }, + { 297168, true }, + { 297180, true }, + { 297189, true }, + { 297199, true }, + { 297209, true }, + { 297220, true }, + { 297237, true }, + { 297251, true }, + { 297270, false }, + { 297293, true }, + { 297304, true }, + { 297312, true }, + { 297333, true }, + { 297346, true }, + { 297358, true }, + { 297369, true }, + { 297383, true }, + { 297392, true }, + { 297418, true }, + { 297430, true }, + { 297460, false }, + { 297474, true }, + { 297490, true }, + { 297506, true }, + { 297519, true }, { 297536, true }, - { 297545, true }, - { 297555, true }, - { 297565, true }, + { 297553, true }, + { 297564, true }, { 297576, true }, - { 297593, true }, - { 297607, true }, - { 297626, false }, - { 297649, true }, - { 297660, true }, - { 297668, true }, - { 297689, true }, - { 297702, true }, - { 297714, true }, - { 297725, true }, - { 297739, true }, + { 297591, true }, + { 297604, true }, + { 297620, true }, + { 297636, true }, + { 297657, true }, + { 297673, true }, + { 297685, true }, + { 297695, true }, + { 297717, true }, { 297748, true }, - { 297774, true }, - { 297786, true }, - { 297816, false }, - { 297830, true }, - { 297846, true }, - { 297862, true }, - { 297875, true }, - { 297892, true }, - { 297909, true }, - { 297920, true }, - { 297932, true }, - { 297947, true }, - { 297960, true }, - { 297976, true }, + { 297763, true }, + { 297779, true }, + { 297796, true }, + { 297807, true }, + { 297822, true }, + { 297839, true }, + { 297852, true }, + { 297863, false }, + { 297874, true }, + { 297884, true }, + { 297896, true }, + { 297913, true }, + { 297925, true }, + { 297936, true }, + { 297950, false }, + { 297961, false }, + { 297974, true }, + { 297982, true }, { 297992, true }, - { 298013, true }, - { 298029, true }, - { 298041, true }, - { 298051, true }, - { 298073, true }, - { 298104, true }, - { 298119, true }, - { 298135, true }, - { 298152, true }, - { 298163, true }, - { 298178, true }, - { 298195, true }, - { 298208, true }, - { 298219, false }, - { 298230, true }, - { 298240, true }, - { 298252, true }, - { 298269, true }, - { 298281, true }, - { 298292, true }, - { 298306, false }, - { 298317, false }, - { 298330, true }, - { 298338, true }, - { 298348, true }, - { 298365, true }, - { 298377, true }, - { 298397, false }, + { 298009, true }, + { 298021, true }, + { 298041, false }, + { 298061, true }, + { 298071, true }, + { 298079, false }, + { 298088, true }, + { 298101, true }, + { 298118, true }, + { 298176, true }, + { 298222, true }, + { 298276, true }, + { 298323, true }, + { 298372, true }, { 298417, true }, - { 298427, true }, - { 298435, false }, - { 298444, true }, - { 298457, true }, - { 298474, true }, - { 298532, true }, - { 298578, true }, - { 298632, true }, - { 298679, true }, + { 298467, true }, + { 298521, true }, + { 298567, true }, + { 298614, true }, + { 298668, true }, + { 298695, true }, { 298728, true }, - { 298773, true }, - { 298823, true }, - { 298877, true }, + { 298742, true }, + { 298754, true }, + { 298767, true }, + { 298780, true }, + { 298796, true }, + { 298819, true }, + { 298832, true }, + { 298848, true }, + { 298858, true }, + { 298873, true }, + { 298884, false }, + { 298896, true }, + { 298913, true }, { 298923, true }, - { 298970, true }, - { 299024, true }, - { 299051, true }, - { 299084, true }, - { 299098, true }, + { 298940, true }, + { 298958, true }, + { 298972, true }, + { 298990, true }, + { 299006, true }, + { 299015, true }, + { 299026, true }, + { 299037, true }, + { 299045, true }, + { 299055, true }, + { 299069, true }, + { 299076, true }, + { 299083, true }, + { 299092, true }, + { 299100, true }, { 299110, true }, - { 299123, true }, - { 299136, true }, - { 299152, true }, - { 299175, true }, - { 299188, true }, - { 299204, true }, - { 299214, true }, - { 299229, true }, - { 299240, false }, - { 299252, true }, - { 299269, true }, - { 299279, true }, - { 299296, true }, - { 299314, true }, - { 299328, true }, - { 299346, true }, - { 299362, true }, - { 299371, true }, - { 299382, true }, - { 299393, true }, + { 299121, true }, + { 299128, true }, + { 299137, true }, + { 299153, true }, + { 299171, true }, + { 299187, true }, + { 299206, true }, + { 299219, true }, + { 299233, true }, + { 299245, true }, + { 299259, true }, + { 299274, true }, + { 299286, true }, + { 299299, true }, + { 299310, true }, + { 299320, true }, + { 299329, true }, + { 299338, true }, + { 299343, true }, + { 299350, true }, + { 299370, true }, + { 299377, true }, { 299401, true }, - { 299411, true }, + { 299415, true }, { 299425, true }, - { 299432, true }, - { 299439, true }, - { 299448, true }, - { 299456, true }, - { 299466, true }, - { 299477, true }, - { 299484, true }, - { 299493, true }, - { 299509, true }, - { 299527, true }, - { 299543, true }, - { 299562, true }, - { 299575, true }, - { 299589, true }, - { 299601, true }, - { 299615, true }, - { 299630, true }, - { 299642, true }, - { 299655, true }, - { 299666, true }, - { 299676, true }, - { 299685, true }, - { 299694, true }, - { 299699, true }, - { 299706, true }, - { 299726, true }, - { 299733, true }, + { 299442, false }, + { 299457, true }, + { 299469, true }, + { 299483, true }, + { 299497, true }, + { 299508, true }, + { 299520, true }, + { 299532, true }, + { 299542, true }, + { 299554, true }, + { 299567, true }, + { 299577, true }, + { 299592, true }, + { 299603, true }, + { 299618, true }, + { 299640, true }, + { 299656, true }, + { 299671, true }, + { 299681, true }, + { 299700, true }, + { 299712, true }, + { 299719, true }, + { 299735, true }, { 299757, true }, - { 299771, true }, - { 299781, true }, - { 299798, false }, - { 299813, true }, - { 299825, true }, - { 299839, true }, - { 299853, true }, - { 299864, true }, - { 299876, true }, - { 299888, true }, - { 299898, true }, - { 299910, true }, - { 299920, true }, - { 299935, true }, - { 299946, true }, - { 299961, true }, - { 299983, true }, - { 299999, true }, - { 300014, true }, - { 300024, true }, + { 299768, true }, + { 299783, true }, + { 299806, true }, + { 299816, true }, + { 299823, true }, + { 299834, true }, + { 299842, true }, + { 299856, true }, + { 299866, true }, + { 299882, true }, + { 299889, true }, + { 299896, true }, + { 299908, true }, + { 299919, true }, + { 299929, true }, + { 299941, true }, + { 299951, false }, + { 299971, false }, + { 299994, true }, + { 300009, true }, + { 300033, true }, { 300043, true }, - { 300055, true }, - { 300062, true }, - { 300078, true }, - { 300100, true }, - { 300111, true }, - { 300126, true }, - { 300149, true }, - { 300159, true }, - { 300166, true }, + { 300061, true }, + { 300087, true }, + { 300098, true }, + { 300110, true }, + { 300123, true }, + { 300137, true }, + { 300151, true }, + { 300164, true }, { 300177, true }, - { 300185, true }, - { 300199, true }, - { 300209, true }, + { 300188, true }, + { 300204, false }, { 300225, true }, - { 300232, true }, - { 300239, true }, - { 300251, true }, + { 300235, true }, + { 300246, true }, { 300262, true }, - { 300272, true }, - { 300284, true }, - { 300294, false }, - { 300314, false }, - { 300337, true }, - { 300352, true }, - { 300376, true }, - { 300386, true }, - { 300404, true }, - { 300430, true }, + { 300277, true }, + { 300291, true }, + { 300305, true }, + { 300319, true }, + { 300328, true }, + { 300343, true }, + { 300356, true }, + { 300369, true }, + { 300383, true }, + { 300398, true }, + { 300412, true }, + { 300426, true }, { 300441, true }, - { 300453, true }, - { 300466, true }, - { 300480, true }, - { 300494, true }, - { 300507, true }, - { 300520, true }, - { 300531, true }, - { 300547, false }, - { 300568, true }, + { 300455, true }, + { 300469, true }, + { 300483, true }, + { 300501, true }, + { 300515, true }, + { 300532, true }, + { 300550, false }, + { 300562, true }, { 300578, true }, { 300589, true }, - { 300605, true }, - { 300620, true }, - { 300634, true }, - { 300648, true }, - { 300662, true }, - { 300671, true }, - { 300686, true }, - { 300699, true }, - { 300712, true }, - { 300726, true }, - { 300741, true }, - { 300755, true }, - { 300769, true }, - { 300784, true }, - { 300798, true }, - { 300812, true }, - { 300826, true }, - { 300844, true }, + { 300599, false }, + { 300623, true }, + { 300635, true }, + { 300649, false }, + { 300664, true }, + { 300676, true }, + { 300684, true }, + { 300698, true }, + { 300706, true }, + { 300723, true }, + { 300733, true }, + { 300748, true }, + { 300763, true }, + { 300778, true }, + { 300793, true }, + { 300808, true }, + { 300823, true }, + { 300841, true }, { 300858, true }, { 300875, true }, - { 300893, false }, - { 300905, true }, - { 300921, true }, + { 300898, true }, + { 300918, true }, { 300932, true }, - { 300942, false }, - { 300966, true }, - { 300978, true }, - { 300992, false }, - { 301007, true }, - { 301019, true }, - { 301027, true }, - { 301041, true }, - { 301049, true }, - { 301066, true }, - { 301076, true }, - { 301091, true }, - { 301106, true }, - { 301121, true }, - { 301136, true }, - { 301151, true }, - { 301166, true }, - { 301184, true }, - { 301201, true }, - { 301218, true }, - { 301241, true }, - { 301261, true }, - { 301275, true }, - { 301295, true }, - { 301313, true }, - { 301330, true }, - { 301343, true }, - { 301356, true }, - { 301373, true }, - { 301390, false }, - { 301407, true }, - { 301420, true }, + { 300952, true }, + { 300970, true }, + { 300987, true }, + { 301000, true }, + { 301013, true }, + { 301030, true }, + { 301047, false }, + { 301064, true }, + { 301077, true }, + { 301094, true }, + { 301107, true }, + { 301120, true }, + { 301140, true }, + { 301158, true }, + { 301168, true }, + { 301187, true }, + { 301207, true }, + { 301225, true }, + { 301238, true }, + { 301252, true }, + { 301266, true }, + { 301278, false }, + { 301289, true }, + { 301306, true }, + { 301333, true }, + { 301357, true }, + { 301371, true }, + { 301390, true }, + { 301414, true }, { 301437, true }, - { 301450, true }, - { 301463, true }, - { 301483, true }, + { 301465, true }, + { 301481, true }, + { 301489, true }, { 301501, true }, - { 301511, true }, - { 301530, true }, - { 301550, true }, - { 301568, true }, - { 301581, true }, - { 301595, true }, - { 301609, true }, - { 301621, false }, - { 301632, true }, - { 301649, true }, + { 301515, false }, + { 301528, true }, + { 301542, true }, + { 301555, true }, + { 301565, true }, + { 301574, true }, + { 301589, true }, + { 301601, true }, + { 301614, true }, + { 301627, true }, + { 301643, true }, + { 301653, true }, + { 301668, true }, { 301676, true }, - { 301700, true }, - { 301714, true }, - { 301733, true }, - { 301757, true }, - { 301780, true }, - { 301808, true }, - { 301824, true }, - { 301832, true }, - { 301844, true }, - { 301858, false }, - { 301871, true }, - { 301885, true }, - { 301898, true }, - { 301908, true }, - { 301917, true }, - { 301932, true }, - { 301944, true }, - { 301957, true }, - { 301970, true }, - { 301986, true }, + { 301687, true }, + { 301702, true }, + { 301719, true }, + { 301728, true }, + { 301735, true }, + { 301745, true }, + { 301755, true }, + { 301776, true }, + { 301792, true }, + { 301811, true }, + { 301831, true }, + { 301847, true }, + { 301862, true }, + { 301870, true }, + { 301889, true }, + { 301900, true }, + { 301907, true }, + { 301923, true }, + { 301938, true }, + { 301948, true }, + { 301956, true }, + { 301972, true }, + { 301985, true }, { 301996, true }, - { 302011, true }, - { 302019, true }, - { 302030, true }, - { 302045, true }, - { 302062, true }, - { 302071, true }, + { 302011, false }, + { 302031, true }, + { 302046, true }, + { 302068, true }, { 302078, true }, - { 302088, true }, - { 302098, true }, - { 302119, true }, - { 302135, true }, - { 302154, true }, - { 302174, true }, - { 302190, true }, - { 302205, true }, - { 302213, true }, - { 302232, true }, + { 302093, true }, + { 302106, true }, + { 302117, true }, + { 302127, true }, + { 302139, true }, + { 302163, true }, + { 302176, true }, + { 302189, true }, + { 302201, true }, + { 302215, true }, + { 302226, true }, { 302243, true }, - { 302250, true }, - { 302266, true }, - { 302281, true }, + { 302259, true }, + { 302275, true }, { 302291, true }, - { 302299, true }, - { 302315, true }, - { 302328, true }, - { 302339, true }, - { 302354, false }, - { 302374, true }, - { 302389, true }, - { 302411, true }, - { 302421, true }, + { 302310, true }, + { 302334, true }, + { 302354, true }, + { 302375, true }, + { 302401, true }, + { 302412, true }, + { 302426, true }, { 302436, true }, - { 302449, true }, + { 302447, true }, { 302460, true }, - { 302470, true }, + { 302468, true }, + { 302475, false }, { 302482, true }, - { 302506, true }, + { 302490, true }, + { 302508, true }, { 302519, true }, - { 302532, true }, - { 302544, true }, - { 302558, true }, - { 302569, true }, - { 302586, true }, - { 302602, true }, - { 302618, true }, - { 302634, true }, - { 302653, true }, - { 302677, true }, - { 302697, true }, - { 302718, true }, - { 302744, true }, - { 302755, true }, - { 302769, true }, - { 302779, true }, - { 302790, true }, + { 302533, true }, + { 302548, false }, + { 302557, true }, + { 302567, true }, + { 302585, true }, + { 302599, true }, + { 302617, true }, + { 302636, true }, + { 302648, true }, + { 302660, true }, + { 302687, false }, + { 302696, true }, + { 302709, true }, + { 302720, true }, + { 302727, true }, + { 302734, true }, + { 302745, true }, + { 302758, true }, + { 302774, true }, + { 302787, true }, { 302803, true }, - { 302811, true }, - { 302818, false }, - { 302825, true }, + { 302815, true }, { 302833, true }, - { 302851, true }, - { 302862, true }, - { 302876, true }, - { 302891, false }, - { 302900, true }, - { 302910, true }, - { 302928, true }, - { 302942, true }, + { 302843, true }, + { 302860, true }, + { 302875, true }, + { 302886, true }, + { 302897, true }, + { 302915, true }, + { 302929, true }, + { 302941, true }, + { 302950, true }, { 302960, true }, - { 302979, true }, - { 302991, true }, - { 303003, true }, - { 303030, false }, + { 302972, true }, + { 302987, true }, + { 302999, true }, + { 303010, true }, + { 303023, true }, { 303039, true }, - { 303052, true }, - { 303063, true }, - { 303070, true }, - { 303077, true }, - { 303088, true }, - { 303101, true }, - { 303117, true }, - { 303130, true }, - { 303146, true }, - { 303158, true }, - { 303176, true }, - { 303186, true }, - { 303203, true }, + { 303055, true }, + { 303074, true }, + { 303093, true }, + { 303110, true }, + { 303137, true }, + { 303154, true }, + { 303169, true }, + { 303179, true }, + { 303199, true }, { 303218, true }, - { 303229, true }, - { 303240, true }, - { 303258, true }, + { 303230, true }, + { 303249, true }, + { 303257, false }, { 303272, true }, - { 303284, true }, - { 303293, true }, - { 303303, true }, - { 303315, true }, - { 303330, true }, - { 303342, true }, - { 303353, true }, - { 303366, true }, + { 303279, true }, + { 303292, true }, + { 303309, true }, + { 303324, true }, + { 303336, true }, + { 303351, true }, + { 303360, true }, + { 303371, true }, { 303382, true }, - { 303398, true }, + { 303391, true }, + { 303400, true }, + { 303408, true }, { 303417, true }, { 303436, true }, - { 303453, true }, - { 303480, true }, - { 303497, true }, - { 303512, true }, - { 303522, true }, - { 303542, true }, + { 303449, true }, + { 303467, true }, + { 303490, true }, + { 303503, true }, + { 303519, true }, + { 303535, true }, + { 303552, true }, { 303561, true }, - { 303573, true }, - { 303592, true }, - { 303600, false }, - { 303615, true }, - { 303622, true }, - { 303635, true }, + { 303575, true }, + { 303591, true }, + { 303600, true }, + { 303612, true }, + { 303623, true }, + { 303638, true }, { 303652, true }, { 303667, true }, - { 303679, true }, - { 303694, true }, - { 303703, true }, - { 303714, true }, - { 303725, true }, - { 303734, true }, - { 303743, true }, - { 303751, true }, - { 303760, true }, - { 303779, true }, - { 303792, true }, - { 303810, true }, - { 303833, true }, - { 303846, true }, - { 303862, true }, - { 303878, true }, - { 303895, true }, - { 303904, true }, - { 303918, true }, - { 303934, true }, - { 303943, true }, - { 303955, true }, - { 303966, true }, + { 303682, true }, + { 303700, true }, + { 303712, true }, + { 303722, true }, + { 303746, true }, + { 303759, true }, + { 303771, true }, + { 303788, true }, + { 303811, true }, + { 303828, true }, + { 303848, true }, + { 303865, true }, + { 303886, true }, + { 303900, true }, + { 303913, true }, + { 303929, true }, + { 303938, true }, + { 303950, true }, + { 303964, true }, { 303981, true }, - { 303995, true }, + { 304000, true }, { 304010, true }, - { 304025, true }, - { 304043, true }, - { 304055, true }, - { 304065, true }, + { 304032, true }, + { 304047, true }, + { 304061, true }, + { 304076, true }, { 304089, true }, - { 304102, true }, - { 304114, true }, - { 304131, true }, - { 304154, true }, - { 304171, true }, - { 304191, true }, - { 304208, true }, - { 304229, true }, - { 304243, true }, - { 304256, true }, - { 304272, true }, - { 304281, true }, - { 304293, true }, - { 304307, true }, - { 304324, true }, - { 304343, true }, - { 304353, true }, - { 304375, true }, + { 304098, true }, + { 304109, true }, + { 304122, true }, + { 304133, true }, + { 304151, true }, + { 304165, true }, + { 304175, true }, + { 304190, true }, + { 304215, true }, + { 304227, true }, + { 304245, true }, + { 304259, true }, + { 304284, true }, + { 304299, true }, + { 304321, true }, + { 304344, true }, + { 304365, false }, + { 304378, true }, { 304390, true }, { 304404, true }, { 304419, true }, - { 304432, true }, - { 304441, true }, - { 304452, true }, - { 304465, true }, - { 304476, true }, - { 304494, true }, - { 304508, true }, - { 304518, true }, - { 304533, true }, + { 304428, true }, + { 304440, true }, + { 304450, true }, + { 304464, true }, + { 304477, true }, + { 304490, true }, + { 304509, true }, + { 304520, true }, + { 304532, false }, + { 304546, true }, { 304558, true }, { 304570, true }, - { 304588, true }, - { 304602, true }, - { 304627, true }, - { 304642, true }, - { 304664, true }, - { 304687, true }, - { 304708, false }, - { 304721, true }, - { 304733, true }, - { 304747, true }, - { 304756, true }, - { 304768, true }, - { 304778, true }, - { 304792, true }, - { 304805, true }, - { 304818, true }, - { 304837, true }, - { 304848, true }, - { 304860, false }, - { 304874, true }, - { 304886, true }, - { 304898, true }, - { 304914, true }, - { 304932, true }, - { 304958, true }, - { 304976, true }, - { 304985, false }, - { 304998, true }, - { 305016, true }, - { 305026, true }, - { 305036, true }, - { 305053, true }, - { 305072, true }, - { 305086, true }, - { 305097, true }, - { 305110, true }, - { 305125, true }, - { 305137, true }, - { 305153, true }, - { 305161, true }, - { 305171, true }, - { 305181, true }, - { 305196, true }, - { 305209, true }, - { 305222, true }, - { 305232, true }, - { 305244, true }, + { 304586, true }, + { 304604, true }, + { 304630, true }, + { 304648, true }, + { 304657, false }, + { 304670, true }, + { 304688, true }, + { 304698, true }, + { 304708, true }, + { 304725, true }, + { 304744, true }, + { 304758, true }, + { 304769, true }, + { 304782, true }, + { 304797, true }, + { 304809, true }, + { 304825, true }, + { 304833, true }, + { 304843, true }, + { 304853, true }, + { 304868, true }, + { 304881, true }, + { 304894, true }, + { 304904, true }, + { 304916, true }, + { 304926, true }, + { 304936, true }, + { 304947, true }, + { 304953, true }, + { 304962, true }, + { 304982, true }, + { 304990, false }, + { 305011, true }, + { 305024, true }, + { 305033, true }, + { 305047, true }, + { 305057, true }, + { 305070, true }, + { 305080, true }, + { 305091, true }, + { 305107, true }, + { 305118, false }, + { 305138, true }, + { 305148, true }, + { 305155, true }, + { 305165, true }, + { 305175, true }, + { 305189, true }, + { 305206, true }, + { 305226, true }, + { 305241, true }, { 305254, true }, - { 305264, true }, - { 305275, true }, - { 305281, true }, + { 305270, true }, + { 305279, true }, { 305290, true }, - { 305310, true }, - { 305318, false }, - { 305339, true }, - { 305352, true }, - { 305361, true }, - { 305375, true }, - { 305385, true }, - { 305398, true }, - { 305408, true }, - { 305419, true }, - { 305435, true }, - { 305446, false }, - { 305466, true }, - { 305476, true }, - { 305483, true }, - { 305493, true }, - { 305503, true }, - { 305517, true }, - { 305534, true }, - { 305554, true }, - { 305569, true }, - { 305582, true }, - { 305598, true }, - { 305607, true }, - { 305618, true }, - { 305648, true }, - { 305674, true }, - { 305694, true }, - { 305702, true }, - { 305721, true }, - { 305742, true }, - { 305756, true }, - { 305765, true }, - { 305780, true }, - { 305795, true }, - { 305813, true }, - { 305838, true }, - { 305857, true }, - { 305868, true }, - { 305878, true }, - { 305888, true }, + { 305320, true }, + { 305346, true }, + { 305366, true }, + { 305374, true }, + { 305393, true }, + { 305414, true }, + { 305428, true }, + { 305437, true }, + { 305452, true }, + { 305467, true }, + { 305485, true }, + { 305510, true }, + { 305529, true }, + { 305540, true }, + { 305550, true }, + { 305560, true }, + { 305581, true }, + { 305596, true }, + { 305609, true }, + { 305625, true }, + { 305637, true }, + { 305654, true }, + { 305665, true }, + { 305682, true }, + { 305700, true }, + { 305716, true }, + { 305736, true }, + { 305758, true }, + { 305771, true }, + { 305781, true }, + { 305803, true }, + { 305821, true }, + { 305850, true }, + { 305871, true }, + { 305890, true }, { 305909, true }, - { 305924, true }, - { 305937, true }, - { 305953, true }, - { 305965, true }, - { 305982, true }, - { 305993, true }, - { 306010, true }, - { 306028, true }, - { 306044, true }, - { 306064, true }, - { 306086, true }, - { 306099, true }, + { 305930, true }, + { 305954, true }, + { 305971, true }, + { 305984, false }, + { 306008, true }, + { 306019, true }, + { 306035, true }, + { 306047, true }, + { 306059, true }, + { 306081, true }, + { 306091, true }, { 306109, true }, - { 306131, true }, - { 306149, true }, - { 306178, true }, - { 306199, true }, - { 306218, true }, - { 306237, true }, - { 306258, true }, - { 306282, true }, + { 306120, true }, + { 306133, true }, + { 306142, true }, + { 306155, true }, + { 306166, true }, + { 306177, true }, + { 306188, true }, + { 306198, true }, + { 306205, true }, + { 306216, true }, + { 306227, true }, + { 306241, true }, + { 306254, false }, + { 306266, true }, + { 306286, true }, { 306299, true }, - { 306312, false }, - { 306336, true }, - { 306347, true }, - { 306363, true }, - { 306375, true }, - { 306387, true }, - { 306409, true }, - { 306419, true }, - { 306437, true }, - { 306448, true }, - { 306461, true }, - { 306470, true }, - { 306483, true }, - { 306494, true }, - { 306505, true }, - { 306516, true }, - { 306526, true }, - { 306533, true }, - { 306544, true }, - { 306555, true }, - { 306569, true }, - { 306582, false }, - { 306594, true }, - { 306614, true }, - { 306627, true }, - { 306637, true }, - { 306658, true }, - { 306668, true }, - { 306685, true }, - { 306699, true }, - { 306716, true }, - { 306734, true }, - { 306741, true }, - { 306756, true }, - { 306774, false }, - { 306792, false }, - { 306810, false }, - { 306827, true }, - { 306849, true }, - { 306862, true }, - { 306877, true }, - { 306890, true }, - { 306899, true }, - { 306911, false }, - { 306925, false }, - { 306937, true }, - { 306952, true }, - { 306967, true }, - { 306979, true }, - { 306993, true }, - { 307010, true }, - { 307031, true }, - { 307049, false }, - { 307064, true }, - { 307089, true }, - { 307099, false }, - { 307111, true }, - { 307125, true }, - { 307141, true }, - { 307169, true }, - { 307184, true }, - { 307195, true }, - { 307205, true }, - { 307228, false }, - { 307246, true }, - { 307261, true }, - { 307273, true }, - { 307286, true }, - { 307315, true }, - { 307339, true }, - { 307357, true }, + { 306309, true }, + { 306330, true }, + { 306340, true }, + { 306357, true }, + { 306371, true }, + { 306388, true }, + { 306406, true }, + { 306413, true }, + { 306428, true }, + { 306446, false }, + { 306464, false }, + { 306482, false }, + { 306499, true }, + { 306521, true }, + { 306534, true }, + { 306549, true }, + { 306562, true }, + { 306571, true }, + { 306583, false }, + { 306597, false }, + { 306609, true }, + { 306624, true }, + { 306639, true }, + { 306651, true }, + { 306665, true }, + { 306682, true }, + { 306703, true }, + { 306721, false }, + { 306736, true }, + { 306761, true }, + { 306771, true }, + { 306789, false }, + { 306801, true }, + { 306815, true }, + { 306831, true }, + { 306859, true }, + { 306874, true }, + { 306885, true }, + { 306895, true }, + { 306918, false }, + { 306936, true }, + { 306951, true }, + { 306963, true }, + { 306976, true }, + { 307005, true }, + { 307029, true }, + { 307047, true }, + { 307070, true }, + { 307080, true }, + { 307099, true }, + { 307108, true }, + { 307118, true }, + { 307133, true }, + { 307144, true }, + { 307168, false }, + { 307183, true }, + { 307201, true }, + { 307216, true }, + { 307234, true }, + { 307248, true }, + { 307263, true }, + { 307276, true }, + { 307288, true }, + { 307311, true }, + { 307325, true }, + { 307336, true }, + { 307355, true }, { 307380, true }, - { 307390, true }, - { 307409, true }, - { 307418, true }, - { 307428, true }, - { 307443, true }, - { 307454, true }, - { 307478, false }, - { 307493, true }, - { 307511, true }, - { 307526, true }, - { 307544, true }, - { 307558, true }, - { 307573, true }, - { 307586, true }, - { 307598, true }, - { 307621, true }, - { 307635, true }, - { 307646, true }, - { 307665, true }, + { 307397, true }, + { 307420, true }, + { 307432, true }, + { 307448, true }, + { 307466, true }, + { 307480, true }, + { 307491, true }, + { 307509, true }, + { 307517, true }, + { 307541, true }, + { 307551, false }, + { 307574, true }, + { 307594, false }, + { 307611, true }, + { 307629, true }, + { 307649, false }, + { 307662, true }, + { 307675, true }, { 307690, true }, - { 307707, true }, - { 307730, true }, + { 307701, true }, + { 307714, true }, + { 307731, true }, { 307742, true }, - { 307758, true }, - { 307776, true }, - { 307790, true }, - { 307801, true }, - { 307819, true }, - { 307827, true }, - { 307851, true }, - { 307861, false }, - { 307884, true }, - { 307904, false }, - { 307921, true }, - { 307939, true }, - { 307959, false }, - { 307972, true }, + { 307753, true }, + { 307775, true }, + { 307795, true }, + { 307817, false }, + { 307831, true }, + { 307850, true }, + { 307864, true }, + { 307882, true }, + { 307902, true }, + { 307911, true }, + { 307927, true }, + { 307945, true }, + { 307958, true }, + { 307971, true }, { 307985, true }, - { 308000, true }, - { 308011, true }, - { 308024, true }, - { 308041, true }, - { 308052, true }, - { 308063, true }, - { 308085, true }, + { 307998, true }, + { 308016, true }, + { 308031, true }, + { 308046, true }, + { 308058, true }, + { 308070, true }, + { 308081, true }, + { 308092, true }, { 308105, true }, - { 308127, false }, - { 308141, true }, - { 308160, true }, - { 308174, true }, - { 308192, true }, - { 308212, true }, - { 308221, true }, - { 308237, true }, + { 308118, true }, + { 308132, true }, + { 308143, true }, + { 308157, true }, + { 308171, true }, + { 308180, true }, + { 308197, true }, + { 308213, true }, + { 308223, true }, + { 308233, true }, + { 308246, true }, { 308255, true }, - { 308268, true }, - { 308281, true }, + { 308265, true }, + { 308276, true }, + { 308285, true }, { 308295, true }, - { 308308, true }, - { 308326, true }, - { 308341, true }, - { 308356, true }, - { 308368, true }, - { 308380, true }, - { 308391, true }, - { 308402, true }, - { 308415, true }, - { 308428, true }, - { 308442, true }, - { 308453, true }, - { 308467, true }, + { 308303, true }, + { 308315, true }, + { 308323, false }, + { 308337, true }, + { 308345, false }, + { 308365, true }, + { 308375, true }, + { 308389, true }, + { 308403, true }, + { 308413, true }, + { 308424, true }, + { 308436, true }, + { 308447, true }, + { 308458, true }, + { 308469, true }, { 308481, true }, - { 308490, true }, - { 308507, true }, - { 308523, true }, - { 308533, true }, - { 308543, true }, - { 308556, true }, - { 308565, true }, - { 308575, true }, - { 308586, true }, - { 308595, true }, - { 308605, true }, - { 308613, true }, - { 308625, true }, - { 308633, false }, - { 308647, true }, - { 308655, false }, + { 308491, true }, + { 308511, true }, + { 308525, true }, + { 308534, true }, + { 308546, true }, + { 308558, true }, + { 308570, true }, + { 308581, true }, + { 308594, true }, + { 308606, true }, + { 308618, true }, + { 308630, true }, + { 308641, true }, + { 308661, true }, { 308675, true }, - { 308685, true }, - { 308699, true }, - { 308713, true }, - { 308723, true }, - { 308734, true }, - { 308746, true }, - { 308757, true }, - { 308768, true }, - { 308779, true }, - { 308791, true }, - { 308801, true }, + { 308691, true }, + { 308706, true }, + { 308720, true }, + { 308729, true }, + { 308741, true }, + { 308751, true }, + { 308762, false }, + { 308777, true }, + { 308794, true }, + { 308809, true }, { 308821, true }, - { 308835, true }, - { 308844, true }, - { 308856, true }, - { 308868, true }, - { 308880, true }, - { 308891, true }, + { 308828, true }, + { 308843, true }, + { 308858, true }, + { 308871, true }, + { 308883, true }, + { 308894, true }, { 308904, true }, - { 308916, true }, - { 308928, true }, - { 308940, true }, - { 308951, true }, - { 308971, true }, - { 308985, true }, - { 309001, true }, - { 309016, true }, - { 309030, true }, - { 309039, true }, - { 309051, true }, - { 309061, true }, - { 309072, false }, - { 309087, true }, - { 309104, true }, - { 309119, true }, - { 309131, true }, - { 309138, true }, - { 309153, true }, - { 309168, true }, - { 309181, true }, - { 309193, true }, - { 309204, true }, - { 309214, true }, - { 309229, true }, - { 309240, true }, - { 309254, true }, - { 309268, true }, - { 309279, true }, - { 309286, true }, - { 309296, false }, - { 309311, true }, - { 309327, true }, - { 309343, true }, - { 309353, true }, - { 309360, true }, - { 309372, true }, - { 309385, true }, - { 309397, true }, - { 309411, true }, - { 309434, true }, - { 309481, true }, - { 309516, true }, - { 309552, true }, + { 308919, true }, + { 308930, true }, + { 308944, true }, + { 308958, true }, + { 308969, true }, + { 308982, true }, + { 308993, true }, + { 309000, true }, + { 309010, false }, + { 309025, true }, + { 309041, true }, + { 309057, true }, + { 309067, true }, + { 309074, true }, + { 309086, true }, + { 309099, true }, + { 309111, true }, + { 309125, true }, + { 309148, true }, + { 309195, true }, + { 309230, true }, + { 309266, true }, + { 309303, true }, + { 309336, true }, + { 309374, true }, + { 309409, true }, + { 309444, true }, + { 309484, true }, + { 309520, true }, + { 309563, true }, { 309589, true }, - { 309622, true }, - { 309660, true }, - { 309695, true }, - { 309730, true }, - { 309770, true }, - { 309806, true }, - { 309849, true }, - { 309875, true }, - { 309884, true }, - { 309906, true }, - { 309916, true }, - { 309926, true }, - { 309953, true }, - { 309976, true }, - { 309986, true }, - { 309995, true }, - { 310002, true }, - { 310018, true }, - { 310027, true }, - { 310044, true }, - { 310061, true }, - { 310073, true }, - { 310086, true }, - { 310099, true }, - { 310112, true }, - { 310126, true }, - { 310153, true }, - { 310166, true }, - { 310173, true }, - { 310185, true }, - { 310197, true }, - { 310208, true }, - { 310218, true }, - { 310227, true }, - { 310244, true }, - { 310260, true }, + { 309602, true }, + { 309611, true }, + { 309633, true }, + { 309643, true }, + { 309653, true }, + { 309680, true }, + { 309703, true }, + { 309713, true }, + { 309722, true }, + { 309729, true }, + { 309745, true }, + { 309754, true }, + { 309771, true }, + { 309788, true }, + { 309800, true }, + { 309813, true }, + { 309826, true }, + { 309839, true }, + { 309853, true }, + { 309880, true }, + { 309893, true }, + { 309900, true }, + { 309912, true }, + { 309924, true }, + { 309935, true }, + { 309945, true }, + { 309954, true }, + { 309971, true }, + { 309987, true }, + { 309998, true }, + { 310010, true }, + { 310022, true }, + { 310032, true }, + { 310045, true }, + { 310054, true }, + { 310078, true }, + { 310090, true }, + { 310101, true }, + { 310109, true }, + { 310117, true }, + { 310127, true }, + { 310134, true }, + { 310144, true }, + { 310164, true }, + { 310176, true }, + { 310194, true }, + { 310206, true }, + { 310217, true }, + { 310229, true }, + { 310240, true }, + { 310252, true }, { 310271, true }, - { 310283, true }, - { 310295, true }, - { 310305, true }, - { 310318, true }, - { 310327, true }, - { 310351, true }, - { 310363, true }, + { 310281, true }, + { 310292, true }, + { 310304, true }, + { 310324, true }, + { 310346, true }, + { 310357, true }, + { 310366, true }, { 310374, true }, - { 310382, true }, - { 310390, true }, - { 310400, true }, - { 310407, true }, - { 310417, true }, - { 310437, true }, - { 310449, true }, - { 310467, true }, - { 310479, true }, - { 310490, true }, - { 310502, true }, - { 310513, true }, - { 310525, true }, - { 310544, true }, - { 310554, true }, - { 310565, true }, + { 310383, true }, + { 310392, true }, + { 310411, true }, + { 310418, true }, + { 310432, true }, + { 310453, true }, + { 310466, true }, + { 310478, true }, + { 310506, true }, + { 310530, true }, + { 310545, true }, + { 310559, true }, { 310577, true }, - { 310597, true }, - { 310619, true }, - { 310630, true }, - { 310639, true }, - { 310647, true }, - { 310656, true }, - { 310665, true }, - { 310684, true }, + { 310595, true }, + { 310608, false }, + { 310622, true }, + { 310637, true }, + { 310652, true }, + { 310661, true }, + { 310678, true }, { 310691, true }, - { 310705, true }, + { 310704, true }, + { 310716, true }, { 310726, true }, - { 310739, true }, - { 310751, true }, - { 310779, true }, - { 310803, true }, - { 310818, true }, - { 310832, true }, - { 310850, true }, - { 310868, true }, - { 310881, false }, - { 310895, true }, - { 310910, true }, - { 310925, true }, - { 310934, true }, - { 310951, true }, - { 310964, true }, - { 310977, true }, - { 310989, true }, - { 310999, true }, - { 311013, true }, - { 311021, true }, - { 311039, true }, - { 311054, true }, - { 311070, true }, - { 311086, true }, - { 311096, true }, - { 311107, true }, - { 311117, true }, - { 311130, true }, - { 311146, true }, - { 311157, true }, - { 311169, true }, - { 311180, true }, - { 311193, true }, - { 311214, true }, - { 311228, false }, - { 311242, true }, - { 311259, false }, - { 311275, true }, - { 311291, true }, - { 311303, true }, - { 311313, true }, - { 311331, true }, - { 311346, true }, - { 311368, true }, - { 311391, true }, + { 310740, true }, + { 310748, true }, + { 310766, true }, + { 310781, true }, + { 310797, true }, + { 310813, true }, + { 310823, true }, + { 310834, true }, + { 310844, true }, + { 310857, true }, + { 310873, true }, + { 310884, true }, + { 310896, true }, + { 310907, true }, + { 310920, true }, + { 310941, true }, + { 310955, false }, + { 310969, true }, + { 310986, false }, + { 311002, true }, + { 311018, true }, + { 311030, true }, + { 311040, true }, + { 311058, true }, + { 311073, true }, + { 311095, true }, + { 311118, true }, + { 311129, true }, + { 311139, true }, + { 311149, true }, + { 311166, true }, + { 311181, true }, + { 311191, true }, + { 311207, true }, + { 311226, true }, + { 311241, true }, + { 311257, true }, + { 311274, true }, + { 311294, true }, + { 311311, true }, + { 311323, true }, + { 311338, true }, + { 311352, true }, + { 311367, true }, + { 311386, true }, { 311402, true }, - { 311412, true }, - { 311422, true }, - { 311439, true }, - { 311454, true }, - { 311464, true }, + { 311411, true }, + { 311427, true }, + { 311444, false }, + { 311456, true }, + { 311468, true }, { 311480, true }, + { 311489, true }, { 311499, true }, - { 311514, true }, - { 311530, true }, - { 311547, true }, - { 311567, true }, - { 311584, true }, - { 311596, true }, - { 311611, true }, - { 311625, true }, - { 311640, true }, - { 311659, true }, - { 311675, true }, - { 311684, true }, - { 311700, true }, - { 311717, false }, - { 311729, true }, - { 311741, true }, - { 311753, true }, - { 311762, true }, - { 311772, true }, + { 311516, true }, + { 311534, true }, + { 311545, true }, + { 311553, true }, + { 311563, true }, + { 311578, true }, + { 311588, true }, + { 311598, false }, + { 311605, true }, + { 311621, true }, + { 311637, true }, + { 311658, true }, + { 311676, true }, + { 311696, true }, + { 311719, true }, + { 311739, true }, + { 311755, true }, + { 311774, true }, { 311789, true }, { 311807, true }, - { 311818, true }, - { 311826, true }, - { 311836, true }, - { 311851, true }, + { 311818, false }, + { 311842, true }, { 311861, true }, - { 311871, false }, - { 311878, true }, - { 311894, true }, - { 311910, true }, - { 311931, true }, - { 311949, true }, - { 311969, true }, - { 311992, true }, - { 312012, true }, - { 312028, true }, - { 312047, true }, - { 312062, true }, + { 311874, true }, + { 311888, true }, + { 311902, true }, + { 311914, false }, + { 311921, true }, + { 311933, true }, + { 311947, true }, + { 311958, true }, + { 311968, false }, + { 311982, true }, + { 312000, false }, + { 312013, true }, + { 312025, true }, + { 312039, true }, + { 312057, true }, { 312080, true }, - { 312091, false }, - { 312115, true }, - { 312134, true }, - { 312147, true }, - { 312161, true }, - { 312175, true }, - { 312187, false }, - { 312194, true }, - { 312206, true }, - { 312220, true }, - { 312231, true }, - { 312241, false }, - { 312255, true }, - { 312273, false }, - { 312286, true }, - { 312298, true }, - { 312312, true }, - { 312330, true }, - { 312353, true }, - { 312364, true }, - { 312379, true }, - { 312395, true }, - { 312418, true }, + { 312091, true }, + { 312106, true }, + { 312122, true }, + { 312145, true }, + { 312163, true }, + { 312176, true }, + { 312188, true }, + { 312199, true }, + { 312210, true }, + { 312235, true }, + { 312250, true }, + { 312261, true }, + { 312294, true }, + { 312320, true }, + { 312354, true }, + { 312377, true }, + { 312390, true }, + { 312403, true }, + { 312419, true }, { 312436, true }, - { 312449, true }, - { 312461, true }, - { 312472, true }, - { 312483, true }, + { 312453, true }, + { 312470, true }, + { 312484, true }, + { 312496, true }, { 312508, true }, - { 312523, true }, - { 312534, true }, - { 312567, true }, - { 312593, true }, - { 312627, true }, - { 312650, true }, - { 312663, true }, - { 312676, true }, - { 312692, true }, - { 312709, true }, - { 312726, true }, - { 312743, true }, - { 312757, true }, - { 312769, true }, - { 312781, true }, - { 312797, false }, - { 312817, true }, - { 312830, false }, - { 312848, false }, - { 312871, true }, + { 312524, false }, + { 312544, true }, + { 312557, false }, + { 312575, false }, + { 312598, true }, + { 312618, true }, + { 312634, true }, + { 312648, true }, + { 312669, true }, + { 312680, true }, + { 312695, false }, + { 312708, true }, + { 312723, true }, + { 312740, true }, + { 312754, true }, + { 312767, true }, + { 312782, true }, + { 312794, true }, + { 312806, true }, + { 312822, true }, + { 312837, false }, + { 312859, true }, + { 312879, true }, { 312891, true }, - { 312907, true }, - { 312921, true }, - { 312942, true }, - { 312953, true }, - { 312968, false }, - { 312981, true }, - { 312996, true }, - { 313013, true }, - { 313027, true }, - { 313040, true }, - { 313055, true }, - { 313067, true }, + { 312912, true }, + { 312929, true }, + { 312948, true }, + { 312962, false }, + { 312974, true }, + { 312990, true }, + { 313008, true }, + { 313020, true }, + { 313034, true }, + { 313048, true }, + { 313065, true }, { 313079, true }, - { 313095, true }, - { 313110, false }, - { 313132, true }, - { 313152, true }, - { 313164, true }, - { 313185, true }, - { 313202, true }, - { 313221, true }, - { 313235, false }, - { 313247, true }, - { 313263, true }, - { 313281, true }, - { 313293, true }, - { 313307, true }, + { 313089, false }, + { 313103, true }, + { 313113, true }, + { 313134, true }, + { 313147, true }, + { 313165, true }, + { 313178, true }, + { 313188, true }, + { 313199, true }, + { 313215, true }, + { 313228, true }, + { 313249, true }, + { 313264, true }, + { 313277, true }, + { 313301, true }, { 313321, true }, { 313338, true }, { 313352, true }, - { 313362, false }, - { 313376, true }, - { 313386, true }, - { 313407, true }, + { 313362, true }, + { 313377, true }, + { 313394, true }, + { 313404, true }, { 313420, true }, - { 313438, true }, - { 313451, true }, - { 313461, true }, - { 313472, true }, - { 313488, true }, - { 313501, true }, - { 313522, true }, - { 313537, true }, - { 313550, true }, - { 313574, true }, - { 313594, true }, - { 313611, true }, - { 313625, true }, - { 313635, true }, - { 313650, true }, - { 313667, true }, - { 313677, true }, - { 313693, true }, - { 313721, true }, - { 313730, true }, - { 313741, true }, - { 313751, true }, - { 313769, true }, - { 313777, true }, - { 313801, true }, - { 313817, true }, - { 313833, true }, - { 313849, true }, + { 313448, true }, + { 313457, true }, + { 313468, true }, + { 313478, true }, + { 313496, true }, + { 313504, true }, + { 313528, true }, + { 313544, true }, + { 313560, true }, + { 313576, true }, + { 313592, true }, + { 313613, true }, + { 313624, true }, + { 313636, true }, + { 313649, true }, + { 313659, true }, + { 313684, true }, + { 313699, true }, + { 313719, true }, + { 313733, true }, + { 313748, true }, + { 313758, true }, + { 313780, true }, + { 313792, true }, + { 313814, true }, + { 313830, true }, + { 313850, true }, { 313865, true }, - { 313886, true }, - { 313897, true }, - { 313909, true }, - { 313922, true }, - { 313932, true }, - { 313957, true }, - { 313972, true }, - { 313992, true }, - { 314006, true }, - { 314021, true }, - { 314031, true }, - { 314053, true }, - { 314065, true }, - { 314087, true }, - { 314103, true }, - { 314123, true }, - { 314138, true }, - { 314151, true }, - { 314169, true }, - { 314184, true }, - { 314200, true }, - { 314216, true }, - { 314232, true }, - { 314256, true }, - { 314267, true }, - { 314282, true }, - { 314291, true }, - { 314302, true }, - { 314310, false }, + { 313878, true }, + { 313896, true }, + { 313911, true }, + { 313927, true }, + { 313943, true }, + { 313964, true }, + { 313980, true }, + { 314004, true }, + { 314015, true }, + { 314030, true }, + { 314039, true }, + { 314050, true }, + { 314058, false }, + { 314068, true }, + { 314080, true }, + { 314097, true }, + { 314109, true }, + { 314134, true }, + { 314161, true }, + { 314177, true }, + { 314193, true }, + { 314210, true }, + { 314231, true }, + { 314244, true }, + { 314263, true }, + { 314275, true }, + { 314287, true }, + { 314301, true }, { 314320, true }, { 314332, true }, - { 314349, true }, - { 314361, true }, - { 314386, true }, - { 314413, true }, - { 314429, true }, - { 314445, true }, - { 314462, true }, - { 314483, true }, - { 314496, true }, - { 314515, true }, - { 314527, true }, - { 314539, true }, - { 314553, true }, - { 314572, true }, - { 314584, true }, - { 314596, true }, - { 314606, true }, - { 314621, true }, - { 314633, true }, - { 314647, true }, - { 314671, true }, - { 314683, true }, - { 314715, true }, - { 314730, true }, - { 314751, true }, - { 314782, true }, - { 314796, true }, - { 314821, true }, - { 314844, true }, - { 314855, true }, - { 314867, true }, - { 314882, true }, - { 314895, true }, - { 314908, true }, - { 314921, true }, - { 314934, true }, - { 314944, true }, - { 314973, true }, - { 314996, true }, - { 315020, true }, - { 315047, true }, - { 315061, true }, - { 315084, true }, - { 315110, true }, - { 315138, true }, - { 315169, true }, - { 315194, true }, - { 315202, true }, - { 315209, true }, - { 315221, true }, - { 315229, true }, - { 315238, true }, - { 315250, true }, - { 315261, true }, - { 315283, true }, - { 315296, true }, - { 315317, true }, - { 315330, true }, + { 314344, true }, + { 314354, true }, + { 314369, true }, + { 314381, true }, + { 314395, true }, + { 314419, true }, + { 314431, true }, + { 314463, true }, + { 314478, true }, + { 314499, true }, + { 314530, true }, + { 314544, true }, + { 314569, true }, + { 314592, true }, + { 314603, true }, + { 314615, true }, + { 314630, true }, + { 314643, true }, + { 314656, true }, + { 314669, true }, + { 314682, true }, + { 314692, true }, + { 314721, true }, + { 314744, true }, + { 314768, true }, + { 314795, true }, + { 314809, true }, + { 314832, true }, + { 314858, true }, + { 314886, true }, + { 314917, true }, + { 314942, true }, + { 314950, true }, + { 314957, true }, + { 314969, true }, + { 314977, true }, + { 314986, true }, + { 314998, true }, + { 315009, true }, + { 315031, true }, + { 315044, true }, + { 315065, true }, + { 315078, true }, + { 315099, true }, + { 315118, true }, + { 315137, true }, + { 315148, true }, + { 315161, true }, + { 315173, true }, + { 315185, true }, + { 315201, true }, + { 315215, true }, + { 315231, false }, + { 315247, true }, + { 315255, true }, + { 315270, true }, + { 315287, true }, + { 315304, false }, + { 315319, true }, + { 315335, true }, { 315351, true }, - { 315370, true }, - { 315389, true }, - { 315400, true }, - { 315413, true }, - { 315425, true }, - { 315437, true }, - { 315453, true }, - { 315467, true }, - { 315483, false }, - { 315499, true }, + { 315361, true }, + { 315373, true }, + { 315392, true }, + { 315406, false }, + { 315415, true }, + { 315427, true }, + { 315442, true }, + { 315455, true }, + { 315473, true }, + { 315484, true }, { 315507, true }, { 315522, true }, - { 315539, true }, - { 315556, false }, - { 315571, true }, - { 315587, true }, - { 315603, true }, - { 315613, true }, - { 315625, true }, - { 315644, true }, - { 315658, false }, - { 315667, true }, - { 315679, true }, + { 315535, true }, + { 315552, true }, + { 315574, true }, + { 315591, true }, + { 315615, true }, + { 315637, true }, + { 315659, true }, + { 315673, true }, + { 315687, true }, { 315694, true }, { 315707, true }, - { 315725, true }, - { 315736, true }, - { 315759, true }, - { 315774, true }, - { 315787, true }, - { 315804, true }, - { 315826, true }, - { 315843, true }, - { 315867, true }, - { 315889, true }, - { 315911, true }, - { 315925, true }, - { 315939, true }, - { 315946, true }, - { 315959, true }, - { 315972, true }, - { 315989, true }, - { 316015, true }, - { 316027, true }, - { 316038, true }, - { 316064, true }, - { 316084, true }, - { 316105, true }, - { 316117, true }, - { 316129, true }, - { 316139, true }, - { 316149, false }, - { 316166, true }, - { 316178, true }, - { 316193, true }, + { 315720, true }, + { 315737, true }, + { 315763, true }, + { 315775, true }, + { 315786, true }, + { 315812, true }, + { 315832, true }, + { 315853, true }, + { 315865, true }, + { 315877, true }, + { 315887, true }, + { 315897, false }, + { 315914, true }, + { 315926, true }, + { 315941, true }, + { 315950, true }, + { 315967, true }, + { 315983, true }, + { 315996, true }, + { 316006, true }, + { 316020, true }, + { 316037, true }, + { 316057, true }, + { 316069, true }, + { 316082, true }, + { 316100, true }, + { 316112, true }, + { 316122, true }, + { 316133, true }, + { 316143, true }, + { 316156, false }, + { 316172, true }, + { 316188, true }, { 316202, true }, - { 316219, true }, - { 316235, true }, - { 316248, true }, - { 316258, true }, - { 316272, true }, - { 316289, true }, - { 316309, true }, - { 316321, true }, - { 316334, true }, + { 316215, false }, + { 316232, true }, + { 316246, true }, + { 316260, true }, + { 316274, true }, + { 316298, true }, + { 316311, true }, + { 316324, true }, + { 316338, true }, { 316352, true }, - { 316364, true }, - { 316374, true }, - { 316385, true }, - { 316395, true }, - { 316408, false }, - { 316424, true }, - { 316440, true }, - { 316454, true }, - { 316467, false }, - { 316484, true }, - { 316498, true }, - { 316512, true }, - { 316526, true }, - { 316550, true }, - { 316563, true }, - { 316576, true }, - { 316590, true }, + { 316367, true }, + { 316383, true }, + { 316398, true }, + { 316413, true }, + { 316431, true }, + { 316442, true }, + { 316465, true }, + { 316477, true }, + { 316489, true }, + { 316501, true }, + { 316521, true }, + { 316534, true }, + { 316553, true }, + { 316567, true }, + { 316586, true }, { 316604, true }, - { 316619, true }, - { 316635, true }, - { 316650, true }, - { 316665, true }, - { 316683, true }, - { 316694, true }, - { 316717, true }, - { 316729, true }, - { 316741, true }, - { 316753, true }, - { 316773, true }, - { 316786, true }, - { 316805, true }, - { 316819, true }, - { 316838, true }, - { 316856, true }, - { 316884, true }, - { 316900, true }, - { 316914, true }, - { 316929, true }, - { 316944, true }, - { 316968, true }, - { 316985, true }, - { 317006, true }, - { 317024, true }, - { 317048, true }, - { 317068, true }, - { 317083, true }, - { 317101, true }, - { 317113, true }, - { 317130, true }, - { 317144, true }, - { 317163, true }, - { 317180, true }, + { 316632, true }, + { 316648, true }, + { 316662, true }, + { 316677, true }, + { 316692, true }, + { 316716, true }, + { 316733, true }, + { 316754, true }, + { 316772, true }, + { 316796, true }, + { 316816, true }, + { 316831, true }, + { 316849, true }, + { 316861, true }, + { 316878, true }, + { 316892, true }, + { 316911, true }, + { 316928, true }, + { 316937, true }, + { 316951, true }, + { 316960, true }, + { 316979, false }, + { 316992, true }, + { 317004, true }, + { 317030, true }, + { 317051, true }, + { 317067, true }, + { 317081, true }, + { 317090, true }, + { 317105, true }, + { 317123, true }, + { 317139, true }, + { 317160, true }, + { 317177, true }, { 317189, true }, - { 317203, true }, - { 317212, true }, - { 317231, false }, - { 317244, true }, - { 317256, true }, - { 317282, true }, - { 317303, true }, - { 317319, true }, - { 317333, true }, - { 317342, true }, - { 317357, true }, - { 317375, true }, - { 317391, true }, - { 317412, true }, - { 317429, true }, - { 317441, true }, - { 317461, false }, - { 317474, true }, - { 317485, true }, - { 317506, true }, - { 317520, true }, - { 317533, true }, + { 317209, false }, + { 317222, true }, + { 317233, true }, + { 317254, true }, + { 317268, true }, + { 317281, true }, + { 317297, true }, + { 317315, true }, + { 317327, true }, + { 317339, true }, + { 317357, false }, + { 317376, true }, + { 317398, true }, + { 317413, true }, + { 317432, true }, + { 317448, true }, + { 317462, true }, + { 317477, true }, + { 317490, true }, + { 317512, true }, + { 317528, true }, { 317549, true }, - { 317567, true }, - { 317579, true }, - { 317591, true }, - { 317609, false }, + { 317563, true }, + { 317575, true }, + { 317592, true }, + { 317610, true }, + { 317621, true }, { 317628, true }, - { 317650, true }, - { 317665, true }, - { 317684, true }, - { 317700, true }, + { 317641, true }, + { 317653, true }, + { 317667, true }, + { 317686, true }, + { 317696, true }, + { 317704, true }, { 317714, true }, - { 317729, true }, - { 317742, true }, - { 317764, true }, + { 317721, true }, + { 317731, true }, + { 317746, true }, + { 317765, true }, { 317780, true }, - { 317801, true }, - { 317815, true }, - { 317827, true }, - { 317844, true }, - { 317862, true }, - { 317873, true }, - { 317880, true }, - { 317893, true }, - { 317905, true }, - { 317919, true }, - { 317938, true }, - { 317948, true }, - { 317956, true }, - { 317966, true }, - { 317973, true }, - { 317983, true }, - { 317998, true }, + { 317796, true }, + { 317819, false }, + { 317829, true }, + { 317836, true }, + { 317847, false }, + { 317859, true }, + { 317868, true }, + { 317882, true }, + { 317898, true }, + { 317906, true }, + { 317913, true }, + { 317923, true }, + { 317932, true }, + { 317944, true }, + { 317955, true }, + { 317974, true }, + { 317984, true }, + { 317997, true }, + { 318005, false }, { 318017, true }, - { 318032, true }, - { 318048, true }, - { 318071, false }, - { 318081, true }, - { 318088, true }, - { 318099, true }, - { 318108, true }, - { 318122, true }, - { 318138, true }, - { 318146, true }, - { 318153, true }, - { 318163, true }, - { 318172, true }, - { 318184, true }, - { 318195, true }, - { 318214, true }, - { 318224, true }, - { 318237, true }, - { 318245, false }, - { 318257, true }, - { 318270, true }, - { 318282, true }, - { 318294, true }, - { 318312, true }, - { 318325, true }, - { 318341, true }, - { 318350, false }, - { 318367, true }, + { 318030, true }, + { 318042, true }, + { 318054, true }, + { 318072, true }, + { 318085, true }, + { 318101, true }, + { 318110, false }, + { 318127, true }, + { 318145, true }, + { 318166, true }, + { 318177, true }, + { 318188, true }, + { 318202, true }, + { 318223, true }, + { 318235, true }, + { 318255, true }, + { 318280, true }, + { 318306, true }, + { 318332, true }, + { 318353, true }, + { 318364, true }, + { 318374, true }, { 318385, true }, - { 318406, true }, - { 318417, true }, - { 318428, true }, - { 318442, true }, - { 318463, true }, - { 318475, true }, - { 318495, true }, - { 318520, true }, - { 318546, true }, - { 318572, true }, - { 318593, true }, - { 318604, true }, - { 318614, true }, - { 318625, true }, - { 318637, true }, - { 318650, true }, - { 318664, true }, - { 318683, true }, - { 318696, true }, - { 318709, true }, - { 318719, true }, - { 318731, true }, - { 318746, true }, - { 318755, true }, - { 318769, true }, - { 318784, true }, - { 318801, true }, - { 318817, true }, - { 318837, true }, - { 318852, true }, - { 318868, true }, - { 318880, true }, - { 318900, true }, - { 318922, true }, - { 318942, true }, - { 318955, true }, - { 318974, true }, - { 318982, true }, + { 318397, true }, + { 318410, true }, + { 318424, true }, + { 318443, true }, + { 318456, true }, + { 318469, true }, + { 318479, true }, + { 318491, true }, + { 318506, true }, + { 318515, true }, + { 318529, true }, + { 318544, true }, + { 318561, true }, + { 318577, true }, + { 318597, true }, + { 318612, true }, + { 318628, true }, + { 318640, true }, + { 318660, true }, + { 318682, true }, + { 318702, true }, + { 318715, true }, + { 318734, true }, + { 318742, true }, + { 318756, true }, + { 318775, true }, + { 318787, true }, + { 318811, false }, + { 318825, true }, + { 318838, true }, + { 318851, true }, + { 318869, true }, + { 318891, true }, + { 318911, true }, + { 318923, true }, + { 318935, true }, + { 318950, true }, + { 318971, true }, { 318996, true }, - { 319015, true }, - { 319027, true }, - { 319051, false }, - { 319065, true }, - { 319078, true }, - { 319091, true }, - { 319109, true }, - { 319131, true }, - { 319151, true }, - { 319163, true }, - { 319175, true }, - { 319190, true }, - { 319211, true }, - { 319236, true }, - { 319261, true }, - { 319277, true }, - { 319294, true }, - { 319320, true }, - { 319348, true }, - { 319369, true }, - { 319382, true }, - { 319398, true }, + { 319021, true }, + { 319037, true }, + { 319054, true }, + { 319080, true }, + { 319108, true }, + { 319129, true }, + { 319142, true }, + { 319158, true }, + { 319173, true }, + { 319187, true }, + { 319199, true }, + { 319217, true }, + { 319231, true }, + { 319250, true }, + { 319264, true }, + { 319275, true }, + { 319291, true }, + { 319303, true }, + { 319313, true }, + { 319322, true }, + { 319336, true }, + { 319353, true }, + { 319364, true }, + { 319381, true }, + { 319394, true }, + { 319405, true }, { 319413, true }, - { 319427, true }, - { 319439, true }, - { 319457, true }, - { 319471, true }, - { 319490, true }, - { 319504, true }, - { 319515, true }, - { 319531, true }, - { 319543, true }, + { 319425, true }, + { 319442, true }, + { 319453, true }, + { 319465, true }, + { 319474, false }, + { 319486, true }, + { 319505, true }, + { 319518, true }, + { 319529, true }, + { 319540, true }, { 319553, true }, - { 319562, true }, + { 319564, true }, { 319576, true }, - { 319593, true }, - { 319604, true }, - { 319621, true }, - { 319634, true }, - { 319645, true }, - { 319653, true }, - { 319665, true }, - { 319682, true }, - { 319693, true }, - { 319705, true }, - { 319714, false }, - { 319726, true }, - { 319745, true }, - { 319758, true }, - { 319769, true }, + { 319589, true }, + { 319600, true }, + { 319612, true }, + { 319622, true }, + { 319628, true }, + { 319638, true }, + { 319658, true }, + { 319674, true }, + { 319685, true }, + { 319695, true }, + { 319718, true }, + { 319743, true }, + { 319755, true }, + { 319772, true }, { 319780, true }, - { 319793, true }, - { 319804, true }, - { 319816, true }, + { 319794, true }, + { 319806, true }, + { 319818, true }, { 319829, true }, - { 319840, true }, - { 319852, true }, - { 319862, true }, + { 319844, true }, + { 319857, true }, { 319868, true }, - { 319878, true }, + { 319879, true }, + { 319887, true }, { 319898, true }, - { 319914, true }, - { 319925, true }, - { 319935, true }, - { 319958, true }, - { 319983, true }, - { 319995, true }, - { 320012, true }, + { 319907, true }, + { 319923, true }, + { 319933, true }, + { 319947, true }, + { 319957, true }, + { 319971, true }, + { 319978, true }, + { 319988, true }, + { 320001, true }, + { 320011, true }, { 320020, true }, { 320028, true }, - { 320042, true }, - { 320054, true }, - { 320066, true }, - { 320077, true }, - { 320092, true }, - { 320105, true }, - { 320116, true }, - { 320127, true }, - { 320135, true }, - { 320146, true }, - { 320155, true }, - { 320171, true }, - { 320181, true }, - { 320195, true }, - { 320205, true }, - { 320219, true }, - { 320226, true }, - { 320236, true }, - { 320249, true }, - { 320259, true }, - { 320268, true }, - { 320276, true }, - { 320288, true }, - { 320304, true }, - { 320319, true }, - { 320329, true }, - { 320354, true }, - { 320366, true }, - { 320374, true }, - { 320386, false }, - { 320397, true }, - { 320409, true }, - { 320421, true }, + { 320040, true }, + { 320056, true }, + { 320071, true }, + { 320081, true }, + { 320106, true }, + { 320118, true }, + { 320126, true }, + { 320138, false }, + { 320149, true }, + { 320161, true }, + { 320173, true }, + { 320185, true }, + { 320200, true }, + { 320218, false }, + { 320231, true }, + { 320246, true }, + { 320260, true }, + { 320274, true }, + { 320291, true }, + { 320308, true }, + { 320323, true }, + { 320341, true }, + { 320359, true }, + { 320377, true }, + { 320391, true }, + { 320405, true }, + { 320419, true }, { 320433, true }, - { 320448, true }, - { 320466, false }, - { 320479, true }, - { 320494, true }, - { 320508, true }, - { 320522, true }, - { 320539, true }, - { 320556, true }, + { 320447, false }, + { 320467, false }, + { 320485, false }, + { 320508, false }, + { 320531, false }, + { 320552, false }, { 320571, true }, - { 320589, true }, - { 320607, true }, - { 320625, true }, - { 320639, true }, - { 320653, true }, - { 320667, true }, - { 320681, true }, - { 320695, false }, - { 320715, false }, - { 320733, false }, - { 320756, false }, + { 320584, true }, + { 320600, false }, + { 320616, false }, + { 320632, true }, + { 320654, true }, + { 320667, false }, + { 320684, false }, + { 320701, true }, + { 320718, false }, + { 320735, false }, + { 320749, false }, + { 320768, false }, { 320779, false }, - { 320800, false }, - { 320819, true }, - { 320832, true }, - { 320848, false }, - { 320864, false }, - { 320880, true }, - { 320902, true }, - { 320915, false }, - { 320932, false }, - { 320949, true }, - { 320966, false }, - { 320983, false }, - { 320997, false }, - { 321016, false }, - { 321027, false }, - { 321039, false }, - { 321051, false }, - { 321070, true }, - { 321088, false }, - { 321102, true }, - { 321118, false }, - { 321135, false }, - { 321152, false }, - { 321167, false }, - { 321183, true }, - { 321204, true }, - { 321222, false }, - { 321241, false }, - { 321259, false }, - { 321279, true }, - { 321295, false }, - { 321310, true }, - { 321325, false }, - { 321349, true }, - { 321356, true }, - { 321375, false }, - { 321393, false }, - { 321408, true }, - { 321428, true }, - { 321449, false }, - { 321473, false }, - { 321492, false }, - { 321508, true }, - { 321523, false }, - { 321536, true }, - { 321552, false }, - { 321567, false }, - { 321581, false }, - { 321599, true }, - { 321610, true }, - { 321617, true }, - { 321628, true }, - { 321636, true }, - { 321644, true }, - { 321654, true }, - { 321667, true }, - { 321680, true }, - { 321695, true }, - { 321707, true }, - { 321724, true }, - { 321740, true }, - { 321754, true }, - { 321766, true }, - { 321774, true }, - { 321785, true }, - { 321795, true }, - { 321813, true }, - { 321818, true }, - { 321823, true }, - { 321830, true }, - { 321839, true }, - { 321846, true }, - { 321855, true }, - { 321863, true }, - { 321871, true }, - { 321879, true }, - { 321888, true }, - { 321895, true }, - { 321914, true }, - { 321921, true }, - { 321928, true }, + { 320791, false }, + { 320803, false }, + { 320822, true }, + { 320840, false }, + { 320854, true }, + { 320870, false }, + { 320887, false }, + { 320904, false }, + { 320919, false }, + { 320935, true }, + { 320956, true }, + { 320974, false }, + { 320993, false }, + { 321011, false }, + { 321031, true }, + { 321047, false }, + { 321062, true }, + { 321077, false }, + { 321101, true }, + { 321108, true }, + { 321127, false }, + { 321145, false }, + { 321160, true }, + { 321180, true }, + { 321201, false }, + { 321225, false }, + { 321244, false }, + { 321260, true }, + { 321275, false }, + { 321288, true }, + { 321304, false }, + { 321319, false }, + { 321333, false }, + { 321351, true }, + { 321362, true }, + { 321369, true }, + { 321380, true }, + { 321391, true }, + { 321399, true }, + { 321407, true }, + { 321417, true }, + { 321430, true }, + { 321443, true }, + { 321458, true }, + { 321470, true }, + { 321487, true }, + { 321503, true }, + { 321517, true }, + { 321529, true }, + { 321537, true }, + { 321548, true }, + { 321558, true }, + { 321576, true }, + { 321581, true }, + { 321586, true }, + { 321593, true }, + { 321602, true }, + { 321609, true }, + { 321618, true }, + { 321626, true }, + { 321634, true }, + { 321642, true }, + { 321651, true }, + { 321658, true }, + { 321677, true }, + { 321684, true }, + { 321691, true }, + { 321698, true }, + { 321705, true }, + { 321726, true }, + { 321746, true }, + { 321770, true }, + { 321777, true }, + { 321787, true }, + { 321800, true }, + { 321817, true }, + { 321837, true }, + { 321843, true }, + { 321849, true }, + { 321856, true }, + { 321868, true }, + { 321881, true }, + { 321896, true }, + { 321910, true }, + { 321923, true }, { 321935, true }, - { 321942, true }, - { 321951, true }, - { 321972, true }, - { 321992, true }, + { 321946, true }, + { 321959, false }, + { 321970, true }, + { 321981, true }, + { 321989, true }, + { 321997, false }, { 322016, true }, - { 322023, true }, - { 322033, true }, - { 322046, true }, - { 322063, true }, - { 322083, true }, - { 322089, true }, - { 322095, true }, - { 322102, true }, - { 322114, true }, - { 322127, true }, - { 322142, true }, - { 322156, true }, - { 322169, true }, - { 322181, true }, - { 322192, true }, - { 322205, false }, - { 322216, true }, - { 322227, true }, - { 322235, true }, - { 322243, false }, - { 322262, true }, - { 322273, true }, - { 322284, true }, - { 322291, true }, - { 322302, true }, - { 322313, true }, - { 322320, true }, - { 322331, true }, - { 322343, true }, - { 322362, true }, - { 322378, true }, - { 322394, false }, - { 322406, true }, - { 322417, true }, - { 322434, true }, - { 322444, true }, - { 322460, true }, - { 322474, false }, - { 322489, true }, - { 322504, true }, - { 322514, true }, - { 322524, true }, - { 322536, true }, - { 322547, false }, - { 322557, true }, - { 322567, true }, - { 322578, true }, - { 322586, true }, - { 322594, true }, - { 322605, true }, - { 322615, false }, - { 322629, true }, - { 322637, true }, - { 322647, true }, + { 322027, true }, + { 322038, true }, + { 322045, true }, + { 322056, true }, + { 322067, true }, + { 322074, true }, + { 322085, true }, + { 322097, true }, + { 322116, true }, + { 322132, true }, + { 322148, false }, + { 322160, true }, + { 322171, true }, + { 322188, true }, + { 322198, true }, + { 322214, true }, + { 322228, false }, + { 322243, true }, + { 322258, true }, + { 322268, true }, + { 322278, true }, + { 322290, true }, + { 322301, false }, + { 322311, true }, + { 322321, true }, + { 322332, true }, + { 322340, true }, + { 322348, true }, + { 322359, true }, + { 322369, false }, + { 322383, true }, + { 322391, true }, + { 322401, true }, + { 322412, true }, + { 322420, false }, + { 322432, true }, + { 322443, true }, + { 322455, true }, + { 322463, true }, + { 322477, true }, + { 322484, true }, + { 322491, true }, + { 322525, true }, + { 322550, true }, + { 322572, true }, + { 322590, true }, + { 322616, true }, + { 322642, true }, { 322658, true }, - { 322666, false }, - { 322678, true }, + { 322670, true }, { 322689, true }, - { 322701, true }, - { 322709, true }, - { 322723, true }, - { 322730, true }, - { 322737, true }, - { 322771, true }, - { 322796, true }, - { 322818, true }, - { 322836, true }, - { 322862, true }, - { 322888, true }, - { 322904, true }, - { 322916, true }, - { 322935, true }, - { 322959, true }, - { 322980, true }, - { 323006, true }, - { 323039, true }, - { 323062, true }, - { 323081, true }, - { 323109, true }, - { 323129, true }, - { 323151, true }, - { 323169, true }, - { 323187, true }, - { 323214, true }, - { 323239, true }, - { 323264, true }, - { 323288, true }, - { 323328, true }, - { 323353, true }, - { 323368, true }, - { 323379, true }, - { 323410, true }, - { 323425, true }, - { 323436, false }, - { 323457, true }, - { 323481, true }, - { 323499, true }, - { 323525, true }, - { 323543, true }, - { 323580, true }, - { 323612, true }, - { 323632, true }, + { 322713, true }, + { 322734, true }, + { 322760, true }, + { 322793, true }, + { 322816, true }, + { 322835, true }, + { 322863, true }, + { 322883, true }, + { 322905, true }, + { 322923, true }, + { 322941, true }, + { 322968, true }, + { 322993, true }, + { 323018, true }, + { 323042, true }, + { 323082, true }, + { 323107, true }, + { 323122, true }, + { 323133, true }, + { 323164, true }, + { 323179, true }, + { 323190, false }, + { 323211, true }, + { 323235, true }, + { 323253, true }, + { 323279, true }, + { 323297, true }, + { 323334, true }, + { 323366, true }, + { 323386, true }, + { 323414, true }, + { 323437, true }, + { 323465, true }, + { 323480, true }, + { 323507, true }, + { 323527, true }, + { 323548, true }, + { 323562, true }, + { 323576, true }, + { 323593, true }, + { 323615, true }, + { 323640, true }, { 323660, true }, - { 323683, true }, - { 323711, true }, - { 323726, true }, - { 323753, true }, - { 323773, true }, - { 323794, true }, - { 323808, true }, - { 323822, true }, - { 323839, true }, - { 323861, true }, - { 323886, true }, - { 323906, true }, + { 323679, true }, + { 323721, true }, + { 323732, true }, + { 323751, true }, + { 323774, true }, + { 323800, true }, + { 323816, true }, + { 323838, true }, + { 323849, true }, + { 323873, true }, + { 323880, true }, + { 323891, true }, + { 323898, true }, + { 323909, true }, + { 323919, true }, { 323925, true }, - { 323967, true }, - { 323978, true }, - { 323997, true }, + { 323936, true }, + { 323952, true }, + { 323968, true }, + { 323979, true }, + { 323989, true }, + { 323996, true }, + { 324003, true }, { 324020, true }, - { 324046, true }, - { 324062, true }, - { 324084, true }, - { 324095, true }, - { 324119, true }, - { 324126, true }, + { 324033, true }, + { 324040, true }, + { 324055, true }, + { 324074, true }, + { 324088, true }, + { 324097, true }, + { 324103, true }, + { 324117, true }, + { 324127, true }, { 324137, true }, - { 324144, true }, - { 324155, true }, - { 324165, true }, + { 324145, true }, + { 324158, true }, { 324171, true }, - { 324182, true }, - { 324198, true }, - { 324214, true }, - { 324225, true }, - { 324235, true }, - { 324242, true }, - { 324249, true }, - { 324266, true }, - { 324279, true }, + { 324178, true }, + { 324185, true }, + { 324194, true }, + { 324201, true }, + { 324212, true }, + { 324221, true }, + { 324237, true }, + { 324250, true }, + { 324262, true }, + { 324271, false }, + { 324278, true }, { 324286, true }, - { 324301, true }, - { 324320, true }, - { 324334, true }, - { 324343, true }, - { 324349, true }, + { 324297, true }, + { 324307, true }, + { 324319, true }, + { 324329, true }, + { 324344, true }, + { 324354, true }, { 324363, true }, - { 324373, true }, - { 324383, true }, - { 324391, true }, - { 324404, true }, - { 324417, true }, - { 324424, true }, - { 324431, true }, - { 324440, true }, - { 324447, true }, - { 324458, true }, - { 324467, true }, - { 324483, true }, - { 324496, true }, - { 324508, true }, - { 324517, false }, - { 324524, true }, - { 324532, true }, - { 324543, true }, - { 324553, true }, - { 324565, true }, - { 324575, true }, - { 324590, true }, + { 324377, true }, + { 324397, true }, + { 324407, true }, + { 324419, true }, + { 324439, true }, + { 324448, true }, + { 324456, true }, + { 324466, true }, + { 324473, true }, + { 324482, true }, + { 324493, true }, + { 324504, true }, + { 324515, true }, + { 324529, true }, + { 324538, true }, + { 324554, true }, + { 324561, true }, + { 324571, true }, + { 324583, true }, + { 324593, false }, { 324600, true }, { 324609, true }, - { 324623, true }, - { 324643, true }, - { 324653, true }, - { 324665, true }, - { 324685, true }, - { 324694, true }, - { 324702, true }, - { 324712, true }, - { 324719, true }, - { 324728, true }, - { 324739, true }, - { 324750, true }, - { 324761, true }, - { 324775, true }, - { 324784, true }, - { 324800, true }, - { 324807, true }, - { 324817, true }, - { 324829, true }, - { 324839, false }, - { 324846, true }, - { 324855, true }, - { 324863, true }, - { 324875, false }, - { 324886, true }, - { 324896, false }, - { 324908, true }, - { 324922, true }, - { 324937, true }, + { 324617, true }, + { 324629, false }, + { 324640, true }, + { 324650, false }, + { 324662, true }, + { 324676, true }, + { 324691, true }, + { 324704, true }, + { 324720, true }, + { 324732, true }, + { 324745, false }, + { 324755, true }, + { 324768, true }, + { 324790, true }, + { 324802, true }, + { 324818, true }, + { 324826, true }, + { 324835, true }, + { 324847, true }, + { 324857, true }, + { 324866, false }, + { 324874, true }, + { 324882, true }, + { 324892, true }, + { 324902, true }, + { 324911, true }, + { 324920, true }, + { 324932, true }, { 324950, true }, - { 324966, true }, - { 324978, true }, - { 324991, false }, - { 325001, true }, - { 325014, true }, - { 325036, true }, - { 325048, true }, - { 325064, true }, - { 325072, true }, - { 325081, true }, - { 325093, true }, - { 325103, true }, - { 325112, false }, - { 325120, true }, - { 325128, true }, - { 325138, true }, - { 325148, true }, - { 325157, true }, + { 324962, true }, + { 324973, true }, + { 324988, true }, + { 325003, true }, + { 325019, false }, + { 325034, false }, + { 325047, true }, + { 325061, false }, + { 325070, true }, + { 325077, true }, + { 325088, true }, + { 325101, true }, + { 325117, true }, + { 325124, true }, + { 325134, true }, + { 325142, true }, + { 325155, true }, { 325166, true }, - { 325178, true }, - { 325196, true }, - { 325208, true }, - { 325219, true }, - { 325234, true }, + { 325177, true }, + { 325191, true }, + { 325206, true }, + { 325218, true }, + { 325229, true }, + { 325239, true }, { 325249, true }, - { 325265, false }, - { 325280, false }, - { 325293, true }, - { 325307, false }, - { 325316, true }, + { 325260, true }, + { 325282, true }, + { 325297, true }, + { 325304, true }, + { 325315, true }, { 325323, true }, - { 325334, true }, - { 325347, true }, - { 325363, true }, - { 325370, true }, - { 325380, true }, - { 325388, true }, - { 325401, true }, - { 325412, true }, - { 325423, true }, - { 325437, true }, - { 325452, true }, - { 325464, true }, - { 325475, true }, - { 325485, true }, - { 325495, true }, - { 325506, true }, - { 325528, true }, - { 325543, true }, - { 325550, true }, - { 325561, true }, - { 325569, true }, - { 325579, true }, - { 325592, true }, - { 325599, true }, - { 325617, true }, - { 325629, true }, - { 325645, false }, - { 325654, true }, - { 325668, true }, - { 325684, true }, - { 325701, true }, + { 325333, true }, + { 325346, true }, + { 325353, true }, + { 325371, true }, + { 325383, true }, + { 325399, false }, + { 325408, true }, + { 325422, true }, + { 325438, true }, + { 325455, true }, + { 325474, true }, + { 325492, true }, + { 325509, true }, + { 325521, true }, + { 325532, true }, + { 325545, true }, + { 325556, true }, + { 325568, false }, + { 325583, true }, + { 325594, true }, + { 325604, true }, + { 325614, true }, + { 325626, true }, + { 325637, false }, + { 325647, true }, + { 325671, true }, + { 325682, true }, + { 325692, true }, + { 325709, true }, { 325720, true }, - { 325738, true }, - { 325755, true }, - { 325767, true }, - { 325778, true }, - { 325791, true }, - { 325802, true }, - { 325814, false }, - { 325829, true }, + { 325740, true }, + { 325752, true }, + { 325765, true }, + { 325782, true }, + { 325797, true }, + { 325813, true }, + { 325826, true }, { 325840, true }, - { 325850, true }, - { 325860, true }, - { 325872, true }, - { 325883, true }, - { 325903, false }, - { 325913, true }, - { 325937, true }, - { 325948, true }, - { 325958, true }, - { 325975, true }, - { 325986, true }, - { 326006, true }, - { 326018, true }, - { 326031, true }, - { 326048, true }, - { 326063, true }, - { 326079, true }, - { 326092, true }, - { 326106, true }, - { 326122, true }, - { 326139, true }, + { 325856, true }, + { 325873, true }, + { 325888, true }, + { 325903, true }, + { 325915, true }, + { 325927, true }, + { 325936, true }, + { 325950, true }, + { 325963, true }, + { 325974, true }, + { 325984, true }, + { 325997, true }, + { 326015, true }, + { 326028, true }, + { 326043, true }, + { 326056, true }, + { 326069, true }, + { 326084, true }, + { 326096, true }, + { 326105, true }, + { 326116, true }, + { 326138, true }, { 326154, true }, - { 326169, true }, - { 326181, true }, - { 326193, true }, - { 326202, true }, - { 326216, true }, - { 326229, true }, - { 326240, true }, - { 326250, true }, - { 326263, true }, - { 326281, true }, - { 326294, true }, - { 326309, true }, + { 326163, true }, + { 326171, true }, + { 326179, true }, + { 326192, true }, + { 326205, true }, + { 326217, true }, + { 326231, true }, + { 326239, true }, + { 326254, true }, + { 326264, true }, + { 326275, true }, + { 326291, true }, + { 326299, true }, + { 326312, true }, { 326322, true }, - { 326335, true }, - { 326350, true }, - { 326362, true }, - { 326371, true }, - { 326382, true }, - { 326404, true }, - { 326420, true }, + { 326332, true }, + { 326345, true }, + { 326355, true }, + { 326365, true }, + { 326375, true }, + { 326386, true }, + { 326396, true }, + { 326406, true }, + { 326416, true }, + { 326427, true }, { 326440, true }, - { 326449, true }, - { 326457, true }, - { 326465, true }, - { 326478, true }, - { 326491, true }, - { 326503, true }, - { 326517, true }, - { 326525, true }, - { 326540, true }, - { 326550, true }, - { 326561, true }, - { 326577, true }, - { 326585, true }, - { 326598, true }, - { 326608, true }, - { 326618, true }, - { 326631, true }, + { 326452, true }, + { 326463, true }, + { 326474, true }, + { 326486, true }, + { 326497, true }, + { 326508, true }, + { 326521, true }, + { 326529, true }, + { 326538, true }, + { 326548, true }, + { 326558, true }, + { 326567, true }, + { 326576, true }, + { 326591, true }, + { 326610, true }, + { 326623, true }, { 326641, true }, - { 326651, true }, - { 326661, true }, - { 326672, true }, - { 326682, true }, - { 326692, true }, - { 326702, true }, - { 326713, true }, - { 326726, true }, - { 326738, true }, - { 326749, true }, - { 326760, true }, - { 326772, true }, - { 326783, true }, - { 326794, true }, - { 326807, true }, - { 326815, true }, - { 326824, true }, - { 326834, true }, - { 326844, true }, + { 326654, true }, + { 326663, true }, + { 326686, true }, + { 326697, true }, + { 326711, true }, + { 326723, true }, + { 326741, true }, + { 326754, true }, + { 326770, true }, + { 326778, true }, + { 326792, true }, + { 326802, true }, + { 326809, true }, + { 326823, true }, + { 326831, true }, + { 326839, true }, { 326853, true }, - { 326862, true }, - { 326877, true }, - { 326896, true }, - { 326909, true }, - { 326927, true }, - { 326940, true }, - { 326949, true }, - { 326972, true }, - { 326983, true }, - { 326997, true }, - { 327009, true }, - { 327027, true }, - { 327040, true }, - { 327056, true }, - { 327064, true }, - { 327078, true }, - { 327088, true }, - { 327095, true }, - { 327109, true }, - { 327117, true }, - { 327125, true }, - { 327139, true }, - { 327155, true }, - { 327165, true }, - { 327183, true }, - { 327192, true }, - { 327201, true }, - { 327224, true }, - { 327237, true }, - { 327242, true }, - { 327252, true }, - { 327259, true }, - { 327266, true }, - { 327273, true }, - { 327285, false }, - { 327304, true }, - { 327315, true }, - { 327331, true }, - { 327346, true }, - { 327362, true }, - { 327377, true }, - { 327388, true }, - { 327401, true }, - { 327414, true }, - { 327424, true }, - { 327434, true }, - { 327449, true }, - { 327463, true }, - { 327491, true }, + { 326869, true }, + { 326879, true }, + { 326897, true }, + { 326906, true }, + { 326915, true }, + { 326938, true }, + { 326951, true }, + { 326956, true }, + { 326966, true }, + { 326973, true }, + { 326980, true }, + { 326987, true }, + { 326999, false }, + { 327018, true }, + { 327029, true }, + { 327045, true }, + { 327060, true }, + { 327076, true }, + { 327091, true }, + { 327102, true }, + { 327115, true }, + { 327128, true }, + { 327138, true }, + { 327148, true }, + { 327163, true }, + { 327177, true }, + { 327205, true }, + { 327216, true }, + { 327229, true }, + { 327241, true }, + { 327254, true }, + { 327262, true }, + { 327271, true }, + { 327281, true }, + { 327294, true }, + { 327306, true }, + { 327336, true }, + { 327347, true }, + { 327365, true }, + { 327376, true }, + { 327384, true }, + { 327408, true }, + { 327418, true }, + { 327430, true }, + { 327447, true }, + { 327459, true }, + { 327470, true }, + { 327482, true }, + { 327495, false }, { 327502, true }, - { 327515, true }, + { 327520, true }, { 327527, true }, - { 327540, true }, - { 327548, true }, - { 327557, true }, - { 327567, true }, - { 327580, true }, - { 327592, true }, - { 327622, true }, - { 327633, true }, - { 327651, true }, - { 327662, true }, - { 327670, true }, + { 327536, true }, + { 327547, true }, + { 327559, true }, + { 327570, true }, + { 327577, true }, + { 327585, true }, + { 327601, true }, + { 327620, true }, + { 327631, true }, + { 327641, true }, + { 327650, true }, + { 327668, true }, { 327694, true }, - { 327704, true }, - { 327716, true }, - { 327733, true }, - { 327745, true }, - { 327756, true }, - { 327768, true }, - { 327781, false }, - { 327788, true }, - { 327806, true }, - { 327813, true }, - { 327822, true }, - { 327833, true }, - { 327845, true }, - { 327856, true }, - { 327863, true }, - { 327871, true }, - { 327887, true }, - { 327906, true }, - { 327917, true }, + { 327703, true }, + { 327728, true }, + { 327755, true }, + { 327775, false }, + { 327786, true }, + { 327799, true }, + { 327821, true }, + { 327832, true }, + { 327843, true }, + { 327855, true }, + { 327868, true }, + { 327881, true }, + { 327896, true }, + { 327914, true }, { 327927, true }, - { 327936, true }, - { 327954, true }, - { 327980, true }, + { 327942, true }, + { 327958, true }, + { 327976, true }, { 327989, true }, - { 328014, true }, - { 328041, true }, - { 328061, false }, - { 328072, true }, - { 328085, true }, - { 328107, true }, - { 328118, true }, - { 328129, true }, - { 328141, true }, - { 328154, true }, - { 328167, true }, + { 328003, true }, + { 328013, true }, + { 328025, true }, + { 328033, true }, + { 328045, true }, + { 328065, true }, + { 328077, true }, + { 328087, true }, + { 328100, true }, + { 328111, true }, + { 328124, true }, + { 328136, true }, + { 328148, true }, + { 328162, true }, + { 328172, false }, { 328182, true }, - { 328200, true }, - { 328213, true }, - { 328228, true }, - { 328244, true }, + { 328195, true }, + { 328206, true }, + { 328221, true }, + { 328234, true }, + { 328245, true }, + { 328252, true }, { 328262, true }, - { 328275, true }, - { 328289, true }, - { 328299, true }, - { 328311, true }, - { 328319, true }, - { 328331, true }, - { 328351, true }, - { 328363, true }, - { 328373, true }, - { 328386, true }, + { 328276, true }, + { 328286, true }, + { 328304, true }, + { 328316, true }, + { 328328, true }, + { 328344, true }, + { 328357, true }, + { 328372, true }, + { 328385, true }, { 328397, true }, - { 328410, true }, - { 328422, true }, - { 328434, true }, - { 328448, true }, - { 328458, false }, - { 328468, true }, - { 328481, true }, - { 328492, true }, + { 328411, true }, + { 328424, true }, + { 328431, true }, + { 328442, false }, + { 328455, true }, + { 328467, true }, + { 328476, true }, + { 328488, true }, { 328507, true }, - { 328520, true }, - { 328531, true }, - { 328538, true }, - { 328548, true }, - { 328562, true }, - { 328572, true }, - { 328590, true }, - { 328602, true }, - { 328614, true }, - { 328630, true }, + { 328536, true }, + { 328544, true }, + { 328552, true }, + { 328567, false }, + { 328575, true }, + { 328596, true }, + { 328607, true }, + { 328615, true }, + { 328626, true }, { 328643, true }, - { 328658, true }, + { 328657, true }, { 328671, true }, - { 328683, true }, - { 328697, true }, - { 328710, true }, - { 328717, true }, - { 328728, false }, - { 328741, true }, - { 328753, true }, - { 328762, true }, - { 328774, true }, - { 328793, true }, - { 328822, true }, - { 328830, true }, - { 328838, true }, - { 328853, false }, - { 328861, true }, - { 328882, true }, - { 328893, true }, - { 328901, true }, - { 328912, true }, - { 328929, true }, + { 328682, false }, + { 328694, true }, + { 328701, true }, + { 328720, true }, + { 328738, true }, + { 328749, true }, + { 328761, true }, + { 328770, true }, + { 328780, true }, + { 328795, true }, + { 328807, true }, + { 328817, true }, + { 328832, true }, + { 328844, true }, + { 328856, false }, + { 328863, true }, + { 328874, true }, + { 328887, true }, + { 328897, true }, + { 328921, true }, + { 328932, true }, { 328943, true }, - { 328957, true }, - { 328968, false }, + { 328954, true }, + { 328965, true }, { 328980, true }, - { 328987, true }, - { 329006, true }, - { 329024, true }, - { 329035, true }, - { 329047, true }, - { 329056, true }, - { 329066, true }, - { 329081, true }, - { 329093, true }, - { 329101, true }, - { 329111, true }, - { 329126, true }, - { 329138, true }, - { 329150, false }, - { 329157, true }, - { 329168, true }, - { 329181, true }, - { 329191, true }, - { 329215, true }, - { 329226, true }, - { 329237, true }, - { 329248, true }, - { 329259, true }, - { 329274, true }, - { 329286, true }, - { 329310, true }, - { 329328, true }, - { 329343, true }, + { 328992, true }, + { 329016, true }, + { 329034, true }, + { 329049, true }, + { 329060, true }, + { 329071, true }, + { 329086, true }, + { 329096, true }, + { 329112, true }, + { 329121, true }, + { 329132, true }, + { 329154, true }, + { 329165, true }, + { 329189, true }, + { 329204, true }, + { 329216, true }, + { 329228, true }, + { 329239, true }, + { 329249, true }, + { 329257, true }, + { 329276, true }, + { 329287, true }, + { 329297, true }, + { 329307, true }, + { 329318, true }, + { 329326, true }, + { 329340, false }, + { 329347, true }, { 329354, true }, - { 329365, true }, - { 329380, true }, + { 329366, true }, + { 329381, true }, { 329390, true }, - { 329406, true }, - { 329415, true }, - { 329426, true }, - { 329448, true }, - { 329459, true }, + { 329399, true }, + { 329413, true }, + { 329423, true }, + { 329434, true }, + { 329452, true }, + { 329462, true }, + { 329470, true }, { 329483, true }, - { 329498, true }, - { 329510, true }, - { 329522, true }, - { 329533, true }, - { 329543, true }, - { 329551, true }, + { 329497, true }, + { 329518, true }, + { 329532, true }, + { 329542, true }, + { 329549, true }, + { 329560, true }, { 329570, true }, - { 329581, true }, - { 329591, true }, - { 329601, true }, - { 329612, true }, - { 329620, true }, - { 329634, false }, - { 329641, true }, - { 329648, true }, - { 329660, true }, - { 329675, true }, - { 329684, true }, - { 329693, true }, - { 329707, true }, - { 329717, true }, + { 329580, true }, + { 329590, true }, + { 329603, true }, + { 329614, true }, + { 329622, true }, + { 329631, true }, + { 329651, true }, + { 329674, true }, + { 329682, true }, + { 329695, true }, + { 329708, false }, + { 329715, true }, { 329728, true }, - { 329746, true }, - { 329756, true }, - { 329764, true }, - { 329777, true }, + { 329740, true }, + { 329750, true }, + { 329759, true }, + { 329771, true }, + { 329781, true }, { 329791, true }, - { 329812, true }, + { 329799, true }, + { 329816, true }, { 329826, true }, - { 329836, true }, - { 329843, true }, - { 329854, true }, - { 329864, true }, - { 329874, true }, - { 329884, true }, - { 329897, true }, - { 329908, true }, - { 329916, true }, - { 329925, true }, - { 329945, true }, - { 329968, true }, - { 329976, true }, - { 329989, true }, - { 330002, false }, - { 330009, true }, - { 330022, true }, - { 330034, true }, - { 330044, true }, - { 330053, true }, - { 330065, true }, - { 330075, true }, - { 330085, true }, - { 330093, true }, - { 330110, true }, - { 330120, true }, - { 330129, true }, - { 330136, true }, - { 330146, true }, + { 329835, true }, + { 329842, true }, + { 329852, true }, }; From bf4c9dc83198bb1c425469e09b26bad52ddc8711 Mon Sep 17 00:00:00 2001 From: ffxbld <> Date: Tue, 20 Jun 2017 08:47:01 -0700 Subject: [PATCH 105/106] No bug, Automated HPKP preload list update from host bld-linux64-spot-301 - a=hpkp-update --- security/manager/ssl/StaticHPKPins.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/security/manager/ssl/StaticHPKPins.h b/security/manager/ssl/StaticHPKPins.h index acf6d3dbd86b..2b8ea292d926 100644 --- a/security/manager/ssl/StaticHPKPins.h +++ b/security/manager/ssl/StaticHPKPins.h @@ -1161,4 +1161,4 @@ static const TransportSecurityPreload kPublicKeyPinningPreloadList[] = { static const int32_t kUnknownId = -1; -static const PRTime kPreloadPKPinsExpirationTime = INT64_C(1506353719976000); +static const PRTime kPreloadPKPinsExpirationTime = INT64_C(1506440646180000); From 1d31d7e220b70e099acad6797543ef8ae20d7dd1 Mon Sep 17 00:00:00 2001 From: ffxbld <> Date: Tue, 20 Jun 2017 08:47:04 -0700 Subject: [PATCH 106/106] No bug, Automated blocklist update from host bld-linux64-spot-301 - a=blocklist-update --- browser/app/blocklist.xml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/browser/app/blocklist.xml b/browser/app/blocklist.xml index faa30d94ae88..892ecfd6274b 100644 --- a/browser/app/blocklist.xml +++ b/browser/app/blocklist.xml @@ -2344,6 +2344,11 @@ https://get.adobe.com/reader/ + + + https://get.adobe.com/flashplayer/ + + https://get.adobe.com/reader/ @@ -2653,6 +2658,11 @@ https://get.adobe.com/flashplayer/ + + + https://get.adobe.com/flashplayer/ + +