Skip to content

Commit

Permalink
Do not send unstack callbacks for child sessions (MozillaReality#2588)
Browse files Browse the repository at this point in the history
  • Loading branch information
keianhzo authored and Alexandre Lissy committed Jan 21, 2020
1 parent 90156be commit 3aa8c4c
Showing 1 changed file with 1 addition and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public class Session implements ContentBlocking.Delegate, GeckoSession.Navigatio
private transient CopyOnWriteArrayList<GeckoSession.SelectionActionDelegate> mSelectionActionListeners;

private SessionState mState;
private CopyOnWriteArrayList<Runnable> mQueuedCalls = new CopyOnWriteArrayList<>();
private transient CopyOnWriteArrayList<Runnable> mQueuedCalls = new CopyOnWriteArrayList<>();
private transient GeckoSession.PermissionDelegate mPermissionDelegate;
private transient GeckoSession.PromptDelegate mPromptDelegate;
private transient GeckoSession.HistoryDelegate mHistoryDelegate;
Expand Down Expand Up @@ -1472,16 +1472,6 @@ public void onActiveStateChange(Session aSession, boolean aActive) {
}
}

@Override
public void onStackSession(Session aSession) {
if (aSession.equals(this)) {
return;
}
for (SessionChangeListener listener : mSessionChangeListeners) {
listener.onStackSession(aSession);
}
}

// Display functions
public void releaseDisplay() {
surfaceDestroyed();
Expand Down

0 comments on commit 3aa8c4c

Please sign in to comment.