DOMMediaListImpl::GetMediaText(nsString& aMediaText)
DOMMediaListImpl::GetMediaText(nsAWritableString& aMediaText)
DOMMediaListImpl::GetMediaText(nsString& aMediaText){  aMediaText.Truncate();  PRUint32 cnt;  nsresult rv = Count(&cnt);  if (NS_FAILED(rv)) return rv;  PRInt32 count = cnt, index = 0;  while (index < count) {    nsCOMPtr<nsISupports> tmp(dont_AddRef(ElementAt(index++)));    NS_ENSURE_TRUE(tmp, NS_ERROR_FAILURE);    nsCOMPtr<nsIAtom> medium(do_QueryInterface(tmp));    NS_ENSURE_TRUE(medium, NS_ERROR_FAILURE);    const PRUnichar *buffer;    medium->GetUnicode(&buffer);    aMediaText.Append(buffer);    if (index < count) {      aMediaText.AppendWithConversion(", ");    }  }  return NS_OK;}