getlantern / browsersunbounded

Interoperable browser-based P2P proxies for censorship circumvention
GNU General Public License v3.0
11 stars 0 forks source link

chrome and firefox app store release auto updates #124

Closed woodybury closed 1 year ago

woodybury commented 1 year ago

chrome and firefox extensions currently only auto update after a browser relaunch. See slack thread discussion: https://wdynhnkxvsdx.slack.com/archives/C03NL32FWQL/p1678193221407199. This is because we are running a persistent background process that the browser respects over updating.

PR fixes this by listening for an update available and then reloading the extension.

It waits a random time within the next hour to apply the update. This is to avoid all clients disconnecting and reconnecting at the same time.