Skip to content
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

Badge count fails to update upon navigating to homepage/new tab page #2423

Closed
FudgeFury opened this issue Jul 25, 2019 · 6 comments · Fixed by #2454
Closed

Badge count fails to update upon navigating to homepage/new tab page #2423

FudgeFury opened this issue Jul 25, 2019 · 6 comments · Fixed by #2454
Labels

Comments

@FudgeFury
Copy link

Please look at the attached screenshots.

I have noticed that when I go into a website and then back to my default FireFox homepage, the tracker icon number bade does not update. If I open a new tab (I.E. start fresh), it goes back to its default state.

1
2
3
4
5

@ghostwords
Copy link
Member

Hello and thanks for the report! Just to be clear, this is all using the same tab in the same window, right? I can reproduce now in both Firefox and Chrome. Navigating back in history to the new tab page does not update the badge. Navigating back to a non-new tab page does seem to update the badge.

@ghostwords ghostwords added bug help wanted ui User interface modifications; related to but not the same as the "ux" label labels Jul 25, 2019
@ghostwords ghostwords changed the title Icon number not updating Badge count fails to update upon navigating back in history to homepage/new tab page Jul 25, 2019
@FudgeFury
Copy link
Author

FudgeFury commented Jul 25, 2019 via email

@ghostwords ghostwords changed the title Badge count fails to update upon navigating back in history to homepage/new tab page Badge count fails to update upon navigating to homepage/new tab page Jul 25, 2019
@ghostwords
Copy link
Member

Looks like tracker data shown in the popup (which comes from the tabData object) doesn't get updated either. So the underlying issue is probably that we reset tabData for a tab upon an onBeforeRequest event for the "main_frame" of the page, but we don't get this event for new tab pages (I think ... needs confirmation). This seems related to #1997/#2198.

@FudgeFury
Copy link
Author

FudgeFury commented Jul 25, 2019 via email

@ghostwords
Copy link
Member

Sure, once a Privacy Badger developer or a volunteer gets to working on this bug.

@ghostwords
Copy link
Member

@ablanathtanalba We should probably fix this with a chrome.webNavigation listener that takes care of updating tab data.

The underlying problem here is that the way we reset tab data now (chrome.webRequest.onBeforeRequest with type "main_frame") doesn't happen sometimes (when there is no actual Web request: going to an about:/chrome: page, returning to a Service Worker page that returns cached data, ...).

On the other hand, chrome.webNavigation should always fire upon navigation. One question is whether we will still need tab data resetting upon onBeforeRequest/"main_frame", but we should be able to answer that experimentally.

@ghostwords ghostwords removed the ui User interface modifications; related to but not the same as the "ux" label label Aug 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants