mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-08 08:48:39 +09:00
Make the Mark of the Web preference applicable to all applications.
Follow-up to #215.
This commit is contained in:
parent
5698472fee
commit
5a65d056d2
1 changed files with 0 additions and 18 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue