Reproduction steps:
1. Open the attached “WebGLProfilerConnect.zip” project
2. In the Build Settings, make sure the WebGL platform is selected
3. Enable “Development build” and “Autoconnect Profiler”
4. Press “Build” and wait for the Player to build
5. Close and re-open the project
6. Open Unity Profiler
7. Host the WebGL Player (If you have Python you can navigate to the build's folder using a command window and run the “py -m http.server” command)
8. Open a browser and connect to the Player via this link: http://localhost:8000/
9. Observe the Profiler window inside Unity
Expected result: The Profiler automatically connects to the WebGL Player
Actual result: The Profiler does not connect to the WebGL Player
Reproducible with: 2021.3.40f1, 2022.3.37f1, 6000.0.10f1
Reproducible on: Windows 11
Not reproducible on: No other environment tested
Note: Profiler always automatically connects to the Windows Player if “Autoconnect Profiler” is enabled