{"action":"created","issue":{"url":"https://api.github.com/repos/annulen/webkit/issues/519","repository_url":"https://api.github.com/repos/annulen/webkit","labels_url":"https://api.github.com/repos/annulen/webkit/issues/519/labels{/name}","comments_url":"https://api.github.com/repos/annulen/webkit/issues/519/comments","events_url":"https://api.github.com/repos/annulen/webkit/issues/519/events","html_url":"https://github.com/annulen/webkit/issues/519","id":223331806,"number":519,"title":"unload event issue in QtWebkit","user":{"login":"neel5481","id":4135603,"avatar_url":"https://avatars3.githubusercontent.com/u/4135603?v=3","gravatar_id":"","url":"https://api.github.com/users/neel5481","html_url":"https://github.com/neel5481","followers_url":"https://api.github.com/users/neel5481/followers","following_url":"https://api.github.com/users/neel5481/following{/other_user}","gists_url":"https://api.github.com/users/neel5481/gists{/gist_id}","starred_url":"https://api.github.com/users/neel5481/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neel5481/subscriptions","organizations_url":"https://api.github.com/users/neel5481/orgs","repos_url":"https://api.github.com/users/neel5481/repos","events_url":"https://api.github.com/users/neel5481/events{/privacy}","received_events_url":"https://api.github.com/users/neel5481/received_events","type":"User","site_admin":false},"labels":[{"id":406238980,"url":"https://api.github.com/repos/annulen/webkit/labels/API","name":"API","color":"0e8a16","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":26,"created_at":"2017-04-21T09:38:29Z","updated_at":"2017-05-09T19:47:52Z","closed_at":null,"body":"Hi,\r\n\r\nAs we are using this webkit in Qt application.\r\n\r\nWe have used QTabWidget. Once we get the javascript call \"window.open\" then we are getting Qt signal \"createWindow\" and we are able to create the new tab which contains custom close button with WebView and WebPage.\r\n\r\nNow Everything works fine till now except when we close the tab then \"unload\" function should be called. Even though we have registered unload event but we are not getting call for \"unload\" function.\r\n\r\n//below register the unload event for window.\r\nwindow.onbeforeunload = function(ev) {\r\n  // unload event action....\r\n };\r\n\r\nCan you please suggest how to call unload event that through WebKit ?\r\n\r\nThanks in Advance.\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/annulen/webkit/issues/comments/300280868","html_url":"https://github.com/annulen/webkit/issues/519#issuecomment-300280868","issue_url":"https://api.github.com/repos/annulen/webkit/issues/519","id":300280868,"user":{"login":"neel5481","id":4135603,"avatar_url":"https://avatars3.githubusercontent.com/u/4135603?v=3","gravatar_id":"","url":"https://api.github.com/users/neel5481","html_url":"https://github.com/neel5481","followers_url":"https://api.github.com/users/neel5481/followers","following_url":"https://api.github.com/users/neel5481/following{/other_user}","gists_url":"https://api.github.com/users/neel5481/gists{/gist_id}","starred_url":"https://api.github.com/users/neel5481/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neel5481/subscriptions","organizations_url":"https://api.github.com/users/neel5481/orgs","repos_url":"https://api.github.com/users/neel5481/repos","events_url":"https://api.github.com/users/neel5481/events{/privacy}","received_events_url":"https://api.github.com/users/neel5481/received_events","type":"User","site_admin":false},"created_at":"2017-05-09T19:47:52Z","updated_at":"2017-05-09T19:47:52Z","body":"I have tried. The total numeric value for WebAction enum is 78. But how it will be useful ?\r\nIt gives compilation error. If we put below condition in application then also it gives error.\r\n\r\nif (QWebPage::WebActionCount == 78)\r\n    page->triggerAction(QWebPage::RequestClose);\r\n\r\nLet me know if i misunderstood.\r\n"}}
{"actor":{"display_login":"neel5481"}}