diff --git a/content/xul/templates/src/nsXULContentUtils.cpp b/content/xul/templates/src/nsXULContentUtils.cpp index fd63d89886bc..5b4a533901a7 100644 --- a/content/xul/templates/src/nsXULContentUtils.cpp +++ b/content/xul/templates/src/nsXULContentUtils.cpp @@ -438,7 +438,7 @@ nsXULContentUtils::MakeElementID(nsIDocument* aDocument, const nsAReadableString // XXX FIX ME to not do a copy nsAutoString str(aURI); - if (str.Find(spec) == 0) { + if (str.Find(spec.get()) == 0) { #ifdef USE_BROKEN_RELATIVE_PARSING static const PRInt32 kFudge = 1; // XXX assume '#' #else