Sat, 03 Jan 2015 20:18:00 +0100
Conditionally enable double key logic according to:
private browsing mode or privacy.thirdparty.isolate preference and
implement in GetCookieStringCommon and FindCookie where it counts...
With some reservations of how to convince FindCookie users to test
condition and pass a nullptr when disabling double key logic.
michael@0 | 1 | <html xmlns="http://www.w3.org/1999/xhtml"> |
michael@0 | 2 | <head> |
michael@0 | 3 | <title>Test for Animation Behavior on CSS Properties</title> |
michael@0 | 4 | <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script> |
michael@0 | 5 | <script type="text/javascript" src="smilTestUtils.js"></script> |
michael@0 | 6 | <script type="text/javascript" src="db_smilCSSPropertyList.js"></script> |
michael@0 | 7 | <script type="text/javascript" src="db_smilCSSFromBy.js"></script> |
michael@0 | 8 | <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" /> |
michael@0 | 9 | </head> |
michael@0 | 10 | <body> |
michael@0 | 11 | <p id="display"></p> |
michael@0 | 12 | <div id="content"> |
michael@0 | 13 | <svg xmlns="http://www.w3.org/2000/svg" |
michael@0 | 14 | width="200px" height="200px" font-size="50px" style="color: rgb(50,50,50)" |
michael@0 | 15 | onload="this.pauseAnimations()"> |
michael@0 | 16 | <rect x="20" y="20" width="200" height="200"/> |
michael@0 | 17 | <!-- NOTE: hard-wiring 'line-height' so that computed value of 'font' is |
michael@0 | 18 | more predictable. (otherwise, line-height varies depending on platform) |
michael@0 | 19 | --> |
michael@0 | 20 | <text x="20" y="20" style="line-height: 10px !important">testing 123</text> |
michael@0 | 21 | <line/> |
michael@0 | 22 | <marker/> |
michael@0 | 23 | <filter><feDiffuseLighting/></filter> |
michael@0 | 24 | </svg> |
michael@0 | 25 | </div> |
michael@0 | 26 | <pre id="test"> |
michael@0 | 27 | <script class="testbody" type="text/javascript"> |
michael@0 | 28 | <![CDATA[ |
michael@0 | 29 | |
michael@0 | 30 | SimpleTest.waitForExplicitFinish(); |
michael@0 | 31 | |
michael@0 | 32 | function main() |
michael@0 | 33 | { |
michael@0 | 34 | // Start out with document paused |
michael@0 | 35 | var svg = SMILUtil.getSVGRoot(); |
michael@0 | 36 | ok(svg.animationsPaused(), "should be paused by <svg> load handler"); |
michael@0 | 37 | is(svg.getCurrentTime(), 0, "should be paused at 0 in <svg> load handler"); |
michael@0 | 38 | |
michael@0 | 39 | testBundleList(gFromByBundles, new SMILTimingData(1.0, 1.0)); |
michael@0 | 40 | |
michael@0 | 41 | // Set "display:none" on everything and run the tests again |
michael@0 | 42 | SMILUtil.hideSubtree(SMILUtil.getSVGRoot(), false, false); |
michael@0 | 43 | testBundleList(gFromByBundles, new SMILTimingData(1.0, 1.0)); |
michael@0 | 44 | |
michael@0 | 45 | SimpleTest.finish(); |
michael@0 | 46 | } |
michael@0 | 47 | |
michael@0 | 48 | window.addEventListener("load", main, false); |
michael@0 | 49 | ]]> |
michael@0 | 50 | </script> |
michael@0 | 51 | </pre> |
michael@0 | 52 | </body> |
michael@0 | 53 | </html> |