mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-29 20:07:30 +09:00
[Pale-Moon] Remove unnecessary (and interfering) code for tabbed privacy preferences category.
Follow-up to 0a124f1ccbde384a5e74cf85d782155210e1111f
This commit is contained in:
parent
a5416d8087
commit
3fa9719166
2 changed files with 0 additions and 30 deletions
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue