Bug 722861 - Add privacy information to image requests, and use a separate cache for private requests. r=joe
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user