lynx-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: LYNX-DEV v2.6FM update


From: Andrew Kuchling
Subject: Re: LYNX-DEV v2.6FM update
Date: Fri, 24 Jan 1997 16:18:48 -0500 (EST)

Foteos Macrides wrote:
> * Added a "Lynx State Management (Me want cookie!)" section to the Lynx
>   Users Guide, and a cross-linked cookie_help.html file for the Cookie
>   Jar Page. - FM

        Argh... I was planning to do this over the weekend.  Would you
please stop doing things before I get around to them? :)

        One bug: the 'V' key doesn't really work, because entries in
domain_list are deleted if their cookie sublist is empty.
(http://www.msnbc.com is a good site to test this.)  I've also added the
user's selected behaviour to the cookie jar page, like so:

   Domain=stage (Cookies will be always accepted)
          AMG_Source=magnet
          Path=/

The patch is included below.

        It might also be a good idea to not bother presenting the "(No
explanatory comment)" message, and just leave the line blank.  The
patch doesn't do that.  


        Andrew Kuchling
        address@hidden
        http://www.magnet.com/~amk/
Save the Gutenberg Project! http://www.promo.net/pg/nl/pgny_nov96.html


*** LYCookie.c  1997/01/24 17:12:34     1.1
--- LYCookie.c  1997/01/24 17:20:28
***************
*** 738,745 ****
  
        if (de != NULL) {
!           if (HTList_isEmpty(de->cookie_list)) {
                /*
!                *  No cookies in this domain,
!                *  so delete the domain. - FM
                 */
                FREE(de->domain);
--- 738,745 ----
  
        if (de != NULL) {
!           if (HTList_isEmpty(de->cookie_list) && de->bv==QUERY_USER) {
                /*
!                *  No cookies in this domain, and no default accept/reject
!                  *  choice was set by the user, so delete the domain. - FM
                 */
                FREE(de->domain);
***************
*** 976,979 ****
--- 976,992 ----
        sprintf(buf, "<DT><A HREF=\"LYNXCOOKIE://%s/\">Domain=%s</A>\n",
                      de->domain, de->domain);
+       (*target->isa->put_block)(target, buf, strlen(buf));
+       switch (de->bv)
+         {
+         case (REJECT_ALWAYS):
+           sprintf(buf, "(Cookies will be always rejected)");
+           break;
+         case (ACCEPT_ALWAYS):
+           sprintf(buf, "(Cookies will be always accepted)");
+           break;
+         case (QUERY_USER):
+           sprintf(buf, "(User will be prompted)");
+           break;
+         }
        (*target->isa->put_block)(target, buf, strlen(buf));
        for (cl = de->cookie_list; cl != NULL; cl = cl->next) {






;
; To UNSUBSCRIBE:  Send a mail message to address@hidden
;                  with "unsubscribe lynx-dev" (without the
;                  quotation marks) on a line by itself.
;

reply via email to

[Prev in Thread] Current Thread [Next in Thread]