Repository navigation
Conversation
Introduces `PlatformDebuggingOptions` and `DebuggingOptions.platformOptions` so platform-specific debugging configuration no longer lives in `device.dart`. Moves `WebDebugConfig` into `lib/src/web/web_debug_config.dart`, absorbs `nativeNullAssertions` and `webDefines` into `WebDebugConfig`, and passes `WebDebugConfig` directly to `WebDevFS` and `WebAssetServer.start`. Removes dead legacy compatibility keys (`webUseLocalCanvaskit`, `dumpSkpOnShaderCompilation`, `cacheSkSL`, `fastStart`) from `DebuggingOptions.toJson()`, drops redundant `webDefines` forwarding parameters across runners and driver services, and preserves `ProxiedDevice` JSON round-trip parsing via `PlatformDebuggingOptionsParser`.
…viceLogReader Introduces `WebContext` (with `chromiumLauncher`, `webWorkflow`, and optional `WebFlutterDeviceBuilder`) and wires it through `ToolDependencies`, `FlutterDeviceManager`, `WebDevices`, `WebDevice`, and `DoctorValidatorsProvider`. Adds `Device.createFlutterDevice`, extracts `FlutterDevice.createCompilers` / `FlutterDevice.createDefault`, migrates all `FlutterDevice.create` callers, and removes `FlutterDevice.create`. Adds `WebDeviceLogReader` streaming `Stdout` and `Stderr` VM service events and consolidates log reader and disposal handling onto `WebDevice`.
Replace web-specific checks in `ResidentRunner`, `HotRunner`, `ColdRunner`, and `DartDevelopmentService` with polymorphic capability and lifecycle hooks on `FlutterDevice`. Add deferred service protocol startup and hot reload/restart hooks in `HotRunner`, cold restart support in `ColdRunner`, a detach guard on `ResidentRunner.exit`, and `WebCapabilityFlutterDevice` returned by `WebDevice.createFlutterDevice` to preserve web capability behavior prior to migrating off `ResidentWebRunner`.
Adds `WebFlutterDevice`, a `FlutterDevice` subclass that implements web-specific hot and cold launch, deferred DWDS attachment, `WebDeviceLogReader` log streaming, hot reload/restart, cold `Page.reload` restart, connection exception mapping, and cleanup on top of `HotRunner` and `ColdRunner`. Adds hermetic `testWithoutContext` unit test suites covering cold (`web_flutter_device_cold_test.dart`) and hot (`web_flutter_device_hot_test.dart`) web lifecycles.
This was referenced Nov 23, 2026
opensource-fork-sync Bot
pushed a commit
to cla7aye15I4nd/opensource-flutter__flutter
that referenced
this pull request
Nov 24, 2026
…fig (flutter#197229) Introduces `PlatformDebuggingOptions` and `DebuggingOptions.platformOptions` so platform-specific debugging configuration no longer lives in `device.dart`. Moves `WebDebugConfig` into `lib/src/web/web_debug_config.dart`, absorbs `nativeNullAssertions` and `webDefines` into `WebDebugConfig`, and passes `WebDebugConfig` directly to `WebDevFS` and `WebAssetServer.start`. Removes dead legacy compatibility keys (`webUseLocalCanvaskit`, `dumpSkpOnShaderCompilation`, `cacheSkSL`, `fastStart`) from `DebuggingOptions.toJson()`, drops redundant `webDefines` forwarding parameters across runners and driver services, and preserves `ProxiedDevice` JSON round-trip parsing via `PlatformDebuggingOptionsParser`. Stack: 1. flutter#197229 2. flutter#197230 3. flutter#197231 4. flutter#197232 5. flutter#197233
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
WebFlutterDevice, aFlutterDevicesubclass that implements web-specific hot and cold launch, deferred DWDS attachment,WebDeviceLogReaderlog streaming, hot reload/restart, coldPage.reloadrestart, connection exception mapping, and cleanup on top ofHotRunnerandColdRunner.Adds hermetic
testWithoutContextunit test suites covering cold (web_flutter_device_cold_test.dart) and hot (web_flutter_device_hot_test.dart) web lifecycles.Builds on #197231. Diff from parent: bkonyi/flutter@web-runner-3-runner-seams...web-runner-4-web-flutter-device
Stack: