Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cherry-pick 3.7 wpt-related ladybird PRs #25447

Merged
merged 6 commits into from
Nov 22, 2024
Merged

Cherry-pick 3.7 wpt-related ladybird PRs #25447

merged 6 commits into from
Nov 22, 2024

Conversation

nico
Copy link
Contributor

@nico nico commented Nov 22, 2024

@github-actions github-actions bot added the 👀 pr-needs-review PR needs review from a maintainer or community member label Nov 22, 2024
awesomekling and others added 6 commits November 21, 2024 21:27
(cherry picked from commit d78c81a9fdcd065c1a4905bd5f0176c3cb640d9e)
(cherry picked from commit 85bf1d6033c6de3de4761e18e0b0992a8814d705)
(cherry picked from commit 5630a0d6b44c3599f8a70b07dc294080dcb50ae1)
This change makes the Meta/import-wpt-test.py script handle URLs such as
https://wpt.live//WebCryptoAPI/generateKey/../util/helpers.js and paths
containing, e.g., wpt-import/WebCryptoAPI/generateKey/../util/helpers.js
(that is, URLs and paths with “..” parent-directory references in them).

Otherwise, without this change, when the import-wpt-test.py script tries
a URL like https://wpt.live//WebCryptoAPI/generateKey/../util/helpers.js
which contains a “..” parent-directory reference, the script fails with
a “urllib.error.HTTPError: HTTP Error 404: Not Found” error message.

(cherry picked from commit cf7a1f6a5297f4b01a98a39a3d9da6dd4cbcf5d2)
This change switches the Meta/import-wpt-test.py script to using the
standard html.parser module rather than BeautifulSoup.

Otherwise, without this change, when a contributor first tries to run
the script, if they don’t have BeautifulSoup installed, it will fail.

Note that this patch also includes an unrelated small change that
switches to using os.path.normpath — rather than Path.absolute() — to
“normalize” the destination names of the downloaded test files.

(cherry picked from commit 286511c4cf9dcd985882c9bbb2de42b01e7494a9)
(cherry picked from commit 3833049fc8680d4e6349511cf566f27a25225ada)
@nico nico changed the title Cherry-pick 3.5 wpt-related ladybird PRs Cherry-pick 3.7 wpt-related ladybird PRs Nov 22, 2024
@nico nico merged commit ff4c99e into SerenityOS:master Nov 22, 2024
14 checks passed
@nico nico deleted the pr-wpt branch November 22, 2024 03:16
@github-actions github-actions bot removed the 👀 pr-needs-review PR needs review from a maintainer or community member label Nov 22, 2024
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.

5 participants