{"action":"created","issue":{"url":"https://api.github.com/repos/xamarin/xamarin-macios/issues/4130","repository_url":"https://api.github.com/repos/xamarin/xamarin-macios","labels_url":"https://api.github.com/repos/xamarin/xamarin-macios/issues/4130/labels{/name}","comments_url":"https://api.github.com/repos/xamarin/xamarin-macios/issues/4130/comments","events_url":"https://api.github.com/repos/xamarin/xamarin-macios/issues/4130/events","html_url":"https://github.com/xamarin/xamarin-macios/issues/4130","id":326496759,"node_id":"MDU6SXNzdWUzMjY0OTY3NTk=","number":4130,"title":"Reproducible native crash bug with WKWebView in latest Xamarin.iOS","user":{"login":"nejdu","id":1175171,"node_id":"MDQ6VXNlcjExNzUxNzE=","avatar_url":"https://avatars0.githubusercontent.com/u/1175171?v=4","gravatar_id":"","url":"https://api.github.com/users/nejdu","html_url":"https://github.com/nejdu","followers_url":"https://api.github.com/users/nejdu/followers","following_url":"https://api.github.com/users/nejdu/following{/other_user}","gists_url":"https://api.github.com/users/nejdu/gists{/gist_id}","starred_url":"https://api.github.com/users/nejdu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nejdu/subscriptions","organizations_url":"https://api.github.com/users/nejdu/orgs","repos_url":"https://api.github.com/users/nejdu/repos","events_url":"https://api.github.com/users/nejdu/events{/privacy}","received_events_url":"https://api.github.com/users/nejdu/received_events","type":"User","site_admin":false},"labels":[{"id":361456712,"node_id":"MDU6TGFiZWwzNjE0NTY3MTI=","url":"https://api.github.com/repos/xamarin/xamarin-macios/labels/bug","name":"bug","color":"ee0701","default":true},{"id":770328998,"node_id":"MDU6TGFiZWw3NzAzMjg5OTg=","url":"https://api.github.com/repos/xamarin/xamarin-macios/labels/iOS","name":"iOS","color":"edd60e","default":false},{"id":770328881,"node_id":"MDU6TGFiZWw3NzAzMjg4ODE=","url":"https://api.github.com/repos/xamarin/xamarin-macios/labels/macOS","name":"macOS","color":"edd60e","default":false}],"state":"closed","locked":false,"assignee":{"login":"rolfbjarne","id":249268,"node_id":"MDQ6VXNlcjI0OTI2OA==","avatar_url":"https://avatars0.githubusercontent.com/u/249268?v=4","gravatar_id":"","url":"https://api.github.com/users/rolfbjarne","html_url":"https://github.com/rolfbjarne","followers_url":"https://api.github.com/users/rolfbjarne/followers","following_url":"https://api.github.com/users/rolfbjarne/following{/other_user}","gists_url":"https://api.github.com/users/rolfbjarne/gists{/gist_id}","starred_url":"https://api.github.com/users/rolfbjarne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rolfbjarne/subscriptions","organizations_url":"https://api.github.com/users/rolfbjarne/orgs","repos_url":"https://api.github.com/users/rolfbjarne/repos","events_url":"https://api.github.com/users/rolfbjarne/events{/privacy}","received_events_url":"https://api.github.com/users/rolfbjarne/received_events","type":"User","site_admin":false},"assignees":[{"login":"rolfbjarne","id":249268,"node_id":"MDQ6VXNlcjI0OTI2OA==","avatar_url":"https://avatars0.githubusercontent.com/u/249268?v=4","gravatar_id":"","url":"https://api.github.com/users/rolfbjarne","html_url":"https://github.com/rolfbjarne","followers_url":"https://api.github.com/users/rolfbjarne/followers","following_url":"https://api.github.com/users/rolfbjarne/following{/other_user}","gists_url":"https://api.github.com/users/rolfbjarne/gists{/gist_id}","starred_url":"https://api.github.com/users/rolfbjarne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rolfbjarne/subscriptions","organizations_url":"https://api.github.com/users/rolfbjarne/orgs","repos_url":"https://api.github.com/users/rolfbjarne/repos","events_url":"https://api.github.com/users/rolfbjarne/events{/privacy}","received_events_url":"https://api.github.com/users/rolfbjarne/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/xamarin/xamarin-macios/milestones/14","html_url":"https://github.com/xamarin/xamarin-macios/milestone/14","labels_url":"https://api.github.com/repos/xamarin/xamarin-macios/milestones/14/labels","id":3396418,"node_id":"MDk6TWlsZXN0b25lMzM5NjQxOA==","number":14,"title":"d15-9","description":"","creator":{"login":"spouliot","id":260465,"node_id":"MDQ6VXNlcjI2MDQ2NQ==","avatar_url":"https://avatars2.githubusercontent.com/u/260465?v=4","gravatar_id":"","url":"https://api.github.com/users/spouliot","html_url":"https://github.com/spouliot","followers_url":"https://api.github.com/users/spouliot/followers","following_url":"https://api.github.com/users/spouliot/following{/other_user}","gists_url":"https://api.github.com/users/spouliot/gists{/gist_id}","starred_url":"https://api.github.com/users/spouliot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spouliot/subscriptions","organizations_url":"https://api.github.com/users/spouliot/orgs","repos_url":"https://api.github.com/users/spouliot/repos","events_url":"https://api.github.com/users/spouliot/events{/privacy}","received_events_url":"https://api.github.com/users/spouliot/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":47,"state":"open","created_at":"2018-06-03T16:27:55Z","updated_at":"2018-10-31T21:30:45Z","due_on":"2018-08-06T07:00:00Z","closed_at":null},"comments":33,"created_at":"2018-05-25T12:07:49Z","updated_at":"2018-11-06T22:35:54Z","closed_at":"2018-06-29T08:42:25Z","author_association":"NONE","body":"(Coming from Bugzilla we were at a loss where to post this and wrongly submitted this bug report to the Xamarin forums first, sorry about that).\r\n\r\nLoading a WKWebView with a HTML string twice using a WKNavigationDelegate that overrides DecidePolicy crashes Xamarin.\r\n\r\n### Steps to Reproduce\r\n\r\nCreate a new project with this UIVIewController\r\n```\r\n    public class TestController : UIViewController\r\n    {\r\n        class Navigator : WKNavigationDelegate\r\n        {\r\n            public override void DecidePolicy(WKWebView webView, WKNavigationAction navigationAction, Action<WKNavigationActionPolicy> decisionHandler)\r\n            {\r\n\t\tdecisionHandler(WKNavigationActionPolicy.Cancel);\r\n\t    }\r\n        }\r\n\r\n        WKWebView page;\r\n\r\n        void AddPage()\r\n        {\r\n            page?.RemoveFromSuperview();\r\n            page = new WKWebView(new CGRect(0, 0, 400, 400), new WKWebViewConfiguration());\r\n            page.NavigationDelegate = new Navigator();\r\n            page.LoadHtmlString(\"\", new NSUrl(NSBundle.MainBundle.ResourceUrl + \"\"));\r\n\r\n            View.AddSubview(page);\r\n\r\n            Console.WriteLine(\"OK\");\r\n        }\r\n\r\n        public override void ViewDidLoad()\r\n        {\r\n            UIButton button = new UIButton(new CGRect(200, 500, 0, 0));\r\n\r\n            button.SetTitle(\"Add page\", UIControlState.Normal);\r\n            button.SizeToFit();\r\n            button.TouchUpInside += (sender, e) => AddPage();\r\n\r\n            View.AddSubview(button);\r\n        }\r\n    }\r\n```\r\nPressing the button should add an empty webview to the view controller and print \"OK\" to stdout. This works the first time, but waiting a second and pressing the button again will add the page, print \"OK\" and then either simply hang or crash the application Sometimes you might get away with more presses, but ultimately it does crash.\r\n\r\n### Expected Behavior\r\n\r\nApp shouldn't crash\r\n\r\n### Actual Behavior\r\n\r\nApp crash\r\n"},"comment":{"url":"https://api.github.com/repos/xamarin/xamarin-macios/issues/comments/436434484","html_url":"https://github.com/xamarin/xamarin-macios/issues/4130#issuecomment-436434484","issue_url":"https://api.github.com/repos/xamarin/xamarin-macios/issues/4130","id":436434484,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNjQzNDQ4NA==","user":{"login":"ivancitin","id":28026680,"node_id":"MDQ6VXNlcjI4MDI2Njgw","avatar_url":"https://avatars0.githubusercontent.com/u/28026680?v=4","gravatar_id":"","url":"https://api.github.com/users/ivancitin","html_url":"https://github.com/ivancitin","followers_url":"https://api.github.com/users/ivancitin/followers","following_url":"https://api.github.com/users/ivancitin/following{/other_user}","gists_url":"https://api.github.com/users/ivancitin/gists{/gist_id}","starred_url":"https://api.github.com/users/ivancitin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ivancitin/subscriptions","organizations_url":"https://api.github.com/users/ivancitin/orgs","repos_url":"https://api.github.com/users/ivancitin/repos","events_url":"https://api.github.com/users/ivancitin/events{/privacy}","received_events_url":"https://api.github.com/users/ivancitin/received_events","type":"User","site_admin":false},"created_at":"2018-11-06T22:35:54Z","updated_at":"2018-11-06T22:35:54Z","author_association":"NONE","body":"@VincentDondain Thanks for circling it back, i did try 5.2.1.10 alone but seems to brake other parts of my dev environment, app didn't start at all with some binding failures, i may have to get other components updated for they to play along. I can live with the issue until this gets released."}}
{"actor":{"display_login":"ivancitin"}}