tor-browser

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

strict-mode-redefine-readonly-property.html (545B)


      1 <!doctype html>
      2 <link rel="help" href="https://crbug.com/1448846">
      3 <script src="/resources/testharness.js"></script>
      4 <script src="/resources/testharnessreport.js"></script>
      5 <body>
      6 <script>
      7 test(() => {
      8  "use strict";
      9  const pathname = document.location.pathname;
     10  const form = document.createElement('form');
     11  form.name = 'location';
     12  document.body.appendChild(form);
     13  assert_equals(document.location?.pathname, pathname);
     14  form.remove();
     15 }, "Adding/removing form with a name referring to a non-configurable property");
     16 </script>
     17 </body>