Bug 1735299 - Remove last use of unnammed NS_ReleaseOnMainThread r=extension-reviewers,rpl,nhnt11

Differential Revision: https://phabricator.services.mozilla.com/D128177
This commit is contained in:
Valentin Gosu 2021-10-19 13:44:25 +00:00
Родитель cc8b1ac579
Коммит 0ebf029026
2 изменённых файлов: 2 добавлений и 8 удалений

Просмотреть файл

@ -155,7 +155,8 @@ class ExtensionListenerCallWorkerRunnable : public dom::WorkerRunnable {
private:
~ExtensionListenerCallWorkerRunnable() {
NS_ReleaseOnMainThread(mPromiseResult.forget());
NS_ReleaseOnMainThread("~ExtensionListenerCallWorkerRunnable",
mPromiseResult.forget());
ReleaseArgsHolder();
mListener = nullptr;
}

Просмотреть файл

@ -185,13 +185,6 @@ inline NS_HIDDEN_(void)
NS_ProxyRelease(aName, target, doomed.forget(), aAlwaysProxy);
}
template <class T>
inline NS_HIDDEN_(void) NS_ReleaseOnMainThread(already_AddRefed<T> aDoomed,
bool aAlwaysProxy = false) {
NS_ReleaseOnMainThread("NS_ReleaseOnMainThread", std::move(aDoomed),
aAlwaysProxy);
}
/**
* Class to safely handle main-thread-only pointers off the main thread.
*