@@ -785,6 +785,7 @@ class DebuggingOptions {
785785 this .webUseSseForInjectedClient = true ,
786786 this .webRunHeadless = false ,
787787 this .webBrowserDebugPort,
788+ this .webBrowserFlags = const < String > [],
788789 this .webEnableExpressionEvaluation = false ,
789790 this .webLaunchUrl,
790791 this .vmserviceOutFile,
@@ -805,6 +806,7 @@ class DebuggingOptions {
805806 this .webUseSseForInjectedClient = true ,
806807 this .webRunHeadless = false ,
807808 this .webBrowserDebugPort,
809+ this .webBrowserFlags = const < String > [],
808810 this .webLaunchUrl,
809811 this .cacheSkSL = false ,
810812 this .traceAllowlist,
@@ -871,6 +873,7 @@ class DebuggingOptions {
871873 required this .webUseSseForInjectedClient,
872874 required this .webRunHeadless,
873875 required this .webBrowserDebugPort,
876+ required this .webBrowserFlags,
874877 required this .webEnableExpressionEvaluation,
875878 required this .webLaunchUrl,
876879 required this .vmserviceOutFile,
@@ -930,6 +933,9 @@ class DebuggingOptions {
930933 /// The port the browser should use for its debugging protocol.
931934 final int ? webBrowserDebugPort;
932935
936+ /// Arbitrary browser flags.
937+ final List <String > webBrowserFlags;
938+
933939 /// Enable expression evaluation for web target.
934940 final bool webEnableExpressionEvaluation;
935941
@@ -983,6 +989,7 @@ class DebuggingOptions {
983989 'webUseSseForInjectedClient' : webUseSseForInjectedClient,
984990 'webRunHeadless' : webRunHeadless,
985991 'webBrowserDebugPort' : webBrowserDebugPort,
992+ 'webBrowserFlags' : webBrowserFlags,
986993 'webEnableExpressionEvaluation' : webEnableExpressionEvaluation,
987994 'webLaunchUrl' : webLaunchUrl,
988995 'vmserviceOutFile' : vmserviceOutFile,
@@ -1027,6 +1034,7 @@ class DebuggingOptions {
10271034 webUseSseForInjectedClient: (json['webUseSseForInjectedClient' ] as bool ? )! ,
10281035 webRunHeadless: (json['webRunHeadless' ] as bool ? )! ,
10291036 webBrowserDebugPort: json['webBrowserDebugPort' ] as int ? ,
1037+ webBrowserFlags: ((json['webBrowserFlags' ] as List <dynamic >? )? .cast <String >())! ,
10301038 webEnableExpressionEvaluation: (json['webEnableExpressionEvaluation' ] as bool ? )! ,
10311039 webLaunchUrl: json['webLaunchUrl' ] as String ? ,
10321040 vmserviceOutFile: json['vmserviceOutFile' ] as String ? ,
0 commit comments