{"action":"created","issue":{"url":"https://api.github.com/repos/project-hatohol/hatohol/issues/2052","repository_url":"https://api.github.com/repos/project-hatohol/hatohol","labels_url":"https://api.github.com/repos/project-hatohol/hatohol/issues/2052/labels{/name}","comments_url":"https://api.github.com/repos/project-hatohol/hatohol/issues/2052/comments","events_url":"https://api.github.com/repos/project-hatohol/hatohol/issues/2052/events","html_url":"https://github.com/project-hatohol/hatohol/issues/2052","id":134478933,"number":2052,"title":"[WebUI] ブラウザクローズの誤操作防止","user":{"login":"ucksts","id":16419592,"avatar_url":"https://avatars.githubusercontent.com/u/16419592?v=3","gravatar_id":"","url":"https://api.github.com/users/ucksts","html_url":"https://github.com/ucksts","followers_url":"https://api.github.com/users/ucksts/followers","following_url":"https://api.github.com/users/ucksts/following{/other_user}","gists_url":"https://api.github.com/users/ucksts/gists{/gist_id}","starred_url":"https://api.github.com/users/ucksts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ucksts/subscriptions","organizations_url":"https://api.github.com/users/ucksts/orgs","repos_url":"https://api.github.com/users/ucksts/repos","events_url":"https://api.github.com/users/ucksts/events{/privacy}","received_events_url":"https://api.github.com/users/ucksts/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/project-hatohol/hatohol/labels/WebUI","name":"WebUI","color":"eb6420"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":24,"created_at":"2016-02-18T04:31:09Z","updated_at":"2016-03-31T09:05:28Z","closed_at":null,"body":"Hatoholログイン中に、ブラウザウインドウを\"クローズ\"をしようとすると、\r\nアラートのダイアログを表示することで誤操作を防止したい。\r\n\r\n■ブラウザデフォルトのダイアログをJavascriptで表示する\r\n参考サイト：https://employment.en-japan.com/signup/\r\n\r\n表示する文言はこちらでいかがでしょうか。\r\n\"Hatoholがシステム監視中です。\r\nこのページから移動してもよろしいですか？\"\r\n[ このページにとどまる ] [ このページから離れる ]\r\n\r\nサンプルデザインはこちら\r\n![browser_close_alert](https://cloud.githubusercontent.com/assets/16419592/13133902/9a1279ec-d643-11e5-8905-8eb30d826032.png)\r\n"},"comment":{"url":"https://api.github.com/repos/project-hatohol/hatohol/issues/comments/203835148","html_url":"https://github.com/project-hatohol/hatohol/issues/2052#issuecomment-203835148","issue_url":"https://api.github.com/repos/project-hatohol/hatohol/issues/2052","id":203835148,"user":{"login":"kz0817","id":2610513,"avatar_url":"https://avatars.githubusercontent.com/u/2610513?v=3","gravatar_id":"","url":"https://api.github.com/users/kz0817","html_url":"https://github.com/kz0817","followers_url":"https://api.github.com/users/kz0817/followers","following_url":"https://api.github.com/users/kz0817/following{/other_user}","gists_url":"https://api.github.com/users/kz0817/gists{/gist_id}","starred_url":"https://api.github.com/users/kz0817/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kz0817/subscriptions","organizations_url":"https://api.github.com/users/kz0817/orgs","repos_url":"https://api.github.com/users/kz0817/repos","events_url":"https://api.github.com/users/kz0817/events{/privacy}","received_events_url":"https://api.github.com/users/kz0817/received_events","type":"User","site_admin":false},"created_at":"2016-03-31T09:05:28Z","updated_at":"2016-03-31T09:05:28Z","body":"#2224でトレーサーのPRを出しました。これがマージされたら、\r\nhatoholTracer.addListener(HatoholTracePoint.PRE_HREF_CHANGE, func)\r\nで意図されたページ遷移イベントがリスンできます。\r\nハンドラで遷移許可フラグをアサートすれば、当初に想定された動作をするはずです。\r\n\r\n"}}