зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1411803 - ensure MediaCache is deleted on the main thread. r=gerald
MozReview-Commit-ID: 4JzTyyPF1uT --HG-- extra : rebase_source : 5ea6f6636c531a59dd303809c2124757aed6b5d4 extra : source : ef39a9de8d4e36776b97277e74007ceed86e3c89
This commit is contained in:
Родитель
f4e9c0dd96
Коммит
0f871ec228
|
@ -26,6 +26,7 @@
|
|||
#include "nsIPrincipal.h"
|
||||
#include "nsISeekableStream.h"
|
||||
#include "nsPrintfCString.h"
|
||||
#include "nsProxyRelease.h"
|
||||
#include "nsThreadUtils.h"
|
||||
#include "prio.h"
|
||||
#include <algorithm>
|
||||
|
@ -1537,6 +1538,10 @@ public:
|
|||
NS_IMETHOD Run() override
|
||||
{
|
||||
mMediaCache->Update();
|
||||
// Ensure MediaCache is deleted on the main thread.
|
||||
NS_ProxyRelease("UpdateEvent::mMediaCache",
|
||||
SystemGroup::EventTargetFor(mozilla::TaskCategory::Other),
|
||||
mMediaCache.forget());
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче