Closed Bug 365344 Opened 18 years ago Closed 17 years ago

crash reporter should save list of crash reports (pending and successfully submitted)

Categories

(Toolkit :: Crash Reporting, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: ted, Assigned: ted)

References

Details

Attachments

(1 file, 2 obsolete files)

Currently the crash reporter just attempts to submit a crash report when a crash happens.  It should save the crash report to a file in case it can't submit it at the present time, and be able to submit pending reports at a later date.  It should also save a list of submitted reports, as the current talkback client does.
Depends on: 368205
Summary: crash reporter should save list of crash reports → crash reporter should save list of crash reports (pending and successfully submitted)
Status: NEW → ASSIGNED
Assignee: nobody → ted.mielczarek
Status: ASSIGNED → NEW
Attached patch save list of crash reports (obsolete) — Splinter Review
This patch does a few things:
1) Creates a folder to store info in: %APPDATA%\Vendor\Product\Crash Reports (on my system, for Firefox this works out to C:\Documents and Settings\Ted Mielczarek\Application Data\Mozilla\Firefox\Crash Reports)
2) Places new crash reports in that folder\pending
3) Stores the server response in that folder\submitted.  It creates a file named ${CRASH_ID}.txt, where ${CRASH_ID} comes from the server.  The server can also provide a ViewURL, which will be put into the file to point users to where they can view their crash report online.

I'm not going to worry about re-submitting failed crash reports right now.  We'll do that in a different bug.
Attachment #262173 - Flags: review?(benjamin)
Attached patch handle empty vendor (obsolete) — Splinter Review
Handle an empty or missing Vendor string, since Thunderbird uses that.
Attachment #262173 - Attachment is obsolete: true
Attachment #262554 - Flags: review?(benjamin)
Attachment #262173 - Flags: review?(benjamin)
Comment on attachment 262554 [details] [diff] [review]
handle empty vendor

>Index: toolkit/airbag/client/crashreporter_win.cpp

>+bool MoveFile(const wstring& file, const wstring& toDir)

I can't figure out why you need this code. Unless you find a reason, please use the standards windows MoveFileW API.
Attachment #262554 - Flags: review?(benjamin) → review+
Yeah, no real reason there other than that Google failed me, and I forgot that that API existed.  This is what I'm checking in.
Attachment #262554 - Attachment is obsolete: true
Blocks: 378528
Checked in.  I punted resubmitting pending reports to bug 378528.
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Depends on: 378986
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: