You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With the release of v1.0.1 to Firefox, I'm seeing various reports that the features silently stop working until you refresh/open a new tab. Reports include the radar hiding tweak, hide my own posts on the dash tweak, possibly No Recommended sidebar hide...
Unfortunately, to my knowledge, all of these work fine when you simply toggle the extension off and on in Firefox; hopefully this isn't impossible to reproduce in development. If it is possible to reproduce in development, we can probably(?) fix it. For example, maybe the script element used to initialize the main world handlers needs to not have type: module or something, since module scripts don't get executed for side effects multiple times. Ah, damn, that's probably it, isn't it.
(Wait... I guess one can just reproduce this by installling the 1.0.0 xpi, opening Tumblr, then firing the update in a new tab. Nice. How one can test a fix, I'm not so sure.)
The text was updated successfully, but these errors were encountered:
marcustyphoon
changed the title
Investigate on-update behavior in Firefox (again)
Investigate and improve on-update behavior in Firefox (again)
Jul 18, 2024
Aside: Oh, hey, toggling the extension duplicates the Quote Replies action button. Only the new one works, since we attach the listener directly to the element, so it's not like a check that a button already exists would help in this case; we need to remove it.
Perhaps we should add element.dataset.xkitRewritten = ''; to the dom util and just get rid of everything, not just buildStyle style elements, on boot. Clutters the dev tools, though.
Concept
With the release of v1.0.1 to Firefox, I'm seeing various reports that the features silently stop working until you refresh/open a new tab. Reports include the radar hiding tweak, hide my own posts on the dash tweak, possibly No Recommended sidebar hide...
Unfortunately, to my knowledge, all of these work fine when you simply toggle the extension off and on in Firefox; hopefully this isn't impossible to reproduce in development. If it is possible to reproduce in development, we can probably(?) fix it. For example, maybe the script element used to initialize the main world handlers needs to not have
type: module
or something, since module scripts don't get executed for side effects multiple times. Ah, damn, that's probably it, isn't it.(Wait... I guess one can just reproduce this by installling the 1.0.0 xpi, opening Tumblr, then firing the update in a new tab. Nice. How one can test a fix, I'm not so sure.)
The text was updated successfully, but these errors were encountered: