diff --git a/intl/strres/src/nsStringBundle.cpp b/intl/strres/src/nsStringBundle.cpp index 9c32662db6b1..6fd477eac34c 100644 --- a/intl/strres/src/nsStringBundle.cpp +++ b/intl/strres/src/nsStringBundle.cpp @@ -642,11 +642,8 @@ nsStringBundleService::getStringBundle(const char *aURLSpec, do_GetService(kChromeRegistryCID, &ret); if (NS_SUCCEEDED(ret)) { - ret = chromeRegistry->ConvertChromeURL(mScratchUri); + ret = chromeRegistry->ConvertChromeURL(mScratchUri, getter_Copies(newSpec)); if (NS_SUCCEEDED(ret)) { - - // get resolved spec - ret = mScratchUri->GetSpec(getter_Copies(newSpec)); if (NS_SUCCEEDED(ret)) urlSpec = newSpec; } }