diff --git a/chrome/src/nsChromeRegistry.cpp b/chrome/src/nsChromeRegistry.cpp index efde7a8a7b7..6625d4985e5 100644 --- a/chrome/src/nsChromeRegistry.cpp +++ b/chrome/src/nsChromeRegistry.cpp @@ -3100,7 +3100,7 @@ nsChromeRegistry::GetAgentSheets(nsIDocShell* aDocShell, nsISupportsArray **aRes nsCOMPtr doc = content->GetDocument(); nsCOMPtr url; rv = NS_NewURI(getter_AddRefs(url), nsDependentCString(token), - nsnull, doc->GetDocumentURL()); + nsnull, doc->GetDocumentURI()); nsCOMPtr sheet; // The CSSLoader handles all the prototype cache stuff for