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 | <head> |
michael@0 | 4 | <title>Iframe for Recording Status</title> |
michael@0 | 5 | <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script> |
michael@0 | 6 | <script type="text/javascript;version=1.7" src="RecordingStatusHelper.js"></script> |
michael@0 | 7 | <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" /> |
michael@0 | 8 | </head> |
michael@0 | 9 | <body> |
michael@0 | 10 | |
michael@0 | 11 | <pre id="test"> |
michael@0 | 12 | <script class="testbody" type="text/javascript;version=1.7"> |
michael@0 | 13 | |
michael@0 | 14 | var localStream; |
michael@0 | 15 | |
michael@0 | 16 | window.addEventListener('message', function(event) { |
michael@0 | 17 | switch (event.data) { |
michael@0 | 18 | case 'start': |
michael@0 | 19 | let gumDeferred = expectStream({ audio: true, |
michael@0 | 20 | fake: true |
michael@0 | 21 | }, function(stream) { |
michael@0 | 22 | localStream = stream; |
michael@0 | 23 | event.source.postMessage('start-finished', window.location.origin); |
michael@0 | 24 | }); |
michael@0 | 25 | break; |
michael@0 | 26 | case 'stop': |
michael@0 | 27 | localStream.stop(); |
michael@0 | 28 | localStream = null; |
michael@0 | 29 | break; |
michael@0 | 30 | } |
michael@0 | 31 | }, false); |
michael@0 | 32 | |
michael@0 | 33 | </script> |
michael@0 | 34 | </pre> |
michael@0 | 35 | </body> |
michael@0 | 36 | </html> |