import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo

This commit is contained in:
Roy Tam 2018-01-19 03:59:58 +08:00
commit dcd9973243
150858 changed files with 23884658 additions and 0 deletions

View file

@ -0,0 +1,17 @@
<!doctype html>
<meta charset=utf-8>
<title>Set location from a parent</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<div id=log></div>
<iframe></iframe>
<script>
onload = function() {
var fr = document.querySelector("iframe")
fr.contentWindow.location = "support/dummy.html"
fr.onload = function() {
assert_equals(fr.contentDocument.referrer, document.URL)
done()
}
}
</script>

View file

@ -0,0 +1,17 @@
<!doctype html>
<meta charset=utf-8>
<title>Set src from a function called from a parent</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<div id=log></div>
<iframe src="support/set-parent-src.html"></iframe>
<script>
onload = function() {
var fr = document.querySelector("iframe")
fr.contentWindow.go()
fr.onload = function() {
assert_equals(fr.contentDocument.referrer, document.URL)
done()
}
}
</script>

View file

@ -0,0 +1,18 @@
<!doctype html>
<meta charset=utf-8>
<title>Set location from a function called from a parent</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<div id=log></div>
<iframe src="support/location-set.html"></iframe>
<script>
onload = function() {
var fr = document.querySelector("iframe")
var url = fr.contentDocument.URL
fr.contentWindow.go()
fr.onload = function() {
assert_equals(fr.contentDocument.referrer, url)
done()
}
}
</script>

View file

@ -0,0 +1,17 @@
<!doctype html>
<meta charset=utf-8>
<title>Set the src attribute to about:blank and check referrer</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<div id=log></div>
<iframe></iframe>
<script>
onload = function() {
var fr = document.querySelector("iframe")
fr.src = "about:blank"
fr.onload = function() {
assert_equals(fr.contentDocument.referrer, document.URL)
done()
}
}
</script>

View file

@ -0,0 +1,3 @@
<!doctype html>
<meta charset=utf-8>
<p>Hello.

View file

@ -0,0 +1,8 @@
<!doctype html>
<meta charset=utf-8>
<script>
function go() {
location.href = "support/dummy.html"
}
</script>
<p>Hello. Go.

View file

@ -0,0 +1,8 @@
<!doctype html>
<meta charset=utf-8>
<script>
function go() {
frameElement.src = "support/dummy.html"
}
</script>
<p>Hello. Go.