Title: -parentFrame is a private API · Issue #2 · TomSwift/UIWebView-TS_JavaScriptContext · GitHub
Open Graph Title: -parentFrame is a private API · Issue #2 · TomSwift/UIWebView-TS_JavaScriptContext
X Title: -parentFrame is a private API · Issue #2 · TomSwift/UIWebView-TS_JavaScriptContext
Description: My app got rejected by the static analyzer for using this method because -parentFrame is a private API. I managed to solve that by checking on the delegate if the jsContext that's passed is the same as the context for the main frame: - (...
Open Graph Description: My app got rejected by the static analyzer for using this method because -parentFrame is a private API. I managed to solve that by checking on the delegate if the jsContext that's passed is the sam...
X Description: My app got rejected by the static analyzer for using this method because -parentFrame is a private API. I managed to solve that by checking on the delegate if the jsContext that's passed is the...
Opengraph URL: https://github.com/TomSwift/UIWebView-TS_JavaScriptContext/issues/2
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"-parentFrame is a private API","articleBody":"My app got rejected by the static analyzer for using this method because -parentFrame is a private API.\n\nI managed to solve that by checking on the delegate if the jsContext that's passed is the same as the context for the main frame:\n\n```\n- (void)didCreateJavaScriptContext:(JSContext *)jsContext\n{\n // Get the context for the main frame and verify it's the same\n JSContext *mainFrameCtx = [self valueForKeyPath:@\"documentView.webView.mainFrame.javaScriptContext\"];\n if(jsContext == mainFrameCtx) {\n // Call the delegate\n if(self.delegate \u0026\u0026 [self.delegate respondsToSelector: @selector(webView:didCreateJavaScriptContext:)] ) {\n [(id\u003cTSWebViewDelegate\u003e)self.delegate webView:self didCreateJavaScriptContext:jsContext];\n }\n }\n else {\n NSLog(@\"JavaScript contexts are different\");\n }\n}\n```\n\nBy using the delegate method, we're still sure that the JSContext object is created when we ask for it.\n","author":{"url":"https://github.com/ItalyPaleAle","@type":"Person","name":"ItalyPaleAle"},"datePublished":"2015-01-16T14:57:58.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/2/UIWebView-TS_JavaScriptContext/issues/2"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:4e0ffcbf-7fb4-044b-54d7-ceb4c00cc522 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C256:1EA772:6A6326:97218D:6978BBFD |
| html-safe-nonce | 0bf3d1d2b19d31ce00e66d0f81405bdff89985d61b329454b93a5cafa0ba935b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMjU2OjFFQTc3Mjo2QTYzMjY6OTcyMThEOjY5NzhCQkZEIiwidmlzaXRvcl9pZCI6IjQwNDM3Nzc0MjM5NTMxNDg5MjUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 7ef92b18ece62d1b26c7d6cac58c580faaa57e54a1eb373d924fadfb258e5cf3 |
| hovercard-subject-tag | issue:54583992 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/TomSwift/UIWebView-TS_JavaScriptContext/2/issue_layout |
| twitter:image | https://opengraph.githubassets.com/bf84d2df1314110dd37fa304e6793454c2b1ffc0e28c694c1e38cf5677ab2572/TomSwift/UIWebView-TS_JavaScriptContext/issues/2 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/bf84d2df1314110dd37fa304e6793454c2b1ffc0e28c694c1e38cf5677ab2572/TomSwift/UIWebView-TS_JavaScriptContext/issues/2 |
| og:image:alt | My app got rejected by the static analyzer for using this method because -parentFrame is a private API. I managed to solve that by checking on the delegate if the jsContext that's passed is the sam... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ItalyPaleAle |
| hostname | github.com |
| expected-hostname | github.com |
| None | 2981c597c945c1d90ac6fa355ce7929b2f413dfe7872ca5c435ee53a24a1de50 |
| turbo-cache-control | no-preview |
| go-import | github.com/TomSwift/UIWebView-TS_JavaScriptContext git https://github.com/TomSwift/UIWebView-TS_JavaScriptContext.git |
| octolytics-dimension-user_id | 575821 |
| octolytics-dimension-user_login | TomSwift |
| octolytics-dimension-repository_id | 14630813 |
| octolytics-dimension-repository_nwo | TomSwift/UIWebView-TS_JavaScriptContext |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 14630813 |
| octolytics-dimension-repository_network_root_nwo | TomSwift/UIWebView-TS_JavaScriptContext |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 9520342ca7ead2f1a011aa96eaff82fc054a4970 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width