Bug 717355 - Port bug 716868. r+a=Callek
authorJens Hatlak <jh@junetz.de>
Wed, 11 Jan 2012 21:51:36 +0100
changeset 10093 e1158a0f23b0fa7571cbb4523d35e6a63f50ad59
parent 10092 19f2edf25ef9ad622c87dcda61718850d9eab97d
child 10094 4326aa65d49a129bafd5477666f5c95317e35668
push idunknown
push userunknown
push dateunknown
bugs717355, 716868
Bug 717355 - Port bug 716868. r+a=Callek
suite/common/sync/syncUtils.js
--- a/suite/common/sync/syncUtils.js
+++ b/suite/common/sync/syncUtils.js
@@ -196,17 +196,17 @@ let gSyncUtils = {
       filepicker.init(window, dialogTitle, Ci.nsIFilePicker.modeSave);
       filepicker.appendFilters(Ci.nsIFilePicker.filterHTML);
       filepicker.defaultString = defaultSaveName;
       let rv = filepicker.show();
       if (rv == Ci.nsIFilePicker.returnOK
           || rv == Ci.nsIFilePicker.returnReplace) {
         let stream = Cc["@mozilla.org/network/file-output-stream;1"]
                        .createInstance(Ci.nsIFileOutputStream);
-        stream.init(filepicker.file, -1, -1, 0);
+        stream.init(filepicker.file, -1, 0600, 0);
 
         let serializer = new XMLSerializer();
         let output = serializer.serializeToString(iframe.contentDocument);
         output = output.replace(/<!DOCTYPE (.|\n)*?]>/,
           '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" ' +
           '"DTD/xhtml1-strict.dtd">');
         output = Weave.Utils.encodeUTF8(output);
         stream.write(output, output.length);