dom/browser-element/mochitest/file_browserElement_CookiesNotThirdParty.html

Thu, 15 Jan 2015 15:55:04 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 15:55:04 +0100
branch
TOR_BUG_9701
changeset 9
a63d609f5ebe
permissions
-rw-r--r--

Back out 97036ab72558 which inappropriately compared turds to third parties.

     1 <html>
     2 <body>
     3 file_browserElement_CookiesNotThirdParty.html
     5 <script type='text/javascript;version=1.7'>
     6 if (location.search != '?step=2') {
     7   // Step 1: Set a cookie.
     8   document.cookie = 'file_browserElement_CookiesNotThirdParty';
     9   alert('next');
    10 }
    11 else {
    12   // Step 2: Read the cookie.
    13   if (document.cookie == 'file_browserElement_CookiesNotThirdParty') {
    14     alert('success: got the correct cookie');
    15   }
    16   else {
    17     alert('failure: got unexpected cookie: "' + document.cookie + '"');
    18   }
    20   alert('finish');
    21 }
    22 </script>
    24 </body>
    25 </html>

mercurial