Maybe you are using Manifest V3 (or event background page) and your background script is killed?
Although it shouldn’t do that if the toolbox console is opened…
So, you are using persistent background page, so there is no reason for the setInterval to be stopped.
Note that you can stop the interval also with the clearTimeout call:
It’s worth noting that the pool of IDs used by setTimeout() and setInterval() are shared, which means you can technically use clearTimeout() and clearInterval() interchangeably. However, for clarity, you should avoid doing so.
And lastly, you have “.ts” files in the manifest, is that some new native TypeScript support I don’t know about?
@jasonmz, the steps you describe are a bit too abstract to meaningfully investigate. Specifically, there isn’t an implicit relationship between a setInterval call in the background and a content script.
Can you provide the source for either the extension shown in the video or a demo extension that reproduces the behavior?