Revision 98932eb7420923b691dacea405b3bb4bb105016a authored by Emilio Cobos Álvarez on 10 April 2018, 20:19:22 UTC, committed by moz-wptsync-bot on 10 April 2018, 20:19:22 UTC
bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1452640 gecko-commit: 00ac14e011212f55d75afd6043ac8e41636dec5f gecko-integration-branch: central gecko-reviewers: xidorn
1 parent e504871
open-referer.htm
<!doctype html>
<html>
<head>
<title>XMLHttpRequest: open() - value of Referer header</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<link rel="help" href="https://xhr.spec.whatwg.org/#the-open()-method">
</head>
<body>
<div id="log"></div>
<script>
test(function() {
var client = new XMLHttpRequest()
client.open("POST", "resources/inspect-headers.py?filter_name=referer", false)
client.send(null)
assert_equals(client.responseText, "Referer: "+location.href+'\n')
})
</script>
</body>
</html>
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...