зеркало из https://github.com/mozilla/gecko-dev.git
Bug 801723. WebIDL binding objects may not have classinfo even if they're nsISupports. r=peterv
This commit is contained in:
Родитель
4eacd7bf39
Коммит
7b364a60a1
|
@ -484,6 +484,10 @@ nsJSIID::HasInstance(nsIXPConnectWrappedNative *wrapper,
|
|||
nsISupports *identity;
|
||||
if (mozilla::dom::UnwrapDOMObjectToISupports(obj, identity)) {
|
||||
nsCOMPtr<nsIClassInfo> ci = do_QueryInterface(identity);
|
||||
if (!ci) {
|
||||
// No classinfo means we're not implementing interfaces and all
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
XPCCallContext ccx(JS_CALLER, cx);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче