tor-browser

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

test_bug874758.html (919B)


      1 <!DOCTYPE HTML>
      2 <html data-expando-prop="xyz">
      3 <!--
      4 https://bugzilla.mozilla.org/show_bug.cgi?id=874758
      5 -->
      6 <head>
      7  <meta charset="utf-8">
      8  <title>Test for Bug 874758</title>
      9  <script src="/tests/SimpleTest/SimpleTest.js"></script>
     10  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
     11  <script type="application/javascript">
     12 
     13  /** Test for Bug 874758 */
     14  Object.prototype.expandoProp = 5;
     15  is({}.expandoProp, 5, "Should see this on random objects");
     16 
     17  is(document.head.dataset.expandoProp, 5, "Should see this on dataset too");
     18  is(document.documentElement.dataset.expandoProp, "xyz",
     19     "But if the dataset has it, we should get it from there");
     20  </script>
     21 </head>
     22 <body>
     23 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=874758">Mozilla Bug 874758</a>
     24 <p id="display"></p>
     25 <div id="content" style="display: none">
     26 
     27 </div>
     28 <pre id="test">
     29 </pre>
     30 </body>
     31 </html>