summaryrefslogtreecommitdiff
path: root/toolkit/components/aboutmemory/content
diff options
context:
space:
mode:
Diffstat (limited to 'toolkit/components/aboutmemory/content')
-rw-r--r--toolkit/components/aboutmemory/content/aboutMemory.js14
1 files changed, 1 insertions, 13 deletions
diff --git a/toolkit/components/aboutmemory/content/aboutMemory.js b/toolkit/components/aboutmemory/content/aboutMemory.js
index 100228c4bb..1411c31204 100644
--- a/toolkit/components/aboutmemory/content/aboutMemory.js
+++ b/toolkit/components/aboutmemory/content/aboutMemory.js
@@ -2008,18 +2008,6 @@ function saveReportsToFile()
}
};
- try {
- fp.init(window, "Save Memory Reports", Ci.nsIFilePicker.modeSave);
- } catch (ex) {
- // This will fail on Android, since there is no Save as file picker there.
- // Just save to the default downloads dir if it does.
- Downloads.getSystemDownloadsDirectory().then(function(dirPath) {
- let file = FileUtils.File(dirPath);
- file.append(fp.defaultString);
- fpFinish(file);
- });
-
- return;
- }
+ fp.init(window, "Save Memory Reports", Ci.nsIFilePicker.modeSave);
fp.open(fpCallback);
}