mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 916881 - remove stray refinePolicy in CSPUtils.jsm. r=grobinson
This commit is contained in:
parent
505cb883c7
commit
1f7dd93bb9
@ -152,9 +152,13 @@ CSPPolicyURIListener.prototype = {
|
||||
this._reportOnly, this._csp._specCompliant);
|
||||
}
|
||||
else {
|
||||
// problem fetching policy so fail closed
|
||||
this._csp.refinePolicy("default-src 'none'", this._docURI,
|
||||
this._csp._specCompliant);
|
||||
// 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);
|
||||
}
|
||||
// resume the parent document request
|
||||
this._docRequest.resume();
|
||||
|
Loading…
Reference in New Issue
Block a user