diff --git a/embedding/browser/webBrowser/nsWebBrowser.cpp b/embedding/browser/webBrowser/nsWebBrowser.cpp index a714589dce3..efc781d63f7 100644 --- a/embedding/browser/webBrowser/nsWebBrowser.cpp +++ b/embedding/browser/webBrowser/nsWebBrowser.cpp @@ -320,7 +320,7 @@ NS_IMETHODIMP nsWebBrowser::RemoveWebBrowserListener(nsIWeakReference *aListener } else { nsCOMPtr supports(do_QueryReferent(aListener)); if (!supports) return NS_ERROR_INVALID_ARG; - rv = UnBindListener(aListener, aIID); + rv = UnBindListener(supports, aIID); } return rv;