Hello!
I’ve done some research and determined that there is no way to detect when browser is closing. And my question is why? Are there certain reasons or browser developers just think it’s not important API?
I’ve seen windows.onRemoved
that not calls on last window, and some other ugly workarounds that are not working.
My extension should do all useful stuff before closing browser. The extension pointless without this. And this cannot be done when browser is launched or at any other point in time. Only before closing.
I’m very sad about this situation, and really don’t understand why such API isn’t provided.
Deep in my heart, I hope that there is still a solution. I don’t want to abandon the extension just because of this.