diff --git a/application/basilisk/app/profile/basilisk.js b/application/basilisk/app/profile/basilisk.js index 75d8ce2738..d26ca939ce 100644 --- a/application/basilisk/app/profile/basilisk.js +++ b/application/basilisk/app/profile/basilisk.js @@ -941,10 +941,6 @@ pref("services.sync.prefs.sync.browser.link.open_newwindow", true); pref("services.sync.prefs.sync.browser.newtabpage.enabled", true); pref("services.sync.prefs.sync.browser.newtabpage.pinned", true); pref("services.sync.prefs.sync.browser.offline-apps.notify", true); -#ifdef MOZ_SAFE_BROWSING -pref("services.sync.prefs.sync.browser.safebrowsing.phishing.enabled", true); -pref("services.sync.prefs.sync.browser.safebrowsing.malware.enabled", true); -#endif pref("services.sync.prefs.sync.browser.search.update", true); pref("services.sync.prefs.sync.browser.sessionstore.restore_on_demand", true); pref("services.sync.prefs.sync.browser.startup.homepage", true); @@ -989,8 +985,6 @@ pref("services.sync.prefs.sync.privacy.clearOnShutdown.sessions", true); pref("services.sync.prefs.sync.privacy.clearOnShutdown.siteSettings", true); pref("services.sync.prefs.sync.privacy.donottrackheader.enabled", true); pref("services.sync.prefs.sync.privacy.sanitize.sanitizeOnShutdown", true); -pref("services.sync.prefs.sync.privacy.trackingprotection.enabled", true); -pref("services.sync.prefs.sync.privacy.trackingprotection.pbmode.enabled", true); pref("services.sync.prefs.sync.security.OCSP.enabled", true); pref("services.sync.prefs.sync.security.OCSP.require", true); pref("services.sync.prefs.sync.security.default_personal_cert", true); @@ -1201,12 +1195,6 @@ pref("browser.cache.frecency_experiment", -1); // Enable GMP support in the addon manager. pref("media.gmp-provider.enabled", true); -#ifdef NIGHTLY_BUILD -pref("privacy.trackingprotection.ui.enabled", true); -#else -pref("privacy.trackingprotection.ui.enabled", false); -#endif - // Enable Contextual Identity Containers #ifdef NIGHTLY_BUILD pref("privacy.userContext.enabled", true); diff --git a/application/basilisk/base/content/blockedSite.xhtml b/application/basilisk/base/content/blockedSite.xhtml deleted file mode 100644 index 10a4b33e84..0000000000 --- a/application/basilisk/base/content/blockedSite.xhtml +++ /dev/null @@ -1,196 +0,0 @@ - - - - %htmlDTD; - - %globalDTD; - - %brandDTD; - - %blockedSiteDTD; -]> - - - - -
- - - - - - - -&safeb.blocked.phishingPage.shortDesc2;
-&safeb.blocked.malwarePage.shortDesc;
-&safeb.blocked.unwantedPage.shortDesc;
-&safeb.blocked.phishingPage.longDesc2;
-&safeb.blocked.malwarePage.longDesc;
-&safeb.blocked.unwantedPage.longDesc;
-&aboutPrivateBrowsing.info.notsaved.before;&aboutPrivateBrowsing.info.notsaved.emphasize;&aboutPrivateBrowsing.info.notsaved.after;
@@ -63,18 +60,6 @@&trackingProtection.description2;
-&aboutPrivateBrowsing.learnMore2; &aboutPrivateBrowsing.learnMore2.title;. diff --git a/application/basilisk/confvars.sh b/application/basilisk/confvars.sh index 7175957f73..7fcbb1a703 100644 --- a/application/basilisk/confvars.sh +++ b/application/basilisk/confvars.sh @@ -57,7 +57,6 @@ MOZ_DEVTOOLS=1 MOZ_SERVICES_COMMON=1 MOZ_SERVICES_SYNC=1 MOZ_SERVICES_HEALTHREPORT= -MOZ_SAFE_BROWSING= MOZ_GAMEPAD=1 MOZ_AV1=1 diff --git a/application/basilisk/installer/package-manifest.in b/application/basilisk/installer/package-manifest.in index 97119a537a..2a7f52d8c0 100644 --- a/application/basilisk/installer/package-manifest.in +++ b/application/basilisk/installer/package-manifest.in @@ -557,19 +557,9 @@ @RESPATH@/browser/modules/* @RESPATH@/modules/* -#ifdef MOZ_URL_CLASSIFIER -; Safe Browsing -@RESPATH@/components/nsURLClassifier.manifest -@RESPATH@/components/nsUrlClassifierHashCompleter.js -@RESPATH@/components/nsUrlClassifierListManager.js -@RESPATH@/components/nsUrlClassifierLib.js -@RESPATH@/components/url-classifier.xpt -#endif - ; Private Browsing @RESPATH@/components/privatebrowsing.xpt @RESPATH@/components/PrivateBrowsing.manifest -@RESPATH@/components/PrivateBrowsingTrackingProtectionWhitelist.js ; ANGLE GLES-on-D3D rendering library #ifdef MOZ_ANGLE_RENDERER diff --git a/application/basilisk/locales/en-US/chrome/browser/aboutPrivateBrowsing.dtd b/application/basilisk/locales/en-US/chrome/browser/aboutPrivateBrowsing.dtd index ccb0d297f4..bcf9189f27 100644 --- a/application/basilisk/locales/en-US/chrome/browser/aboutPrivateBrowsing.dtd +++ b/application/basilisk/locales/en-US/chrome/browser/aboutPrivateBrowsing.dtd @@ -25,7 +25,3 @@ - - - - diff --git a/application/basilisk/locales/en-US/chrome/browser/browser.dtd b/application/basilisk/locales/en-US/chrome/browser/browser.dtd index 044fd303b7..e6517603fb 100644 --- a/application/basilisk/locales/en-US/chrome/browser/browser.dtd +++ b/application/basilisk/locales/en-US/chrome/browser/browser.dtd @@ -726,33 +726,6 @@ you can use these alternative items. Otherwise, their values should be empty. - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/application/basilisk/locales/en-US/chrome/browser/browser.properties b/application/basilisk/locales/en-US/chrome/browser/browser.properties index f59429cd34..572c976a19 100644 --- a/application/basilisk/locales/en-US/chrome/browser/browser.properties +++ b/application/basilisk/locales/en-US/chrome/browser/browser.properties @@ -331,9 +331,6 @@ identity.identified.state_and_country=%S, %S identity.icon.tooltip=Show site information -trackingProtection.icon.activeTooltip=Tracking attempts blocked -trackingProtection.icon.disabledTooltip=Tracking content detected - # Edit Bookmark UI editBookmarkPanel.pageBookmarkedTitle=Page Bookmarked editBookmarkPanel.pageBookmarkedDescription=%S will always remember this page for you. diff --git a/application/basilisk/locales/en-US/chrome/browser/preferences/donottrack.dtd b/application/basilisk/locales/en-US/chrome/browser/preferences/donottrack.dtd deleted file mode 100644 index 781fb53cd5..0000000000 --- a/application/basilisk/locales/en-US/chrome/browser/preferences/donottrack.dtd +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - diff --git a/application/basilisk/locales/en-US/chrome/browser/preferences/preferences.properties b/application/basilisk/locales/en-US/chrome/browser/preferences/preferences.properties index 84fac427d4..7a63ad220d 100644 --- a/application/basilisk/locales/en-US/chrome/browser/preferences/preferences.properties +++ b/application/basilisk/locales/en-US/chrome/browser/preferences/preferences.properties @@ -19,8 +19,6 @@ acceptVeryLargeMinimumFont=Keep my changes anyway #### Permissions Manager -trackingprotectionpermissionstext=You have disabled Tracking Protection on these sites. -trackingprotectionpermissionstitle=Exceptions - Tracking Protection cookiepermissionstext=You can specify which websites are always or never allowed to store cookies and site data. Type the exact address of the site you want to manage and then click Block, Allow for Session, or Allow. cookiepermissionstitle=Exceptions - Cookies and Site Data addonspermissionstext=You can specify which websites are allowed to install add-ons. Type the exact address of the site you want to allow and then click Allow. diff --git a/application/basilisk/locales/en-US/chrome/browser/preferences/privacy.dtd b/application/basilisk/locales/en-US/chrome/browser/preferences/privacy.dtd index f743c4040f..e69151878d 100644 --- a/application/basilisk/locales/en-US/chrome/browser/preferences/privacy.dtd +++ b/application/basilisk/locales/en-US/chrome/browser/preferences/privacy.dtd @@ -3,34 +3,9 @@ - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> -#ifdef MOZ_SAFE_BROWSING - - - - - - - - - - - - - - - - - - - - - - -#else -#endif diff --git a/application/basilisk/locales/en-US/chrome/browser/safebrowsing/phishing-afterload-warning-message.dtd b/application/basilisk/locales/en-US/chrome/browser/safebrowsing/phishing-afterload-warning-message.dtd deleted file mode 100644 index 33d2202b32..0000000000 --- a/application/basilisk/locales/en-US/chrome/browser/safebrowsing/phishing-afterload-warning-message.dtd +++ /dev/null @@ -1,32 +0,0 @@ - - - - - - - - - - - - - has been reported as an attack page and has been blocked based on your security preferences."> -Attack pages try to install programs that steal private information, use your computer to attack others, or damage your system.
Some attack pages intentionally distribute harmful software, but many are compromised without the knowledge or permission of their owners.
"> - - - - has been reported to contain unwanted software and has been blocked based on your security preferences."> -Unwanted software pages try to install software that can be deceptive and affect your system in unexpected ways."> - - - - has been reported as a deceptive site and has been blocked based on your security preferences."> -Deceptive sites are designed to trick you into doing something dangerous, like installing software, or revealing your personal information, like passwords, phone numbers or credit cards.Entering any information on this web page may result in identity theft or other fraud.
"> - diff --git a/application/basilisk/locales/en-US/chrome/browser/safebrowsing/report-phishing.dtd b/application/basilisk/locales/en-US/chrome/browser/safebrowsing/report-phishing.dtd deleted file mode 100644 index 7444bcbf37..0000000000 --- a/application/basilisk/locales/en-US/chrome/browser/safebrowsing/report-phishing.dtd +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - diff --git a/application/basilisk/locales/jar.mn b/application/basilisk/locales/jar.mn index 89adb988b6..80c956c1d0 100644 --- a/application/basilisk/locales/jar.mn +++ b/application/basilisk/locales/jar.mn @@ -48,10 +48,6 @@ locale/browser/places/bookmarkProperties.properties (%chrome/browser/places/bookmarkProperties.properties) locale/browser/preferences/selectBookmark.dtd (%chrome/browser/preferences/selectBookmark.dtd) locale/browser/places/moveBookmarks.dtd (%chrome/browser/places/moveBookmarks.dtd) -#ifdef MOZ_SAFE_BROWSING - locale/browser/safebrowsing/phishing-afterload-warning-message.dtd (%chrome/browser/safebrowsing/phishing-afterload-warning-message.dtd) - locale/browser/safebrowsing/report-phishing.dtd (%chrome/browser/safebrowsing/report-phishing.dtd) -#endif locale/browser/feeds/subscribe.dtd (%chrome/browser/feeds/subscribe.dtd) locale/browser/feeds/subscribe.properties (%chrome/browser/feeds/subscribe.properties) locale/browser/migration/migration.dtd (%chrome/browser/migration/migration.dtd) @@ -59,16 +55,10 @@ locale/browser/preferences/advanced.dtd (%chrome/browser/preferences/advanced.dtd) locale/browser/preferences/applicationManager.dtd (%chrome/browser/preferences/applicationManager.dtd) locale/browser/preferences/applicationManager.properties (%chrome/browser/preferences/applicationManager.properties) -#ifdef MOZ_SAFE_BROWSING - locale/browser/preferences/blocklists.dtd (%chrome/browser/preferences/blocklists.dtd) -#endif locale/browser/preferences/colors.dtd (%chrome/browser/preferences/colors.dtd) locale/browser/preferences/cookies.dtd (%chrome/browser/preferences/cookies.dtd) locale/browser/preferences/content.dtd (%chrome/browser/preferences/content.dtd) locale/browser/preferences/connection.dtd (%chrome/browser/preferences/connection.dtd) -#ifdef MOZ_SAFE_BROWSING - locale/browser/preferences/donottrack.dtd (%chrome/browser/preferences/donottrack.dtd) -#endif locale/browser/preferences/applications.dtd (%chrome/browser/preferences/applications.dtd) locale/browser/preferences/fonts.dtd (%chrome/browser/preferences/fonts.dtd) locale/browser/preferences/main.dtd (%chrome/browser/preferences/main.dtd) diff --git a/application/basilisk/themes/shared/incontentprefs/preferences.inc.css b/application/basilisk/themes/shared/incontentprefs/preferences.inc.css index 21c4fdcce6..62de54cff1 100644 --- a/application/basilisk/themes/shared/incontentprefs/preferences.inc.css +++ b/application/basilisk/themes/shared/incontentprefs/preferences.inc.css @@ -236,8 +236,6 @@ treecol { /* Privacy pane */ -#trackingProtectionPBMLearnMore, -#trackingProtectionLearnMore, #browserContainersLearnMore { margin-inline-start: 1.5em !important; margin-top: 0; diff --git a/application/basilisk/tools/mozscreenshots/mozscreenshots/extension/configurations/ControlCenter.jsm b/application/basilisk/tools/mozscreenshots/mozscreenshots/extension/configurations/ControlCenter.jsm index 1201ed6923..e9c98ae369 100644 --- a/application/basilisk/tools/mozscreenshots/mozscreenshots/extension/configurations/ControlCenter.jsm +++ b/application/basilisk/tools/mozscreenshots/mozscreenshots/extension/configurations/ControlCenter.jsm @@ -183,40 +183,6 @@ this.ControlCenter = { }), }, - trackingProtectionNoElements: { - applyConfig: Task.async(function* () { - Services.prefs.setBoolPref("privacy.trackingprotection.enabled", true); - - yield loadPage(HTTP_PAGE); - yield openIdentityPopup(); - }), - }, - - trackingProtectionEnabled: { - applyConfig: Task.async(function* () { - Services.prefs.setBoolPref("privacy.trackingprotection.enabled", true); - yield UrlClassifierTestUtils.addTestTrackers(); - - yield loadPage(TRACKING_PAGE); - yield openIdentityPopup(); - }), - }, - - trackingProtectionDisabled: { - applyConfig: Task.async(function* () { - let browserWindow = Services.wm.getMostRecentWindow("navigator:browser"); - let gBrowser = browserWindow.gBrowser; - Services.prefs.setBoolPref("privacy.trackingprotection.enabled", true); - yield UrlClassifierTestUtils.addTestTrackers(); - - yield loadPage(TRACKING_PAGE); - yield openIdentityPopup(); - // unblock the page - gBrowser.ownerGlobal.document.querySelector("#tracking-action-unblock").click(); - yield BrowserTestUtils.browserLoaded(gBrowser.selectedBrowser, false, TRACKING_PAGE); - yield openIdentityPopup(); - }), - }, }, }; diff --git a/application/palemoon/components/nsBrowserGlue.js b/application/palemoon/components/nsBrowserGlue.js index 055fb40575..958475a29e 100644 --- a/application/palemoon/components/nsBrowserGlue.js +++ b/application/palemoon/components/nsBrowserGlue.js @@ -1284,7 +1284,7 @@ BrowserGlue.prototype = { }, _migrateUI: function() { - const UI_VERSION = 24; + const UI_VERSION = 26; const BROWSER_DOCURL = "chrome://browser/content/browser.xul#"; let currentUIVersion = 0; try { @@ -1558,6 +1558,14 @@ BrowserGlue.prototype = { Services.prefs.clearUserPref("dom.abortController.enabled"); } + if (currentUIVersion < 26) { + // DoNotTrack is now GPC. Carry across user preference. + if (Services.prefs.prefHasUserValue("privacy.donottrackheader.enabled")) { + let DNTEnabled = Services.prefs.getBoolPref("privacy.donottrackheader.enabled"); + Services.prefs.setBoolPref("privacy.GPCheader.enabled", DNTEnabled); + Services.prefs.clearUserPref("privacy.donottrackheader.enabled"); + } + } // Clear out dirty storage if (this._dirty) { diff --git a/application/palemoon/components/preferences/privacy.xul b/application/palemoon/components/preferences/privacy.xul index 50b89f1620..e5175422dc 100644 --- a/application/palemoon/components/preferences/privacy.xul +++ b/application/palemoon/components/preferences/privacy.xul @@ -22,9 +22,9 @@