Fix iOS 14~17 EXC_BAD_ACCESS crash when evaluateJavaScript on windowID WebViews#2776
Open
studiogaram wants to merge 1 commit into
Open
Fix iOS 14~17 EXC_BAD_ACCESS crash when evaluateJavaScript on windowID WebViews#2776studiogaram wants to merge 1 commit into
studiogaram wants to merge 1 commit into
Conversation
…d WebViews On iOS 14~17, calling evaluateJavaScript/callAsyncJavaScript with contentWorld parameter on WebViews created via windowId (popup windows) causes EXC_BAD_ACCESS (code=1, address=0x0). Root cause: WindowId WebViews share WKWebViewConfiguration with parent and skip custom UserContentController initialization, leaving WKContentWorld in an uninitialized state. Workaround: Use non-contentWorld version of evaluateJavaScript for windowId WebViews on iOS < 18
3 tasks
kuronekorou39
added a commit
to kuronekorou39/mobile-omniverse
that referenced
this pull request
Apr 23, 2026
iPad Google ログインのネイティブクラッシュ原因を特定。 upstream Issue #2600 / PR #2776 の既知バグで、windowId で作られる 子 WebView は親の WKWebViewConfiguration を共有するが UserContentController の初期化をスキップするため、プラグイン内部の evaluateJavaScript(contentWorld:) 呼び出しで EXC_BAD_ACCESS が発生する。iOS 14-17.x で発生、iOS 18+ では Apple 側で修正済み。iPadOS 17.7.10 直撃。 PR #2776 はマージ未だが、scripts/patch_inappwebview.py で CI 時に ローカルの plugin source に差分を当てる。iOS 18+ では条件分岐で無効化 されるため iPhone iOS 18+ には完全に影響なし。iOS 14-17 では legacy evaluateJavaScript API(contentWorld 引数なし版)を使うため動作する。 参考: - pichillilorenzo/flutter_inappwebview#2600 - pichillilorenzo/flutter_inappwebview#2776 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Connection with issue(s)
Resolve issue #2600
Testing and Review Notes
Steps to reproduce the crash (before fix):
Steps to verify the fix:
Root Cause:
initialized for popup WebViews
Workaround Applied:
To Do