From 830d22d8931a4e5f0606d401f24d7cd937f8697e Mon Sep 17 00:00:00 2001 From: Wojtek Kosior Date: Wed, 2 Feb 2022 11:13:48 +0100 Subject: support Parabola's Iceweasel in tests --- configure | 3 +++ content/policy_enforcing.js | 40 ++++++++++++++++++++++++++++++++++++---- pytest.ini | 1 + test/conftest.py | 26 ++++++++++++++++++++------ test/unit/test_popup.py | 6 ++++++ 5 files changed, 66 insertions(+), 10 deletions(-) diff --git a/configure b/configure index 50f75dc..80516fa 100755 --- a/configure +++ b/configure @@ -91,6 +91,9 @@ if [ "x$BROWSER_BINARY" = x ]; then elif [ "x$TARGET" = xlibrewolf ]; then # Debian's path to Librewolf BROWSER_BINARY=/usr/share/librewolf/librewolf + elif [ "x$TARGET" = xiceweasel ]; then + # Parabola's path to Iceweasel + BROWSER_BINARY=/usr/lib/iceweasel/iceweasel elif [ "x$TARGET" = xicecat ]; then # Parabola's path to IceCat BROWSER_BINARY=/usr/lib/icecat/icecat diff --git a/content/policy_enforcing.js b/content/policy_enforcing.js index 320b6d0..45529ea 100644 --- a/content/policy_enforcing.js +++ b/content/policy_enforcing.js @@ -159,6 +159,12 @@ function desanitize_script(script) { delete script.haketilo_blocked_type; } +/* + * Blocking certain attributes that might allow 'javascript:' URLs. Some of + * these are: