/devtools-extension-gpu-crash

POC Extension that crashes the GPU (Chrome 119)

Primary LanguageJavaScriptMIT LicenseMIT

POC: DevTools Extension GPU Crash

POC Extension that crashes the GPU

The root cause is this:

window.document.querySelector('.box').getAnimations()[0].currentTime = 1000000 * Math.random()

If you call that quickly after each other, the extension crashes.

Example Crash ID: crash/d4adab2203e014bd

Noteworthy: when running the code directly in Chrome – i.e. not in an extension – it works fine. Try it with this CodePen.

License

This project is released under the MIT public license. See the enclosed LICENSE for details.