Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Text selection not working on macOS Sonoma and Sequoia #292

Open
101airborne opened this issue Aug 8, 2024 · 0 comments
Open

Text selection not working on macOS Sonoma and Sequoia #292

101airborne opened this issue Aug 8, 2024 · 0 comments

Comments

@101airborne
Copy link

Can not select anything within WkWebView editor view of my MacCatalyst app when running on macOS 14 Sonoma.

Any selection gesture or command key fails to select anything in content editable WKWebView, so none of the Editor tools can be activated.

My application uses the nnhubbard / ZSSRichTextEditor WKWebView-based Rich Text Editor: https://github.com/nnhubbard/ZSSRichTextEditor. The app is built with Xcode 15.0 or 15.0.1.

The app is a Catalyst app that implements an editor view with a ZSSRichTextEditor WKWebView.

The problem does not occur if the the app is run in iOS or macOS 11, 12, or 13 (Catalina, Monterey, or Ventura.) The issue only occurs in macOS 14 Sonoma. (And now Sequoia, too.)

The following error message is logged whenever an attempt to select any text in the WKWebView content:

0x1359ecc18 - [pageProxyID=14, webPageID=15, PID=14,932] WebPageProxy::didFailProvisionalLoadForFrame: frameID=1, isMainFrame=1, domain=NSURLErrorDomain, code=18,446,744,073,709,550,614, isMainFrame=1, willInternallyHandleFailure=0

The inability to select text in a WKWebView running in macOS 14 Sonoma (and Sequoia, too) is a "known problem" to Apple. We fled an incident with Apple over 9 months ago on the issue, but their only response has been: "…no known workaround at this time.". My Apple Developer Forum post is : https://developer.apple.com/forums/thread/758338

And my stack overflow.com post is: https://stackoverflow.com/q/77456484/1911037

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant