Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add test page that exposes the referrer #22

Merged
merged 2 commits into from
Oct 16, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions get_referrer.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<html>
<head>
</head>
<body>
<p>The referrer accessible via `document.referrer` is:</p>
<pre id='referrer-result'></pre>
<script>
var pre = document.getElementById('referrer-result');
pre.innerHTML = document.referrer;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where will this test page be hosted? innerHTML means XSS could happen on this domain.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

heh yeah good catch! The page will be served from trackertest.org. Resources from this origin are loaded in the UI tour (mozilla/bedrock#6398 (comment)), so we probably don't want to introduce an XSS vulnerability. :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! This has now been fixed.

</script>
</body>
</html>