4 <link rel=
"stylesheet" href=
"resources/cookies-test-style.css">
5 <script src=
"resources/cookies-test-pre.js"></script>
8 <p id=
"description"></p>
9 <div id=
"console"></div>
12 'Test for <<a href="https://bugs.webkit.org/show_bug.cgi?id=86067">https://bugs.webkit.org/show_bug.cgi?id=86067</a>> [BlackBerry] Possible to clobber httpOnly cookie.'
17 debug("Check that we can't get or set httpOnly Cookies by JavaScript.");
18 setCookies("httpOnlyCookie=value; Max-Age=900000000; path=/; httpOnly");
20 if (document
.cookie
== "httpOnlyCookie=value")
21 testFailed("We shouldn't get httpOnly cookies by JavaScript.");
23 testPassed("We can't get httpOnly cookies by JavaScript.");
25 document
.cookie
= "httpOnlyCookie=changedValue; path=/";
26 if (document
.cookie
== "httpOnlyCookie=changedValue")
27 testFailed("We shouldn't set httpOnly cookies by JavaScript.");
29 testPassed("We can't set httpOnly cookies by JavaScript.");
33 successfullyParsed
= true;
35 <script src=
"resources/cookies-test-post.js"></script>