Closed Bug 743382 Opened 13 years ago Closed 13 years ago

make loader independent of system and unload modules

Categories

(Add-on SDK Graveyard :: General, defect, P1)

x86
macOS
defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: irakli, Unassigned)

References

Details

Attachments

(1 file)

At the moment cuddlefish depends on: 'api-utils/system' and 'api-utils/unload' modules in order to provide a way for listening load & unload events: https://addons.mozilla.org/en-US/developers/docs/sdk/latest/dev-guide/tutorials/load-and-unload.html For a long time all of this functionality had a much better alternative and I think it's time to deprecate this API as it also get's into the way of landing loader to firefox. I would suggest to change documentation https://github.com/mozilla/addon-sdk/blob/master/doc/dev-guide-source/tutorials/load-and-unload.md to outline alternatives. And implement `deprecated/load-unload` module that will be only loaded if add-on has `exports.main` and `main.onUnload` with appropriate warnings outlining better alternatives. Also unload module can be notified about add-on unload using observer service instead.
Priority: -- → P1
Attachment #615008 - Flags: review?(poirot.alex)
Comment on attachment 615008 [details] Pointer to Github pull request: https://github.com/mozilla/addon-sdk/pull/401 Looks good with very last fixup discussed on irc.
Attachment #615008 - Flags: review?(poirot.alex) → review+
Commit pushed to master at https://github.com/mozilla/addon-sdk https://github.com/mozilla/addon-sdk/commit/d292d75edf1a6aa747bb531b9a72033889566f21 Merge pull request #401 from Gozala/bug/independent-loader@743382 Bug 743382 - Make loader independent of other modules. r=@ochameau
Depends on: 748979
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: