Skip to content

Flutter Web: --no-sandbox flag prevents Chrome/Edge launch on Windows #179067

@benedicte69

Description

@benedicte69

I encountered an issue when trying to run a Flutter web app with:
flutter run -d chrome
flutter run -d edge
Both commands fail because Flutter attempts to launch the browser with the --no-sandbox flag. In my Windows environment, this flag is blocked or considered unsafe, so the browser does not start at all.

Steps to Reproduce

On Windows, run flutter run -d chrome or flutter run -d edge.

Observe that the browser fails to launch due to --no-sandbox.

Expected Behavior The browser should launch normally without requiring the --no-sandbox flag, or there should be a way to configure Flutter to skip this flag.

Actual Behavior The app fails to open because the browser refuses to start with --no-sandbox.

Environment windows 11

Flutter 3.38.3 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 19074d1 (4 days ago) • 2025-11-20 17:53:13 -0500
Engine • hash 8bf2090718fea3655f466049a757f823898f0ad1 (revision 13e6587) (4 days ago) • 2025-11-20 20:19:23.000Z
Tools • Dart 3.10.1 • DevTools 2.51.1

Android Studio Otter | 2025.2.1 Patch 1
Build #AI-252.25557.131.2521.14432022, built on November 13, 2025
Runtime version: 21.0.8+-14196175-b1038.72 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.

Additional Notes As a workaround, I can use flutter run -d web-server and open the URL manually, but this prevents DevTools from attaching automatically.

Suggested Improvement It would be helpful if Flutter:

Allowed disabling --no-sandbox via a configuration option (e.g. flutter run -d chrome --no-sandbox=false), or

Automatically detected when the flag is unsafe on Windows and skipped it.

This would make the developer experience smoother and avoid manual workarounds.

Thank you for considering this improvement!
Thank you for your support and for considering this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    r: fixedIssue is closed as already fixed in a newer version

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions