Skip to content

merge upstream master#1

Open
VladimirKuzmin wants to merge 459 commits intovanpav:masterfrom
mozilla:master
Open

merge upstream master#1
VladimirKuzmin wants to merge 459 commits intovanpav:masterfrom
mozilla:master

Conversation

@VladimirKuzmin
Copy link

содержит фикс зависимости от html5lib

willkg and others added 30 commits March 2, 2018 17:39
This switches it so the "in" and "out" for tests are in the same file. This
makes them easier to read through on GitHub and in an editor.
* Moves test_security.py tests into test_clean.py
* Removes duplicate tests and unhelpful tests
* Adds additional helpful test cases
* Reworks some tests to be easier and run to read by parametrizing them
* Adds comments and adjusts function names to be more helpful
Merge all the clean tests into one file and clean up
I squashed test cases into single files--no more .out files. This carries
that change through to MANIFEST.in and our tests_website system.
Fix MANIFEST and data_to_json.py related to recent changes
Fixes a security issue where url sanitizing wouldn't work if there were
character entities breaking up the scheme. This allowed javascript urls
even when they were not explicitly allowed.
Add tests for sanitizing urls in css properties
This fixes the ambiguous ampersand case in character entity handling in
attribute values.

Fixes #359
Handle ambiguous ampersands correctly
Issue 352 has a string that manages to tokenize an html attribute with
a namespace, but no name. Then the namespace doesn't exist in prefixes
and that throws a KeyError.

This alleviates that a bit such that if there's a namespace, but no
name, it swaps the two values. Further, if prefixes doesn't have the
namespace, then it ignores the namespace.

Fixes #352
Handle nonexistent namespaces better
The CSS is in an HTML attribute value, so we need to convert character
entities in it which makes it proper CSS before we can sanitize it.

Fixes #363
Convert entities in CSS values before sanitizing
Drop support for EOL Python 3.3
This change makes it clearer what the file is for.
Greg Guthe and others added 28 commits January 26, 2021 17:11
fixes: bug 1689399 / GHSA vv2x-vrpj-qqpq
reported by Michał Bentkowski at Securitum
Remove duplicated h1 in changelog
s/regression/untriaged/

all bugs are not regressions
fix docs interpreter version
diff should exit with a non-zero exit code when the tree diff includes
extra files or directories
match python version in lint GHA workflow
fix sanity check step indentation and colon
Fix attribute name in linkify docs.
* tox: drop EOL pythons
* tox: drop pypy2
* tox: drop python 3.5
* setup.py: drop EOL pythons
* ci: drop python 3.5
* tests_website: remove six usage from server.py
* tests_website: bump version
* tests_website: update open_test_page.py for Python 3
* remove non-vendored six.moves imports
* sanitizer: replace six.string_types check with str
* linkifier: replace six.string_types check with str
* sanitizer: drop force_unicode call
* linkifier: drop force_unicode calls
* html5lib_shim: replace six text_type and unichr calls
* utils: remove force_unicode fn
* remove unicode_literals imports
@g-k g-k deleted the branch vanpav:master August 3, 2021 17:55
@g-k g-k deleted the master branch August 3, 2021 17:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.