Bug 1233780 - Avoid CPOWs in GCLI security csp. r=jwalker a=ritu

MozReview-Commit-ID: Gb6tuRL8Tcn
This commit is contained in:
J. Ryan Stinnett 2016-03-23 11:47:05 -05:00
parent e94bd26b67
commit 276b72fe50

View File

@ -140,7 +140,7 @@ exports.items = [
from: "securityCSPInfo",
to: "view",
exec: function(cspInfo, context) {
var uri = context.environment.document.documentURI;
var url = context.environment.target.url;
if (cspInfo.length == 0) {
return context.createView({
@ -148,7 +148,7 @@ exports.items = [
"<table class='gcli-csp-detail' cellspacing='10' valign='top'>" +
" <tr>" +
" <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>" +
"</table>"});
}
@ -158,7 +158,7 @@ exports.items = [
"<table class='gcli-csp-detail' cellspacing='10' valign='top'>" +
// iterate all policies
" <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'>" +
// >> iterate all directives
" <tr foreach='dir in ${csp.directives}' >" +