-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Bugfix FXIOS-29068 [Telemetry] Fix missing homepage.viewed telemetry when opening new tab from toolbar. #30176
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
…when opening new tab from toolbar. Removed a guard condition that prevented the didSelectedTabChangeToHomepage action from firing if the user navigated to the homepage from a non-homepage tab. This change ensures that the homepage.viewed telemetry impression is correctly recorded when a new tab is created via the "+" toolbar button, regardless of the previous tab's content.
|
|
|
Hiii @cyndichin 😊 could you please take a look at this once you’re done reviewing my other PR? Thanks so much! 🙏 |
|
hi @PARAIPAN9 😊 can you please take a look at this ? |
|
How did I miss this. Sorry @Rinwaoluwa for taking too long to review your PR. I'll let @cyndichin review it as it seems she has some context around this issue. |
|
@Rinwaoluwa apologies for the delay, I fell ill towards the end of last week. Taking a look now! |
|
@Rinwaoluwa thanks for looking into this, the issue is that if we remove that guard then we get the issue that the homepage viewed telemetry will be reported twice in other cases such as launching the app. Here are some cases that we want to make sure are also reporting properly with any fix that we add:
|
|
also tagging @Foxbolts as he is the reference person for this ticket |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for taking this on, requesting changes based on comment here.
|
This pull request has conflicts when rebasing. Could you fix it @Rinwaoluwa? 🙏 |
📜 Tickets
Jira ticket
Github issue
💡 Description
Fixes missing
homepage.viewedtelemetry events when users create a new tab using the "+" toolbar button while viewing a regular webpage.Closes #29068
Problem
The
updateEmbeddedContentmethod contained a guard condition that prevented thedidSelectedTabChangeToHomepageaction from being dispatched unless the previous tab was also a homepage:Comented out the guard condition that prevented the didSelectedTabChangeToHomepage action from firing if the user navigated to the homepage from a non-homepage tab. This change ensures that the homepage.viewed telemetry impression is correctly recorded when a new tab is created via the "+" toolbar button, regardless of the previous tab's content.
🎥 Demos
Demo
📝 Checklist