зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
51bc2fd37b
Коммит
ab795dc2ba
|
@ -4438,6 +4438,10 @@ public class GeckoSession implements Parcelable {
|
|||
ThreadUtils.assertOnUiThread();
|
||||
}
|
||||
|
||||
if (!mAttachedCompositor) {
|
||||
return;
|
||||
}
|
||||
|
||||
mCompositorReady = true;
|
||||
|
||||
if (mController != null) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче