qutebrowser/tests/unit/utils
Florian Bruhin 3179e8c7b9 Always autoescape jinja environments unless overridden
We were only rendering .html files before, so the old _guess_autoescape function
had the effect of always autoescaping .render() (from a file) but never
autoescaping .from_string(). However, most places using .from_string() actually
render (Qt-)HTML via jinja, so they should escape stuff!

Now, we always autoescape, except when the caller uses the
jinja.environment.no_autoescape() context manager, which places rendering
stylesheets now do.

This impacted:

- Confirm quit texts (no HTML here)
- config.py loading errors
  (where this was found because of an error containing - a <keybinding>)
- Certificate error prompts
  (should be fine from what I can tell, as the only user-controllable output is
  the hostname, which cannot contain HTML)
2017-09-16 10:43:59 +02:00
..
usertypes Move coverage to QtWebEngine environment with PyPI-PyQt 2017-09-11 18:30:23 +02:00
overflow_test_cases.py Finally update copyrights... 2017-05-09 21:37:03 +02:00
test_debug.py Revert "Initialize SQL for two failing tests." 2017-06-19 07:42:12 -04:00
test_error.py Finally update copyrights... 2017-05-09 21:37:03 +02:00
test_javascript_string_escape.html Add qutebrowser.utils.javascript 2016-08-04 17:53:13 +02:00
test_javascript.py Finally update copyrights... 2017-05-09 21:37:03 +02:00
test_jinja.py Always autoescape jinja environments unless overridden 2017-09-16 10:43:59 +02:00
test_log.py Finally update copyrights... 2017-05-09 21:37:03 +02:00
test_qtutils.py Replace OS X with macOS 2017-07-08 11:12:43 +02:00
test_standarddir.py Reshape comments 2017-09-15 14:11:45 +02:00
test_typing.py Finally update copyrights... 2017-05-09 21:37:03 +02:00
test_urlutils.py Update some more references to old config options 2017-07-04 16:46:02 +02:00
test_utils.py Merge remote-tracking branch 'upstream/master' into HEAD 2017-08-06 18:13:49 -04:00
test_version.py Add initial support for standarddir.config(auto=True) 2017-09-13 17:26:56 +02:00