nsICrashReporter::annotateCrashReport does not support typed annotations
Categories
(Toolkit :: Crash Reporting, defect)
Tracking
()
Tracking | Status | |
---|---|---|
firefox136 | --- | fixed |
People
(Reporter: gsvelto, Assigned: gsvelto)
References
Details
Attachments
(1 file, 1 obsolete file)
The implementation for nsICrashReporter::annotateCrashReport() assumes that the annotation type is a string. This wasn't a problem when all annotations were strings, but now that some can use concrete types this doesn't work anymore. Passing a boolean for example will appear to work if the value is true in a release build because there's no checking and the value will be converted to a string. In a debug build it will crash, and a value of false will succeed but will set the annotation to "1" which is wrong.
We should at very least support integer and boolean annotations from JavaScript and return an error for all other types that aren't supported in annotations.
Assignee | ||
Comment 1•2 months ago
|
||
Updated•2 months ago
|
Backed out for causing build bustages @ ws2def.h
- Backout link
- Push with failures
- Failure Log
- Failure line:
/builds/worker/fetches/vs/Windows Kits/10/Include/10.0.22621.0/shared/ws2def.h(240,16): error: redefinition of 'sockaddr'
Assignee | ||
Comment 4•1 month ago
|
||
This is highlighting an issue with includes when windows.h
gets included before the other includes in LSPAnnotator.cpp
. I don't think we need windows.h
in nsExceptionHandler.h
so I'll get rid of that.
Assignee | ||
Comment 5•1 month ago
|
||
Assignee | ||
Comment 8•1 month ago
|
||
Ugh, sorry. I had rolled a fix in the patch yesterday and it had picked up an unrelated change, so I reverted the unrelated change... or at least I thought I did that. I had reverted the fix instead. Landing again.
Comment 10•1 month ago
|
||
Backed out for causing build bustages.
Backout link: https://hg.mozilla.org/integration/autoland/rev/2fcf097964880f9e91dc0dd6bd0563f68b304708
Failure log: https://treeherder.mozilla.org/logviewer?job_id=490223468&repo=autoland&lineNumber=135303
Updated•1 month ago
|
Assignee | ||
Comment 11•1 month ago
|
||
It seems that only half of the patch-set landed, I must have done something wrong on Lando. Either way here's a try run with both patches folded together. This should work.
Comment 12•1 month ago
|
||
Comment 13•1 month ago
|
||
bugherder |
Assignee | ||
Updated•1 month ago
|
Description
•