From b816db5f47263590dd42aad2a66401df8c938380 Mon Sep 17 00:00:00 2001 From: Konrad Dzwinel Date: Thu, 16 Sep 2021 17:59:58 +0200 Subject: [PATCH] Small improvements to the docs (#56) * Small changes to readme's * Drop full domain names to make it easier to develop locally * Make sure that the HTTPS test page is loaded over HTTP. * Add description and back button to spoofing test. * Fix broken breadcrumbs --- README.md | 2 +- index.html | 17 +++++++++-------- privacy-protections/click-to-load/index.html | 2 +- privacy-protections/https-upgrades/main.js | 5 +++++ privacy-protections/index.html | 16 ++++++++-------- privacy-protections/surrogates/index.html | 2 +- security/spoof-js-page-rewrite.html | 4 ++++ 7 files changed, 29 insertions(+), 19 deletions(-) diff --git a/README.md b/README.md index 4af8b01..311b588 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ Please note that we are not taking external contributions for new test pages, bu - Templates for both simple and complex tests (Privacy Protections Tests) can be found in the [TEMPLATES](./TEMPLATES) directory. - Please remember to link new test page from [index.html](./index.html). -- Once you have a PR with a new page please assign it to one of the AoR DRIs (@brindy, @kdzwinel). +- Once you have a PR with a new page please assign it to one of the AoR DRIs (@kdzwinel, @jonathanKingston). ### Test domains diff --git a/index.html b/index.html index 7f31c18..a6cca54 100644 --- a/index.html +++ b/index.html @@ -9,7 +9,8 @@

Privacy Test Pages

-

This project contains a collection of pages that are meant to be used for testing various privacy and security features of browsers and browser extensions.

+

🛡 Collection of pages for testing various privacy and security features of browsers and browser extensions.

+

View source and contribute on GitHub.

Tracker Reporting

@@ -47,14 +48,14 @@

Security

Privacy Protections Tests

Autofill

diff --git a/privacy-protections/click-to-load/index.html b/privacy-protections/click-to-load/index.html index 6f7ba60..f3a694e 100644 --- a/privacy-protections/click-to-load/index.html +++ b/privacy-protections/click-to-load/index.html @@ -8,7 +8,7 @@ -

[Home]

+

[Home] ↣ [Privacy Protections Tests] ↣ [Facebook click to load]

About ClickToLoad Tests

This page embeds the facebook SDK, and several facebook iFrames. It also attempts to create diff --git a/privacy-protections/https-upgrades/main.js b/privacy-protections/https-upgrades/main.js index 797f612..15fe76e 100644 --- a/privacy-protections/https-upgrades/main.js +++ b/privacy-protections/https-upgrades/main.js @@ -192,3 +192,8 @@ startButton.addEventListener('click', () => runTests()); if (document.location.search === '?run') { runTests(); } + +// this page will only work when loaded over HTTP, otherwise mixed-content blocking will mess up the results +if (location.protocol !== 'http:') { + location.protocol = 'http:'; +} diff --git a/privacy-protections/index.html b/privacy-protections/index.html index 695fd28..3eb5c69 100644 --- a/privacy-protections/index.html +++ b/privacy-protections/index.html @@ -11,14 +11,14 @@

Privacy Protections Tests

diff --git a/privacy-protections/surrogates/index.html b/privacy-protections/surrogates/index.html index a3df7ee..4cba27b 100644 --- a/privacy-protections/surrogates/index.html +++ b/privacy-protections/surrogates/index.html @@ -25,7 +25,7 @@ } -

[Home]

+

[Home] ↣ [Privacy Protections Tests] ↣ [Surrogates Test Page]

Test blocking and redirecting to a surrogate

diff --git a/security/spoof-js-page-rewrite.html b/security/spoof-js-page-rewrite.html index fb36f9c..bad250d 100644 --- a/security/spoof-js-page-rewrite.html +++ b/security/spoof-js-page-rewrite.html @@ -25,6 +25,10 @@ +

[Home]

+ + This test will try to confuse the browser to show wrong domain in the URL bar. +