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.
Comment on attachment 714492 [details] [diff] [review] Patch Nice. about:logcat is pretty neat too.
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.