docURL->GetScheme(scheme);
aBoundDoc->GetDocumentURL()->GetScheme(scheme);
nsBindingManager::LoadBindingDocument(nsIDocument* aBoundDoc,                                      const nsAString& aURL,                                      nsIDocument** aResult){  NS_ConvertUCS2toUTF8 url(aURL);    nsCAutoString otherScheme;  nsCOMPtr<nsIIOService> ioService = do_GetIOService();  if (!ioService) return NS_ERROR_FAILURE;  ioService->ExtractScheme(url, otherScheme);  nsCOMPtr<nsIURI> docURL;  aBoundDoc->GetDocumentURL(getter_AddRefs(docURL));  nsCAutoString scheme;  docURL->GetScheme(scheme);  // First we need to load our binding.  *aResult = nsnull;  nsresult rv;  nsCOMPtr<nsIXBLService> xblService =            do_GetService("@mozilla.org/xbl;1", &rv);  if (!xblService)    return rv;  // Load the binding doc.  nsCOMPtr<nsIXBLDocumentInfo> info;  xblService->LoadBindingDocumentInfo(nsnull, aBoundDoc, url, nsCAutoString(), PR_TRUE, getter_AddRefs(info));  if (!info)    return NS_ERROR_FAILURE;  if (!strcmp(scheme.get(), otherScheme.get()))    info->GetDocument(aResult); // Addref happens here.      return NS_OK;}