Skip to content

[Web] regression in 3.41 when using viewFactories #182292

Description

@holzgeist

Steps to reproduce

  1. upgrade flutter to 3.41.0
  2. Compile and serve video_player example for web: flutter build web && miniserve --index index.html build/web (using https://github.com/svenstaro/miniserve in this case)
  3. Launch in Firefox

I couldn't find the right section on the Bug Template for this, but I bisected the error to this PR. It sounds very much related, and the issue was 100% reproducible (once I properly handled caching 🙄 ), so pinging @harryterkelsen and @mdebbar (as reviewer) directly

Expected results

  • video is visible and can be played

Actual results

  • video doesn't show up

it does work in Chromium though

Code sample

Example app from official flutter video player: https://github.com/flutter/packages/tree/main/packages/video_player/video_player/example

Screenshots or Video

Screenshots / Video demonstration

Flutter 3.38.9

video_player_flutter_3_38_9.mp4

Flutter 3.41.0

video_player_flutter_3_41.mp4

Logs

Logs

Browser Console is basically empty, but here we go

14:39:39.525 GET
http://localhost:8080/favicon.ico
[HTTP/1.1 404 Not Found 0ms]

14:39:39.531 Injecting <script> tag. Using callback. flutter_bootstrap.js:1:2478
14:39:39.597 Source-Map-Fehler: Error: request failed with status 404
Stack in the worker:networkRequest@resource://devtools/client/shared/source-map-loader/utils/network-request.js:43:9

Ressourcen-Adresse: http://localhost:8080/flutter_bootstrap.js
Source-Map-Adresse: flutter.js.map
14:39:40.048 WEBGL_debug_renderer_info is deprecated in Firefox and will be removed. Please use RENDERER. canvaskit.js:15:383
14:39:40.134 WEBGL_debug_renderer_info is deprecated in Firefox and will be removed. Please use RENDERER. 3 canvaskit.js:15:383

Flutter Doctor output

Doctor output
[✓] Flutter (Channel stable, 3.41.0, on Arch Linux 6.18.8-arch2-1, locale en_US.UTF-8) [34ms]
    • Flutter version 3.41.0 on channel stable at /home/tobias/src/3rdparty/flutter
    • Upstream repository https://github.com/flutter/flutter
    • Framework revision 44a626f4f0 (2 days ago), 2026-02-10 10:16:12 -0800
    • Engine revision 3452d735bd
    • Dart version 3.11.0
    • DevTools version 2.54.1
    • Feature flags: enable-web, enable-linux-desktop, enable-macos-desktop, enable-windows-desktop, enable-android, enable-ios, cli-animations, enable-native-assets,
      omit-legacy-version-file, enable-lldb-debugging, enable-uiscene-migration

[✓] Android toolchain - develop for Android devices (Android SDK version 36.0.0) [1,006ms]
    • Android SDK at /home/tobias/Android/Sdk
    • Emulator version 36.3.10.0 (build_id 14472402) (CL:N/A)
    • Platform android-36, build-tools 36.0.0
    • ANDROID_HOME = /home/tobias/Android/Sdk
    • Java binary at: /opt/android-studio/jbr/bin/java
      This is the JDK bundled with the latest Android Studio installation on this machine.
      To manually set the JDK path, use: `flutter config --jdk-dir="path/to/jdk"`.
    • Java version OpenJDK Runtime Environment (build 21.0.8+-14196175-b1038.72)
    • All Android licenses accepted.

[✓] Chrome - develop for the web [7ms]
    • Chrome at google-chrome

[✓] Linux toolchain - develop for Linux desktop [264ms]
    • clang version 21.1.6
    • cmake version 4.2.3
    • ninja version 1.13.2
    • pkg-config version 2.5.1
    • OpenGL core renderer: AMD Radeon 740M Graphics (radeonsi, phoenix, LLVM 21.1.6, DRM 3.64, 6.18.8-arch2-1)
    • OpenGL core version: 4.6 (Core Profile) Mesa 25.3.5-arch1.1
    • OpenGL core shading language version: 4.60
    • OpenGL ES renderer: AMD Radeon 740M Graphics (radeonsi, phoenix, LLVM 21.1.6, DRM 3.64, 6.18.8-arch2-1)
    • OpenGL ES version: OpenGL ES 3.2 Mesa 25.3.5-arch1.1
    • OpenGL ES shading language version: OpenGL ES GLSL ES 3.20
    • GL_EXT_framebuffer_blit: yes
    • GL_EXT_texture_format_BGRA8888: yes

[✓] Connected device (2 available) [81ms]
    • Linux (desktop) • linux  • linux-x64      • Arch Linux 6.18.8-arch2-1
    • Chrome (web)    • chrome • web-javascript • Chromium 144.0.7559.132 Arch Linux

[✓] Network resources [323ms]
    • All expected network resources are available.

• No issues found!

Metadata

Metadata

Assignees

Labels

P1High-priority issues at the top of the work listc: regressionIt was better in the past than it is nowp: video_playerThe Video Player pluginplatform-webWeb applications specificallyteam-webOwned by Web platform teamtriaged-webTriaged by Web platform team

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions