Open Bug 922215 Opened 11 years ago Updated 2 years ago

Add privileged Web API to intentionally crash in various ways

Categories

(Core :: DOM: Device Interfaces, defect, P3)

x86_64
Linux
defect

Tracking

()

People

(Reporter: benjamin, Unassigned, Mentored)

Details

(Keywords: helpwanted, Whiteboard: [lang=c++])

Just as we now have a privileged API for accessing the crash storage area, we would also like a privileged API which allows us to intentionally crash various processes, for the purposes of testing crash reporting and making sure that symbols are working.

APIs need to be:
* crash this app process in various ways, similar to the current nsTestCrasher:
** access violation
** pure-virtual
** runtimeabort
** MOZ_CRASH
** abort()
* crash the B2G process (in the same ways if possible, but a single way is probably sufficient)

Fabrice, I'm going to mark this as helpwanted, are you interested in mentoring or do you know of somebody else who'd be a good mentor?
Flags: needinfo?(fabrice)
Benjamin, I will be happy to mentor here.
Flags: needinfo?(fabrice)
Whiteboard: [lang=c++] → [lang=c++][mentor=fabrice@mozilla.com]
When you say "web" API, do you want this exposed to content?
I want this exposed to an app that we can load onto an unrooted phone in order to properly QA crash reporting on release builds.
(In reply to comment #3)
> I want this exposed to an app that we can load onto an unrooted phone in order
> to properly QA crash reporting on release builds.

What kind of privilege level were you thinking of?  This is obviously extremely dangerous... :(
Well, I figured we'd have a privilege for this just as we have a privilege for accessing the crash storage area. I'm not sure what's so dangerous about this: you can force the phone to reboot, but there's no real security risk involved.
That could be certified only and rely on sideloading the test app with the remote debugging protocol.
If that's something that QA can do on production devices, then yes, that's fine, good and what we'd expect.
Assignee: nobody → genti.tola
(In reply to comment #6)
> That could be certified only and rely on sideloading the test app with the
> remote debugging protocol.

That sounds good!
Mentor: fabrice
Whiteboard: [lang=c++][mentor=fabrice@mozilla.com] → [lang=c++]
Priority: -- → P3
Assignee: genti.tola → nobody
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.