Backed out 2 changesets (bug 1635094) for build bustages on nsMacShellService.cpp. CLOSED TREE

Backed out changeset 0a2b0c6ea19a (bug 1635094)
Backed out changeset ead4f26f76ee (bug 1635094)
This commit is contained in:
Cosmin Sabou
2020-05-04 20:04:06 +03:00
parent c8ea5056f1
commit 00d059a4c0
28 changed files with 161 additions and 118 deletions

View File

@@ -152,7 +152,9 @@ nsMacShellService::SetDesktopBackground(Element* aElement, int32_t aPosition,
loadContext = do_QueryInterface(docShell);
}
auto referrerInfo = MakeRefPtr<mozilla::dom::ReferrerInfo>(*aElement);
nsCOMPtr<nsIReferrerInfo> referrerInfo = new mozilla::dom::ReferrerInfo();
referrerInfo->InitWithNode(aElement);
return wbp->SaveURI(imageURI, aElement->NodePrincipal(), 0, referrerInfo,
nullptr, nullptr, mBackgroundFile,
nsIContentPolicy::TYPE_IMAGE, loadContext);