browser/modules/test/chrome/test_sharedframe.xul

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

     1 <?xml version="1.0"?>
     2 <?xml-stylesheet href="chrome://global/skin" type="text/css"?>
     3 <?xml-stylesheet href="chrome://mochikit/content/tests/SimpleTest/test.css"
     4                  type="text/css"?>
     6 <!--
     7 https://bugzilla.mozilla.org/show_bug.cgi?id=811247
     8 -->
     9 <window title="Mozilla Bug 811247"
    10   xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
    11   <script type="application/javascript"
    12           src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script>
    14   <!-- test results are displayed in the html:body -->
    15   <body xmlns="http://www.w3.org/1999/xhtml">
    16   <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=811247"
    17      target="_blank">Mozilla Bug 811247</a>
    18   </body>
    20   <script type="application/javascript"><![CDATA[
    22   /* Test for Bug 811247
    23    *
    24    * The test must run on a separate window becase .swapFrameLoaders currently won't swap
    25    * iframes that are inside frames with history enabled, which is the case of the test running
    26    * in the content area of a regular browser window; so we need a blank xul window for that
    27    */
    28   SimpleTest.waitForExplicitFinish();
    30   let testWin;
    32   function done() {
    33     testWin.close();
    34     SimpleTest.finish();
    35   }
    37   addLoadEvent(function() {
    38     testWin = window.open("sharedframe.xul", "", "chrome,dialog,width=400,height=400");
    39   });
    40   ]]></script>
    41 </window>

mercurial