tor-browser

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

file_navigator_resolve_identity_xrays.xhtml (812B)


      1 <?xml version="1.0"?>
      2 <?xml-stylesheet type="text/css" href="chrome://global/skin"?>
      3 <?xml-stylesheet type="text/css" href="chrome://mochikit/content/tests/SimpleTest/test.css"?>
      4 <!--
      5 https://bugzilla.mozilla.org/show_bug.cgi?id=985827
      6 -->
      7 <window title="Mozilla Bug 985827"
      8        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
      9  <script src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"/>
     10 
     11  <iframe id="t"></iframe>
     12 
     13  <!-- test code goes here -->
     14  <script type="application/javascript">
     15  <![CDATA[
     16  /** Test for Bug 985827 */
     17 
     18  addLoadEvent(function() {
     19    var ok = parent.ok;
     20    var is = parent.is;
     21 
     22    var nav = document.getElementById("t").contentWindow.navigator;
     23 
     24    ok(Cu.isXrayWrapper(nav), "Should have an Xray here");
     25  });
     26 
     27  ]]>
     28  </script>
     29 </window>