diff --git a/qutebrowser/browser/mhtml.py b/qutebrowser/browser/mhtml.py index ce909f683..0fac55003 100644 --- a/qutebrowser/browser/mhtml.py +++ b/qutebrowser/browser/mhtml.py @@ -51,7 +51,9 @@ _CSS_URL_PATTERNS = [re.compile(x) for x in [ def _get_css_imports(data): """Return all assets that are referenced in the given CSS document. + The returned URLs are relative to the stylesheet's URL. + Args: data: The content of the stylesheet to scan as string. """ diff --git a/tests/unit/browser/test_mhtml.py b/tests/unit/browser/test_mhtml.py index c3a859488..106cb3fd7 100644 --- a/tests/unit/browser/test_mhtml.py +++ b/tests/unit/browser/test_mhtml.py @@ -5,7 +5,7 @@ import re import pytest -from qutebrowser.misc import mhtml +from qutebrowser.browser import mhtml @pytest.fixture(autouse=True) def patch_uuid(monkeypatch):