зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1194014 - Fix erroneous resource lookup and potential element overwrite. r=jya
This commit is contained in:
Родитель
98b7a907e8
Коммит
6e8ed1ecdd
|
@ -461,7 +461,7 @@ AndroidMediaResourceServer::AddResource(mozilla::MediaResource* aResource, nsCSt
|
|||
MutexAutoLock lock(mMutex);
|
||||
|
||||
// Adding a resource URL that already exists is considered an error.
|
||||
if (mResources.find(aUrl) != mResources.end()) return NS_ERROR_FAILURE;
|
||||
if (mResources.find(url) != mResources.end()) return NS_ERROR_FAILURE;
|
||||
mResources[url] = aResource;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче