tor-browser

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

location-pathname-setter-question-mark.html (455B)


      1 <!doctype html>
      2 <title>Set location.pathname to ?</title>
      3 <script src=/resources/testharness.js></script>
      4 <script src=/resources/testharnessreport.js></script>
      5 <div id=log></div>
      6 <iframe src=/common/blank.html></iframe>
      7 <script>
      8 async_test((t) => {
      9  onload = t.step_func(() => {
     10    self[0].frameElement.onload = t.step_func_done(() => {
     11      assert_equals(self[0].location.pathname, "/%3F")
     12    })
     13    self[0].location.pathname = "?"
     14  })
     15 })
     16 </script>