Skip to content
This repository was archived by the owner on Jul 22, 2024. It is now read-only.

Commit 13ca6fe

Browse files
authored
Fix deadlock when managing tabs with library panel open (#2891)
1 parent 33a3d6b commit 13ca6fe

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

app/src/common/shared/org/mozilla/vrbrowser/ui/widgets/WindowWidget.java

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1585,8 +1585,14 @@ public void onFirstContentfulPaint(@NonNull GeckoSession session) {
15851585
mUIThreadExecutor.execute(mFirstDrawCallback);
15861586
mFirstDrawCallback = null;
15871587
mAfterFirstPaint = true;
1588-
mSetViewQueuedCalls.forEach(Runnable::run);
1589-
mSetViewQueuedCalls.clear();
1588+
// view queue calls need to be delayed to avoid a deadlock
1589+
// caused by GeckoSession.syncResumeResizeCompositor()
1590+
// See: https://github.com/MozillaReality/FirefoxReality/issues/2889
1591+
mUIThreadExecutor.execute(() -> {
1592+
mSetViewQueuedCalls.forEach(Runnable::run);
1593+
mSetViewQueuedCalls.clear();
1594+
});
1595+
15901596
}
15911597
}
15921598

0 commit comments

Comments
 (0)