# WebExtension is shut down every few minutes with manifest V3

**URL:** <https://discourse.mozilla.org/t/webextension-is-shut-down-every-few-minutes-with-manifest-v3/108515>\
**Category:** Development\
**Created:** [December 6, 2022, 5:30am UTC](https://discourse.mozilla.org/t/webextension-is-shut-down-every-few-minutes-with-manifest-v3/108515 "2022-12-06T05:30:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Diamanti](https://avatars.discourse-cdn.com/v4/letter/d/b2d939/32.png) [@Diamanti](https://discourse.mozilla.org/u/Diamanti)\
**Post date:** [December 6, 2022, 5:30am UTC](https://discourse.mozilla.org/t/webextension-is-shut-down-every-few-minutes-with-manifest-v3/108515/1 "2022-12-06T05:30:45Z")

</div>

WebExtension is shut down every few minutes with manifest V3.  
I use host.tabs.onCreated.addListener to fire it.  
How avoid to shut down?

---

<div class="post-metadata">

**Author:** ![juraj.masiar](https://sea1.discourse-cdn.com/flex001/user_avatar/discourse.mozilla.org/juraj.masiar/32/30587_2.png) [@juraj.masiar](https://discourse.mozilla.org/u/juraj.masiar)\
**Post date:** [December 6, 2022, 7:37am UTC](https://discourse.mozilla.org/t/webextension-is-shut-down-every-few-minutes-with-manifest-v3/108515/2 "2022-12-06T07:37:38Z")

</div>

There are no persistent background scripts anymore in the MV3.  
So your background script will be shut down after few seconds of inactivity and than re-executed when some event listener fires:

> **[Manifest V3 migration guide](https://extensionworkshop.com/documentation/develop/manifest-v3-migration-guide/#event-driven-background-dscripts)**
>
> Get help creating & publishing Firefox extensions.

---

<div class="post-metadata">

**Author:** ![ComputerWhiz](https://sea1.discourse-cdn.com/flex001/user_avatar/discourse.mozilla.org/computerwhiz/32/20011_2.png) [@ComputerWhiz](https://discourse.mozilla.org/u/ComputerWhiz)\
**Post date:** [December 6, 2022, 12:12pm UTC](https://discourse.mozilla.org/t/webextension-is-shut-down-every-few-minutes-with-manifest-v3/108515/3 "2022-12-06T12:12:32Z")

</div>

This is the biggest reason why I think Manifest V3 was not ready for launch. There are a lot of features, like ports, that no longer work correctly because they depend on the persistence of the background script.
