Bug 1485809 - Fix race with compositor attachment r=geckoview-reviewers,droeh#geckoview-reviewers

We can receive GeckoSession.onCompositorDetached() before
GeckoSession.onCompositorReady() has run, so guard against this
by ensuring the compositor is attached in onCompositorReady().

Differential Revision: https://phabricator.services.mozilla.com/D16983

--HG--
extra : moz-landing-system : lando
This commit is contained in:
James Willcox 2019-01-23 16:31:08 +00:00
Родитель 51bc2fd37b
Коммит ab795dc2ba
1 изменённых файлов: 4 добавлений и 0 удалений

Просмотреть файл

@ -4438,6 +4438,10 @@ public class GeckoSession implements Parcelable {
ThreadUtils.assertOnUiThread();
}
if (!mAttachedCompositor) {
return;
}
mCompositorReady = true;
if (mController != null) {