nsCOMPtr<nsIDocument> doc; aDocumentInfo->GetDocument(getter_AddRefs(doc));  nsCAutoString str; doc->GetDocumentURL()->GetSpec(str);
nsIURI* uri = aDocumentInfo->DocumentURI();
nsXULPrototypeCache::PutXBLDocumentInfo(nsIXBLDocumentInfo* aDocumentInfo){    nsCOMPtr<nsIDocument> doc;    aDocumentInfo->GetDocument(getter_AddRefs(doc));    nsCAutoString str;    doc->GetDocumentURL()->GetSpec(str);    nsCOMPtr<nsIXBLDocumentInfo> info;    mXBLDocTable.Get(str, getter_AddRefs(info));    if (!info)        mXBLDocTable.Put(str, aDocumentInfo);    return NS_OK;}