tor-browser

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

history-pushState.html (587B)


      1 <!doctype html>
      2 <script src="/resources/testharness.js"></script>
      3 <script src="/resources/testharnessreport.js"></script>
      4 <script src="resources/helpers.js"></script>
      5 <meta name="variant" content="?method=navigate">
      6 <meta name="variant" content="?method=updateCurrentEntry">
      7 
      8 <script>
      9 test(() => {
     10  updateStateBasedOnTestVariant(window, { data : "value" });
     11  assert_equals(navigation.currentEntry.getState().data, "value");
     12  history.pushState(1, "", "#push");
     13  assert_equals(navigation.currentEntry.getState(), undefined);
     14 }, "entry.getState() after history.pushState()");
     15 </script>