зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
cc8b1ac579
Коммит
0ebf029026
|
@ -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.
|
||||
*
|
||||
|
|
Загрузка…
Ссылка в новой задаче