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

Commit 9b9d7c6

Browse files
authored
Prevent duplicated setActive(false) calls (#3376)
1 parent ff61feb commit 9b9d7c6

File tree

1 file changed

+6
-0
lines changed
  • app/src/common/shared/org/mozilla/vrbrowser/browser/engine

1 file changed

+6
-0
lines changed

app/src/common/shared/org/mozilla/vrbrowser/browser/engine/Session.java

+6
Original file line numberDiff line numberDiff line change
@@ -767,6 +767,12 @@ public void goForward() {
767767
}
768768

769769
public void setActive(boolean aActive) {
770+
if (!aActive && mState.mSession != null && !mState.isActive()) {
771+
// Prevent duplicated setActive(false) calls. There is a GV
772+
// bug that makes the session not to be resumed correctly.
773+
// See https://github.com/MozillaReality/FirefoxReality/issues/3375.
774+
return;
775+
}
770776
// Flush the events queued while the session was inactive
771777
if (mState.mSession != null && !mState.isActive() && aActive) {
772778
flushQueuedEvents();

0 commit comments

Comments
 (0)