Skip to content
This repository has been archived by the owner on Jan 17, 2023. It is now read-only.

Shutdown the embedded webExtension when bootstrap is asked to shutdown #2712

Merged
merged 1 commit into from
Apr 19, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions addon/bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,13 @@ function startup(data, reason) { // eslint-disable-line no-unused-vars

function shutdown(data, reason) { // eslint-disable-line no-unused-vars
prefObserver.unregister();
const webExtension = LegacyExtensionsUtils.getEmbeddedExtensionFor({
id: ADDON_ID,
resourceURI: addonResourceURI
});
if (webExtension.started) {
stop(webExtension);
}
}

function install(data, reason) {} // eslint-disable-line no-unused-vars
Expand Down