tor-browser

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

test_interrupted_reflow.html (1309B)


      1 <!DOCTYPE html>
      2 <html>
      3 <!--
      4 https://bugzilla.mozilla.org/show_bug.cgi?id=1292781
      5 -->
      6 <head>
      7  <title>Test for bug 1292781</title>
      8  <script src="/tests/SimpleTest/SimpleTest.js"></script>
      9  <script type="application/javascript" src="apz_test_utils.js"></script>
     10  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
     11 </head>
     12 <body>
     13 <script type="text/javascript">
     14 if (isApzEnabled()) {
     15  SimpleTest.waitForExplicitFinish();
     16 
     17  // Run the actual test in its own window, because it is supposed to be run
     18  // in the top level content document to collect APZ test data up to the root
     19  // content APZC by using nsIDOMWindowUtils.getCompositorAPZTestData which
     20  // is not able to walk up to the root content APZC if the function gets called
     21  // from OOP iframes. We could make it work across process boundaries, but so
     22  // far running the test in a new top level content document would be fine.
     23  var w = null;
     24  window.onload = async () => {
     25    await pushPrefs([["apz.test.logging_enabled", true],
     26                     ["apz.displayport_expiry_ms", 0],
     27                     ["layout.disable-pixel-alignment", true]]);
     28 
     29    w = window.open("helper_interrupted_reflow.html", "_blank");
     30  };
     31 }
     32 
     33 function finishTest() {
     34  w.close();
     35  SimpleTest.finish();
     36 }
     37 </script>
     38 </body>
     39 </html>