Bug 748701 - Followup: typo fix, forgot to set rv. r=me

This commit is contained in:
Jared Wein 2012-05-07 14:15:22 -07:00
parent a5e38a5f84
commit b9f099aa8f

View File

@ -524,7 +524,7 @@ nsresult nsObjectLoadingContent::IsPluginEnabledForType(const nsCString& aMIMETy
return NS_ERROR_FAILURE;
}
nsCOMPtr<nsIDOMWindow> topWindow;
window->GetTop(getter_AddRefs(topWindow));
rv = window->GetTop(getter_AddRefs(topWindow));
NS_ENSURE_SUCCESS(rv, rv);
nsCOMPtr<nsIDOMDocument> topDocument;
rv = topWindow->GetDocument(getter_AddRefs(topDocument));