mhtml: Ignore non-http(s) assets
This commit is contained in:
parent
71533b3456
commit
4f01382c64
@ -288,7 +288,7 @@ class _Downloader():
|
|||||||
Args:
|
Args:
|
||||||
url: The file to download as QUrl.
|
url: The file to download as QUrl.
|
||||||
"""
|
"""
|
||||||
if url.scheme() == 'data':
|
if url.scheme() not in {'http', 'https'}:
|
||||||
return
|
return
|
||||||
# Prevent loading an asset twice
|
# Prevent loading an asset twice
|
||||||
if url in self.loaded_urls:
|
if url in self.loaded_urls:
|
||||||
|
Loading…
Reference in New Issue
Block a user