mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 968634: Fix broken inequality comparison in SpeechRecognition.cpp. r=ggp
This commit is contained in:
parent
061e267b32
commit
7e00bbe6c2
@ -696,7 +696,7 @@ SpeechRecognition::SetServiceURI(const nsAString& aArg, ErrorResult& aRv)
|
||||
void
|
||||
SpeechRecognition::Start(ErrorResult& aRv)
|
||||
{
|
||||
if (!mCurrentState == STATE_IDLE) {
|
||||
if (mCurrentState != STATE_IDLE) {
|
||||
aRv.Throw(NS_ERROR_DOM_INVALID_STATE_ERR);
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user