mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1233780 - Avoid CPOWs in GCLI security csp. r=jwalker a=ritu
MozReview-Commit-ID: Gb6tuRL8Tcn
This commit is contained in:
parent
e94bd26b67
commit
276b72fe50
@ -140,7 +140,7 @@ exports.items = [
|
|||||||
from: "securityCSPInfo",
|
from: "securityCSPInfo",
|
||||||
to: "view",
|
to: "view",
|
||||||
exec: function(cspInfo, context) {
|
exec: function(cspInfo, context) {
|
||||||
var uri = context.environment.document.documentURI;
|
var url = context.environment.target.url;
|
||||||
|
|
||||||
if (cspInfo.length == 0) {
|
if (cspInfo.length == 0) {
|
||||||
return context.createView({
|
return context.createView({
|
||||||
@ -148,7 +148,7 @@ exports.items = [
|
|||||||
"<table class='gcli-csp-detail' cellspacing='10' valign='top'>" +
|
"<table class='gcli-csp-detail' cellspacing='10' valign='top'>" +
|
||||||
" <tr>" +
|
" <tr>" +
|
||||||
" <td> <img src='chrome://browser/content/gcli_sec_bad.svg' width='20px' /> </td> " +
|
" <td> <img src='chrome://browser/content/gcli_sec_bad.svg' width='20px' /> </td> " +
|
||||||
" <td>" + NO_CSP_ON_PAGE_MSG + " <b>" + uri + "</b></td>" +
|
" <td>" + NO_CSP_ON_PAGE_MSG + " <b>" + url + "</b></td>" +
|
||||||
" </tr>" +
|
" </tr>" +
|
||||||
"</table>"});
|
"</table>"});
|
||||||
}
|
}
|
||||||
@ -158,7 +158,7 @@ exports.items = [
|
|||||||
"<table class='gcli-csp-detail' cellspacing='10' valign='top'>" +
|
"<table class='gcli-csp-detail' cellspacing='10' valign='top'>" +
|
||||||
// iterate all policies
|
// iterate all policies
|
||||||
" <tr foreach='csp in ${cspinfo}' >" +
|
" <tr foreach='csp in ${cspinfo}' >" +
|
||||||
" <td> ${csp.header} <b>" + uri + "</b><br/><br/>" +
|
" <td> ${csp.header} <b>" + url + "</b><br/><br/>" +
|
||||||
" <table class='gcli-csp-dir-detail' valign='top'>" +
|
" <table class='gcli-csp-dir-detail' valign='top'>" +
|
||||||
// >> iterate all directives
|
// >> iterate all directives
|
||||||
" <tr foreach='dir in ${csp.directives}' >" +
|
" <tr foreach='dir in ${csp.directives}' >" +
|
||||||
|
Loading…
Reference in New Issue
Block a user