Наши волонтёры ещё не перевели данную статью на Русский. Присоединяйтесь к нам и помогите сделать эту работу!
Вы можете также прочитать эту статью на English (US).
There may be occasions where you want to retire one of your extensions. This article suggests the steps you might want to follow, as well as offering some pointers to a suitable timeline.
Reasons for withdrawing an extension
There are two main reasons why you might want to end-of-life your extension:
- you plan to remove support for a product or service. In this case, you’ll want to remove the extension from browsers when support ceases.
- you're replacing the extension with a new one, which isn't a direct upgrade. In this case, you'll want to encourage existing users to install the new extension, before you remove the old extension from browsers.
Steps to retiring an extension
When you want to withdraw an extension, considered taking the following steps:
- Devise a timetable for your extension’s end-of-life
Consider including the following steps in a timetable for withdrawing your extension:
- publish your extension’s end-of-life timetable, including an explanation of why you're retiring your extension.
- publish an update that removes installed copies of your extension.
- make the extension unavailable for new installs, by making its AMO listing invisible.
- Publish advice that you're planning to end-of-life your extension
Consider the following options to advise people of your intention to take down your extension:
- update your extension’s AMO page with its end-of-life timetable.
- if your extension is being superseded by another, provide a link to the new extension. You could use
management.onInstalledto listen for installation of the new extension to trigger the removal of the original extension using
- communicate the timetable through social media, forums, or where possible by email.
- Publish a final, self-removing version of your extension
management.uninstallSelfto cause your extension to uninstall itself. Before it does, provide a notice reminding the user about the removal of the extension. If your extension is being superseded by another, remember to provide a reminder about the link to the new extension. You might offer the user the option to remove the extension now or in a few days time.
- Make your AMO listing invisible to prevent new installs
To hide your extension’s AMO listing:
- open your extension’s listing in AMO.
- from the sidebar menu, open Manage Status & Versions.
- In the Listing Visibility section, click Invisible.
Your hidden extension will not be available either to a search of AMO or an attempt to access it directly using the page’s AMO URL.
Suggested retirement timetable
There is no ideal period between publication of your end-of-life timetable and the removal of your extension from users’ browsers. In setting the timetable, you might wish to consider:
- if you’re not providing a replacement extension, you could consider a relatively short notice period, perhaps a couple of weeks.
- if you’re replacing the extension with an alternative version, you may wish to provide a longer notice period, with regular reminders about the new extension. In this case, you might want to leave weeks or months between the initial end-of-life advice and the final removal of installed copies.
When you’ve started retiring the extension, use the active user statistics on AMO to fine-tune your timing. For example, if the number of active users isn't declining significantly you may want to delay deploying your extension’s final version and send out a reminder about your plans. To access the active user statistics, open your extension in the AMO Developer Hub and click View Statistics Dashboard on the shortcut menu.