nsCOMPtr<nsIAtom> key(dont_AddRef(NS_NewAtom(*name)));
nsCOMPtr<nsIAtom> key = do_GetAtom(*name);
HTMLContentSink::ProcessHTTPHeaders(nsIChannel* aChannel){  NS_ASSERTION(aChannel, "can't process http headers without a channel");  nsCOMPtr<nsIHttpChannel> httpchannel(do_QueryInterface(aChannel));  if (!httpchannel) {    return NS_OK;  }  nsresult rv = NS_OK;  const char *const headers[] = {    "link",    "default-style",    "content-style-type",    // add more http headers if you need    0  };  const char *const *name = headers;  nsCAutoString tmp;  while (*name) {    rv = httpchannel->GetResponseHeader(nsDependentCString(*name), tmp);    if (NS_SUCCEEDED(rv) && !tmp.IsEmpty()) {      nsCOMPtr<nsIAtom> key(dont_AddRef(NS_NewAtom(*name)));      ProcessHeaderData(key, NS_ConvertASCIItoUCS2(tmp));    }    name++;  }  return rv;}