[wp-trac] [WordPress Trac] #32138: WordPress 4.2 : Tor Browser’s and Canvas privacy warning prompt
WordPress Trac
noreply at wordpress.org
Sun Jul 23 10:54:57 UTC 2017
#32138: WordPress 4.2 : Tor Browser’s and Canvas privacy warning prompt
-------------------------+----------------------
Reporter: bluetouff | Owner:
Type: enhancement | Status: closed
Priority: normal | Milestone:
Component: Emoji | Version: 4.2
Severity: normal | Resolution: wontfix
Keywords: | Focuses:
-------------------------+----------------------
Comment (by superpoincare):
Replying to [comment:10 pento]:
> No movement on the Tor ticket in well over a year. Unless they change
something, there's nothing we can do.
The ticket in Tor forums using fonts got me thinking ...
Adobe blank is a font which has zero width. This can be used to detect if
the browser has used a system font or the fallback, which is Adobe Blank.
Or a subset of Adobe Blank.
From: https://blog.typekit.com/2013/03/28/introducing-adobe-blank/
>1. Include Adobe Blank as a data URI in the CSS file.
>
>2. Specify ‘font-family: SomeWebFont, “Adobe Blank” in the CSS rule for
some DOM element that contains >text (and would therefore have a non-zero
width when rendered using a regular font). One example would >be a <span>
element that is absolutely positioned offscreen.
>3. Check the width of the DOM element. If it’s zero, SomeWebFont hasn’t
loaded yet. If it’s greater than >zero, it has.
I am not sure if this works or even how to implement it. Just thinking out
loud.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/32138#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list