3

Given the fact that canvas fingerprinting is a hype, I raise my eyebrows whenever I see fillText or strokeText in JavaScript code executing on websites. I noticed that Google uses some of these eye raising codes in their ad delivery code. For example:

Both contain fillText and strokeText. What is going on here? Why would Google need to draw text strings? This is a massive document and my JavaScript knowledge is too poor to analyze it all.

2

If they are, those files aren't really evidence of it, they are just minified bundles of some of the CreateJS libraries.

Both contain fillText and strokeText. What is going on here?

The CreateJS libraries are mainly used for canvas drawing, and there is a "private" function which will draw text, _drawTextLine. Those are the instances of fillText/strokeText you see.

Why would Google need to draw text strings?

There are many possible reasons to draw text to a canvas. I don't know what you found these files being used with, but I suspect it is something that makes heavy use of canvas drawing. Perhaps some HTML5 ads?

If anyone competent were going to use fillText/strokeText for fingerprinting, I don't think they would load up a full canvas drawing library to draw some text, as I can't see it being very helpful for the actual difficult part of the image recognition code.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.