Skip to content

Commit

Permalink
Fix deadlock when managing tabs with library panel open (#2891)
Browse files Browse the repository at this point in the history
  • Loading branch information
MortimerGoro committed Feb 27, 2020
1 parent 33a3d6b commit 13ca6fe
Showing 1 changed file with 8 additions and 2 deletions.
Expand Up @@ -1585,8 +1585,14 @@ public void onFirstContentfulPaint(@NonNull GeckoSession session) {
mUIThreadExecutor.execute(mFirstDrawCallback);
mFirstDrawCallback = null;
mAfterFirstPaint = true;
mSetViewQueuedCalls.forEach(Runnable::run);
mSetViewQueuedCalls.clear();
// view queue calls need to be delayed to avoid a deadlock
// caused by GeckoSession.syncResumeResizeCompositor()
// See: https://github.com/MozillaReality/FirefoxReality/issues/2889
mUIThreadExecutor.execute(() -> {
mSetViewQueuedCalls.forEach(Runnable::run);
mSetViewQueuedCalls.clear();
});

}
}

Expand Down

0 comments on commit 13ca6fe

Please sign in to comment.