Repository: flutter
Issue: In a web development project using Flutter SDK version 3.16.5, the web page fails to load on iOS 14 systems when using WKWebView and Safari browsers.
Labels: platform-web,e: OS-version specific,has reproducible steps,P3,browser: safari-ios,team-web,triaged-web,found in release: 3.16,found in release: 3.19

### Steps to reproduce

In a web development project using Flutter SDK version 3.16.5, the web page fails to load on iOS 14 systems when using WKWebView and Safari browsers. However, after downgrading Flutter SDK to version 3.10.0 and rebuilding the web application, it successfully loads on iOS 14 systems. The issue seems to be specific to Flutter SDK versions, as the downgrade resolves the loading problem on iOS 14.

### Expected results

In a web development project using Flutter SDK version 3.16.5,  expect it successfully loads on iOS 14 systems.

### Actual results

In a web development project using Flutter SDK version 3.16.5, the web page fails to load on iOS 14 systems when using WKWebView and Safari browsers. However, after downgrading Flutter SDK to version 3.10.0 and rebuilding the web application, it successfully loads on iOS 14 systems. The issue seems to be specific to Flutter SDK versions, as the downgrade resolves the loading problem on iOS 14.

### Code sample

```
import 'package:flutter/material.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
       
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
        useMaterial3: true,
      ),
      home: const MyHomePage(title: 'Flutter Demo Home Page'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  const MyHomePage({super.key, required this.title});


  final String title;

  @override
  State<MyHomePage> createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  int _counter = 0;

  void _incrementCounter() {
    setState(() {
    
      _counter++;
    });
  }

  @override
  Widget build(BuildContext context) {
   
    return Scaffold(
      appBar: AppBar(
       
        backgroundColor: Theme.of(context).colorScheme.inversePrimary,
       
        title: Text(widget.title),
      ),
      body: Center(
        
        child: Column(
         
          mainAxisAlignment: MainAxisAlignment.center,
          children: <Widget>[
            const Text(
              'You have pushed the button this many times:',
            ),
            Text(
              '$_counter',
              style: Theme.of(context).textTheme.headlineMedium,
            ),
          ],
        ),
      ),
      floatingActionButton: FloatingActionButton(
        onPressed: _incrementCounter,
        tooltip: 'Increment',
        child: const Icon(Icons.add),
      ), // This trailing comma makes auto-formatting nicer for build methods.
    );
  }
}

```


### Screenshots or Video

<details open>
<summary>Screenshots / Video demonstration</summary>

[Upload media here]

</details>


### Logs

<details open><summary>Logs</summary>

```console
[Paste your logs here]
```

</details>


### Flutter Doctor output

everything is normal