diff options
author | Florian Bruhin <me@the-compiler.org> | 2021-01-05 16:02:58 +0100 |
---|---|---|
committer | Florian Bruhin <me@the-compiler.org> | 2021-01-05 18:32:57 +0100 |
commit | b4513df5e5ebf751a89fead9f8eed28d383e6078 (patch) | |
tree | bd19fda053ab02202534bfdc1c720131f151c7e8 /tests/unit/browser/test_history.py | |
parent | b2fcc270ec5427df1b77ed28c459d295d77dd28f (diff) | |
download | qutebrowser-b4513df5e5ebf751a89fead9f8eed28d383e6078.tar.gz qutebrowser-b4513df5e5ebf751a89fead9f8eed28d383e6078.zip |
Remove qute://pdfjs URLs from history
The original URL is already in the history anyways - the qute://pdfjs
URL is not really something that gets visited "separately" from the PDF
download.
With #5000, these URLs can also get very big if the PDF is in a data:
URL, see #1099.
Diffstat (limited to 'tests/unit/browser/test_history.py')
-rw-r--r-- | tests/unit/browser/test_history.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/unit/browser/test_history.py b/tests/unit/browser/test_history.py index 8f3a487fd..c981e661d 100644 --- a/tests/unit/browser/test_history.py +++ b/tests/unit/browser/test_history.py @@ -221,6 +221,9 @@ class TestAdd: (logging.WARNING, 'qute://back', '', []), (logging.WARNING, 'a.com', 'qute://back', []), + + (logging.WARNING, 'qute://pdfjs/', '', []), + (logging.WARNING, 'a.com', 'qute://pdfjs/', []), ]) def test_from_tab(self, web_history, caplog, mock_time, level, url, req_url, expected): |