Bug 716868. r=philikon
authorGregory Szorc <gps@mozilla.com>
Tue, 10 Jan 2012 11:21:07 -0800
changeset 85368 2d10d554b08c49b1b5f4454a2d5503fed1a784ac
parent 85367 0fdae7529dfbe6c899e5eb823769420b8a25ed71
child 85369 14385cbb4131675f2f0427c03390fd59e7ff6292
push id805
push userakeybl@mozilla.com
push dateWed, 01 Feb 2012 18:17:35 +0000
treeherdermozilla-aurora@6fb3bf232436 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersphilikon
bugs716868
milestone12.0a1
Bug 716868. r=philikon
browser/base/content/syncUtils.js
--- a/browser/base/content/syncUtils.js
+++ b/browser/base/content/syncUtils.js
@@ -192,17 +192,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);