Bug 738589 Avoid JavaScript strict warning by not explicitly passing the default value in r=gavin
authorNeil Rashbrook <neil@parkwaycc.co.uk>
Mon, 02 Apr 2012 00:02:01 +0100
changeset 94115 ba43d5d6a6c300f6ba1c0eb21cd0df6483728434
parent 94114 0e959c772e5fa7d3285d8c9eb1456dee19ce4964
child 94116 447ede53509a3930d1ba5ecaa891af2b01460bed
push id886
push userlsblakk@mozilla.com
push dateMon, 04 Jun 2012 19:57:52 +0000
treeherdermozilla-beta@bbd8d5efd6d1 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgavin
bugs738589
milestone14.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 738589 Avoid JavaScript strict warning by not explicitly passing the default value in r=gavin
toolkit/components/viewsource/content/viewSourceUtils.js
--- a/toolkit/components/viewsource/content/viewSourceUtils.js
+++ b/toolkit/components/viewsource/content/viewSourceUtils.js
@@ -279,17 +279,17 @@ var gViewSourceUtils = {
           // openInExternalEditor gave us
           this.file = gViewSourceUtils.getTemporaryFile(this.data.uri, this.data.doc, 
                                                         this.data.doc.contentType);
 
           // we have to convert from the source charset.
           var webNavigation = this.webShell.QueryInterface(Components.interfaces.nsIWebNavigation);
           var foStream = Components.classes["@mozilla.org/network/file-output-stream;1"]
                                    .createInstance(Components.interfaces.nsIFileOutputStream);
-          foStream.init(this.file, 0x02 | 0x08 | 0x20, 0664, 0); // write | create | truncate
+          foStream.init(this.file, 0x02 | 0x08 | 0x20, -1, 0); // write | create | truncate
           var coStream = Components.classes["@mozilla.org/intl/converter-output-stream;1"]
                                    .createInstance(Components.interfaces.nsIConverterOutputStream);
           coStream.init(foStream, this.data.doc.characterSet, 0, null);
 
           // write the source to the file
           coStream.writeString(webNavigation.document.body.textContent);
           
           // clean up