diff options
author | wolfbeast <mcwerewolf@gmail.com> | 2018-04-20 16:09:04 +0200 |
---|---|---|
committer | wolfbeast <mcwerewolf@gmail.com> | 2018-04-20 16:09:04 +0200 |
commit | eb64fb02b6bf678b3633b09d3e6c253c9783d717 (patch) | |
tree | 16444575f3b2e081338926098364ac1250e8f6ea /toolkit | |
parent | 877167cf267f75ac68f1a18091f7e9a00bd94303 (diff) | |
download | UXP-eb64fb02b6bf678b3633b09d3e6c253c9783d717.tar UXP-eb64fb02b6bf678b3633b09d3e6c253c9783d717.tar.gz UXP-eb64fb02b6bf678b3633b09d3e6c253c9783d717.tar.lz UXP-eb64fb02b6bf678b3633b09d3e6c253c9783d717.tar.xz UXP-eb64fb02b6bf678b3633b09d3e6c253c9783d717.zip |
Make the Mark of the Web preference applicable to all applications.
Follow-up to #215.
Diffstat (limited to 'toolkit')
-rw-r--r-- | toolkit/components/jsdownloads/src/DownloadIntegration.jsm | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/toolkit/components/jsdownloads/src/DownloadIntegration.jsm b/toolkit/components/jsdownloads/src/DownloadIntegration.jsm index 38b89ae8e..7439d9d11 100644 --- a/toolkit/components/jsdownloads/src/DownloadIntegration.jsm +++ b/toolkit/components/jsdownloads/src/DownloadIntegration.jsm @@ -530,7 +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"); @@ -560,23 +559,6 @@ this.DownloadIntegration = { default: // Invalid pref value defaults marking files. return true; } -#else - 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; - } -#endif }, #endif |