qutebrowser/tests/unit
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
..
browser Fix lint 2017-09-15 17:24:39 +02:00
commands Get rid of init_standarddir fixture 2017-09-15 14:30:46 +02:00
completion Quote a completed value if it contains " 2017-09-15 22:17:38 +02:00
config Remove auto_save.config setting 2017-09-15 22:22:09 +02:00
javascript Finally update copyrights... 2017-05-09 21:37:03 +02:00
keyinput Remove support for ambiguous keybindings 2017-09-14 00:37:01 +02:00
mainwindow Use upper-case Monospace in test_progress_affecting_statusbar_height 2017-09-12 22:51:52 +02:00
misc Move command-history init to cmdhistory.py 2017-09-15 14:27:15 +02:00
scripts check_coverage: Truncate long floats 2017-09-15 12:07:54 +02:00
utils Always autoescape jinja environments unless overridden 2017-09-16 10:43:59 +02:00
test_app.py Finally update copyrights... 2017-05-09 21:37:03 +02:00