{"action":"created","issue":{"url":"https://api.github.com/repos/IdentityServer/IdentityServer3.Samples/issues/101","labels_url":"https://api.github.com/repos/IdentityServer/IdentityServer3.Samples/issues/101/labels{/name}","comments_url":"https://api.github.com/repos/IdentityServer/IdentityServer3.Samples/issues/101/comments","events_url":"https://api.github.com/repos/IdentityServer/IdentityServer3.Samples/issues/101/events","html_url":"https://github.com/IdentityServer/IdentityServer3.Samples/issues/101","id":60833434,"number":101,"title":"Isn't it better to set the frame.src property after adding the eventlistener to listen for messages?","user":{"login":"devlz303","id":4823556,"avatar_url":"https://avatars.githubusercontent.com/u/4823556?v=3","gravatar_id":"","url":"https://api.github.com/users/devlz303","html_url":"https://github.com/devlz303","followers_url":"https://api.github.com/users/devlz303/followers","following_url":"https://api.github.com/users/devlz303/following{/other_user}","gists_url":"https://api.github.com/users/devlz303/gists{/gist_id}","starred_url":"https://api.github.com/users/devlz303/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/devlz303/subscriptions","organizations_url":"https://api.github.com/users/devlz303/orgs","repos_url":"https://api.github.com/users/devlz303/repos","events_url":"https://api.github.com/users/devlz303/events{/privacy}","received_events_url":"https://api.github.com/users/devlz303/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-12T15:06:44Z","updated_at":"2015-03-13T01:01:19Z","closed_at":null,"body":"In the previous (jQuery)version of oidc.js the src property of the frame that is created to silently load the token in the background is set after the eventlistener that listens for the message from the iframe has been set.\r\nIn the latest code the frame is created, and the src property is set before add the listener.\r\n\r\nThis could be a problem if the token retrieval is very fast and the message from the IFrame is sent before the eventlistener is active."},"comment":{"url":"https://api.github.com/repos/IdentityServer/IdentityServer3.Samples/issues/comments/78726042","html_url":"https://github.com/IdentityServer/IdentityServer3.Samples/issues/101#issuecomment-78726042","issue_url":"https://api.github.com/repos/IdentityServer/IdentityServer3.Samples/issues/101","id":78726042,"user":{"login":"brockallen","id":649492,"avatar_url":"https://avatars.githubusercontent.com/u/649492?v=3","gravatar_id":"","url":"https://api.github.com/users/brockallen","html_url":"https://github.com/brockallen","followers_url":"https://api.github.com/users/brockallen/followers","following_url":"https://api.github.com/users/brockallen/following{/other_user}","gists_url":"https://api.github.com/users/brockallen/gists{/gist_id}","starred_url":"https://api.github.com/users/brockallen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brockallen/subscriptions","organizations_url":"https://api.github.com/users/brockallen/orgs","repos_url":"https://api.github.com/users/brockallen/repos","events_url":"https://api.github.com/users/brockallen/events{/privacy}","received_events_url":"https://api.github.com/users/brockallen/received_events","type":"User","site_admin":false},"created_at":"2015-03-13T01:01:19Z","updated_at":"2015-03-13T01:01:19Z","body":"Possibly -- feel free to submit a PR (and sign the CLA, too please)."}}