Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

Commit

Permalink
remove contribute.json test (#308)
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoMcA authored Feb 6, 2024
1 parent 6bd650f commit 7f0b9a1
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
7 changes: 0 additions & 7 deletions src/js/observatories/http.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,13 +128,6 @@ const insert = async (scan, results) => {
$('#scan-target-container').removeClass('d-none');
}

// don't show the contribute.json line to non-mozilla sites
if (results.contribute.result === 'contribute-json-only-required-on-mozilla-properties') {
$('#tests-contribute-row').remove();
scan.tests_passed -= 1;
scan.tests_quantity -= 1;
}

// if the HTTP status code wasn't 200, show the banner for it
if (scan.status_code !== 200) {
$('#http-status-code-alert').removeClass('d-none');
Expand Down
7 changes: 0 additions & 7 deletions src/templates/analyze/http/test-scores.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,6 @@
<td id="tests-content-security-policy-score-description"></td>
<td class="tablesaw-hideable tablesaw-center"><span data-octicon="info" data-toggle="popover" title="Content Security Policy" data-content="Content Security Policy (CSP) can prevent a wide range of cross-site scripting (XSS) and clickjacking attacks against your website."></span></td>
</tr>
<tr id="tests-contribute-row">
<td class="title font-weight-bold tablesaw-nowrap"><a href="https://infosec.mozilla.org/guidelines/web_security#contributejson">Contribute.json</a></td>
<td class="tablesaw-center" id="tests-contribute-pass" aria-hidden="true"></td>
<td class="tablesaw-center" id="tests-contribute-score"></td>
<td id="tests-contribute-score-description"></td>
<td class="tablesaw-hideable tablesaw-center"><span data-octicon="info" data-toggle="popover" title="contribute.json" data-content="Having a contribute.json file on the root your website allows Mozilla's information security team to more quickly triage incoming security bugs."></span></td>
</tr>
<tr>
<td class="title font-weight-bold tablesaw-nowrap"><a href="https://infosec.mozilla.org/guidelines/web_security#cookies">Cookies</a></td>
<td class="tablesaw-center" id="tests-cookies-pass" aria-hidden="true"></td>
Expand Down

0 comments on commit 7f0b9a1

Please sign in to comment.