[epiphany/gnome-3-36] Add CSP for reader mode (backport for GNOME 3.36)



commit 00c7020ff35b53abb4bf5236369d44bfc36d8d7c
Author: Michael Catanzaro <mcatanzaro redhat com>
Date:   Thu Dec 16 12:49:13 2021 -0600

    Add CSP for reader mode (backport for GNOME 3.36)

 embed/ephy-web-view.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/embed/ephy-web-view.c b/embed/ephy-web-view.c
index f31f5fdf7..cf7d167ce 100644
--- a/embed/ephy-web-view.c
+++ b/embed/ephy-web-view.c
@@ -3390,6 +3390,8 @@ ephy_web_view_toggle_reader_mode (EphyWebView *view,
                                                  EPHY_PREFS_READER_COLOR_SCHEME));
   g_string_append_printf (html, "<style>%s</style>"
                           "<title>%s</title>"
+                          "<meta http-equiv='Content-Type' content='text/html;' charset='UTF-8'>" \
+                          "<meta http-equiv='Content-Security-Policy' content=\"script-src 'none'\">" \
                           "<body class='%s %s'>"
                           "<article>"
                           "<h2>"


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]