Firefox UI freeze when Web Worker loads large script
Categories
(Core :: DOM: Workers, defect, P2)
Tracking
()
People
(Reporter: claas, Unassigned)
References
()
Details
This behavior could be abused by malicious sites to freeze Firefox indefinitely (by loading the large script in a loop).
Steps to reproduce the behavior:
- See repository: https://github.com/caugner/vue-ffmpeg-worker-firefox-freeze
git clone https://github.com/caugner/vue-ffmpeg-worker-firefox-freeze
cd vue-ffmpeg-worker-firefox-freeze
yarn install
yarn serve
- Open http://localhost:8080 in Firefox.
- Notice how the UI freezes (the website itself does not always freeze).
See also: https://github.com/ffmpegjs/ffmpeg.js/issues/19
Note that Chrome does not behave this way.
PS: The relevant JS code is in App.vue
and Worker.js
at commit ae36e0a: https://github.com/caugner/vue-ffmpeg-worker-firefox-freeze/commit/ae36e0a86aedc49a0065cf64d3325c5047699029#diff-ea994a51b0d9884f4fc046eca11a5c99
Updated•4 years ago
|
Reporter | ||
Comment 1•4 years ago
|
||
Here's a direct link to reproduce the Firefox UI freeze: https://caugner.github.io/vue-ffmpeg-worker-firefox-freeze/
Reporter | ||
Updated•4 years ago
|
Reporter | ||
Updated•4 years ago
|
Reporter | ||
Comment 2•4 years ago
•
|
||
Firefox Profiler: https://perfht.ml/2Xy4kMq
Note the 6.8s event processing delay at the top. That's the freeze.
Reporter | ||
Comment 3•4 years ago
|
||
I cannot reproduce the freeze in Firefox 78.0a1 (2020-05-05) (64-Bit).
Reporter | ||
Comment 4•4 years ago
|
||
I cannot reproduce the freeze in Firefox 76.0 either, so I assume that the issue has been fixed.
Updated•4 years ago
|
Description
•