Reproduction steps:
1. Open the attached “Download freeze issue” project
2. In the Build Settings (File > Build Profiles), make sure the WebGL platform is selected
3. Build and Run the Player
4. In the Player, when asked for camera permission, do not allow the website to use the Camera
5. Press the circle at the bottom of the screen
6. Press the “Download” icon in the bottom left of the screen
Expected result: The page continues to work
Actual result: The page freezes and “abort() at jsStackTrace@http…” error is thrown
Reproducible with: 2021.3.51f1, 2022.3.62f1, 6000.0.46f1, 6000.1.0b15, 6000.2.0b1
Couldn't test with: 2022.1.0a1 (The page is all black), 6000.0.46f1, 6000.1.0b14, 6000.2.0a9 (“Couldn’t find variable…” error after step 5)
Reproducible on: macOS Sequoia 15.4 (M1 Max)
Not reproducible on: No other environments tested
Note: Reproducible on Chrome, Firefox, Safari