mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-27 05:00:13 -10:00
21 lines
731 B
HTML
21 lines
731 B
HTML
<!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="http://dvcs.w3.org/hg/xhr/raw-file/tip/Overview.html#the-open()-method" data-tested-assertations="/following::ol[1]/li[2]/ol[1]/li[4]" />
|
|
</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>
|