FIX: use allowlist and blocklist terminology (#10209)

This is a PR of the renaming whitelist to allowlist and blacklist to the blocklist.
This commit is contained in:
Krzysztof Kotlarek
2020-07-27 10:23:54 +10:00
committed by GitHub
parent 5077cf52fd
commit e0d9232259
130 changed files with 676 additions and 570 deletions

View File

@ -40,7 +40,7 @@ QUnit.test("displayEdit", async function(assert) {
const html = `<div class="revision-content">
<p><img src="/uploads/default/original/1X/6b963ffc13cb0c053bbb90c92e99d4fe71b286ef.jpg" alt="" class="diff-del"><img/src=x onerror=alert(document.domain)>" width="276" height="183"></p>
</div>
<aside class="onebox whitelistedgeneric">
<aside class="onebox allowlistedgeneric">
<header class="source">
<img src="/uploads/default/original/1X/1b0984d7ee08bce90572f46a1950e1ced436d028.png" class="site-icon" width="32" height="32">
<a href="https://meta.discourse.org/t/discourse-version-2-5/125302">Discourse Meta – 9 Aug 19</a>
@ -69,7 +69,7 @@ QUnit.test("displayEdit", async function(assert) {
const expectedOutput = `<div class="revision-content">
<p><img src="/uploads/default/original/1X/6b963ffc13cb0c053bbb90c92e99d4fe71b286ef.jpg" alt class="diff-del">" width="276" height="183"&gt;</p>
</div>
<aside class="onebox whitelistedgeneric">
<aside class="onebox allowlistedgeneric">
<header class="source">
<img src="/uploads/default/original/1X/1b0984d7ee08bce90572f46a1950e1ced436d028.png" class="site-icon" width="32" height="32">
<a href="https://meta.discourse.org/t/discourse-version-2-5/125302">Discourse Meta – 9 Aug 19</a>

View File

@ -3534,9 +3534,9 @@ export default {
},
{
id: 26628,
title: "Embed blacklist selector is broken",
fancy_title: "Embed blacklist selector is broken",
slug: "embed-blacklist-selector-is-broken",
title: "Embed blocklist selector is broken",
fancy_title: "Embed blocklist selector is broken",
slug: "embed-blocklist-selector-is-broken",
posts_count: 11,
reply_count: 7,
highest_post_number: 11,

View File

@ -810,7 +810,7 @@ export function applyDefaultHandlers(pretender) {
200,
{ "Content-Type": "application/html" },
`
<aside class="onebox whitelistedgeneric">
<aside class="onebox allowlistedgeneric">
<header class="source">
<a href="http://test.com/somepage" target="_blank">test.com</a>
</header>

View File

@ -36,7 +36,7 @@ QUnit.test("load - failed onebox", async assert => {
QUnit.test("load - successful onebox", async assert => {
const html = `
<aside class="onebox whitelistedgeneric">
<aside class="onebox allowlistedgeneric">
<header class="source">
<a href="http://test.com/somepage" target="_blank">test.com</a>
</header>

View File

@ -893,7 +893,7 @@ QUnit.test("Code Blocks", assert => {
assert.cooked(
"```eviltrout\nhello\n```",
'<pre><code class="lang-auto">hello\n</code></pre>',
"it doesn't not whitelist all classes"
"it doesn't not allowlist all classes"
);
assert.cooked(