mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-19 08:15:31 +00:00
c78829b682
Since `XPCOMEventTarget` uses JNI, this patch makes it possible for consumers to retrieve and invoke methods on one without needing to worry about whether JNI is actually up yet. To achieve this, we create the `IXPCOMEventTarget` interface, and observe that both of its methods can be handled by a proxy if JNI is not ready: * Calls to `dispatch` may be enqueued until JNI is up; * Observe that, when JNI is not up yet, the result of `isOnCurrentThread` can never be `true`. Once JNI is up and the event targets have been resolved, the proxies are replaced with the real, concrete `XPCOMEventTarget`s and are no longer used for the remainder of the Gecko instance's lifetime. Differential Revision: https://phabricator.services.mozilla.com/D57837 --HG-- extra : moz-landing-system : lando |
||
---|---|---|
.. | ||
android | ||
locales |