Bug 445503 crashes.xhtml incorrectly overrides the crash reporter data directory for Thunderbird. r=ted

This commit is contained in:
Mark Banner 2008-07-16 15:51:16 +01:00
parent 3f1c7b431b
commit 37326663f4
2 changed files with 1 additions and 16 deletions

View File

@ -8,11 +8,6 @@
%crashesDTD;
]>
#ifdef MOZ_THUNDERBIRD
#ifdef XP_MACOSX
#define FORCE_DIR
#endif
#endif
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<style type="text/css">
@ -101,17 +96,7 @@ function populateReportList() {
var directoryService = Cc["@mozilla.org/file/directory_service;1"].
getService(Ci.nsIProperties);
#ifdef FORCE_DIR
var app = Cc["@mozilla.org/xre/app-info;1"].
getService(Ci.nsIXULAppInfo);
// Doesn't appear to be a key for the app support directory
reportsDir = directoryService.get("ULibDir", Ci.nsIFile);
reportsDir.append("Application Support");
reportsDir.append(app.name);
#else
reportsDir = directoryService.get("UAppData", Ci.nsIFile);
#endif
reportsDir.append("Crash Reports");
reportsDir.append("submitted");

View File

@ -1,2 +1,2 @@
toolkit.jar:
*+ content/global/crashes.xhtml (content/crashes.xhtml)
content/global/crashes.xhtml (content/crashes.xhtml)