tor-browser

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

window_activation.xhtml (1065B)


      1 <?xml version="1.0"?>
      2 <?xml-stylesheet href="chrome://global/skin" type="text/css"?>
      3 <?xml-stylesheet href="data:text/css,
      4 
      5 %23box {
      6  background: blue;
      7 }
      8 
      9 %23box:-moz-window-inactive {
     10  background: cyan;
     11 }
     12 
     13 " type="text/css"?>
     14 
     15 <window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
     16 
     17 <box id="box" height="100"/>
     18 
     19 <script type="application/javascript"><![CDATA[
     20 
     21 var ok = window.arguments[0].ok;
     22 var complete = window.arguments[0].complete;
     23 var openerDoc = window.arguments[0].document;
     24 var SimpleTest = window.arguments[0].SimpleTest;
     25 
     26 SimpleTest.waitForFocus(function () {
     27  ok(getComputedStyle(document.getElementById("box"), "").backgroundColor, "rgb(0, 0, 255)");
     28  ok(getComputedStyle(openerDoc.getElementById("box"), "").backgroundColor, "rgb(0, 255, 255)");
     29  window.arguments[0].focus();
     30  ok(getComputedStyle(document.getElementById("box"), "").backgroundColor, "rgb(0, 255, 255)");
     31  ok(getComputedStyle(openerDoc.getElementById("box"), "").backgroundColor, "rgb(0, 0, 255)");
     32  complete();
     33 }, window);
     34 
     35 ]]></script>
     36 
     37 </window>