You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(ios): enable JSContext to be inspectable (#13812)
* fix(ios): enable JSContext to be inspectable In iOS 16.4 the default state for whether a JSContext is inspectable became false and the owner of the context must explicitly set it to be inspectable. This commit enables the JSContext to be inspectable and I have verified this works for both Safari and VS Code debugging. However, for security concerns it's probably best that we disable this in production I assume. How to do that, I have no idea. It probably also needs to be guarded to only be set on iOS 16.4+ Refs https://webkit.org/blog/13966/webkit-features-in-safari-16-4/https://webkit.org/blog/13936/enabling-the-inspection-of-web-content-in-apps/ * refactor: guard usage of JSGlobalContextSetInspectable * refactor: use different guard * refactor: use YES instead of true, add production check * fix(ios): add prod-check to debugger handler --------- Co-authored-by: Hans Knöchel <h.knoechel@lambus.com>
0 commit comments