41-52: Rename 'onStudyEnded' to 'onNormandyStudyEnded' needs consistent with 66.
66-74: Use as is, after rename. This is the standard event firing pattern.
82-90: The actual work. Listen for onNormandyStudyEnded.
Future: @mythmon adds the 'reason' or 'options' flag for the reason (about:studies, vs normandy pull-back). This will affect:
71: () => fire.sync() becomes (stuff) => fire.sync(stuff)
83: becomes: browser.study.onStudyEnded.addListener((stuff) => { // and then react to stuff.
https://searchfox.org/mozilla-central/source/toolkit/components/normandy/test/unit/test_addon_unenroll.js
41-52: Rename 'onStudyEnded' to 'onNormandyStudyEnded' needs consistent with 66. 66-74: Use as is, after rename. This is the standard event firing pattern. 82-90: The actual work. Listen for onNormandyStudyEnded.
Future: @mythmon adds the 'reason' or 'options' flag for the reason (about:studies, vs normandy pull-back). This will affect:
71: () => fire.sync() becomes (stuff) => fire.sync(stuff) 83: becomes: browser.study.onStudyEnded.addListener((stuff) => { // and then react to stuff.