On 2018/06/02 15:20, Dumitru Mișu Moldovan wrote:
> Klemens Nanni <kn@openbsd.org> wrote:
>
> > Web browsers with plugins such as uBlock Origin that block remote
> > fonts will trigger dwm to load fonts locally.
>
> There's probably a good reason for that rpath promise, but this might
> not be it. How can an ad-block plugin in a browser trigger such an
> action in a window manager? Especially a minimalist one such as dwm…
>
> Would very much like to know if that it really the case, thanks!
The thing you have to consider with pledge is that it's not just the
program itself that is involved, but also the internal workings of any
libraries which are used, because those too are part of the program.
Not suggesting that this is actually what's happening (I haven't dug
into this code and am not going to), but here's one possibility: if
there is cache available for a certain number of fonts, maybe trying to
load an extra font to match one wanted by a website is enough to evict
a font used by the WM from that cache, so it has to be loaded again.
Working from that or maybe coming up with other hypotheses you could
figure out how that would work from a code point of view, and insert
debugging statements or breakpoints to figure out if that's the case.
No comments:
Post a Comment