tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

navigate-child-function-src.html (555B)


      1 <!doctype html>
      2 <meta charset=utf-8>
      3 <title>Set src 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/set-parent-src.html"></iframe>
      8 <script>
      9 async_test(function() {
     10  onload = this.step_func(function() {
     11    var fr = document.querySelector("iframe")
     12    fr.contentWindow.go()
     13    fr.onload = this.step_func_done(function() {
     14      assert_equals(fr.contentDocument.referrer, document.URL)
     15    })
     16  })
     17 })
     18 </script>