|
| 1 | +<!DOCTYPE html> |
| 2 | +<script src="/resources/testharness.js"></script> |
| 3 | +<script src="/resources/testharnessreport.js"></script> |
| 4 | +<script src="/cookies/resources/cookie-helper.sub.js"></script> |
| 5 | +<script> |
| 6 | + set_prefixed_cookie_via_dom_test({ |
| 7 | + prefix: "__Http-", |
| 8 | + params: "Path=/", |
| 9 | + shouldExistInDOM: false, |
| 10 | + shouldExistViaHTTP: false, |
| 11 | + title: "__Http: Does not set via DOM 'Path=/'" |
| 12 | + }); |
| 13 | + |
| 14 | + set_prefixed_cookie_via_dom_test({ |
| 15 | + prefix: "__Http-", |
| 16 | + params: "Secure; Path=/", |
| 17 | + shouldExistInDOM: false, |
| 18 | + shouldExistViaHTTP: false, |
| 19 | + title: "__Http: Does not set via DOM 'Secure; Path=/'" |
| 20 | + }); |
| 21 | + |
| 22 | + set_prefixed_cookie_via_dom_test({ |
| 23 | + prefix: "__Http-", |
| 24 | + params: "Secure; Path=/;httponly", |
| 25 | + shouldExistInDOM: false, |
| 26 | + shouldExistViaHTTP: false, |
| 27 | + title: "__Http: Does not set via DOM 'Secure; Path=/; httponly'" |
| 28 | + }); |
| 29 | + |
| 30 | + set_prefixed_cookie_via_http_test({ |
| 31 | + prefix: "__Http-", |
| 32 | + params: "Path=/", |
| 33 | + shouldExistViaHTTP: false, |
| 34 | + origin: self.origin, |
| 35 | + title: "__Http: Does not set via HTTP with 'Path=/;' (without Secure)" |
| 36 | + }); |
| 37 | + |
| 38 | + set_prefixed_cookie_via_http_test({ |
| 39 | + prefix: "__Http-", |
| 40 | + params: "Secure;Path=/", |
| 41 | + shouldExistViaHTTP: false, |
| 42 | + origin: self.origin, |
| 43 | + title: "__Http: Does not set via HTTP with 'Secure; Path=/'" |
| 44 | + }); |
| 45 | + |
| 46 | + set_prefixed_cookie_via_http_test({ |
| 47 | + prefix: "__Http-", |
| 48 | + params: "Secure;Path=/;httponly", |
| 49 | + shouldExistViaHTTP: true, |
| 50 | + origin: self.origin, |
| 51 | + title: "__Http: Does set via HTTP with 'Secure; Path=/;httponly'" |
| 52 | + }); |
| 53 | + |
| 54 | + set_prefixed_cookie_via_http_test({ |
| 55 | + prefix: "__Http-", |
| 56 | + params: "Secure;Path=/cookies/;httponly", |
| 57 | + shouldExistViaHTTP: true, |
| 58 | + origin: self.origin, |
| 59 | + title: "__Http: Does set via HTTP with 'Secure; Path=/cookies/;httponly'" |
| 60 | + }); |
| 61 | +</script> |
0 commit comments