mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1244505 - Ensure we allow spaces in cookie names and values. r=mcmanus
This commit is contained in:
parent
a0bdf64ed3
commit
c80ac62d26
@ -1,4 +1,5 @@
|
||||
const GOOD_COOKIE = "GoodCookie=OMNOMNOM";
|
||||
const SPACEY_COOKIE = "Spacey Cookie=Major Tom";
|
||||
|
||||
function run_test() {
|
||||
var ios = Cc["@mozilla.org/network/io-service;1"].getService(Ci.nsIIOService);
|
||||
@ -11,7 +12,8 @@ function run_test() {
|
||||
cookieService.setCookieStringFromHttp(cookieURI, cookieURI, null, "BadCookie2=\v", null, null);
|
||||
cookieService.setCookieStringFromHttp(cookieURI, cookieURI, null, "Bad\x07Name=illegal", null, null);
|
||||
cookieService.setCookieStringFromHttp(cookieURI, cookieURI, null, GOOD_COOKIE, null, null);
|
||||
cookieService.setCookieStringFromHttp(cookieURI, cookieURI, null, SPACEY_COOKIE, null, null);
|
||||
|
||||
var storedCookie = cookieService.getCookieString(cookieURI, null);
|
||||
do_check_eq(storedCookie, GOOD_COOKIE);
|
||||
do_check_eq(storedCookie, GOOD_COOKIE + "; " + SPACEY_COOKIE);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user