Bug 1177011 - Ignore restarting the same content observer in EventStateManager; r=masayuki

This commit is contained in:
Jim Chen 2015-07-06 09:54:04 -04:00
parent cb155dcae8
commit 0bf9d84044

View File

@ -455,6 +455,9 @@ void
EventStateManager::OnStartToObserveContent(
IMEContentObserver* aIMEContentObserver)
{
if (mIMEContentObserver == aIMEContentObserver) {
return;
}
ReleaseCurrentIMEContentObserver();
mIMEContentObserver = aIMEContentObserver;
}