Closed Bug 913513 Opened 11 years ago Closed 10 years ago

Intent to launch gdbserver within Fennec

Categories

(Firefox for Android Graveyard :: JimDB, defect)

All
Android
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: jchen, Assigned: jchen)

Details

Attachments

(1 file)

Android 4.3's run-as tool doesn't work, preventing us from running gdbserver without root. One workaround is to be able to launch gdbserver within Fennec.
We already have the org.mozilla.gecko.DEBUG action when starting Fennec which tells Fennec to wait for the debugger. This patch extends this action to launch gdbserver as well if arguments are given in a string extra.

Because of the security risk of running something in a world-writable directory within Fennec's context, the patch also restricts the DEBUG action to debuggable builds only (i.e. non-MOZILLA_OFFICIAL builds). Might be worth a sec review too.
Attachment #804530 - Flags: review?(mark.finkle)
This only affected 4.3, which is less of a problem now that 4.4 is out.
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → WONTFIX
Attachment #804530 - Flags: review?(mark.finkle)
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: