dom/browser-element/mochitest/file_browserElement_CookiesNotThirdParty.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/dom/browser-element/mochitest/file_browserElement_CookiesNotThirdParty.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,25 @@
     1.4 +<html>
     1.5 +<body>
     1.6 +file_browserElement_CookiesNotThirdParty.html
     1.7 +
     1.8 +<script type='text/javascript;version=1.7'>
     1.9 +if (location.search != '?step=2') {
    1.10 +  // Step 1: Set a cookie.
    1.11 +  document.cookie = 'file_browserElement_CookiesNotThirdParty';
    1.12 +  alert('next');
    1.13 +}
    1.14 +else {
    1.15 +  // Step 2: Read the cookie.
    1.16 +  if (document.cookie == 'file_browserElement_CookiesNotThirdParty') {
    1.17 +    alert('success: got the correct cookie');
    1.18 +  }
    1.19 +  else {
    1.20 +    alert('failure: got unexpected cookie: "' + document.cookie + '"');
    1.21 +  }
    1.22 +
    1.23 +  alert('finish');
    1.24 +}
    1.25 +</script>
    1.26 +
    1.27 +</body>
    1.28 +</html>

mercurial