Currently in MV3, Chrome supports Service worker while Firefox & Safari opted for Event pages.
SW in MV3 is discarded and then restarted and all variables are reinitialised.
- What happens to variables in event pages?
- Do they have to be recreated every time the event fires (within event callback)?
- What are the practical differences between SW & EP in extension development?