Backed out changeset d3e15ba0fd92 (bug 1121857) for cppunit failures

This commit is contained in:
Wes Kocher 2015-01-21 15:16:33 -08:00
parent 0f016d6a1b
commit 7d47fa4cc7

View File

@ -3617,7 +3617,7 @@ nsDocument::SetBaseURI(nsIURI* aURI)
nsCOMPtr<nsIContentSecurityPolicy> csp;
nsresult rv = NodePrincipal()->GetCsp(getter_AddRefs(csp));
NS_ENSURE_SUCCESS(rv, rv);
if (csp && aURI) {
if (csp) {
bool permitsBaseURI = false;
// base-uri is only enforced if explicitly defined in the