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

Add missing bootstrap.js lifecycle functions #2350

Conversation

jaredhirsch
Copy link
Member

Fixes #2340.

@@ -7,8 +7,8 @@ function startup(data, reason) {
});
}

function install() {
}
function shutdown(data, reason) {}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Q: Do we need to remove the listener that we added in startup() above during one of these lifecycle functions?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good question. That's not covered in the MDN docs for embedded webextensions, and to do so, we'd have to close over the browser object. I'm not sure if that's a good idea or not.

There are some bugs filed (#2332, #2333) around handling prefs to disable/enable the webextension, so maybe we can figure out the runtime.onMessage listener question there?

@dannycoates dannycoates merged commit 1d19fe4 into mozilla-services:master Mar 10, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants