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.
1 <html xmlns="http://www.w3.org/1999/xhtml">
2 <!--
3 https://bugzilla.mozilla.org/show_bug.cgi?id=340017
4 -->
5 <head>
6 <title>Test for Bug 340017</title>
7 <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
8 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
9 </head>
10 <body>
11 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=340017">Mozilla Bug 340017</a>
12 <p id="display"></p>
13 <div id="content" style="display: none">
14 <form id="frmfoo" name="foo" action="" />
15 </div>
16 <pre id="test">
17 <script type="application/javascript">
18 <![CDATA[
20 /** Test for Bug 340017 **/
21 is(document.foo, document.getElementById("frmfoo"),
22 "The form with name 'foo' should be a document accessible property");
23 ]]>
24 </script>
25 </pre>
26 </body>
27 </html>