emacs-devel
[Top][All Lists]
Advanced

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

Re: Priority of url-cookie-trusted-urls vs url-cookie-untrusted-urls


From: T.V Raman
Subject: Re: Priority of url-cookie-trusted-urls vs url-cookie-untrusted-urls
Date: Fri, 31 Jul 2020 08:20:25 -0700

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 



reply via email to

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