Closed
Bug 545712
Opened 15 years ago
Closed 15 years ago
"A crash report was submitted" even when it wasn't
Categories
(Core Graveyard :: Plug-ins, defect)
Tracking
(status1.9.2 .4-fixed)
RESOLVED
FIXED
mozilla1.9.3a2
Tracking | Status | |
---|---|---|
status1.9.2 | --- | .4-fixed |
People
(Reporter: benjamin, Assigned: benjamin)
References
Details
(Whiteboard: [fixed-lorentz])
Attachments
(2 files)
1003 bytes,
patch
|
Details | Diff | Splinter Review | |
3.34 KB,
patch
|
Dolske
:
review+
Gavin
:
review+
|
Details | Diff | Splinter Review |
If you have MOZ_CRASHREPORTER_NO_REPORT set in the environment, the plugin-crashed UI will say that a crash report was submitted when it actually wasn't.
I don't know if there are other cases where this might be true: as filed this is pretty inconsequential, but if it shows up in Linux distros which build --enable-crashreporter but disable crash report submission that might not be so good.
Comment 1•15 years ago
|
||
I believe distros generally build --disable-crashreporter currently, FWIW.
Assignee | ||
Comment 2•15 years ago
|
||
This also shows up in normal release builds when you kill a mozilla-runtime process.
Comment 3•15 years ago
|
||
Like so? Hmm, bah, guess not, I just read and tested comment 2.
Sounds like I'm also missing a check somewhere to see if the child's "crash" was really a crash or not.
Assignee | ||
Comment 4•15 years ago
|
||
the crashreportID coming with the global "plugin-crashed" notification is empty, but the Firefox code is unprepared for that case. Patch in a sec.
Assignee: dolske → benjamin
Assignee | ||
Comment 5•15 years ago
|
||
This patch has two parts. First we detect an empty crashreportID and also check the return value of CrashReport.submit() in order to set the crashreportsubmitted boolean value correctly.
Secondly it suppresses the message in the crashed-plugin UI in the case where the plugin crashed but you don't have crash submission disabled. Without this change, when you kill mozilla-runtime.exe it says 'You have disabled crash report submission.' which is incorrect.
Attachment #427766 -
Flags: review?(dolske)
Updated•15 years ago
|
Attachment #427766 -
Flags: review+
Comment 6•15 years ago
|
||
Comment on attachment 427766 [details] [diff] [review]
Deal with empty crashreportID, rev. 1
>- let submitReports = gCrashReporter.submitReports;
>+ let submitted = gCrashReporter.submitReports && minidumpID.length > 0;
Nit: Omit "> 0"?
>+ if (submittedReport) {
>+ helpClass = "submitLink";
>+ showClass = "msg msgSubmitted";
>+ }
>+ else if (!gCrashReporter.submitReports) {
Nit: Brace and else on same line?
>+ if (helpClass !== undefined) {
Nit: Just "if (helpClass)"?
I think it's worth a brief comment here to note why it is that neither "msgSubmitted" not "msgNotSubmitted" is being used, since that would normally seem like an obvious binary choice.
Or maybe we should just add a 3rd message here for "No crash report was generated". But that doesn't seem all that useful, unless there are other unexpected and likely ways to trigger this path (other than killing a process manually).
Attachment #427766 -
Flags: review?(dolske) → review+
Comment 7•15 years ago
|
||
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9.3a2
Assignee | ||
Comment 8•15 years ago
|
||
Whiteboard: [fixed-lorentz]
Comment 9•15 years ago
|
||
Blanket approval for Lorentz merge to mozilla-1.9.2
a=beltzner for 1.9.2.4 - please make sure to mark status1.9.2:.4-fixed
Assignee | ||
Comment 10•15 years ago
|
||
Merged into 1.9.2 at http://hg.mozilla.org/releases/mozilla-1.9.2/rev/84ba4d805430
status1.9.2:
--- → .4-fixed
Updated•3 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•