xpconnect fix draft
authorAndrew Swan <aswan@mozilla.com>
Thu, 26 May 2016 13:54:53 -0700
changeset 371943 3b549b841b2d356b5d5ef4be433fa4fb199cc433
parent 370842 d6d4e8417d2fd71fdf47c319b7a217f6ace9d5a5
child 371944 a0deb1329030416fbd68f41ea47d2d1d7d1c6501
push id19395
push useraswan@mozilla.com
push dateFri, 27 May 2016 03:31:33 +0000
milestone49.0a1
xpconnect fix MozReview-Commit-ID: HxqGvf6PJ0K
xpcom/reflect/xptinfo/xptiInterfaceInfo.cpp
--- a/xpcom/reflect/xptinfo/xptiInterfaceInfo.cpp
+++ b/xpcom/reflect/xptinfo/xptiInterfaceInfo.cpp
@@ -386,16 +386,20 @@ xptiInterfaceEntry::GetEntryForParam(uin
     *entry = theEntry;
     return NS_OK;
 }
 
 already_AddRefed<ShimInterfaceInfo>
 xptiInterfaceEntry::GetShimForParam(uint16_t methodIndex,
                                     const nsXPTParamInfo* param)
 {
+    if(methodIndex < mMethodBaseIndex) {
+        return mParent->GetShimForParam(methodIndex, param);
+    }
+    
     uint16_t interfaceIndex = 0;
     nsresult rv = GetInterfaceIndexForParam(methodIndex, param,
                                             &interfaceIndex);
     if (NS_FAILED(rv)) {
         return nullptr;
     }
 
     const char* shimName = mTypelib->GetEntryNameAt(interfaceIndex - 1);