if (!parentDocLoader) parentDocLoader = do_GetService(NS_DOCUMENTLOADER_SERVICE_PROGID, &rv);  NS_ENSURE_TRUE(parentDocLoader, NS_ERROR_FAILURE);  parentDocLoader->CreateDocumentLoader(getter_AddRefs(mDocLoader));   NS_ENSURE_SUCCESS(mDocLoader->GetLoadGroup(getter_AddRefs(mLoadGroup)), NS_ERROR_FAILURE);
nsresult nsDocumentOpenInfo::Init(nsISupports * aWindowContext){  // ask the window context if it has a uri content listener...  nsresult rv = NS_OK;  m_contentListener = do_GetInterface(aWindowContext, &rv);  // now determine if the   return rv;}