зеркало из https://github.com/mozilla/gecko-dev.git
Bug 206022: [cookies] parser doesn't allow spaces in NAME token.
makes the cookie parser tolerant of spaces in the token name strings, which some sites rely on. r=mvl, sr=alecf, a=asa.
This commit is contained in:
Родитель
350502ab16
Коммит
97883af4de
|
@ -479,7 +479,7 @@ main(PRInt32 argc, char *argv[])
|
|||
SetACookie(cookieService, "http://parser.test/", nsnull, "test=parser; domain=.parser.test; max-age=0", nsnull);
|
||||
GetACookie(cookieService, "http://parser.test/", nsnull, getter_Copies(cookie));
|
||||
rv[1] = CheckResult(cookie, MUST_BE_NULL);
|
||||
SetACookie(cookieService, "http://parser.test/", nsnull, "test=\"fubar! = foo;bar\\\";\" parser; domain=.parser.test; max-age=6\nfive max-age=2.63,", nsnull);
|
||||
SetACookie(cookieService, "http://parser.test/", nsnull, "test=\"fubar! = foo;bar\\\";\" parser; domain=.parser.test; max-age=6\nfive; max-age=2.63,", nsnull);
|
||||
GetACookie(cookieService, "http://parser.test/", nsnull, getter_Copies(cookie));
|
||||
rv[2] = CheckResult(cookie, MUST_CONTAIN, "test=\"fubar! = foo;bar\\\";\"");
|
||||
rv[3] = CheckResult(cookie, MUST_CONTAIN, "five");
|
||||
|
|
Загрузка…
Ссылка в новой задаче