зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1537726 - Further clean up the regex for legacy homepage reset. r=r1cky
Differential Revision: https://phabricator.services.mozilla.com/D24333 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
87d12705bc
Коммит
613a14f509
|
@ -2593,7 +2593,7 @@ BrowserGlue.prototype = {
|
|||
const DEFAULT = Services.prefs.getDefaultBranch(HOMEPAGE_PREF).getCharPref("");
|
||||
let value = Services.prefs.getCharPref(HOMEPAGE_PREF);
|
||||
let updated = value.replace(
|
||||
/https?:\/\/([\w\-]+[.])?start[\d]*\.mozilla\.(org|com)[^|]*/ig, DEFAULT);
|
||||
/https?:\/\/([\w\-]+\.)?start\d*\.mozilla\.(org|com)[^|]*/ig, DEFAULT);
|
||||
if (updated != value) {
|
||||
if (updated == DEFAULT) {
|
||||
Services.prefs.clearUserPref(HOMEPAGE_PREF);
|
||||
|
|
Загрузка…
Ссылка в новой задаче