Make test_bogus_files.js pass after bug 552121 c666507bf280

This commit is contained in:
Michael Wu 2010-06-15 14:09:59 -07:00
parent b295e5a578
commit c6f254c9c1

View File

@ -1676,7 +1676,7 @@ mozJSComponentLoader::ImportInto(const nsACString & aLocation,
// figure out the resolved URI
nsCOMPtr<nsIChannel> scriptChannel;
rv = ioService->NewChannelFromURI(resURI, getter_AddRefs(scriptChannel));
NS_ENSURE_SUCCESS(rv, rv);
NS_ENSURE_SUCCESS(rv, NS_ERROR_INVALID_ARG);
nsCOMPtr<nsIURI> resolvedURI;
rv = scriptChannel->GetURI(getter_AddRefs(resolvedURI));