Skip to content

Commit

Permalink
Fringerprint -> tracking vector
Browse files Browse the repository at this point in the history
See whatwg/whatwg.org#64 and whatwg/html#4933.

Co-authored-by: Anne van Kesteren <[email protected]>
  • Loading branch information
zcorpan and annevk committed Jan 16, 2020
1 parent 090210a commit a931147
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions src/wattsi.pas
Original file line number Diff line number Diff line change
Expand Up @@ -1311,15 +1311,16 @@ TCrossReferences = record
Result := ProcessNode(Node);
end
else
if ((Instruction = 'INSERT FINGERPRINT') and (Variant <> vDEV)) then
if ((Instruction = 'INSERT TRACKING') and (Variant <> vDEV)) then
begin
TempElement := E(eSpan, [kCrossRefAttribute, 'fingerprinting vector',
'title', 'There is a potential fingerprinting vector here.',
'class', 'fingerprint'],
[E(eImg, ['src', '/images/fingerprint.png',
'alt', '(This is a fingerprinting vector.)',
TempElement := E(eSpan, [kCrossRefAttribute, 'tracking vector',
'title', 'There is a tracking vector here.',
'class', 'tracking-vector'],
[E(eImg, ['src', 'https://resources.whatwg.org/tracking-vector.svg',
'alt', '(This is a tracking vector.)',
'width', '46',
'height', '64'])]);
'height', '64',
'crossorigin', ''])]);
(Node.ParentNode as TElement).ReplaceChild(TempElement, Node);
Node.Free();
Node := TempElement;
Expand Down

0 comments on commit a931147

Please sign in to comment.