{"action":"opened","issue":{"url":"https://api.github.com/repos/cefsharp/CefSharp/issues/1760","repository_url":"https://api.github.com/repos/cefsharp/CefSharp","labels_url":"https://api.github.com/repos/cefsharp/CefSharp/issues/1760/labels{/name}","comments_url":"https://api.github.com/repos/cefsharp/CefSharp/issues/1760/comments","events_url":"https://api.github.com/repos/cefsharp/CefSharp/issues/1760/events","html_url":"https://github.com/cefsharp/CefSharp/issues/1760","id":168337859,"number":1760,"title":"Block geolocalization request to wait for user's response","user":{"login":"pwhite77","id":20681803,"avatar_url":"https://avatars.githubusercontent.com/u/20681803?v=3","gravatar_id":"","url":"https://api.github.com/users/pwhite77","html_url":"https://github.com/pwhite77","followers_url":"https://api.github.com/users/pwhite77/followers","following_url":"https://api.github.com/users/pwhite77/following{/other_user}","gists_url":"https://api.github.com/users/pwhite77/gists{/gist_id}","starred_url":"https://api.github.com/users/pwhite77/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pwhite77/subscriptions","organizations_url":"https://api.github.com/users/pwhite77/orgs","repos_url":"https://api.github.com/users/pwhite77/repos","events_url":"https://api.github.com/users/pwhite77/events{/privacy}","received_events_url":"https://api.github.com/users/pwhite77/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-07-29T14:32:06Z","updated_at":"2016-07-29T14:32:06Z","closed_at":null,"body":"Hello everyone,\r\nI'm implementing, in my **WinForms** CefSharp app, the **IGeolocationHandler**, as explained in the example [here](https://github.com/cefsharp/CefSharp/blob/master/CefSharp.WinForms.Example/Handlers/GeolocationHandler.cs#L12). I would like to display a custom panel to ask the user permission (the reason I don't use MessageBox is that I have to show multiple options), but I can't find a way to make the handler wait for the user response.\r\n\r\nCreating a public event in the main form (_Home.vb_) and adding an _AddHandler_ to the handler does not help. Using **TaskCompletionSource** does not work because I can't make **OnRequestGeolocationPermission** async, and polling a public variable causes the handler to always return false.\r\n\r\nDoes everyone know a way to do it?\r\n\r\nThanks a lot"}}
{"actor":{"display_login":"pwhite77"}}