From 5359706e7ab5d164748786aa2fd040eca52ed5f3 Mon Sep 17 00:00:00 2001 From: JustOff Date: Mon, 3 Sep 2018 21:15:53 +0300 Subject: Update 'browser.newtab.url' when it's used for new tabs and 'browser.startup.homepage' changes --- application/palemoon/components/preferences/jar.mn | 1 + .../palemoon/components/preferences/main.xul | 7 ++- .../palemoon/components/preferences/newtaburl.js | 66 ++++++++++++++++++++++ .../components/preferences/preferences.xul | 4 +- .../palemoon/components/preferences/tabs.js | 49 ---------------- .../palemoon/components/preferences/tabs.xul | 2 +- 6 files changed, 74 insertions(+), 55 deletions(-) create mode 100644 application/palemoon/components/preferences/newtaburl.js (limited to 'application/palemoon') diff --git a/application/palemoon/components/preferences/jar.mn b/application/palemoon/components/preferences/jar.mn index 2e2949306..47909ddc9 100644 --- a/application/palemoon/components/preferences/jar.mn +++ b/application/palemoon/components/preferences/jar.mn @@ -24,6 +24,7 @@ browser.jar: content/browser/preferences/languages.js * content/browser/preferences/main.xul content/browser/preferences/main.js + content/browser/preferences/newtaburl.js content/browser/preferences/permissions.xul * content/browser/preferences/permissions.js * content/browser/preferences/preferences.xul diff --git a/application/palemoon/components/preferences/main.xul b/application/palemoon/components/preferences/main.xul index 7634056eb..bb51947b0 100644 --- a/application/palemoon/components/preferences/main.xul +++ b/application/palemoon/components/preferences/main.xul @@ -96,6 +96,7 @@ type="autocomplete" autocompletesearch="history" onsyncfrompreference="return gMainPane.syncFromHomePref();" onsynctopreference="return gMainPane.syncToHomePref(this.value);" + oninput="gNewtabUrl.writeNewtabUrl(null, this.value);" placeholder="&abouthome.pageTitle;" preference="browser.startup.homepage"/> @@ -103,15 +104,15 @@