Skip to content

Commit

Permalink
Small improvements to the docs (#56)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
kdzwinel authored Sep 16, 2021
1 parent 4589cf8 commit b816db5
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 19 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
17 changes: 9 additions & 8 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@

<h1>Privacy Test Pages</h1>

<p>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.<p>
<p>🛡 Collection of pages for testing various privacy and security features of browsers and browser extensions.<p>
<p>View source and contribute <a href='https://github.com/duckduckgo/privacy-test-pages'>on GitHub</a>.</p>

<h2>Tracker Reporting</h2>

Expand Down Expand Up @@ -47,14 +48,14 @@ <h2>Security</h2>
<h2>Privacy Protections Tests</h2>

<ul>
<li><a href='https://privacy-test-pages.glitch.me/privacy-protections/request-blocking/'>Request blocking</a></li>
<li><a href='https://privacy-test-pages.glitch.me/privacy-protections/fingerprinting/'>Fingerprinting</a></li>
<li><a href='./privacy-protections/request-blocking/'>Request blocking</a></li>
<li><a href='./privacy-protections/fingerprinting/'>Fingerprinting</a></li>
<li><a href='./privacy-protections/fingerprinting/canvas.html'>Fingerprinting canvas verification</a></li>
<li><a href='https://privacy-test-pages.glitch.me/privacy-protections/storage-blocking/'>Storage blocking</a></li>
<li><a href='https://privacy-test-pages.glitch.me/privacy-protections/referrer-trimming/'>Referrer trimming</a></li>
<li><a href='http://privacy-test-pages.glitch.me/privacy-protections/https-upgrades/'>HTTPS upgrades</a></li>
<li><a href='http://privacy-test-pages.glitch.me/privacy-protections/click-to-load/'>Facebook click to load</a></li>
<li><a href='http://privacy-test-pages.glitch.me/privacy-protections/surrogates/'>Surrogates</a></li>
<li><a href='./privacy-protections/storage-blocking/'>Storage blocking</a></li>
<li><a href='./privacy-protections/referrer-trimming/'>Referrer trimming</a></li>
<li><a href='./privacy-protections/https-upgrades/'>HTTPS upgrades</a></li>
<li><a href='./privacy-protections/click-to-load/'>Facebook click to load</a></li>
<li><a href='./privacy-protections/surrogates/'>Surrogates</a></li>
</ul>

<h2>Autofill</h2>
Expand Down
2 changes: 1 addition & 1 deletion privacy-protections/click-to-load/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<body>
<!-- Load the facebook SDK in the recommended way -->
<script async defer crossorigin="anonymous" src="https://connect.facebook.net/en_US/sdk.js?XFBML=false"></script>
<p><a href="../index.html">[Home]</a></p>
<p><a href="../../">[Home]</a><a href="../">[Privacy Protections Tests]</a><strong>[Facebook click to load]</strong></p>

<h2> About ClickToLoad Tests</h2>
<p>This page embeds the facebook SDK, and several facebook iFrames. It also attempts to create
Expand Down
5 changes: 5 additions & 0 deletions privacy-protections/https-upgrades/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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:';
}
16 changes: 8 additions & 8 deletions privacy-protections/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@
<h1>Privacy Protections Tests</h1>

<ul>
<li><a href='https://privacy-test-pages.glitch.me/privacy-protections/request-blocking/'>Request blocking</a></li>
<li><a href='https://privacy-test-pages.glitch.me/privacy-protections/fingerprinting/'>Fingerprinting</a></li>
<li><a href='https://privacy-test-pages.glitch.me/privacy-protections/fingerprinting/canvas.html'>Fingerprinting canvas verification</a></li>
<li><a href='https://privacy-test-pages.glitch.me/privacy-protections/storage-blocking/'>Storage blocking</a></li>
<li><a href='https://privacy-test-pages.glitch.me/privacy-protections/referrer-trimming/'>Referrer trimming</a></li>
<li><a href='http://privacy-test-pages.glitch.me/privacy-protections/https-upgrades/'>HTTPS upgrades</a></li>
<li><a href='http://privacy-test-pages.glitch.me/privacy-protections/click-to-load/'>Facebook click to load</a></li>
<li><a href='http://privacy-test-pages.glitch.me/privacy-protections/surrogates/'>Surrogates</a></li>
<li><a href='./request-blocking/'>Request blocking</a></li>
<li><a href='./fingerprinting/'>Fingerprinting</a></li>
<li><a href='./fingerprinting/canvas.html'>Fingerprinting canvas verification</a></li>
<li><a href='./storage-blocking/'>Storage blocking</a></li>
<li><a href='./referrer-trimming/'>Referrer trimming</a></li>
<li><a href='./https-upgrades/'>HTTPS upgrades</a></li>
<li><a href='./click-to-load/'>Facebook click to load</a></li>
<li><a href='./surrogates/'>Surrogates</a></li>
</ul>

</body>
Expand Down
2 changes: 1 addition & 1 deletion privacy-protections/surrogates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
}
</style>
</head>
<p><a href="../index.html">[Home]</a></p>
<p><a href="../../">[Home]</a><a href="../">[Privacy Protections Tests]</a><strong>[Surrogates Test Page]</strong></p>

<p><b>Test blocking and redirecting to a surrogate</b></p>
<table id='results-table'>
Expand Down
4 changes: 4 additions & 0 deletions security/spoof-js-page-rewrite.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@
</head>

<body>
<p><a href="../index.html">[Home]</a></p>

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

<button onclick="spoof()">Start</button>
</body>

Expand Down

0 comments on commit b816db5

Please sign in to comment.