security/manager/ssl/tests/mochitest/mixedcontent/test_dynUnsecureBackground.html

Thu, 15 Jan 2015 21:03:48 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 21:03:48 +0100
branch
TOR_BUG_9701
changeset 11
deefc01c0e14
permissions
-rw-r--r--

Integrate friendly tips from Tor colleagues to make (or not) 4.5 alpha 3;
This includes removal of overloaded (but unused) methods, and addition of
a overlooked call to DataStruct::SetData(nsISupports, uint32_t, bool.)

     1 <!DOCTYPE HTML>
     2 <html>
     3 <head>
     4   <title>body.background changes to unsecure test</title>
     5   <script type="text/javascript" src="/MochiKit/Base.js"></script>
     6   <script type="text/javascript" src="/MochiKit/DOM.js"></script>
     7   <script type="text/javascript" src="/MochiKit/Style.js"></script>
     8   <script type="text/javascript" src="/MochiKit/Signal.js"></script>
     9   <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
    10   <script type="text/javascript" src="mixedContentTest.js"></script>
    11   <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
    13   <script class="testbody" type="text/javascript">
    15   // This test, as is, equals to https://kuix.de/misc/test17/358438.php
    17   function runTest()
    18   {
    19     isSecurityState("secure");
    20     document.body.background =
    21       "http://example.com/tests/security/manager/ssl/tests/mochitest/mixedcontent/moonsurface.jpg";
    23     waitForSecurityState("broken", function() 
    24     {
    25       isSecurityState("broken", "document.body.background='http://...' changed to broken");
    26       finish();
    27     });
    28   }
    30   function afterNavigationTest()
    31   {
    32     is(document.body.background,
    33       "https://example.com/tests/security/manager/ssl/tests/mochitest/mixedcontent/moonsurface.jpg",
    34       "document backround secure again");
    35     isSecurityState("secure", "secure after re-navigation");
    36     finish();
    37   }
    39   </script>
    40 </head>
    42 <body background="https://example.com/tests/security/manager/ssl/tests/mochitest/mixedcontent/moonsurface.jpg">
    43 </body>
    44 </html>

mercurial