{"action":"created","issue":{"url":"https://api.github.com/repos/ampproject/amphtml/issues/4021","repository_url":"https://api.github.com/repos/ampproject/amphtml","labels_url":"https://api.github.com/repos/ampproject/amphtml/issues/4021/labels{/name}","comments_url":"https://api.github.com/repos/ampproject/amphtml/issues/4021/comments","events_url":"https://api.github.com/repos/ampproject/amphtml/issues/4021/events","html_url":"https://github.com/ampproject/amphtml/pull/4021","id":165071813,"number":4021,"title":"Creative API: page visibility","user":{"login":"nekodo","id":732742,"avatar_url":"https://avatars.githubusercontent.com/u/732742?v=3","gravatar_id":"","url":"https://api.github.com/users/nekodo","html_url":"https://github.com/nekodo","followers_url":"https://api.github.com/users/nekodo/followers","following_url":"https://api.github.com/users/nekodo/following{/other_user}","gists_url":"https://api.github.com/users/nekodo/gists{/gist_id}","starred_url":"https://api.github.com/users/nekodo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nekodo/subscriptions","organizations_url":"https://api.github.com/users/nekodo/orgs","repos_url":"https://api.github.com/users/nekodo/repos","events_url":"https://api.github.com/users/nekodo/events{/privacy}","received_events_url":"https://api.github.com/users/nekodo/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ampproject/amphtml/labels/NEEDS%20REVIEW","name":"NEEDS REVIEW","color":"e11d21"}],"state":"open","locked":false,"assignee":{"login":"lannka","id":8496897,"avatar_url":"https://avatars.githubusercontent.com/u/8496897?v=3","gravatar_id":"","url":"https://api.github.com/users/lannka","html_url":"https://github.com/lannka","followers_url":"https://api.github.com/users/lannka/followers","following_url":"https://api.github.com/users/lannka/following{/other_user}","gists_url":"https://api.github.com/users/lannka/gists{/gist_id}","starred_url":"https://api.github.com/users/lannka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lannka/subscriptions","organizations_url":"https://api.github.com/users/lannka/orgs","repos_url":"https://api.github.com/users/lannka/repos","events_url":"https://api.github.com/users/lannka/events{/privacy}","received_events_url":"https://api.github.com/users/lannka/received_events","type":"User","site_admin":false},"assignees":[{"login":"lannka","id":8496897,"avatar_url":"https://avatars.githubusercontent.com/u/8496897?v=3","gravatar_id":"","url":"https://api.github.com/users/lannka","html_url":"https://github.com/lannka","followers_url":"https://api.github.com/users/lannka/followers","following_url":"https://api.github.com/users/lannka/following{/other_user}","gists_url":"https://api.github.com/users/lannka/gists{/gist_id}","starred_url":"https://api.github.com/users/lannka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lannka/subscriptions","organizations_url":"https://api.github.com/users/lannka/orgs","repos_url":"https://api.github.com/users/lannka/repos","events_url":"https://api.github.com/users/lannka/events{/privacy}","received_events_url":"https://api.github.com/users/lannka/received_events","type":"User","site_admin":false}],"milestone":null,"comments":2,"created_at":"2016-07-12T12:48:41Z","updated_at":"2016-07-14T19:54:15Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ampproject/amphtml/pulls/4021","html_url":"https://github.com/ampproject/amphtml/pull/4021","diff_url":"https://github.com/ampproject/amphtml/pull/4021.diff","patch_url":"https://github.com/ampproject/amphtml/pull/4021.patch"},"body":"Adds support for subscribing to embed-state messages (which contain page visibility information) from nested ad iframes (as done previosuly for IntersectionObserver). A new message is added, send-embed-state, used to subscribe to the updates. \r\n\r\nThe code for handling subscription is refactored out of IntersectionObserver and into a reusable class in iframe-helper.js . I also added a test for subscription to embed-state updates as there did not seem to be any at the moment.\r\n\r\nThis is the next change in the implementation of #3019, apologies for the delay."},"comment":{"url":"https://api.github.com/repos/ampproject/amphtml/issues/comments/232773626","html_url":"https://github.com/ampproject/amphtml/pull/4021#issuecomment-232773626","issue_url":"https://api.github.com/repos/ampproject/amphtml/issues/4021","id":232773626,"user":{"login":"lannka","id":8496897,"avatar_url":"https://avatars.githubusercontent.com/u/8496897?v=3","gravatar_id":"","url":"https://api.github.com/users/lannka","html_url":"https://github.com/lannka","followers_url":"https://api.github.com/users/lannka/followers","following_url":"https://api.github.com/users/lannka/following{/other_user}","gists_url":"https://api.github.com/users/lannka/gists{/gist_id}","starred_url":"https://api.github.com/users/lannka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lannka/subscriptions","organizations_url":"https://api.github.com/users/lannka/orgs","repos_url":"https://api.github.com/users/lannka/repos","events_url":"https://api.github.com/users/lannka/events{/privacy}","received_events_url":"https://api.github.com/users/lannka/received_events","type":"User","site_admin":false},"created_at":"2016-07-14T19:54:15Z","updated_at":"2016-07-14T19:54:15Z","body":"Some more comments. Looks good in general."}}
{"actor":{"display_login":"lannka"}}