{"action":"created","issue":{"url":"https://api.github.com/repos/atom/electron/issues/1508","labels_url":"https://api.github.com/repos/atom/electron/issues/1508/labels{/name}","comments_url":"https://api.github.com/repos/atom/electron/issues/1508/comments","events_url":"https://api.github.com/repos/atom/electron/issues/1508/events","html_url":"https://github.com/atom/electron/issues/1508","id":71432215,"number":1508,"title":"Blocking navigation in WebView tag, post #1502","user":{"login":"paulcbetts","id":1396,"avatar_url":"https://avatars.githubusercontent.com/u/1396?v=3","gravatar_id":"","url":"https://api.github.com/users/paulcbetts","html_url":"https://github.com/paulcbetts","followers_url":"https://api.github.com/users/paulcbetts/followers","following_url":"https://api.github.com/users/paulcbetts/following{/other_user}","gists_url":"https://api.github.com/users/paulcbetts/gists{/gist_id}","starred_url":"https://api.github.com/users/paulcbetts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulcbetts/subscriptions","organizations_url":"https://api.github.com/users/paulcbetts/orgs","repos_url":"https://api.github.com/users/paulcbetts/repos","events_url":"https://api.github.com/users/paulcbetts/events{/privacy}","received_events_url":"https://api.github.com/users/paulcbetts/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/atom/electron/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/atom/electron/labels/webview","name":"webview","color":"eb6420"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-04-27T23:45:41Z","updated_at":"2015-05-01T23:34:09Z","closed_at":"2015-05-01T06:55:52Z","body":"Against the current master branch in the Slack app (05ae1960d1e421cf057a960b0526890665983c47), the shortcut for Back now works (Cmd-Left arrow on OS X), which now kills the WebView and restarts it. Since we don't have `webContents.will-navigate` on WebView tags, I can't find any way to block the navigation (`preventDefault` on `beforeunload` doesn't seem to work unless I'm doing it wrong)"},"comment":{"url":"https://api.github.com/repos/atom/electron/issues/comments/98261145","html_url":"https://github.com/atom/electron/issues/1508#issuecomment-98261145","issue_url":"https://api.github.com/repos/atom/electron/issues/1508","id":98261145,"user":{"login":"paulcbetts","id":1396,"avatar_url":"https://avatars.githubusercontent.com/u/1396?v=3","gravatar_id":"","url":"https://api.github.com/users/paulcbetts","html_url":"https://github.com/paulcbetts","followers_url":"https://api.github.com/users/paulcbetts/followers","following_url":"https://api.github.com/users/paulcbetts/following{/other_user}","gists_url":"https://api.github.com/users/paulcbetts/gists{/gist_id}","starred_url":"https://api.github.com/users/paulcbetts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulcbetts/subscriptions","organizations_url":"https://api.github.com/users/paulcbetts/orgs","repos_url":"https://api.github.com/users/paulcbetts/repos","events_url":"https://api.github.com/users/paulcbetts/events{/privacy}","received_events_url":"https://api.github.com/users/paulcbetts/received_events","type":"User","site_admin":false},"created_at":"2015-05-01T23:34:09Z","updated_at":"2015-05-01T23:34:09Z","body":"@zcbenz Hm, this seems to work, but now when back gets hit, the page blanks out - DevTools still shows the content as being there, but the page is empty:\r\n\r\n![](http://cl.ly/image/2u370J0q2z2Z/content#png)"}}