[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,41 +19,15 @@ var gPrivacyPane = {
/** /**
* Sets up the UI for the number of days of history to keep, and updates the * Sets up the UI for the number of days of history to keep, and updates the
* label of the "Clear Now..." button. * label of the "Clear Now..." button.
* Also restores the previously selected tab or tab index passed as argument.
*/ */
init: function() 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._updateSanitizeSettingsButton();
this.initializeHistoryMode(); this.initializeHistoryMode();
this.updateHistoryModePane(); this.updateHistoryModePane();
this.updatePrivacyMicroControls(); this.updatePrivacyMicroControls();
this.initAutoStartPrivateBrowsingReverter(); 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 // HISTORY MODE

View file

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