navigate-child-function.html (586B)
1 <!doctype html> 2 <meta charset=utf-8> 3 <title>Set location from a function called from a parent</title> 4 <script src="/resources/testharness.js"></script> 5 <script src="/resources/testharnessreport.js"></script> 6 <div id=log></div> 7 <iframe src="support/location-set.html"></iframe> 8 <script> 9 async_test(function() { 10 onload = this.step_func(function() { 11 var fr = document.querySelector("iframe") 12 var url = fr.contentDocument.URL 13 fr.contentWindow.go() 14 fr.onload = this.step_func_done(function() { 15 assert_equals(fr.contentDocument.referrer, url) 16 }) 17 }) 18 }) 19 </script>