tor-browser

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

test_open_null_features.html (1302B)


      1 <!DOCTYPE HTML>
      2 <html>
      3 <!--
      4 https://bugzilla.mozilla.org/show_bug.cgi?id=1009529
      5 -->
      6 <head>
      7  <meta charset="utf-8">
      8  <title>Test for Bug 1009529</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 1009529 */
     14  SimpleTest.waitForExplicitFinish();
     15 
     16  var win1 = open("about:blank", "_blank", null);
     17  var win2 = open("about:blank", "_blank", "");
     18  for (var k in win1) {
     19    var v;
     20    try {
     21      v = win1[k];
     22    } catch (ex) {}
     23    if (v instanceof win1.BarProp) {
     24      is(v.visible, win2[k] && win2[k].visible, "Both windows should have the same value for " + k);
     25    }
     26  }
     27 
     28  var closeCount = 0;
     29  var closeInc = function(e) {
     30    this.removeEventListener("unload", closeInc, true);
     31    closeCount++;
     32    if (closeCount == 2) {
     33      SimpleTest.finish();
     34    }
     35  };
     36  win1.addEventListener("unload", closeInc, true);
     37  win2.addEventListener("unload", closeInc, true);
     38  win1.close();
     39  win2.close();
     40  
     41  </script>
     42 </head>
     43 <body>
     44 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1009529">Mozilla Bug 1009529</a>
     45 <p id="display">
     46 </p>
     47 <div id="content" style="display: none">
     48 
     49 </div>
     50 <pre id="test">
     51 </pre>
     52 </body>
     53 </html>