From 96efcc335bbd9f2ad098e694d6cff6c1c22b4ce8 Mon Sep 17 00:00:00 2001 From: Wojtek Kosior Date: Sat, 5 Mar 2022 15:54:53 +0100 Subject: improve script blocking in non-HTML documents (XML) --- .../data/pages/scripts_to_block_1.html | 33 ++++++---- .../data/pages/scripts_to_block_2.xml | 71 ++++++++++++++++++++++ 2 files changed, 91 insertions(+), 13 deletions(-) create mode 100644 test/haketilo_test/data/pages/scripts_to_block_2.xml (limited to 'test/haketilo_test/data') diff --git a/test/haketilo_test/data/pages/scripts_to_block_1.html b/test/haketilo_test/data/pages/scripts_to_block_1.html index e7793ee..67bff5e 100644 --- a/test/haketilo_test/data/pages/scripts_to_block_1.html +++ b/test/haketilo_test/data/pages/scripts_to_block_1.html @@ -29,18 +29,25 @@ - - - Click Meee! - - - - + +
+ + + Click Meee! + + + + +
diff --git a/test/haketilo_test/data/pages/scripts_to_block_2.xml b/test/haketilo_test/data/pages/scripts_to_block_2.xml new file mode 100644 index 0000000..6433a1d --- /dev/null +++ b/test/haketilo_test/data/pages/scripts_to_block_2.xml @@ -0,0 +1,71 @@ + + + + + + + + + + + + + + window.__run = [...(window.__run || []), 'grape']; + + + + + window.__run = [...(window.__run || []), 'raspberry']; + + + + + + + + + + + + + + + + + + + + -- cgit v1.2.3