mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 526316 - ClearWatch should not throw when given bad input. r=olli
--HG-- extra : rebase_source : a8829e12d26ad0793017a70b96f77c647afb2771
This commit is contained in:
parent
db59e0fe7f
commit
f2594937d2
@ -925,7 +925,7 @@ nsGeolocation::ClearWatch(PRInt32 aWatchId)
|
||||
{
|
||||
PRUint32 count = mWatchingCallbacks.Length();
|
||||
if (aWatchId < 0 || count == 0 || aWatchId > count)
|
||||
return NS_ERROR_FAILURE;
|
||||
return NS_OK;
|
||||
|
||||
mWatchingCallbacks[aWatchId]->MarkCleared();
|
||||
return NS_OK;
|
||||
|
Loading…
Reference in New Issue
Block a user