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

Prevent listeners from getting added more than once #3350

Merged
merged 1 commit into from
May 8, 2020
Merged

Conversation

bluemarvin
Copy link
Contributor

STR:

  1. Visit https://yts.mx/movie/theeb-2014
  2. Click on page to spawn ad
  3. Close ad with tab view and select https://yts.mx/movie/theeb-2014 tab
  4. Reload page and click on page to spawn new add

Actual:
Spawned ad tab fails to load

Expected:
Spawned ad tab loads

Cause:
The Window.java SessionChangeListener was getting added multiple times so when a new tab was added it got called twice and on the second call, it was disabling the new session since it had already been set.

@bluemarvin bluemarvin added this to the #10 features milestone May 8, 2020
@bluemarvin bluemarvin requested a review from keianhzo May 8, 2020 00:21
@bluemarvin bluemarvin self-assigned this May 8, 2020
Copy link
Contributor

@keianhzo keianhzo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've been testing and works good. Just nits.

@bluemarvin bluemarvin merged commit 7233172 into master May 8, 2020
@bluemarvin bluemarvin deleted the listener-bug branch May 8, 2020 15:53
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants