From: "T.V Raman" <raman@google.com>
To: monnier@iro.umontreal.ca
Cc: schwab@linux-m68k.org, raman@google.com, emacs-devel@gnu.org
Subject: Re: Priority of url-cookie-trusted-urls vs url-cookie-untrusted-urls
Date: Fri, 31 Jul 2020 08:20:25 -0700 [thread overview]
Message-ID: <24356.14009.544049.901280@retriever.mtv.corp.google.com> (raw)
In-Reply-To: <jwvlfizen1r.fsf-monnier+emacs@gnu.org>
Might be better to redo this with a simple filter/unfilter logic
analogous to traditional allow/deny configurations in unix eg
allowed_hosts vs denied_hosts. As it stands, one will always need to
read the source code to know exactly what this does
Stefan Monnier writes:
> >> From what I observe, if you set url-cookie-untrusted-urls to '(".*"),
> >> then the setting in url-cookie-trusted-urls e.g. '("example.com") has
> >> no effect. This makes it hard to set up emacs/eww to not trust any
> >> domain, and then progressively allow a few domains to set cookies;
> >> could the priority order of these settings be reversed?
> >
> > If you set url-cookie-untrusted-urls to ("") it will always be less
> > specific than any match from url-cookie-trusted-urls.
>
> IIUC which one takes precedence depends on the length of the
> match, right? If so, the docstring should say so.
>
>
> Stefan
--
Id: kg:/m/0285kf1
--
Id: kg:/m/0285kf1
prev parent reply other threads:[~2020-07-31 15:20 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-31 14:48 Priority of url-cookie-trusted-urls vs url-cookie-untrusted-urls T.V Raman
2020-07-31 14:54 ` Andreas Schwab
2020-07-31 15:00 ` T.V Raman
2020-07-31 15:12 ` Stefan Monnier
2020-07-31 15:20 ` T.V Raman [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=24356.14009.544049.901280@retriever.mtv.corp.google.com \
--to=raman@google.com \
--cc=emacs-devel@gnu.org \
--cc=monnier@iro.umontreal.ca \
--cc=schwab@linux-m68k.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.