summaryrefslogtreecommitdiffstats
path: root/toolkit/components
diff options
context:
space:
mode:
authorMoonchild <mcwerewolf@gmail.com>2018-04-20 15:52:48 +0200
committerGitHub <noreply@github.com>2018-04-20 15:52:48 +0200
commit27af68f2793185ae05252f5467429d614f7a55b4 (patch)
treeeea0a4a53e503d3a2706c7cda2753749c719c877 /toolkit/components
parent954b1888d2da049878b36034ca7d7f1f1dce6538 (diff)
parentf5c377092c2685625d36fdcede15567800a4d52c (diff)
downloadUXP-27af68f2793185ae05252f5467429d614f7a55b4.tar
UXP-27af68f2793185ae05252f5467429d614f7a55b4.tar.gz
UXP-27af68f2793185ae05252f5467429d614f7a55b4.tar.lz
UXP-27af68f2793185ae05252f5467429d614f7a55b4.tar.xz
UXP-27af68f2793185ae05252f5467429d614f7a55b4.zip
Merge pull request #216 from MoonchildProductions/revert-215-pm_zone-information_1
Revert "[PALEMOON] Reimplemented "Time Zone Information""
Diffstat (limited to 'toolkit/components')
-rw-r--r--toolkit/components/jsdownloads/src/DownloadIntegration.jsm32
1 files changed, 0 insertions, 32 deletions
diff --git a/toolkit/components/jsdownloads/src/DownloadIntegration.jsm b/toolkit/components/jsdownloads/src/DownloadIntegration.jsm
index 38b89ae8e..1c30599f5 100644
--- a/toolkit/components/jsdownloads/src/DownloadIntegration.jsm
+++ b/toolkit/components/jsdownloads/src/DownloadIntegration.jsm
@@ -530,37 +530,6 @@ this.DownloadIntegration = {
* @return true if files should be marked
*/
_shouldSaveZoneInformation() {
-#ifdef MC_PALEMOON
- let zonePref = 2;
- try {
- zonePref = Services.prefs.getIntPref("browser.download.saveZoneInformation");
- } catch (ex) {}
-
- switch (zonePref) {
- case 0: // Never
- return false;
- case 1: // Always
- return true;
- case 2: // System-defined
- let key = Cc["@mozilla.org/windows-registry-key;1"]
- .createInstance(Ci.nsIWindowsRegKey);
- try {
- key.open(Ci.nsIWindowsRegKey.ROOT_KEY_CURRENT_USER,
- "Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\Attachments",
- Ci.nsIWindowsRegKey.ACCESS_QUERY_VALUE);
- try {
- return key.readIntValue("SaveZoneInformation") != 1;
- } finally {
- key.close();
- }
- } catch (ex) {
- // If the key is not present, files should be marked by default.
- return true;
- }
- default: // Invalid pref value defaults marking files.
- return true;
- }
-#else
let key = Cc["@mozilla.org/windows-registry-key;1"]
.createInstance(Ci.nsIWindowsRegKey);
try {
@@ -576,7 +545,6 @@ this.DownloadIntegration = {
// If the key is not present, files should be marked by default.
return true;
}
-#endif
},
#endif