зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1466846 - Enabling addon should set homepage override. r=kmag
MozReview-Commit-ID: G9cfRuQjyGb --HG-- extra : rebase_source : b3fa8c4277b8ac36fe23e108e5b934a853c70bc2
This commit is contained in:
Родитель
da61445198
Коммит
047b517cdd
|
@ -185,7 +185,8 @@ this.chrome_settings_overrides = class extends ExtensionAPI {
|
|||
|
||||
if (homepageUrl) {
|
||||
let inControl;
|
||||
if (extension.startupReason == "ADDON_INSTALL") {
|
||||
if (extension.startupReason == "ADDON_INSTALL" ||
|
||||
extension.startupReason == "ADDON_ENABLE") {
|
||||
inControl = await ExtensionPreferencesManager.setSetting(
|
||||
extension.id, "homepage_override", homepageUrl);
|
||||
} else {
|
||||
|
|
Загрузка…
Ссылка в новой задаче