docshell/test/test_bug675587.html

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 <!DOCTYPE HTML>
     2 <html>
     3 <!--
     4 https://bugzilla.mozilla.org/show_bug.cgi?id=675587
     5 -->
     6 <head>
     7   <title>Test for Bug 675587</title>
     8   <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
     9   <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
    10 </head>
    11 <body>
    12 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=675587">Mozilla Bug 675587</a>
    13 <p id="display">
    14   <iframe src="data:text/html,<script>location.hash='';</script>#hash"></iframe>
    15 </p>
    16 <div id="content" style="display: none">
    18 </div>
    19 <pre id="test">
    20 <script type="application/javascript">
    22 /** Test for Bug 675587 **/
    23 SimpleTest.waitForExplicitFinish();
    24 addLoadEvent(function() {
    25   is(window.frames[0].location.href,
    26      "data:text/html,<script>location.hash='';</" + "script>#",
    27      "Should have the right href");
    28   SimpleTest.finish();
    29 });
    31 </script>
    32 </pre>
    33 </body>
    34 </html>

mercurial