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
Родитель a63940638a
Коммит 7781039f3b
2 изменённых файлов: 1 добавлений и 16 удалений

Просмотреть файл

@ -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");

Просмотреть файл

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