#1087·EaselJS

Firefox fingerprinting protection breaks mouse event handling

Author: eternal-sorrowCreated Jan 5, 2026Updated Feb 3, 2026

I noticed some years ago that some html5 games do not work correctly in my browser. The problem is always the same - a click at any point in the canvas always registers as a click at one specific element on the screen. I couldn't pinpoint the issue correctly so I didn't know where to ask help for this, so I just shrugged back then, started Chrome and the game worked as expected in it. Recently I decided to investigate and after a debug session I found that the game in question uses CreateJS and soon I found the culprit: https://github.com/CreateJS/EaselJS/blob/c716bf010d4f918bec42fe9529f42520b79dc0db/src/easeljs/display/DisplayObject.js#L1326

CreateJS uses getImageData canvas method to detect a hit on an element. With fingerprinting protection enabled this method returns random noise on Firefox. So CreateJS always detects a hit on the first displayed object, no matter where the click actually happened.