Repository: godot
Issue: Console errors on the 4.0 Web editor
Labels: bug,platform:web,topic:rendering,topic:porting

### Godot version

4.0.alpha (f211869530cf8abec23d8ea3123f1058d382962d)

### System information

Mageia 9 Linux, x86_64 | Firefox Nightly 106 and Chromium 105

### Issue description

I made a test build of the Web editor for 4.0 from the current `master` (f211869530cf8abec23d8ea3123f1058d382962d)), nicknamed "4.0 alpha 16.2": https://editor.godotengine.org/releases/4.0.alpha16.2/

The project manager works fine, but editing a project doesn't work properly (black screen).

I get these errors in the log in Chromium, but Firefox has similar errors (grouped manually for readability):

```
godot.tools.js:310 Godot Engine v4.0.alpha16.2.official.f21186953 - https://godotengine.org
godot.tools.js:310 OpenGL Renderer: WebKit WebGL
godot.tools.js:310  
```
```
godot.tools.js:310 Blocking on the main thread is very dangerous, see https://emscripten.org/docs/porting/pthreads.html#blocking-on-the-main-browser-thread
I @ godot.tools.js:310
```
```
godot.tools.js:310 USER ERROR: Parameter "img" is null.
I @ godot.tools.js:310
godot.tools.js:310    at: flip_icon (editor/editor_themes.cpp:200) - Parameter "img" is null.
I @ godot.tools.js:310
```
```
godot.tools.js:310 Editing project: /home/web_user/SimpleProj
godot.tools.js:310 Godot Engine v4.0.alpha16.2.official.f21186953 - https://godotengine.org
godot.tools.js:310 OpenGL Renderer: WebKit WebGL
godot.tools.js:310  
```
```
godot.tools.js:310 USER WARNING: WindowMode MAXIMIZED and MINIMIZED are not supported in Web platform.
I @ godot.tools.js:310
godot.tools.js:310    at: window_set_mode (platform/web/display_server_web.cpp:1000) - WindowMode MAXIMIZED and MINIMIZED are not supported in Web platform.
I @ godot.tools.js:310
```
```
godot.tools.js:310 Blocking on the main thread is very dangerous, see https://emscripten.org/docs/porting/pthreads.html#blocking-on-the-main-browser-thread
I @ godot.tools.js:310
```
```
godot.tools.js:310 USER WARNING: Occlusion culling is disabled at build-time.
I @ godot.tools.js:310
godot.tools.js:310    at: _print_warning (./servers/rendering/renderer_scene_occlusion_cull.h:165) - Occlusion culling is disabled at build-time.
I @ godot.tools.js:310
```
```
godot.tools.js:310 USER ERROR: Parameter "img" is null.
I @ godot.tools.js:310
godot.tools.js:310    at: flip_icon (editor/editor_themes.cpp:200) - Parameter "img" is null.
I @ godot.tools.js:310]
```
```
godot.tools.js:310 USER WARNING: blend shapes not supported by GLES3 renderer yet
I @ godot.tools.js:310
godot.tools.js:310    at: mesh_set_blend_shape_count (drivers/gles3/storage/mesh_storage.cpp:90) - blend shapes not supported by GLES3 renderer yet
I @ godot.tools.js:310
```
```
godot.tools.js:310 USER WARNING: Could not create render target, status: 36054
I @ godot.tools.js:310
godot.tools.js:310    at: _update_render_target (drivers/gles3/storage/texture_storage.cpp:1244) - Could not create render target, status: 36054
I @ godot.tools.js:310
godot.tools.js:310 USER WARNING: Could not create render target, status: 36054
I @ godot.tools.js:310
godot.tools.js:310    at: _update_render_target (drivers/gles3/storage/texture_storage.cpp:1244) - Could not create render target, status: 36054
I @ godot.tools.js:310
```
```
godot.tools.js:310 USER WARNING: Blend file import is enabled in the project settings, but no Blender path is configured in the editor settings. Blend files will not be imported.
I @ godot.tools.js:310
godot.tools.js:310    at: _editor_init (modules/gltf/register_types.cpp:75) - Blend file import is enabled in the project settings, but no Blender path is configured in the editor settings. Blend files will not be imported.
I @ godot.tools.js:310
godot.tools.js:310 USER WARNING: FBX file import is enabled in the project settings, but no FBX2glTF path is configured in the editor settings. FBX files will not be imported.
I @ godot.tools.js:310
godot.tools.js:310    at: _editor_init (modules/gltf/register_types.cpp:99) - FBX file import is enabled in the project settings, but no FBX2glTF path is configured in the editor settings. FBX files will not be imported.
I @ godot.tools.js:310
```
```
editor.godotengine.org/:1 [.WebGL-0x561a246c46b0] GL_INVALID_OPERATION: Invalid combination of format, type and internalFormat.
editor.godotengine.org/:1 [.WebGL-0x561a246c46b0] GL_INVALID_OPERATION: Invalid combination of format, type and internalFormat.
```
```
0e0271a6:0xeafc79 Uncaught (in promise) RuntimeError: null function or function signature mismatch
    at EditorRunNative::_notification(int) (0e0271a6:0xeafc79)
    at EditorRunNative::_notificationv(int, bool) (0e0271a6:0x1b1a7c9)
    at Object::notification(int, bool) (0e0271a6:0x77aba)
    at Node::_propagate_enter_tree() (0e0271a6:0xc77a8e)
    at Node::_propagate_enter_tree() (0e0271a6:0xc77c49)
    at Node::_propagate_enter_tree() (0e0271a6:0xc77c49)
    at Node::_propagate_enter_tree() (0e0271a6:0xc77c49)
    at Node::_propagate_enter_tree() (0e0271a6:0xc77c49)
    at Node::_propagate_enter_tree() (0e0271a6:0xc77c49)
    at Node::_propagate_enter_tree() (0e0271a6:0xc77c49)
```
```
108godot.tools.js:310 Output buffer has not enough frames! Skipping output frame.
I @ godot.tools.js:310
V @ godot.tools.js:167
d.port.onmessage @ godot.tools.js:175
```

### Steps to reproduce

- Visit https://editor.godotengine.org/releases/4.0.alpha16.2/ in Firefox or Chromium
- Create a new empty project in the project manager
- Attempt editing it

### Minimal reproduction project

_No response_