Bug 1317604 - 4. Include nsIObserver in nsAndroidBridge interfaces; r=me on CLOSED TREE

Follow-up to include nsIObserver in the list of interfaces implemented
by QueryInterface for nsAndroidBridge. This fixes a bug where QI to
nsIObserver fails when removing nsAnroidBridge observers.
This commit is contained in:
Jim Chen
2016-11-21 17:24:36 -05:00
parent f34c85c8a8
commit 1bebd64a44

View File

@@ -734,7 +734,10 @@ AndroidBridge::GetGlobalContextRef() {
}
/* Implementation file */
NS_IMPL_ISUPPORTS(nsAndroidBridge, nsIAndroidEventDispatcher, nsIAndroidBridge)
NS_IMPL_ISUPPORTS(nsAndroidBridge,
nsIAndroidEventDispatcher,
nsIAndroidBridge,
nsIObserver)
nsAndroidBridge::nsAndroidBridge()
{
@@ -750,7 +753,6 @@ nsAndroidBridge::nsAndroidBridge()
nsAndroidBridge::~nsAndroidBridge()
{
RemoveObservers();
}
NS_IMETHODIMP nsAndroidBridge::HandleGeckoMessage(JS::HandleValue val,