[Pale-Moon] Remove unnecessary (and interfering) code for tabbed privacy preferences category.

Follow-up to 0a124f1ccbde384a5e74cf85d782155210e1111f
This commit is contained in:
Moonchild 2021-07-02 20:11:52 +00:00 • committed by roytam1
commit 3fa9719166
2 changed files with 0 additions and 30 deletions

View file

@ -19,22 +19,9 @@ var gPrivacyPane = {
/**
* Sets up the UI for the number of days of history to keep, and updates the
* label of the "Clear Now..." button.
* Also restores the previously selected tab or tab index passed as argument.
*/
init: function()
{
this._inited = true;
var privacyPrefs = document.getElementById("privacyPrefs");
var extraArgs = window.arguments[1];
if (extraArgs && extraArgs["privacyTab"]){
privacyPrefs.selectedTab = document.getElementById(extraArgs["privacyTab"]);
} else {
var preference = document.getElementById("browser.preferences.privacy.selectedTabIndex");
if (preference.value !== null)
privacyPrefs.selectedIndex = preference.value;
}
this._updateSanitizeSettingsButton();
this.initializeHistoryMode();
this.updateHistoryModePane();
@ -42,19 +29,6 @@ var gPrivacyPane = {
this.initAutoStartPrivateBrowsingReverter();
},
/**
* Stores the identity of the current tab in preferences so that the selected
* tab can be persisted between openings of the preferences window.
*/
tabSelectionChanged: function()
{
if (!this._inited)
return;
var privacyPrefs = document.getElementById("privacyPrefs");
var preference = document.getElementById("browser.preferences.privacy.selectedTabIndex");
preference.valueFromPreferences = privacyPrefs.selectedIndex;
},
// HISTORY MODE
/**

View file

@ -22,10 +22,6 @@
<preferences id="privacyPreferences">
<preference id="browser.preferences.privacy.selectedTabIndex"
name="browser.preferences.privacy.selectedTabIndex"
type="int"/>
<!-- Tracking -->
<preference id="privacy.donottrackheader.enabled"
name="privacy.donottrackheader.enabled"