From 210f406e7351f8e22daa5d581120a8352604eae9 Mon Sep 17 00:00:00 2001 From: bptato Date: Sat, 5 Apr 2025 23:39:52 +0200 Subject: loader: support Set-Cookie for non-initial requests For compatibility with mainstream browsers. e.g. this should allow log-ins through ajax. To synchronize the loader's cookie jar with that of the pager, we open a stream (about:cookie-stream) to pass over serialized cookies when required. --- test/net/cookie.css.http | 4 ++++ test/net/cookie.http | 4 +++- test/net/run.sh | 5 ++++- 3 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 test/net/cookie.css.http (limited to 'test') diff --git a/test/net/cookie.css.http b/test/net/cookie.css.http new file mode 100644 index 00000000..72b9a993 --- /dev/null +++ b/test/net/cookie.css.http @@ -0,0 +1,4 @@ +Content-Type: text/css +Set-Cookie: test9=css + +#y { display: none } diff --git a/test/net/cookie.http b/test/net/cookie.http index bd9fabb4..d0abe683 100644 --- a/test/net/cookie.http +++ b/test/net/cookie.http @@ -9,7 +9,9 @@ Set-Cookie: test6=hi; Max-Age=9223372036854775807 Set-Cookie: test7=hi; Expires=Mon 0 Jan 1999 20:30:00 GMT Set-Cookie: test8=hi; Expires=Mon, 31 Feb 1999 20:30:00 GMT +
Fail
+
CSS fail
diff --git a/test/net/run.sh b/test/net/run.sh index a257cefc..539de55d 100755 --- a/test/net/run.sh +++ b/test/net/run.sh @@ -6,7 +6,10 @@ fi failed=0 for h in *.html *.http -do printf '%s\r' "$h" +do case $h in + cookie.css.http) continue;; + esac + printf '%s\r' "$h" if ! "$CHA" -C config.toml "http://localhost:$1/$h" | diff all.expected - then failed=$(($failed+1)) printf 'FAIL: %s\n' "$h" -- cgit