Skip to content

Commit

Permalink
Do not send unstack callbacks for child sessions (#2588)
Browse files Browse the repository at this point in the history
  • Loading branch information
keianhzo authored and bluemarvin committed Jan 4, 2020
1 parent 41d5d1f commit 72e04d1
Showing 1 changed file with 1 addition and 11 deletions.
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 72e04d1

Please sign in to comment.