gecko-dev/browser/extensions/screenshots
Drew Willcoxon bf444589fe Bug 1483033 - Pass correct startup and shutdown reasons to screenshots's embedded webextension. r=_6a68
`webExtension` in bootstrap.js's `start` and `stop` functions is an `EmbeddedExtension`, and `startupReason` and the `reason` argument passed to `stop` is a numeric reason.  `EmbeddedExtension.startup` and `shutdown` take string reasons, not numeric reasons, contrary to their jsdocs.

Also, we can use `AddonManagerPrivate` instead of hardcoding `APP_STARTUP` and `APP_SHUTDOWN`.

This patch fixes bug 1483033.

Differential Revision: https://phabricator.services.mozilla.com/D6114

--HG--
extra : moz-landing-system : lando
2018-09-20 21:58:44 +00:00
..
test/browser Bug 1466575 - Re-enable Screenshots WebExtension page action for Firefox 64; r=ianbicking 2018-09-12 02:22:00 +00:00
webextension Bug 1466575 - Re-enable Screenshots WebExtension page action for Firefox 64; r=ianbicking 2018-09-12 02:22:00 +00:00
bootstrap.js Bug 1483033 - Pass correct startup and shutdown reasons to screenshots's embedded webextension. r=_6a68 2018-09-20 21:58:44 +00:00
install.rdf Bug 1465581 - Export Screenshots 33.0.0 to Firefox (code excluding translations and Raven update); r=ianbicking,_6a68 2018-06-18 11:07:23 -05:00
moz.build Bug 1465581 - Export Screenshots 33.0.0 to Firefox (code excluding translations and Raven update); r=ianbicking,_6a68 2018-06-18 11:07:23 -05:00