mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-21 23:58:07 +02:00
Merge pull request #12040 from wojtekmaj/replace-non-inclusive
Replace non-inclusive "whitelist" term with "allowlist"
This commit is contained in:
commit
fe3df495cc
4 changed files with 5 additions and 5 deletions
|
@ -239,11 +239,11 @@ describe("util", function () {
|
|||
expect(createValidAbsoluteUrl("/foo", "/bar")).toEqual(null);
|
||||
});
|
||||
|
||||
it("handles URLs that do not use a whitelisted protocol", function () {
|
||||
it("handles URLs that do not use an allowed protocol", function () {
|
||||
expect(createValidAbsoluteUrl("magnet:?foo", null)).toEqual(null);
|
||||
});
|
||||
|
||||
it("correctly creates a valid URL for whitelisted protocols", function () {
|
||||
it("correctly creates a valid URL for allowed protocols", function () {
|
||||
// `http` protocol
|
||||
expect(
|
||||
createValidAbsoluteUrl("http://www.mozilla.org/foo", null)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue