Hi, this seems an old topic, but seems still has no good answer today.
The "management" permission can detect the onDisable event correctly, but it is from another extension.
Is it feasible if I want to detect disable from my own extension?
I tried this code
```
chrome.management.onDisabled.addListener(function(info){
chrome.tabs.create({
});
});
chrome.management.onEnabled.addListener(function(info){
chrome.tabs.create({
});
});
```
When I disable the extension, the tab is not created, but when I re-enable the extension, the tab is created. So I guess when the extension is disabled, the entire service worker is disabled immediately, and all its tasks get abandoned as well?
On the other hand, the Chrome WebStore can detect the extension disabled or enabled. How does CWS achieve it? Is it a CWS special privilege or my own website can do the same thing?
Thank you!