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

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     1 <!DOCTYPE HTML>
     2 <html>
     3 <head>
     4   <title>CSS :before styling 1</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" />
    12   <style type="text/css">
    13     p:before
    14     {
    15       content: url(http://example.com/tests/security/manager/ssl/tests/mochitest/mixedcontent/moonsurface.jpg);
    16     }
    17   </style>
    19   <script class="testbody" type="text/javascript">
    21   function runTest()
    22   {
    23     isSecurityState("broken", "insecure content added by :before styling breaks security");
    24     finish();
    25   }
    27   function afterNavigationTest()
    28   {
    29     isSecurityState("broken", "security still broken after navigation");
    30     finish();
    31   }
    33   </script>
    34 </head>
    36 <body>
    37   <p>
    38     There is a moon surface left to this text
    39   </p>
    40 </body>
    41 </html>

mercurial