Actually, does Chrome?
Or only internal API counts?
Looking at the docs: The extension service worker lifecycle | Chrome Extensions | Chrome for Developers
Events and calls to extension APIs reset these timers, and if the service worker has gone dormant, an incoming event will revive them.
MDN doesn’t mention (at least I can’t see it) what will prevent killing event page: Background scripts - Mozilla | MDN