mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-19 07:33:20 +00:00
Meta: Don't attempt to download WPT test resources from external URLs
This commit is contained in:
parent
61185d98aa
commit
2f5481284d
Notes:
github-actions[bot]
2025-10-14 10:21:27 +00:00
Author: https://github.com/tcl3
Commit: 2f5481284d
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6460
Reviewed-by: https://github.com/AtkinsSJ ✅
1 changed files with 4 additions and 0 deletions
|
@ -157,6 +157,10 @@ def map_to_path(
|
|||
if source.resource.startswith("/") or not is_resource:
|
||||
file_path = Path(base_directory, source.resource.lstrip("/"))
|
||||
else:
|
||||
parsed_url = urlparse(source.resource)
|
||||
if parsed_url.scheme != "":
|
||||
print(f"Skipping '{source.resource}'. Downloading external resources is not supported.")
|
||||
continue
|
||||
# Add it as a sibling path if it's a relative resource
|
||||
sibling_location = Path(resource_path).parent
|
||||
parent_directory = Path(base_directory, sibling_location)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue