{"action":"created","issue":{"url":"https://api.github.com/repos/privly/privly-applications/issues/119","labels_url":"https://api.github.com/repos/privly/privly-applications/issues/119/labels{/name}","comments_url":"https://api.github.com/repos/privly/privly-applications/issues/119/comments","events_url":"https://api.github.com/repos/privly/privly-applications/issues/119/events","html_url":"https://github.com/privly/privly-applications/issues/119","id":48938905,"number":119,"title":"Redirect user to extension context when injection is turned off","user":{"login":"irdan","id":2509536,"avatar_url":"https://avatars.githubusercontent.com/u/2509536?v=3","gravatar_id":"","url":"https://api.github.com/users/irdan","html_url":"https://github.com/irdan","followers_url":"https://api.github.com/users/irdan/followers","following_url":"https://api.github.com/users/irdan/following{/other_user}","gists_url":"https://api.github.com/users/irdan/gists{/gist_id}","starred_url":"https://api.github.com/users/irdan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/irdan/subscriptions","organizations_url":"https://api.github.com/users/irdan/orgs","repos_url":"https://api.github.com/users/irdan/repos","events_url":"https://api.github.com/users/irdan/events{/privacy}","received_events_url":"https://api.github.com/users/irdan/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/privly/privly-applications/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/privly/privly-applications/labels/Major","name":"Major","color":"d7e102"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2014-11-16T01:20:55Z","updated_at":"2015-04-11T20:24:49Z","closed_at":null,"body":"If a user has turned off injection and they click on a link, they are shown the message in the hosted context.  If they have gone to the trouble of installing the extension, the least we could do is provide them with the additional security properties of viewing the message in the extension context."},"comment":{"url":"https://api.github.com/repos/privly/privly-applications/issues/comments/91921642","html_url":"https://github.com/privly/privly-applications/issues/119#issuecomment-91921642","issue_url":"https://api.github.com/repos/privly/privly-applications/issues/119","id":91921642,"user":{"login":"maniksingh92","id":3219657,"avatar_url":"https://avatars.githubusercontent.com/u/3219657?v=3","gravatar_id":"","url":"https://api.github.com/users/maniksingh92","html_url":"https://github.com/maniksingh92","followers_url":"https://api.github.com/users/maniksingh92/followers","following_url":"https://api.github.com/users/maniksingh92/following{/other_user}","gists_url":"https://api.github.com/users/maniksingh92/gists{/gist_id}","starred_url":"https://api.github.com/users/maniksingh92/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maniksingh92/subscriptions","organizations_url":"https://api.github.com/users/maniksingh92/orgs","repos_url":"https://api.github.com/users/maniksingh92/repos","events_url":"https://api.github.com/users/maniksingh92/events{/privacy}","received_events_url":"https://api.github.com/users/maniksingh92/received_events","type":"User","site_admin":false},"created_at":"2015-04-11T20:24:49Z","updated_at":"2015-04-11T20:24:49Z","body":"This is the HTTP observer for the Firefox extension which redirects user to the extension context.\r\n\r\nhttps://gist.github.com/maniksingh92/5e5c2686fdb6b9083b62\r\n\r\nThe code simply redirects any https://privly.org/app request to a specific PlainPost URL written in the code.\r\n\r\nWork required:\r\n1. Add Chrome support\r\n2. Method to fetch trusted server list, and perform redirection on successful RegExp matches for these servers\r\n3. Method to convert server context URL to extension context URL (Which could be already existing somewhere in the privly code)\r\n\r\nThe observer is active for all browser instances, so it should be loaded only once as a js module. And it works even when the privly extension is in PASSIVE mode\r\n\r\n\r\n\r\n\r\n"}}