{"action":"created","issue":{"url":"https://api.github.com/repos/Hammerspoon/hammerspoon/issues/542","labels_url":"https://api.github.com/repos/Hammerspoon/hammerspoon/issues/542/labels{/name}","comments_url":"https://api.github.com/repos/Hammerspoon/hammerspoon/issues/542/comments","events_url":"https://api.github.com/repos/Hammerspoon/hammerspoon/issues/542/events","html_url":"https://github.com/Hammerspoon/hammerspoon/pull/542","id":105534552,"number":542,"title":"WIP - hs.webview","user":{"login":"asmagill","id":8139480,"avatar_url":"https://avatars.githubusercontent.com/u/8139480?v=3","gravatar_id":"","url":"https://api.github.com/users/asmagill","html_url":"https://github.com/asmagill","followers_url":"https://api.github.com/users/asmagill/followers","following_url":"https://api.github.com/users/asmagill/following{/other_user}","gists_url":"https://api.github.com/users/asmagill/gists{/gist_id}","starred_url":"https://api.github.com/users/asmagill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asmagill/subscriptions","organizations_url":"https://api.github.com/users/asmagill/orgs","repos_url":"https://api.github.com/users/asmagill/repos","events_url":"https://api.github.com/users/asmagill/events{/privacy}","received_events_url":"https://api.github.com/users/asmagill/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-09T07:17:47Z","updated_at":"2015-09-09T07:50:25Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/Hammerspoon/hammerspoon/pulls/542","html_url":"https://github.com/Hammerspoon/hammerspoon/pull/542","diff_url":"https://github.com/Hammerspoon/hammerspoon/pull/542.diff","patch_url":"https://github.com/Hammerspoon/hammerspoon/pull/542.patch"},"body":"Hopefully this will be cleaner -- I shouldn't have 34 files out of sync with master, I should only have 3!\r\n\r\nAt any rate, the current take now supports navigation and magnification gestures, a simple error page for failed navigation, a navigation callback with an option to override the error page with your own or even suppress it and use hs.notify or hs.showNotification instead, javascript alert, confirm, and prompt now have the appropriate delegate in place, and basic/digest auth is supported (sort of -- see below) so it can be used with hs.httpserver's pages even if a password is set.\r\n\r\nThe alerts used are modal to the window, not to Hammerspoon, so they are non-blocking (yay!), but at present the credential prompting shows two prompts for login -- one for username and one for password... should be a simple matter to combine them at some point, but I was tired and it works -- sort of... the caveat is that it doesn't store a successful credential in the memory cache, so the next request also prompts again... and again... etc.\r\n\r\nI plan to add a callback to the navigationPolicy delegate methods and maybe to the credential query as well -- have a lua function provide the username and password for a site using basic or digest auth instead of a prompt.\r\n\r\nI also need to implement the delegate method for creating subviews... for frames and \"other window\"... and maybe see if we can override the context menu so that it doesn't show things we either can't (yet) or won't do... right now they just do nothing with a very non-expressive notification of nothing..."},"comment":{"url":"https://api.github.com/repos/Hammerspoon/hammerspoon/issues/comments/138815342","html_url":"https://github.com/Hammerspoon/hammerspoon/pull/542#issuecomment-138815342","issue_url":"https://api.github.com/repos/Hammerspoon/hammerspoon/issues/542","id":138815342,"user":{"login":"asmagill","id":8139480,"avatar_url":"https://avatars.githubusercontent.com/u/8139480?v=3","gravatar_id":"","url":"https://api.github.com/users/asmagill","html_url":"https://github.com/asmagill","followers_url":"https://api.github.com/users/asmagill/followers","following_url":"https://api.github.com/users/asmagill/following{/other_user}","gists_url":"https://api.github.com/users/asmagill/gists{/gist_id}","starred_url":"https://api.github.com/users/asmagill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asmagill/subscriptions","organizations_url":"https://api.github.com/users/asmagill/orgs","repos_url":"https://api.github.com/users/asmagill/repos","events_url":"https://api.github.com/users/asmagill/events{/privacy}","received_events_url":"https://api.github.com/users/asmagill/received_events","type":"User","site_admin":false},"created_at":"2015-09-09T07:50:25Z","updated_at":"2015-09-09T07:50:25Z","body":"I give up... I'll try again tomorrow, but any thoughts or suggestions would be helpful because I'm not seeing it right now..."}}