Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
michael@0 | 1 | <?xml version="1.0" encoding="UTF-8" standalone="no"?> |
michael@0 | 2 | <html> |
michael@0 | 3 | <head> |
michael@0 | 4 | <title>CSP inline script tests</title> |
michael@0 | 5 | <!-- content= "div#linkstylediv { color: #0f0; }" --> |
michael@0 | 6 | <link rel="stylesheet" type="text/css" |
michael@0 | 7 | href='file_CSP.sjs?type=text/css&content=div%23linkstylediv%20%7B%20color%3A%20%230f0%3B%20%7D' /> |
michael@0 | 8 | </head> |
michael@0 | 9 | <body> |
michael@0 | 10 | |
michael@0 | 11 | <style type="text/css"> |
michael@0 | 12 | div#inlinestylediv { |
michael@0 | 13 | color: #00ff00; |
michael@0 | 14 | } |
michael@0 | 15 | </style> |
michael@0 | 16 | |
michael@0 | 17 | <div id='linkstylediv'>Link tag (external) stylesheet test (should be green)</div> |
michael@0 | 18 | <div id='attrstylediv' style="color: #00ff00;">Attribute stylesheet test (should be green)</div> |
michael@0 | 19 | <div id='inlinestylediv'>Inline stylesheet test (should be green)</div> |
michael@0 | 20 | |
michael@0 | 21 | <!-- tests for SMIL stuff - animations --> |
michael@0 | 22 | <svg xmlns="http://www.w3.org/2000/svg" |
michael@0 | 23 | xmlns:xlink="http://www.w3.org/1999/xlink" |
michael@0 | 24 | width="100%" |
michael@0 | 25 | height="100px"> |
michael@0 | 26 | |
michael@0 | 27 | <!-- Animates XML attribute, which is mapped into style. --> |
michael@0 | 28 | <text id="xmlTest" x="0" y="15"> |
michael@0 | 29 | This should be green since the animation should be allowed by CSP. |
michael@0 | 30 | |
michael@0 | 31 | <animate attributeName="fill" attributeType="XML" |
michael@0 | 32 | values="lime;green;lime" dur="2s" |
michael@0 | 33 | repeatCount="indefinite" /> |
michael@0 | 34 | </text> |
michael@0 | 35 | |
michael@0 | 36 | <!-- Animates override value for CSS property. --> |
michael@0 | 37 | <text id="cssOverrideTest" x="0" y="35"> |
michael@0 | 38 | This should be green since the animation should be allowed by CSP. |
michael@0 | 39 | |
michael@0 | 40 | <animate attributeName="fill" attributeType="CSS" |
michael@0 | 41 | values="lime;green;lime" dur="2s" |
michael@0 | 42 | repeatCount="indefinite" /> |
michael@0 | 43 | </text> |
michael@0 | 44 | |
michael@0 | 45 | <!-- Animates override value for CSS property targeted via ID. --> |
michael@0 | 46 | <text id="cssOverrideTestById" x="0" y="55"> |
michael@0 | 47 | This should be green since the animation should be allowed by CSP. |
michael@0 | 48 | </text> |
michael@0 | 49 | <animate xlink:href="#cssOverrideTestById" |
michael@0 | 50 | attributeName="fill" |
michael@0 | 51 | values="lime;green;lime" |
michael@0 | 52 | dur="2s" repeatCount="indefinite" /> |
michael@0 | 53 | |
michael@0 | 54 | <!-- Sets value for CSS property targeted via ID. --> |
michael@0 | 55 | <text id="cssSetTestById" x="0" y="75"> |
michael@0 | 56 | This should be green since the <set> should be allowed by CSP. |
michael@0 | 57 | </text> |
michael@0 | 58 | <set xlink:href="#cssSetTestById" |
michael@0 | 59 | attributeName="fill" |
michael@0 | 60 | to="lime" /> |
michael@0 | 61 | </svg> |
michael@0 | 62 | </body> |
michael@0 | 63 | </html> |