Bug 1113791 - browser.bookmarks.autoExportHTML does not work r=Ratty a=Callek CLOSED TREE SEAMONKEY_2_32b3_BUILD1 SEAMONKEY_2_32b3_RELEASE
authorDmitry Groshev <wjaguar@users.sourceforge.net>
Wed, 24 Dec 2014 02:12:27 +0800
changeset 25594 4462b7b3777a313843f60f0653f7a68850881b2f
parent 25593 0c59a68dbe20e039ac698cfd10ef783582aa1e85
child 25595 aaa15cfe742e6e5db6f38395823f21d64506b526
child 25597 3f3212e3dfe5c8b2bdcd9eff38a0a483413078c6
push id1850
push userclokep@gmail.com
push dateWed, 08 Mar 2017 19:29:12 +0000
treeherdercomm-esr52@028df196b2d9 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersRatty, Callek
bugs1113791
Bug 1113791 - browser.bookmarks.autoExportHTML does not work r=Ratty a=Callek CLOSED TREE
suite/common/src/nsSuiteGlue.js
--- a/suite/common/src/nsSuiteGlue.js
+++ b/suite/common/src/nsSuiteGlue.js
@@ -879,17 +879,17 @@ SuiteGlue.prototype = {
       if (Services.prefs.getBoolPref("browser.bookmarks.autoExportHTML")) {
         // Exceptionally, since this is a non-default setting and HTML format is
         // discouraged in favor of the JSON backups, we spin the event loop on
         // shutdown, to wait for the export to finish.  We cannot safely spin
         // the event loop on shutdown until we include a watchdog to prevent
         // potential hangs (bug 518683).  The asynchronous shutdown operations
         // will then be handled by a shutdown service (bug 435058).
         var shutdownComplete = false;
-        BookmarkHTMLUtils.exportToFile(FileUtils.getFile("BMarks", [])).then(
+        BookmarkHTMLUtils.exportToFile(Services.dirsvc.get("BMarks", Components.interfaces.nsILocalFile)).then(
           function onSuccess() {
             shutdownComplete = true;
           },
           function onFailure() {
             // There is no point in reporting errors since we are shutting down.
             shutdownComplete = true;
           }
         );