mozilla-rally / rally-web-platform

Mozilla Public License 2.0
5 stars 5 forks source link

Fixing isExtensionConnected (partly) #593

Closed thomik-corp closed 2 years ago

thomik-corp commented 2 years ago

Edge case of uninstalling an extension still remains Fixes (partly): https://github.com/mozilla-rally/rally-web-platform/issues/577

rhelmer commented 2 years ago

Edge case of uninstalling an extension still remains Fixes (partly): #577

@thomik-corp does this mean that the website doesn't react (without a refresh)?

If so yes this is difficult because the browser doesn't really get a reliable message, the only two approaches I know of are:

  1. there are some tricks we can do with CSS that will allow us to detect on the site if the extension is unloaded
  2. the extension can open a URL on uninstall, that we could handle on the backend to update the user's account (which the website could then react to)

I think (2) is going to be easier to understand and implement, and we want some backend handling of uninstalls for analytics anyway.