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 | <!DOCTYPE HTML> |
michael@0 | 2 | <html> |
michael@0 | 3 | <!-- |
michael@0 | 4 | https://bugzilla.mozilla.org/show_bug.cgi?id=664955 |
michael@0 | 5 | --> |
michael@0 | 6 | <head> |
michael@0 | 7 | <title>Test for Bug 664955</title> |
michael@0 | 8 | <script type="text/javascript" src="/MochiKit/MochiKit.js"></script> |
michael@0 | 9 | <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script> |
michael@0 | 10 | <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" /> |
michael@0 | 11 | </head> |
michael@0 | 12 | <body> |
michael@0 | 13 | <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=664955">Mozilla Bug 664955</a> |
michael@0 | 14 | <p id="display" style="font-size: 10000000000px"> <!-- must be superior to nscoord_MAX * 60 --> |
michael@0 | 15 | <span id="larger" style="font-size: larger"> |
michael@0 | 16 | <span id="larger-again" style="font-size: larger"> |
michael@0 | 17 | </span> |
michael@0 | 18 | </span> |
michael@0 | 19 | </p> |
michael@0 | 20 | <div id="content" style="display: none"> |
michael@0 | 21 | |
michael@0 | 22 | </div> |
michael@0 | 23 | <pre id="test"> |
michael@0 | 24 | <script class="testbody" type="text/javascript"> |
michael@0 | 25 | /** Test for Bug 664955 **/ |
michael@0 | 26 | var parentSize = document.defaultView.getComputedStyle($('display'), "").fontSize; |
michael@0 | 27 | var largerSize = document.defaultView.getComputedStyle($('larger'), "").fontSize; |
michael@0 | 28 | var largerAgainSize = document.defaultView.getComputedStyle($('larger-again'), "").fontSize; |
michael@0 | 29 | |
michael@0 | 30 | is(parentSize, largerSize, "font size is larger than max font size"); |
michael@0 | 31 | is(parentSize, largerAgainSize, "font size is larger than max font size"); |
michael@0 | 32 | |
michael@0 | 33 | </script> |
michael@0 | 34 | </pre> |
michael@0 | 35 | </body> |
michael@0 | 36 | </html> |
michael@0 | 37 |