summaryrefslogtreecommitdiffstats
path: root/mobile/android/geckoview/src/androidTest/assets/www/reflect_local_storage_into_title.html
blob: 749678c668f0d66f266149f2d30f0ed3ef7bc9d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<html>
  <head>
    <meta charset="utf-8" />
    <title>no title</title>
    <script>
      // If we have a query string, save it to the local storage.
      if (window.location.search.length) {
        const value = window.location.search.substr(1);
        localStorage.setItem("ctx", value);
      }

      // Set the title to reflect the local storage value.
      document.title = "storage=" + localStorage.getItem("ctx");
    </script>
  </head>
  <body></body>
</html>