Open Bug 1757480 Opened 3 years ago Updated 1 year ago

ensure terminateBackground can only be used at appropriate times

Categories

(WebExtensions :: General, task, P3)

task

Tracking

(Not tracked)

People

(Reporter: mixedpuppy, Unassigned)

References

Details

(Whiteboard: [addons-jira])

terminateBackground is used by the idle timeout to shutdown the background script. It is also used directly in some tests that were developed early in the event page work. It currently awaits a startup promise.

It is likely that we need to ensure it cannot be used if the background is not running. Scenarios would be any path that uses terminateBackground that is not the idle timeout. e.g. developer ui to test background termination.

Secondary, we need to make sure terminateBackground is not re-entrant since it calls onSuspend.

Summary: ensure terminateBackground cannot be called when there is no background → ensure terminateBackground can only be used at apropriate times
Severity: -- → N/A
Summary: ensure terminateBackground can only be used at apropriate times → ensure terminateBackground can only be used at appropriate times
Type: enhancement → task
Priority: P2 → P3
You need to log in before you can comment on or make changes to this bug.