зеркало из https://github.com/mozilla/pjs.git
Bug 189307 typeahead initializes sound when it's uninitialized instead of if it's unitialized and there's a sound to play
r=caillon sr=roc
This commit is contained in:
Родитель
339f3e4e20
Коммит
ec947f1f25
|
@ -610,7 +610,7 @@ nsTypeAheadFind::KeyPress(nsIDOMEvent* aEvent)
|
||||||
return NS_OK;
|
return NS_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!mIsSoundInitialized) {
|
if (!mIsSoundInitialized && !mNotFoundSoundURL.IsEmpty()) {
|
||||||
// This makes sure system sound library is loaded so that
|
// This makes sure system sound library is loaded so that
|
||||||
// there's no lag before the first sound is played
|
// there's no lag before the first sound is played
|
||||||
// by waiting for the first keystroke, we still get the startup time benefits.
|
// by waiting for the first keystroke, we still get the startup time benefits.
|
||||||
|
|
Загрузка…
Ссылка в новой задаче