mirror of
https://github.com/zebrajr/ladybird.git
synced 2025-12-06 12:20:00 +01:00
Meta: Don't attempt to download WPT test resources from external URLs
This commit is contained in:
parent
61185d98aa
commit
2f5481284d
|
|
@ -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…
Reference in New Issue
Block a user