rv = mDocument->GetDocumentLoadGroup(getter_AddRefs(loadGroup)); if (NS_FAILED(rv)) { return rv; }
loadGroup = mDocument->GetDocumentLoadGroup();
HTMLContentSink::AddDummyParserRequest(void){  nsresult rv = NS_OK;  NS_ASSERTION(!mDummyParserRequest, "Already have a dummy parser request");  rv = DummyParserRequest::Create(getter_AddRefs(mDummyParserRequest), this);  if (NS_FAILED(rv)) {    return rv;  }  nsCOMPtr<nsILoadGroup> loadGroup;  if (mDocument) {    rv = mDocument->GetDocumentLoadGroup(getter_AddRefs(loadGroup));    if (NS_FAILED(rv)) {      return rv;    }  }  if (loadGroup) {    rv = mDummyParserRequest->SetLoadGroup(loadGroup);    if (NS_FAILED(rv)) {      return rv;    }    rv = loadGroup->AddRequest(mDummyParserRequest, nsnull);  }  return rv;}