Skip to content

Bugfix FXIOS-10584 - [Toolbar Redesign] 20+ new homepage tabs are opened when I try to open just one new tab#23253

Merged
PARAIPAN9 merged 1 commit intomainfrom
sparaipan/fxios-10584-20-new-homepage-tabs-are-opened-when-I-try-to-open-just-one-new-tab
Nov 20, 2024
Merged

Bugfix FXIOS-10584 - [Toolbar Redesign] 20+ new homepage tabs are opened when I try to open just one new tab#23253
PARAIPAN9 merged 1 commit intomainfrom
sparaipan/fxios-10584-20-new-homepage-tabs-are-opened-when-I-try-to-open-just-one-new-tab

Conversation

@PARAIPAN9
Copy link
Copy Markdown
Contributor

@PARAIPAN9 PARAIPAN9 commented Nov 20, 2024

📜 Tickets

Jira ticket
Github issue

💡 Description

  • After investigating, I've found out that the bug was caused by this PR that fixed FXIOS-10500. I'm not really 100% sure what was happening but we are dealing with references here and some kind of retain cycle was certainly occuring because after tapping the + (add new tab button) intermittently, 3, 4(a random number) of redux actions for opening a new tab were triggered.

  • While trying to find the cause of this bug, I found an even bigger memory leak for Toolbar Buttons that were never deallocated because self was captured in the action handler.

  • Reverting the change from the PR mentioned above and fixing the leak seemed to solve both problems. FXIOS-10500 and the one addressed in this PR.

Video

video.mov

📝 Checklist

You have to check all boxes before merging

  • Filled in the above information (tickets numbers and description of your work)
  • Updated the PR name to follow our PR naming guidelines
  • Wrote unit tests and/or ensured the tests suite is passing
  • When working on UI, I checked and implemented accessibility (minimum Dynamic Text and VoiceOver)
  • If needed, I updated documentation / comments for complex code and public methods
  • If needed, added a backport comment (example @Mergifyio backport release/v120)

@PARAIPAN9 PARAIPAN9 requested a review from a team as a code owner November 20, 2024 13:18
@PARAIPAN9 PARAIPAN9 changed the title Bugfix FXIOS-10584 - 20+ new homepage tabs are opened when I try to open just one new tab Bugfix FXIOS-10584 - [Toolbar Redesign] 20+ new homepage tabs are opened when I try to open just one new tab Nov 20, 2024
@mobiletest-ci-bot
Copy link
Copy Markdown

Messages
📖 Edited 2 files
📖 Created 0 files

Generated by 🚫 Danger Swift against e902c43

@PARAIPAN9
Copy link
Copy Markdown
Contributor Author

@Mergifyio backport release/v133

@mergify
Copy link
Copy Markdown
Contributor

mergify Bot commented Nov 20, 2024

backport release/v133

✅ Backports have been created

Details

@PARAIPAN9 PARAIPAN9 merged commit 2eeef55 into main Nov 20, 2024
@PARAIPAN9 PARAIPAN9 deleted the sparaipan/fxios-10584-20-new-homepage-tabs-are-opened-when-I-try-to-open-just-one-new-tab branch November 20, 2024 13:42
mergify Bot pushed a commit that referenced this pull request Nov 20, 2024
…ned when I try to open just one new tab (#23253)

Make self weak in the button action handler and remove code that checks for existing buttons

(cherry picked from commit 2eeef55)
DonalMe pushed a commit that referenced this pull request Nov 20, 2024
…ned when I try to open just one new tab (backport #23253) (#23258)

Bugfix FXIOS-10584 - [Toolbar Redesign] 20+ new homepage tabs are opened when I try to open just one new tab (#23253)

Make self weak in the button action handler and remove code that checks for existing buttons

(cherry picked from commit 2eeef55)

Co-authored-by: PARAIPAN SORIN <51127880+PARAIPAN9@users.noreply.github.com>
@mattreaganmozilla
Copy link
Copy Markdown
Collaborator

Nice work on this @PARAIPAN9 👍

@PARAIPAN9
Copy link
Copy Markdown
Contributor Author

Thanks @mattreaganmozilla, I appreciate it!!

clarmso pushed a commit that referenced this pull request Nov 25, 2024
…ned when I try to open just one new tab (#23253)

Make self weak in the button action handler and remove code that checks for existing buttons
isabelrios pushed a commit that referenced this pull request Dec 3, 2024
…ned when I try to open just one new tab (#23253)

Make self weak in the button action handler and remove code that checks for existing buttons
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants