AprilSylph / XKit-Rewritten

🧰 The enhancement suite for Tumblr's new web interface
GNU General Public License v3.0
274 stars 44 forks source link

Warn about unloaded/updated extension errors in Chromium #1486

Closed marcustyphoon closed 5 days ago

marcustyphoon commented 3 weeks ago

Description

Adds a line to the "extension context invalidated" error message shown when Chromium has autoupdated the extension but the current tab has not been refreshed since the autoupdate. (Unlike Firefox tabs, Chromium tabs in this state act as though the extension has simply been disabled.)

I would rather have something like #451, but that would necessitate more discussion over whether we want to do that and, as a simplest possible solution, a setInterval that checks for the property. If we always imported storage calls from a util I'd put it there, but we don't.

Testing steps

a)

b)

c)

d)