If you think a bug might affect users in the 57 release, please set the correct tracking and status flags for Release Management.

Allow java addons to listen to JSON events

RESOLVED FIXED in Firefox 21

Status

()

Firefox for Android
General
RESOLVED FIXED
5 years ago
5 years ago

People

(Reporter: kats, Assigned: kats)

Tracking

(Blocks: 1 bug, {dev-doc-needed})

unspecified
Firefox 21
All
Android
dev-doc-needed
Points:
---
Dependency tree / graph

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

Letting java-based addons to listen to our RPC events seems like a good hook to have.
Created attachment 714492 [details] [diff] [review]
Patch

https://github.com/staktrace/aboutlogcat is an example add-on that uses this feature.
Attachment #714492 - Flags: review?(mark.finkle)
Comment on attachment 714492 [details] [diff] [review]
Patch

Nice. about:logcat is pretty neat too.
Attachment #714492 - Flags: review?(mark.finkle) → review+
Some docs on a wiki or MDN might be a good next step too.
Adding dev-docs-needed. The general idea is that we now we allow Fennec add-ons to include a bundle of Java code. This patch adds some basic API that allows the Java code to listen for interesting events and possibly do interesting things in return. I'm not sure where the best place is to document this but I can write up some stuff once I know what the best place to put this is.
Keywords: dev-doc-needed
https://hg.mozilla.org/integration/mozilla-inbound/rev/c68f8131db6a
https://hg.mozilla.org/mozilla-central/rev/c68f8131db6a
Status: ASSIGNED → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 21
Depends on: 842398
Depends on: 842346
Depends on: 843300
You need to log in before you can comment on or make changes to this bug.