Revert "Pass platform configuration to Dart VM for insecure socket policy (#20733)" (flutter/engine#20812)
This reverts commit 749cede9a0.
This commit is contained in:
@@ -216,9 +216,10 @@ public class FlutterLoader {
|
||||
}
|
||||
|
||||
shellArgs.add("--cache-dir-path=" + result.engineCachesPath);
|
||||
if (!flutterApplicationInfo.clearTextPermitted) {
|
||||
shellArgs.add("--disallow-insecure-connections");
|
||||
}
|
||||
// TODO(mehmetf): Announce this since it is a breaking change then enable it.
|
||||
// if (!flutterApplicationInfo.clearTextPermitted) {
|
||||
// shellArgs.add("--disallow-insecure-connections");
|
||||
// }
|
||||
if (flutterApplicationInfo.domainNetworkPolicy != null) {
|
||||
shellArgs.add("--domain-network-policy=" + flutterApplicationInfo.domainNetworkPolicy);
|
||||
}
|
||||
|
||||
@@ -140,6 +140,12 @@ static flutter::Settings DefaultSettingsForProcess(NSBundle* bundle = nil) {
|
||||
settings.domain_network_policy =
|
||||
[FlutterDartProject domainNetworkPolicy:appTransportSecurity].UTF8String;
|
||||
|
||||
// TODO(mehmetf): We need to announce this change since it is breaking.
|
||||
// Remove these two lines after we announce and we know which release this is
|
||||
// going to be part of.
|
||||
settings.may_insecurely_connect_to_all_domains = true;
|
||||
settings.domain_network_policy = "";
|
||||
|
||||
#if FLUTTER_RUNTIME_MODE == FLUTTER_RUNTIME_MODE_DEBUG
|
||||
// There are no ownership concerns here as all mappings are owned by the
|
||||
// embedder and not the engine.
|
||||
|
||||
Reference in New Issue
Block a user