@@ -785,6 +785,7 @@ class DebuggingOptions {
785
785
this .webUseSseForInjectedClient = true ,
786
786
this .webRunHeadless = false ,
787
787
this .webBrowserDebugPort,
788
+ this .webBrowserFlags = const < String > [],
788
789
this .webEnableExpressionEvaluation = false ,
789
790
this .webLaunchUrl,
790
791
this .vmserviceOutFile,
@@ -805,6 +806,7 @@ class DebuggingOptions {
805
806
this .webUseSseForInjectedClient = true ,
806
807
this .webRunHeadless = false ,
807
808
this .webBrowserDebugPort,
809
+ this .webBrowserFlags = const < String > [],
808
810
this .webLaunchUrl,
809
811
this .cacheSkSL = false ,
810
812
this .traceAllowlist,
@@ -871,6 +873,7 @@ class DebuggingOptions {
871
873
required this .webUseSseForInjectedClient,
872
874
required this .webRunHeadless,
873
875
required this .webBrowserDebugPort,
876
+ required this .webBrowserFlags,
874
877
required this .webEnableExpressionEvaluation,
875
878
required this .webLaunchUrl,
876
879
required this .vmserviceOutFile,
@@ -930,6 +933,9 @@ class DebuggingOptions {
930
933
/// The port the browser should use for its debugging protocol.
931
934
final int ? webBrowserDebugPort;
932
935
936
+ /// Arbitrary browser flags.
937
+ final List <String > webBrowserFlags;
938
+
933
939
/// Enable expression evaluation for web target.
934
940
final bool webEnableExpressionEvaluation;
935
941
@@ -983,6 +989,7 @@ class DebuggingOptions {
983
989
'webUseSseForInjectedClient' : webUseSseForInjectedClient,
984
990
'webRunHeadless' : webRunHeadless,
985
991
'webBrowserDebugPort' : webBrowserDebugPort,
992
+ 'webBrowserFlags' : webBrowserFlags,
986
993
'webEnableExpressionEvaluation' : webEnableExpressionEvaluation,
987
994
'webLaunchUrl' : webLaunchUrl,
988
995
'vmserviceOutFile' : vmserviceOutFile,
@@ -1027,6 +1034,7 @@ class DebuggingOptions {
1027
1034
webUseSseForInjectedClient: (json['webUseSseForInjectedClient' ] as bool ? )! ,
1028
1035
webRunHeadless: (json['webRunHeadless' ] as bool ? )! ,
1029
1036
webBrowserDebugPort: json['webBrowserDebugPort' ] as int ? ,
1037
+ webBrowserFlags: ((json['webBrowserFlags' ] as List <dynamic >? )? .cast <String >())! ,
1030
1038
webEnableExpressionEvaluation: (json['webEnableExpressionEvaluation' ] as bool ? )! ,
1031
1039
webLaunchUrl: json['webLaunchUrl' ] as String ? ,
1032
1040
vmserviceOutFile: json['vmserviceOutFile' ] as String ? ,
0 commit comments