Skip to content

Conversation

bparrishMines
Copy link
Contributor

@bparrishMines bparrishMines commented May 14, 2025

Fixes flutter/flutter#168306

WKWebViewConfiguration.defaultWebpagePreferences is an implicitly unwrapped optional and has a chance to be null, but shouldn't be.

This updates the wrapper to make it nullable.

Pre-Review Checklist

If you need help, consider asking for advice on the #hackers-new channel on Discord.

Footnotes

  1. Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling. 2 3

@bparrishMines bparrishMines changed the title Wkwebview preferences [webview_flutter_wkwebview] Fixes crash from native WKWebViewConfiguration.defaultWebpagePreferences sometimes returning nil May 19, 2025
@bparrishMines bparrishMines changed the title [webview_flutter_wkwebview] Fixes crash from native WKWebViewConfiguration.defaultWebpagePreferences sometimes returning nil [webview_flutter_wkwebview] Fixes exception from native WKWebViewConfiguration.defaultWebpagePreferences sometimes returning nil May 19, 2025
@bparrishMines bparrishMines deleted the wkwebview_preferences branch June 11, 2025 18:03
@bparrishMines bparrishMines restored the wkwebview_preferences branch July 10, 2025 00:43
@bparrishMines bparrishMines deleted the wkwebview_preferences branch July 10, 2025 00:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[webview_flutter_wkwebview] Crash when restarting in debug mode on iOS – Host platform returned null value for non-null return value
1 participant