chrome://flags/#enable-experimental-web-platform-features breaks event listeners attached to canvas

781 views
Skip to first unread message

Ajay Pratap Singh

unread,
Apr 4, 2024, 4:32:07 PM4/4/24
to Chromium-dev
Hi,

I have a canvas element with multiple event listeners tracking mouse interactions such as clicks, scrolls, and movement.

When chrome://flags/#enable-experimental-web-platform-features is disabled, the event listeners are successfully attached to the canvas element, allowing me to receive events when relevant mouse interactions occur.

However, when chrome://flags/#enable-experimental-web-platform-features is enabled, although the event listeners are still successfully attached to the canvas element, I do not receive events upon making relevant mouse interactions with the canvas.

I'm seeking clarification on why enabling this flag leads to such behavior.

Additionally, I noticed that this experimental flag was automatically enabled when I upgraded my Chrome to version 122.0.6261.129. Will this flag be persistently enabled in future Chrome releases for all users?

Regards,
Ajay Pratap Singh

Reilly Grant

unread,
Apr 5, 2024, 1:59:49 PM4/5/24
to ajayprata...@gmail.com, Chromium-dev
Enabling this flag turns on all of the features in runtime_enabled_features.json5 marked "experimental" which unfortunately makes discovering which particular feature is triggering the issue. This flag should not be enabled automatically and is not recommended unless you are testing code that depends on an experimental feature. This might have been a bug or indicate there is malware on your system which is trying to exploit a bug in an unfinished feature.
Reilly Grant | Software Engineer | rei...@chromium.org | Google Chrome


--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/a3912bdd-3715-44a8-9583-6e896711f8f9n%40chromium.org.
Reply all
Reply to author
Forward
0 new messages