Backed out changeset 1b86035e7da0 (bug 916881) for CSP-related test failures on a CLOSED TREE

This commit is contained in:
Wes Kocher 2013-09-27 12:12:10 -07:00
Родитель 5ce3d7f05f
Коммит bc2310bf82
1 изменённых файлов: 3 добавлений и 7 удалений

Просмотреть файл

@ -152,13 +152,9 @@ CSPPolicyURIListener.prototype = {
this._reportOnly, this._csp._specCompliant);
}
else {
// problem fetching policy so fail closed by appending a "block it all"
// policy. Also toss an error into the console so developers can see why
// this policy is used.
this._csp.log(WARN_FLAG, CSPLocalizer.getFormatStr("errorFetchingPolicy",
[status]);
this._csp.appendPolicy("default-src 'none'", this._docURI,
this._reportOnly, this._csp._specCompliant);
// problem fetching policy so fail closed
this._csp.refinePolicy("default-src 'none'", this._docURI,
this._csp._specCompliant);
}
// resume the parent document request
this._docRequest.resume();