tor-browser

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

option.html (1586B)


      1 <!DOCTYPE html>
      2 <script src="/resources/testharness.js"></script>
      3 <script src="/resources/testharnessreport.js"></script>
      4 <script src="./resources/helper.js"></script>
      5 <body>
      6 <script>
      7 
      8  var tests = [
      9    `
     10      <form action="/resource-timing/resources/document-navigated.html" method="post">
     11        <input type="submit">
     12        <select name="dangling"><option>
     13    `,
     14    `
     15      <div>
     16        <form action="/resource-timing/resources/document-navigated.html" method="post">
     17          <input type="submit">
     18          <select name="dangling"><option>
     19    `,
     20    `
     21      <form action="/resource-timing/resources/document-navigated.html" method="post" id="form">
     22        <input type="submit">
     23      </form>
     24      <select name="dangling" form="form"><option>
     25    `,
     26    `
     27      <form action="/resource-timing/resources/document-navigated.html" method="post">
     28        <input type="submit">
     29        <select name="dangling"><option label="yay">
     30    `,
     31    `
     32      <div>
     33        <form action="/resource-timing/resources/document-navigated.html" method="post">
     34          <input type="submit">
     35          <select name="dangling"><option label="yay">
     36    `,
     37    `
     38      <form action="/resource-timing/resources/document-navigated.html" method="post" id="form">
     39        <input type="submit">
     40      </form>
     41      <select name="dangling" form="form"><option label="yay">
     42    `
     43  ];
     44 
     45  tests.forEach(markup => {
     46    async_test(t => {
     47      var i = createFrame(`${markup}sekrit<element attribute></element>`);
     48      assert_no_submission(t, i);
     49    }, markup.replace(/[\n\r]/g, ''));
     50  });
     51 </script>