I'm building a customized version of Firefox Fennec, and I want to inject some javascript to current tab when user has selected some menus.
I think JS::Evaluate(jsContext, jsOptions, scriptSrc, scriptlength, &retValue) can do that, but I can't figure out which one is the right parameter for jsContext.
(I got nsCOMPtr domWindow for current tab, but will that help?)