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

Bug: Web app crashes on updateFavicon #1141

Closed
sbishel opened this issue Aug 31, 2021 · 4 comments · Fixed by #1185
Closed

Bug: Web app crashes on updateFavicon #1141

sbishel opened this issue Aug 31, 2021 · 4 comments · Fixed by #1185
Assignees
Labels
Bug Something isn't working QA Verified Bug fix tested and verified by QA
Milestone

Comments

@sbishel
Copy link
Collaborator

sbishel commented Aug 31, 2021

Summary:
Seeing a couple crashes related to favicon updating today on community-daily. Seem to happen when I click into some channels/threads but not sure of exact repro steps. Anyone else seeing it or have an idea what might cause it?

Steps to reproduce the behavior:

  1. Go to any channel.
  2. Click global header, and open focalboard for that channel.
  3. Open a card.
  4. Click the back button 2 times to go back to original channel.
  5. Observe crash

OR

  1. Having some mentions in Channels so the favicon has the red dot
  2. Open a board and add a personal tasks view which will change the favicon
  3. Switch back to channels and read all the mentions to cause it to try to change the favicon
  4. Crash

Expected behavior:
Able to change back to channels without crash

Screenshots:
Screen Shot 2021-08-12 at 10 01 25 AM
Screen Shot 2021-08-12 at 11 30 39 AM

Additional context:
Original Jira Ticket
https://mattermost.atlassian.net/browse/MM-37924

@sbishel sbishel added the Bug Something isn't working label Aug 31, 2021
@sbishel
Copy link
Collaborator Author

sbishel commented Aug 31, 2021

Per original Jira ticket -

This is happening because Focalboard removes the link tags in the HTML that the web app uses to control the favicon (link), so after viewing Focalboard, any attempt to update the favicon from the web app side causes a crash (link.) I think Focalboard needs to be updated to restore those when it’s closed, or we need to change both apps to use the same mechanism for setting the favicon.

@sbishel sbishel added this to the v0.9 milestone Aug 31, 2021
@chenilim
Copy link
Contributor

Unless someone has strong opinions, I propose just disabling the Focalboard favicon code when running as a plugin. The favicon is currently used to communicate if a user has unread messages, and in the long run that should be consistent.

In any case, agree this needs to be fixed for 0.9 / 6.0. cc @asaadmahmood, @jespino.

@asaadmahmood
Copy link
Contributor

Disabling it makes sense to me @chenilim

@ogi-m
Copy link
Contributor

ogi-m commented Sep 15, 2021

Verified on RC11 - Mattermost icon is now shown in Boards

@ogi-m ogi-m added the QA Verified Bug fix tested and verified by QA label Sep 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working QA Verified Bug fix tested and verified by QA
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants