DOMMediaListImpl::SetMediaText(const nsString& aMediaText)
DOMMediaListImpl::SetMediaText(const nsAReadableString& aMediaText)
DOMMediaListImpl::SetMediaText(const nsString& aMediaText){  nsresult rv = Clear();  NS_ENSURE_SUCCESS(rv, rv);  nsAutoString buf(aMediaText);  PRInt32 n = buf.FindChar(',');  do {    if (n < 0)      n = buf.Length();    nsAutoString tmp;    buf.Left(tmp, n);    tmp.CompressWhitespace();    if (tmp.Length()) {      rv = Append(tmp);      NS_ENSURE_SUCCESS(rv, rv);    }    buf.Cut(0, n + 1);    n = buf.FindChar(',');  } while (buf.Length());  return rv;}