Bug 722861 - Add privacy information to image requests, and use a separate cache for private requests. r=joe

This commit is contained in:
Josh Matthews
2012-06-26 00:20:12 -04:00
parent 08828c4415
commit f12d16d9f9
22 changed files with 382 additions and 207 deletions

View File

@@ -1786,8 +1786,8 @@ nsImageFrame::LoadIcon(const nsAString& aSpec,
nsCOMPtr<nsIURI> realURI;
SpecToURI(aSpec, sIOService, getter_AddRefs(realURI));
nsCOMPtr<imgILoader> il(do_GetService("@mozilla.org/image/loader;1", &rv));
if (NS_FAILED(rv)) return rv;
nsCOMPtr<imgILoader> il =
nsContentUtils::GetImgLoaderForDocument(aPresContext->Document());
nsCOMPtr<nsILoadGroup> loadGroup;
GetLoadGroup(aPresContext, getter_AddRefs(loadGroup));